* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Barlow', sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
    /* (moved) Munich Lines color handled in <=48em block */
    overflow-x: hidden;
    position: relative;
}

/* Brand Palette (derived from Hero + SVG gradients) */
:root {
    --clr-primary-600: #1B63D9; /* darker hero wave stop */
    --clr-primary: #2A71FF;     /* main brand blue */
    --clr-primary-light: #69A6FB; /* mid gradient blue */
    --clr-primary-pale: #ADC7FC;  /* pale wave highlight */
    --clr-accent: #FFB82A;        /* warm accent (logo / checks) */
    --clr-accent-light: #FFE5B2;  /* accent light (logo gradient end) */
    --clr-accent-hover: #E6A21F;  /* slightly darker hover */
    --clr-accent-rgb: 255,184,42; /* rgb accent */
    --clr-neutral-900: #37383C;   /* hero heading */
    --clr-neutral-700: #2d3338;   /* body emphasis */
    --clr-bg-section-light: #f5f9ff;
    --clr-bg-section-lighter: #eef4ff;
    --clr-primary-rgb: 42,113,255; /* for rgba() usage */
    /* Underline/deco gradient: Kundenportal blue -> mid blend -> Verwalteranfrage blue */
    --underline-grad: linear-gradient(90deg, #3F72AF 0%, #81A5D1 60%, #C4D7F2 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 20px);
}

/* Navigation */
.navbar {
    --nav-h: clamp(64px, 7.5vw, 96px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
    background: transparent;
    height: var(--nav-h);
}

.navbar.sticky {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.nav-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-decoration svg {
    position: absolute;
    top: 0;
    left: -10%;
    right: 0;
    width: 110%;
    max-width: none;
    min-width: 110%;
    height: 100%;
    transform: translateX(0);
}

.nav-container {
    width: 100%;
    padding: 0 clamp(15px, 2vw, 25px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
    z-index: 2;
    height: 100%;
    box-sizing: border-box;
    gap: clamp(1rem, 2vw, 2rem);
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 10;
    grid-column: 2;
}

.nav-logo-img {
    height: auto;
    width: clamp(140px, 18vw, 240px);
    max-width: 90vw;
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    grid-column: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    transition: all 0.3s ease;
    z-index: 10;
    grid-column: 3;
}

.nav-menu {
    display: flex;
    gap: clamp(2.4rem, 4.5vw, 4rem);
}


.nav-link {
    text-decoration: none;
    color: #2F2B28; /* dark ink for contrast on light greige */
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-stretch: normal;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    /* slightly larger click area and visual spacing */
    padding: 0 clamp(8px, 1vw, 14px);
}

.nav-link:hover {
    color: #F2A900; /* gold accent matching logo */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #F2A900; /* gold underline accent */
    transition: width 0.3s ease;
}


.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background-color: #1a1a1a;
    color: white;
    padding: clamp(120px, 15vw, 180px) 0 clamp(120px, 20vw, 240px);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

/* Hero Logo - links oben, größer als vorher */
/* Hero Logo - no longer used, logo moved to navbar */
.hero-logo {
    display: none;
}

.hero-logo-img {
    display: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* reduced motion handling consolidated below */

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(140px, 16vw, 240px); /* erhöht für mehr Platz */
    overflow: hidden;
    z-index: 3;
}

.hero-wave-bottom svg { position:absolute; bottom:-1px; left:0; width:100%; height:calc(100% + 1px); }

/* Thin inverted wave at top of Services (global, not mobile-only) */
.services-wave-top { position:relative; width:100%; left:0; transform:none; height:clamp(60px, 8vw, 120px); margin-top:-1px; overflow:visible; line-height:0; z-index:2; pointer-events:none; background:transparent; }
/* Vertical mirror of hero wave (no rotation) with min-width for ultra wide */
.services-wave-top svg { position:absolute; left:0; top:0; width:100%; height:100%; display:block; transform:scaleY(-1); transform-origin:center; }
.services-wave-top svg path { transition:opacity .6s ease; }

.hero-scroll-arrow {
    position: absolute;
    bottom: clamp(30px, 8vw, 60px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: #ffffff; /* white arrow */
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.hero-scroll-arrow:hover {
    color: rgba(255,255,255, 0.85);
    transform: translateX(-50%) scale(1.1);
}

.hero-scroll-arrow svg {
    width: clamp(28px, 5vw, 40px);
    height: clamp(28px, 5vw, 40px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-munich-lines {
    position: absolute;
    bottom: 0; /* back to bottom */
    left: 0;
    z-index: 5; /* higher than both waves */
    opacity: 1.0;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: visible;
}

.munich-lines-svg {
    height: clamp(60px, 8vw, 130px); /* slightly increased top for high DPI */
    width: auto;
    /* keep original tint; only add a subtle shadow */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    display: block;
    margin: 0;
    padding: 0;
}
.munich-lines-reflection { position:absolute; top:100%; left:0; transform: scaleY(-1); margin-top:0; opacity:.35; filter: blur(1px) drop-shadow(0 2px 4px rgba(0,0,0,0.08)); mask-image:linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0)); -webkit-mask-image:linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events:none; }

.hero-mitglied-badge {
    position: absolute;
    bottom: 0; /* back to bottom */
    right: clamp(15px, 2vw, 25px);
    z-index: 5; /* higher than both waves */
    opacity: 1.0;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.mitglied-badge-svg {
    height: clamp(50px, 7vw, 90px); /* slightly increased on large */
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    display: block;
    margin: 0;
    padding: 0;
}

.hero-content {
    max-width: clamp(600px, 60vw, 700px); /* responsive max-width */
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    padding-top: clamp(20px, 4vw, 40px); /* responsive top padding */
}

.hero h1 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem); /* kleiner für hohe Skalierung */
    font-weight: bold;
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: clamp(0.9rem, 2vw, 1.2rem); /* kleiner für hohe Skalierung */
    font-weight: 400;
    margin-bottom: clamp(0.8rem, 1.5vw, 1rem);
    color: #ffffff;
}

/* Responsive, balanced hero line breaks */
.hero-intro-title { text-wrap: balance; text-wrap: pretty; hyphens: auto; }
.hero-intro-sub { text-wrap: balance; text-wrap: pretty; hyphens: auto; }

/* Hero Intro Pure Fade (verhindert Flash) */
.hero-intro-title, .hero-intro-sub { opacity:0; visibility:hidden; will-change: opacity; }
@keyframes heroFadeOpacity { 0% {opacity:0;} 100% {opacity:1;} }
.hero-intro-title.hero-in, .hero-intro-sub.hero-in { visibility:visible; }
.hero-intro-title.hero-in { animation: heroFadeOpacity 1.4s ease-out forwards; }
.hero-intro-sub.hero-in { animation: heroFadeOpacity 1.4s ease-out .28s forwards; }
@media (prefers-reduced-motion: reduce) {
    .hero { background-attachment: scroll !important; }
    .hero-intro-title, .hero-intro-sub { opacity:1; visibility:visible; animation:none !important; }
    .services-header .section-title,
    .services-header .section-subtitle { animation: none !important; opacity:1 !important; transform:none !important; }
    .service-li-hidden { opacity:1; transform:none; }
    .service-li-in { animation:none !important; }
}

.hero-buttons {
    display: flex;
    gap: clamp(0.8rem, 2vw, 1.2rem); /* kleinere Gaps für hohe Skalierung */
    justify-content: flex-start;
    flex-wrap: wrap;
    align-self: flex-start;
    margin-top: clamp(0.3rem, 1vw, 1rem); /* weniger margin für hohe Skalierung */
    position: relative;
    z-index: 15;
}

/* Desktop 2x2 Grid Layout */
@media (min-width: 768px) {
    .hero-buttons {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: clamp(0.8rem, 2vw, 1.2rem);
        justify-content: flex-start;
        width: fit-content;
    }
}

/* Hero Buttons: gleiche Schrift wie Navbar, etwas größer (nicht fett) */
.hero-buttons .btn {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.1rem); /* eine Stufe größer */
    font-weight: 500; /* Standardgewicht beibehalten */
    position: relative;
    z-index: 15; /* doppelt abgesichert für 150% */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 32px);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: clamp(128px, 16ch, 176px);
    will-change: transform;
    overflow: visible;
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
}

/* focus handled by browser defaults */

.btn-primary {
    /* Light Blue - same as Online-Formulare */
    background: rgba(90, 127, 227, 0.85);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 1.0;
    backdrop-filter: blur(var(--blur-md));
    box-shadow: var(--shadow-button-primary);
}

.btn-primary:hover {
    background: rgba(71, 104, 200, 0.9);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-primary-hover);
}

.btn-secondary {
    /* Light Blue - same as Online-Formulare */
    background: rgba(90, 127, 227, 0.85);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 1.0;
    backdrop-filter: blur(var(--blur-md));
    box-shadow: var(--shadow-button-primary);
}

.btn-secondary:hover {
    background: rgba(71, 104, 200, 0.9);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-primary-hover);
}

.btn-orange {
    /* Online-Formulare - Hell Blue (matching Anfrage Angebot color) */
    background: rgba(90, 127, 227, 0.85);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 1.0;
    backdrop-filter: blur(var(--blur-md));
    box-shadow: var(--shadow-button-primary);
}

.btn-orange:hover {
    background: rgba(71, 104, 200, 0.9);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-primary-hover);
}

/* Anfrage Angebot: Light Blue - same as others */
.btn-teal {
    background: rgba(90, 127, 227, 0.85);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 1.0;
    backdrop-filter: blur(var(--blur-md));
    box-shadow: var(--shadow-button-primary);
}

.btn-teal:hover {
    background: rgba(71, 104, 200, 0.9);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-primary-hover);
}

/* removed unused .btn-login */

/* transition section removed */



/* Services Section */
.services {
    padding: 0 0 80px;
    margin-top: 0;
    background: url('marienplatzmorning.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

/* Subtle radial glows (left cool, right warm) - now above overlay */
.services::before { content:''; position:absolute; pointer-events:none; z-index:1; top:-140px; left:-180px; width:560px; height:560px; background:radial-gradient(circle at center, rgba(var(--clr-primary-rgb),0.15), rgba(var(--clr-primary-rgb),0) 70%); filter:blur(70px); opacity:.45; }

/* Ensure content sits above overlay and glow */
.services > .container, .services-wave-top { position:relative; z-index:2; }
.services > .container { padding-top: clamp(40px, 8vw, 60px); }

/* Globale Services Header Styles (Desktop & Standard) */
.services-header {
    max-width: 1050px;
    margin: 0 auto 50px auto;
    text-align: center;
}

/* Center underline for services heading */
.services-header .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4rem); /* größer als zuvor */
    font-weight: 700;
    color: #37383C;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    margin-top: 16px;
    border-radius: 2px;
    background: var(--underline-grad);
    opacity: 0.85;
}

.section-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    /* Use primary brand color variable */
    color: var(--clr-primary);
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Prominenter Einleitungstext unter Leistungen */
.intro-core-statement {
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    line-height: 1.65;
    font-weight: 500;
    color: #2d3338;
    background: transparent;
    padding: 0;
    border: none;
    border-left: 3px solid var(--clr-primary);
    padding-left: 20px;
    position: relative;
    box-shadow: none;
    margin-bottom: 28px;
}

.intro-core-statement::after {
    content: none;
}

/* Verbesserte Highlight-Liste */
.enhanced-highlights {
    --col-gap: 38px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px var(--col-gap);
    margin-bottom: 10px;
}

.enhanced-highlights li {
    background: #ffffff;
    padding: 14px 18px 14px 56px;
    border-radius: 12px;
    position: relative;
    font-size: 0.93rem;
    line-height: 1.35;
    color: #2f3438;
    box-shadow: 0 2px 6px -2px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
    border: 2px solid rgba(var(--clr-primary-rgb),0.07);
    transition: border-color 0.35s ease, background-color 0.35s ease, color 0.35s ease;
    overflow: hidden;
}

.enhanced-highlights li::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    /* Fixed brand blue circle with white check */
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><circle cx='10' cy='10' r='10' fill='%232A71FF'/><path d='M6 10.5l2.5 2.5L14 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/20px 20px no-repeat;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
    transition: transform 0.5s cubic-bezier(.16,.84,.36,1), filter 0.5s ease;
}

.enhanced-highlights li::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 40%, rgba(255,184,42,0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.enhanced-highlights li:hover {
    /* Keep original white background, only outline changes */
    border-color: var(--clr-primary);
}

.enhanced-highlights li:hover::after {
    opacity: 1;
}

/* Icon gentle pop on hover */
.enhanced-highlights li:hover::before {
    transform: translateY(-50%) scale(1.1) rotate(-2deg);
    filter: drop-shadow(0 4px 8px rgba(var(--clr-primary-rgb),0.45));
}

/* Smooth Entrance Animation (Scale + Fade + Up) */
@keyframes floatFadeUp {
    0% { opacity: 0; transform: translateY(28px) scale(0.96); filter: blur(3px); }
    60% { opacity: 1; transform: translateY(-4px) scale(1.01); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-float-in {
    animation: floatFadeUp 0.85s cubic-bezier(.16,.84,.36,1) forwards;
}

/* Variation delays für Highlights */
.enhanced-highlights li.animate-float-in { animation-duration: 0.75s; }
.enhanced-highlights li:nth-child(1).animate-float-in { animation-delay: .05s; }
.enhanced-highlights li:nth-child(2).animate-float-in { animation-delay: .15s; }
.enhanced-highlights li:nth-child(3).animate-float-in { animation-delay: .25s; }
.enhanced-highlights li:nth-child(4).animate-float-in { animation-delay: .35s; }
.enhanced-highlights li:nth-child(5).animate-float-in { animation-delay: .45s; }

/* Alternative weicher Slide-Up (für spätere Nutzung) */
/* Sanfte reine Opacity-Fades für Highlights */
.enhanced-highlights.use-soft li.animate-soft-in { animation: heroFadeOpacity 0.95s ease-out forwards; }
.enhanced-highlights.use-soft li:nth-child(1).animate-soft-in { animation-delay:.06s; }
.enhanced-highlights.use-soft li:nth-child(2).animate-soft-in { animation-delay:.16s; }
.enhanced-highlights.use-soft li:nth-child(3).animate-soft-in { animation-delay:.26s; }
.enhanced-highlights.use-soft li:nth-child(4).animate-soft-in { animation-delay:.36s; }
.enhanced-highlights.use-soft li:nth-child(5).animate-soft-in { animation-delay:.46s; }

/* Animations global (nicht nur mobile) */
.pre-animate, .contact-content, .intro-highlights li, .services-header {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Service-Main mit sanfterer Animation */
.service-main {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
}

/* New three-pillar layout */
.services-pillars { 
    display: grid; 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: 0; 
    position: relative; 
    z-index: 2;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px -8px rgba(17,45,78,0.12);
}

.pillar { 
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    padding: clamp(35px, 4vw, 50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

/* Abwechselnd: 1 & 3 Blau, 2 Weiß */
.pillar:nth-child(1),
.pillar:nth-child(3) {
    background: linear-gradient(160deg, rgba(17,45,78,0.85) 0%, rgba(17,45,78,0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(17, 45, 78, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #e8eef6;
}

.pillar:nth-child(2) {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(63, 114, 175, 0.08);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #2d3338;
}

.pillar:last-child {
    border-right: none;
}

.pillar:hover { 
    transform: translateY(-6px);
}

.pillar:nth-child(1):hover,
.pillar:nth-child(3):hover {
    box-shadow: 0 12px 32px rgba(17, 45, 78, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pillar:nth-child(2):hover {
    box-shadow: 0 12px 32px rgba(31, 38, 135, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pillar-title { 
    font-family: 'Roboto', sans-serif; 
    font-size: clamp(1.25rem, 2.2vw, 1.6rem); 
    font-weight: 700;
    margin: 0 0 10px;
}

/* Blaue Pillars: Weißer Titel */
.pillar:nth-child(1) .pillar-title,
.pillar:nth-child(3) .pillar-title {
    color: #ffffff;
}

/* Weiße Pillar: Dunkler Titel */
.pillar:nth-child(2) .pillar-title {
    color: #37383C;
}

.pillar-title::after { 
    display: none;
}
.pillar-body { 
    font-size: 1.02rem; 
    line-height: 1.6;
    flex: 1;
}

/* Blaue Pillars: Helle Textfarbe */
.pillar:nth-child(1) .pillar-body,
.pillar:nth-child(3) .pillar-body {
    color: #e8eef6;
}

/* Weiße Pillar: Dunkle Textfarbe */
.pillar:nth-child(2) .pillar-body {
    color: #575c63;
}

.pillar-body h4 { 
    font-size: 1.05rem;
    margin: 14px 0 8px;
    font-weight: 600;
}

/* Blaue Pillars: Weiße h4 */
.pillar:nth-child(1) .pillar-body h4,
.pillar:nth-child(3) .pillar-body h4 {
    color: #ffffff;
}

/* Weiße Pillar: Dunkle h4 */
.pillar:nth-child(2) .pillar-body h4 {
    color: #2d3338;
}

.pillar-body ul { margin: 0 0 8px 0; padding-left: 0; list-style: none; }
.pillar-body li { margin: 6px 0; position: relative; padding-left: 18px; }

/* Blaue Pillars: Helle Bullets */
.pillar:nth-child(1) .pillar-body li::before,
.pillar:nth-child(3) .pillar-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Weiße Pillar: Dunkle Bullets */
.pillar:nth-child(2) .pillar-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C5CDD9;
    border: 1px solid #AEB8C8;
}

@media (max-width: 75em) {
    .services-pillars { 
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }
    .pillar:nth-child(2) {
        border-right: none;
    }
    .pillar:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 48em) {
    .services-pillars { 
        grid-template-columns: 1fr;
        gap: 0;
    }
    .pillar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: auto;
        padding: clamp(28px, 6vw, 40px);
    }
    .pillar:last-child {
        border-bottom: none;
    }
}

.service-main {
    padding: 60px 40px;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.service-main:hover {
    background-color: #f8f9fa;
}

.service-main h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #37383C;
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-main h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin-top: 10px;
    border-radius: 3px;
    background: var(--underline-grad);
}

.service-main p {
    color: #575c63;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Detaillierte Leistungslisten */
.service-list {
    list-style: none;
    margin: 0 0 25px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #34373b;
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    /* Brand primary bullet */
    color: var(--clr-primary);
    font-weight: 700;
    line-height: 1.2;
}

.service-main ul + .service-link {
    margin-top: 5px;
    display: inline-block;
}

.service-link {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.service-link:hover {
    border-bottom-color: var(--clr-accent);
}

/* References Section */
.references {
    padding: 90px 0 100px;
    position: relative;
    background: 
        linear-gradient(160deg, rgba(17,45,78,0.92) 0%, rgba(17,45,78,0.98) 100%),
        radial-gradient(circle at 65% 10%, rgba(219,226,239,0.28) 0%, rgba(205,213,223,0.12) 45%, rgba(17,45,78,0) 75%),
        radial-gradient(circle at 15% 85%, rgba(237,239,243,0.18), rgba(237,239,243,0) 70%);
    background-color: #0f274b;
    overflow: hidden;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--clr-accent) 0%, #FFB82A 50%, var(--clr-accent) 100%) 1;
    border-image-slice: 1 0 1 0;
}
.references::before { display: none; }
.references::after { display: none; }

/* References Redesign */
.references-header { text-align:center; max-width:900px; margin:0 auto 54px; position:relative; z-index:2; }
.references-title { 
    font-family:'Roboto',sans-serif; 
    font-size:clamp(2.4rem,4.6vw,3.3rem); 
    font-weight:700; 
    color:#F5F8FF; 
    letter-spacing:-.01em; 
    margin-bottom:14px; 
    opacity:0; 
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    line-height:1.07; 
}
.references-title::after { content:''; display:block; width:80px; height:4px; margin:16px auto 0; border-radius:3px; background: var(--underline-grad); }
.references-sub { 
    font-size:1.08rem; 
    color: rgba(239, 244, 255, 0.88); 
    opacity:0; 
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    letter-spacing:.5px; 
}
.references-title.hero-in, .references-sub.hero-in { 
    opacity: 1;
    transform: translateY(0);
}
.ref-cards { display:grid; gap:32px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); position:relative; z-index:2; }
.reference-card { position:relative; display:block; border-radius:18px; overflow:hidden; min-height:270px; text-decoration:none; background:#e2eaf4; box-shadow:0 6px 20px -8px rgba(0,0,0,.15),0 2px 6px rgba(0,0,0,.06); isolation:isolate; transform:translateY(0) scale(1); transition:transform .75s cubic-bezier(.16,.84,.36,1), box-shadow .55s ease, filter .6s ease; will-change:transform; border:1px solid rgba(var(--clr-primary-rgb),0.08); backdrop-filter: saturate(130%) brightness(1.02); -webkit-backdrop-filter: saturate(130%) brightness(1.02); }
.reference-card:focus-visible { outline:3px solid var(--clr-primary); outline-offset:3px; }
.ref-img { position:absolute; inset:0; background-size:cover; background-position:center; filter:brightness(.88) contrast(1.02); transition:transform 1.2s ease, filter .6s ease; }
.ref-overlay { position:absolute; inset:0; background:linear-gradient(180deg,rgba(32,54,89,0.15) 0%,rgba(24,37,60,0.55) 85%); opacity:.88; mix-blend-mode:multiply; transition:opacity .6s ease; }
.ref-content { position:absolute; left:0; right:0; bottom:0; padding:28px 28px 26px; display:flex; flex-direction:column; gap:6px; z-index:2; }
.reference-card .ref-title { font-size:1.15rem; font-weight:600; color:#fff; line-height:1.3; margin:0; }
.reference-card .ref-type { font-size:.8rem; letter-spacing:1px; text-transform:uppercase; font-weight:500; color:rgba(255,255,255,0.75); }
.reference-card::after { content:''; position:absolute; inset:0; background:radial-gradient(circle at 75% 20%,rgba(255,184,42,0.18),rgba(var(--clr-primary-rgb),0) 60%); opacity:0; transition:opacity .8s ease; }
.reference-card:hover { transform:translateY(-8px) scale(1.035); box-shadow:0 14px 34px -10px rgba(0,0,0,.35),0 6px 14px -4px rgba(0,0,0,.18); }
.reference-card:hover .ref-img { transform:scale(1.12); filter:brightness(.98); }
.reference-card:hover .ref-overlay { opacity:.55; }
.reference-card:hover::after { opacity:1; }

/* Gentle fade-in for cards - angepasst an Service-Animationen */
.reference-card { 
    opacity: 0; 
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reference-card.ref-in { 
    opacity: 1; 
    transform: translateY(0);
}
.ref-cards .reference-card:nth-child(1).ref-in { transition-delay: .05s; }
.ref-cards .reference-card:nth-child(2).ref-in { transition-delay: .15s; }
.ref-cards .reference-card:nth-child(3).ref-in { transition-delay: .25s; }
.ref-cards .reference-card:nth-child(4).ref-in { transition-delay: .35s; }

/* Team Section */
.team {
    padding: 100px 0 120px;
    position: relative;
    background: linear-gradient(180deg, #f8fbff 0%, #d4e4f8 100%);
    overflow: visible;
}

.team::before { display: none; }
.team::after { display: none; }

.team-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 2;
}

.team-header .section-title {
    margin-bottom: 15px;
}

.team-header .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.team-header .section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0;
}

.team-intro {
    max-width: 640px;
    margin: 0;
    position: relative;
    z-index: 2;
}

.team-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin: 0 auto clamp(55px, 6vw, 82px);
    width: 100%;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px -8px rgba(17, 45, 78, 0.12);
    border: 1px solid rgba(42, 113, 255, 0.08);
}

.team-profile.in-view {
    opacity: 1;
    transform: translateY(0);
}

.team-profile::before {
    content: '';
    position: absolute;
    top: -12%;
    right: -10%;
    height: clamp(200px, 32vw, 320px);
    width: clamp(200px, 32vw, 320px);
    background: radial-gradient(circle at center, rgba(var(--clr-primary-rgb), 0.1), rgba(var(--clr-primary-rgb), 0));
    filter: blur(56px);
    opacity: 0.48;
    pointer-events: none;
    z-index: -1;
}

.team-profile .team-intro {
    max-width: 100%;
    width: 100%;
    text-align: left;
    align-self: stretch;
    position: relative;
    padding: clamp(20px, 3vw, 40px);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.team-profile .team-intro::before {
    content: '"';
    position: absolute;
    left: clamp(20px, 3vw, 40px);
    top: -10px;
    font-size: clamp(4rem, 8vw, 6rem);
    font-family: 'Georgia', serif;
    color: var(--clr-primary);
    opacity: 0.15;
    line-height: 1;
}

.team-profile .intro-core-statement {
    margin-bottom: 0;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.7;
    font-style: italic;
    color: #37383C;
    position: relative;
    overflow-wrap: anywhere;
    word-break: break-word;
        text-align: justify;
        hyphens: auto;
        padding-right: clamp(4px, 1vw, 12px);
        padding-left: clamp(4px, 1vw, 12px);
    max-width: 100%;
    margin-bottom: clamp(22px, 3.5vw, 32px);
}

.team-portrait {
    margin: 0;
    position: relative;
    background: linear-gradient(160deg, rgba(17,45,78,0.85) 0%, rgba(17,45,78,0.92) 100%);
    padding: clamp(35px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 14px);
    align-items: center;
    justify-content: center;
    width: 100%;
    align-self: stretch;
    text-align: center;
}

.team-portrait::after {
    display: none;
}

.team-portrait-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: block;
}

.team-portrait-caption {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    letter-spacing: 0.4px;
    padding: 0 clamp(4px, 1vw, 8px);
}

/* Ensure caption lines and emphasis */
.team-portrait-caption .caption-role { display:block; opacity:0.95; font-weight:500; white-space: normal; }
.team-portrait-caption .caption-names { display:block; font-weight:600; margin-top: 2px; white-space: normal; }

.team-stats {
    padding: clamp(50px, 7vw, 80px) 0;
    margin: clamp(40px, 5vw, 60px) 0 clamp(40px, 5vw, 60px) 0;
    position: relative;
    background: 
        linear-gradient(160deg, rgba(17,45,78,0.92) 0%, rgba(17,45,78,0.98) 100%),
        radial-gradient(circle at 65% 10%, rgba(219,226,239,0.28) 0%, rgba(205,213,223,0.12) 45%, rgba(17,45,78,0) 75%),
        radial-gradient(circle at 15% 85%, rgba(237,239,243,0.18), rgba(237,239,243,0) 70%);
    background-color: #0f274b;
    overflow: hidden;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--clr-accent) 0%, #FFB82A 50%, var(--clr-accent) 100%) 1;
    border-image-slice: 1 0 1 0;
}
.team-stats::before { display: none; }
.team-stats::after { display: none; }

.stats-text {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: #F5F8FF;
    text-align: center;
    font-weight: 400;
}

.team-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    align-items: stretch;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px -8px rgba(17,45,78,0.12);
}

.value-item {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: clamp(35px, 4vw, 50px);
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease, background 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 280px;
}

/* Vierfeldertafel: 1 & 4 Blau, 2 & 3 Weiß */
.value-item:nth-child(1),
.value-item:nth-child(4) {
    /* Blau - Items 1, 4 */
    background: linear-gradient(160deg, rgba(17,45,78,0.85) 0%, rgba(17,45,78,0.92) 100%);
    color: #e8eef6;
}

.value-item:nth-child(2),
.value-item:nth-child(3) {
    /* Weiß - Items 2, 3 */
    background: rgba(255, 255, 255, 0.95);
    color: #2d3338;
}

/* Keine orangenen Dots */
.value-item::before {
    display: none;
}

.value-item:hover {
    transform: translateY(-6px);
}

/* Hover für weiße Boxen */
.value-item:nth-child(2):hover,
.value-item:nth-child(3):hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.15);
}

/* Hover für blaue Boxen */
.value-item:nth-child(1):hover,
.value-item:nth-child(4):hover {
    background: linear-gradient(160deg, rgba(17,45,78,0.9) 0%, rgba(17,45,78,0.97) 100%);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.25);
}

/* .value-item visibility now handled by generic .in-view */

.value-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #2d3338;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Titel-Farbe für blaue Boxen (1 & 4) */
.value-item:nth-child(1) .value-title,
.value-item:nth-child(4) .value-title {
    color: #ffffff;
}

.value-title::after {
    content: '';
    display: block;
    width: 45px;
    height: 4px;
    margin-top: 12px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--clr-accent) 0%, #FFB82A 100%);
}

.value-description {
    color: #3f4447;
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-weight: 400;
}

/* Beschreibung-Farbe für blaue Boxen (1 & 4) */
.value-item:nth-child(1) .value-description,
.value-item:nth-child(4) .value-description {
    color: #d4dce8;
}

.team-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.cta-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #37383C;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Team animation states - similar to other sections */
.team-header, .team-cta {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Team visibility now handled by generic .in-view */

/* Team responsive breakpoints */
@media (max-width: 75em) {
    .team-profile {
        gap: clamp(24px, 5vw, 38px);
    }
    .team-values {
        gap: 0;
    }
}

@media (max-width: 48em) {
    .team-profile {
        grid-template-columns: 1fr;
        align-items: stretch;
        margin-bottom: clamp(45px, 9vw, 70px);
        gap: 0;
        border-radius: 16px;
        border: 1px solid rgba(17, 45, 78, 0.08);
        box-shadow: 0 4px 24px -8px rgba(17, 45, 78, 0.18);
        overflow: hidden;
        padding: 0;
        background: #fff;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .team-profile .team-intro {
        padding: clamp(28px, 7vw, 40px);
        display: block;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid rgba(17, 45, 78, 0.08);
    }
    .team-profile .team-intro::before {
        font-size: clamp(3rem, 12vw, 5rem);
        top: -5px;
        left: clamp(12px, 3vw, 18px);
    }
    .team-profile::before {
        display: none;
    }
    .team-portrait {
        align-self: stretch;
        padding: clamp(18px, 4vw, 28px);
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
    }
    .team-portrait-img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        max-width: 100%;
    }
    .team-portrait-caption {
        font-size: 0.88rem;
        padding: 0 clamp(8px, 2vw, 12px);
        max-width: calc(100% - 4px);
        overflow: hidden;
        word-wrap: break-word;
        line-height: 1.4;
    }
    .team-values {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .value-item {
        padding: clamp(28px, 6vw, 40px);
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: auto;
    }
    .value-item:last-child {
        border-bottom: none;
    }
}

/* Team Wave Bottom - matches hero-wave-bottom pattern */
.team-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(100px, 12vw, 180px);
    overflow: visible;
    z-index: 3;
}

.team-wave-bottom img {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: calc(100% + 1px);
    object-fit: fill;
    display: block;
}

.team-wave-bottom svg {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: calc(100% + 1px);
    display: block;
}

/* Contact Section Redesigned */
.contact { padding:0 0 110px; position:relative; background:linear-gradient(180deg,#ffffff 0%,#f5f9ff 55%,#eef4ff 100%); overflow:visible; }
.contact::before { content:none; }
.contact::after { content:''; position:absolute; bottom:-180px; right:-200px; width:680px; height:680px; background:radial-gradient(circle at center, rgba(255,184,42,0.26), rgba(255,184,42,0) 70%); filter:blur(80px); opacity:.5; pointer-events:none; }

/* Contact Wave Top - matches services-wave-top pattern with mirrored wave */
.contact-wave-top {
    position: relative;
    height: clamp(60px, 8vw, 120px);
    overflow: visible;
    z-index: 2;
    margin-top: -2px;
    margin-bottom: -1px;
}

.contact-wave-top img {
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleY(-1);
    transform-origin: center;
    object-fit: fill;
}

.contact-wave-top svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleY(-1);
    transform-origin: center;
}
.contact-content { display:grid; grid-template-columns:1fr 1fr; gap:clamp(50px,5vw,80px); align-items:start; position:relative; z-index:2; }
.contact-title.section-title { font-size:clamp(2.4rem,4.6vw,3.2rem); margin-bottom:40px; }
.contact-title.section-title::after { margin-top:16px; }
.contact-details { display:flex; flex-direction:column; gap:28px; }
.contact-item p { color:#2d3338; line-height:1.55; font-size:1.05rem; margin:0; }
.contact-item a { color:var(--clr-primary); text-decoration:none; font-weight:500; position:relative; background-image:linear-gradient(90deg,var(--clr-primary),var(--clr-primary-light) 60%,var(--clr-accent)); background-size:0% 2px; background-position:0 100%; background-repeat:no-repeat; transition:color .35s ease, background-size .5s ease; }
.contact-item a:hover { color:var(--clr-neutral-900); background-size:100% 2px; }
/* Form Panel */
.contact-form { background:#ffffff; padding:48px 44px 50px; border-radius:22px; position:relative; box-shadow:0 8px 28px -10px rgba(0,0,0,0.12),0 2px 10px -2px rgba(0,0,0,0.06); border:2px solid rgba(var(--clr-primary-rgb),0.10); overflow:hidden; }
.contact-form::before, .contact-form::after { content:none; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-bottom:12px; }
.contact-form input, .contact-form textarea { width:100%; padding:16px 18px 15px; border:2px solid rgba(var(--clr-primary-rgb),0.2); border-radius:12px; font-size:1rem; transition:border-color .35s ease, box-shadow .35s ease, background-color .35s ease; font-family:'Barlow', sans-serif; background:linear-gradient(145deg, rgba(255,255,255,0.9), rgba(250,252,255,0.85)); margin-bottom:18px; color:#2d3338; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color:#88939e; }
.contact-form input:focus, .contact-form textarea:focus { outline:none; border-color:var(--clr-primary); box-shadow:0 0 0 4px rgba(var(--clr-primary-rgb),0.15); background:linear-gradient(145deg, rgba(255,255,255,0.95), rgba(245,248,255,0.9)); }
.contact-form textarea { resize:vertical; min-height:150px; }
.contact-submit { margin-top:6px; box-shadow:0 4px 14px -4px rgba(var(--clr-primary-rgb),0.45); }
.contact-submit:hover { box-shadow:0 8px 24px -6px rgba(var(--clr-primary-rgb),0.55); }
/* Contact animation states */
.contact-info, .contact-form { opacity:0; transform:translateY(25px); transition:opacity .7s ease, transform .7s ease; }
/* Contact visibility now handled by generic .in-view */

/* Footer */
.footer { position:relative; background:
    /* Darker navy base, de-saturated overlays to echo hero */
    linear-gradient(160deg, rgba(17,45,78,0.92) 0%, rgba(17,45,78,0.98) 100%),
    radial-gradient(circle at 65% 10%, rgba(219,226,239,0.28) 0%, rgba(205,213,223,0.12) 45%, rgba(17,45,78,0) 75%),
    radial-gradient(circle at 15% 85%, rgba(237,239,243,0.18), rgba(237,239,243,0) 70%);
    background-color:#0f274b;
    color:#dbe4ef; padding:70px 0 28px; overflow:hidden; }
.footer-top-gradient { position:absolute; top:0; left:0; right:0; height:6px; background: var(--underline-grad); opacity:.85; box-shadow:0 4px 12px -4px rgba(0,0,0,.4); z-index:3; }

.footer-content {
        display:grid;
        grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
        gap: clamp(32px,4vw,60px);
        margin-bottom: clamp(40px,5vw,70px);
        position:relative;
        z-index:2;
}

.footer-section h3 {
    font-size:1.75rem;
    font-weight:700;
    margin-bottom:6px;
    letter-spacing:-0.5px;
    background:linear-gradient(90deg,#ffffff,#d2e2ff 60%, #C5CDD9 95%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.footer-section h4 {
    font-size:1.05rem;
    font-weight:600;
    margin-bottom:14px;
    color:var(--clr-accent);
    letter-spacing:.5px;
    text-transform:uppercase;
    position:relative;
}
.footer-section h4::after { content:''; position:absolute; left:0; bottom:-6px; width:52px; height:3px; border-radius:2px; background: var(--underline-grad); opacity:.9; }

.footer-section p {
        color:#a9b4c2;
        margin-bottom:10px;
        font-size:.92rem;
        line-height:1.5;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
        margin-bottom:9px;
        font-size:.9rem;
        position:relative;
}

.footer-section ul li a { color:#b6c4d1; text-decoration:none; display:inline-block; position:relative; padding-bottom:2px; background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 100%); background-size:0% 2px; background-repeat:no-repeat; background-position:0 100%; transition:color .4s ease, transform .35s ease, background-size .45s ease; }
.footer-section ul li a:hover { color:#ffffff; transform:translateX(4px); background-image: var(--underline-grad); background-size:100% 2px; }

.footer-bottom {
        border-top:1px solid rgba(255,255,255,0.08);
        padding-top:20px;
        text-align:center;
        color:#8f9aa6;
        font-size:.75rem;
        letter-spacing:.5px;
        position:relative;
        z-index:2;
}

/* Footer specific extras */
.footer::before { content:''; position:absolute; inset:0; background:linear-gradient(150deg,rgba(219,226,239,0.2),rgba(197,205,217,0.1)); mix-blend-mode:overlay; pointer-events:none; }
.footer::after { content:''; position:absolute; right:-120px; top:-160px; width:520px; height:520px; background:radial-gradient(circle at center,rgba(219,226,239,0.22),rgba(219,226,239,0) 70%); filter:blur(70px); opacity:.4; pointer-events:none; }

/* Footer wave background */
.footer-wave-bg { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center; pointer-events:none; opacity:.25; mix-blend-mode:overlay; }
.footer-wave-img { position:absolute; left:0; bottom:0; width:100%; max-width:none; height:auto; transform:translateY(8%); filter:blur(1px); pointer-events:none; }

.footer-logo-text { font-size:clamp(1.9rem,3.2vw,2.4rem); margin-bottom:4px; }
.footer-tagline-main { font-size:.95rem; font-weight:500; color:var(--clr-accent); letter-spacing:.5px; margin-bottom:4px; }
.footer-tagline-sub { font-size:.78rem; font-weight:400; letter-spacing:.5px; color:#94a1af; }

.footer-links ul li a::before, .footer-legal ul li a::before { content:'›'; position:absolute; left:-14px; opacity:0; transform:translateX(-6px); transition:all .45s cubic-bezier(.16,.84,.36,1); font-size:.8rem; color:var(--clr-primary); }
.footer-links ul li a:hover::before, .footer-legal ul li a:hover::before { opacity:1; transform:translateX(0); }

.footer-contact ul li { padding-left:0; }
.footer-copy { margin:0; }

@media (max-width: 48em){
    .footer { padding:60px 0 24px; }
    .footer-logo-text { font-size:2rem; }
}

@media (max-width: 32.5em){
    .footer::after { width:360px; height:360px; right:-140px; top:-120px; }
}

/* Responsive Design */
/* Größere Bildschirme - bessere Skalierung */
@media (min-width: 87.5em) {
    .navbar { padding: 0.4rem 0; --nav-h: clamp(72px, 6vw, 110px); height: var(--nav-h); }
    
    .nav-menu {
        gap: 4rem;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }

    .hero h1 {
        font-size: 4.5rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero-content {
        max-width: 800px;
    }
    
    /* Hero Logo größer auf sehr großen Bildschirmen */
    .hero-logo-img {
        width: clamp(250px, 24vw, 350px);
    }

    /* Leistungen breiter auf sehr großen Screens */
    .services .container {
        max-width: 1500px;
        padding-inline: 50px; /* horizontal padding only; top from base clamp */
    }
    .services {
        padding: 0 0 90px; /* no top padding to keep wave connection */
    }
    .service-main {
        padding: 60px 55px;
    }
}

@media (min-width: 75em) and (max-width: 87.4375em) {
    .services .container {
        max-width: 1350px;
    padding-inline: 40px; /* horizontal padding only; top from base clamp */
    }
    .services {
        padding: 0 0 85px; /* no top padding to keep wave connection */
    }
    .service-main {
        padding: 55px 50px;
    }
}

/* Desktop: scale navbar/logo a bit larger (covers 1400–1599px) */
@media (min-width: 87.5em) and (max-width: 99.9375em) {
    .navbar { --nav-h: clamp(96px, 7vw, 112px); height: var(--nav-h); }
    /* Logo is now in hero */
}

@media (min-width: 100em) {
    .navbar { padding: 0.4rem 0; --nav-h: clamp(104px, 6vw, 128px); height: var(--nav-h); }
    /* Logo is now in hero */
    .services .container { max-width: 1650px; padding-inline: 60px; }
    .services { padding: 0 0 90px; }
    .service-main { padding: 65px 60px; }
}

@media (max-width: 48em) {
    .navbar {
    padding: clamp(0.3rem, 0.8vw, 0.5rem) 0;
    /* unify mobile height via CSS var */
    --nav-h: clamp(76px, 16vw, 110px);
    }
    
    /* Mobile Navigation bleibt immer sichtbar */
    .navbar.sticky {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0 clamp(15px, 3vw, 20px);
        position: relative;
    }
    
    .nav-left,
    .nav-right {
        position: fixed;
        left: -100%;
        top: var(--nav-h);
        display: flex;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 30px 0;
        gap: 1.5rem;
        transform: none;
        z-index: 98;
    }
    
    .nav-left.active,
    .nav-right.active {
        left: 0;
    }
    
    .nav-left {
        height: auto;
        padding-bottom: 0;
    }
    
    .nav-right {
        top: calc(var(--nav-h) + 150px);
        height: auto;
        box-shadow: none;
    }
    
    .nav-logo {
        grid-column: unset;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-toggle { 
        display: flex; 
        z-index: 1002;
        margin-left: auto;
    }

    /* When mobile menu is open, extend nav-decoration across full width */
    .navbar.menu-open .nav-decoration svg {
        left: 0;
        right: auto;
        width: 200%;
        transform: none;
        transition: width 0.3s ease;
    }

    /* allow larger logo with increased nav height */
    /* Logo is now in hero, not nav */
    
    /* Hero Logo Mobile */
    .hero-logo {
        top: clamp(6px, 2vw, 12px);
        left: clamp(10px, 3vw, 18px);
        z-index: 1001;
    }
    
    .hero-logo-img {
        width: clamp(140px, 35vw, 220px);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-h);
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 30px 0;
        gap: 1.5rem;
        transform: none;
        height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-left a,
    .nav-right a,
    .nav-menu a {
        color: #2F2B28; /* match desktop for consistency */
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        padding: 0.8rem 0;
        transition: color 0.3s ease;
        text-transform: uppercase;
    }

    .nav-left a:hover,
    .nav-right a:hover,
    .nav-menu a:hover {
        color: #5E7A6A; /* match desktop hover */
    }

    /* duplicate .nav-toggle removed */

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* hero heading sizes adjusted for <=768px */
    .hero h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
    .hero h2 { font-size: clamp(0.9rem, 3vw, 1.1rem); }

    .hero-buttons {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        gap: clamp(0.8rem, 2vw, 1.2rem);
        flex-wrap: wrap;
        margin-top: clamp(1.5rem, 3vw, 2rem);
    }

    .hero-buttons .btn {
        flex: 0 0 auto;
        min-width: clamp(130px, 25vw, 160px);
        padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 28px);
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-main {
        padding: 40px 30px;
    }

    .references-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* .hero-content: no override needed here; mobile-specific tweaks handled in smaller breakpoint */
    /* Mobile-only: make main Munich Lines white; keep reflection dark */
    .hero-munich-lines .munich-lines-svg:not(.munich-lines-reflection) {
        filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    }
}

/* Breite Bildschirme (16:9 Vollbild) */
@media (min-width: 87.5em) {
    .nav-decoration svg {
        width: clamp(1050px, 100vw, 1300px);
        transform: translateX(3%);
    }
    
    .nav-right {
        margin-right: clamp(5rem, 10vw, 8rem);
    }
}

/* Tablet-optimierte Größen */
@media (max-width: 64em) and (min-width: 48.0625em) {
    .navbar { --nav-h: clamp(62px, 8.5vw, 90px); height: var(--nav-h); }
    
    .nav-container {
        padding: 0 clamp(12px, 2vw, 18px);
        gap: clamp(1.5rem, 3vw, 3rem);
    }
    
    .nav-right {
        margin-right: clamp(3rem, 6vw, 5rem);
        gap: clamp(1.5rem, 2.5vw, 2.5rem);
    }
    
    .nav-decoration svg {
        width: 110%;
        min-width: 110%;
        max-width: none;
        left: -10%;
        right: 0;
        transform: translateX(0);
    }
    
    .nav-menu {
        gap: clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .nav-link {
        font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    }
    
    /* Hero Logo Tablet */
    .hero-logo {
        top: clamp(6px, 1.5vw, 12px);
        left: clamp(10px, 2vw, 20px);
        z-index: 1001;
    }
    
    .hero-logo-img {
        width: clamp(160px, 20vw, 260px);
    }

    .hero {
        background-attachment: scroll;
        background-position: 10% 5%;
        padding: clamp(80px, 12vw, 120px) 0 0;
        height: 100dvh;
        min-height: unset;
    }
    
    .hero-wave-bottom {
        height: clamp(80px, 10vw, 120px);
    }
    
    .hero h1 {
        font-size: clamp(3rem, 4.5vw, 3.8rem);
    }
    
    .hero h2 {
        font-size: clamp(1.1rem, 2.2vw, 1.25rem);
    }
    
    .hero-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: clamp(1.2rem, 2vw, 1.8rem);
    width: 100%;
    }
    
    .hero-buttons .btn {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: clamp(12px, 2vw, 15px) clamp(24px, 4vw, 30px);
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    }
    
    .hero-wave-bottom {
        height: clamp(100px, 14vw, 180px);
    }
    
    .hero-munich-lines {
        bottom: 0;
        left: 0;
    }
    
    .munich-lines-svg {
        height: clamp(70px, 12vw, 120px);
    }
    
    .hero-mitglied-badge {
        bottom: 0;
        right: clamp(10px, 2vw, 20px);
    }
    
    .mitglied-badge-svg { height: clamp(40px, 6vw, 65px); }
}

@media (max-width: 30em) {
    .navbar { --nav-h: clamp(56px, 14vw, 68px); height: var(--nav-h); }
    
    .nav-container { padding: clamp(6px, 2.5vw, 10px); gap: clamp(0.8rem, 2vw, 1.4rem); }
    
    .nav-right { margin-right: clamp(0.5rem, 2vw, 1rem); gap: clamp(0.8rem, 2vw, 1.2rem); }
    
    .nav-decoration {
        overflow: hidden;
    }
    
    .nav-decoration svg { 
        width: 100%; 
        min-width: 100%;
        max-width: 100%;
        transform: translateX(0); 
        right: 0;
        left: 0;
    }

    .bar { width: 22px; height: 2.5px; }
    
    .nav-menu {
        gap: clamp(1rem, 3vw, 1.8rem);
    }
    
    /* Hero Logo sehr klein auf kleinen Phones */
    .hero-logo {
        top: clamp(5px, 1.5vw, 10px);
        left: clamp(8px, 2.5vw, 15px);
        z-index: 1001;
    }
    
    .hero-logo-img {
        width: clamp(120px, 32vw, 180px);
    }

    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: 15% 8%;
        padding: 80px 0 0;
        height: 100dvh;
        min-height: unset;
        align-items: flex-start;
    }

    .hero-wave-bottom {
        height: clamp(80px, 10vw, 120px);
    }

    /* smaller phones tweak */
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
    .hero h2 { font-size: clamp(0.8rem, 3.5vw, 1rem); }

    .hero-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        margin-top: clamp(1.2rem, 4vw, 1.8rem);
        width: 100%;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: clamp(8px, 2.5vw, 12px) clamp(16px, 5vw, 24px);
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    }

    .contact-form { padding:34px 26px 38px; }
    /* .form-row mobile layout already defined at <=768px */
    .contact-form input, .contact-form textarea { padding:15px 16px 14px; margin-bottom:16px; }

    .service-main {
        padding: 30px 20px;
    }

    .service-main h2 {
        font-size: 1.6rem;
    }

    .references {
        padding: 60px 0;
    }

    .contact { padding:65px 0 90px; }
    
    /* Team Mobile Styles */
    .team {
        padding: 65px 0 90px;
    }
    
    .value-item {
        padding: 25px 20px;
    }
    
    .value-title {
        font-size: 1.25rem;
    }
    
    .value-description {
        font-size: 1rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }

    /* services header/title inherit global defaults on mobile */

    .services-intro p {
        font-size: 1.05rem;
        line-height: 1.65;
        color: #4a4f55;
        margin-bottom: 18px;
    }

    .intro-highlights {
        list-style: none;
        margin: 0 0 10px 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 10px 35px;
    }

    .intro-highlights li {
        position: relative;
        padding-left: 20px;
        font-size: 0.95rem;
        color: #2f3438;
        line-height: 1.4;
    }

    .intro-highlights li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 6px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
    box-shadow: 0 0 0 2px rgba(var(--clr-primary-rgb),0.12);
    }

    /* Pre-Animation states */
    .pre-animate, .service-main, .contact-content, .intro-highlights li {
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    /* Mobile visibility handled by global .in-view */
    .references h2 {
        font-size: 2rem;
    }

    .contact-info h2 {
        font-size: 2rem;
    }
    
    .hero-wave-bottom {
        height: clamp(80px, 12vw, 150px);
    }
    
    .hero-munich-lines {
        bottom: 0;
        left: 0;
    }
    
    .munich-lines-svg {
        height: clamp(60px, 10vw, 90px);
    }
    
    .hero-mitglied-badge { bottom: 0; right: clamp(8px, 2vw, 15px); }
    .mitglied-badge-svg { height: clamp(35px, 5vw, 50px); }

    /* legal bottom deco adjustments at small phones */
    .legal-bottom-deco { min-height: 130px; }
    .legal-bottom-deco .munich-lines-svg { height: clamp(40px, 10vw, 70px); }
    .legal-bottom-deco .mitglied-badge-svg { height: clamp(36px, 8vw, 60px); }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.animate-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Modal (Formulare) ===== */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px; overflow-y: auto; }
.modal.is-open { display: flex; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(2px); }
.modal-dialog { position: relative; z-index: 1; width: min(680px, 92vw); max-height: calc(100vh - 40px); background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 18px 60px -12px rgba(0,0,0,0.35); border: 2px solid rgba(var(--clr-primary-rgb),0.12); overflow-y: auto; margin: auto; }
.modal-close { position: absolute; top: 10px; right: 12px; background: transparent; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: #6b7280; z-index: 10; }
.modal-title { margin: 0 0 14px; font-size: 1.4rem; font-weight: 700; color: #37383C; padding-right: 30px; }
.modal-form input, .modal-form textarea { width: 100%; padding: 14px 16px; border: 2px solid rgba(var(--clr-primary-rgb),0.2); border-radius: 12px; font-size: 1rem; margin-bottom: 14px; font-family: 'Barlow', sans-serif; transition: border-color .3s ease, box-shadow .3s ease; }
.modal-form input:focus, .modal-form textarea:focus { outline: none; border-color: var(--clr-primary); box-shadow: 0 0 0 4px rgba(var(--clr-primary-rgb),0.12); }

/* Checkbox und Radio Button Styling */
.modal-form input[type="checkbox"],
.modal-form input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--clr-primary);
}

.modal-form .form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    padding: 8px 0;
    line-height: 1.4;
}

.modal-form .form-group > div[style*="flex"] label,
.modal-form .form-group > div[style*="grid"] label {
    margin-bottom: 0;
}

.modal-hint { margin-top: 10px; font-size: .85rem; color: #6b7280; }

/* Mobile Modal Optimierung */
@media (max-width: 768px) {
    .modal { padding: 10px; align-items: flex-start; }
    .modal-dialog { width: 100%; max-height: calc(100vh - 20px); margin-top: 10px; padding: 20px; }
    .modal-title { font-size: 1.2rem; }
    
    /* Checkbox-Grids auf 1 Spalte für bessere Lesbarkeit */
    .modal-form .form-group > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* ========= Leistungen Header Spring Fly-In (Gummiband) ========= */
/* Initial state for title & subtitle (overrides container fade for own timing) */
.services-header .section-title,
.services-header .section-subtitle {
    opacity: 0;
    transform: none;
    will-change: opacity;
}

@keyframes headerFadeUp {
    0% { opacity:0; }
    100% { opacity:1; }
}

/* Reuse class names for simplicity so JS stays untouched */
.spring-in { animation: headerFadeUp 1.1s ease-out forwards; }
.spring-in-delay { animation: headerFadeUp 1.1s ease-out .18s forwards; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .services-header .section-title,
    .services-header .section-subtitle { animation: none !important; opacity:1 !important; transform:none !important; }
}

/* ========= Service Unterpunkte sanftes Fade-In ========= */
@keyframes listFadeUp { 0% {opacity:0;} 100% {opacity:1;} }
.service-li-hidden { opacity:0; visibility:hidden; transform:none; }
.service-li-in { visibility:visible; animation: listFadeUp .9s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
    .service-li-hidden { opacity:1; transform:none; }
    .service-li-in { animation:none !important; }
}

/* ========= Hohe DPI Skalierung (125% - 150%) ========= */
@media screen and (-webkit-min-device-pixel-ratio: 1.25), 
       screen and (min-resolution: 120dpi), 
       screen and (min-resolution: 1.25dppx) {
    
    .hero-logo-img {
        width: clamp(160px, 20vw, 280px) !important;
    }
    
    .munich-lines-svg {
        height: clamp(40px, 5vw, 80px) !important;
    }
    
    .hero-wave-bottom {
        height: clamp(80px, 10vw, 150px) !important;
    }
    
    .mitglied-badge-svg {
        height: clamp(35px, 4vw, 60px) !important;
    }
    
    .hero {
        padding: clamp(100px, 12vw, 160px) 0 clamp(50px, 10vw, 100px) !important;
    }
    
    /* forms-hero uses base/mobile padding; no extra high-DPI override */
}

/* ========= FORMULARE SEITE ========= */
.forms-hero {
    text-align: center;
    padding: clamp(120px, 12vw, 160px) 0 clamp(60px, 8vw, 100px) !important; /* mehr Top-Padding für Navigation */
    position: relative;
    background: url('marienplatzmorning.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    min-height: auto !important;
    height: auto !important;
}

/* ========= LEGAL SEITEN (Impressum, Datenschutz, AGB) ========= */
/* Gleiche vertikale Einrückung wie Formulare, damit H1 unter fester Navbar bündig sitzt */
.legal-page {
    padding: clamp(120px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
}

/* Bottom decoration for legal pages */
.legal-bottom-deco { position: relative; min-height: 160px; background:#ffffff; overflow:hidden; }
.legal-wave-bottom { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center; pointer-events:none; opacity:.35; mix-blend-mode:normal; }
.legal-wave-img { position:absolute; left:0; bottom:0; width:100%; height:auto; max-width:none; transform:translateY(8%); filter:blur(0.5px); }
.legal-bottom-deco .hero-munich-lines { position:absolute; left:0; right:0; bottom:0; z-index:2; }
.legal-bottom-deco .munich-lines-svg { height: clamp(50px, 7vw, 100px); width:auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08)); }
.legal-bottom-deco .munich-lines-reflection { opacity:.28; filter: blur(0.5px); }
.legal-bottom-deco .hero-mitglied-badge { position:absolute; right: clamp(12px, 2vw, 24px); bottom: 0; z-index:3; }
.legal-bottom-deco .mitglied-badge-svg { height: clamp(42px, 6vw, 80px); width:auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.15)); }

/* merged ≤480px legal-deco rules into the main ≤480px block */

/* Formulare Header zentriert stylen */
.forms-header {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    margin-bottom: clamp(40px, 6vw, 60px);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.forms-header h1 {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.2),
        0 2px 12px rgba(0, 0, 0, 0.4);
    overflow-wrap: break-word;
    word-break: break-word;
}

.forms-header h2 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    overflow-wrap: break-word;
    word-break: break-word;
}

.forms-header p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    margin-bottom: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Formulare im Hero-Bereich speziell stylen */
.forms-hero .forms-grid {
    z-index: 10;
    position: relative;
}


.forms-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-width: min(1120px, 100%);
    margin: 0 auto;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px -8px rgba(17,45,78,0.12);
}

.form-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: clamp(16px, 2vw, 22px);
    padding: clamp(35px, 4vw, 50px);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-align: center;
    transform: translateY(0);
    position: relative;
    min-height: 280px;
}

/* Vierfeldertafel: 1, 4, 5, 8 Blau (ungerade Reihen außen) */
.form-item:nth-child(1),
.form-item:nth-child(4),
.form-item:nth-child(5),
.form-item:nth-child(8) {
    background: rgba(17, 45, 78, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e8eef6;
    box-shadow: 0 8px 32px rgba(17, 45, 78, 0.2);
}

/* Vierfeldertafel: 2, 3, 6, 7 Weiß (ungerade Reihen innen) */
.form-item:nth-child(2),
.form-item:nth-child(3),
.form-item:nth-child(6),
.form-item:nth-child(7) {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #2d3338;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

/* Keine orangenen Dots mehr */
.form-item::before {
    display: none;
}

.form-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    background-color: rgba(255, 255, 255, 0.85);
}

.form-item:nth-child(1):hover,
.form-item:nth-child(4):hover,
.form-item:nth-child(5):hover,
.form-item:nth-child(8):hover {
    background-color: rgba(17, 45, 78, 0.75);
}

/* Blau: Titel und Text in Weiß */
.form-item:nth-child(1) .form-info h4,
.form-item:nth-child(4) .form-info h4,
.form-item:nth-child(5) .form-info h4,
.form-item:nth-child(8) .form-info h4 {
    color: #ffffff;
}

.form-item:nth-child(1) .form-info p,
.form-item:nth-child(4) .form-info p,
.form-item:nth-child(5) .form-info p,
.form-item:nth-child(8) .form-info p {
    color: #e8eef6;
}

/* Weiß: Titel und Text in Dunkel */
.form-item:nth-child(2) .form-info h4,
.form-item:nth-child(3) .form-info h4,
.form-item:nth-child(6) .form-info h4,
.form-item:nth-child(7) .form-info h4 {
    color: #2d3338;
}

.form-item:nth-child(2) .form-info p,
.form-item:nth-child(3) .form-info p,
.form-item:nth-child(6) .form-info p,
.form-item:nth-child(7) .form-info p {
    color: #5d646b;
}

.form-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(12px, 1.6vw, 18px);
    flex: 1;
    align-items: center;
    text-align: center;
    width: 100%;
}

.form-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

/* Icons auf Blau-Hintergrund in Weiß */
.form-item:nth-child(1) .form-icon,
.form-item:nth-child(4) .form-icon,
.form-item:nth-child(5) .form-icon,
.form-item:nth-child(8) .form-icon {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Icons auf Weiß-Hintergrund im Gradient */
.form-item:nth-child(2) .form-icon,
.form-item:nth-child(3) .form-icon,
.form-item:nth-child(6) .form-icon,
.form-item:nth-child(7) .form-icon {
    background: linear-gradient(135deg, #2b4d6f, #3F72AF, #5089c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-info h4 {
    font-family: 'Barlow', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
    text-align: center;
    position: relative;
    padding-bottom: 0;
}

/* Entferne Unterstrich */
.form-info h4::after {
    display: none;
}

.form-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(12px, 1.6vw, 14px) clamp(22px, 2.4vw, 26px);
    background: rgba(45, 94, 207, 0.8);
    backdrop-filter: blur(10px);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(45, 94, 207, 0.3);
    margin-top: clamp(10px, 1.4vw, 16px);
    align-self: center;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(45, 94, 207, 0.4);
    background: rgba(36, 78, 176, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.download-btn::after {
    content: '↗';
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Mobile Anpassungen für Formulare */
@media (max-width: 768px) {
    .forms-hero {
        padding: clamp(140px, 15vw, 180px) 0 clamp(60px, 8vw, 100px) !important;
    }
    
    .forms-header {
        max-width: 100%;
        margin-bottom: clamp(30px, 5vw, 50px);
    }
    
    .forms-grid {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .forms-grid .form-item {
        flex-direction: column;
        text-align: center;
        gap: clamp(14px, 6vw, 20px);
        min-height: auto;
        height: auto;
        padding: clamp(28px, 6vw, 40px) clamp(20px, 5vw, 30px);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    
    .forms-grid .form-item:last-child {
        border-bottom: none;
    }
    
    .form-info {
        align-items: center;
        text-align: center;
        gap: clamp(10px, 5vw, 18px);
    }

    .form-info h4,
    .form-info p {
        text-align: center;
        width: 100%;
    }
    
    .form-icon {
        align-self: center;
    }

    .download-btn {
        align-self: center;
    }
}

/* Removed unused .forms-content mobile overrides */

/* ========= COOKIE BANNER ========= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(160deg, rgba(17, 45, 78, 0.95) 0%, rgba(17, 45, 78, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(42, 113, 255, 0.2);
    padding: clamp(20px, 4vw, 30px) clamp(20px, 3vw, 30px);
    z-index: 999;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out forwards;
    transform: translateY(100%);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 40px);
}

.cookie-text {
    flex: 1;
}

.cookie-title {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cookie-message {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    color: #d4dce8;
    margin: 0;
    line-height: 1.5;
}

.cookie-link {
    color: #FFB82A;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #FFE5B2;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: clamp(12px, 2vw, 16px);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-btn {
    padding: clamp(10px, 1.5vw, 12px) clamp(18px, 2.5vw, 24px);
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, rgba(255, 184, 42, 0.9) 0%, rgba(255, 184, 42, 0.8) 100%);
    color: #1a1a1a;
    border: 1px solid rgba(255, 184, 42, 0.3);
    box-shadow: 0 4px 12px rgba(255, 184, 42, 0.2);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, rgba(255, 184, 42, 1) 0%, rgba(255, 184, 42, 0.9) 100%);
    box-shadow: 0 6px 16px rgba(255, 184, 42, 0.3);
    transform: translateY(-2px);
}

.cookie-btn-info {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cookie-btn-info:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Mobile responsive cookie banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(16px, 3vw, 24px);
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}
