/* ============================================================
   Florty – Gestaltung
   Idee: Kuli-Tinte auf Papier. Blau zum Handeln, Rotstift für
   Herzklopfen (Likes, Matches). Handschrift nur dort, wo Menschen
   selbst etwas „hinschreiben“ (Zettel, Heute-Status).
   ============================================================ */

@font-face {
    font-family: 'Familjen Grotesk';
    src: url('../fonts/familjen-grotesk-normal.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nanum Pen Script';
    src: url('../fonts/nanum-pen-script-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #F4F6FB;
    --surface: #FFFFFF;
    --surface-2: #EEF1F8;
    --ink: #18205A;
    --ink-2: #474F7E;
    --ink-3: #6E7499;
    --line: #DCE0EE;
    --line-strong: #C3C9E0;
    --kuli: #2F45D8;
    --kuli-hover: #2337BD;
    --kuli-weak: #E6E9FC;
    --rot: #D3364F;
    --rot-weak: #FBE6EA;
    --ok: #1C7F55;
    --ok-weak: #E1F3EA;
    --warn: #9A5B00;
    --warn-weak: #FBF0DC;
    --grid: rgba(47, 69, 216, .12);
    --on-kuli: #FFFFFF;
    --red: var(--rot); --green: var(--ok); --muted: var(--ink-3);

    --font: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pen: 'Nanum Pen Script', 'Segoe Print', cursive;

    --r-s: 6px;
    --r-m: 10px;
    --r-l: 16px;
    --shadow: 0 1px 2px rgba(24, 32, 90, .06), 0 6px 20px -8px rgba(24, 32, 90, .18);
    --wrap: 1180px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #0E1330; --surface: #161C42; --surface-2: #1D2450;
        --ink: #E9EBF8; --ink-2: #B9BEDD; --ink-3: #8C92BA;
        --line: #283063; --line-strong: #39427C;
        --kuli: #7D8CFF; --kuli-hover: #96A2FF; --kuli-weak: #232B63;
        --rot: #FF6F86; --rot-weak: #3A1D35;
        --ok: #5ED39B; --ok-weak: #15392F; --warn: #F2B65C; --warn-weak: #3A2D16;
        --grid: rgba(125, 140, 255, .14); --on-kuli: #0E1330;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #0E1330; --surface: #161C42; --surface-2: #1D2450;
    --ink: #E9EBF8; --ink-2: #B9BEDD; --ink-3: #8C92BA;
    --line: #283063; --line-strong: #39427C;
    --kuli: #7D8CFF; --kuli-hover: #96A2FF; --kuli-weak: #232B63;
    --rot: #FF6F86; --rot-weak: #3A1D35;
    --ok: #5ED39B; --ok-weak: #15392F; --warn: #F2B65C; --warn-weak: #3A2D16;
    --grid: rgba(125, 140, 255, .14); --on-kuli: #0E1330;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

/* -------------------- Grundlagen -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.55 var(--font);
    font-feature-settings: "ss01";
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--kuli); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--kuli-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.35rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.8rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

:focus-visible { outline: 2px solid var(--kuli); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--kuli); color: var(--on-kuli); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.pen { font-family: var(--pen); font-weight: 400; letter-spacing: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 720px; }
.section { padding: 2rem 0 3rem; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; } /* Admin */
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .6rem 1.15rem;
    border: 1px solid transparent; border-radius: var(--r-s);
    font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
    background: var(--surface); color: var(--ink);
    transition: background-color .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--kuli); color: var(--on-kuli); }
.btn-primary:hover { background: var(--kuli-hover); color: var(--on-kuli); }
.btn-secondary { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-secondary:hover { border-color: var(--kuli); color: var(--kuli); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-like { border-color: var(--line-strong); background: var(--surface); color: var(--rot); }
.btn-like:hover, .btn-like.is-on { background: var(--rot); border-color: var(--rot); color: #fff; }
.btn-danger { background: var(--rot); color: #fff; }
.btn-danger:hover { filter: brightness(.92); color: #fff; }
.btn-small { min-height: 36px; padding: .4rem .8rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-icon { width: 44px; padding: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--kuli); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* -------------------- Formulare -------------------- */
.field { display: block; margin-bottom: 1.1rem; }
.field > label, .label { display: block; font-weight: 600; margin-bottom: .35rem; }
.hint { display: block; color: var(--ink-3); font-size: .875rem; margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
input[type=search], select, textarea {
    width: 100%; min-height: 44px; padding: .6rem .8rem;
    border: 1px solid var(--line-strong); border-radius: var(--r-s);
    background: var(--surface); color: var(--ink);
    font: 400 1rem/1.4 var(--font);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--kuli); outline-offset: 0; border-color: var(--kuli); }
input[type=file] { font: inherit; color: var(--ink-2); max-width: 100%; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--kuli); flex: none; }
.grid-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }

/* Auswahl-Chips (Checkbox/Radio als Chip) */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span {
    display: inline-flex; align-items: center; gap: .35rem;
    min-height: 38px; padding: .4rem .85rem; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
    font-size: .95rem; user-select: none;
}
.chip-check input:checked + span { background: var(--kuli-weak); border-color: var(--kuli); color: var(--kuli); font-weight: 600; }
.chip-check input:focus-visible + span { outline: 2px solid var(--kuli); outline-offset: 2px; }

/* Anzeige-Chips */
.chip, .tag {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .7rem; border-radius: 999px;
    background: var(--surface-2); color: var(--ink-2); font-size: .9rem; text-decoration: none;
    border: 1px solid transparent;
}
.tag.is-shared { background: var(--kuli-weak); color: var(--kuli); font-weight: 600; }
a.chip:hover { border-color: var(--kuli); color: var(--kuli); }
.badge {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--line-strong);
    font-size: .8rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.verified { color: var(--ok); }
.verified-badge { display: inline-flex; color: var(--ok); }
.verified-badge .ico { width: 1.05em; height: 1.05em; }
.count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 999px;
    background: var(--rot); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1;
}

/* -------------------- Hinweise -------------------- */
.flashes { margin: 1rem 0 0; display: grid; gap: .5rem; }
.flash { padding: .75rem 1rem; border-radius: var(--r-s); border-left: 4px solid var(--kuli); background: var(--kuli-weak); color: var(--ink); }
.flash-success { border-color: var(--ok); background: var(--ok-weak); }
.flash-error { border-color: var(--rot); background: var(--rot-weak); }
.flash-info { border-color: var(--kuli); background: var(--kuli-weak); }
.notice { padding: 1rem 1.1rem; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.notice-warn { background: var(--warn-weak); border-color: transparent; }
.empty, .empty-box {
    padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed var(--line-strong);
    border-radius: var(--r-l); color: var(--ink-2); background: var(--surface);
}
.empty h3 { color: var(--ink); }
.empty .btn { margin-top: .5rem; }

/* -------------------- Kopfbereich -------------------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: baseline; gap: .1rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; }
.logo:hover { color: var(--ink); }
.logo-dot { width: .42em; height: .42em; border-radius: 50%; background: var(--rot); display: inline-block; margin-left: .08em; transform: translateY(-.05em); }
.nav { display: none; gap: .25rem; margin-left: 1.25rem; }
.nav a {
    position: relative; display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .75rem; border-radius: var(--r-s); text-decoration: none; color: var(--ink-2); font-weight: 600;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--kuli); background: var(--kuli-weak); }
.nav .count { margin-left: .1rem; }
.header-end { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.me-link { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 600; padding: .25rem .5rem .25rem .25rem; border-radius: 999px; }
.me-link:hover { background: var(--surface-2); color: var(--ink); }
.icon-link { position: relative; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-2); background: none; border: 0; cursor: pointer; }
.icon-link:hover { background: var(--surface-2); color: var(--ink); }
.icon-link .count { position: absolute; top: 2px; right: 0; }
.icon-link .ico { width: 1.3rem; height: 1.3rem; }
@media (min-width: 900px) { .nav { display: flex; } .hide-desk { display: none !important; } }
@media (max-width: 899px) { .hide-mobile { display: none !important; } }

/* Untere Tab-Leiste (Handy, eingeloggt) */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--surface); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .45rem; text-decoration: none; color: var(--ink-3); font-size: .72rem; font-weight: 600; }
.tabbar a .ico { width: 1.4rem; height: 1.4rem; }
.tabbar a[aria-current="page"] { color: var(--kuli); }
.tabbar .count { position: absolute; top: 4px; left: calc(50% + 6px); }
body.has-tabbar { padding-bottom: 68px; }
@media (min-width: 900px) { .tabbar { display: none; } body.has-tabbar { padding-bottom: 0; } }

/* Avatare */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.avatar-s { width: 32px; height: 32px; }
.avatar-l { width: 56px; height: 56px; }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; color: var(--kuli); background: var(--kuli-weak); font-weight: 700; }

/* -------------------- Fußbereich -------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 3rem; padding: 2rem 0 2.5rem; color: var(--ink-2); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-size: .95rem; color: var(--ink); margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--kuli); text-decoration: underline; }

/* -------------------- Startseite -------------------- */
.hero { padding: 3rem 0 3.5rem; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 4rem; } .hero { padding: 4.5rem 0 5rem; } }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em; max-width: 13ch; margin-bottom: 1.25rem; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 1.75rem; }
.hero .row { gap: .75rem; }
.hero-proof { margin-top: 1.5rem; color: var(--ink-3); font-size: .95rem; }

/* Der Zettel */
.note-stage { display: flex; justify-content: center; }
.note {
    position: relative; width: min(100%, 400px);
    padding: 2.1rem 2rem 1.75rem;
    background-color: #FFFFFF;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: -1px -1px;
    color: #22308F;
    border-radius: 3px;
    box-shadow: 0 2px 3px rgba(24, 32, 90, .08), 0 22px 40px -18px rgba(24, 32, 90, .35);
    transform: rotate(-2.2deg);
}
:root[data-theme="dark"] .note { background-color: #F3F4FA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .note { background-color: #F3F4FA; } }
/* Knick vom Zusammenfalten */
.note::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(24, 32, 90, .12) 20%, rgba(24, 32, 90, .12) 80%, transparent);
}
.note::after {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(transparent, rgba(24, 32, 90, .08) 20%, rgba(24, 32, 90, .08) 80%, transparent);
}
.note-q { font-family: var(--pen); font-size: 2.7rem; line-height: 1.05; margin: 0 0 1.4rem; position: relative; z-index: 1; }
.note-options { display: grid; gap: .55rem; position: relative; z-index: 1; }
.note-opt {
    display: flex; align-items: center; gap: .75rem;
    background: none; border: 0; padding: .15rem 0; cursor: pointer;
    font-family: var(--pen); font-size: 2.45rem; color: inherit; text-align: left; line-height: 1;
}
.note-box { position: relative; width: 30px; height: 30px; flex: none; }
.note-box svg { position: absolute; inset: 0; overflow: visible; }
.note-box .box { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note-box .tick { fill: none; stroke: var(--rot); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.note-opt[aria-pressed="true"] .tick { stroke-dashoffset: 0; transition: stroke-dashoffset .45s cubic-bezier(.6, .1, .3, 1); }
.note-opt:focus-visible { outline: 2px dashed currentColor; outline-offset: 4px; }
.note-answer { min-height: 4.6rem; margin-top: 1.1rem; position: relative; z-index: 1; font-family: var(--font); font-size: 1rem; color: var(--ink); }
.note-answer[hidden] { display: block; visibility: hidden; }
.note-answer a { font-weight: 600; }
.note-sign { position: absolute; right: 1.4rem; bottom: .7rem; font-family: var(--pen); font-size: 1.6rem; color: #22308F; opacity: .8; z-index: 1; }

/* Vergleich */
.band { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.band-white { background: var(--surface); }
.band h2 { max-width: 22ch; }
.band .intro { max-width: 40rem; color: var(--ink-2); font-size: 1.1rem; margin-bottom: 2rem; }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { padding: .85rem .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font-size: .9rem; color: var(--ink-3); font-weight: 600; }
.compare td:nth-child(2), .compare td:nth-child(3), .compare th:nth-child(2), .compare th:nth-child(3) { text-align: center; width: 28%; }
.compare .no { color: var(--ink-3); }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare th[scope=row] { font-weight: 600; }
.compare .col-florty { background: var(--kuli-weak); }
@media (max-width: 560px) { .compare th, .compare td { padding: .7rem .4rem; font-size: .92rem; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-family: var(--pen); font-size: 3rem; line-height: 1; color: var(--kuli); margin-bottom: .4rem; }
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--ink-2); margin: 0; }

.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist .ico { color: var(--ok); margin-top: .15rem; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--kuli); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 0 0 1rem; max-width: 60ch; }

.cta-final { padding: 4rem 0; text-align: left; }
.cta-final h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); max-width: 18ch; }

/* -------------------- Auth-Seiten -------------------- */
.auth { padding: 2.5rem 0 3rem; }
.auth-card { max-width: 480px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 2rem 1.5rem; }
@media (min-width: 560px) { .auth-card { padding: 2.25rem 2.25rem 2rem; } }
.auth-card h1 { font-size: 1.75rem; }
.auth-alt { text-align: center; margin-top: 1.25rem; color: var(--ink-2); }

/* -------------------- App: Seitenkopf -------------------- */
.page-head { padding: 1.75rem 0 1rem; }
.page-head h1 { margin-bottom: .25rem; }
.page-head p { color: var(--ink-2); margin: 0; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: .5rem 0 1.5rem; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem .9rem; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--kuli); border-color: var(--kuli); }
.tabs .num { color: var(--ink-3); font-weight: 400; }

/* -------------------- Mitglieder-Karten -------------------- */
.member-grid { display: grid; gap: 1.25rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .member-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1.25rem; } }
.mcard { position: relative; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.mcard:hover { color: var(--ink); }
.mcard-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); }
.mcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mcard:hover .mcard-photo img { transform: scale(1.03); }
.mcard-photo .initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700; color: var(--kuli); background: var(--kuli-weak); }
.mcard-online { position: absolute; left: .55rem; top: .55rem; display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #18205A; font-size: .75rem; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); display: inline-block; flex: none; }
.dot-on { background: #1FA36B; box-shadow: 0 0 0 2px rgba(31, 163, 107, .2); }
.mcard-body { padding: .6rem .1rem 0; }
.mcard-name { display: flex; align-items: center; gap: .3rem; font-weight: 700; font-size: 1.05rem; }
.mcard-name .age { font-weight: 400; color: var(--ink-2); }
.mcard-meta { color: var(--ink-3); font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-status { margin-top: .25rem; font-family: var(--pen); font-size: 1.35rem; line-height: 1.05; color: var(--kuli); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard-shared { margin-top: .3rem; font-size: .82rem; color: var(--kuli); font-weight: 600; }
.mcard-flag { position: absolute; right: .55rem; top: .55rem; display: inline-flex; padding: .2rem .5rem; border-radius: 999px; background: var(--rot); color: #fff; font-size: .75rem; font-weight: 700; }

/* Leiste „Gerade online“ */
.strip { display: flex; gap: .9rem; overflow-x: auto; padding: .25rem 0 .75rem; scrollbar-width: thin; }
.strip a { flex: none; width: 76px; text-align: center; text-decoration: none; color: var(--ink); font-size: .85rem; font-weight: 600; }
.strip .ring { display: block; position: relative; width: 68px; height: 68px; margin: 0 auto .3rem; border-radius: 50%; padding: 3px; border: 2px solid var(--kuli); }
.strip .ring img, .strip .ring .avatar-fallback { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.strip .ring .dot { position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border: 2px solid var(--surface); }
.strip span.n { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Filter */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1rem; margin-bottom: 1.5rem; }
.filters-main { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .filters-main { grid-template-columns: 1.2fr 1fr 1fr 1fr auto; align-items: end; } }
.filters .field { margin: 0; }
.filters label { font-size: .85rem; }
.filters-more { margin-top: .75rem; }
.filters-more summary { cursor: pointer; color: var(--kuli); font-weight: 600; font-size: .95rem; }
.filters-more[open] summary { margin-bottom: .75rem; }
.age-pair { display: flex; gap: .4rem; align-items: center; }
.age-pair input { min-width: 0; }
.pager { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }

/* -------------------- Profil -------------------- */
.profile { display: grid; gap: 1.75rem; padding: 1.5rem 0 1rem; }
@media (min-width: 900px) { .profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; } .profile-photos { position: sticky; top: 84px; } }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--surface-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 6rem; font-weight: 700; color: var(--kuli); background: var(--kuli-weak); }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 64px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: var(--r-s); overflow: hidden; cursor: pointer; background: none; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--kuli); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: #18205A; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gallery-nav.prev { left: .6rem; } .gallery-nav.next { right: .6rem; }

.profile-name { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .25rem; }
.profile-name h1 { margin: 0; font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem); letter-spacing: -.03em; }
.profile-name .age { font-weight: 400; color: var(--ink-2); }
.profile-meta { color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: 1rem; }
.profile-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.status-note {
    display: inline-block; margin: .25rem 0 1.25rem; padding: .55rem 1rem .45rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s);
    font-family: var(--pen); font-size: 1.65rem; line-height: 1.05; color: var(--kuli);
    transform: rotate(-1deg);
}
.status-note small { display: block; font-family: var(--font); font-size: .75rem; color: var(--ink-3); transform: none; }
.profile-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.profile-actions form { margin: 0; }
.psec { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.psec h2 { font-size: 1.1rem; margin-bottom: .75rem; }
.psec .about { white-space: pre-line; font-size: 1.05rem; }
.answer { padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); margin-bottom: .75rem; }
.answer-q { color: var(--ink-3); font-size: .9rem; margin-bottom: .2rem; }
.answer-a { font-size: 1.2rem; font-weight: 600; line-height: 1.35; white-space: pre-line; }
.answer-reply { margin-top: .6rem; }
.facts { display: grid; grid-template-columns: 1fr; gap: .1rem; margin: 0; }
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; gap: .1rem 1.5rem; } }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.match-hint { display: flex; gap: .6rem; align-items: center; padding: .75rem 1rem; border-radius: var(--r-m); background: var(--rot-weak); color: var(--ink); margin-bottom: 1.25rem; }
.match-hint .ico { color: var(--rot); }
.more-actions { margin-top: 1rem; }
.more-actions summary { cursor: pointer; color: var(--ink-3); font-size: .9rem; }
.more-actions .row { margin-top: .75rem; }

/* -------------------- Profil bearbeiten -------------------- */
.edit-layout { display: grid; gap: 2rem; padding-bottom: 2rem; }
@media (min-width: 960px) { .edit-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; } .edit-toc { position: sticky; top: 84px; align-self: start; } }
.edit-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.edit-toc a { display: flex; justify-content: space-between; padding: .5rem .7rem; border-radius: var(--r-s); text-decoration: none; color: var(--ink-2); font-weight: 600; }
.edit-toc a:hover { background: var(--surface-2); color: var(--ink); }
.edit-toc .done { color: var(--ok); }
@media (max-width: 959px) { .edit-toc { display: none; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.5rem 1.25rem; margin-bottom: 1.5rem; scroll-margin-top: 84px; }
@media (min-width: 640px) { .panel { padding: 1.75rem 1.75rem; } }
.panel h2 { font-size: 1.25rem; margin-bottom: .3rem; }
.panel > .hint:first-of-type { margin: 0 0 1.25rem; }
.panel-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .5rem; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: .6rem 0 .4rem; }
.progress span { display: block; height: 100%; background: var(--kuli); border-radius: 999px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-tile { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .main-flag { position: absolute; left: .4rem; top: .4rem; padding: .1rem .45rem; border-radius: 999px; background: var(--kuli); color: var(--on-kuli); font-size: .72rem; font-weight: 700; }
.photo-tile .tile-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: .25rem; padding: .35rem; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.photo-tile .tile-actions button { border: 0; border-radius: var(--r-s); background: rgba(255, 255, 255, .92); color: #18205A; font: 600 .75rem var(--font); padding: .3rem .45rem; cursor: pointer; display: inline-flex; align-items: center; gap: .2rem; }
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; aspect-ratio: 4 / 5; border: 2px dashed var(--line-strong); border-radius: var(--r-m); color: var(--kuli); cursor: pointer; font-weight: 600; font-size: .9rem; text-align: center; padding: .5rem; }
.photo-add:hover { border-color: var(--kuli); background: var(--kuli-weak); }
.photo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.prompt-row { padding: 1rem 0; border-top: 1px dashed var(--line); }
.prompt-row:first-of-type { border-top: 0; padding-top: 0; }
.interest-group { margin-bottom: 1rem; }
.interest-group h3 { font-size: .9rem; color: var(--ink-3); font-weight: 600; margin-bottom: .45rem; }

/* -------------------- Kennenlernen -------------------- */
.meet { max-width: 520px; margin: 0 auto; padding: 1.5rem 0 2rem; }
.meet-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
.meet-photo { display: block; position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); }
.meet-photo img { width: 100%; height: 100%; object-fit: cover; }
.meet-photo .initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 6rem; font-weight: 700; color: var(--kuli); background: var(--kuli-weak); }
.meet-info { padding: 1.1rem 1.25rem 1.25rem; }
.meet-info h2 { margin: 0; display: flex; gap: .4rem; align-items: center; }
.meet-info .age { font-weight: 400; color: var(--ink-2); }
.meet-answer { margin-top: .9rem; }
.meet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.meet-actions .btn { min-height: 54px; font-size: 1.05rem; }
.match-pop { text-align: center; padding: 2.5rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.match-pop .pair { display: flex; justify-content: center; margin-bottom: 1rem; }
.match-pop .pair img, .match-pop .pair .avatar-fallback { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); }
.match-pop .pair > :last-child { margin-left: -18px; }
.match-pop h2 { font-family: var(--pen); font-weight: 400; font-size: 3rem; color: var(--rot); letter-spacing: 0; }

/* -------------------- Nachrichten -------------------- */
.chat { display: grid; grid-template-columns: 1fr; height: calc(100vh - 64px - 68px); height: calc(100dvh - 64px - 68px); background: var(--surface); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .chat { grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - 64px); border: 1px solid var(--line); border-radius: var(--r-l); margin: 1.25rem 0; height: calc(100dvh - 64px - 2.5rem); overflow: hidden; } }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list-head { padding: 1rem 1.1rem .5rem; }
.chat-list-head h1 { font-size: 1.4rem; margin: 0; }
.conv { display: flex; gap: .75rem; align-items: center; padding: .8rem 1.1rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.conv:hover { background: var(--surface-2); color: var(--ink); }
.conv[aria-current="true"] { background: var(--kuli-weak); }
.conv-main { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.conv-name { font-weight: 700; display: flex; align-items: center; gap: .25rem; }
.conv-time { color: var(--ink-3); font-size: .78rem; flex: none; }
.conv-preview { color: var(--ink-3); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.is-unread .conv-preview { color: var(--ink); font-weight: 600; }
.chat-pane { display: flex; flex-direction: column; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.chat-head a.who { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); min-width: 0; }
.chat-head .who strong { display: flex; align-items: center; gap: .25rem; }
.chat-head .sub { color: var(--ink-3); font-size: .82rem; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .35rem; background: var(--paper); }
.msg { max-width: min(78%, 520px); padding: .55rem .85rem .4rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--kuli); color: var(--on-kuli); border-color: transparent; }
.msg-time { display: block; font-size: .7rem; opacity: .7; text-align: right; margin-top: .15rem; }
.msg-day { align-self: center; color: var(--ink-3); font-size: .78rem; margin: .75rem 0 .25rem; }
.seen { align-self: flex-end; color: var(--ink-3); font-size: .75rem; margin-top: -.1rem; }
.typing { min-height: 1.4rem; padding: 0 1rem; color: var(--ink-3); font-size: .85rem; font-style: italic; background: var(--paper); }
.chat-form { display: flex; gap: .5rem; align-items: flex-end; padding: .7rem; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form textarea { min-height: 44px; max-height: 160px; resize: none; border-radius: 22px; padding: .6rem 1rem; }
.chat-form .btn { border-radius: 50%; width: 44px; padding: 0; flex: none; }
.starters { padding: 1rem; display: grid; gap: .5rem; }
.starters p { margin: 0 0 .25rem; color: var(--ink-2); }
.starter { text-align: left; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-m); padding: .6rem .8rem; color: var(--ink); font: inherit; cursor: pointer; }
.starter:hover { border-color: var(--kuli); color: var(--kuli); }
.chat-empty { margin: auto; text-align: center; padding: 2rem; color: var(--ink-2); max-width: 26rem; }
@media (max-width: 899px) {
    .chat.has-active .chat-list { display: none; }
    .chat:not(.has-active) .chat-pane { display: none; }
}

/* -------------------- Listen (Besucher, Benachrichtigungen) -------------------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.list-item { display: flex; gap: .85rem; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--surface-2); color: var(--ink); }
.list-item.is-new { background: var(--kuli-weak); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .when { color: var(--ink-3); font-size: .82rem; flex: none; }

/* -------------------- Einstellungen / Plus -------------------- */
.settings { max-width: 760px; }
.plus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.plus-list li { display: flex; gap: .7rem; align-items: flex-start; }
.plus-list .ico { color: var(--kuli); margin-top: .15rem; }

/* -------------------- Rechtliches / Text -------------------- */
.prose { max-width: 70ch; padding: 2rem 0 1rem; }
.prose h1 { margin-bottom: 1rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose li { margin-bottom: .35rem; }

/* -------------------- Admin (bestehende Seiten) -------------------- */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); font-size: .95rem; }
.table th, .table td { padding: .65rem .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { background: var(--surface-2); font-size: .85rem; color: var(--ink-2); }
.check-grid { display: flex; gap: .4rem; flex-wrap: wrap; }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem; }
.stat b { display: block; font-size: 1.8rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* -------------------- Korrekturen Handy / Editor -------------------- */
.filters-main > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.filters-main > fieldset { grid-column: 1 / -1; }
@media (min-width: 900px) { .filters-main > fieldset { grid-column: auto; } }
.age-pair input { width: 100%; }
.save-bar {
    position: sticky; bottom: 68px; z-index: 20;
    display: flex; justify-content: flex-end; gap: .5rem;
    margin: 0 -16px; padding: .75rem 16px;
    background: var(--paper); border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .save-bar { bottom: 0; margin: 0; padding: .9rem 0; } }
.filters-main { align-items: end; }
.age-pair input { padding-left: .4rem; padding-right: .4rem; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.age-pair input::-webkit-inner-spin-button, .age-pair input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.me-link[aria-current="page"] { background: var(--kuli-weak); color: var(--kuli); }

/* ============================================================
   Admin-Bereich
   ============================================================ */
.admin-shell { display: grid; grid-template-columns: 1fr; max-width: 1400px; margin: 0 auto; }
@media (min-width: 960px) { .admin-shell { grid-template-columns: 240px minmax(0, 1fr); } }
.admin-side { background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem 16px; }
@media (min-width: 960px) {
    .admin-side { border-bottom: 0; border-right: 1px solid var(--line); min-height: calc(100vh - 64px); padding: 1rem .75rem; position: sticky; top: 64px; align-self: start; max-height: calc(100vh - 64px); overflow-y: auto; }
    .admin-menu > summary { display: none; }
}
.admin-menu > summary { cursor: pointer; font-weight: 600; padding: .5rem 0; color: var(--kuli); }
.admin-group { margin: 1rem .6rem .3rem; font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.admin-group:first-of-type { margin-top: .25rem; }
.admin-side a { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: var(--r-s); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.admin-side a span:first-of-type { flex: 1; }
.admin-side a:hover { background: var(--surface-2); color: var(--ink); }
.admin-side a[aria-current="page"] { background: var(--kuli-weak); color: var(--kuli); }
.admin-main { padding: 1.5rem 16px 3rem; min-width: 0; }
@media (min-width: 960px) { .admin-main { padding: 1.75rem 2.25rem 3rem; } }
.admin-main h1 { font-size: 1.7rem; margin-bottom: 1.25rem; }
.admin-main .panel { margin-bottom: 1.25rem; }
.admin-main .panel h2 { font-size: 1.1rem; margin-bottom: .9rem; }
.admin-cols { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .admin-cols { grid-template-columns: 1fr 1fr; } .admin-cols > .panel { margin-bottom: 0; } }
.kpis { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.25rem; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: .9rem 1rem; text-decoration: none; color: var(--ink); display: block; }
a.kpi:hover { border-color: var(--kuli); color: var(--ink); }
.kpi .v { display: block; font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.kpi .l { color: var(--ink-2); font-size: .88rem; }
.kpi .d { display: block; font-size: .8rem; color: var(--ink-3); margin-top: .15rem; }
.kpi.is-alert .v { color: var(--rot); }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.toolbar input[type=search], .toolbar select { width: auto; min-width: 200px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-s); overflow: hidden; }
.seg a { padding: .45rem .8rem; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; border-right: 1px solid var(--line-strong); }
.seg a:last-child { border-right: 0; }
.seg a[aria-current="page"] { background: var(--kuli); color: var(--on-kuli); }

/* Diagramm */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart-bar path { fill: var(--kuli); }
.chart-bar .hit { fill: transparent; }
.chart-bar:hover path { fill: var(--kuli-hover); }
.chart-bar:hover .hit { fill: var(--kuli-weak); opacity: .5; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-base { stroke: var(--line-strong); stroke-width: 1; }
.chart-axis { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }

/* Rangliste */
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.rank li { position: relative; display: flex; justify-content: space-between; gap: .75rem; padding: .4rem .6rem; border-radius: var(--r-s); overflow: hidden; }
.rank-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--kuli-weak); border-radius: var(--r-s); }
.rank-label, .rank-val { position: relative; }
.rank-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-val { font-weight: 600; white-space: nowrap; }
.rank-val small { color: var(--ink-3); font-weight: 400; margin-left: .25rem; }

/* Tabellen im Admin */
.admin-main .table { font-size: .92rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.table-wrap .table { border: 0; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill-open { background: var(--warn-weak); color: var(--warn); }
.pill-ok { background: var(--ok-weak); color: var(--ok); }
.pill-bad { background: var(--rot-weak); color: var(--rot); }
.pill-info { background: var(--kuli-weak); color: var(--kuli); }

/* Support-Verlauf */
.thread { display: grid; gap: .75rem; }
.tmsg { padding: .9rem 1rem; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; }
.tmsg.team { background: var(--kuli-weak); border-color: transparent; }
.tmsg.internal { background: var(--warn-weak); border-color: transparent; }
.tmsg-meta { font-size: .8rem; color: var(--ink-3); margin-bottom: .35rem; white-space: normal; }

/* Rechnung (Druckansicht) */
.invoice { max-width: 800px; margin: 1.5rem auto; background: #fff; color: #18205A; padding: 3rem; border: 1px solid var(--line); }
.invoice table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.invoice th, .invoice td { padding: .5rem; border-bottom: 1px solid #DCE0EE; text-align: left; }
.invoice .num { text-align: right; }
.invoice .sum td { font-weight: 700; border-bottom: 2px solid #18205A; }
.invoice-head { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
@media print {
    .site-header, .admin-side, .no-print, .tabbar { display: none !important; }
    body { background: #fff; }
    .admin-shell { display: block; }
    .admin-main { padding: 0; }
    .invoice { border: 0; margin: 0; padding: 0; max-width: none; }
}

/* Gründungsmitglied: Stempel in Rotstift-Handschrift */
.founder {
    display: inline-block; padding: .05rem .55rem .1rem; border: 1.5px dashed var(--rot); border-radius: 6px;
    color: var(--rot); font-family: var(--pen); font-size: 1.25rem; line-height: 1.1; transform: rotate(-2deg); white-space: nowrap;
}
.invite-box { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--kuli-weak); border-color: transparent; }
.invite-box p { margin: 0; }
/* -------------------- Startseite 2: Gründer, Beispielprofile, Quiz -------------------- */
.founder-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); max-width: 34rem; }
.founder-bar .progress { flex: 1; min-width: 140px; margin: 0; }
.founder-bar .progress span { background: var(--rot); }
.founder-bar strong { font-variant-numeric: tabular-nums; }
.dach { display: inline-flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.dach span { padding: .2rem .65rem; border-radius: 999px; background: var(--kuli-weak); color: var(--kuli); font-weight: 600; font-size: .9rem; }

.examples { display: grid; gap: 1.25rem; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); overflow-x: auto; padding: .5rem .25rem 1.25rem; scroll-snap-type: x mandatory; }
@media (min-width: 960px) { .examples { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.example { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
.example:nth-child(1) { transform: rotate(-1deg); }
.example:nth-child(3) { transform: rotate(1deg); }
.example-top { position: relative; height: 150px; display: flex; align-items: flex-end; padding: 1rem 1.1rem; color: #fff; }
.example-top .big { position: absolute; right: .8rem; top: -.4rem; font-family: var(--pen); font-size: 7rem; line-height: 1; opacity: .35; }
.example-top h3 { margin: 0; font-size: 1.35rem; color: #fff; position: relative; }
.example-top h3 small { font-weight: 400; font-size: 1rem; opacity: .9; }
.example-tag { position: absolute; left: .8rem; top: .8rem; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #18205A; }
.example-body { padding: 1rem 1.1rem 1.2rem; }
.example-body .mcard-status { margin: 0 0 .8rem; font-size: 1.45rem; }
.example-body .answer { margin-bottom: .8rem; }
.example-body .answer-a { font-size: 1.05rem; }
.ex-1 .example-top { background: linear-gradient(135deg, #2F45D8, #6A5BE2); }
.ex-2 .example-top { background: linear-gradient(135deg, #D3364F, #EE7A55); }
.ex-3 .example-top { background: linear-gradient(135deg, #1C7F55, #2F9FA8); }

.quiz-teaser { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 860px) { .quiz-teaser { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
.quiz-types { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.quiz-types span { padding: 1rem; border-radius: var(--r-m); background: var(--paper); border: 1px dashed var(--line-strong); font-family: var(--pen); font-size: 1.7rem; line-height: 1; color: var(--kuli); text-align: center; }

.quiz-q h2 { font-size: 1.4rem; margin: .25rem 0 1rem; }
.quiz-count { color: var(--ink-3); font-size: .9rem; font-weight: 600; }
.quiz-answers { display: grid; gap: .6rem; }
.quiz-a { position: relative; display: block; cursor: pointer; }
.quiz-a input { position: absolute; opacity: 0; }
.quiz-a span { display: block; padding: .9rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--r-m); background: var(--surface); font-size: 1.05rem; }
.quiz-a:hover span { border-color: var(--kuli); }
.quiz-a input:checked + span { background: var(--kuli-weak); border-color: var(--kuli); color: var(--kuli); font-weight: 600; }
.quiz-a input:focus-visible + span { outline: 2px solid var(--kuli); outline-offset: 2px; }
.quiz-result { padding: 2rem 0 1rem; }
.quiz-note { transform: rotate(-1.5deg); margin-top: .75rem; width: 100%; max-width: 520px; }
.city-chips { margin-top: 1.25rem; }
/* -------------------- Ratgeber -------------------- */
.guide-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--kuli); color: var(--ink); }
.guide-card h2, .guide-card h3 { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.guide-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.guide-kicker { color: var(--rot); font-size: 1.35rem; line-height: 1; }
.guide { max-width: 720px; padding: 2rem 0 1rem; }
.guide h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); letter-spacing: -.03em; line-height: 1.1; }
.guide-lead { font-size: 1.2rem; color: var(--ink-2); }
.guide-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.guide-toc ol { margin: .5rem 0 0; padding-left: 1.2rem; }
.guide-toc li { margin: .2rem 0; }
.guide-body { font-size: 1.08rem; line-height: 1.7; }
.guide-body h2 { font-size: 1.45rem; margin: 2.25rem 0 .75rem; scroll-margin-top: 84px; }
.guide-body h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.guide-body li { margin-bottom: .4rem; }
.guide-related { padding: 1rem 0 2rem; }
.guide-related > h2 { font-size: 1.3rem; }
/* -------------------- Fake-Schutz -------------------- */
.scam-warn { align-self: stretch; display: flex; gap: .6rem; align-items: flex-start; margin: .4rem 0 .1rem; padding: .7rem .9rem; border-radius: var(--r-m); background: var(--rot-weak); color: var(--ink); font-size: .9rem; border-left: 4px solid var(--rot); }
.scam-warn .ico { color: var(--rot); margin-top: .1rem; }
.unverified { color: var(--ink-3); }
.fake-bilanz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.25rem 1.4rem; margin: 1.5rem 0 2rem; }
.bilanz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1rem 0; }
@media (min-width: 720px) { .bilanz-grid { grid-template-columns: repeat(4, 1fr); } }
.bilanz-grid b { display: block; font-family: var(--pen); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--rot); }
.bilanz-grid div { font-size: .9rem; color: var(--ink-2); }