/* FECG Singen – Design übernommen aus den Stream-Grafiken */
@font-face { font-family: "InterFECG"; src: url(inter-500.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "InterFECG"; src: url(inter-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --navy0: #0a0d17;
  --navy1: #1d2848;
  --navy-panel: #141b31;
  --text: #ffffff;
  --muted: #c3c9da;
  --leise: #8a93ad;
  --linie: rgba(195, 201, 218, .14);
  --linie-stark: rgba(195, 201, 218, .35);
  --rot: #e86a5a; --cyan: #3bb2e0; --gruen: #46c85a; --gelb: #d6d446; --blau: #5a8ce6; --lila: #aa5adc;
  --regenbogen: linear-gradient(90deg, var(--rot) 0 16.66%, var(--cyan) 16.66% 33.33%, var(--gruen) 33.33% 50%, var(--gelb) 50% 66.66%, var(--blau) 66.66% 83.33%, var(--lila) 83.33%);
  --schrift: "InterFECG", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  background: var(--navy0);
  color: var(--text);
  font: 500 15px/1.5 var(--schrift);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 130px;
}
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Hintergrund wie in den Stream-Grafiken: Navy-Verlauf, Farbnebel, Körnung */
.hintergrund {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 40% at 18% 12%, rgba(77, 115, 217, .35), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 70%, rgba(77, 66, 158, .32), transparent 70%),
    radial-gradient(ellipse 50% 40% at 60% 105%, rgba(51, 76, 150, .3), transparent 70%),
    radial-gradient(ellipse 75% 75% at 48% 40%, var(--navy0) 0%, var(--navy1) 100%);
}
.hintergrund::after {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Knöpfe */
.knopf {
  background: var(--text); color: var(--navy0); border: none; border-radius: 4px;
  padding: 10px 18px; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background .15s;
}
.knopf:hover { background: var(--muted); }
.knopf:disabled { opacity: .45; cursor: default; }
.textknopf {
  background: none; border: none; padding: 4px 0; cursor: pointer; font-size: 14px; color: var(--muted);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .15s;
}
.textknopf:hover { color: var(--text); text-decoration-color: currentColor; }
.textknopf.stark {
  color: var(--text); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--linie-stark); border-radius: 4px; padding: 9px 16px;
}
.textknopf.stark:hover { background: rgba(255, 255, 255, .08); border-color: var(--muted); }
.textknopf.gefahr { color: var(--rot); }

/* Kopf */
.kopf {
  max-width: 1040px; margin: 0 auto; padding: 22px 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marke img { display: block; height: 54px; width: auto; }
.kopf-aktionen { display: flex; align-items: center; gap: 20px; }

.inhalt { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Bühne */
.buehne { text-align: center; padding: 56px 0 44px; }
.buehne h1 {
  margin: 0; font-weight: 600; font-size: clamp(34px, 6vw, 56px); line-height: 1.1;
  letter-spacing: .16em; padding-left: .16em; text-transform: uppercase;
}
.regenbogen { width: 132px; height: 5px; border-radius: 3px; margin: 26px auto 0; background: var(--regenbogen); }
.buehne p { margin: 24px 0 0; color: var(--muted); font-size: 15px; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; }

/* Suche */
.suche {
  background: rgba(20, 27, 49, .6); border: 1px solid var(--linie); border-radius: 8px;
  padding: 6px 20px 4px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
#suchText {
  width: 100%; border: none; border-bottom: 1px solid var(--linie); background: transparent;
  padding: 12px 0; font-size: 18px; outline: none; border-radius: 0;
}
#suchText:focus { border-bottom-color: var(--muted); }
#suchText::placeholder { color: var(--leise); }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding: 10px 0; }
.filter select {
  appearance: none; -webkit-appearance: none; border: none; cursor: pointer; field-sizing: content;
  font-size: 14px; color: var(--muted); padding: 4px 14px 4px 0;
  background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 4px top 55% / 4px 4px no-repeat,
              linear-gradient(-45deg, transparent 50%, currentColor 50%) right 0 top 55% / 4px 4px no-repeat transparent;
}
.filter select option { background: var(--navy-panel); color: var(--text); }
.filter select:hover { color: var(--text); }
.filter select.aktiv { color: var(--text); font-weight: 600; }
.anzahl { margin-left: auto; font-size: 13px; color: var(--leise); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* Liste */
.gruppe { margin-top: 44px; }
.gruppe-titel {
  display: flex; align-items: center; gap: 14px; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--linie-stark);
  font-size: 13px; font-weight: 600; letter-spacing: .3em; color: var(--muted);
}
.gruppe-titel::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--regenbogen); }
.karte {
  position: relative;
  display: grid; grid-template-columns: 28px 64px 1fr 190px 56px; gap: 0 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--linie); cursor: pointer; transition: background .15s;
}
.karte::before {
  content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 3px; opacity: 0;
  background: linear-gradient(180deg, var(--rot) 0 16.66%, var(--cyan) 16.66% 33.33%, var(--gruen) 33.33% 50%, var(--gelb) 50% 66.66%, var(--blau) 66.66% 83.33%, var(--lila) 83.33%);
}
.karte:hover { background: rgba(255, 255, 255, .035); box-shadow: -14px 0 0 rgba(255, 255, 255, .035), 14px 0 0 rgba(255, 255, 255, .035); }
.karte.spielt { background: rgba(90, 140, 230, .1); box-shadow: -14px 0 0 rgba(90, 140, 230, .1), 14px 0 0 rgba(90, 140, 230, .1); }
.karte.spielt::before { opacity: 1; }
.karte-play {
  align-self: start; width: 28px; height: 22px; border: none; background: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; color: var(--muted);
}
.karte:hover .karte-play, .karte.spielt .karte-play { color: var(--text); }
.karte-play svg { width: 16px; height: 16px; fill: currentColor; }
.karte-play .icon-pause, .karte.laeuft .karte-play .icon-play { display: none; }
.karte.laeuft .karte-play .icon-pause { display: block; }
.karte-datum { font-variant-numeric: tabular-nums; color: var(--leise); font-size: 14px; }
.karte-text { min-width: 0; }
.karte-titel { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.35; }
.karte-meta { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 14px; color: var(--muted); margin-top: 3px; }
.karte-meta .serie { text-decoration: none; color: var(--leise); }
.karte-meta .serie:hover { color: var(--text); text-decoration: underline; }
.karte-beschreibung { margin: 6px 0 0; font-size: 14px; color: var(--leise); max-width: 62ch; }
.karte-prediger { font-size: 15px; color: var(--muted); }
.karte-dauer { text-align: right; font-size: 14px; color: var(--leise); font-variant-numeric: tabular-nums; }
.karte-aktionen { display: none; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.karte-aktionen a { text-decoration: none; }
.karte-aktionen a:hover { color: var(--text); text-decoration: underline; }
.karte.spielt .karte-aktionen { display: flex; }
.nur-mobil { display: none; }

mark { background: var(--gelb); color: var(--navy0); border-radius: 2px; padding: 0 1px; }

.leer { padding: 64px 0; text-align: center; color: var(--muted); }
.leer p { margin: 0 0 20px; font-size: 17px; }

/* Player */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(10, 13, 23, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.player::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--regenbogen); }
.player-innen { max-width: 1040px; margin: 0 auto; padding: 16px 24px 16px; display: flex; align-items: center; gap: 18px; }
.player-play {
  width: 46px; height: 46px; flex-shrink: 0; border: none; border-radius: 50%; background: var(--text); color: var(--navy0);
  display: grid; place-items: center; cursor: pointer;
}
.player-play:hover { background: var(--muted); }
.player-play svg { width: 20px; height: 20px; fill: currentColor; }
.player-play .icon-pause, .player.laeuft .player-play .icon-play { display: none; }
.player.laeuft .player-play .icon-pause { display: block; }
.player-info { flex: 1; min-width: 0; }
.player-titel { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-zeitleiste { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--leise); font-variant-numeric: tabular-nums; margin-top: 4px; }
.player-zeitleiste input { flex: 1; }
.player-extra { display: flex; gap: 16px; font-variant-numeric: tabular-nums; }
#tempoKnopf { min-width: 34px; text-align: right; }

input[type=range] { -webkit-appearance: none; appearance: none; height: 14px; background: transparent; cursor: pointer; --wert: 0%; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--blau), var(--lila)) 0 / var(--wert) 100% no-repeat, var(--linie-stark); }
input[type=range]::-moz-range-track { height: 3px; background: var(--linie-stark); }
input[type=range]::-moz-range-progress { height: 3px; background: linear-gradient(90deg, var(--cyan), var(--blau), var(--lila)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--text); margin-top: -4px; border: none; }
input[type=range]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--text); border: none; }

/* Dialog */
.dialog {
  border: 1px solid var(--linie-stark); padding: 0; border-radius: 8px; background: var(--navy-panel); color: var(--text);
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto;
}
.dialog::before { content: ""; display: block; height: 3px; background: var(--regenbogen); }
.dialog-klein { width: min(380px, calc(100vw - 24px)); }
.dialog::backdrop { background: rgba(5, 7, 14, .7); }
.dialog form { padding: 22px 24px 22px; }
.dialog-kopf { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.dialog-kopf h2 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: .16em; text-transform: uppercase; }
.hinweis { color: var(--muted); margin: 0 0 16px; }

.ablage {
  display: block; position: relative; border: 1px dashed var(--linie-stark); border-radius: 6px; padding: 20px; cursor: pointer; margin-bottom: 20px;
  font-size: 14px; color: var(--muted); text-align: center; transition: all .15s;
}
.ablage:hover, .ablage.ueber { border-color: var(--muted); background: rgba(255, 255, 255, .04); }
.ablage input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ablage strong { color: var(--text); }
.ablage small { font-size: 12px; color: var(--leise); }
.ablage.gefuellt { border-style: solid; border-color: var(--cyan); background: rgba(59, 178, 224, .08); }
.ablage-voll { word-break: break-all; font-weight: 600; color: var(--text); }

.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.feld { display: flex; flex-direction: column; gap: 2px; }
.feld.breit { grid-column: 1 / -1; }
.feld span { font-size: 11px; font-weight: 600; color: var(--leise); letter-spacing: .14em; text-transform: uppercase; }
.feld input, .feld textarea {
  border: none; border-bottom: 1px solid var(--linie-stark); border-radius: 0; background: transparent; padding: 7px 0; font-size: 16px; outline: none; width: 100%;
}
.feld input::placeholder, .feld textarea::placeholder { color: var(--leise); opacity: .7; }
.feld textarea { resize: vertical; min-height: 56px; }
.feld input:focus, .feld textarea:focus { border-bottom-color: var(--cyan); }
.feld input.ungueltig { border-bottom-color: var(--rot); }
.feld input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }

.fortschritt-upload { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.balken { flex: 1; height: 4px; border-radius: 2px; background: var(--linie); overflow: hidden; }
.balken div { height: 100%; width: 0; background: var(--regenbogen); background-size: 156px 100%; transition: width .2s; }
.fehler { color: var(--rot); font-size: 14px; margin: 14px 0 0; }
.fehler:empty { display: none; }
.dialog-fuss { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.abstand { flex: 1; }

/* Hinweis */
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 50;
  background: var(--text); color: var(--navy0); padding: 9px 16px; border-radius: 4px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.zeigen { opacity: 1; }

/* Mobil */
@media (max-width: 700px) {
  .kopf, .inhalt { padding-left: 16px; padding-right: 16px; }
  .kopf { padding-top: 16px; }
  .marke img { height: 36px; }
  .textknopf.stark { padding: 8px 12px; font-size: 12px; }
  .buehne { padding: 36px 0 30px; }
  .buehne p { font-size: 12px; }
  .suche { padding: 4px 14px 2px; }
  #suchText { font-size: 16px; }
  .anzahl { width: 100%; margin-left: 0; }
  .karte { grid-template-columns: 24px 1fr auto; }
  .karte-datum { grid-column: 3; grid-row: 1; font-size: 13px; }
  .karte-text { grid-column: 2; grid-row: 1; }
  .karte-prediger, .karte-dauer { display: none; }
  .nur-mobil { display: inline; }
  .karte:hover { box-shadow: none; }
  .karte::before { left: -8px; }
  .karte.spielt { box-shadow: -8px 0 0 rgba(90, 140, 230, .1), 8px 0 0 rgba(90, 140, 230, .1); }
  .player-innen { flex-wrap: wrap; padding: 12px 16px 12px; gap: 6px 14px; }
  .player-extra { width: 100%; justify-content: space-between; }
  .felder { grid-template-columns: 1fr; }
  .dialog form { padding: 18px; }
}

.fuss { margin: 56px 0 0; text-align: center; font-size: 13px; }
.fuss a { color: var(--leise); text-decoration: none; }
.fuss a:hover { color: var(--text); text-decoration: underline; }

/* Transkripte */
.hat-transkript {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(59, 178, 224, .4); border-radius: 3px; padding: 0 6px; align-self: center; line-height: 18px;
}
.karte-fund { margin: 8px 0 0; font-size: 14px; color: var(--muted); max-width: 70ch; }
.karte-fund a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.karte-fund a:hover { text-decoration: underline; }

.transkript-feld { display: flex; align-items: center; gap: 18px; padding: 6px 0; border-bottom: 1px solid var(--linie-stark); }
.dateiwahl { position: relative; overflow: hidden; color: var(--text); }
.dateiwahl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.dialog-lesen { width: min(760px, calc(100vw - 24px)); height: min(86vh, 1000px); display: none; }
.dialog-lesen[open] { display: flex; flex-direction: column; }
.lese-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 28px 16px; border-bottom: 1px solid var(--linie); }
.lese-kopf h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.lese-kopf p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.lese-text { flex: 1; overflow-y: auto; padding: 8px 28px 32px; font-size: 17px; line-height: 1.7; color: #e6e9f2; }
.lese-text p { margin: 1em 0; max-width: 64ch; }
.lese-laden { color: var(--leise); }
@media (max-width: 700px) {
  .dialog-lesen { height: calc(100vh - 24px); }
  .lese-kopf { padding: 18px 18px 12px; }
  .lese-text { padding: 4px 18px 24px; font-size: 16px; }
}
.feld .transkript-feld span { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
.lese-text blockquote {
  margin: 1.2em 0; padding: 14px 18px; max-width: 64ch; font-size: .92em; line-height: 1.6;
  background: rgba(90, 140, 230, .1); border-left: 3px solid var(--blau); border-radius: 0 6px 6px 0; color: var(--muted);
}
.lese-text blockquote b { color: var(--text); }
.lese-text b { color: #fff; font-weight: 600; }
