/* =========================================================================
   RCBE WEIHNACHTSSYMPOSIUM 2026 — öffentliche Infoseite
   Look des Plakats „Freibier und Forschung“: Nachtgrund, bunte Lichterkette,
   RCBE in Gold, weißer Versaltitel, „2026“ als Goldkontur, Goldicons,
   FREIBIER-Stempel. Mobil zuerst. Nur Dunkel (das Plakat ist dunkel).
   ========================================================================= */

@font-face { font-family: "Lucida Sans OTH"; src: url("../fonts/lucida-sans-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lucida Sans OTH"; src: url("../fonts/lucida-sans-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lucida Sans OTH"; src: url("../fonts/lucida-sans-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --font: "Lucida Sans OTH", "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, system-ui, sans-serif;

  /* Abstände (8er-Raster mit Halbschritten) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --rand: clamp(16px, 5vw, 48px);
  --breite: 1120px;

  /* Farben aus dem Plakat */
  --nacht: #05100b;           /* Plakatgrund */
  --nacht-2: #0a1812;         /* Kacheln */
  --nacht-3: #10221a;         /* Hover */
  --linie: #21352c;
  --linie-hell: #33493f;
  --text: #eeefe7;            /* Titelweiß */
  --text-2: #c9d0cb;
  --leise: #93a49c;
  --gold: #f5c96a;            /* Icons, Kontur */
  --gold-hell: #ffdd85;       /* RCBE, FREIBIER */
  --gold-linie: color-mix(in srgb, var(--gold) 55%, transparent);
  --fokus: #ffdd85;

  --lk-rot: #ff5b4f; --lk-gruen: #45d483; --lk-blau: #5b9dff; --lk-gelb: #ffd25a;

  --sperrung: .14em;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dauer: 200ms;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--nacht); color: var(--text);
  font: 400 1rem/1.55 var(--font); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
h1, h2, h3, p, ul, figure, address { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-hell); text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color var(--dauer) var(--ease); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--fokus); outline-offset: 3px; }
strong { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s4); top: -60px; z-index: 50; background: var(--gold-hell); color: var(--nacht); padding: var(--s2) var(--s4); font-weight: 700; text-decoration: none; transition: top var(--dauer) var(--ease); }
.skip-link:focus { top: var(--s2); }

.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: var(--sperrung); text-transform: uppercase;
  color: var(--gold-hell); margin-bottom: var(--s5);
}

/* ---------- Icons (Linien in Gold, wie auf dem Plakat) ---------- */
.icon { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon__voll { fill: var(--gold); stroke: none; }
.icon--gross { width: 36px; height: 36px; stroke-width: 1.9; }

/* ---------- Kopf: OTH-Logo + RCBE-Lockup ---------- */
.kopf { position: relative; z-index: 3; background: var(--nacht); border-bottom: 1px solid var(--linie); }
.kopf__innen {
  max-width: var(--breite); margin: 0 auto; padding: 14px var(--rand);
  display: flex; align-items: center; gap: var(--s4);
}
.kopf__oth { flex: none; }
.kopf__logo { height: 28px; width: auto; }
.kopf__lockup {
  display: flex; flex-direction: column; justify-content: center; min-height: 32px;
  padding-left: var(--s4); border-left: 1px solid var(--linie-hell);
  color: var(--text); text-decoration: none; line-height: 1.12;
}
.kopf__lockup:hover { color: var(--gold-hell); }
.kopf__lockup strong { font-size: .9375rem; letter-spacing: .06em; }
.kopf__lang { display: none; font-size: .5625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--leise); }
@media (min-width: 340px) { .kopf__lang { display: block; } }
@media (max-width: 299px) { .kopf__logo { height: 22px; } .kopf__innen { gap: var(--s3); } .kopf__lockup { padding-left: var(--s3); } }
@media (min-width: 900px) { .kopf__logo { height: 36px; } .kopf__lockup strong { font-size: 1.0625rem; } .kopf__lang { font-size: .625rem; } }

/* ---------- Held ---------- */
.held { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--linie); }
.held__sterne { /* Sternenstaub wie auf dem Plakat */
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .85;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 93% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 86% 31%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 97% 47%, #fff 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 4% 61%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 71% 52%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 40% 41%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 95% 76%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 52% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 15%, #fff 50%, transparent 51%);
  animation: funkeln 7s ease-in-out infinite;
}
@keyframes funkeln { 0%, 100% { opacity: .85; } 50% { opacity: .45; } }

.held__innen {
  position: relative; max-width: var(--breite); margin: 0 auto;
  padding: 92px var(--rand) var(--s5);
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "titel" "daten" "bild" "claim"; gap: var(--s5);
  container-type: inline-size;
}
.titel { grid-area: titel; min-width: 0; }
.eckdaten { grid-area: daten; min-width: 0; }
.held__bild { grid-area: bild; }
.claim { grid-area: claim; }

/* Titel */
.titel { font-weight: 700; text-transform: uppercase; line-height: .98; }
.titel__marke {
  display: block; width: fit-content; margin-bottom: var(--s3); padding-bottom: 6px;
  font-size: clamp(1.375rem, 8vw, 2.75rem); line-height: 1; letter-spacing: .2em; margin-right: -.2em;
  color: var(--gold-hell); border-bottom: 2px solid var(--gold);
}
.titel__haupt {
  display: block; color: var(--text);
  /* „WEIHNACHTS-“ ist in Lucida Sans Bold ca. 7,1 em breit. Die Schrift folgt der Inhaltsbreite
     (cqi = 1 % der Breite von .held__innen ohne Rand), damit nie etwas abgeschnitten wird.
     Erste Zeile ist der Fallback ohne Container-Einheiten. */
  font-size: clamp(1.25rem, calc((100vw - 2 * var(--rand)) / 7.7), 5.25rem);
  font-size: clamp(1.25rem, 13cqi, 5.25rem);
  letter-spacing: -.01em;
}
.titel__jahr {
  display: block; margin-top: .06em;
  font-size: clamp(2.5rem, 19cqi, 7.5rem); font-weight: 400; letter-spacing: .04em; line-height: 1.02;
  color: transparent; -webkit-text-stroke: 2px var(--gold);
}
@supports not (-webkit-text-stroke: 1px #000) { .titel__jahr { color: var(--gold); } }

/* Eckdaten mit Icons */
.eckdaten { list-style: none; padding: 0; margin-top: var(--s3); display: grid; gap: var(--s4); }
.eckdaten li { display: flex; align-items: center; gap: var(--s4); min-width: 0; }
.eckdaten li > span { min-width: 0; overflow-wrap: anywhere; }
.eckdaten .icon { width: 34px; height: 34px; }
.eckdaten__wert { display: block; font-size: clamp(1.1875rem, 6vw, 1.875rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.eckdaten__zusatz { display: block; font-size: .8125rem; letter-spacing: .06em; color: var(--leise); margin-top: 2px; }
.eckdaten__zusatz:empty { display: none; }
.countdown { color: var(--gold-hell); }

/* Foto + FREIBIER-Stempel */
.held__bild { position: relative; margin: 0 calc(var(--rand) * -1) 0 auto; width: min(100% + var(--rand), 560px); }
.held__bild picture, .held__bild img { display: block; width: 100%; height: auto; }
.held__bild img {
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 99%), linear-gradient(to right, transparent 0, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 62%, transparent 99%), linear-gradient(to right, transparent 0, #000 14%);
  mask-composite: intersect;
}
.freibier {
  position: absolute; left: 4%; bottom: 3%;
  display: flex; align-items: center; gap: 2px;
  transform: rotate(-4deg); transform-origin: left center;
}
.freibier__text {
  display: block; padding: .12em .5em .1em;
  border: 3px solid var(--gold); background: color-mix(in srgb, var(--nacht) 72%, transparent);
  color: var(--gold-hell); font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.375rem, 10vw, 3.75rem); line-height: 1.05;
  font-style: normal; transform: skewX(-10deg);
  text-shadow: 0 0 18px color-mix(in srgb, var(--gold) 35%, transparent);
}
.freibier__strahl { width: clamp(14px, 6vw, 34px); height: auto; fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .freibier { animation: stempel 700ms var(--ease) 250ms both; }
}
@keyframes stempel { 0% { opacity: 0; transform: rotate(-4deg) scale(1.35); } 60% { opacity: 1; transform: rotate(-5deg) scale(.96); } 100% { transform: rotate(-4deg) scale(1); } }

/* Claim und Ruf */
.claim {
  font-size: clamp(1.375rem, 6.2vw, 2.25rem); line-height: 1.22; color: var(--text); max-width: 22ch;
}
.claim strong { color: var(--gold-hell); text-transform: uppercase; letter-spacing: .06em; }
.held__fuss { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand) var(--s7); }
.ruf {
  padding-top: var(--s5); border-top: 1px solid var(--gold);
  font-size: clamp(.9375rem, 4vw, 1.25rem); letter-spacing: var(--sperrung); text-transform: uppercase; color: var(--text);
}

@media (min-width: 900px) {
  .held__innen {
    grid-template-columns: minmax(340px, 1fr) minmax(0, 520px);
    grid-template-areas: "titel titel" "daten bild" "claim bild";
    column-gap: var(--s6); row-gap: var(--s6);
    padding-top: 128px; padding-bottom: var(--s6);
  }
  .held__bild { align-self: end; margin: 0 calc(var(--rand) * -1) 0 0; width: auto; }
  .freibier { left: -8%; bottom: 6%; }
  .claim { align-self: end; padding-bottom: var(--s3); }
  .eckdaten { margin-top: 0; align-self: start; }
  .titel__haupt { font-size: clamp(1.25rem, 9cqi, 5.25rem); }
}
@media (min-width: 1200px) {
  /* Breit: Foto rechts über die ganze Höhe wie auf dem Plakat. Der Titel darf in die Fotospalte
     ragen; das Foto sitzt unten (align-self: end) und beginnt erst unterhalb des Titels. */
  .held__innen { grid-template-columns: minmax(0, 1fr) 520px; grid-template-areas: "titel bild" "daten bild" "claim bild"; }
  .titel { position: relative; z-index: 1; min-width: max-content; }
  .titel__haupt { font-size: 5.25rem; }
  .held__bild { margin-right: 0; }
}

/* ---------- Lichterkette (aus der Weihnachtsfeier-Seite) ---------- */
.lichterkette { position: absolute; top: 0; left: 0; right: 0; z-index: 2; pointer-events: none; }
.lk__defs { position: absolute; width: 0; height: 0; }
.lk { display: block; width: 100%; height: auto; overflow: visible; }
.lk--breit { display: none; }
@media (min-width: 720px) { .lk--schmal { display: none; } .lk--breit { display: block; max-height: 96px; } }
.lk__draht { fill: none; stroke: #47574f; stroke-width: 1.4; stroke-linecap: round; }
.lk__fassung { fill: #2d3833; stroke: #56675f; stroke-width: .6; }
.lk__glanz { fill: none; stroke: #fff; stroke-opacity: .55; stroke-width: 1; stroke-linecap: round; }
.lk__lampe--rot .lk__birne { fill: var(--lk-rot); }     .lk__lampe--rot .lk__schein { fill: url(#lk-schein-rot); }
.lk__lampe--gruen .lk__birne { fill: var(--lk-gruen); } .lk__lampe--gruen .lk__schein { fill: url(#lk-schein-gruen); }
.lk__lampe--blau .lk__birne { fill: var(--lk-blau); }   .lk__lampe--blau .lk__schein { fill: url(#lk-schein-blau); }
.lk__lampe--gelb .lk__birne { fill: var(--lk-gelb); }   .lk__lampe--gelb .lk__schein { fill: url(#lk-schein-gelb); }
/* Blinken: jedes Lämpchen geht klar an und aus (Birne dunkel, Schein ganz weg), versetzt und
   mit unterschiedlichem Takt (1,3–3,1 s je Zyklus, also unter 1 Blinken pro Sekunde, kein Stroboskop). */
.lk__birne  { animation: lk-birne 2.2s ease-in-out infinite; }
.lk__schein { animation: lk-schein 2.2s ease-in-out infinite; }
.lk__lampe:nth-of-type(2n) :is(.lk__birne, .lk__schein)   { animation-duration: 1.7s; animation-delay: -.9s; }
.lk__lampe:nth-of-type(3n) :is(.lk__birne, .lk__schein)   { animation-duration: 2.6s; animation-delay: -1.4s; }
.lk__lampe:nth-of-type(4n+1) :is(.lk__birne, .lk__schein) { animation-delay: -.35s; }
.lk__lampe:nth-of-type(5n) :is(.lk__birne, .lk__schein)   { animation-duration: 1.3s; animation-delay: -.5s; }
.lk__lampe:nth-of-type(7n) :is(.lk__birne, .lk__schein)   { animation-duration: 3.1s; animation-delay: -2.2s; }
.lk__lampe:nth-of-type(11n) :is(.lk__birne, .lk__schein)  { animation-duration: 2.4s; animation-delay: -1.9s; }
@keyframes lk-birne  { 0%, 40% { opacity: 1; } 50%, 86% { opacity: .2; } 96%, 100% { opacity: 1; } }
@keyframes lk-schein { 0%, 40% { opacity: 1; } 50%, 86% { opacity: 0; } 96%, 100% { opacity: 1; } }

/* ---------- Inhaltsblöcke ---------- */
.block { border-bottom: 1px solid var(--linie); }
.block__innen { max-width: var(--breite); margin: 0 auto; padding: var(--s7) var(--rand); }
.kacheln { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.kachel {
  display: grid; grid-template-columns: auto 1fr; column-gap: var(--s4); row-gap: 2px; align-items: start;
  padding: var(--s5) var(--s4); background: var(--nacht-2); border: 1px solid var(--linie);
}
.kachel .icon { grid-row: span 2; }
.kachel__titel { font-size: 1.125rem; line-height: 1.3; }
.kachel__text { color: var(--text-2); }
.kachel--gold { border-color: var(--gold-linie); }
.kachel--gold .kachel__titel { color: var(--gold-hell); text-transform: uppercase; letter-spacing: .04em; }
@media (min-width: 720px) {
  .kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
  .kachel { grid-template-columns: 1fr; padding: var(--s6) var(--s5); row-gap: var(--s2); }
  .kachel .icon { grid-row: auto; margin-bottom: var(--s3); }
}

.anfahrt { display: grid; gap: var(--s6); }
.anfahrt__adresse { font-style: normal; font-size: 1.125rem; line-height: 1.6; color: var(--text-2); }
.anfahrt__adresse strong { display: block; font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.1; color: var(--text); margin-bottom: var(--s2); }
.anfahrt__knoepfe { display: grid; gap: var(--s3); align-content: start; }
@media (min-width: 720px) {
  .anfahrt { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .anfahrt__knoepfe { grid-auto-flow: column; }
}

/* Knöpfe: eckig, Haarlinie, Gold als Primär */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 52px; padding: 0 var(--s5);
  border: 1.5px solid var(--linie-hell); background: transparent; color: var(--text);
  font: 700 .9375rem/1 var(--font); letter-spacing: .04em; text-decoration: none;
  transition: background var(--dauer) var(--ease), color var(--dauer) var(--ease), border-color var(--dauer) var(--ease);
}
.knopf .icon { width: 22px; height: 22px; }
.knopf:hover { border-color: var(--gold); color: var(--gold-hell); }
.knopf--gold { background: var(--gold-hell); border-color: var(--gold-hell); color: var(--nacht); }
.knopf--gold .icon { stroke: var(--nacht); }
.knopf--gold:hover { background: #fff; border-color: #fff; color: var(--nacht); }

/* ---------- Textseiten (Datenschutz, 404) ---------- */
.text__innen { max-width: 760px; margin: 0 auto; padding: var(--s7) var(--rand) var(--s8); }
.zurueck { margin-bottom: var(--s5); font-size: .9375rem; }
.zurueck a { text-decoration: none; }
.text__titel { font-size: clamp(1.875rem, 7vw, 2.75rem); line-height: 1.1; text-transform: uppercase; margin-bottom: var(--s5); }
.text__lead { font-size: 1.125rem; color: var(--text); margin-bottom: var(--s6); }
.text h2 { font-size: .8125rem; letter-spacing: var(--sperrung); text-transform: uppercase; color: var(--gold-hell); margin: var(--s6) 0 var(--s3); }
.text p { color: var(--text-2); max-width: 68ch; }
.text p + p { margin-top: var(--s3); }
.text a { overflow-wrap: anywhere; }

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--linie); background: #030b07; }
.fuss__innen {
  max-width: var(--breite); margin: 0 auto; padding: var(--s6) var(--rand) calc(var(--s6) + env(safe-area-inset-bottom));
  display: grid; gap: var(--s3); font-size: .875rem; color: var(--leise);
}
.fuss__wer a { color: var(--text-2); }
.fuss__wer a:hover { color: var(--gold-hell); }
.fuss__nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.fuss__nav a { display: inline-block; padding: 6px 0; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .04em; }
.fuss__nav a:hover { color: var(--gold-hell); text-decoration: underline; }
.fuss__hinweis { font-size: .8125rem; }
@media (min-width: 900px) {
  .fuss__innen { grid-template-columns: 1fr auto; align-items: center; }
  .fuss__hinweis { grid-column: 1; }
  .fuss__nav { grid-column: 2; grid-row: 1 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .held__sterne, .lk__schein, .lk__birne { animation: none; }
}
