/* ==========================================================================
   1. VARIABLEN & BASIS-EINSTELLUNGEN
   ========================================================================== */
:root {
    --brand-dark: #2d2d32;
    --brand-yellow: #ffea0d;
    --nav-bg: #f8f8f9;
    --nav-border: #ececec;
    --footer-bg: #1a1a1e;
    --footer-text-gray: #b0b0b5;
    
    --header-height: 85px;
    --edge-spacing: 40px;
    --container-max-width: 100%;
}

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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background-color: #000;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    overflow-x: hidden;
    background-color: #000;
    line-height: 1.6;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 2%;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.7);
    z-index: 2000;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Logo */
.logo img {
    width: 280px;
    height: auto;
    display: block;
    transition: width 0.3s ease;
}

/* Rechte Header-Seite (Telefon + Nav) */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Telefon-Button */
.phone-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--brand-dark);
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.phone-button:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* Navigations-Menü Desktop */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-menu li a {
    display: inline-block;
    text-decoration: none;
    color: #555;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 10px 18px;
    background-color: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* DESKTOP-LOGIK: Rechtliches ausblenden */
.nav-menu .mobile-only {
    display: none;
}

.nav-menu li a:hover {
    border-color: var(--brand-yellow);
    color: #000;
    background-color: #fff;
}

/* Burger Menu Icon */
.burger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2100;
}

.burger div {
    width: 100%;
    height: 3px;
    background-color: #333;
    position: absolute;
    transition: 0.3s;
}

.line1 { top: 0; }
.line2 { top: 8px; }
.line3 { top: 16px; }

.burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background-color: var(--brand-yellow); }
.burger.toggle .line2 { opacity: 0; }
.burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background-color: var(--brand-yellow); }

/* ==========================================================================
   3. HERO SECTIONS (Basis-Design)
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 850px;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.read-more {
        display: inline-block;
        padding: 12px 30px;
        background-color: var(--brand-yellow);
        color: #000;
        text-transform: uppercase;
        font-weight: 700;
        text-decoration: none;
        border-radius: 3px;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }
    .read-more:hover {
        transform: scale(1.05);
        background-color: #fff;
    }

/* ==========================================================================
   4. FOOTER & ANIMATIONEN
   ========================================================================== */
footer {
    position: relative;
    background-color: var(--footer-bg);
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 24px 24px;
    color: var(--footer-text-gray);
    padding: 60px var(--edge-spacing) 40px;
    z-index: 10;
    overflow: hidden;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.footer-column { text-align: center; }
.footer-column:first-child { text-align: left; }

.footer-logo {
    width: 220px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-column h4 {
    color: #ffdc00;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5), 
                inset -1px -1px 2px rgba(255, 255, 255, 0.05);
}

.footer-highlight {
    font-weight: bold;
    color: var(--brand-yellow);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-highlight:hover { color: #fff; }

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    margin: 60px 0 30px;
    border: none;
}

/* Sirenen-Animation */
#shooting-stars-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shooting-star {
    position: absolute;
    height: 1px; width: 80px;
    border-radius: 999px;
    opacity: 0;
}

@keyframes siren-flash {
    0%, 10% { background: radial-gradient(circle, rgba(255, 234, 13, 0.9), transparent 80%); box-shadow: 0 0 15px var(--brand-yellow); }
    11%, 30% { background: transparent; box-shadow: none; }
    31%, 40% { background: radial-gradient(circle, rgba(255, 234, 13, 0.9), transparent 80%); box-shadow: 0 0 15px var(--brand-yellow); }
    41%, 100% { background: transparent; box-shadow: none; }
}

.shooting-star.from-left { animation: shooting-left 7s linear forwards, siren-flash 1.6s linear infinite; }
.shooting-star.from-right { animation: shooting-right 7s linear forwards, siren-flash 1.6s linear infinite; }

@keyframes shooting-left { 0% { transform: translateX(-100px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(100vw); opacity: 0; } }
@keyframes shooting-right { 0% { transform: translateX(100px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(-100vw); opacity: 0; } }

/* ==========================================================================
   5. MOBILE OPTIMIERUNG
   ========================================================================== */
@media (max-width: 992px) {
    header { padding: 0 20px; height: 75px; }
    .logo img { width: 200px; }
    .burger { display: block; }

    .nav-menu {
        position: fixed;
        right: -100%; top: 0;
        width: 100%; height: 100vh;
        background: var(--brand-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    }

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

    /* Haupt-Menüpunkte mobil */
    .nav-menu li a {
        background: transparent;
        font-size: 1.8rem;
        color: #fff;
        border: none;
        padding: 10px;
    }

    /* MOBILE-LOGIK: Impressum & Datenschutz anzeigen & stylen */
    .nav-menu .mobile-only { 
        display: block;
        margin-top: 10px;
    }

    .nav-menu .mobile-only a {
        font-size: 0.9rem; /* Kleiner */
        color: #999; /* Hellgrau */
        background-color: rgba(255, 255, 255, 0.05); /* Dezent grau hinterlegt */
        padding: 8px 20px;
        border-radius: 50px;
        text-transform: none;
    }

    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .footer-column:first-child { text-align: center; }
    .phone-button span { display: none; }
    .phone-button { padding: 10px; }
}






/* ==========================================================================
   UNIVERSALER LOGO-TRENNSTRICH (Hofmeister Branding)
   ========================================================================== */

.universal-divider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px; 
    height: 12px; 
    margin: 25px auto;
    position: relative;
    filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.7));
    /* FIX: Verhindert, dass die ausschwenkenden Linien den Viewport sprengen */
    overflow: hidden; 
}

.divider-line {
    width: 140px;
    height: 100%;
    position: relative;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    --skew-angle: 4%;
    clip-path: polygon(var(--skew-angle) 0%, 100% 0%, calc(100% - var(--skew-angle)) 100%, 0% 100%);
}

.divider-gray {
    background: linear-gradient(180deg, #6d6d6c 0%, #40403f 100%);
    transform: translateX(-105%);
    margin-right: 1px; 
}

.divider-yellow {
    background: linear-gradient(180deg, #ffea0d 0%, #a39200 100%);
    transform: translateX(105%);
    margin-left: 1px; 
}

/* Trigger: Diese Klasse wird per JS gesetzt, um die Animation zu starten */
.reveal-divider .divider-line {
    transform: translateX(0);
}




.cta-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    margin-top: 40px;
    text-align: center;
}

.cta-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-container .read-more {
    background-color: var(--brand-yellow) !important;
    color: #000 !important;
    padding: 12px 40px;
    border-radius: 3px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.cta-container .read-more:hover {
    transform: scale(1.05);
    background-color: #ffffff !important;
}