/* ── Die Farben und die Haltung der ruhigen Startseite „Zeitstrahl" ────
 *
 * Nutzer: „eine seriöse und modern wirkende Landingpage für SupaDupa
 * Money […], die vom Look & Feel der ruhigen Startseite Zeitstrahl nahe
 * kommt."
 *
 * Die Werte sind nicht nachempfunden, sondern abgeschrieben: Sie stehen
 * in src/theme/lageFarbwelten.js (`lage_zeitstrahl`) und in
 * src/utils/tagesZeit.js (`HIMMEL_SCHRIFT`). Wer sie dort ändert, muss
 * sie hier nachziehen — besser wäre eine gemeinsame Quelle, aber die
 * Seite ist bewusst ohne Bauschritt: ein Ordner, fünf Dateien, fertig.
 *
 * Woran man diese Startseite erkennt, und was deshalb auch hier gilt:
 *
 *   · EINE Farbe auf dunklem Grund. Orange ist die Hausfarbe; Grün und
 *     Blau treten nur dort auf, wo wirklich Geld unterschieden wird.
 *   · Getrennt wird mit einer HAARLINIE, nicht mit einer Kante. Keine
 *     Kästen, keine Schatten, keine Umrandungen um Inhalte.
 *   · Kleine Überschriften in Versalien mit viel Sperrung, darunter viel
 *     Luft. Die großen Zahlen sind die hellste Stelle der Seite.
 *   · Nichts blinkt, nichts fährt herein. Ruhe ist das Produkt.
 */

@font-face {
  font-family: "Questrial";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("questrial-latin-400.woff2") format("woff2");
}

:root {
  --grund: #16181C;
  --verlauf: linear-gradient(180deg, #1B1D21 0%, #16181C 70%, #121317 100%);
  --haus: #FFA947;
  --ein: #B9CC7A;
  --aus: #8FB8CC;
  --gold: #FFCE6B;

  --txt: #FFFFFF;
  --satz: rgba(255, 255, 255, 0.74);
  --txt2: rgba(255, 255, 255, 0.80);
  --leise: rgba(255, 255, 255, 0.62);
  --linie: rgba(255, 255, 255, 0.16);
  --band: rgba(255, 255, 255, 0.07);

  --breit: 980px;
  --schmal: 720px;
  --rand: 24px;

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--grund);
  background-image: var(--verlauf);
  background-attachment: fixed;
  color: var(--satz);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* Die Questrial hat nur den Schnitt 400. Der Browser faelscht Fett
   daraus, und bei grossen Ziffern ist das als Unschaerfe sichtbar —
   dieselbe Beobachtung wie in der App (theme/css/base.css). */
.q {
  font-family: "Questrial", "Century Gothic", sans-serif;
  font-weight: 400;
  font-synthesis: none;
}

a { color: var(--haus); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Kopf ───────────────────────────────────────────────────────────── */

.kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(22, 24, 28, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  max-width: var(--breit); margin: 0 auto;
  padding: 12px var(--rand);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.marke { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.marke img { width: 28px; height: 28px; border-radius: 8px; display: block; }
.marke b { color: var(--txt); font-weight: 400; font-size: 17px; letter-spacing: .01em; }
.marke:hover { text-decoration: none; }

nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav a {
  color: var(--leise); font-size: 14.5px;
  padding: 6px 10px; border-radius: 9px;
}
nav a:hover { color: var(--txt); text-decoration: none; background: var(--band); }
nav a[aria-current="page"] { color: var(--haus); }

/* ── Flaechen ───────────────────────────────────────────────────────── */

main { display: block; }
section { border-bottom: 1px solid var(--linie); }
section:last-of-type { border-bottom: none; }
.innen { max-width: var(--breit); margin: 0 auto; padding: 72px var(--rand); }
.innen.schmal { max-width: var(--schmal); }
@media (max-width: 640px) { .innen { padding: 48px var(--rand); } }

/* Die kleine Versalzeile ueber einem Abschnitt — auf der Startseite
   steht dort „DER MONAT VON HEUTE AN" oder „TIEFSTER STAND". */
.marke-zeile {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--leise); margin-bottom: 18px;
}

h1 {
  font-size: clamp(34px, 7.4vw, 60px); line-height: 1.1;
  color: var(--txt); font-weight: 400; letter-spacing: -.012em;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(24px, 4.2vw, 34px); line-height: 1.22;
  color: var(--txt); font-weight: 400; letter-spacing: -.008em;
  margin-bottom: 16px;
}
h3 {
  font-size: 19px; line-height: 1.35; color: var(--txt);
  font-weight: 400; margin-bottom: 6px;
}
p { margin-bottom: 16px; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
.gross { font-size: clamp(18px, 2.6vw, 21px); line-height: 1.58; color: var(--txt2); }
.leise { color: var(--leise); font-size: 14.5px; }

strong, b { font-weight: 400; color: var(--txt); }

/* ── Zeilen mit Haarlinie: die Bauform der Startseite ───────────────── */

.zeilen { border-top: 1px solid var(--linie); }
.zeile {
  border-bottom: 1px solid var(--linie);
  padding: 22px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px;
  align-items: baseline;
}
.zeile .wert {
  font-size: 20px; color: var(--haus); text-align: right; white-space: nowrap;
}
.zeile .wert.ein { color: var(--ein); }
.zeile .wert.aus { color: var(--aus); }
/* Gold ist in der App die Farbe fuer „jetzt dran" — hier steht sie an den
   Platzhaltern, die noch ausgefuellt werden muessen. */
.zeile .wert.gold { color: var(--gold); font-size: 17px; white-space: normal; }
.zeile p { grid-column: 1 / -1; margin: 6px 0 0; color: var(--leise); font-size: 15px; }

/* ── Raster fuer Karten ohne Kaesten ────────────────────────────────── */

.raster {
  display: grid; gap: 34px 40px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.feld h3 { margin-bottom: 8px; }
.feld p { font-size: 15.5px; color: var(--leise); }
.feld .nr {
  display: block; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--haus); margin-bottom: 10px;
}

/* ── Der grosse Satz ────────────────────────────────────────────────── */

.satz {
  font-size: clamp(22px, 3.6vw, 31px); line-height: 1.38;
  color: var(--txt); max-width: 20ch;
}
.zahl {
  font-size: clamp(40px, 9vw, 72px); line-height: 1; color: var(--txt);
  letter-spacing: -.01em;
}

/* ── Bilder der App ─────────────────────────────────────────────────── */

.schirm { display: block; width: 100%; height: auto; border-radius: 22px; }
.schirm-halter {
  /* Kein Rahmen, kein Schatten: Das Bild IST dunkel und steht auf
     dunklem Grund. Eine Haarlinie genuegt, damit die Kante nicht
     ausfranst. */
  border: 1px solid var(--linie); border-radius: 23px; overflow: hidden;
  background: #121317; max-width: 268px;
}
/* Mittig, nicht oben: Ein Telefonbild ist mehr als doppelt so hoch wie
   breit. Oben ausgerichtet stuende neben dem Text eine halbe Bildhoehe
   Leere — das Bild wuerde dann wie ein Rest aussehen und nicht wie ein
   Beleg. */
.bildpaar {
  display: grid; gap: 44px; align-items: center;
  grid-template-columns: minmax(0, 268px) minmax(0, 1fr);
}
.bildpaar.gedreht { grid-template-columns: minmax(0, 1fr) minmax(0, 268px); }
.bildpaar.gedreht .schirm-halter { order: 2; }
@media (max-width: 760px) {
  .bildpaar, .bildpaar.gedreht { grid-template-columns: 1fr; gap: 26px; }
  .bildpaar.gedreht .schirm-halter { order: 0; }
  .schirm-halter { max-width: 300px; margin: 0 auto; }
}
figcaption { font-size: 13.5px; color: var(--leise); margin-top: 10px; }

/* ── Knoepfe ────────────────────────────────────────────────────────── */

.knopfzeile { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.knopf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  font-size: 15.5px; color: var(--grund); background: var(--haus);
}
.knopf:hover { text-decoration: none; filter: brightness(1.07); }
.knopf.still {
  background: transparent; color: var(--txt2);
  box-shadow: inset 0 0 0 1px var(--linie);
}
.knopf.still:hover { color: var(--txt); background: var(--band); }

/* ── Hinweiskasten: die einzige Flaeche, die sich abhebt ────────────── */

.hinweis {
  border-left: 2px solid var(--haus);
  padding: 4px 0 4px 18px; margin: 28px 0;
  color: var(--leise); font-size: 15px;
}
.hinweis strong { color: var(--txt2); }
.hinweis.offen { border-left-color: var(--gold); }

/* ── Fuss ───────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--linie); }
.fuss {
  max-width: var(--breit); margin: 0 auto; padding: 40px var(--rand) 56px;
  display: flex; gap: 10px 28px; flex-wrap: wrap;
  align-items: baseline; font-size: 14.5px; color: var(--leise);
}
.fuss nav { margin-left: auto; }
.fuss nav a { padding: 2px 0; }
.fuss nav a:hover { background: none; }

/* Sprungmarke fuer die Tastatur — unsichtbar, bis sie gebraucht wird. */
.sprung {
  position: absolute; left: -9999px;
  background: var(--haus); color: var(--grund);
  padding: 10px 16px; border-radius: 10px;
}
.sprung:focus { left: 12px; top: 12px; z-index: 50; }
