/* Livestream Freiburg – Landingpage
   Farben und Schriften nach moritz-bross.de (Figtree, Inter, #FFA300, #212934) */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --ink: #212934;          /* Überschriften, dunkle Flächen */
  --slate: #4a4e57;        /* Fließtext, 8.4:1 auf Weiß */
  --muted: #62666f;        /* Nebentext, 5.9:1 auf Weiß, 5.2:1 auf --mist */
  --amber: #ffa300;        /* Markenfarbe, nur als Fläche oder Grafik */
  --mist: #f2f3f5;         /* helle Fläche (moritz-bross.de) */
  --line: #dcdee2;         /* Haarlinie */
  --green: #5aa86c;        /* Status „ok“ */
  --white: #ffffff;
  --on-ink: rgba(255, 255, 255, 0.74);   /* Nebentext auf --ink, 8:1 */

  /* Schrift */
  --font-display: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  /* Schriftskala: genau diese 8 Stufen, keine Einzelgrößen.
     Bei 1440 px: 200 / 84 / 40 / 28 / 23 / 18 / 16 / 13 px */
  --size-display: clamp(3.5rem, 0.6rem + 14.5vw, 12.5rem);   /* Slogan, bleibt bis 320 px je Zeile einzeilig */
  --size-h2: clamp(2.5rem, 1.1rem + 4.6vw, 5.75rem);         /* alle Abschnittsüberschriften */
  --size-h3: clamp(1.625rem, 1.1rem + 1.6vw, 2.5rem);        /* Versprechen, Kontaktdaten */
  --size-lead: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);        /* Einleitungen, Kundenliste */
  --size-h4: clamp(1.25rem, 1.05rem + 0.45vw, 1.5rem);       /* Kapitel, FAQ-Fragen, Bauchbinden */
  --size-body: 1.125rem;
  --size-small: 1rem;
  --size-micro: 0.8125rem;                                   /* Kennungen im Broadcast-Look */

  /* Raster: 12 Spalten, eine Spaltenlücke für alle Abschnitte */
  --gutter: clamp(1.25rem, 0.5rem + 3.2vw, 4rem);
  --max: 1320px;
  --grid-gap: clamp(1.5rem, 0.75rem + 2vw, 3rem);
  --section-y: clamp(6rem, 3rem + 9vw, 13rem);
  --section-y-tight: clamp(4rem, 2rem + 5vw, 8rem);
  --radius: 20px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; }
img { height: auto; }

a, button, summary, label, select { touch-action: manipulation; -webkit-tap-highlight-color: rgba(255, 163, 0, 0.25); }
a[href^="tel:"] { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  text-wrap: balance;
}
h2 {
  font-size: var(--size-h2);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
h3 {
  font-size: var(--size-h3);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
p { margin: 0; text-wrap: pretty; overflow-wrap: break-word; }
p + p { margin-top: 1em; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
[role="list"] { list-style: none; }

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* 12-Spalten-Raster: links 5, rechts 7 Spalten (Team, FAQ, Kontakt, Footer) */
.split { display: grid; gap: 3rem var(--grid-gap); }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split > :first-child { grid-column: 1 / span 5; }
  .split > :last-child { grid-column: 6 / -1; }
}

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 1rem 2rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--size-body);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn-small { min-height: 46px; padding: 0.7rem 1.3rem; font-size: var(--size-small); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #ffb42e; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #343e4c; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.text-link,
.phone-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover,
.phone-link:hover { text-decoration-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}
.brand { flex: none; border-radius: 8px; }
.brand img { width: auto; height: 44px; }

.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: var(--size-small);
  font-weight: 500;
  text-decoration: none;
}
.nav-list a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.menu-toggle { display: none; flex: none; }
.label-short { display: none; }

@media (max-width: 1023px) {
  .header-inner { gap: 0.75rem; }
  .brand img { height: 38px; }
  .header-cta { margin-left: auto; }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px; height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--mist);
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle-bars,
  .menu-toggle-bars::before,
  .menu-toggle-bars::after {
    display: block;
    width: 20px; height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-toggle-bars { position: relative; }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -6px; }
  .menu-toggle-bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .main-nav { margin-left: 0; }
  .nav-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .nav-list.is-open { display: flex; }
  .nav-list a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--font-display);
    font-size: var(--size-h3);
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .nav-list li:last-child a { border-bottom: 0; }
}
@media (max-width: 520px) {
  .brand img { height: 34px; }
  .header-cta { padding-inline: 1.1rem; }
  .label-full { display: none; }
  .label-short { display: inline; }
}
@media (max-width: 360px) {
  .header-inner { gap: 0.5rem; }
  .brand img { height: 28px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 1rem + 4vw, 6rem) clamp(5rem, 3rem + 6vw, 10rem); }

.display {
  font-size: var(--size-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.display .line { display: block; }

.hero-sub {
  display: grid;
  gap: 2.25rem var(--grid-gap);
  margin-top: clamp(2rem, 1rem + 2.5vw, 3.5rem);
}
@media (min-width: 900px) {
  .hero-sub { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
.lead {
  max-width: 35ch;
  color: var(--ink);
  font-size: var(--size-lead);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.hero-region {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--size-body);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}
.phone-link { font-family: var(--font-display); font-size: var(--size-body); font-weight: 700; }

.hero-media {
  position: relative;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.hero-photo {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  object-position: 40% 45%;
  border-radius: var(--radius) clamp(96px, 18vw, 300px) var(--radius) var(--radius);
  background: var(--ink);
}
@media (max-width: 699px) {
  .hero-photo { aspect-ratio: 4 / 3.4; object-position: 62% 50%; }
}

.status-panel {
  position: absolute;
  left: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  bottom: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  width: min(20rem, calc(100% - 1.5rem));
  padding: 1.05rem 1.2rem 1.1rem;
  border-radius: 16px;
  background: rgba(33, 41, 52, 0.92);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: var(--size-small);
  line-height: 1.4;
}
@media (max-width: 699px) {
  .hero-media { margin-bottom: 4.5rem; }
  .status-panel { bottom: -4.5rem; left: 0.75rem; }
}
.status-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-display);
  font-size: var(--size-body);
  font-weight: 700;
}
.timecode {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: var(--size-small);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.82);
}
.tally {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber);
}
.tally::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  opacity: 0;
}
.status-list { display: grid; gap: 0.45rem; }
.status-list div { display: flex; justify-content: space-between; gap: 1rem; }
.status-list dt { color: rgba(255, 255, 255, 0.82); }
.status-list dd { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* Einziger automatischer Bewegungsmoment: Tally-Licht beim Laden, unter 5 s (WCAG 2.2.2) */
@media (prefers-reduced-motion: no-preference) {
  .tally::after { animation: tally 2.4s ease-out 2; }
}
@keyframes tally {
  0% { transform: scale(0.6); opacity: 0.9; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Proof ---------- */
.proof { padding-bottom: var(--section-y); }
.statement span { display: block; }
.clients-intro { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); color: var(--muted); font-weight: 600; }
.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3.5rem;
  margin-top: 1rem;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--size-lead);
  font-weight: 700;
  letter-spacing: -0.01em;
}
@media (max-width: 699px) {
  .client-list { gap: 0.6rem 1.5rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-flush { padding-top: 0; }
.section-mist { padding-block: var(--section-y-tight); background: var(--mist); }

/* Zuverlässigkeit: dunkler Block als Kamera-Sucher */
.reliability {
  padding-block: clamp(2.5rem, 1rem + 5vw, 6.5rem);
  background: var(--ink);
  color: var(--on-ink);
}
.reliability h2,
.reliability h3 { color: var(--white); }

/* Sucherecken liegen im Seitenrand, der Inhalt bleibt auf der Rasterkante */
.viewfinder {
  --vf-pad: calc(var(--gutter) * 0.7);
  --vf-c: rgba(255, 255, 255, 0.5);
  --vf-l: clamp(22px, 1rem + 1.5vw, 44px);
  margin-inline: calc(var(--vf-pad) * -1);
  padding: var(--vf-pad);
  background:
    linear-gradient(var(--vf-c), var(--vf-c)) top left / var(--vf-l) 2px,
    linear-gradient(var(--vf-c), var(--vf-c)) top left / 2px var(--vf-l),
    linear-gradient(var(--vf-c), var(--vf-c)) top right / var(--vf-l) 2px,
    linear-gradient(var(--vf-c), var(--vf-c)) top right / 2px var(--vf-l),
    linear-gradient(var(--vf-c), var(--vf-c)) bottom left / var(--vf-l) 2px,
    linear-gradient(var(--vf-c), var(--vf-c)) bottom left / 2px var(--vf-l),
    linear-gradient(var(--vf-c), var(--vf-c)) bottom right / var(--vf-l) 2px,
    linear-gradient(var(--vf-c), var(--vf-c)) bottom right / 2px var(--vf-l);
  background-repeat: no-repeat;
}
.viewfinder > h2 { margin-top: clamp(3.5rem, 1.5rem + 6vw, 8.5rem); }

.vf-osd {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--size-micro);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.vf-osd-bottom { margin-top: clamp(4rem, 2rem + 6vw, 8.5rem); }
.vf-group { display: inline-flex; align-items: center; gap: 0.75rem; white-space: nowrap; }
@media (max-width: 599px) { .vf-wide { display: none; } }

.vf-rec { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--white); font-weight: 700; }
.vf-rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }

/* Akku: drei Viertel voll */
.vf-batt { position: relative; width: 24px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; }
.vf-batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 3px; border-radius: 0 1px 1px 0; background: currentColor; }
.vf-batt i { position: absolute; inset: 1.5px; right: 30%; border-radius: 1px; background: var(--green); }

/* Tonpegel waagerecht, gleiche Farblogik wie die Multiview-Meter */
.vf-meter {
  position: relative;
  width: clamp(56px, 3rem + 2vw, 96px);
  height: 5px;
  border-radius: 1px;
  background: linear-gradient(to right, var(--green) 0 66%, var(--amber) 66% 88%, #e5484d 88%);
}
.vf-meter::after { content: ""; position: absolute; inset: 0 0 0 auto; width: calc(100% - var(--lvl, 60%)); background: #3a4250; }
.vf-meter + span { margin-left: 0.5rem; }

/* Mobilfunk-Balken */
.vf-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.vf-signal i { width: 3px; border-radius: 1px; background: var(--green); }
.vf-signal i:nth-child(1) { height: 25%; }
.vf-signal i:nth-child(2) { height: 50%; }
.vf-signal i:nth-child(3) { height: 75%; }
.vf-signal i:nth-child(4) { height: 100%; }

.promise-list {
  display: grid;
  gap: 3.5rem;
  margin-top: clamp(3.5rem, 2rem + 5vw, 7rem);
}
@media (min-width: 700px) {
  .promise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem var(--grid-gap); }
}
.promise h3 { font-size: var(--size-h3); }
.promise p { max-width: 44ch; margin-top: 1.25rem; line-height: 1.55; }

/* Nur mit JavaScript sinnvolle Elemente */
.js-only { display: none; }
.js .js-only { display: block; }

.section-head { display: grid; gap: 1rem 3rem; }
@media (min-width: 800px) {
  .section-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
.section-head p { color: var(--muted); }

/* Leistungen: Multiview wie am Bildmischer (PGM groß, Quellen klein, Tally-Rahmen) */
.multiview {
  display: grid;
  gap: 8px;
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding: 8px;
  border-radius: 22px;
  background: var(--ink);
}
@media (min-width: 1024px) {
  .multiview { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.multiview :focus-visible { outline-color: var(--white); outline-offset: 2px; }

.mv-pgm,
.mv-source { position: relative; overflow: hidden; background: #000; }
.mv-pgm { margin: 0; aspect-ratio: 16 / 9; border-radius: 14px; }
@media (min-width: 1024px) { .mv-pgm { aspect-ratio: auto; } }
.mv-pgm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-pgm::after,
.mv-source::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: inherit;
  pointer-events: none;
}
.mv-pgm::after,
.mv-source.is-pgm::after { border-color: var(--amber); }
.mv-source.is-pvw::after { border-color: var(--green); }

.mv-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; }
@media (min-width: 600px) { .mv-sources { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mv-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mv-source {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.mv-source img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.15s ease; }
.mv-source:hover img,
.mv-source.is-pgm img { opacity: 1; }

/* Kennung „Live“ (Programm) und „Vorschau“ wie im Multiviewer */
.mv-tag,
.mv-source.is-pgm::before,
.mv-source.is-pvw::before {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-micro);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.mv-tag { top: 14px; right: 14px; padding: 0.15rem 0.5rem; background: var(--amber); }
.mv-source.is-pgm::before { content: "Live"; background: var(--amber); }
.mv-source.is-pvw::before { content: "Vorschau"; background: var(--green); }

/* Quellenname unten im Fenster */
.mv-label {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 0.45rem;
  padding: 0.3rem 0.6rem;
  background: rgba(0, 0, 0, 0.74);
  color: var(--white);
  font-size: var(--size-micro);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mv-num { color: var(--amber); font-variant-numeric: tabular-nums; }
.mv-short { display: none; }
@media (max-width: 599px) {
  .mv-long { display: none; }
  .mv-short { display: inline; }
  .mv-label { padding: 0.25rem 0.5rem; }
}

/* Audiopegel (statisch), senkrecht am Fensterrand */
.vu {
  position: absolute;
  z-index: 2;
  left: 8px;
  top: 8px;
  bottom: 32px;
  display: flex;
  gap: 2px;
}
.vu i { position: relative; display: block; width: 3px; border-radius: 1px; background: linear-gradient(to top, var(--green) 0 66%, var(--amber) 66% 88%, #e5484d 88%); }
.vu i::after { content: ""; position: absolute; inset: 0 0 auto 0; height: calc(100% - var(--lvl, 60%)); background: rgba(0, 0, 0, 0.7); }
.vu i + i { --lvl: 52%; }
.mv-sources li:nth-child(2n) .vu i { --lvl: 44%; }
.mv-sources li:nth-child(2n) .vu i + i { --lvl: 49%; }
.mv-sources li:nth-child(3n) .vu i { --lvl: 70%; }
.mv-sources li:nth-child(3n) .vu i + i { --lvl: 64%; }
.mv-pgm .vu { left: auto; right: 14px; top: 46px; bottom: 14px; gap: 3px; }
.mv-pgm .vu i { width: 5px; --lvl: 76%; }
.mv-pgm .vu i + i { --lvl: 71%; }
@media (max-width: 599px) { .mv-sources .vu { display: none; } }

/* Bauchbinde (Lower Third) */
.lower-third {
  position: absolute;
  z-index: 2;
  left: clamp(0.75rem, 0.4rem + 1.6vw, 1.75rem);
  bottom: clamp(0.75rem, 0.4rem + 1.6vw, 1.75rem);
  display: grid;
  gap: 0.15rem;
  max-width: calc(100% - 4rem);
  padding: 0.65rem 1.1rem 0.7rem 0.95rem;
  border-left: 6px solid var(--amber);
  border-radius: 4px 12px 12px 4px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55);
}
.lower-third strong {
  font-family: var(--font-display);
  font-size: var(--size-h4);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lower-third span { color: var(--slate); font-size: var(--size-small); line-height: 1.35; }
/* Handy: Programmfenster ist klein, Bauchbinde eine Stufe kleiner */
@media (max-width: 599px) {
  .mv-pgm .lower-third strong { font-size: var(--size-body); }
  .mv-pgm .lower-third span { font-size: var(--size-micro); }
}

/* Ablauf: Player-Timeline mit Kapiteln */
.player { margin-top: clamp(3rem, 2rem + 4vw, 6rem); }
.player-controls { align-items: center; gap: 1rem 1.25rem; margin-bottom: 2.25rem; }
.js .player-controls { display: flex; flex-wrap: wrap; }
.player-play {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 60px; height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.player-play:hover { background: #343e4c; }
.player-play svg { display: none; width: 24px; height: 24px; }
.player-play[data-state="play"] [data-icon="play"],
.player-play[data-state="pause"] [data-icon="pause"],
.player-play[data-state="replay"] [data-icon="replay"] { display: block; }
.player-status {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--size-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.player-live,
.live-pill {
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--size-micro);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
  vertical-align: middle;
}
.player-live { display: none; }
.player.is-live .player-live { display: inline-flex; }
.live-pill { display: inline-flex; margin-left: 0.35rem; }
.player-live::before,
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

.chapters { display: grid; list-style: none; }
.chapter-bar { position: relative; display: block; border-radius: 999px; background: #d3d6db; }
.js .chapter-bar { cursor: pointer; }
.chapter-fill { position: absolute; left: 0; top: 0; border-radius: inherit; background: var(--amber); }
.chapter.is-current .chapter-fill::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--mist);
}
.chapter { position: relative; }
.chapter h3 { font-size: var(--size-h4); letter-spacing: -0.02em; }
.chapter-num { display: inline-block; margin-right: 0.3rem; color: var(--muted); font-variant-numeric: tabular-nums; }   /* inline-block: keine Unterstreichung */
.chapter p { margin-top: 0.45rem; color: var(--muted); }
.chapter.is-current p { color: var(--ink); }
.chapter-btn {
  padding: 2px 0;   /* Zielfläche mindestens 24 px hoch (WCAG 2.5.8) */
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.chapter-btn:hover,
.chapter.is-current .chapter-btn {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* Tablet/Desktop: waagrechte Zeitleiste, Kapitel mit 4 px Abstand */
@media (min-width: 720px) {
  .player-controls { margin-bottom: 3rem; }
  /* Subgrid: Balken, Titel und Text stehen in allen Kapiteln auf einer Linie, auch wenn ein Titel umbricht */
  .chapters { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: 4px; }
  .chapter { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .chapter > h3,
  .chapter > p { padding-right: 1rem; }
  /* „Live“-Marke sitzt über dem Kapitelbalken statt im Titel, damit der Titel nicht umbricht */
  .live-pill { position: absolute; left: 0; bottom: calc(100% + 8px); margin-left: 0; }
  .chapter-bar { height: 8px; margin-bottom: 1.75rem; }
  .chapter-fill { bottom: 0; width: var(--p, 0%); }
  .chapter.is-current .chapter-bar { height: 12px; margin-top: -2px; margin-bottom: calc(1.75rem - 2px); }
  .chapter.is-current .chapter-fill::after { right: -10px; top: 50%; margin-top: -10px; }
}
/* Handy: senkrechte Zeitleiste */
@media (max-width: 719px) {
  .chapters { row-gap: 4px; }
  .chapter { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 1.25rem; }
  .chapter > h3,
  .chapter > p { grid-column: 2; }
  .chapter > p { padding-bottom: 1.75rem; }
  .chapter-bar { grid-column: 1; grid-row: 1 / span 2; width: 8px; }
  .chapter-fill { right: 0; height: var(--p, 0%); }
  .chapter.is-current .chapter-bar { width: 12px; margin-left: -2px; }
  .chapter.is-current .chapter-fill::after { left: 50%; bottom: -10px; margin-left: -10px; }
}

/* Team: zwei Ansprechpartner mit Bauchbinde */
.team { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); align-items: center; }
.team-copy p { max-width: 36ch; color: var(--ink); font-size: var(--size-lead); line-height: 1.4; }
.team-copy p + p { margin-top: 1.5rem; font-size: var(--size-body); }
.team-list { display: grid; gap: 3rem var(--grid-gap); list-style: none; }
@media (min-width: 560px) { .team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { position: relative; margin: 0; }
.person img { width: min(100%, 300px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--ink); }
.person .lower-third { left: -0.5rem; bottom: 6%; max-width: none; white-space: nowrap; }

/* FAQ */
.faq { align-items: start; }
@media (min-width: 1024px) {
  .faq h2 { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 1.6rem 3rem 1.6rem 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--size-h4);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem; top: 50%;
  width: 18px; height: 2.5px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.faq details p { max-width: 46ch; padding: 0 0 1.75rem; }

/* ---------- Kontakt: Telefon und E-Mail ---------- */
.contact {
  padding-block: var(--section-y);
  background: var(--amber);
  color: var(--ink);
}
.contact-grid { margin-top: clamp(3rem, 2rem + 4vw, 6rem); align-items: start; }
.contact-copy > p { max-width: 30ch; font-size: var(--size-lead); line-height: 1.35; }
.contact-copy > p + p { max-width: 40ch; margin-top: 1.5rem; font-size: var(--size-body); line-height: 1.5; }
.contact-direct { display: grid; gap: 2.5rem; }
.contact-direct dt { font-size: var(--size-small); font-weight: 600; }
.contact-direct dd a {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.contact-direct dd a:hover { text-decoration-color: var(--white); }
@media (max-width: 479px) {
  .contact-direct dd a { font-size: var(--size-lead); text-underline-offset: 6px; }
}

/* ---------- Rechtliche Seiten und 404 ---------- */
.legal { padding-block: clamp(3.5rem, 1.5rem + 6vw, 8rem) var(--section-y); }
.legal .container > * { max-width: 46rem; }
.legal h1 {
  max-width: 16ch;
  font-size: var(--size-h2);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  hyphens: manual;
}
.legal-lead { margin-top: 1.75rem; color: var(--ink); font-size: var(--size-lead); line-height: 1.45; }
.legal h2 {
  margin-top: clamp(3rem, 2rem + 2vw, 4rem);
  font-size: var(--size-lead);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.legal h3 { margin-top: 2rem; font-size: var(--size-body); line-height: 1.3; letter-spacing: 0; }
.legal h2 + *, .legal h3 + * { margin-top: 0.75rem; }
.legal ul { margin-top: 1rem; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.35rem; }
.legal ul + p, .legal address + p { margin-top: 1em; }
.legal address { font-style: normal; }
.legal p a, .legal li a, .legal address a {
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.legal-note { padding: 1rem 1.25rem; border-left: 4px solid var(--amber); background: var(--mist); color: var(--ink); }
.legal-meta { margin-top: 4rem; color: var(--muted); font-size: var(--size-small); }
.legal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; }
.footer-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 5rem 2rem;
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--size-small);
}
.site-footer a { color: var(--white); text-underline-offset: 3px; }
.site-footer a:focus-visible { outline-color: var(--amber); }
.footer-grid { row-gap: 3rem; }
/* Footer erst ab 1200 px zweispaltig, sonst passt die E-Mail-Adresse nicht in die Spalte */
@media (min-width: 1024px) and (max-width: 1199px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child,
  .footer-grid > :last-child { grid-column: 1; }
}
.footer-brand img { width: 220px; height: auto; margin-bottom: 1rem; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem var(--grid-gap); }
@media (max-width: 639px) { .footer-cols { flex-direction: column; } }
.footer-heading {
  margin-bottom: 0.75rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--size-small);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
.footer-list { display: grid; gap: 0.4rem; list-style: none; }
.footer-list a { text-decoration: none; overflow-wrap: anywhere; }
.footer-list a:hover { text-decoration: underline; }
.footer-address { font-style: normal; line-height: 1.6; }
.footer-base { margin-top: 4rem; }
.footer-base > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-base a { text-decoration: none; }
.footer-base a:hover { text-decoration: underline; }
