/* Scrollbar-Gutter immer reservieren: verhindert horizontalen Layout-Sprung,
   wenn die vertikale Scrollbar erscheint/verschwindet. Muss auf <html> sitzen,
   weil document.scrollingElement standardmäßig <html> ist (nicht body). */
html { scrollbar-gutter: stable; }

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-primary: #e63946;
    /* Example accent */
    --color-text: #333333;
    --color-bg-dark: #1a1a1a;

    --font-primary: 'Inter', sans-serif;
    /* Assumed */
    --font-heading: 'Outfit', sans-serif;
    /* From snippet */

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-8: 4rem;

    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 2rem;

    --transition-base: 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Handy: horizontalen Phantom-Scroll abklemmen. `body` hat schon overflow-x:hidden, aber die
   FIXIERTE Navi (.nav, position:fixed) entkommt dem Body-Clipping und spannt über die
   Scrollbalken-Lücke (~16px) → die Seite ließ sich seitlich schieben und der Hamburger klebte
   am rechten Rand. overflow-x:hidden auf <html> lässt die Navi auf die sichtbare Breite snappen
   → Hamburger korrekt eingerückt. Nur ≤768px → Desktop bleibt unberührt. */
@media (max-width: 768px) {
    html { overflow-x: hidden; }
}

/* Sticky-Footer-Pattern: main wächst, Footer klebt am Bildschirm-Ende
   (Body-Inline-Style setzt display:flex; flex-direction:column; min-height:100vh) */
main {
    background-color: #ffffff;
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Navigation - Fixed Split Design */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    /* Right side is white */
    /* Removed border-bottom to fix white stripe issue */
    transition: background var(--transition-base);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    /* Contain the wide pseudo-element */
    /* Remove padding to let logo fill height if needed */
    isolation: isolate;
}

.nav.scrolled {
    background: var(--color-white);
    /* Fallback for scrolled state if needed, or stick to wings */
    /* If wings are permanent, we don't need this, or we need to handle scrolled state carefully. 
       For now, let's assume the split design is permanent. */
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    height: 70px;
    position: relative;
    /* Context for children */
    /* Fixed height to ensure logo fitting */
}

/* LOGO WRAPPER */
.nav__logo {
    height: 100%;
    /* Fill container height */
    width: auto;
    display: flex;
    align-items: center;
    position: relative;
    /* Anchor for the black background wing */
    flex: 0 1 auto;
    /* Allow shrinking */
    z-index: 0;
    /* Establish stacking context for wings */
    isolation: isolate;
    /* Force blending to happen within this context */
}

/* LEFT WING EXTENSION: BLACK */
.nav__logo::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    /* Start at the left edge of the logo container */
    width: 200vw;
    /* Extend infinitely to the left */
    background: var(--color-black);
    z-index: -1;
    /* Behind logo */
    pointer-events: none;
    margin-right: -1px;
    /* Fix sub-pixel gaps */
}

/* LOGO IMAGE */
.nav__logo img {
    height: 100%;
    width: auto;
    max-width: 100%;
    /* Prevent overflow */
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.nav__menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-black);
    /* Matches white side of split */
    position: relative;
    padding: var(--space-2) 0;
    text-decoration: none;
}

.nav__link span {
    position: relative;
    display: inline-block;
}

/* Top Line - Right to Left */
.nav__link span::before {
    content: '';
    position: absolute;
    top: -2px;
    /* Tight spacing used */
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-black);
    transition: width 0.3s ease;
}

/* Bottom Line - Left to Right */
.nav__link span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    /* Tight spacing used */
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-black);
    transition: width 0.3s ease;
}

.nav__link:hover span::before,
.nav__link:hover span::after {
    width: 100%;
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.nav__toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-black);
    border-radius: 3px;
    transition: all 0.3s linear;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.hero__video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('/images/hero_fallback.jpg') center/cover no-repeat;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 1rem;
}

.hero__logo img {
    max-width: 3600px;
    width: 90%;
    margin-bottom: 4rem;
}

.hero__tagline {
    margin-bottom: 4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Improve readability over video */
}

/* Utility classes for direct usage in twig within hero context */
.d-block {
    display: block;
}

.font-bold {
    font-weight: 700;
}

.mb-2 {
    margin-bottom: 1rem;
}

.opacity-90 {
    opacity: 0.9;
}

/* Reuse variables for fonts/sizes if not already working, but let's be explicit here to ensure "pretty" look */
.hero__tagline .text-xl {
    font-size: 2rem;
    /* Make the main part big */
    line-height: 1.2;
}

.hero__tagline .text-base {
    font-size: 1.25rem;
    /* Subtitle size */
    font-weight: 300;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    width: 30px;
    height: 30px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Hero & CTA Buttons */
.hero .btn,
.section--gradient .btn,
.btn--trapezoid {
    border-radius: 0;
    transform: skewX(-24.7deg);
    transition: all 0.3s ease;
    background: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-white);
    padding: 1rem 2.5rem;
    position: relative;
    /* Margin removed as border is now inside */
}

.hero .btn span,
.section--gradient .btn span,
.btn--trapezoid span {
    display: inline-block;
    transform: skewX(24.7deg);
    position: relative;
    /* Anchor for borders */
}

.hero .btn:hover,
.section--gradient .btn:hover,
.btn--trapezoid:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
    animation: btn-pulse 1.5s infinite;
    transform: scale(1.05) skewX(-24.7deg);
    /* Set initial state for animation baseline */
}

/* Dynamic Offset Border - attached to SPAN now */
.hero .btn span::before,
.hero .btn span::after,
.section--gradient .btn span::before,
.section--gradient .btn span::after,
.btn--trapezoid span::before,
.btn--trapezoid span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-white);
    transform: scaleX(0);
    /* transform-origin set individually below */
    pointer-events: none;
    opacity: 1;
}

.hero .btn span::before,
.section--gradient .btn span::before,
.btn--trapezoid span::before {
    top: 0;
    /* Zero gap - touching text area */
    transform-origin: right;
    /* From Right */
}

.hero .btn span::after,
.section--gradient .btn span::after,
.btn--trapezoid span::after {
    bottom: 0;
    /* Zero gap - touching text area */
    transform-origin: left;
    /* From Left */
}

/* Trigger animation on hover of the button, targeting the span's pseudos */
.hero .btn:hover span::before,
.hero .btn:hover span::after,
.section--gradient .btn:hover span::before,
.section--gradient .btn:hover span::after,
.btn--trapezoid:hover span::before,
.btn--trapezoid:hover span::after {
    animation: draw-border-x 0.4s ease-out forwards;
}

/* Kontakt-Formular: invertierter Trapez-Button (weißer Hintergrund) */
.form-section--submit .btn--trapezoid {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.form-section--submit .btn--trapezoid:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-black);
}

@keyframes draw-border-x {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes btn-pulse {
    0% {
        transform: scale(1.05) skewX(-24.7deg);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1.1) skewX(-24.7deg);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1.05) skewX(-24.7deg);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Cleanup: Remove outline button style override as it's no longer used in hero */

/* Sections */
.section {
    padding: var(--space-8) 0;
}

.section--dark {
    background-color: var(--color-bg-dark);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(88, 28, 135, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(30, 58, 138, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(127, 29, 29, 0.06) 0%, transparent 50%);
    color: var(--color-white);
}

.section--gradient {
    position: relative;
    background:
        repeating-linear-gradient(
            -45deg,
            transparent 0,
            transparent 32px,
            rgba(255, 255, 255, 0.025) 32px,
            rgba(255, 255, 255, 0.025) 33px
        ),
        linear-gradient(135deg, var(--color-black), #1f1f1f);
    color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilities */
.grid {
    display: grid;
    gap: 2rem;
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.text-center {
    text-align: center;
}

.mt-12 {
    margin-top: 3rem;
}

/* Components */
.card {
    background: var(--color-white);
    color: var(--color-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
}

.card__content {
    padding: 2rem;
}

.card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn--primary {
    background: var(--color-white);
    color: var(--color-black);
}

.btn--primary:hover {
    background: #eee;
}

.btn--outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
}


/* Responsive Navigation */
@media (max-width: 1024px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        /* Below header */
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        pointer-events: none;
    }

    .nav__menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav__toggle {
        display: flex;
        /* Show hamburger */
    }
}

@media (max-width: 768px) {
    .nav .container {
        padding: 0 1rem;
        height: 56px;
        /* Reduce height on mobile to scale logo down */
    }

    .nav__menu {
        top: 56px;
        /* Match new header height */
    }

    .nav__logo {
        max-width: calc(100% - 60px);
        /* Leave room for toggle */
    }

    .nav__logo img {
        /* Remove fixed max-width and let height drive the width to maintain aspect ratio */
        max-width: 100%;
        height: 100%;
        width: auto;
        object-fit: contain;
    }
}

/* Page Header (Hero for subpages) */
.page-header {
    background-color: var(--color-bg-dark);
    background-image: repeating-linear-gradient(
        -45deg,
        transparent 0,
        transparent 32px,
        rgba(255, 255, 255, 0.025) 32px,
        rgba(255, 255, 255, 0.025) 33px
    );
    color: var(--color-white);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-header > .container {
    width: 100%;
}

@media (max-width: 768px) {
    .page-header {
        min-height: 240px;
    }
}

.page-header__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-header__subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 300;
}

/* Repertoire Styles */
.repertoire-category {
    margin-bottom: 4rem;
}

.repertoire-category__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.repertoire-category__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-white);
    /* White separator */
}

/* Dark mode tweaks for titles on white bg? No, body is white. Separator should be black or primary. */
.repertoire-category__title::after {
    background-color: var(--color-black);
}


.repertoire-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.repertoire-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    /* Slightly rounded */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--color-bg-dark);
    /* Accent */
    border: 1px solid #eee;
    border-left-width: 4px;
}

.repertoire-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.repertoire-item__song {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--color-black);
}

.repertoire-item__artist {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    /* Reduced from 4rem */
    padding: 1rem 0;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--color-black);
    transform: translateX(-50%);
    opacity: 0.2;
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
    /* Very compact */
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Dot on the line */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    /* Center vertically relative to the card */
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--color-black);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 3px var(--color-white);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:hover .timeline-dot {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--color-primary);
    /* If primary differs from black, else use maybe a color? */
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 0.75rem 1.25rem;
    /* Compact padding */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50px;
    /* Pill shape for "cool" look */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);

    /* Flex Layout for Compactness */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Alternating Sides */
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    /* Arrow pointing left */
}

.timeline-item:nth-child(odd) .timeline-content,
.timeline-item:nth-child(even) .timeline-content {
    flex-direction: row;
    justify-content: flex-start;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    border-right: none;
    /* remove old border style */
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-black);
    white-space: nowrap;
    line-height: 1;

    /* Badge style */
    background: #f4f4f4;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    margin-right: auto;

    /* Vertikal zentriert: Year-Text + Icon + ggf. Video-Indicator */
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.timeline-info {
    /* New wrapper class needed in twig? Or just rely on order? 
   Wait, the twig structure is: 
   <div class="timeline-content">
       <span class="timeline-year">...</span>
       <div class="timeline-song">...</div>
       <div class="timeline-artist">...</div>
   </div>
   So "margin-right: auto" on year pushes song/artist to right.
*/
}

.timeline-song {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: right;
}

.timeline-artist {
    color: #666;
    font-style: italic;
    font-size: 0.8rem;
    display: block;
    text-align: right;
}

/* Animation Base Classes — Blur Reveal (kein opacity, sonst weißes Aufblitzen) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Trapez-Buttons: skewX nach Animation beibehalten (überschreibt translateY(0)) */
.hero .btn.animate-on-scroll.visible,
.section--gradient .btn.animate-on-scroll.visible,
.btn--trapezoid.animate-on-scroll.visible {
    transform: skewX(-24.7deg);
}

/* Staggered Page Entry — Admin-Seiten (Blur) */
.stagger-enter {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.99);
}

.stagger-enter.entered {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    transition: opacity 0.4s ease-out, filter 0.4s ease-out, transform 0.4s ease-out;
}

/* Blur Unveil Animation (Repertoire) — kein opacity, sonst weißes Aufblitzen */
.blur-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.blur-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Trapez-Buttons: skewX nach blur-reveal beibehalten */
.hero .btn.blur-reveal.revealed,
.section--gradient .btn.blur-reveal.revealed,
.btn--trapezoid.blur-reveal.revealed {
    transform: skewX(-24.7deg);
}

/* Mobile Timeline (Single Column) */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        /* Force left margin */
        text-align: left !important;
        /* Schwarze 4px-Akzentlinie links entfernt (Lou-Wunsch — wirkte zu hart).
           Karte nutzt jetzt ihren dezenten Basis-Rahmen. Reine Handy-Regel,
           Desktop war davon nie betroffen. */
    }
}

/* Accordion / Details */
details.repertoire-details summary {
    list-style: none;
    /* Hide default triangle */
    cursor: pointer;
    text-align: center;
    outline: none;
}

details.repertoire-details summary::-webkit-details-marker {
    display: none;
}

details.repertoire-details[open] summary~* {
    animation: fadeIn 0.5s ease-in-out;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes btn-pulse-dark {
    0% {
        transform: scale(1.05) skewX(-24.7deg);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
    }

    70% {
        transform: scale(1.1) skewX(-24.7deg);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(1.05) skewX(-24.7deg);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Trapezoid Button Inverse (For Light Backgrounds) */
/* Style: Solid Black default (High contrast like Hero), White Hover */
/* Effectively swaps the Hero Button's Default/Hover states */
.btn--trapezoid-inverse {
    background: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-black);
}

.btn--trapezoid-inverse:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-black);
    animation: btn-pulse-dark 1.5s infinite;
}

/* Specific Override to kill Pill Shape */
a.btn.btn--trapezoid.btn--trapezoid-inverse,
.btn--trapezoid-inverse {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

/* Lines: White on Black BG (Default) */
.btn--trapezoid-inverse span::before,
.btn--trapezoid-inverse span::after {
    background: var(--color-white) !important;
}

/* Lines: Black on White Hover */
.btn--trapezoid-inverse:hover span::before,
.btn--trapezoid-inverse:hover span::after {
    background: var(--color-black) !important;
}

/* ==================================
   Mobile Bottom Navigation
   ================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    background: white;
    border-top: 1px solid #e5e7eb;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 0.5rem 0 0.5rem 0;
    }
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.2s ease;
    min-height: 44px;
    position: relative;
}

.bottom-nav__item svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    transition: all 0.2s ease;
}

.bottom-nav__item span {
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bottom-nav__item:active {
    transform: scale(0.95);
}

.bottom-nav__item.active {
    color: var(--color-black);
}

.bottom-nav__item.active svg {
    stroke-width: 2.5;
}

.bottom-nav__item.active span {
    font-weight: 600;
}

@media (hover: hover) {
    .bottom-nav__item:hover {
        color: var(--color-black);
        background: rgba(0, 0, 0, 0.03);
        border-radius: 8px;
    }
}

/* ========================================
   Home: Video-Showcase (Welcome-Section)
   ======================================== */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.video-tile {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #0d0d0d;
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent 0,
            transparent 18px,
            rgba(255, 255, 255, 0.03) 18px,
            rgba(255, 255, 255, 0.03) 19px
        );
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-tile__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Fix: Videos flackerten beim Scrollen. Das gerundete, per overflow:hidden geclippte Video lag in der
   DAUERHAFTEN GPU-Compositing-Ebene des .blur-reveal-Containers (dessen will-change + transform bleiben
   auch nach dem Einblenden aktiv) und wurde dadurch bei jedem Scroll neu komponiert.
   → (1) Ebene des Containers nach dem Reveal auflösen; (2) die Video-Kachel auf eine eigene, stabile
   Compositing-Ebene legen, die als Ganzes mitscrollt (kein Re-Clipping des gerundeten Videos mehr). */
.video-grid.blur-reveal { will-change: auto; }
.video-grid.blur-reveal.revealed { transform: none; }
.video-tile { transform: translateZ(0); }

.video-tile__label {
    color: rgba(255, 255, 255, 0.25);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Footer (3-Spalten-Layout)
   ======================================== */
.footer {
    padding: 2rem 0;
    margin-top: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: start;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}

.footer__logo {
    display: inline-block;
}

.footer__logo img {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin: 0 0 0.25rem 0;
}

.footer__heading--link {
    text-decoration: none;
    transition: color 0.2s ease;
    width: fit-content;
}

.footer__heading--link:hover {
    color: var(--color-white);
}

.footer__link {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.2s ease;
    width: fit-content;
}

.footer__link:hover {
    opacity: 0.7;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
}

.footer__social-link {
    color: var(--color-white);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer__social-link:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

.footer__bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer__legal a:hover {
    color: var(--color-white);
}

.footer__copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__col {
        align-items: center;
    }

    .footer__link {
        width: auto;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer__legal {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   Mobile-Typografie — Hero-/Überschriften kleiner & weniger wuchtig.
   Lou-Feedback: der große Hero-Titel (.page-header__title, 3.5rem) wirkt auf
   dem Handy zu fett/wuchtig und klebt am Rand. Hier werden die geteilten
   Display-/Überschriften-Klassen für Handy/Tablet verkleinert.
   WICHTIG: ausschließlich in Media-Queries → Desktop bleibt pixelgleich.
   Body-/Fließtext bleibt >= 16px (Lesbarkeit). Der 480er-Block steht NACH
   dem 768er, damit er auf Handys (beide matchen) gewinnt.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .page-header__title {
        font-size: 2.25rem;       /* 56px → 36px */
        font-weight: 600;          /* 700 → 600: weniger fett-auftragend */
        letter-spacing: 0.03em;    /* 0.05em → 0.03em: schmaler */
    }
    .page-header__subtitle { font-size: 1.0625rem; }   /* 20px → 17px */
    .section-header__title { font-size: 1.75rem; }     /* 40px → 28px */
    .repertoire-category__title { font-size: 1.5rem; } /* 32px → 24px */
    .hero__tagline .text-xl { font-size: 1.625rem; }   /* Home-Hero-Untertitel */
    .hero__tagline .text-base { font-size: 1.0625rem; }
}

@media (max-width: 480px) {
    .page-header__title {
        font-size: 2rem;           /* 56px → 32px: klare Luft zum Rand */
        letter-spacing: 0.02em;
    }
    .page-header__subtitle { font-size: 1rem; }        /* 16px Untergrenze */
    .section-header__title { font-size: 1.5625rem; }   /* 25px */
    .repertoire-category__title { font-size: 1.375rem; }
    .hero__tagline .text-xl { font-size: 1.5rem; }
    .hero__tagline .text-base { font-size: 1rem; }
}