/* =========================================
   VARIABLES & BASE (GZ CORPORATE DESIGN)
========================================= */
:root {
    --primary: #2B4A93;         /* Original GZ Blau aus Logo */
    --primary-dark: #1e356e;    
    --accent: #FFD700;          /* Goldgelb NUR für Micro-Laser-Akzente! */
    --bg-white: #ffffff;   
    --bg-light: #f8f9fb;        /* Ultra-zartes Off-White für Struktur */
    --text-main: #222222;
    --text-gray: #666666;
    --logo-skew: -20deg;        /* DER EXAKTE WINKEL DES GZ-LOGOS */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 100px; }
body { background-color: var(--bg-white); color: var(--text-main); font-family: var(--font-body); overflow-x: hidden; }
body.loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* =========================================
   PRELOADER
========================================= */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff; z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: transform 0.8s var(--easing), opacity 0.8s var(--easing);
}
.loader-logo-img { height: 240px; max-width: 80vw; object-fit: contain; margin-bottom: 40px; animation: pulseLogo 2s infinite var(--easing); }
.loader-line { width: 0; height: 3px; background: var(--primary); border-radius: 0; animation: loadLine 1.5s ease forwards; }
@keyframes loadLine { to { width: 250px; } }
@keyframes pulseLogo { 0% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); opacity: 0.8; } }
body.loaded .preloader { transform: translateY(-100%); opacity: 0; }

/* =========================================
   CUSTOM CURSOR (High Contrast & Seriös)
========================================= */
.cursor-dot { display: none !important; }

.cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); 
    pointer-events: none; z-index: 99999; 
    width: 20px; height: 20px; 
    background-color: var(--primary); 
    border: 2px solid #ffffff; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); 
    border-radius: 50%;
    transition: width 0.3s var(--easing), height 0.3s var(--easing), background-color 0.3s var(--easing);
}
body:hover .cursor-outline.hovered {
    width: 40px; height: 40px; background-color: rgba(43, 74, 147, 0.8);
}

/* =========================================
   TYPOGRAPHY & UTILS
========================================= */
.section-padding { padding: 120px 0; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.white-bg { background-color: var(--bg-white); }
.light-bg { background-color: var(--bg-light); }

.section-heading { 
    font-family: var(--font-heading); font-size: 4rem; line-height: 1.1; 
    color: var(--primary); text-transform: uppercase; position: relative; display: inline-block; margin-bottom: 30px;
}

.text-stroke { -webkit-text-stroke: 1px white; color: transparent; }

.label-badge {
    display: inline-block; padding: 8px 25px; background: rgba(43, 74, 147, 0.05);
    border: 1px solid var(--primary); color: var(--primary); 
    font-size: 1rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 30px;
    transform: skewX(var(--logo-skew)); 
}
.label-badge span { display: inline-block; transform: skewX(calc(var(--logo-skew) * -1)); }

/* =========================================
   NAVBAR & MENU
========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 25px 0; z-index: 1000;
    transition: all 0.4s var(--easing); background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(43, 74, 147, 0.05); color: var(--primary); 
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

.logo img { height: 100px; width: auto; object-fit: contain; transition: transform 0.3s; }
.logo:hover img { transform: scale(1.05); }

.nav-menu { display: flex; gap: 40px; }
.nav-link { font-weight: 600; text-transform: uppercase; font-size: 1.1rem; letter-spacing: 1.5px; position: relative; color: var(--primary); }
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--accent); transition: width 0.3s var(--easing);
}
.nav-link:hover::after { width: 100%; }

.btn-primary { 
    background-color: var(--primary); color: white; padding: 15px 35px; 
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    display: inline-block; transition: all 0.4s var(--easing); 
    transform: skewX(var(--logo-skew)); border: none;
}
.btn-primary:hover { background-color: var(--primary-dark); transform: skewX(var(--logo-skew)) translateY(-3px); box-shadow: 0 10px 20px rgba(43, 74, 147, 0.3); }
.btn-content { display: inline-block; transform: skewX(calc(var(--logo-skew) * -1)); }

.hamburger { display: none; cursor: pointer; z-index: 1001; }
.hamburger .bar { width: 30px; height: 3px; background-color: var(--primary); margin: 6px 0; transition: all 0.3s ease; }
.navbar.menu-open { background: transparent !important; box-shadow: none !important; }
.navbar.menu-open .bar { background-color: var(--primary) !important; }

/* =========================================
   HERO SECTION
========================================= */
.hero { height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; }
.subpage-hero { height: 60vh; min-height: 400px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-image-wrapper { position: absolute; inset: 0; z-index: -1; }
.hero-bg { width: 100%; height: 110%; object-fit: cover; filter: brightness(0.8); transform-origin: center; }
.overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(43,74,147,0.9) 0%, rgba(43,74,147,0.1) 100%); z-index: 1; }

.hero-content { position: relative; z-index: 2; color: white; width: 100%; }
.hero-title { font-family: var(--font-heading); line-height: 0.9; margin-bottom: 20px; color: white; }
.hero-title .line { display: block; transform: translateY(100%); opacity: 0; animation: slideUp 1s var(--easing) forwards; }
.hero-title .line:nth-child(2) { animation-delay: 0.2s; }
.hero-sub { margin-top: 40px; display: flex; justify-content: space-between; align-items: flex-end; }
.hero-sub p { font-size: 1.25rem; max-width: 500px; line-height: 1.6; }
@keyframes slideUp { to { transform: translateY(0); opacity: 1; } }

/* =========================================
   CINEMATIC MOBILITY BANNER
========================================= */
.cinematic-mobility { position: relative; padding: 120px 0; overflow: hidden; }
.relative-container { position: relative; z-index: 2; }
.mobility-editorial-grid { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.mobility-text-content { width: 45%; }
.mobility-visual { width: 50%; position: relative; }

.premium-list { list-style: none; margin-top: 20px; }
.premium-list li { font-size: 1.1rem; color: var(--text-main); margin-bottom: 15px; display: flex; align-items: center; gap: 15px; }
.premium-list i {
    color: white; background: var(--primary); width: 30px; height: 30px;
    display: flex; justify-content: center; align-items: center; border-radius: 0; font-size: 0.8rem;
    transform: skewX(var(--logo-skew));
}

.visual-frame { position: relative; border-radius: 0; overflow: hidden; box-shadow: 0 40px 80px rgba(43, 74, 147, 0.2); }
.cinematic-img { width: 100%; height: 500px; object-fit: cover; display: block; transition: transform 0.8s var(--easing); }
.mobility-visual:hover .cinematic-img { transform: scale(1.05); }

/* =========================================
   SERVICES GRID (MIT SYMMETRIE-FIX)
========================================= */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.service-card {
    background-color: var(--bg-white); border-radius: 0; position: relative; overflow: hidden; 
    transition: all 0.5s var(--easing); border: 1px solid rgba(43,74,147,0.1); 
    display: flex; flex-direction: column; justify-content: flex-end; 
    width: calc(25% - 22.5px); min-height: 400px; padding: 40px 30px; text-align: left; 
    box-shadow: 0 10px 30px rgba(43,74,147,0.05);
}
.card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.8s var(--easing); }
.service-card:hover .card-bg { transform: scale(1.05); }

.overlay-white { 
    position: absolute; inset: 0; 
    background: linear-gradient(to top, rgba(255,255,255, 1) 0%, rgba(255,255,255, 0.8) 50%, rgba(255,255,255, 0) 100%); 
    z-index: 1; transition: background 0.5s var(--easing);
}
.box-content { position: relative; z-index: 2; width: 100%; color: var(--text-main);}

/* Feste Höhen für perfekte Symmetrie auf dem Desktop */
.service-card h3 { 
    font-family: var(--font-heading); 
    font-size: 1.6rem; 
    margin-bottom: 12px; 
    color: var(--primary); 
    line-height: 1.2; 
    text-transform: uppercase;
    min-height: 65px; 
    display: flex;
    align-items: flex-end; 
}

.service-card p { 
    color: #000000; 
    font-size: 0.95rem; 
    line-height: 1.5; 
    min-height: 95px; 
}

.icon-medium { font-size: 2.2rem; margin-bottom: 20px; color: var(--primary); transition: all 0.5s var(--easing);} 

.service-link {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
    color: var(--primary); font-weight: 600; font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 1px; transition: gap 0.3s var(--easing); opacity: 0.8;
}

.service-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 25px 50px rgba(43,74,147,0.15); z-index: 10; }
.service-card:hover .overlay-white { background: linear-gradient(to top, rgba(255,255,255, 1) 0%, rgba(255,255,255, 0.9) 60%, rgba(255,255,255, 0.1) 100%);  }
.service-card:hover .service-link { gap: 15px; opacity: 1; color: var(--primary); }
.service-card:hover .icon-medium { transform: scale(1.1); color: var(--primary); }

/* =========================================
   TEAM GRID
========================================= */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.team-member { background: var(--bg-white); border-radius: 0; border: 1px solid rgba(43,74,147,0.1); overflow: hidden; box-shadow: 0 10px 30px rgba(43,74,147,0.05); transition: all 0.5s var(--easing); }
.team-member:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(43,74,147,0.15); border-color: var(--primary); }
.team-info { padding: 25px; text-align: center; }
.team-info h3 { font-family: var(--font-heading); color: var(--primary); font-size: 1.5rem; margin-bottom: 5px; text-transform: uppercase; }
.team-info p { color: var(--text-gray); font-size: 1rem; line-height: 1.4; }

/* =========================================
   CONTACT OPTIONS (TERMIN BUCHEN)
========================================= */
.contact-options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.contact-card {
    background: var(--bg-white); padding: 40px 30px; text-align: center; border-radius: 0; border: 1px solid rgba(43,74,147,0.1);
    box-shadow: 0 10px 30px rgba(43,74,147,0.05); transition: all 0.5s var(--easing); display: flex; flex-direction: column; align-items: center; 
}
.contact-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(43,74,147,0.15); border-color: var(--primary); }

.contact-icon { width: 80px; height: 80px; border-radius: 0; background-color: rgba(43,74,147,0.05); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 20px; color: var(--primary); transition: all 0.5s var(--easing); transform: skewX(var(--logo-skew)); }
.contact-icon i { transform: skewX(calc(var(--logo-skew) * -1)); } 
.contact-card:hover .contact-icon { background-color: var(--primary); color: white; }

.contact-card h3 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 10px; color: var(--primary); text-transform: uppercase; }
.contact-card p { color: var(--text-gray); line-height: 1.5; margin-bottom: 25px; flex-grow: 1; }
.contact-link { font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; transition: gap 0.3s var(--easing); }
.contact-card:hover .contact-link { gap: 15px; color: var(--primary-dark); }

/* =========================================
   TIMELINE (GESCHICHTE) - DESKTOP
========================================= */
.timeline { 
    position: relative; max-width: 1200px; 
    margin: 0 auto; padding: 40px 0; 
}
.timeline::after { 
    content: ''; position: absolute; width: 2px; background: rgba(43,74,147,0.2); 
    top: 0; bottom: 0; left: 50%; transform: translateX(-50%); 
}

.timeline-section .section-heading {
    text-align: center; margin-left: auto; margin-right: auto;
}

.timeline-item { 
    padding: 20px 50px; position: relative; width: 50%; box-sizing: border-box; 
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-dot {
    position: absolute; width: 20px; height: 20px; background: white; 
    border: 4px solid var(--primary); border-radius: 50%; top: 50%; 
    transform: translateY(-50%); z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }

.timeline-card {
    position: relative; border-radius: 4px; overflow: hidden; 
    aspect-ratio: 16/10; display: inline-block; width: 100%; 
    max-width: 600px; 
    box-shadow: 0 15px 40px rgba(43,74,147,0.1);
}
.timeline-img { 
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--easing); 
}

.timeline-content {
    position: absolute; inset: 0; background: rgba(43, 74, 147, 0.95); 
    color: white; padding: 30px; 
    display: flex; flex-direction: column; 
    justify-content: center; align-items: flex-start; text-align: left;
    opacity: 0; transition: opacity 0.5s var(--easing);
}

.timeline-card:hover .timeline-img { transform: scale(1.05); }
.timeline-card:hover .timeline-content { opacity: 1; }

.timeline-year { font-family: var(--font-heading); font-size: 2.5rem; color: var(--accent); margin-bottom: 10px; line-height: 1; }
.timeline-title { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 15px; text-transform: uppercase; }
.timeline-text { font-size: 1.05rem; line-height: 1.6; color: rgba(255,255,255,0.9); }

/* =========================================
   IMPRESSUM & RECHTLICHES
========================================= */
.legal-container { max-width: 800px; margin: 0 auto; }
.legal-box { margin-bottom: 40px; padding: 40px; background: white; border-radius: 0; border: 1px solid rgba(43,74,147,0.1); box-shadow: 0 10px 30px rgba(43,74,147,0.05); }
.legal-title { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); margin-bottom: 20px; text-transform: uppercase; }
.legal-subtitle { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary); margin-top: 30px; margin-bottom: 15px; text-transform: uppercase; }
.legal-text { font-size: 1.15rem; line-height: 1.8; color: var(--text-gray); margin-bottom: 15px; }
.legal-text-small { font-size: 1.1rem; line-height: 1.7; color: var(--text-gray); margin-bottom: 15px; }
.legal-mail { color: var(--primary); font-weight: 600; }

/* =========================================
   FOOTER (Super Clean & Minimalist)
========================================= */
.footer-section { 
    background: var(--bg-white); color: var(--text-main); 
    position: relative; overflow: hidden; padding-top: 100px; padding-bottom: 30px; 
}
.cta-wrapper { text-align: center; max-width: 1000px; margin: 0 auto; }
.cta-title { font-size: 4rem; font-family: var(--font-heading); color: var(--primary); line-height: 1; margin-bottom: 20px; text-transform: uppercase;}

.contact-grid { display: flex; justify-content: center; gap: 80px; margin: 50px 0; text-align: center; }
.contact-item { display: flex; flex-direction: column; align-items: center; }
.contact-item h4 { font-size: 1.2rem; margin-bottom: 10px; font-family: var(--font-heading); color: var(--primary); text-transform: uppercase; }
.contact-item p { color: var(--text-gray); line-height: 1.6; }
.contact-item i { font-size: 2.2rem; color: var(--primary); margin-bottom: 15px; transition: transform 0.3s var(--easing); }
.contact-item:hover i { transform: scale(1.2) rotate(10deg); }

.footer-bottom { 
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; 
    margin-top: 60px; border-top: 1px solid rgba(43,74,147,0.1); padding-top: 30px; 
}
.footer-copyright { display: flex; align-items: center; flex-wrap: wrap; }
.footer-copyright p { color: var(--text-gray); font-weight: 500; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.divider { color: rgba(43,74,147,0.2); }
.footer-link { color: var(--text-gray); text-decoration: none; transition: color 0.3s ease; }
.footer-link:hover { color: var(--primary); }

.leonify-simple { color: var(--text-gray); font-size: 0.95rem; text-decoration: none; transition: color 0.3s var(--easing); }
.leonify-simple strong { color: var(--primary); font-weight: 700; letter-spacing: 0.5px; }
.leonify-simple:hover { color: var(--primary-dark); }

/* =========================================
   ANIMATIONS (REVEAL)
========================================= */
.reveal-up { opacity: 0; transform: translateY(60px); transition: all 1s var(--easing); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: all 1s var(--easing); }
.reveal-scale { opacity: 0; transform: scale(0.85); transition: all 1s var(--easing); }
.is-visible { opacity: 1 !important; transform: translate(0) scale(1) rotateX(0) !important; }

/* =========================================
   MEDIA QUERIES (TABLET <= 1024px)
========================================= */
@media (max-width: 1024px) {
    .service-card { width: calc(50% - 15px); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-options-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 4rem; }
    .mobility-editorial-grid { flex-direction: column; }
    .mobility-text-content, .mobility-visual { width: 100%; }
    
    .timeline-card { max-width: 100%; }
}

/* =========================================
   MEDIA QUERIES (MOBILE <= 768px) - KUGELSICHER
========================================= */
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .section-heading { font-size: 2.5rem; margin-bottom: 25px; }

    /* Rand für mehr Luft auf Mobile */
    .container { padding: 0 20px !important; }

    /* NAVBAR & LOGO FIX */
    .hamburger { display: block; }
    .navbar .btn-primary { display: none !important; } 
    .logo img { height: 45px !important; width: auto !important; object-fit: contain !important; position: relative; z-index: 1001; }

    .nav-menu { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding-top: 120px; padding-left: 40px; position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); transition: right 0.5s var(--easing); z-index: 1000; gap: 25px; }
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1.8rem; color: var(--primary); margin: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--primary); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--primary); }
    body.no-scroll { overflow: hidden; }

    /* BUTTONS RESPONSIVE */
    .btn-primary { 
        padding: 15px 25px !important; 
        font-size: 0.95rem !important; 
        white-space: normal !important; 
        height: auto !important; 
        width: 100% !important; 
        max-width: 320px;
        text-align: center;
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    /* LEISTUNGEN & FEATURE BOXEN FIX (Symmetrie auch auf dem Handy!) */
    .services-grid { display: flex; flex-direction: column; gap: 20px; }
    
    .service-card, .feature-box { 
        width: 100% !important; 
        min-height: 380px !important; /* Feste Höhe, damit die Karten gleich gross sind */
        padding: 25px 20px !important; 
        box-shadow: 0 5px 15px rgba(43,74,147,0.05); 
        display: flex; flex-direction: column;
        justify-content: flex-end !important; /* Drückt den Inhalt konsequent nach unten */
    }
    
    /* Box-Content zentrieren für Startseite und Unterseiten */
    .service-card .box-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .service-card h3, .feature-box h4 { 
        font-size: 1.4rem !important; 
        text-align: center !important; 
        margin-bottom: 10px; 
        width: 100%; 
        min-height: 55px !important; /* Platz für 2 Zeilen (verhindert Icon-Verschiebung) */
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .service-card p, .feature-box p { 
        display: block !important; 
        font-size: 1rem !important; 
        text-align: center !important; 
        width: 100%; 
        min-height: 100px !important; /* Platz für 4 Zeilen (verhindert Icon-Verschiebung) */
        margin-bottom: 15px;
    }

    .icon-medium { 
        font-size: 2.2rem !important; 
        margin-bottom: 15px !important; 
        text-align: center; 
    }
    
    /* TIMELINE MOBILE FIX */
    .timeline::after { left: 20px; transform: none; }
    .timeline-item { width: 100%; padding-left: 50px !important; padding-right: 0 !important; text-align: left !important; margin-bottom: 40px; }
    .timeline-item:nth-child(even), .timeline-item:nth-child(odd) { left: 0; }
    .timeline-dot { left: 10px !important; right: auto !important; }
    
    .timeline-card { 
        aspect-ratio: auto !important; 
        display: flex !important; 
        flex-direction: column !important; 
        height: auto !important; 
        max-width: 100% !important; 
    } 
    .timeline-img { height: 220px !important; flex-shrink: 0; } 
    .timeline-content { 
        position: relative !important; 
        inset: auto !important; 
        opacity: 1 !important; 
        padding: 25px !important; 
        background: var(--primary) !important; 
        height: auto !important; 
    }
    .timeline-title { font-size: 1.4rem; }
    .timeline-text { font-size: 0.95rem; }

    .contact-options-grid, .team-grid { display: flex; flex-direction: column; gap: 30px; }
    .contact-grid { flex-direction: column; gap: 40px; }
    .hero-sub { flex-direction: column; align-items: flex-start; gap: 20px; }
    
    .footer-bottom { flex-direction: column; text-align: center; gap: 20px; padding-top: 20px; } 
    .footer-copyright { justify-content: center; }
    
    .cursor-dot, .cursor-outline { display: none; } * { cursor: auto; }
}