* {
    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%;
    overflow-x: hidden;
    position: relative;
}

/* Brand palette */
:root {
    --clr-primary-600: #243E5D;
    --clr-primary: #2F5379;
    --clr-primary-light: #8EA3B7;
    --clr-primary-pale: #DCE3EA;
    --clr-accent: #BAA88F;
    --clr-accent-light: #ECE3D7;
    --clr-accent-hover: #A39179;
    --clr-accent-rgb: 186,168,143;
    --clr-neutral-900: #24303D;
    --clr-neutral-700: #2D3338;
    --clr-bg-section-light: #F6F8FA;
    --clr-bg-section-lighter: #EEF3F7;
    --clr-primary-rgb: 36,62,93;
    --underline-grad: linear-gradient(90deg, #243E5D 0%, #7D93A8 58%, #DCE3EA 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,
.nav-decoration > img {
    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: var(--clr-primary-600);
    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: var(--clr-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--clr-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: var(--clr-primary-600);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background-color: #1a1a1a;
    background-image: url('hero-poster.webp');
    background-size: cover;
    background-position: center;
    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;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.hero-video.is-ready { opacity: 1; }

.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-seo-kicker,
.section-eyebrow {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(0.76rem, 1.15vw, 0.92rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-seo-kicker {
    display: block;
    margin: 0 0 clamp(0.65rem, 1.2vw, 0.95rem);
    color: #E5C79F;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.section-eyebrow {
    margin: 0 0 0.65rem;
    color: var(--clr-primary-600);
}

.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 { display: block; 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;
}

/* 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 {
    background-color: rgba(var(--clr-primary-rgb), 0.92);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 1.0;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 32px rgba(16, 27, 41, 0.22);
}

.btn-primary:hover {
    background-color: rgba(28, 50, 74, 0.96);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(16, 27, 41, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(var(--clr-accent-rgb), 0.62);
    opacity: 1.0;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(16, 27, 41, 0.18);
}

.btn-secondary:hover {
    background: rgba(var(--clr-accent-rgb), 0.24);
    color: #fff;
    border: 2px solid rgba(var(--clr-accent-rgb), 0.82);
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(var(--clr-accent-rgb), 0.18);
}

.btn-orange {
    background: rgba(var(--clr-primary-rgb), 0.16);
    color: #ffffff;
    border: 2px solid rgba(var(--clr-accent-rgb), 0.72);
    opacity: 1.0;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(16, 27, 41, 0.18);
}

.btn-orange:hover {
    background: rgba(var(--clr-primary-rgb), 0.28);
    color: #ffffff;
    border: 2px solid rgba(var(--clr-accent-rgb), 0.9);
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(16, 27, 41, 0.24);
}

.btn-teal {
    background-color: rgba(28, 50, 74, 0.92);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 1.0;
    padding: clamp(12px, 2vw, 16px) clamp(22px, 3.5vw, 30px);
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(16, 27, 41, 0.22);
}

.btn-teal:hover {
    background-color: rgba(21, 37, 55, 0.96);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 12px 38px rgba(16, 27, 41, 0.28);
}

/* removed unused .btn-login */

/* transition section removed */



