/* 75 Minuten Klartext – Website
   Farben und Schrift wie in der App (SPEC.md, Abschnitt 3). Schriften lokal eingebunden, keine Google-Fonts-Anfrage. */

@font-face { font-family: Archivo; font-weight: 500; font-display: swap; src: url(assets/fonts/Archivo-Medium.ttf) format("truetype"); }
@font-face { font-family: Archivo; font-weight: 700; font-display: swap; src: url(assets/fonts/Archivo-Bold.ttf) format("truetype"); }
@font-face { font-family: Archivo; font-weight: 900; font-display: swap; src: url(assets/fonts/Archivo-Black.ttf) format("truetype"); }

:root {
  --red: #B0161E;
  --pill: #7A0E14;
  --pill-text: #FFE3E0;
  --white: #FFFFFF;
  --ink: #1F0A0B;
  --paper: #FFFFFF;
  --muted: #6B4547;
  --line: #F1D6D4;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(36px, 6vw, 64px); color: var(--red); text-transform: uppercase; }
h3 { font-size: 22px; letter-spacing: -0.01em; }

/* Platzhalter: deutlich sichtbar, bis echte Inhalte eingetragen sind */
.ph { outline: 2px dashed currentColor; outline-offset: 2px; opacity: .75; border-radius: 4px; }
.ph-num { opacity: .4; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}
.waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  width: min(100%, 980px);
  padding: 96px calc(var(--gutter) + 12vw) 72px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.hero h1 { width: 100%; }
.hero h1 img { width: 100%; }
.claim { margin: 0; font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

.next {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  background: var(--pill); border-radius: 999px; padding: 12px 26px;
}
.pill-label { color: var(--pill-text); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.pill-value { font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }

.btn {
  display: inline-block; min-height: 52px; padding: 14px 34px;
  background: var(--white); color: var(--red);
  border-radius: 999px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.prose p { margin: 0 0 1em; }
.lead { font-size: 24px; font-weight: 700; line-height: 1.35; }

.facts { background: var(--red); color: var(--white); border-top: 0 !important; }
.facts + .section { border-top: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.fact { text-align: center; }
.fact .unit { display: block; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; font-size: 22px; margin-top: 12px; }
.fact p { margin: 8px auto 0; max-width: 280px; color: var(--pill-text); }

/* Stoppuhren (watches.js) – Geometrie wie die Monitor-Stoppuhr, SPEC 3.2 */
.watch { display: block; width: min(100%, 260px); margin: 0 auto; overflow: visible; }
.watch .bell rect { fill: var(--white); }
.watch .bell { transform-origin: 320px 168px; }
.watch .swing path { fill: none; stroke: var(--white); stroke-width: 12; stroke-linecap: round; opacity: 0; }
.watch .track { fill: none; stroke: var(--white); stroke-width: 44; opacity: .2; }
.watch .fill { fill: none; stroke: var(--white); stroke-width: 44; stroke-linecap: round; }
.watch .digits {
  fill: var(--white); font-family: Archivo, sans-serif; font-weight: 900; font-size: 250px;
  letter-spacing: -0.03em; text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums;
  transform-box: fill-box; transform-origin: center;
}

.timeline { list-style: none; margin: 48px 0 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px;
  padding: 24px 0; border-top: 2px solid var(--red);
}
.timeline .t { font-weight: 900; font-size: 40px; color: var(--red); line-height: 1; white-space: nowrap; }
.timeline p { margin: 6px 0 0; color: var(--muted); }

/* ---------- Dabei sein: Termin + Anmeldung ---------- */
.dabei { background: var(--red); color: var(--white); padding: clamp(72px, 10vw, 128px) 0; }
.dabei h2 { color: var(--white); }
.dabei-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.event-title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.2; margin: 24px 0 32px; }
.event-facts { margin: 0 0 24px; display: grid; gap: 20px; }
.event-facts dt { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--pill-text); }
.event-facts dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; }
.event-text { color: var(--pill-text); }

.signup { background: var(--white); color: var(--ink); border-radius: 20px; padding: clamp(24px, 4vw, 40px); }
.signup h3 { color: var(--red); font-size: 26px; text-transform: uppercase; margin-bottom: 20px; }
.notice h3 { margin-bottom: 8px; }
.signup .btn { background: var(--red); color: var(--white); }
.signup .btn:focus-visible { outline-color: var(--red); }
.notice p { margin: 0; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form .row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 500; font-size: 17px; color: var(--ink);
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form .check { grid-template-columns: 24px 1fr; align-items: start; font-weight: 500; font-size: 14px; line-height: 1.45; }
.form .check input { min-height: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.form .btn { background: var(--red); color: var(--white); border: 0; font-size: 16px; cursor: pointer; justify-self: start; }
.form .btn:focus-visible { outline-color: var(--red); }
.req { color: var(--red); }
.opt { font-weight: 500; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small p { margin: 0; }
.status { background: var(--pill-text); color: var(--pill); border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 15px; }
.status p { margin: 0; }
.names { display: grid; gap: 12px; }
.form .with-remove { grid-template-columns: 1fr 48px; column-gap: 8px; }
.form .with-remove > span { grid-column: 1 / -1; }
.remove { width: 48px; height: 48px; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--red); font: 900 22px/1 Archivo, sans-serif; cursor: pointer; }
.remove:hover { border-color: var(--red); }
.add-person { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--red); font: 700 15px Archivo, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Terminkarten (Startseite) */
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; margin-top: 32px; }
.event-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); color: var(--ink); border-radius: 20px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(31,10,11,.25); }
.event-card:focus-within { outline: 3px solid var(--white); outline-offset: 4px; }
.event-card.is-next { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.event-card.is-next .card-image { height: 100%; aspect-ratio: auto; }
.event-card.is-next .card-title { font-size: clamp(26px, 3vw, 34px); }
.card-image { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.card-date { margin: 0; font-weight: 900; font-size: 18px; color: var(--red); }
.card-time { margin: 0; color: var(--muted); font-weight: 700; font-size: 15px; }
.card-title { font-size: 24px; margin-top: 8px; color: var(--ink); text-transform: none; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }   /* ganze Karte klickbar */
.card-title a:focus-visible { outline: none; }
.card-subtitle { margin: 0; color: var(--muted); }
.card-more { margin-top: auto; padding-top: 14px; font-weight: 900; color: var(--red); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.no-event .event-title { margin-top: 0; }
.no-event p { margin: 0 0 8px; }
.no-event div p { color: var(--pill-text); }

.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.badge-offen { background: #E3F3E8; color: #1E6B37; }
.badge-warteliste { background: #FFF1D6; color: #7A4B00; }
.badge-geschlossen { background: #EEE6E5; color: var(--muted); }
.badge-next { background: var(--red); color: var(--white); }

/* Terminseite */
.page-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.back-link { color: var(--white); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.termin-seite { padding-top: clamp(40px, 6vw, 72px); }
.termin-seite h1.event-title { font-size: clamp(32px, 4.5vw, 52px); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; margin: 12px 0 16px; }
.termin-seite .event-subtitle { margin: 0 0 24px; }
.event-status { margin: 0; }
.loading { opacity: .5; }

/* Termin-Details */
.event-image { width: 100%; height: auto; border-radius: 16px; margin: 24px 0 0; display: block; }
.event-extra { margin-top: 24px; }
.event-extra h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--pill-text); margin-bottom: 6px; }
.event-extra p { margin: 0 0 .6em; }
.map-link { color: var(--white); font-weight: 700; font-size: 16px; text-underline-offset: 3px; }
.other-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-weight: 700; }
.other-dates a { color: var(--white); text-underline-offset: 3px; }

/* Referenten */
#referenten { margin-top: clamp(48px, 7vw, 80px); }
.ref-title { color: var(--white); font-size: clamp(26px, 3.2vw, 36px); text-transform: uppercase; margin-bottom: 24px; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.ref { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.ref-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--pill); border: 3px solid var(--white); }
.ref-initials { display: grid; place-items: center; font-weight: 900; font-size: 30px; color: var(--white); }
.ref-name { display: block; font-size: 20px; font-weight: 900; line-height: 1.2; }
.ref a { color: var(--white); text-decoration: none; }
.ref a:hover .ref-name { text-decoration: underline; }
.event-subtitle { margin: 0 0 24px; font-size: 19px; font-weight: 700; color: var(--pill-text); }
.ref-tag { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: var(--white); color: var(--red); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.ref-bio p { margin: 8px 0 0; }
.ref-role { display: block; color: var(--pill-text); font-weight: 700; font-size: 15px; margin-top: 2px; }
.ref-bio { font-size: 15px; line-height: 1.5; }
.ref-credit { display: block; margin-top: 6px; font-size: 12px; color: var(--pill-text); opacity: .8; }

.errors { background: #FDECEB; border-left: 4px solid var(--red); border-radius: 8px; padding: 12px 16px; color: var(--pill); font-weight: 700; font-size: 15px; }
.errors ul { margin: 0; padding-left: 18px; }

.footer { background: var(--pill); color: var(--pill-text); padding: 40px 0; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { width: 220px; }
.footer nav { display: flex; gap: 24px; }
.footer address { font-style: normal; font-size: 15px; line-height: 1.6; }
.footer address strong { color: var(--white); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-head { background: var(--red); padding: 32px 0; }
.page-head img { width: 220px; }
.legal { padding: 64px 0 96px; }
.legal h1 { color: var(--red); font-size: clamp(36px, 6vw, 56px); text-transform: uppercase; margin-bottom: 32px; }
.legal h2 { font-size: 22px; color: var(--ink); text-transform: none; margin: 32px 0 8px; }

@media (max-width: 760px) {
  .hero-inner { padding: 88px calc(var(--gutter) + 24px) 64px; }
  .two, .facts-grid { grid-template-columns: 1fr; gap: 24px; }
  .facts-grid { gap: 56px; }
  .watch { width: min(70%, 220px); }
  .timeline li { grid-template-columns: 72px 1fr; gap: 16px; }
  .timeline .t { font-size: 28px; }
  .dabei-grid { grid-template-columns: 1fr; }
  .event-card.is-next { display: flex; }
  .event-card.is-next .card-image { aspect-ratio: 16 / 9; }
  .form .row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
