/* Weihnachten auf Deutsch: festive red/green palette over the shader gradient (fx.js). System fonts only (CSP). */
:root {
  --primary: #9d1f2b; --primary-ink: #fff; --accent: #c98f12; --green: #2f7a4b; --primary-soft: rgba(157, 31, 43, .11);
  --text: #2a1d17; --muted: #6b5a50; --line: rgba(60, 35, 20, .16); --surface: rgba(255, 251, 246, .93); --bg: #f6ece2;
  --ok: #2f7a4b; --bad: #b3262e; --radius: 18px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root { --text: #f7ece4; --muted: #cdb9ab; --line: rgba(255, 255, 255, .16); --surface: rgba(36, 24, 26, .93); --bg: #1a1213;
    --primary-soft: rgba(232, 163, 61, .16); --ok: #7fd19d; --bad: #ff8a8a; --green: #7fd19d; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font: 17px/1.55 var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; }
canvas.fx-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; opacity: .5; }
canvas.fx-bg.hidden { display: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.topbar { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--surface);
  backdrop-filter: blur(12px); }
.top-in { max-width: 860px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 12px; align-items: center;
  justify-content: space-between; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 700; font-family: var(--serif);
  font-size: 1.08rem; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langpick select { font: inherit; font-size: .95rem; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); min-height: 40px; max-width: 46vw; }
main { max-width: 860px; margin: 0 auto; padding: 18px 16px 40px; outline: none; }
footer.site { max-width: 860px; margin: 0 auto; padding: 0 16px 28px; font-size: .85rem; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  margin-bottom: 16px; }
.doors { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.door { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; aspect-ratio: 1; border-radius: 16px; border: 2px solid var(--line); background: var(--surface);
  font-family: var(--serif); }
.door b { font-size: 1.9rem; color: var(--primary); line-height: 1; }
.door small { font-family: var(--font); font-size: .72rem; color: var(--muted); text-align: center; padding: 0 4px; line-height: 1.2; }
.door.today { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 143, 18, .35); }
.door.done::after { content: "★"; position: absolute; top: 4px; right: 8px; color: var(--accent); font-size: 1.1rem; }
.bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.num { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: #fff; display: flex;
  align-items: center; justify-content: center; font: 700 1.6rem var(--serif); border: 3px solid #f2c94c; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  background: var(--primary-soft); color: var(--primary); letter-spacing: .04em; }
@media (prefers-color-scheme: dark) { .badge { color: var(--accent); } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.tabs button { font: inherit; font-size: .95rem; border: 1px solid var(--line); background: var(--surface); color: inherit;
  border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 42px; }
.tabs button[aria-selected="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer;
  background: var(--primary); color: var(--primary-ink); min-height: 44px; }
.btn.secondary { background: transparent; color: inherit; border: 1px solid var(--line); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.play { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--green);
  color: #fff; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; }
.play.on { background: var(--accent); }
.line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .who { font-weight: 700; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.line .de { font-size: 1.08rem; }
.tr { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.tr[dir="rtl"] { text-align: right; font-size: 1.02rem; }
.words { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.word { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.satz { font-family: var(--serif); font-size: 1.25rem; }
.flash { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 10px; cursor: pointer; user-select: none; }
.flash .big { font-family: var(--serif); font-size: 1.6rem; }
.opts { display: grid; gap: 8px; margin: 12px 0; }
.opt { font: inherit; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer;
  background: transparent; color: inherit; min-height: 50px; }
.opt.ok { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok) inset; }
.opt.no { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad) inset; }
.opt[dir="rtl"] { text-align: right; }
.toggle { display: flex; gap: 8px; align-items: center; font-size: .95rem; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--primary); }
.nav2 { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.label { font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin: 2px 0 8px; }
@media (prefers-color-scheme: dark) { .label { color: var(--accent); } }
