/* easy-decision.com – Decido · Heads or Hearts */

:root {
    --bg: #f6f1e8;
    --surface: #fffdf8;
    --soft: #efe7da;
    --ink: #18223a;
    --muted: #5b6478;
    --line: #e3d8c6;
    --gold: #b8893a;
    --gold-ink: #8a6322;
    --primary: #1f2d4f;
    --primary-ink: #fffdf8;
    --focus: #c9973f;
    --relief: #2f7d5b;
    --shadow: 0 10px 30px rgba(24, 34, 58, .10);
    --radius: 18px;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1626;
        --surface: #162036;
        --soft: #131c2f;
        --ink: #f1ebe0;
        --muted: #a9b0c0;
        --line: #2a3550;
        --gold: #d9ae5f;
        --gold-ink: #e9c57f;
        --primary: #e9c57f;
        --primary-ink: #141b2c;
        --relief: #7bc7a2;
        --shadow: 0 10px 30px rgba(0, 0, 0, .35);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 18px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: .18em; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3rem); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 720px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 5;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.logo-text span { color: var(--gold); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { text-decoration: none; padding: 8px 10px; border-radius: 999px; font-size: .95rem; color: var(--muted); white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); background: var(--soft); }
.lang-switch { position: relative; }
.lang-switch summary {
    list-style: none; cursor: pointer; font-size: .85rem; font-weight: 600; letter-spacing: .05em;
    border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--muted);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch ul {
    position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 150px;
}
.lang-switch a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.lang-switch a:hover { background: var(--soft); }
.lang-switch a[aria-current] { font-weight: 600; }

@media (max-width: 559px) {
    .main-nav { order: 3; width: 100%; margin: 0 -10px 6px; overflow-x: auto; }
    .lang-switch { margin-left: auto; }
}

/* Buttons & Formular */
.btn {
    appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font: 600 1rem/1.2 var(--sans); padding: 14px 20px; border-radius: 999px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
    transition: transform .12s ease, background .2s ease, border-color .2s ease;
    min-height: 48px;
}
.btn:hover { border-color: var(--gold); color: inherit; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn-primary:hover { color: var(--primary-ink); filter: brightness(1.08); border-color: var(--primary); }
.btn-ghost { background: transparent; }
.btn-big { width: 100%; font-size: 1.1rem; padding: 18px 24px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; flex: 1; min-width: 0; }
.field span { font-size: .9rem; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input {
    font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
    border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.field-row { display: flex; gap: 12px; }

/* Decido */
.decido { padding: 28px 0 36px; text-align: center; }
.decido-intro .lead { color: var(--muted); max-width: 34ch; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--gold-ink); margin-bottom: .6em; }
.decido-ask, .decido-step { text-align: left; max-width: 520px; margin: 0 auto; }
.decido-step[hidden] { display: none; }

.coin-stage { position: relative; height: 200px; margin: 10px auto 18px; perspective: 900px; }
.coin {
    --size: 150px;
    position: absolute; left: 50%; top: 18px; width: var(--size); height: var(--size); margin-left: calc(var(--size) / -2);
    transform-style: preserve-3d; transform: rotateY(0deg);
    transition: transform 2.2s cubic-bezier(.2, .7, .15, 1);
}
.coin.tossing { animation: toss 2.2s cubic-bezier(.3, .6, .3, 1); }
@keyframes toss {
    0% { top: 18px; } 40% { top: -70px; } 75% { top: 22px; } 85% { top: 10px; } 100% { top: 18px; }
}
.coin-face {
    position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    background: radial-gradient(circle at 34% 28%, #fbe7ab 0%, #d6a64c 42%, #a87a2c 72%, #7d5a1f 100%);
    box-shadow: inset 0 0 0 5px rgba(255, 240, 200, .35), inset 0 -8px 18px rgba(80, 50, 10, .35), 0 6px 18px rgba(60, 40, 10, .25);
    display: grid; place-items: center;
}
.coin-tails { transform: rotateY(180deg); }
.coin-face svg { width: 100%; height: 100%; }
.coin-rim { fill: none; stroke: rgba(255, 244, 210, .55); stroke-width: 2; }
.coin-ring { font: 700 13px/1 var(--sans); letter-spacing: 3.4px; fill: rgba(90, 60, 15, .75); }
.coin-letter { font: 700 76px/1 var(--serif); fill: rgba(255, 246, 220, .95); paint-order: stroke; stroke: rgba(110, 75, 20, .45); stroke-width: 2px; }
.coin-heart { fill: rgba(255, 246, 220, .95); stroke: rgba(110, 75, 20, .45); stroke-width: 2px; }
.coin-label {
    position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); white-space: nowrap; max-width: 260px;
    overflow: hidden; text-overflow: ellipsis; font-size: .85rem; color: var(--muted);
}
.coin-shadow {
    position: absolute; left: 50%; bottom: 0; width: 120px; height: 14px; margin-left: -60px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(24, 34, 58, .25), transparent);
}

.result { font-size: 1.05rem; text-align: center; margin: 0 0 .2em; }
.result strong { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 7vw, 2.4rem); line-height: 1.15; margin-top: 4px; }
.question-echo { text-align: center; color: var(--muted); font-style: italic; }
.question-echo:empty { display: none; }
.feel-q { text-align: center; font-size: 1.35rem; margin-top: 1em; }
.hint { text-align: center; color: var(--muted); font-size: .9rem; }
.timer { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; max-width: 220px; margin: 0 auto 8px; }
.timer span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; }
.timer.run span { animation: timer 3s linear forwards; }
@keyframes timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.feel-buttons { display: grid; gap: 10px; }
.feel { width: 100%; justify-content: flex-start; font-size: 1.05rem; }
.feel span { font-size: 1.3rem; }

.reading-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; outline: none;
}
.reading-card h2 { font-size: 1.5rem; }
.rule5 { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin: 0; }
.again-card { border-color: var(--gold); }
.again-card h2 { font-size: 2rem; color: var(--gold-ink); }
.again-text { font-size: 1.15rem; }
.again-study { font-size: .92rem; color: var(--muted); margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1; }
.why { text-align: center; margin-top: 14px; }
.decido-disclaimer { font-size: .8rem; color: var(--muted); margin-top: 26px; }

/* Bänder & Karten */
.band { padding: 48px 0; border-top: 1px solid var(--line); }
.band-soft { background: var(--soft); }
.band-rule { background: var(--surface); }
.section-lead { color: var(--muted); }
.more { font-weight: 600; text-decoration: none; color: var(--gold-ink); }
.more:hover { text-decoration: underline; }

.rule-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.rule-list li { display: flex; gap: 16px; align-items: flex-start; }
.rule-list p { margin: 0; padding-top: 6px; }
.num {
    flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    font: 700 1.4rem/1 var(--serif); color: #fff8e6;
    background: radial-gradient(circle at 34% 28%, #f3d58a, var(--gold) 60%, #7d5a1f);
}
.rule-gold { font-family: var(--serif); font-size: 1.15rem; font-style: italic; }

.cards { display: grid; gap: 14px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: " →"; color: var(--gold); }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

.wiki-groups { display: grid; gap: 22px; margin-bottom: 18px; }
@media (min-width: 720px) { .wiki-groups { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.wiki-group h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--sans); color: var(--gold-ink); }
.wiki-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wiki-group a {
    display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 12px 16px;
}
.wiki-group a:hover { border-color: var(--gold); color: inherit; }
.wiki-group a span { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }

.author-teaser p { color: var(--muted); }

/* Artikel & Seiten */
.page-head { padding: 36px 0 8px; }
.page-head .lead { color: var(--muted); font-size: 1.1rem; }
.meta { color: var(--muted); font-size: .9rem; }
.crumbs { padding-top: 24px; font-size: .9rem; color: var(--muted); display: flex; gap: 8px; }
.crumbs + .page-head { padding-top: 10px; }

.summary {
    background: var(--surface); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px; margin: 10px 0 28px;
}
.summary h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-ink); margin-bottom: .4em; }
.summary p { margin: 0; font-size: 1.05rem; }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.12rem; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose sup a, .fn-ref { text-decoration: none; color: var(--gold-ink); font-weight: 700; font-size: .8em; padding: 0 1px; }
.footnotes { margin-top: 2.4em; padding-top: 1em; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.footnotes hr { display: none; }
.footnotes ol { padding-left: 1.4em; }
.fn-back { text-decoration: none; margin-left: 4px; }
.prose code { font-size: .9em; background: var(--soft); padding: 1px 5px; border-radius: 4px; }

.cta {
    margin: 36px 0; padding: 22px; border-radius: var(--radius); text-align: center;
    background: var(--surface); border: 1px solid var(--line);
}
.cta h2 { font-size: 1.35rem; }
.cta p { color: var(--muted); }
.related { margin: 28px 0 10px; }
.related h2 { font-size: 1.2rem; }
.related ul { padding-left: 1.2em; }

.faq-group { margin: 22px 0 30px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq-item summary {
    cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; font-weight: 600; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--gold); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .prose { padding: 0 18px 6px; }

.notfound { text-align: center; padding-bottom: 60px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); margin-top: 40px; font-size: .92rem; }
.footer-claim { display: flex; gap: 10px; align-items: center; font-family: var(--serif); font-size: 1.05rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 16px; }
.footer-nav a { color: var(--muted); }
.footer-small { color: var(--muted); font-size: .82rem; margin: 0 0 4px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .coin { transition-duration: .01s; }
    .coin.tossing { animation: none; }
    .timer.run span { animation: none; }
}
