/* Partnerappen.Web – one small stylesheet, no third-party assets (see the CSP in Program.cs). */
:root {
    --bg: #faf8f6;
    --surface: #ffffff;
    --text: #1f1d1b;
    --muted: #6b6560;
    --line: #e4dfd9;
    --accent: #2f5d8a;
    --danger: #b3261e;
    --danger-bg: #fdf1ef;
    --danger-line: #e9bdb7;
    --ok-bg: #edf7ef;
    --ok-line: #b9dcc1;
    --warn-bg: #fff6e5;
    --warn-line: #f0d39a;
    --radius: 10px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #161514;
        --surface: #201f1d;
        --text: #ece8e3;
        --muted: #a39d96;
        --line: #36332f;
        --accent: #8db6e0;
        --danger: #f2a49c;
        --danger-bg: #2c1c1a;
        --danger-line: #5a302b;
        --ok-bg: #18271b;
        --ok-line: #2f5236;
        --warn-bg: #2b2414;
        --warn-line: #5c4a22;
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 48px; }

a { color: var(--accent); }

h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 28px 0 10px; }

.lead { font-size: 1.08rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header / footer ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; margin-right: auto; }
.site-header nav { display: flex; gap: 18px; }
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.lang { display: flex; gap: 10px; font-size: 0.9rem; }
.lang a { color: var(--muted); text-decoration: none; }
.lang a.active { color: var(--text); font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; padding: 18px 0; }

/* ---------- FAQ ---------- */
.search input { width: 100%; }
.faq { margin: 16px 0 32px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    cursor: pointer;
    padding: 14px 32px 14px 0;
    font-weight: 600;
    list-style: none;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 12px;
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--muted);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 0 12px; }
.faq-item .answer p { margin: 0 0 10px; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px 20px 12px;
}

/* ---------- account removal ---------- */
.warning {
    background: var(--danger-bg);
    border: 1px solid var(--danger-line);
    border-radius: var(--radius);
    padding: 4px 20px 8px;
    margin: 20px 0;
}
.warning h2 { color: var(--danger); margin-top: 14px; }
.warning ul { padding-left: 20px; margin: 0 0 10px; }
.warning li { margin-bottom: 8px; }
.warning .timing { font-weight: 600; }

.alert { border-radius: var(--radius); padding: 12px 16px; border: 1px solid var(--line); }
.alert.error { background: var(--danger-bg); border-color: var(--danger-line); }
.alert.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.alert.warn { background: var(--warn-bg); border-color: var(--warn-line); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 20px 0; }
.form label { font-weight: 600; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
.form .check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }

input[type=email], input[type=password], input[type=search], input[type=number], input:not([type]), select, textarea {
    font: inherit;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.btn {
    display: inline-block;
    font: inherit;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    align-self: flex-start;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.link { background: none; color: var(--accent); padding: 0; }
@media (prefers-color-scheme: dark) {
    .btn.primary, .btn.danger { color: #161514; }
}
.button-row { display: flex; gap: 12px; }

/* ---------- admin ---------- */
.title-row { display: flex; align-items: baseline; justify-content: space-between; }
.table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.table th, .table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.table tr.muted td { color: var(--muted); }
code { font-size: 0.92em; }
