/* RemoteDeck — gemeinsame Gestaltung der Rechts- und Hilfeseiten.
   Hell und dunkel, weil die Seiten oft vom iPhone aus geöffnet werden. */

:root {
    --bg: #ffffff;
    --surface: #f4f5f7;
    --text: #16181d;
    --muted: #5c6270;
    --border: #e2e5ea;
    --accent: #0a7cff;
    --again: #ef4349;
    --hard: #f5992a;
    --good: #3ec770;
    --easy: #4d9efa;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0c10;
        --surface: #16181f;
        --text: #f2f4f8;
        --muted: #9aa2b1;
        --border: #262a34;
        --accent: #59adff;
    }
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 46rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
}

/* Vier Farbstreifen als Wiedererkennung — dieselbe Reihenfolge wie die
   Bewertungstasten in der App. */
.bars { display: flex; gap: 5px; margin-bottom: 1.75rem; }
.bars span { height: 7px; border-radius: 4px; flex: 1; }
.bars span:nth-child(1) { background: var(--again); }
.bars span:nth-child(2) { background: var(--hard); }
.bars span:nth-child(3) { background: var(--good); flex: 1.5; }
.bars span:nth-child(4) { background: var(--easy); }

h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 .35rem; letter-spacing: -.02em; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 .75rem; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 .5rem; }

.tagline { color: var(--muted); margin: 0 0 2rem; font-size: 1.05rem; }
.meta { color: var(--muted); font-size: .9rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: .1em .4em;
    font-size: .88em;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    margin: 1.25rem 0;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

ol, ul { padding-left: 1.4rem; }
li { margin: .35rem 0; }

nav.footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: .92rem;
    color: var(--muted);
}
nav.footer a { margin-right: 1rem; }
