/* ======================
   SLOGAN BANNER - SEPARATE SECTION
   Full-width banner between Nav and Hero
   ====================== */

.slogan-banner {
    background: transparent; /* KEIN eigener Background! */
    padding: 0;
    margin-top: 60px;
    min-height: 350px;
    display: flex;
    align-items: center; /* Vertikal zentriert */
    justify-content: center;
    position: absolute; /* Über Hero gelegt */
    top: 0;
    left: 0;
    right: 0;
    z-index: 10; /* Über Hero-Background */
    overflow: visible; /* Glow nicht abschneiden! */
    pointer-events: none; /* Klicks durchlassen */
}

.slogan-banner .container {
    position: relative;
    z-index: 1;
    pointer-events: auto; /* Nur Container klickbar */
}

/* Remove old :before background */
.slogan-banner:before {
    display: none;
}

/* ======================
   HERO SLOGAN WRAPPER
   Centered in banner
   ====================== */

.hero-slogan-wrapper {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px; /* Kompakter */
    padding: 1rem 0; /* Kleiner Abstand oben/unten */
    overflow: visible; /* Glow nicht abschneiden */
}

.hero-slogan-wrapper h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: white;
    overflow: visible; /* Glow nicht abschneiden */
}

/* Slogan Container - Fixed width, centered */
.slogan-container {
    position: relative;
    display: inline-block;
    min-width: 900px;
    max-width: 95vw;
    height: 80px;
    line-height: 80px;
    overflow: visible; /* Glow nicht abschneiden! */
}

.bracket {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    font-size: 2.8em;
    color: var(--primary);
    z-index: 10;
    transition: all 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 
        0 0 20px rgba(33, 150, 243, 0.8),
        0 0 40px rgba(33, 150, 243, 0.6),
        0 0 60px rgba(33, 150, 243, 0.4),
        0 0 80px rgba(33, 150, 243, 0.2);
    line-height: 1;
}

.bracket.left {
    left: -0.4em;
}

.bracket.right {
    right: -0.4em;
}

/* Text Container - Original Text verstecken OHNE Layout zu zerstören */
.slogan-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Horizontal UND vertikal zentriert */
    display: inline-block;
    padding: 0;
    z-index: 5;
    line-height: 80px;
    white-space: nowrap;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Glow Layer - IMMER sichtbar */
.slogan-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(25px) brightness(1.8);
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
    white-space: nowrap;
    font-size: inherit;
    line-height: inherit;
}

/* Text Layer - NUR DIESER wird geclippt */
.slogan-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: inherit;
    line-height: inherit;
}

/* ============================
   CLOSING ANIMATION
   ============================ */

.slogan-container.closing .bracket.left {
    transform: translateY(-50%) translateX(calc(50vw - 2em));
}

.slogan-container.closing .bracket.right {
    transform: translateY(-50%) translateX(calc(-50vw + 2em));
}

.slogan-container.closing .slogan-text::after {
    clip-path: inset(0 0 0 100%); /* Nur ::after wird geclippt */
    transition: clip-path 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Glow fadet während closing */
.slogan-container.closing .slogan-text::before {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================
   OPENING ANIMATION
   ============================ */

.slogan-container.opening .bracket.left {
    animation: bracketOpenLeft 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.slogan-container.opening .bracket.right {
    animation: bracketOpenRight 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bracketOpenLeft {
    0% {
        transform: translateY(-50%) translateX(calc(50vw - 2em));
    }
    100% {
        transform: translateY(-50%) translateX(0); /* Zurück zu left: -0.4em */
    }
}

@keyframes bracketOpenRight {
    0% {
        transform: translateY(-50%) translateX(calc(-50vw + 2em));
    }
    100% {
        transform: translateY(-50%) translateX(0); /* Zurück zu right: -0.4em */
    }
}

.slogan-container.opening .slogan-text::after {
    animation: revealText 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.slogan-container.opening .slogan-text::before {
    animation: fadeInGlow 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes revealText {
    0% {
        clip-path: inset(0 0 0 100%); /* Start: Von links versteckt */
    }
    100% {
        clip-path: inset(0 0 0 0); /* Ende: Voll sichtbar */
    }
}

@keyframes fadeInGlow {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.7;
    }
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1200px) {
    .slogan-container {
        min-width: 750px;
    }
    
    .hero-slogan-wrapper h1 {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .slogan-container {
        min-width: 650px;
        height: 70px;
        line-height: 70px;
    }
    
    .slogan-text {
        line-height: 70px;
        font-size: 0.95em;
    }
    
    .hero-slogan-wrapper h1 {
        font-size: 2.6rem;
    }
    
    .hero-slogan-wrapper {
        min-height: 80px;
    }
    
    .bracket {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .slogan-container {
        min-width: 500px;
        height: 60px;
        line-height: 60px;
    }
    
    .slogan-text {
        line-height: 60px;
        padding: 0 2em;
        font-size: 0.85em;
    }
    
    .bracket {
        font-size: 2em;
    }
    
    .hero-slogan-wrapper h1 {
        font-size: 2.2rem;
    }
    
    .hero-slogan-wrapper {
        min-height: 70px;
        padding: 0.8rem 0;
    }
    
    .slogan-banner {
        min-height: 120px;
        margin-top: 55px;
    }
}

@media (max-width: 480px) {
    .slogan-container {
        min-width: 350px;
        height: 50px;
        line-height: 50px;
    }
    
    .slogan-text {
        line-height: 50px;
        padding: 0 1.6em;
        font-size: 0.75em;
    }
    
    .bracket {
        font-size: 1.7em;
    }
    
    .hero-slogan-wrapper h1 {
        font-size: 1.8rem;
    }
    
    .hero-slogan-wrapper {
        min-height: 60px;
        padding: 0.6rem 0;
    }
    
    .slogan-banner {
        min-height: 100px;
        margin-top: 50px;
    }
}
/* Hero Section Adjustments for Slogan Banner Layout */

/* Hero muss den Banner-Bereich umfassen */
.hero {
    padding-top: 410px !important; /* Nav (60px) + Banner (350px) */
    min-height: 100vh !important; /* Volle Höhe */
    position: relative; /* Für absolute Banner */
}

/* Ensure hero content doesn't have margin-top from old h1 */
.hero-content {
    margin-top: 0;
}
