:root {
    --bg-primary: #12141a;
    --bg-secondary: #181b22;
    --bg-tertiary: #20242e;

    --accent-primary: #4fd1ae;
    --accent-secondary: #5b8def;
    --accent-tertiary: #e8a33d;

    --text-primary: #eef0f3;
    --text-secondary: #a9b1bd;
    --text-tertiary: #6b7280;

    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-strong: rgba(24, 27, 34, 0.94);
    --glass-border: rgba(255, 255, 255, 0.09);

    --gradient-1: linear-gradient(135deg, #4fd1ae 0%, #5b8def 100%);
    --gradient-2: linear-gradient(135deg, #e8a33d 0%, #f2b705 100%);
    --gradient-3: linear-gradient(135deg, #5b8def 0%, #4fd1ae 100%);

    --accent-glow-1: rgba(79, 209, 174, 0.14);
    --accent-glow-2: rgba(91, 141, 239, 0.14);
    --accent-glow-3: rgba(232, 163, 61, 0.10);
    --accent-shadow: rgba(79, 209, 174, 0.28);
    --accent-tint: rgba(79, 209, 174, 0.10);
    --accent-tint-soft: rgba(79, 209, 174, 0.05);
    --warn-bg: linear-gradient(135deg, rgba(232, 163, 61, 0.14), rgba(242, 183, 5, 0.10));
    --warn-border: rgba(232, 163, 61, 0.35);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-color-strong: rgba(0, 0, 0, 0.4);
    --input-bg: rgba(255, 255, 255, 0.03);
    --sheen: rgba(255, 255, 255, 0.15);
}

:root[data-theme="light"] {
    --bg-primary: #f5f6f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eceef1;

    --accent-primary: #2f9e82;
    --accent-secondary: #3a6fd8;
    --accent-tertiary: #c97f1f;

    --text-primary: #1a1d23;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;

    --glass-bg: rgba(20, 22, 28, 0.035);
    --glass-bg-strong: rgba(255, 255, 255, 0.94);
    --glass-border: rgba(20, 22, 28, 0.1);

    --gradient-1: linear-gradient(135deg, #2f9e82 0%, #3a6fd8 100%);
    --gradient-2: linear-gradient(135deg, #c97f1f 0%, #d9a02b 100%);
    --gradient-3: linear-gradient(135deg, #3a6fd8 0%, #2f9e82 100%);

    --accent-glow-1: rgba(47, 158, 130, 0.1);
    --accent-glow-2: rgba(58, 111, 216, 0.1);
    --accent-glow-3: rgba(201, 127, 31, 0.08);
    --accent-shadow: rgba(47, 158, 130, 0.22);
    --accent-tint: rgba(47, 158, 130, 0.08);
    --accent-tint-soft: rgba(47, 158, 130, 0.05);
    --warn-bg: linear-gradient(135deg, rgba(201, 127, 31, 0.1), rgba(217, 160, 43, 0.08));
    --warn-border: rgba(201, 127, 31, 0.3);
    --shadow-color: rgba(20, 22, 28, 0.1);
    --shadow-color-strong: rgba(20, 22, 28, 0.16);
    --input-bg: rgba(20, 22, 28, 0.03);
    --sheen: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a,
a:visited,
a:active {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, var(--accent-glow-1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, var(--accent-glow-2) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glass Navigation */
.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 1200px;
}

.nav-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px var(--shadow-color);
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-decoration: none;
}

.logo-tagline {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

/* Legal pages (Impressum / Datenschutz) */
.legal-sections {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px 48px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.legal-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.legal-card:hover::before {
    transform: scaleX(1);
}

.legal-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.legal-card h3 {
    font-size: 17px;
    color: var(--text-secondary);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-card p,
.legal-card li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-card p {
    margin-bottom: 12px;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card ul,
.legal-card ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-card ul li,
.legal-card ol li {
    margin-bottom: 10px;
}

.legal-card strong {
    color: var(--text-primary);
}

.legal-card a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-card a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.legal-card .placeholder {
    color: var(--accent-tertiary);
    font-weight: 700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-1);
    color: var(--bg-primary) !important;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-shadow);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.theme-toggle .icon-moon {
    display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
    display: inline-flex;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 32px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: clamp(48px, 8vw, 95px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-title .gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--sheen), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--accent-shadow);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: var(--accent-tint);
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

/* Services Section */
.section {
    padding: 120px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Bento Grid Services */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 48px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 24px 48px var(--shadow-color-strong);
}

.service-card.large {
    grid-column: span 8;
}

.service-card.medium {
    grid-column: span 4;
}

.service-card.full {
    grid-column: span 12;
}

.service-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 4px 12px var(--accent-shadow));
}

.service-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-features li::before {
    content: '→';
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 18px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 700;
    text-decoration: none;
    margin-top: 16px;
    position: relative;
    z-index: 1;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 16px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    grid-template-areas:
        "image header"
        "image body";
    column-gap: 64px;
    row-gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-header {
    grid-area: header;
    align-self: end;
}

.about-image-wrap {
    grid-area: image;
    position: relative;
    justify-self: center;
    align-self: center;
}

.about-body {
    grid-area: body;
}

.about-image {
    width: 360px;
    height: 360px;
    border-radius: 32px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 48px var(--shadow-color-strong);
    position: relative;
    z-index: 1;
}

.about-image-wrap::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 40px;
    background: var(--gradient-1);
    opacity: 0.25;
    z-index: 0;
    filter: blur(20px);
}

.about-header .section-badge {
    text-align: left;
}

.about-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
}

.about-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 17px;
    hyphens: auto;
}

.about-body p:last-of-type {
    margin-bottom: 32px;
}

/* Regional Section */
.regional-section {
    background: var(--bg-secondary);
    border-radius: 48px;
    padding: 80px 48px;
    margin: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.regional-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, var(--accent-tint) 0%, transparent 60%);
    pointer-events: none;
}

.regional-content {
    position: relative;
    z-index: 1;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.location-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.location-badge:hover {
    background: var(--accent-tint);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.regional-features {
    list-style: none;
    margin-top: 32px;
}

.regional-features li {
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    color: var(--text-secondary);
}

.regional-features li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 24px;
    flex-shrink: 0;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

.stars {
    color: var(--accent-primary);
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--bg-primary);
}

.author-name {
    font-weight: 700;
    font-size: 16px;
}

.author-role {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 48px;
}

.contact-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--glass-border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.contact-item p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-item a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-secondary);
}

.emergency-box {
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    margin-top: 32px;
}

.emergency-box h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.emergency-box a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 48px;
}

/* Rückmeldung nach dem Absenden des Kontaktformulars */
.form-status {
    margin-bottom: 28px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-status-ok {
    border-color: rgba(79, 209, 174, 0.38);
    background: var(--accent-tint);
    color: var(--text-primary);
}

.form-status-fehler {
    border-color: var(--warn-border);
    background: var(--warn-bg);
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 24px;
}

.form-group select option {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--accent-tint-soft);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 80px 20px 40px;
    margin-top: 120px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 16px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.footer-section h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--text-tertiary);
}


/* Footer: contact block inside the brand column */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.footer-contact-label {
    font-weight: 700;
    color: var(--text-primary);
}

.footer-contact a {
    color: var(--text-secondary);
    width: fit-content;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--accent-primary);
}

/* Footer: service-area line. Outranks `.footer-brand p`. */
.footer-brand .footer-area {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* Footer: opening-hours column */
.footer-hours {
    list-style: none;
}

.footer-hours li {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-hours li strong {
    color: var(--text-primary);
    font-weight: 700;
}

.footer-hours-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Footer partner badge (netcup, affiliate) */
.footer-partner-wrap {
    margin-bottom: 20px;
}

.footer-partner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* The supplied logo is dark teal on a transparent background. On the dark
   theme it is lifted to a soft monochrome so it stays readable without a
   bright backing plate; on the light theme it is left as delivered. */
.footer-partner img {
    display: block;
    width: 88px;
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.footer-partner:hover img {
    opacity: 0.9;
}

:root[data-theme="light"] .footer-partner img {
    filter: none;
    opacity: 0.7;
}

:root[data-theme="light"] .footer-partner:hover img {
    opacity: 1;
}

/* Affiliate disclosure. The second selector outranks `.footer-brand p`,
   which would otherwise override colour and spacing. */
.footer-partner-note,
.footer-brand .footer-partner-note {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-tertiary);
}

.footer-partner-note strong {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid .service-card.large,
    .bento-grid .service-card.medium {
        grid-column: span 12;
    }
    
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "header"
            "body";
        row-gap: 24px;
    }

    .about-header,
    .about-body {
        text-align: left;
        text-wrap: inherit;
        hyphens: auto;
    }

    .about-image-wrap {
        justify-self: center;
    }

    .about-image {
        width: 220px;
        height: 220px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: var(--glass-bg-strong);
        backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        padding: 16px;
        box-shadow: 0 8px 32px var(--shadow-color);
        z-index: 999;
    }

    .nav-links.active li {
        width: 100%;
    }

    .nav-links.active a {
        display: block;
        padding: 12px 8px;
    }

    .nav-links.active .nav-cta {
        text-align: center;
        margin-top: 4px;
    }

    .mobile-menu {
        display: block;
    }
}

/* Anchor scroll offset (keeps fixed nav from covering target section) */
/* Sections already carry their own padding-top, so this only needs to
   top up the difference to the fixed nav's height, not add on top of it. */
section[id] {
    scroll-margin-top: 20px;
}

.regional-section {
    scroll-margin-top: 60px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 80px 20px;
    }

    .regional-section {
        padding: 48px 24px;
        scroll-margin-top: 72px;
    }

    section[id] {
        scroll-margin-top: 40px;
    }
}

/* Scroll Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}