/* Traceflap – Website. Leitidee: die Fallblattanzeige (der «Flap» im Namen) als Bühne, Farben der App (Nacht und
   Anzeigen-Gelb), Inhalte als Abfahrtszeilen einer echten Reise. Bewusst nur dunkel, wie eine Anzeigetafel. */
@font-face {
  font-family: "Sora";
  src: url("schrift/Sora-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Farbe */
  --nacht: #05070d;        /* Grund, wie in der App */
  --tafel: #0c1222;        /* Fläche der Anzeigetafel */
  --karte: #121a32;        /* Karten, Abschnitte */
  --klappe: #161b26;       /* ein einzelnes Fallblatt */
  --gelb: #ffd84a;         /* Anzeigen-Gelb, einziger Akzent */
  --hell: #eef0ea;         /* Text */
  --grau: #9da8c3;         /* Nebentext, leicht bläulich */
  --linie: #222b40;
  --live: #5ef2a0;         /* pünktlich, live */
  --spaet: #ff9e5e;        /* Verspätung, Änderung */
  /* Schrift */
  --anzeige: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --tafelschrift: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  /* Masse */
  --breite: 1180px;
  --rund: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nacht);
  color: var(--hell);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gelb); outline-offset: 3px; border-radius: 6px; }

.innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Kopf ---------- */
.kopf {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--nacht) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--linie) 60%, transparent);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--nacht);
}
.kopf .innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 20px; }
.marke-zeichen {
  width: 30px; height: 30px; border-radius: 8px; background: var(--gelb); color: var(--nacht);
  display: grid; place-items: center; font-family: var(--tafelschrift); font-weight: 800; font-size: 17px;
  position: relative; overflow: hidden;
}
.marke-zeichen::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.35); }
.kopf nav { display: flex; gap: 22px; font-size: 14px; color: var(--grau); }
.kopf nav a { text-decoration: none; }
.kopf nav a:hover { color: var(--hell); }
@media (max-width: 720px) { .kopf nav { display: none; } }

/* ---------- Bühne mit Fallblattanzeige ---------- */
.buehne { padding-block: clamp(36px, 7vw, 84px) 40px; position: relative; overflow: hidden; }
.buehne::before {
  /* Hallenlicht: weicher Schein von oben, wie über einer Anzeigetafel */
  content: ""; position: absolute; inset: -40% -10% auto; height: 80%;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--gelb) 13%, transparent), transparent 60%);
  pointer-events: none;
}
.augenbraue {
  font-family: var(--tafelschrift); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gelb);
  display: flex; align-items: center; gap: 10px;
}
.augenbraue::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 12px var(--live); }

.fallblatt {
  margin-block: 22px 26px;
  display: flex; gap: clamp(2px, .5vw, 7px);
  font-family: var(--tafelschrift); font-weight: 800;
  /* 14 Blätter passen auch am Handy in eine Zeile */
  font-size: clamp(20px, 6vw, 88px); line-height: 1;
}
.blatt {
  position: relative; width: .78em; height: 1.18em; border-radius: .09em;
  background: linear-gradient(var(--klappe) 0 49.4%, #0a0d14 49.4% 50.6%, #1a2030 50.6% 100%);
  color: var(--gelb); display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 18px rgba(0,0,0,.45);
}
.blatt span { display: block; transform-origin: 50% 50%; }
.blatt.klappt span { animation: klappen .07s linear; }
@keyframes klappen { from { transform: scaleY(.15); opacity: .4; } to { transform: scaleY(1); opacity: 1; } }

.buehne h1 {
  /* Für Screenreader und Suchmaschinen; sichtbar ist die Tafel */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.unterzeile { max-width: 34em; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--hell); text-wrap: pretty; margin: 0; }
.unterzeile em { font-style: normal; color: var(--gelb); }
.aufruf { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.knopf {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px;
  background: var(--gelb); color: var(--nacht); font-weight: 700; text-decoration: none; font-size: 16px;
}
.knopf.leise { background: transparent; color: var(--hell); border: 1px solid var(--linie); }
.knopf.leise:hover { border-color: var(--grau); }
.knopf svg { width: 20px; height: 20px; }

/* ---------- Abfahrtstafel ---------- */
.tafel {
  margin-top: 48px; background: var(--tafel); border: 1px solid var(--linie); border-radius: var(--rund);
  overflow-x: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.tafel-kopf, .tafel-zeile {
  display: grid; grid-template-columns: 74px minmax(220px, 1.6fr) 110px 120px 130px; gap: 16px; align-items: center;
  padding: 14px 22px; min-width: 700px;
}
.tafel-kopf { font-family: var(--tafelschrift); font-size: 11px; letter-spacing: .14em; color: var(--grau); text-transform: uppercase; border-bottom: 1px solid var(--linie); }
.tafel-zeile { font-family: var(--tafelschrift); font-size: 16px; border-bottom: 1px solid color-mix(in srgb, var(--linie) 70%, transparent); }
.tafel-zeile:last-child { border-bottom: 0; }
.tafel-zeile .zeit { color: var(--gelb); font-weight: 700; font-variant-numeric: tabular-nums; }
.tafel-zeile .ziel { color: var(--hell); }
.tafel-zeile .ziel small { display: block; color: var(--grau); font-size: 12px; margin-top: 2px; }
.mittel { display: inline-flex; align-items: center; gap: 8px; color: var(--hell); }
.mittel i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.status { font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.status.ok { color: var(--live); }
.status.spaet { color: var(--spaet); }
.tafel-fuss { font-size: 12px; color: var(--grau); padding: 10px 22px 16px; font-family: var(--tafelschrift); }

/* ---------- Abschnitte ---------- */
section { padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: 64px; }
.titel { font-family: var(--anzeige); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; font-size: clamp(34px, 5vw, 62px); margin: 0 0 18px; text-wrap: balance; max-width: 16em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--grau); max-width: 36em; margin: 0; text-wrap: pretty; }
.marker { font-family: var(--tafelschrift); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gelb); margin-bottom: 14px; display: block; }

/* Reiseverlauf: fünf Momente, jeweils Telefon und Text */
.verlauf { display: grid; gap: clamp(64px, 9vw, 120px); margin-top: 60px; }
.moment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.moment:nth-child(even) .telefon-platz { order: 2; }
.moment .zeitstempel {
  font-family: var(--tafelschrift); font-weight: 800; font-size: clamp(40px, 6vw, 72px); color: var(--gelb); line-height: 1;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.moment .zeitstempel small { display: block; font-size: 13px; letter-spacing: .16em; color: var(--grau); font-weight: 600; margin-top: 10px; text-transform: uppercase; }
.moment h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.12; margin: 22px 0 12px; text-wrap: balance; }
.moment p { color: var(--grau); margin: 0 0 18px; max-width: 32em; }
.punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.punkte li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.punkte li::before { content: ""; width: 10px; height: 10px; margin-top: 9px; border-radius: 3px; background: var(--gelb); }
.punkte li b { color: var(--hell); font-weight: 650; }

.telefon-platz { display: grid; place-items: center; position: relative; }
.telefon {
  width: min(330px, 78vw); aspect-ratio: 1206 / 2622; max-width: 100%;
  border-radius: 46px; padding: 9px; background: linear-gradient(145deg, #2a3146, #0d111b);
  box-shadow: 0 50px 70px -30px rgba(0,0,0,.85), 0 0 60px -10px color-mix(in srgb, var(--gelb) 10%, transparent), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(var(--neigung, -2deg));
}
.telefon img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.telefon-platz .zettel {
  position: absolute; right: 2%; bottom: 12%; background: var(--gelb); color: var(--nacht);
  font-family: var(--tafelschrift); font-weight: 800; font-size: 14px; padding: 10px 14px; border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0,0,0,.5); transform: rotate(3deg); max-width: 15em; line-height: 1.35;
}
.telefon-platz .zettel.links { right: auto; left: 2%; transform: rotate(-3deg); }

@media (max-width: 860px) {
  .moment { grid-template-columns: 1fr; }
  .moment:nth-child(even) .telefon-platz { order: 0; }
  .telefon-platz .zettel { right: 0; bottom: 6%; }
  .telefon-platz .zettel.links { left: 0; }
}

/* ---------- Wo es fährt ---------- */
.netz { background: linear-gradient(var(--nacht), var(--tafel) 30%, var(--tafel) 70%, var(--nacht)); }
.netz-gitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.netz-feld { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); padding: 24px; min-width: 0; }
.netz-feld h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.netz-feld p { margin: 0 0 16px; color: var(--grau); font-size: 15px; }
.orte { display: flex; flex-wrap: wrap; gap: 7px; }
.orte span {
  font-family: var(--tafelschrift); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 6px; background: var(--klappe); color: var(--gelb);
  box-shadow: inset 0 -1px 0 #0a0d14, inset 0 1px 0 rgba(255,255,255,.05);
}
.netz-hinweis { margin-top: 18px; font-size: 13px; color: var(--grau); }
@media (max-width: 900px) { .netz-gitter { grid-template-columns: 1fr; } }

/* ---------- Privat ---------- */
.privat-gitter { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.versprechen { display: grid; gap: 14px; }
.versprechen > div { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--linie); }
.versprechen > div:first-child { border-top: 0; padding-top: 0; }
.versprechen svg { width: 30px; height: 30px; color: var(--gelb); }
.versprechen h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -0.02em; }
.versprechen p { margin: 0; color: var(--grau); font-size: 15.5px; }
@media (max-width: 860px) { .privat-gitter { grid-template-columns: 1fr; } }

/* ---------- Preis ---------- */
.ticket {
  display: grid; grid-template-columns: 1fr auto; gap: 0; background: var(--gelb); color: var(--nacht); border-radius: var(--rund);
  overflow: hidden; margin-top: 40px; position: relative;
}
.ticket::before, .ticket::after {
  /* Ausstanzungen wie bei einem Billett */
  content: ""; position: absolute; right: 236px; width: 28px; height: 28px; border-radius: 50%; background: var(--nacht);
}
.ticket::before { top: -14px; }
.ticket::after { bottom: -14px; }
.ticket-haupt { padding: clamp(26px, 4vw, 44px); }
.ticket-haupt h3 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 12px; }
.ticket-haupt p { margin: 0; max-width: 32em; font-size: 16.5px; }
.ticket-abriss {
  width: 250px; border-left: 2px dashed rgba(5,7,13,.35); padding: 28px 26px; display: grid; align-content: center; gap: 6px;
  font-family: var(--tafelschrift);
}
.ticket-abriss small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.ticket-abriss b { font-size: 22px; }
/* Stempel auf dem Abriss, leicht schräg wie von Hand gestempelt */
.stempel {
  display: inline-block; margin-top: 14px; padding: 6px 10px; border: 2px solid currentColor; border-radius: 6px;
  font-family: var(--tafelschrift); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  transform: rotate(-4deg); opacity: .85; justify-self: start;
}
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket-abriss { width: auto; border-left: 0; border-top: 2px dashed rgba(5,7,13,.35); }
}

/* ---------- Fuss ---------- */
.fuss { border-top: 1px solid var(--linie); padding-block: 40px 56px; color: var(--grau); font-size: 14px; }
.fuss .innen { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 18px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--hell); }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.textseite { padding-block: clamp(40px, 7vw, 90px); }
.textseite .innen { max-width: 760px; }
.textseite h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 10px; }
.textseite h2, .textseite h3 { font-size: 21px; letter-spacing: -0.02em; margin: 38px 0 10px; }
.textseite p, .textseite li { color: #c9cedb; }
.textseite ul { padding-left: 20px; }
.textseite .stand { font-family: var(--tafelschrift); font-size: 13px; color: var(--gelb); }

/* Bewegung nur, wer sie will */

/* Von Tür zu Tür: hohe Strecke, darin eine stehende Bühne; app.js zeigt je Teil ein Video (--sicht) */
.tuer { padding: 0; height: 520vh; position: relative; }
.tuer-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--nacht); }
.tuer-ebenen, .tuer-schleier { position: absolute; inset: 0; }
.ebene {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: var(--sicht, 0);
}
.ebene.nur-still { display: none; }
.tuer-schleier { background: linear-gradient(to top, rgba(5,7,13,.92) 0%, rgba(5,7,13,.35) 38%, rgba(5,7,13,0) 60%),
                 linear-gradient(to bottom, rgba(5,7,13,.55), rgba(5,7,13,0) 22%); }
.tuer-text { position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 72px); }
.tuer-schritte { list-style: none; margin: 0; padding: 0; display: grid; }
.tuer-schritte li {
  grid-area: 1 / 1; font-family: var(--tafelschrift); font-size: clamp(14px, 1.6vw, 18px); color: var(--hell);
  opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s;
}
.tuer-schritte li.an { opacity: 1; transform: none; }
.tuer-schritte b { color: var(--gelb); margin-right: .7em; font-weight: 700; }
.tuer-schritte span {
  display: block; margin-top: 10px; font-family: var(--anzeige); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(26px, 4.4vw, 52px); line-height: 1.08; max-width: 18em; text-wrap: balance;
}
.tuer-weg { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255,255,255,.08); }
.tuer-weg i { display: block; height: 100%; width: calc(var(--weg, 0) * 100%); background: var(--gelb); }

@media (prefers-reduced-motion: reduce) {
  .tuer { height: auto; }
  .tuer-buehne { position: relative; height: auto; display: grid; gap: 2px; }
  .tuer-ebenen { position: relative; display: grid; gap: 2px; }
  .ebene, .ebene.nur-still { position: relative; display: block; --sicht: 1; aspect-ratio: 16 / 9; height: auto; }
  .tuer-schleier, .tuer-weg { display: none; }
  .tuer-text { position: relative; padding-block: 32px; }
  .tuer-schritte { gap: 22px; }
  .tuer-schritte li { grid-area: auto; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .blatt.klappt span { animation: none; }
  .telefon { transform: none; }
}
