/* ==========================================================================
   Calavera Bremen – Stylesheet
   Farben und Abstände stehen oben als Variablen. Das Rot kommt aus config.yml
   (site.accent) und wird im <head> als --accent gesetzt.
   ========================================================================== */

@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Rot: Werte kommen aus config.yml (Build setzt sie im <head>); dies sind nur Rückfallwerte */
  --accent: #b3122e;            /* Flächen, Linien, Funkringe */
  --accent-rgb: 179, 18, 46;
  --accent-display: #bc2e47;    /* große rote Schrift (≥ 3 : 1) */
  --accent-text: #cb5e71;       /* kleine rote Schrift (≥ 4,5 : 1) */
  --on-accent: var(--text);     /* Schrift auf roten Flächen */
  --bg: #0b0b0b;
  --surface-1: #121212;
  --surface-2: #161616;
  --surface-3: #1c1c1c;
  --chip: #202020;
  --line: #242424;
  /* Schrift: Grundton aus config.yml (site.text), Abstufungen berechnet der Build; dies sind Rückfallwerte */
  --text: #d1cabf;
  --text-2: #b3ada4;
  --text-3: #9a958d;
  --muted: #84807a;
  --glow: rgba(var(--accent-rgb), .25);
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gap: 16px;
  --radius: 6px;
  --gutter: 24px;
  --logo-h: 176px;
  --bar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.5;
       -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }
.accent { color: var(--accent-display); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--text); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 8px; }
.site-main { flex: 1 0 auto; }

/* ---------- Typo-Bausteine ---------- */
.label { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kicker { margin: 0; font-family: var(--mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker a { color: var(--muted); }
.display { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .92; font-size: clamp(72px, 11vw, 168px); }
.display--page { font-size: clamp(56px, 8vw, 120px); line-height: .9; }
.h-section { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 6vw, 80px); line-height: 1; }
.h-section--sm { font-size: clamp(34px, 4vw, 48px); }
.lead { margin: 0; max-width: 720px; font-size: 19px; line-height: 1.55; color: var(--text-2); }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; background: var(--chip); border-radius: 999px;
        font-family: var(--mono); font-size: 12px; color: var(--text-3); line-height: 1.5; }
.chip--strong { color: var(--text); }
.chip--stream { gap: 6px; color: var(--text-2); box-shadow: inset 0 0 0 1px #34302c; background: transparent; }
.chip--stream svg { color: var(--accent-text); flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
       border-radius: 999px; border: 0; cursor: pointer; font-family: var(--mono); font-size: 13px; font-weight: 500;
       letter-spacing: .06em; text-decoration: none; }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: var(--text); filter: brightness(1.07); color: var(--bg); }
.btn-dark { background: var(--surface-3); color: var(--text); }
.btn-dark:hover { background: #262626; color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #333; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--text); color: var(--text); }
.btn-red { background: var(--accent); color: var(--on-accent); }
.btn-red:hover { filter: brightness(1.12); color: var(--on-accent); }

/* ---------- Kopf: Wappen hängt an der Leiste ---------- */
.site-header { position: relative; z-index: 20; background: var(--surface-2); box-shadow: 0 1px 0 #222; }
.bar { position: relative; min-height: var(--bar-h); display: flex; align-items: center; justify-content: flex-end; gap: 12px 32px; }
.brand { position: absolute; left: var(--gutter); top: 6px; display: block; z-index: 2; }
.brand img { position: relative; height: var(--logo-h); width: auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.65)); }
.brand-rod { position: absolute; left: 34%; top: -6px; width: 4px; height: 30px; background: #2c2c2c; }
.brand-rod--r { left: 64%; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 30px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 14px; font-weight: 500;
         letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent-display); }
.nav-kf, .nav-meta { display: none; }
.menu-toggle { display: none; }

/* ---------- Startseite: Claim + Kellerfunk ---------- */
.hero { padding-top: calc(var(--logo-h) - var(--bar-h) + 54px); display: grid; gap: var(--gap);
        grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
        grid-template-areas: "claim kf" "facts facts"; }
.hero-claim { grid-area: claim; }
.hero .kf-card { grid-area: kf; }
.hero .facts { grid-area: facts; }
.hero-claim { min-width: 0; padding: 24px 0 40px; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; }

.kf-card { position: relative; overflow: hidden; flex: 1 1 400px; min-width: 0; background: var(--surface-2); border-radius: var(--radius);
           padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.kf-card > * { position: relative; z-index: 1; }
.kf-media { position: relative; flex: 0 0 auto; }
.kf-card:not(.has-visual) .kf-media { width: 0; height: 60px; align-self: center; margin-right: -20px; }
.kf-rings { position: absolute; z-index: 0; left: 50%; top: 50%; width: 0; height: 0; display: none; }
.kf-visual { position: relative; z-index: 1; }
.kf-copy { position: relative; z-index: 1; }
.kf-ring { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; border-radius: 50%; border: 3px solid var(--accent);
           pointer-events: none; animation: kfring 3.6s cubic-bezier(.2,.6,.3,1) infinite; }
.kf-ring:nth-child(2) { animation-delay: -1.2s; }
.kf-ring:nth-child(3) { animation-delay: -2.4s; }
@keyframes kfring { 0% { transform: translate(-50%,-50%) scale(.45); opacity: .9; } 100% { transform: translate(-50%,-50%) scale(1.7); opacity: 0; } }
@keyframes kfblink { 50% { opacity: .25; } }
@keyframes kfglow { 0%, 100% { box-shadow: 0 0 0 0 var(--glow); } 50% { box-shadow: 0 0 46px 4px var(--glow); } }
.kf-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.kf-status { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.kf-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); }
.kf-host { color: var(--muted); text-transform: none; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 72px; line-height: .9; text-transform: uppercase; }
.kf-body { position: relative; display: flex; gap: 20px; align-items: flex-end; margin-top: auto; }
.kf-visual { display: block; width: 156px; aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; background: var(--surface-3); }
.kf-visual img { width: 100%; height: 100%; object-fit: cover; }
.kf-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.kf-show, .kf-text { margin: 0; }
.kf-show { font-size: 17px; line-height: 1.45; color: var(--text); }
.kf-show strong { font-weight: 700; }
.kf-text { font-size: 16px; line-height: 1.5; color: var(--text-3); }
.kf-card.has-visual .kf-text { display: none; }
.kf-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
          box-shadow: inset 0 0 0 1px #3a3a3a; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
/* Zustand: kein Live (auch ohne JS oder ohne Verbindung) – Logo mittig */
.kf-logo { display: none; }
.kf-card:not(.is-live):not(.no-logo) .kf-logo { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; }
.kf-logo img { width: auto; max-width: 78%; max-height: 260px; object-fit: contain; }
.kf-card:not(.is-live):not(.no-logo) .kf-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kf-card:not(.is-live) .kf-media { display: none; }
.kf-card:not(.is-live) .kf-body { margin-top: 0; justify-content: center; text-align: center; }
.kf-card:not(.is-live) .kf-cta { align-self: center; }

/* Zustand: live */
.kf-card.is-live { background: radial-gradient(ellipse at 25% 60%, var(--glow) 0%, rgba(22,22,22,0) 62%), var(--surface-2);
                   box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .55); }
.kf-card.is-live .kf-rings { display: block; }
.kf-card.is-live .kf-status { color: var(--accent-text); }
.kf-card.is-live .kf-dot { border: 0; background: var(--accent); animation: kfblink 1.1s ease-in-out infinite; }
.kf-card.is-live .kf-visual { animation: kfglow 2.4s ease-in-out infinite; }
.kf-card.is-live .kf-cta { align-self: stretch; justify-content: center; min-height: 52px; background: var(--accent); color: var(--on-accent); box-shadow: none; font-weight: 500; font-size: 14px; }
.kf-card.is-live .kf-cta:hover { filter: brightness(1.12); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) {
  .kf-ring, .kf-dot, .kf-visual { animation: none !important; }
  .kf-ring { opacity: .3; transform: translate(-50%,-50%) scale(1); }
}

/* ---------- Infokacheln ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.fact { background: var(--surface-1); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
a.fact:hover { background: var(--surface-2); color: var(--text); }
.fact-big { font-family: var(--display); font-size: 34px; line-height: 1.1; text-transform: uppercase; }
.fact-text { font-size: 17px; line-height: 1.45; }

/* ---------- Programm ---------- */
.programm { padding-top: 96px; padding-bottom: 96px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.section-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.program-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.program-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.program-empty { color: var(--text-3); font-size: 18px; }

.tile { min-width: 0; }
.tile-link { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface-1); border-radius: var(--radius);
             color: var(--text); transition: background .15s ease; }
.tile-link:hover { background: #1a1a1a; color: var(--text); }
.t-date { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.t-num { font-family: var(--display); font-size: 48px; line-height: .85; }
.t-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.t-flyer { display: block; aspect-ratio: 1 / 1.414; border-radius: 3px; overflow: hidden; background: var(--surface-3); }
.t-flyer img { width: 100%; height: 100%; object-fit: cover; }
/* Ohne Visual: dunkle Fläche mit blassem Wappen */
.t-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--surface-3); }
.t-placeholder img { width: 62%; height: auto !important; object-fit: contain; opacity: .1; filter: grayscale(1); }
.t-title { font-family: var(--display); font-size: 27px; line-height: 1.02; text-transform: uppercase; overflow-wrap: anywhere; }
.t-by { margin-top: -6px; font-size: 15px; color: var(--text-3); }
.t-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.t-flags, .t-badge, .t-hl, .t-more { display: none; }
/* Teaser (aus "teaser:" in der .md): in normalen Kacheln höchstens 3 Zeilen */
.t-teaser { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  font-size: 15px; line-height: 1.5; color: var(--text-3); }

/* Etiketten: "Heute · 22:00" (gefüllt) und Highlight-Etikett (umrandet) */
.t-badge, .t-hl { align-items: center; padding: 7px 13px; border-radius: 999px; font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.t-badge { background: var(--accent); color: var(--on-accent); }
.t-hl { box-shadow: inset 0 0 0 1px var(--accent-text); color: var(--accent-text); }
.event-kicker .t-hl { display: inline-flex; }

/* Der nächste Termin: groß über die volle Breite, dicker roter Rahmen, rotes Datum */
.tile.is-next { grid-column: 1 / -1; }
.tile.is-next .tile-link { background: var(--surface-2); padding: 28px; display: grid; column-gap: 32px; row-gap: 10px;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) auto;
  grid-template-areas: "flyer flags date" "flyer title title" "flyer by by" "flyer teaser teaser" "flyer tags more";
  grid-template-rows: auto auto auto auto 1fr; }
.tile.is-next .t-flags { grid-area: flags; display: flex; flex-wrap: wrap; gap: 8px; align-self: start; }
.tile.is-next .t-flyer { grid-area: flyer; align-self: start; }
.tile.is-next .t-date { grid-area: date; display: block; text-align: right; }
.tile.is-next .t-meta { display: none; }
.tile.is-next .t-title { grid-area: title; margin-top: 12px; font-size: clamp(44px, 5vw, 72px); line-height: .95; }
.tile.is-next .t-by { grid-area: by; margin: 0; font-size: 19px; color: var(--text-2); }
.tile.is-next .t-teaser { grid-area: teaser; display: block; -webkit-line-clamp: unset; line-clamp: none; max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--text-3); }
.tile.is-next .t-tags { grid-area: tags; align-self: end; margin-top: 8px; }
.tile.is-next .t-more { grid-area: more; display: inline-flex; gap: 6px; align-self: end; justify-self: end; font-family: var(--mono); font-size: 13px;
  letter-spacing: .06em; color: var(--accent-text); }
.tile.is-next .tile-link { box-shadow: inset 0 0 0 2px var(--accent); }
.tile.is-next .t-badge { display: inline-flex; }
.tile.is-next .t-num { font-size: clamp(64px, 8vw, 112px); line-height: .8; color: var(--accent-display); }
/* Highlight (per "highlight:" in der .md): normale Kachelgröße, nur abgehoben –
   roter Schimmer, feiner roter Rahmen, Etikett oben links auf dem Flyer */
.t-flyer { position: relative; }
.tile.is-highlight:not(.is-next) .tile-link {
  background: radial-gradient(ellipse at 0% 0%, rgba(var(--accent-rgb), .22) 0%, rgba(18,18,18,0) 65%), var(--surface-1);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .65); }
.tile.is-highlight:not(.is-next) .tile-link:hover {
  background: radial-gradient(ellipse at 0% 0%, rgba(var(--accent-rgb), .3) 0%, rgba(26,26,26,0) 65%), #1a1a1a; }
.tile.is-highlight:not(.is-next) .t-flyer .t-hl { display: inline-flex; position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 5px 10px; font-size: 11px; background: rgba(11,11,11,.86); }
/* Ist das Highlight gerade auch der nächste Termin, steht das Etikett neben "Heute · 22:00" */
.tile.is-next.is-highlight .t-flags .t-hl { display: inline-flex; }

/* ---------- Teaser (Safe Space, Mieten) ---------- */
.teasers { padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--gap); }
.teaser { background: var(--surface-2); border-radius: var(--radius); padding: 40px 32px; display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.teaser:hover { background: #1a1a1a; color: var(--text); }
.teaser-title { font-family: var(--display); font-size: 52px; line-height: .95; text-transform: uppercase; }
.teaser-text { font-size: 16px; color: var(--text-3); }
.teaser-link { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }

/* ---------- Unterseiten ---------- */
.page-head { padding-top: calc(var(--logo-h) - var(--bar-h) + 54px); padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.prose { max-width: 760px; font-size: 18px; line-height: 1.65; color: var(--text-2); }
.prose--page { padding-bottom: 96px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 56px 0 16px; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; text-transform: uppercase; color: var(--text); }
.prose h3 { margin: 32px 0 8px; font-size: 20px; font-weight: 700; color: var(--text); }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-display); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-text); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 48px 0; }
.prose blockquote { margin: 24px 0; padding: 20px 24px; background: var(--surface-1); border-radius: var(--radius); color: var(--text); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .placeholder, .placeholder { background: rgba(var(--accent-rgb), .3); color: var(--text); padding: 0 4px; border-radius: 2px; }

/* Kartenraster für Regeln/Optionen in Markdown: <div class="cards" markdown="1"> … </div> */
.prose .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); margin: 32px 0 40px; max-width: none; }
.prose--page:has(.cards) { max-width: 1312px; }
.prose--page:has(.cards) > :not(.cards) { max-width: 760px; }
.prose .card { background: var(--surface-1); border-radius: var(--radius); padding: 24px; }
.prose .card h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; }
.prose .card h3 .num { color: var(--accent-display); margin-right: 8px; }
.prose .card p:last-child { margin-bottom: 0; }

/* ---------- Feste Seiten: Titelbild und Kacheln (cards: / titelbild: im Kopf der .md) ---------- */
.page-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding-bottom: 56px; }
.page-intro-img { flex: 0 1 460px; min-width: 0; width: 100%; max-width: 460px; height: auto; border-radius: var(--radius); }
.page-intro-lead { flex: 1 1 360px; margin: 0; font-family: var(--display); font-size: clamp(36px, 4vw, 56px); line-height: 1.02; text-transform: uppercase; color: var(--text); }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding-bottom: 72px; }
.pcard { min-width: 0; display: flex; flex-direction: column; background: var(--surface-1); border-radius: var(--radius); overflow: hidden; }
.pcard-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.pcard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.pcard-nr { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.pcard-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; text-transform: uppercase; color: var(--text); }
.pcard-motto { margin: 0; font-size: 17px; font-style: italic; color: var(--text-2); }
.pcard-text { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--text-3); }
.pcard-text p { margin: 0 0 10px; }
.pcard-text p:last-child { margin-bottom: 0; }
.pcard--intro { background: var(--surface-2); align-self: start; }
.pcard-lead { margin: 0; font-family: var(--display); font-size: 34px; line-height: 1.05; text-transform: uppercase; color: var(--text); }
@media (max-width: 1023px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Veranstaltung ---------- */
.event { padding-top: calc(var(--logo-h) - var(--bar-h) + 40px); }
.back { margin: 0; }
.back a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.past-note { margin: 8px 0 0; padding: 14px 18px; background: var(--surface-2); border-radius: var(--radius); color: var(--text-2); }
.past-note a { color: var(--accent-text); }
.event-grid { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.event-visual { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 10px; }
.event-flyer { display: block; border-radius: 4px; overflow: hidden; background: var(--surface-3); }
.event-flyer img { width: 100%; height: auto; }
.event-flyer.t-placeholder { aspect-ratio: 1 / 1.414; }
.small-link { align-self: flex-start; display: inline-flex; min-height: 44px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.event-info { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.event-kicker { margin: 0; display: flex; align-items: center; gap: 12px; }
.event-date { margin: 0; font-family: var(--display); font-size: clamp(64px, 8vw, 112px); line-height: .85; color: var(--accent-display); }
.event-title { margin: -4px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 6vw, 96px); line-height: .92; text-transform: uppercase; overflow-wrap: anywhere; }
.event-by { margin: -8px 0 0; font-size: 22px; color: var(--text-2); }
.event-djs { margin: -16px 0 0; font-size: 17px; color: var(--text-3); }
.event-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.event-facts div { background: var(--surface-1); border-radius: var(--radius); padding: 14px 18px; }
.event-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.event-facts dd { margin: 6px 0 0; font-family: var(--display); font-size: 28px; line-height: 1.1; }
.fans h2 { margin: 0 0 10px; }

/* Stream-Karte auf der Detailseite (Abende mit "stream:") */
.ev-stream { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 22px 24px; background: var(--surface-2); border-radius: var(--radius); box-shadow: inset 0 0 0 1px #2a2a2a; }
.ev-stream > :not(.evs-rings) { position: relative; z-index: 1; }
.evs-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.evs-status { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.evs-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; }
.evs-text { margin: 0; font-size: 15px; color: var(--text-3); }
.evs-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px #3a3a3a;
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.evs-rings { position: absolute; z-index: 0; left: 36px; top: 34px; width: 0; height: 0; display: none; }
.evs-rings .kf-ring { width: 300px; height: 300px; }
.ev-stream.is-live { background: radial-gradient(ellipse at 0% 0%, var(--glow) 0%, rgba(22,22,22,0) 65%), var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .55); }
.ev-stream.is-live .evs-rings { display: block; }
.ev-stream.is-live .evs-status { color: var(--accent-text); }
.ev-stream.is-live .kf-dot { border: 0; background: var(--accent); animation: kfblink 1.1s ease-in-out infinite; }
.ev-stream.is-live .evs-cta { background: var(--accent); color: var(--on-accent); box-shadow: none; font-weight: 500; }
.ev-stream.is-live .evs-cta:hover { filter: brightness(1.12); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { .ev-stream .kf-dot { animation: none !important; } }
.event-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.event-links a { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.linked { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--surface-2); border-radius: var(--radius); box-shadow: inset 0 0 0 1px #2a2a2a; color: var(--text); }
.linked:hover { background: #1a1a1a; color: var(--text); }
.linked .label.accent { color: var(--accent-text); }
.linked-title { font-family: var(--display); font-size: 26px; line-height: 1; text-transform: uppercase; }
.more { padding: 112px 0 96px; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); }
.more-item { height: 100%; background: var(--surface-1); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.more-item:hover { background: #1a1a1a; color: var(--text); }
/* Teaser in "Weitere Termine": höchstens 2 Zeilen, damit die kleinen Kacheln kompakt bleiben */
.mi-teaser { margin-top: 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-size: 14px; line-height: 1.45; color: var(--text-3); }
/* Gruppen unter "Weitere Termine": Reihe zuerst, dann der Rest. Auf großen Bildschirmen nebeneinander,
   jede Gruppe so breit, wie sie Termine hat (--n), damit alle Kacheln gleich groß bleiben. */
.more-groups { display: flex; flex-wrap: wrap; gap: 24px var(--gap); }
.more-group { flex: var(--n, 1) 1 calc(var(--n, 1) * 240px); min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.more-group .more-list { flex: 1; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); }
.more-group-title { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.more-group--reihe .more-group-title { color: var(--accent-text); }
.more-group--reihe .more-item { background: radial-gradient(ellipse at 0% 0%, rgba(var(--accent-rgb), .14) 0%, rgba(18,18,18,0) 60%), var(--surface-1);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .35); }
@media (max-width: 1023px) { .more-group .more-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.mi-date { font-family: var(--display); font-size: 40px; line-height: .9; }
.mi-title { font-family: var(--display); font-size: 24px; line-height: 1.05; text-transform: uppercase; }

/* ---------- Archiv ---------- */
.archive { padding-bottom: 96px; }
.archive-month { margin: 40px 0 12px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.archive-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.archive-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 18px; background: var(--surface-1); border-radius: var(--radius); color: var(--text); }
.archive-row:hover { background: #1a1a1a; color: var(--text); }
.ar-date { font-family: var(--display); font-size: 24px; }
.ar-title { font-family: var(--display); font-size: 22px; text-transform: uppercase; line-height: 1.05; }

/* ---------- No-Cookie-Banner (der Gag) ---------- */
.nocookie { position: fixed; z-index: 50; left: 24px; bottom: 24px; width: min(520px, calc(100vw - 48px)); overflow: hidden;
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 22px 26px; background: var(--surface-2); color: var(--text);
  border-radius: var(--radius); box-shadow: inset 0 0 0 1px #2a2a2a, 0 24px 60px rgba(0,0,0,.7);
  transform: translateY(0); opacity: 1; transition: transform .45s cubic-bezier(.2,.7,.3,1), opacity .45s ease; }
.nocookie.is-entering, .nocookie.is-leaving { transform: translateY(calc(100% + 40px)); opacity: 0; }
.nc-icon { flex: 0 0 auto; color: var(--text-2); }
.nc-strike { color: var(--accent-display); stroke: var(--accent-display); stroke-width: 3; }
.nc-copy { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nc-title { margin: 0; font-family: var(--display); font-size: 32px; line-height: 1; text-transform: uppercase; }
.nc-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.nc-text a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-display); text-underline-offset: 3px; }
.nc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.nc-btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.nc-btn:hover { filter: brightness(1.07); }
.nc-btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #3a3a3a; }
.nc-btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text); filter: none; }
/* Ablauf-Balken: wenn er leer ist, verschwindet das Banner. Bei Maus oder Fokus darauf hält er an. */
.nc-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left center; }
.nocookie.is-running .nc-timer { animation: nc-countdown var(--nc-seconds, 10s) linear forwards; }
.nocookie:hover .nc-timer, .nocookie:focus-within .nc-timer { animation-play-state: paused; }
@keyframes nc-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .nocookie { transition: opacity .2s ease; } .nocookie.is-entering, .nocookie.is-leaving { transform: none; } }

/* ---------- Fuß ---------- */
.site-footer { background: #111; margin-top: auto; }
.footer-grid { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
               font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--muted); }
.footer-grid p { margin: 0; }
.footer-grid strong { color: var(--text); font-weight: 500; }
.footer-grid a { color: var(--text-2); }
.footer-logo { height: 72px; width: auto; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1103px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "claim" "kf" "facts"; }
}
@media (max-width: 1023px) {
  .program-grid, .program-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.is-next .tile-link { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    grid-template-areas: "flyer flags" "flyer date" "flyer title" "flyer by" "flyer teaser" "tags more"; grid-template-rows: auto auto auto auto 1fr auto; }
  .tile.is-next .t-date { text-align: left; }
}

/* ==========================================================================
   Handy (≈ 85 % der Besuche)
   ========================================================================== */
@media (max-width: 640px) {
  :root { --gutter: 20px; --logo-h: 104px; --bar-h: 56px; --gap: 8px; }
  body { font-size: 16px; }
  .bar { padding-left: 12px; padding-right: 12px; }
  .brand { left: 14px; top: 4px; }
  .brand-rod { top: -4px; height: 20px; width: 3px; }

  /* Menü hinter dem Button (nur mit JavaScript; ohne JS bleibt es sichtbar) */
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 12px; background: transparent;
    color: var(--text); border: 0; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
  .menu-toggle .i-close { display: none; }
  .menu-toggle[aria-expanded="true"] .i-open { display: none; }
  .menu-toggle[aria-expanded="true"] .i-close { display: inline; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; position: absolute; z-index: 1; top: var(--bar-h); left: 0; right: 0; background: var(--surface-2);
    padding: 72px 20px 28px; box-shadow: 0 20px 40px rgba(0,0,0,.6); }
  .js .nav.is-open ul { flex-direction: column; gap: 0; }
  .js .nav.is-open li + li { border-top: 1px solid var(--line); }
  .js .nav.is-open a { width: 100%; min-height: 56px; font-family: var(--display); font-size: 32px; font-weight: 400; letter-spacing: 0; color: var(--text); }
  .js .nav.is-open a[aria-current="page"] { box-shadow: none; color: var(--accent-display); }
  .js .nav.is-open .nav-kf, .js .nav.is-open .nav-meta { display: block; }
  .nav-meta { margin: 20px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
  html:not(.js) .nav { padding: 8px 0 8px 120px; }
  html:not(.js) .nav a { min-height: 36px; font-size: 12px; }

  .hero { padding-top: calc(var(--logo-h) - var(--bar-h) + 24px); grid-template-areas: "claim" "facts" "kf"; }
  .hero-claim { padding: 0 0 8px; gap: 12px; }
  .hero-claim .kicker { align-self: flex-end; text-align: right; font-size: 11px; max-width: 170px; line-height: 1.5; }
  .display { font-size: 76px; line-height: .88; }
  .display--page { font-size: 56px; }
  .kf-card { flex-basis: 100%; padding: 18px; gap: 16px; }
  .kf-ring { width: 300px; height: 300px; }
  .kf-title { font-size: 44px; }
  .kf-visual { width: 96px; }
  .kf-logo img { max-height: 180px; max-width: 70%; }
  .kf-body { gap: 16px; }
  .kf-show { margin-top: 6px; font-size: 15px; }
  .kf-text { font-size: 14px; }
  .kf-card.is-live .kf-text { display: none; }
  .kf-cta { min-height: 48px; }

  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 14px 16px; }
  .fact:last-child { grid-column: 1 / -1; }
  .fact-big { font-size: 22px; }
  .fact-text { font-size: 15px; }

  .programm { padding-top: 56px; padding-bottom: 56px; }
  .section-head { margin-bottom: 16px; }
  .h-section { font-size: 48px; }
  .program-grid, .program-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  /* normale Termine: kompakte Zeile Datum | Titel | Mini-Flyer */
  .tile-link { display: grid; grid-template-columns: 72px minmax(0, 1fr) 64px; grid-template-areas: "date title flyer" "date by flyer" "date teaser flyer" "date tags flyer";
               column-gap: 12px; row-gap: 4px; padding: 12px; align-items: center; }
  .t-date { grid-area: date; flex-direction: column; align-items: flex-start; gap: 5px; align-self: center; }
  .t-num { font-size: 24px; line-height: .95; }
  .t-meta { font-size: 11px; letter-spacing: .04em; }
  .t-flyer { grid-area: flyer; }
  .t-placeholder { padding: 6px; background-size: 14px 2px; background-position: left 6px top 6px; }
  .t-placeholder span { font-size: 9px; }
  .t-title { grid-area: title; font-size: 20px; line-height: 1.05; }
  .t-by { grid-area: by; margin: 0; font-size: 13px; }
  .t-tags { grid-area: tags; margin-top: 2px; }
  .t-tags .chip { padding: 2px 8px; font-size: 11px; }
  .tile:not(.is-next) .chip--genre { display: none; }
  /* Highlight in der kompakten Zeile: Etikett klein über dem Titel statt auf dem Mini-Flyer */
  .tile.is-highlight:not(.is-next) .tile-link { grid-template-areas: "date flags flyer" "date title flyer" "date by flyer" "date teaser flyer" "date tags flyer"; }
  .t-teaser { grid-area: teaser; -webkit-line-clamp: 2; line-clamp: 2; font-size: 13px; line-height: 1.45; }
  .tile.is-highlight:not(.is-next) .t-flags { grid-area: flags; display: flex; }
  .tile.is-highlight:not(.is-next) .t-flags .t-hl { display: inline-flex; padding: 3px 8px; font-size: 10px; letter-spacing: .1em; }
  .tile.is-highlight:not(.is-next) .t-flyer .t-hl { display: none; }
  /* nächster Termin: große Karte mit Flyer, Etiketten oben auf dem Flyer */
  .tile.is-next .tile-link { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; }
  .tile.is-next .tile-link > * { align-self: stretch; justify-self: stretch; text-align: left; margin-top: 0; }
  .tile.is-next .t-flyer { order: -2; width: 100%; margin-bottom: 8px; }
  .tile.is-next .t-flags { position: absolute; top: 24px; left: 24px; right: 24px; z-index: 1; }
  .tile.is-next .t-badge, .tile.is-next .t-hl { font-size: 12px; padding: 7px 12px; }
  .tile.is-next .t-hl { background: rgba(11,11,11,.82); }
  .tile.is-next .t-date { text-align: left; }
  .tile.is-next .t-num { font-size: 40px; line-height: .9; }
  .tile.is-next .t-title { font-size: 36px; }
  .tile.is-next .t-by { font-size: 16px; }
  .tile.is-next .t-teaser { font-size: 15px; }
  .tile.is-next .t-tags { margin-top: 4px; }
  .tile.is-next .t-more { font-size: 12px; margin-top: 4px; }
  .section-foot .btn { flex: 1 1 100%; }

  .teasers { padding-bottom: 56px; }
  .teaser { padding: 24px 20px; gap: 10px; }
  .teaser-title { font-size: 34px; }

  .page-head { padding-top: calc(var(--logo-h) - var(--bar-h) + 24px); padding-bottom: 28px; gap: 14px; }
  .lead { font-size: 17px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 32px; margin-top: 40px; }
  .prose .card { padding: 18px; }
  .page-intro { gap: 20px; padding-bottom: 32px; }
  .page-intro-img { max-width: none; flex-basis: 100%; }
  .page-intro-lead { font-size: 34px; }
  .pcards { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; }
  .pcard-body { padding: 16px 18px 20px; }
  .pcard-title { font-size: 32px; }
  .prose .card h3 { font-size: 26px; }

  .event { padding-top: calc(var(--logo-h) - var(--bar-h) + 8px); }
  .back { display: flex; justify-content: flex-end; }
  .event-grid { gap: 20px; flex-direction: column; align-items: stretch; }
  .event-visual { max-width: none; order: 2; flex-basis: auto; }
  .event-info { display: contents; }
  .event-kicker { order: 0; }
  .event-date { order: 0; font-size: 64px; margin-bottom: -12px; }
  .event-title { order: 1; font-size: 52px; margin: 0; }
  .event-by { order: 1; margin: -12px 0 0; font-size: 17px; }
  .event-djs { order: 1; margin: -12px 0 0; }
  .event-facts { order: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-facts dd { font-size: 24px; }
  .actions { order: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ev-stream { order: 4; padding: 18px; }
  .evs-title { font-size: 26px; }
  .evs-cta { flex: 1 1 100%; justify-content: center; }
  .actions .btn { flex-direction: column; gap: 4px; min-height: 56px; padding: 6px 4px; border-radius: var(--radius); font-size: 11px; }
  .hide-sm { display: none; }
  .event-info > .chips, .prose, .fans, .event-links, .linked { order: 5; }
  .event-flyer.t-placeholder span { font-size: 44px; }
  .more { padding: 48px 0 56px; }
  .more-list, .more-group .more-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .more-groups { gap: 20px; }
  .more-group { flex-basis: 100%; gap: 8px; }
  .more-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "date title" "meta by" ". teaser"; column-gap: 12px; row-gap: 2px; padding: 12px; }
  .mi-teaser { grid-area: teaser; font-size: 13px; }
  .mi-date { grid-area: date; font-size: 24px; }
  .more-item .label { grid-area: meta; font-size: 11px; letter-spacing: .04em; }
  .mi-title { grid-area: title; font-size: 20px; }
  .more-item .muted { grid-area: by; font-size: 13px; }

  .archive-row { grid-template-columns: 72px minmax(0, 1fr); }
  .ar-by { grid-column: 2; font-size: 13px; }
  .ar-date { font-size: 20px; }
  .ar-title { font-size: 19px; }

  .footer-grid { flex-direction: column; align-items: flex-start; gap: 22px; font-size: 13px; }
  .nocookie { left: 12px; right: 12px; bottom: 12px; width: auto; gap: 14px; padding: 18px 16px 22px; }
  .nc-icon { width: 34px; height: 34px; }
  .nc-title { font-size: 26px; }
  .nc-text { font-size: 14px; }
  .nc-btn { flex: 1 1 auto; }
  .footer-logo { height: 64px; }
}
