:root {
    --bg: #0b0d10;
    --surface: #11151d;
    --line: #1b2334;
    --text: #e9edf7;
    --muted: #a9b2c8;
    --accent: #11d6d1;
    --accent2: #ffb25b;
    --maxw: 1320px;
    --r: 18px;
    --tileH: 240px;
}

@media (max-width:900px) {
    :root {
        --tileH: 200px;
    }
}

@media (max-width:560px) {
    :root {
        --tileH: 170px;
    }
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

img,
video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.container {
    max-width: var(--maxw);
    margin: auto;
    padding: 24px 18px
}

.kicker {
    color: var(--muted);
    font-weight: 800;
    letter-spacing: .25em;
    text-transform: uppercase;
    font-size: 12px
}

.title {
    font-size: clamp(28px, 4.8vw, 46px);
    margin: .2em 0 .2em;
    font-weight: 900
}

.lead {
    color: var(--muted);
    max-width: 880px
}

.small {
    font-size: 13px
}

.muted {
    color: var(--muted)
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    border: 1px solid #ffffff30;
    background: #0f1220;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800
}

.btn.light {
    background: #ffffff;
    color: #0b1020;
    border: none
}

/* Kräftiger CTA */
.btn.cta-strong {
    background: linear-gradient(90deg, #16e6e1, #2b8cff 55%, #8349ff);
    border: none;
    color: #061020;
    box-shadow: 0 6px 24px #2b8cff33, 0 2px 10px #16e6e133;
    position: relative;
    isolation: isolate;
}

.btn.cta-strong::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    z-index: -1;
    background: radial-gradient(120px 40px at 10% 10%, #fff6, transparent 60%);
    animation: pulse 2.4s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: .5
    }

    50% {
        opacity: 1
    }
}

.hero {
    padding-top: 22px
}

.hi {
    background: linear-gradient(90deg, #fff, #cfe7ff 40%, var(--accent) 70%, var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 13, 16, .7);
    backdrop-filter: blur(8px) saturate(130%)
}

.nav-inner {
    max-width: var(--maxw);
    margin: auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Platz zwischen Logo & Nav rechts */
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
    /* Schiebt alles nach rechts */
}

.nav-links a {
    color: white;
    text-decoration: none;
}

/* Navbar / Brand */
.brand { 
    display: flex; 
    align-items: center; 
    flex: 0 0 auto;               /* Logo soll sich im Flex-Layout nicht quetschen */
  }
  
  /* Fluid, mobil kleiner – desktop moderat */
  .brand img{
    display: block;
    height: clamp(24px, 2.8vw, 30px);  /* min 24px, wächst bis max 44px */
    width: auto;                       /* Proportionen behalten */
  }
  
  /* Optional: etwas Abstand rechts zum Menü */
  .brand { margin-right: 16px; }
  
  @media (max-width: 720px){
    .brand { margin-right: 10px; }     /* auf Mobile etwas enger */
  }
  

.logo {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: conic-gradient(from 120deg, #1dd6d1, #2b8cff, #8349ff, #1dd6d1)
}

.links {
    display: flex;
    gap: 16px;
    align-items: center
}

@media (max-width:900px) {
    .links {
        display: none
    }
}

/* ---- Navbar Grundlayout: Logo links, rechts Links/Burger ---- */
/* --- NAVBAR --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 13, 16, .7);
    backdrop-filter: blur(8px) saturate(130%);
}

.nav-inner {
    max-width: var(--maxw);
    margin: auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.logo {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: conic-gradient(from 120deg, #1dd6d1, #2b8cff, #8349ff, #1dd6d1);
}

/* Desktop-Links rechts */
.links {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
    align-items: center;
}

/* Klassischer Burger */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    position: relative;
    cursor: pointer;
    z-index: 2;
    /* Klickbar über allem in der Leiste */
}

.burger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #e9edf7;
    border-radius: 1px;
    transition: transform .25s ease, opacity .2s ease;
}

.burger span:nth-child(1) {
    top: 14px;
}

.burger span:nth-child(2) {
    top: 21px;
}

.burger span:nth-child(3) {
    top: 28px;
}

/* X-Zustand */
.burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobiles Dropdown */
.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: #0e1320;
}

/* „hidden“ steuert die Sichtbarkeit */
[hidden] {
    display: none !important;
}

/* Breakpoints */
@media (max-width:900px) {
    .burger {
        display: block;
    }

    .links {
        display: none;
    }
}

@media (min-width:901px) {
    .mobile-menu {
        display: none !important;
    }

    /* Menü nie auf Desktop zeigen */
}


/* Hidden bleibt via [hidden] gesteuert */
[hidden] {
    display: none !important;
}

/* Breakpoints: Burger an, Links aus */
@media (max-width:900px) {
    .burger {
        display: block;
    }

    .links {
        display: none;
    }
}

/* Desktop: mobiles Menü sicher ausblenden */
@media (min-width:901px) {
    .mobile-menu {
        display: none !important;
    }
}


/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px
}

@media (max-width:1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:820px) {
    .grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

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

.tile {
    position: relative;
    height: var(--tileH);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    cursor: pointer;
    transform: translateZ(0)
}

.tile[data-span="2"] {
    grid-column: span 2
}

.tile[data-tall],
.tile.portrait {
    height: calc(var(--tileH)*2 + 12px)
}

.tile .media {
    width: 100%;
    height: 100%;
    transition: transform .35s ease
}

.tile:hover .media {
    transform: scale(1.02)
}

.badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #0b1020;
    background: #fff;
    border-radius: 10px
}

.linktag {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 9px;
    color: #0b1020;
    background: linear-gradient(90deg, #fff, #ddd)
}

/* mehr Luft über "Über mich" */
#about{
    padding-top: clamp(32px, 6vw, 120px); /* ↑ Abstand */
    scroll-margin-top: 96px;              /* falls per #about geankert & Header sticky ist */
  }

.about h2 {
    margin-top: 200px;
}

/* About / Cards */
.about-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 12px
}

@media (max-width:1000px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:640px) {
    .about-grid {
        grid-template-columns: 1fr
    }
}

.card {
    background: #0e1320;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover
}

.card .content {
    padding: 14px
}

.card h3 {
    margin: 0 0 6px 0;
    font-size: 18px
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55
}

.card .content+img,
.card img {
    object-fit: cover;
}

/* Refs */
.refs {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr)
}

@media (max-width:900px) {
    .refs {
        grid-template-columns: 1fr
    }
}

.testi {
    background: #0e1220;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px
}

.testi blockquote {
    margin: 0 0 10px 0;
    color: #eaf0ff
}

/* Kontakt */
.contact-wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    align-items: start
}

@media (max-width:900px) {
    .contact-wrap {
        grid-template-columns: 1fr
    }
}

.form {
    background: #0e1326;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    display: grid;
    gap: 12px
}

label {
    display: grid;
    gap: 6px
}

input,
textarea,
select {
    width: 100%;
    font: inherit;
    background: #0b0f1d;
    border: 1px solid #ffffff18;
    border-radius: 12px;
    color: #e5e9ff;
    padding: 12px 14px;
    outline: none
}

textarea {
    min-height: 140px;
    resize: vertical
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px #ffffff22
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
}

.mini-grid .tile {
    height: 170px
}

/* Filter */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 14px
}

.filters button {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #ffffff20;
    background: #0e1326;
    color: #e9edf7;
    cursor: pointer
}

.filters button[aria-pressed="true"] {
    background: linear-gradient(90deg, #1a2237, #121a2e)
}

/* Viewer */
.viewer {
    position: fixed;
    inset: 0;
    background: #000c;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
    backdrop-filter: blur(2px)
}

.viewer.open {
    display: flex
}

.viewer .frame {
    max-width: min(1200px, 94vw);
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid #ffffff22
}

.viewer .frame>img,
.viewer .frame>video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000
}

.viewer .bar {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px
}

.close {
    position: absolute;
    top: 14px;
    right: 14px
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px) scale(.975);
    transition: opacity .7s cubic-bezier(.16, .84, .44, 1), transform .7s cubic-bezier(.16, .84, .44, 1)
}

.reveal.in {
    opacity: 1;
    transform: none
}


.site-footer {
    background: #0d0d0d;
    color: #ccc;
    padding: 1.5rem 2rem;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-right a {
    display: inline-block;
    margin-left: 1rem;
}

.footer-right img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-right img:hover {
    transform: scale(1.1);
    filter: brightness(1) invert(0);
}

.footer-left {
    margin-bottom: 0.5rem;
}


/* Masonry (CSS Columns) */
.masonry {
    column-gap: 12px;
    column-count: 4;
}

@media (max-width:1200px) {
    .masonry {
        column-count: 3
    }
}

@media (max-width:820px) {
    .masonry {
        column-count: 2
    }
}

@media (max-width:520px) {
    .masonry {
        column-count: 1
    }
}

/* Drive-Embed mit fester Ratio, damit nie „Striche“ entstehen */
.embed {
    position: relative;
    width: 100%;
    border-radius: inherit;
    overflow: hidden;
    background: #000;
}

.embed::before {
    content: "";
    display: block;
    padding-top: 56.25%;
    /* 16:9 */
}

.embed.portrait::before {
    padding-top: 177.78%;
    /* 9:16 */
}

.embed>iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

/* Overlay-Button für Drive-Kacheln */
.embed .zoom {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    padding: 8px 10px;
    font-weight: 800;
    font-size: 12px;
    border-radius: 10px;
    border: 1px solid #ffffff33;
    background: #0d1324cc;
    color: #fff;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.embed .zoom:hover {
    border-color: #ffffff66
}


/* Tiles im Masonry-Flow: keine Brüche/Lücken */
.masonry .tile {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    border-radius: var(--r);
    overflow: hidden;
    break-inside: avoid;
    /* <- verhindert Spaltenbrüche */
    height: auto;
    /* dynamische Höhe */
}

.masonry .tile .media {
    width: 100%;
    height: auto;
    /* passt sich dem Inhalt an */
    transition: transform .35s ease;
}

.masonry .tile:hover .media {
    transform: scale(1.02)
}

/* Portrait-Kennzeichnung nicht mehr nötig für Höhe,
     kann aber bleiben – optional leicht größer: */


/* Global hide helper */
[hidden] {
    display: none !important
}

/* Desktop: mobile menu grundsätzlich aus */
.mobile-menu {
    display: none
}

/* Mobile: zeigen, wenn nicht hidden */
@media (max-width:900px) {
    .mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 14px 18px;
        border-bottom: 1px solid var(--line);
        background: #0d121d
    }

    .mobile-menu a {
        padding: 12px 10px;
        border-radius: 12px;
        background: #0f1424;
        border: 1px solid #ffffff12
    }

    .mobile-menu .cta-strong {
        display: inline-block
    }
}

/* === About-Karten: fixes Seitenverhältnis + smoother Hover === */
.about-grid .card {
    overflow: hidden;
    border-radius: 16px;
    /* dein Look */
    background: #0e141b;
    /* falls ein Bild mal fehlt */
}

/* Bild oben in der Karte – überall gleich hoch dank aspect-ratio */
.about-grid .card>img {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    /* HIER ggf. 4/3 oder 3/2, wenn dir das besser gefällt */
    height: auto;
    object-fit: cover;
    /* sauberer Zuschnitt, kein Verzerren */
    transform: scale(1);
    /* Ausgangszustand */
    transform-origin: 50% 50%;
    /* immer aus der Mitte */
    transition: transform 360ms cubic-bezier(.2, .8, .2, 1),
        filter 360ms ease;
    will-change: transform;
}

.about-grid .card:hover>img {
    transform: scale(1.05);
    /* sanfter Zoom */
    filter: saturate(1.04) brightness(1.02);
}

/* optional: minimaler „Lift“ der ganzen Karte */
.about-grid .card {
    transition: box-shadow .25s ease, transform .25s ease;
}

.about-grid .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .35);
}

/* Weniger Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    .about-grid .card:hover {
        transform: none;
        box-shadow: none;
    }

    .about-grid .card>img {
        transition: none;
    }
}




/* Navbar: Spacer zwischen Logo links & Nav rechts */
.nav-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between
}

.links {
    display: flex;
    gap: 16px;
    align-items: center
}

@media (max-width:900px) {
    .links {
        display: none
    }
}


.fcw-fan-img {
    object-fit: cover;
    /* Bild füllt Container */
    object-position: center 80%;
    /* 30% nach unten verschoben */
}

.events-img {
    object-fit: cover;
    object-position: center 35%;
    /* 70% nach unten verschoben */
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: #0e7a3f;
    color: #eafff3;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
    font-weight: 600;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: #a0182d;
    color: #ffe7eb;
}


/* ---- Popup / Modal ---- */
.mm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.mm-modal.show {
    display: block;
}

.mm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 16, .55);
    backdrop-filter: blur(6px);
}

.mm-modal__card {
    position: relative;
    margin: 10vh auto 0;
    max-width: 420px;
    padding: 28px 24px;
    border-radius: 20px;
    background: rgba(16, 18, 24, .72);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    color: #e8f3ff;
}

.mm-modal__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.mm-check,
.mm-cross {
    width: 70px;
    height: 70px;
    display: none;
}

.mm-check__circle,
.mm-cross__circle {
    stroke: #5ee391;
    stroke-width: 2;
    opacity: .35
}

.mm-check__tick {
    stroke: #5ee391;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: mm-draw .6s ease .2s forwards;
}

.mm-cross__line {
    stroke: #ff6b88;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: mm-draw .45s ease forwards;
}

@keyframes mm-draw {
    to {
        stroke-dashoffset: 0
    }
}

.mm-modal.ok .mm-check {
    display: block
}

.mm-modal.error .mm-cross {
    display: block
}

.mm-modal.ok .mm-modal__card {
    border-color: rgba(94, 227, 145, .45)
}

.mm-modal.error .mm-modal__card {
    border-color: rgba(255, 107, 136, .45)
}

.mm-modal__title {
    margin: 6px 0 4px;
    font-size: 22px;
    font-weight: 800
}

.mm-modal__text {
    margin: 0 0 16px;
    opacity: .9
}

.mm-modal__actions {
    display: flex;
    justify-content: center;
    gap: 10px
}

.mm-btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer
}

.mm-btn {
    background: linear-gradient(135deg, #6cf, #7effb2);
    color: #0b1320
}

.mm-btn:hover {
    filter: brightness(1.08)
}

/* =========================
   Carousel – Single Source
   ========================= */

/* Höhe/Gaps für die Startseite (Galerie) */
#gallery {
    --tile-h: 440px;
    /* -> „bisschen höher“: hier anpassen (z.B. 420–480) */
    --tile-gap: 28px;
}

@media (max-width: 900px) {
    #gallery {
        --tile-h: 300px;
        --tile-gap: 16px;
    }
}

/* Der sichtbare Bereich */
.carousel-viewport,
#gallery.carousel-viewport {
    overflow: hidden;
    position: relative;
}

/* Die laufende Spur */
.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--tile-gap);
    align-items: center;
    will-change: transform;
}

/* Einzelne Kachel: Höhe fix, Breite aus dem Inhalt (Aspect-Ratio) */
.carousel-track .tile {
    flex: 0 0 auto;
    /* nicht schrumpfen */
    height: var(--tile-h);
    min-height: var(--tile-h);
    width: auto;
    /* keine feste Breite */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 12px 46px;
    /* Platz für Badge unten */
    background: #0b0f14;
    border-radius: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

/* Medien füllen die Kachelhöhe, Breite folgt dem Seitenverhältnis */
.carousel-track .tile .media {
    height: 100%;
    width: auto !important;
    /* WICHTIG: Breite vom Motiv */
    object-fit: contain;
    /* nie zuschneiden/verzerren */
    display: block;
    border-radius: 14px;
    pointer-events: none;
    /* Klick liegt auf der Kachel */
    max-width: min(92vw, 780px);
    /* Sicherheitslimit */
}

/* Videos bekommen die gleichen Regeln */
.carousel-track .tile video.media {
    height: 100%;
    width: auto !important;
    object-fit: contain;
}

/* Badges / Link-Tag */
.carousel-track .tile .badge {
    position: absolute;
    left: 14px;
    bottom: 10px;
}

.carousel-track .tile .linktag {
    position: absolute;
    right: 14px;
    top: 10px;
}

/* Optional: Rand-Fades (um das Ende schön auszublenden)
     – wenn gewünscht, zwei Divs .carousel-fade.left/right in den Viewport legen */
.carousel-fade {
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 220px;
    z-index: 2;
}

.carousel-fade.left {
    left: 0;
    background: linear-gradient(to right, #0b0f14 0%, rgba(11, 15, 20, .92) 40%, rgba(11, 15, 20, 0) 95%);
}

.carousel-fade.right {
    right: 0;
    background: linear-gradient(to left, #0b0f14 0%, rgba(11, 15, 20, .92) 40%, rgba(11, 15, 20, 0) 95%);
}

/* =========================
     Viewer – größer, „contain“
     ========================= */

/* ====== GROßER VIEWER (fast full-screen, kein Cropping) ====== */
#viewer .frame,
.viewer .frame {
    width: min(96vw, 1800px);
    /* <-- nicht nur max-width, sondern feste Breite */
    max-height: 94vh;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Box inside the frame – bekommt die Größe, hält Ratio */
#viewer .viewer-box,
.viewer .viewer-box {
    width: 100%;
    max-height: 94vh;
    aspect-ratio: 16 / 9;
    /* Fallback – Videos/Bilder überschreiben das per JS */
    background: #0b0f16;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Egal ob <img>, <video> oder <iframe> – immer komplett sichtbar */
#viewer .viewer-media,
#viewer .frame>img,
#viewer .frame>video,
#viewer .frame>iframe,
.viewer .frame>img,
.viewer .frame>video,
.viewer .frame>iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* nie verzerren */
    border: 0;
    display: block;
}

/* Mobile etwas knapper */
@media (max-width: 900px) {

    #viewer .frame,
    .viewer .frame {
        width: 98vw;
        max-height: 92vh;
    }

    #viewer .viewer-box,
    .viewer .viewer-box {
        max-height: 92vh;
    }
}



/* Carousel: Stage-Größen + Background aus --bg setzen */
.carousel-viewport .stage,
.carousel-viewport .stage-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

/* hier wird das Background-Bild aus dem Inline-Style --bg:url(...) verwendet */
.carousel-viewport .stage.bg {
    background-image: var(--bg) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* bei Drive-Items liegen zwei BG-Layer übereinander (Thumb + UC-Fallback) */
.carousel-viewport .stage-wrap .stage.bg+.stage.bg {
    position: absolute;
    inset: 0;
}

/* =============== REFS: breiter & weiß =============== */

/* ===== Grid: 1 Spalte mobil, 2 Spalten ab 720px ===== */
#refs .refs {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px 28px !important;
    align-items: start;
    max-width: 100%;
}

@media (min-width:720px) {
    #refs .refs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ===== Karten: einheitlicher Look ===== */
#refs .refs>.testi {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 26px 26px 22px;
    border-radius: 22px;
    background: #fff !important;
    border: 1px solid #fff !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
    min-width: 0;
    break-inside: avoid;
}

/* Alles in der Karte schwarz – egal welche Unterelemente/Klassen */
#refs .refs>.testi,
#refs .refs>.testi * {
    color: #000 !important;
}

/* Typografie */
#refs .refs .testi blockquote {
    margin: 0 0 14px;
    font-size: clamp(18px, 1.5vw, 20px);
    line-height: 1.7;
}

#refs .refs .testi figcaption {
    margin-top: 6px;
    font-weight: 800;
    font-size: 13px;
    opacity: .95;
}

/* Zitat-Deko + Tail */
#refs .refs .testi::before {
    content: "“";
    position: absolute;
    top: -6px;
    left: 14px;
    font-size: 56px;
    line-height: 1;
    color: #00000010;
    pointer-events: none;
}

#refs .refs .testi::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 40px;
    width: 18px;
    height: 18px;
    transform: rotate(45deg);
    background: #fff;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    border-bottom-left-radius: 6px;
    box-shadow: 6px 6px 16px rgba(0, 0, 0, .18);
}

@media (min-width:720px) {
    #refs .refs .testi:nth-child(2n)::after {
        left: auto;
        right: 40px;
    }
}

/* ===== Mobile-Tuning (<= 719px) ===== */
@media (max-width: 719px){
    /* etwas engeres Grid & Seitenabstand */
    #refs .refs{
      gap: 16px 18px !important;
      padding-inline: 10px;         /* sorgt für Rand links/rechts */
    }
  
    /* Karte kompakter + zentriert + sichere Max-Breite */
    #refs .refs > .testi{
      padding: 18px 16px 16px;      /* weniger Padding */
      border-radius: 16px;
      max-width: 92vw;              /* nie breiter als der Screen */
      justify-self: center;         /* schön mittig */
    }
  
    /* Text etwas kompakter */
    #refs .refs .testi blockquote{
      font-size: clamp(16px, 4.6vw, 18px);
      line-height: 1.55;
      overflow-wrap: anywhere;      /* kein Overflow bei langen Wörtern */
      hyphens: auto;
    }
  
    /* Deko kleiner, damit nix anstößt */
    #refs .refs .testi::before{
      left: 8px; top: -8px; font-size: 42px;
    }
    #refs .refs .testi::after{
      left: 24px; width: 14px; height: 14px;
      box-shadow: 4px 4px 10px rgba(0,0,0,.14);
    }
  }
  


/* Startzustand für Reveal */
#refs .refs .testi {
    opacity: 0;
    transform: translateY(18px) scale(.965);
    will-change: transform, opacity;
}

/* Wenn sichtbar → animieren */
#refs .refs .testi.in {
    animation: bubble-in 700ms cubic-bezier(.19, .84, .34, 1) var(--delay, 0ms) both;
}

/* leichter Hover-Lift (nach dem Reveal) */
@media (hover:hover) {
    #refs .refs .testi.in:hover {
        transform: translateY(-2px) scale(1.01);
        box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
        transition: transform .25s ease, box-shadow .25s ease;
    }
}

/* Keyframes */
@keyframes bubble-in {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(.94)
    }

    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.02)
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

/* Motion-Preference respektieren */
@media (prefers-reduced-motion: reduce) {
    #refs .refs .testi {
        opacity: 1;
        transform: none !important;
        animation: none !important;
    }
}

/* =========================
   Landing: Konzertfotografie
   ========================= */
.hero-live {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 20% 20%, #102036, #0b0d10 60%);
    isolation: isolate;
}

.hero-live::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #0b0d10 6%, rgba(11, 13, 16, .6) 40%, rgba(11, 13, 16, .28) 82%);
    z-index: 1;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
    opacity: 0;
    animation: heroFade 24s infinite;
}

.hero-slide:nth-child(2) {
    animation-delay: 8s;
}

.hero-slide:nth-child(3) {
    animation-delay: 16s;
}

@keyframes heroFade {
    0%,
    8% {
        opacity: 1;
    }

    28%,
    100% {
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(44px, 8vw, 96px) 18px 84px;
    max-width: 880px;
}

.hero-content .title {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hero-pills span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #0f1220cc;
    border: 1px solid #ffffff24;
    font-weight: 700;
    color: #dfe6f9;
}

@media (max-width: 720px) {
    .actions {
        gap: 14px;
        margin-top: 8px;
    }

    .hero-live {
        min-height: 100vh;
        align-items: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        animation: none;
        opacity: .35;
    }

    .hero-slide:first-child {
        opacity: 1;
    }
}

.section-header {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: clamp(12px, 4vw, 32px);
}

.stat-card {
    background: #0e1320;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 16px 18px;
}

.split-section {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: start;
}

@media (max-width: 980px) {
    .split-section {
        grid-template-columns: 1fr;
    }
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: grid;
    gap: 10px;
}

.feature-list li {
    padding: 10px 12px;
    border-radius: 12px;
    background: #0f1322;
    border: 1px solid #ffffff14;
}

.service-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(130deg, #0f1424, #0b0f18);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    opacity: 1;
    transform: none;
    transition: transform .5s ease, opacity .5s ease;
}

.service-reveal {
    opacity: 0;
    transform: translateY(18px) scale(.98);
}

.service-reveal.in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.service-block {
    gap: 12px;
}

.service-block .title {
    margin-bottom: 6px;
}

.service-block .lead {
    margin-bottom: 12px;
}

.service-list {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 10px;
}

.service-list .service-card {
    min-height: 140px;
}

.service-card h3 {
    margin: 0 0 6px;
}

.service-card .small {
    margin: 0;
}

.service-visual {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0e1320;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
    min-height: 280px;
}

.service-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 980px) {
    .service-visual {
        min-height: 200px;
    }
}

.live-grid .media-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.live-shot {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0f1320;
}

.live-shot img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.live-shot figcaption {
    padding: 10px 12px 12px;
    color: var(--muted);
    font-size: 14px;
}

.process-steps {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
    padding: 14px 14px 16px;
    border-radius: 16px;
    background: #0d1321;
    border: 1px solid #ffffff14;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.step h3 {
    margin: 0 0 6px;
}

.about-live .about-wrap {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
}

.about-live .portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 5;
    background: #0d1020;
}

@media (max-width: 880px) {
    .about-live .about-wrap {
        grid-template-columns: 1fr;
    }
}

.ai-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ai-card {
    padding: 14px 14px 16px;
    border-radius: 14px;
    background: #0f1526;
    border: 1px solid #ffffff12;
}

.faq-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.faq-item {
    padding: 14px 14px 16px;
    border-radius: 14px;
    background: #0f1220;
    border: 1px solid var(--line);
}

.faq-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.cta-panel {
    margin: 40px auto 28px;
    padding: 20px 18px;
    border-radius: 20px;
    border: 1px solid #2b8cff33;
    background: linear-gradient(110deg, #0f1627, #0b0f14 40%, #101b32);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

/* Konzert-Masonry */
.concert-masonry {
    column-count: 4;
    column-gap: 12px;
    width: 100%;
}

@media (max-width:1200px) {
    .concert-masonry {
        column-count: 3;
    }
}

@media (max-width:820px) {
    .concert-masonry {
        column-count: 2;
    }
}

@media (max-width:540px) {
    .concert-masonry {
        column-count: 1;
    }
}

.concert-card {
    break-inside: avoid;
    margin: 0 0 12px;
    background: #0e1320;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.concert-card img {
    display: block;
    width: 100%;
    height: auto;
}

.concert-card figcaption {
    padding: 10px 12px 12px;
    font-size: 14px;
    color: var(--muted);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 28px 18px 32px;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 9999;
}

.cookie-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 12, 0.35);
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-card {
    position: relative;
    max-width: 1200px;
    width: 100%;
    background: rgba(12, 16, 24, 0.96);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 26px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(17, 24, 39, 0.4);
    display: grid;
    gap: 16px;
    color: #eaf2ff;
    overflow: hidden;
  }

.cookie-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(120deg, #2b8cff, #7ce7ff, #2b8cff);
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cookie-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.cookie-copy {
    margin: 0;
    color: #c2d1e8;
    font-size: 16px;
    line-height: 1.7;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #2b8cff;
    color: #0b0f14;
    font-weight: 800;
    font-size: 16px;
    padding: 14px 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
    min-width: 200px;
}

.cookie-btn:active {
    transform: translateY(1px);
}

.cookie-btn.decline {
    background: transparent;
    color: #eaf2ff;
}

@media (max-width: 540px) {
    .cookie-card {
        padding: 22px 16px;
    }

    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
