/* Retrograde Amnesie: (M)ein Leben mit Gedächtnisverlust
   Eine Zeitachse, die erst am 7. Mai 2020 beginnt. Davor stehen nur einzelne Striche.
   Text: Literata. Titel und Bedienung: Familjen Grotesk. Beide liegen in assets/fonts. */

@font-face { font-family: "Literata"; src: url("fonts/literata-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --papier: #F1F2EE;
  --flaeche: #E4E6E1;
  --graphit: #1F2328;
  --neben: #5B616B;
  --glas: #2F6A5C;
  --scherbe: #B5652A;
  --linie: #A7ABAD;
  --auf-glas: #F1F2EE;

  --lese: "Literata", Georgia, serif;
  --titel: "Familjen Grotesk", "Helvetica Neue", sans-serif;

  --spalte: 56px;      /* Spalte, in der die Achse läuft */
  --achse: 27.5px;     /* x-Position der Achse */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #15181B; --flaeche: #1F2327; --graphit: #E6E7E3; --neben: #9AA1A9;
    --glas: #7FB8A6; --scherbe: #E39A55; --linie: #4B5157; --auf-glas: #15181B;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--papier);
  color: var(--graphit);
  font: 400 17px/1.62 var(--lese);
  padding-bottom: 40px;
}
html.mit-player body { padding-bottom: 150px; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: var(--glas); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--glas); outline-offset: 3px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 8px; top: -60px; background: var(--graphit); color: var(--papier); padding: 10px 14px; font: 500 15px var(--titel); z-index: 20; }
.sprung:focus { top: 8px; }

/* Kopf */
.kopf { padding: 22px 20px 0 20px; display: flex; flex-direction: column; gap: 14px; }
.marke { font: 400 16px/1.3 var(--titel); }
.marke a { color: var(--graphit); text-decoration: none; display: inline-block; }
.marke-thema { display: block; font-weight: 600; font-size: 19px; letter-spacing: -0.005em; }
.marke-zeile { display: block; color: var(--neben); }
.marke-m { color: var(--graphit); font-weight: 600; }
.marke-m .kl { color: var(--glas); font-weight: 400; }
.wege { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 400 15px var(--titel); }
.wege a { color: var(--neben); text-decoration: none; padding: 6px 0; }
.wege a:hover { color: var(--graphit); text-decoration: underline; }

/* Einstieg: Leere, und eine Achse, die noch nicht da ist */
.blatt { position: relative; }
.anfang { display: grid; grid-template-columns: var(--spalte) 1fr; min-height: 380px; padding-right: 20px; position: relative; }
.vorher { position: relative; }
.vorher i { position: absolute; left: var(--achse); width: 1px; background: var(--linie); }
.vorher i:nth-child(1) { top: 21%; height: 3px; }
.vorher i:nth-child(2) { top: 44%; height: 9px; }
.vorher i:nth-child(3) { top: 63%; height: 22px; }
.vorher i:nth-child(4) { top: 84%; bottom: 0; }
.anfang-text { align-self: end; padding: 150px 0 40px 0; }
.satz { font: 400 27px/1.26 var(--lese); letter-spacing: -0.012em; }
.satz span { display: block; }
.satz .z2 { margin-top: 0.18em; }
.satz-weiter { margin-top: 16px; color: var(--neben); max-width: 17em; margin-left: 22px; }
.satz-quelle { margin-top: 22px; font: 400 14px var(--titel); color: var(--neben); margin-left: 22px; }

/* Der Tag, an dem die Achse beginnt */
.tag { display: grid; grid-template-columns: var(--spalte) 1fr; padding-right: 20px; position: relative; padding-bottom: 44px; }
.tag::before { content: ""; position: absolute; left: var(--achse); top: 0; bottom: 0; width: 1px; background: var(--linie); }
.tag-strich { position: relative; }
.tag-strich::before { content: ""; position: absolute; left: 19px; top: 11px; width: 18px; height: 1px; background: var(--graphit); }
.tag-datum { font: 600 15px/1.5 var(--titel); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.tag-hinweis { margin-top: 6px; font: 400 15px/1.5 var(--titel); color: var(--neben); max-width: 26em; }

/* Folgen */
.folge { position: relative; display: grid; grid-template-columns: var(--spalte) 1fr; padding: 0 20px 68px 0; --ab: 30%; --rest: 16%; }
.folge::before, .folge::after { content: ""; position: absolute; left: var(--achse); width: 1px; background: var(--linie); }
.folge::before { top: 0; bottom: var(--ab); }
.folge::after { top: calc(100% - var(--rest)); bottom: 0; }
.folge.v1 { --ab: 22%; --rest: 9%; }
.folge.v2 { --ab: 41%; --rest: 24%; }
.folge.v3 { --ab: 18%; --rest: 0%; }
.folge.v4 { --ab: 52%; --rest: 0%; }
.folge.letzte { --rest: 0%; }
.folge.letzte::after { display: none; }

.nr { grid-column: 1; grid-row: 1 / span 2; align-self: start; justify-self: center; position: relative; z-index: 1; background: var(--papier); font: 400 42px/1 var(--titel); color: var(--neben); padding: 4px 0 10px; min-width: 30px; text-align: center; font-variant-numeric: lining-nums; }
.dauer { grid-column: 2; font: 400 14px/1.45 var(--titel); color: var(--neben); letter-spacing: 0.01em; padding-top: 6px; }
.dauer span + span::before { content: "· "; }
.inhalt { grid-column: 2; min-width: 0; }
.folge h3 { font: 600 22px/1.2 var(--titel); letter-spacing: -0.008em; margin-top: 4px; max-width: 17em; text-wrap: balance; }
.text { margin-top: 12px; max-width: 33em; }

/* Versatz: nicht alles steht auf derselben Kante */
.folge.v2 .text, .folge.v2 .hoeren, .folge.v2 .notizen, .folge.v2 .fehlt { margin-left: 18px; }
.folge.v4 .text { margin-left: 10px; }

/* Die Bonusfolge steht neben der Achse */
.folge.bonus { margin-top: 26px; padding-left: 34px; grid-template-columns: 40px 1fr; }
.folge.bonus::before, .folge.bonus::after { display: none; }
.folge.bonus .nr { justify-self: start; background: none; min-width: 0; }

.folge.aktiv .nr { color: var(--scherbe); }

/* Abspielen */
.hoeren { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.spiel { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--glas); display: grid; place-items: center; }
.spiel svg { width: 22px; height: 22px; fill: var(--auf-glas); }
.spiel:hover { background: color-mix(in srgb, var(--glas) 86%, var(--graphit)); }
.spiel .i-pause, .spiel.spielt .i-play { display: none; }
.spiel.spielt .i-pause { display: block; }
.fehlt { margin-top: 18px; font: 400 15px/1.4 var(--titel); color: var(--neben); }
.leer { padding: 0 20px 0 var(--spalte); font: 400 15px var(--titel); color: var(--neben); }
.hoeren-text { font: 500 15px/1.3 var(--titel); display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.stand { display: block; width: 132px; height: 2px; background: var(--linie); }
.stand i { display: block; height: 2px; background: var(--scherbe); }

/* Shownotes */
.notizen { margin-top: 22px; max-width: 33em; }
.notizen summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; font: 500 15px/1.3 var(--titel); color: var(--glas); padding: 11px 0; position: relative; }
.notizen summary::-webkit-details-marker { display: none; }
.notizen summary::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--linie); }
.notizen summary::after { content: "+"; font-weight: 400; font-size: 18px; line-height: 1; color: var(--neben); }
.notizen[open] summary::after { content: "–"; }
.notizen .dateien { padding-top: 2px; }
.dateien li + li { border-top: 1px solid color-mix(in srgb, var(--linie) 55%, transparent); }
.dateien a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; text-decoration: none; color: var(--graphit); }
.dateien a:hover .d-name { text-decoration: underline; }
.d-name { font-size: 16px; line-height: 1.4; color: var(--glas); }
.d-art { flex: none; font: 400 13px var(--titel); color: var(--neben); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* Über den Podcast, Rückmeldung */
.abschnitt { padding: 96px 20px 0 20px; }
.abschnitt h2 { font: 600 15px/1.4 var(--titel); letter-spacing: 0.02em; color: var(--neben); }
.ueber-text { margin-top: 22px; max-width: 32em; }
.ueber-text p + p { margin-top: 1em; }
.ueber-text p:nth-child(2) { margin-left: 22px; }
.ueber-text .ueber-kern { font: 500 22px/1.28 var(--titel); letter-spacing: -0.008em; margin: 44px 0 44px 0; max-width: 15em; }
.ueber-text p:nth-child(5) { margin-left: 22px; }

.rueck-inhalt { margin-top: 22px; max-width: 32em; }
.rueck-meldung { margin-top: 18px; font: 500 16px/1.4 var(--titel); }
.formular { margin-top: 26px; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feld { margin-top: 20px; }
.feld label { display: block; font: 500 15px/1.4 var(--titel); margin-bottom: 7px; }
.feld .frei { font-weight: 400; color: var(--neben); margin-left: 6px; }
.feld input, .feld textarea { display: block; width: 100%; font: 400 17px/1.5 var(--lese); color: var(--graphit); background: transparent; border: 1px solid var(--neben); border-radius: 0; padding: 11px 12px; -webkit-appearance: none; appearance: none; }
.feld textarea { resize: vertical; min-height: 9em; }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 2px solid var(--glas); outline-offset: 1px; border-color: var(--glas); }
.feld [aria-invalid="true"] { border-color: var(--scherbe); border-width: 2px; }
.senden { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.knopf { font: 500 16px/1 var(--titel); background: var(--glas); color: var(--auf-glas); padding: 15px 26px; min-height: 48px; }
.knopf:hover { background: color-mix(in srgb, var(--glas) 86%, var(--graphit)); }
.knopf[disabled] { opacity: 0.55; cursor: default; }
.senden-meldung { font: 500 15px/1.4 var(--titel); }

/* Fuss mit Impressum und Datenschutz */
.fuss { margin-top: 112px; padding: 0 20px 28px 20px; font: 400 14px/1.6 var(--titel); color: var(--neben); }
.fuss-zeile { margin-bottom: 14px; }
.recht { border-top: 1px solid var(--linie); }
.recht:last-child { border-bottom: 1px solid var(--linie); }
.recht summary { list-style: none; cursor: pointer; padding: 13px 0; display: flex; gap: 10px; align-items: baseline; font: 500 15px/1.3 var(--titel); color: var(--graphit); }
.recht summary::-webkit-details-marker { display: none; }
.recht summary::after { content: "+"; font-weight: 400; font-size: 18px; line-height: 1; color: var(--neben); }
.recht[open] summary::after { content: "–"; }
.recht-text { font: 400 16px/1.62 var(--lese); color: var(--graphit); max-width: 34em; padding: 4px 0 30px 0; }
.recht-text p + p { margin-top: 0.9em; }
.recht-text h3 { font: 600 15px/1.4 var(--titel); margin: 1.7em 0 0.4em; }
.recht-text .recht-stand { font: 400 14px var(--titel); color: var(--neben); margin-top: 1.6em; }
mark.offen { background: none; color: inherit; border-bottom: 2px solid var(--scherbe); }

/* Player */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--flaeche); padding: 0 max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.p-balken { position: relative; height: 26px; margin: 0 4px; cursor: pointer; touch-action: none; }
.p-balken::before { content: ""; position: absolute; inset: -12px 0 -2px 0; }   /* grössere Fläche für den Daumen */
.p-spur, .p-fort { position: absolute; left: 0; top: 12px; height: 2px; }
.p-spur { right: 0; background: var(--linie); }
.p-fort { background: var(--scherbe); height: 3px; top: 11.5px; }
.p-griff { position: absolute; top: 5px; width: 3px; height: 16px; margin-left: -1.5px; background: var(--scherbe); }
/* Handy: Titel in einer eigenen Zeile, darunter die Bedienung */
.p-reihe { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "titel titel titel titel titel" "spiel zeit zurueck vor tempo"; align-items: center; column-gap: 4px; row-gap: 6px; }
.player .spiel { grid-area: spiel; margin-right: 8px; }
.p-titel { display: contents; }
.p-folge { grid-area: titel; padding: 0 4px; font: 500 14px/1.3 var(--titel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-zeit { grid-area: zeit; color: var(--neben); font: 400 14px/1.3 var(--titel); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
#p-jetzt { color: var(--graphit); font-weight: 500; }
@media (max-width: 359px) { .p-rest { display: none; } }
.p-zurueck { grid-area: zurueck; } .p-vor { grid-area: vor; } .p-tempo { grid-area: tempo; }
.p-taste { min-width: 44px; height: 44px; font: 500 15px var(--titel); font-variant-numeric: tabular-nums; color: var(--graphit); }
.p-taste:hover { color: var(--glas); }
.p-tempo { color: var(--neben); min-width: 50px; }
.p-rest::before { content: " · "; }
.p-balken:focus-visible { outline-offset: 0; }
.p-balken.zieht .p-griff { height: 22px; top: 2px; width: 4px; margin-left: -2px; }

/* Ab Tablet: die Achse rückt nach innen, links davon bleibt es leer */
@media (min-width: 860px) {
  :root { --spalte: 88px; --achse: 43.5px; }
  body { font-size: 18px; }
  html.mit-player body { padding-bottom: 104px; }
  .kopf { flex-direction: row; justify-content: space-between; align-items: flex-start; max-width: 1120px; margin-inline: auto; padding: 34px 40px 0 40px; }
  .marke { font-size: 17px; }
  .marke-thema { font-size: 21px; }
  .wege { gap: 28px; padding-top: 2px; }

  .blatt { max-width: 1120px; margin-inline: auto; padding: 0 40px; }
  .anfang, .tag, .folge { grid-template-columns: 210px var(--spalte) minmax(0, 1fr); padding-right: 0; }
  .vorher { grid-column: 2; }
  .anfang { min-height: 520px; }
  .anfang-text { grid-column: 3; padding: 200px 0 72px 64px; }
  .satz { font-size: 35px; line-height: 1.24; }
  .satz span { display: inline; }
  .satz .z2 { margin-top: 0; }
  .satz .z2::before { content: "\A"; white-space: pre; }
  .satz-weiter { margin-left: 64px; font-size: 19px; }
  .satz-quelle { margin-left: 64px; }

  .tag { padding-bottom: 72px; }
  .tag::before, .folge::before, .folge::after { left: calc(210px + var(--achse)); }
  .tag-strich { grid-column: 2; }
  .tag-strich::before { left: 30px; width: 28px; top: 12px; }
  .tag-text { grid-column: 3; }
  .tag-datum { font-size: 16px; }
  .tag-hinweis { font-size: 16px; }

  .folge { padding-bottom: 104px; }
  .nr { grid-column: 2; grid-row: 1; font-size: 64px; padding: 0 0 14px; }
  .dauer { grid-column: 1; grid-row: 1; text-align: right; padding: 26px 22px 0 0; font-size: 15px; }
  .dauer span { display: block; }
  .dauer span + span::before { content: none; }
  .inhalt { grid-column: 3; grid-row: 1; }
  .folge h3 { font-size: 29px; line-height: 1.15; margin-top: 14px; }
  .text { margin-top: 16px; max-width: 31em; }

  .folge.v2 .inhalt { margin-left: 84px; }
  .folge.v2 .text, .folge.v2 .hoeren, .folge.v2 .notizen, .folge.v2 .fehlt { margin-left: 0; }
  .folge.v3 .text, .folge.v3 .hoeren, .folge.v3 .notizen, .folge.v3 .fehlt { margin-left: 30px; }
  .folge.v4 .inhalt { margin-left: 40px; }
  .folge.v4 .text { margin-left: 0; }

  .folge.bonus { grid-template-columns: 210px var(--spalte) minmax(0, 1fr); padding-left: 0; margin-top: 12px; }
  .folge.bonus .nr { grid-column: 3; justify-self: start; margin-left: 196px; font-size: 64px; }
  .folge.bonus .dauer { grid-column: 3; text-align: left; padding: 0; margin-left: 196px; grid-row: 2; }
  .folge.bonus .inhalt { grid-row: 3; margin-left: 196px; }
  .leer { padding: 0 0 0 calc(210px + var(--spalte)); }

  .abschnitt { display: grid; grid-template-columns: 210px var(--spalte) minmax(0, 1fr); padding: 120px 0 0 0; }
  .abschnitt h2 { grid-column: 1; text-align: right; padding: 5px 22px 0 0; font-size: 16px; }
  .ueber-text, .rueck-inhalt { grid-column: 3; margin-top: 0; }
  .ueber-text p:nth-child(2), .ueber-text p:nth-child(5) { margin-left: 64px; }
  .ueber-text .ueber-kern { font-size: 30px; margin: 64px 0 64px -40px; }
  .rueck-inhalt { margin-left: 30px; }
  .feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .feld-paar .frei { display: block; margin-left: 0; }

  .fuss { max-width: 1120px; margin-inline: auto; margin-top: 150px; padding: 0 40px 36px calc(40px + 210px + var(--spalte)); }

  .player { padding: 0 max(28px, calc((100vw - 1120px) / 2 + 40px)) 14px; }
  .p-balken { margin: 0; }
  .p-reihe { display: flex; gap: 12px; }
  .player .spiel { margin-right: 6px; }
  .p-titel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .p-folge { padding: 0; font-size: 15px; }
}
