/* Grundfarben: neutrales Schwarz/Weiß wie die App-Icons. Jede Marke bringt ihre eigene Farbe mit. */
:root {
  --bg: #0c0c0d;
  --surface: #151517;
  --line: #26262a;
  --text: #f4f4f5;
  --soft: #a1a1aa;
  --muted: #71717a;

  /* Wort des Tages: Schwarz mit Türkis (wie das W-Logo) */
  --wort-bg: #000000;
  --wort-line: #232326;
  --wort-text: #fafafa;
  --wort-soft: #a3a3a3;
  --wort-accent: #22d3d8;

  /* Zitat des Tages: helle Karte mit Weinrot (wie die Heute-Karte der App) */
  --zitat-bg: #faf6f1;
  --zitat-line: #e4dad0;
  --zitat-text: #1e1814;
  --zitat-soft: #6b5f55;
  --zitat-muted: #9f9388;
  --zitat-accent: #ae3049;
  --zitat-mark: #e39aa8;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f4f5;
    --surface: #ffffff;
    --line: #e4e4e7;
    --text: #18181b;
    --soft: #52525b;
    --muted: #71717a;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Kopf */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px/1 var(--serif); }
.brand .icons { display: flex; }
.brand .icons img { width: 30px; height: 30px; border-radius: 8px; }
.brand .icons img + img { margin-left: -8px; box-shadow: 0 0 0 2px var(--bg); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--soft); }
.nav a:hover, .nav a[aria-current] { color: var(--text); }

.kicker { font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.hero { padding-top: 48px; padding-bottom: 24px; }
.hero h1 { font: 400 clamp(30px, 5vw, 46px)/1.15 var(--serif); margin: 12px 0 0; letter-spacing: -.01em; }
.note { color: var(--muted); font-size: 14.5px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 64px; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }

.card { border-radius: 22px; padding: 30px 30px 28px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid; }
.card-head .app { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.card-head .app img { width: 26px; height: 26px; border-radius: 7px; }
.card-head time { font-size: 14px; }
.skeleton { padding: 28px 0; opacity: .7; }

/* ---------- Wort-Karte */
.wort-card { background: var(--wort-bg); color: var(--wort-text); border: 1px solid var(--wort-line); }
.wort-card .card-head { border-color: var(--wort-line); }
.wort-card .kicker, .wort-card time { color: var(--wort-soft); }
.word { font: 600 clamp(36px, 5.5vw, 52px)/1.1 var(--serif); margin: 24px 0 0; overflow-wrap: anywhere; color: var(--wort-text); }
.word::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 2px; background: var(--wort-accent); margin: 16px 0 14px; }
.word-meta { color: var(--wort-soft); font-size: 15px; }
.word-meta i { font-family: var(--serif); }
.definition { font-size: 18px; margin: 14px 0 0; }
.example { font: italic 17px/1.55 var(--serif); color: var(--wort-soft); margin: 14px 0 0; padding-left: 14px; border-left: 3px solid var(--wort-accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { border: 1px solid var(--wort-accent); color: var(--wort-accent); border-radius: 999px; padding: 3px 12px; font-size: 14px; }

/* ---------- Zitat-Karte */
.zitat-card { background: var(--zitat-bg); color: var(--zitat-text); border: 1px solid var(--zitat-line); }
.zitat-card .card-head { border-color: var(--zitat-line); }
.zitat-card .kicker, .zitat-card time { color: var(--zitat-soft); }
.qmark { font: 700 64px/1 var(--serif); color: var(--zitat-mark); margin: 18px 0 -18px; height: 46px; }
.quote { font: 400 clamp(23px, 3vw, 29px)/1.38 var(--serif); margin: 0; color: var(--zitat-text); }
.author { color: var(--zitat-accent); font-size: 17px; margin-top: 16px; }
.source { color: var(--zitat-muted); font-style: italic; font-size: 14.5px; }
.explain { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--zitat-line); font-size: 16px; color: var(--zitat-soft); }
.explain .kicker { display: block; margin-bottom: 8px; }

/* ---------- Apps-Seite */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 64px; }
@media (max-width: 820px) { .apps { grid-template-columns: 1fr; } }
.app-card { display: flex; flex-direction: column; gap: 14px; }
.app-card header { display: flex; gap: 14px; align-items: center; }
.app-card header img { width: 64px; height: 64px; border-radius: 16px; }
.app-card h2 { font: 600 24px/1.2 var(--serif); margin: 0; }
.app-card p { margin: 0; }
.app-card ul { margin: 0; padding-left: 20px; }
.app-card ul li { margin: 4px 0; }
.wort-card.app-card p, .wort-card.app-card ul, .wort-card .tagline { color: var(--wort-soft); }
.zitat-card.app-card p, .zitat-card.app-card ul, .zitat-card .tagline { color: var(--zitat-soft); }
.tagline { font-size: 14.5px; }
.store {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  margin-top: 8px; padding: 12px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px;
}
.store svg { width: 16px; height: 16px; }
.store:hover { filter: brightness(1.08); }
.wort-card .store { background: var(--wort-accent); color: #000; }
.zitat-card .store { background: var(--zitat-accent); color: #fff; }

/* ---------- Archiv */
.tabs { display: flex; gap: 8px; margin: 26px 0 8px; }
.tabs a { text-decoration: none; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.tabs a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.list { display: grid; gap: 14px; padding: 18px 0 64px; }
.entry { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 20px 24px; }
@media (max-width: 560px) { .entry { grid-template-columns: 1fr; gap: 6px; } }
.entry time { font-size: 14px; padding-top: 6px; }
.entry .word { font-size: 28px; margin: 0; }
.entry .word::after { width: 40px; height: 3px; margin: 8px 0 6px; }
.entry .quote { font-size: 21px; }
.entry .definition { font-size: 16px; margin-top: 6px; }

/* ---------- Rechtliches */
.legal { max-width: 720px; padding: 40px 0 72px; }
.legal h1 { font: 400 40px/1.2 var(--serif); margin: 0 0 24px; }
.legal h2 { font: 600 19px/1.3 var(--sans); margin: 30px 0 8px; }
.legal p, .legal li { color: var(--soft); }

/* Fuß */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 560px) {
  .nav { gap: 14px; font-size: 14px; }
  .brand { font-size: 15px; white-space: nowrap; gap: 8px; }
  .nav { gap: 12px; }
  .brand .icons img { width: 26px; height: 26px; }
  .card { padding: 24px 20px 22px; border-radius: 18px; }
  .hero { padding-top: 32px; }
}

.app-legal { font-size: 14px; }
.wort-card .app-legal a { color: var(--wort-soft); }
.zitat-card .app-legal a { color: var(--zitat-soft); }
