/* Gemeinsamer Stil der Inhaltsseiten (Fragen-Seiten). Die Seiten werden von tools/build-pages.js erzeugt. */

/* Layout: eine Lesespalte, neueste Version oben, jede Version als eigener Abschnitt. */
:root { color-scheme: dark; --bg: #120b1f; --surface: #1b1230; --line: #3a2a5c; --fg: #f1eafb; --muted: #b3a3d1; --accent: #a98bdc; --accent-soft: #2a1c47; --gold: #d9b45a; }
:root[data-skin="tag"] { color-scheme: light; --bg: #f6f2fb; --surface: #ffffff; --line: #d9cdee; --fg: #23153d; --muted: #5d4d7d; --accent: #6b3fc4; --accent-soft: #ece4fa; --gold: #7d5a0b; }
:root[data-skin="aurum"] { --bg: #14100a; --surface: #1e1810; --line: #4a3a1c; --fg: #f6edd8; --muted: #c2b08a; --accent: #e0b84a; --accent-soft: #33280f; --gold: #f0c75e; }
:root[data-skin="nebula"] { --bg: #070b1a; --surface: #0f1630; --line: #26346b; --fg: #eaf2ff; --muted: #9fb0d8; --accent: #6fb6ff; --accent-soft: #16224a; --gold: #ffd765; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: 'Figtree', 'Segoe UI', system-ui, sans-serif; font-size: 16px; line-height: 1.55; padding-inline: 20px; padding-block: 28px 48px; }
.wrap { max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; gap: 22px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 22px; color: var(--fg); text-decoration: none; }
.logo span { color: var(--gold); }
a { color: var(--accent); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--accent); color: var(--bg); font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 rgba(0,0,0,.25); transition: transform .08s ease, box-shadow .08s ease; }
.back:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.back:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(30px, 6vw, 44px); line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-family: 'Fraunces', Georgia, serif; font-size: 24px; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
h2 small { font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 600; color: var(--muted); }
h3 { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin: 14px 0 4px; }
p { margin: 0; color: var(--muted); max-width: 65ch; }
.ver { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.ver.now { border-color: var(--accent); }
.tag { font-family: 'Figtree', sans-serif; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
body { padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
section { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
section p, section li { color: var(--muted); max-width: 70ch; }
section h3 { font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--fg); margin: 8px 0 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; } th, td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); } th { color: var(--fg); }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 12px; background: var(--gold); color: #1a1126; font-weight: 800; text-decoration: none; align-self: flex-start; }

.q { font-family: 'Fraunces', Georgia, serif; font-size: clamp(28px, 5.5vw, 42px); line-height: 1.15; margin: 0; text-wrap: balance; }
.crumb { font-size: 14px; color: var(--muted); } .crumb a { color: var(--muted); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 800; color: var(--gold); font-size: 18px; min-height: 28px; }
details[open] summary { margin-bottom: 12px; }
.ans { font-family: 'Fraunces', Georgia, serif; font-size: clamp(34px, 8vw, 56px); color: var(--gold); line-height: 1.1; }
.aha { font-style: italic; color: var(--fg); border-left: 2px solid var(--gold); padding-left: 14px; }
ol.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.src { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
ul.list { list-style: none; padding: 0; gap: 0; } ul.list li { border-bottom: 1px solid var(--line); } ul.list a { display: block; padding: 12px 0; color: var(--fg); text-decoration: none; } ul.list a:hover { color: var(--gold); }
.more { display: flex; flex-direction: column; gap: 8px; }
