/* ============================================================
   Praxisgespräch – Erhebung · UI
   Modern, calm, professional. Indigo/slate palette.
   ============================================================ */
:root {
    --bg: #eef2f8;
    --surface: #ffffff;
    --ink: #101828;
    --ink-soft: #475467;
    --muted: #667085;
    --line: #e4e9f0;
    --line-soft: #eef1f6;
    --brand: #4f46e5;
    --brand-2: #7c3aed;
    --brand-ink: #3730a3;
    --brand-soft: #eef2ff;
    --brand-ring: rgba(99, 102, 241, .30);
    --green: #15803d;
    --green-soft: #ecfdf5;
    --red: #b42318;
    --red-soft: #fef3f2;
    --amber: #b54708;
    --amber-soft: #fffaeb;
    --slate-soft: #f2f4f7;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
    --shadow-md: 0 8px 24px -6px rgba(16, 24, 40, .12), 0 2px 6px -2px rgba(16, 24, 40, .06);
    --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #9333ea 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    line-height: 1.55;
    background:
        radial-gradient(1100px 480px at 50% -180px, rgba(99, 102, 241, .16), transparent 65%),
        radial-gradient(800px 420px at 95% -120px, rgba(147, 51, 234, .10), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: rgba(99, 102, 241, .25); }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
    width: 38px;
    height: 38px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--grad);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 4px 10px -3px rgba(79, 70, 229, .55);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
    white-space: nowrap;
}
.brand-sub {
    font-size: .74rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mode-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    border: 1px solid #ddd6fe;
    color: var(--brand-ink);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}
.mode-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grad);
}

/* ---------- Footer ---------- */
.footer {
    max-width: 880px;
    margin: 0 auto;
    padding: 10px 18px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}
.footer-brand { font-weight: 700; color: var(--ink-soft); }
.footer-note { color: var(--muted); }

.shell { max-width: 880px; margin: 0 auto; padding: 28px 18px 48px; }

.boot {
    padding: 64px 24px;
    text-align: center;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: .02em;
}

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 36px 36px;
    box-shadow: var(--shadow-md);
    animation: card-in .35s ease both;
}
@keyframes card-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

h1 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
    background: linear-gradient(90deg, #1e1b4b, #3730a3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
h2 {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 22px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
h2::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--grad);
    flex: none;
}
h3 { font-size: 1rem; font-weight: 700; margin: 18px 0 8px; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.req { color: #e11d48; font-weight: 700; }

/* ---------- Fields ---------- */
label {
    display: block;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink-soft);
    margin: 16px 0 6px;
}
input[type="text"], input[type="email"], input[type="password"],
input[type="date"], input[type="time"], input[type="number"],
select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
input[type="text"]::placeholder, input[type="email"]::placeholder, textarea::placeholder { color: #98a2b3; }
input[type="text"]:hover, input[type="email"]:hover, input[type="password"]:hover,
input[type="date"]:hover, input[type="time"]:hover, input[type="number"]:hover,
select:hover, textarea:hover { border-color: #b9c0cc; }
/* Select ohne Auswahl: Platzhalter dezent darstellen;
   die Optionen im geöffneten Listenauszug behalten die volle Farbe. */
select.placeholder { color: #98a2b3; font-style: italic; }
select.placeholder option { color: var(--ink); font-style: normal; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-ring);
}
textarea { resize: vertical; min-height: 84px; }
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
input[type="file"] {
    width: 100%;
    font: inherit;
    font-size: .9rem;
    padding: 10px 12px;
    border: 1.5px dashed #c3cad6;
    border-radius: 10px;
    background: #fafbfc;
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
input[type="file"]:hover { border-color: var(--brand); background: var(--brand-soft); }
input[type="radio"] {
    accent-color: var(--brand);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ---------- Questions ---------- */
.question {
    margin: 22px 0;
    padding: 18px 20px;
    background: #fafbfd;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.question:focus-within {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}

.group-title {
    font-weight: 700;
    font-size: .98rem;
    margin: 18px 0 8px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 7px 0;
    background: #fff;
    transition: border-color .15s, background .15s;
}
.group-item:hover { border-color: #c7d2fe; }
.group-item:has(input:checked) { border-color: #a5b4fc; background: var(--brand-soft); }
.group-item .item-text { font-weight: 500; font-size: .93rem; }
.yn { white-space: nowrap; display: flex; gap: 4px; }
.yn label {
    margin: 0 0 0 10px;
    font-weight: 500;
    font-size: .88rem;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.yn input { width: auto; margin-right: 5px; vertical-align: -3px; }

/* ---------- Scale (rating) buttons ---------- */
.scale { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.scale-btn {
    min-width: 52px;
    height: 52px;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all .16s ease;
}
.scale-btn:hover {
    border-color: var(--brand);
    color: var(--brand-ink);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .45);
}
.scale-btn.active {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -6px rgba(79, 70, 229, .55);
}
.scale-btn.active:hover { transform: translateY(-2px); }

/* ---------- Navigation / Buttons ---------- */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 12px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: .93rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    text-decoration: none;
    transition: all .16s ease;
}
.btn:hover { border-color: #98a2b3; background: #f9fafb; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
    background: var(--grad);
    border: 1px solid transparent;
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .55);
}
.btn.primary:hover {
    background: var(--grad);
    filter: brightness(1.08);
    box-shadow: 0 10px 22px -6px rgba(79, 70, 229, .6);
    transform: translateY(-1px);
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; filter: none; }
.links { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.links .btn { text-align: center; }

/* ---------- Notices ---------- */
.notice {
    background: var(--green-soft);
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 14px 0;
    font-size: .93rem;
}
.notice.error {
    background: var(--red-soft);
    border-color: #fecdd3;
    color: var(--red);
    font-weight: 500;
}

/* ---------- Success card ---------- */
.card.success {
    text-align: center;
    background:
        radial-gradient(600px 200px at 50% -60px, rgba(99, 102, 241, .14), transparent 70%),
        var(--surface);
}
.card.success h1, .card.success .result-box { text-align: left; }
.card.success > p { color: var(--ink-soft); margin-top: 4px; }

/* ---------- Siegel (seal) ---------- */
.siegel {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 22px 0 10px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #f5f3ff, #eef2ff);
    border: 1px solid #ddd6fe;
    border-radius: 14px;
}
.siegel-number {
    font-size: 3.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: 96px;
    height: 96px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid transparent;
    border-radius: 50%;
    background-color: #fff;
    background-image:
        linear-gradient(#fff, #fff),
        var(--grad);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 10px 22px -8px rgba(79, 70, 229, .5);
}
.siegel div:last-child { font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Tables ---------- */
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0 4px; font-size: .92rem; }
table.grid th, table.grid td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
table.grid thead th {
    background: var(--slate-soft);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    border-bottom: 2px solid var(--line);
}
table.grid thead th:first-child { border-top-left-radius: 10px; }
table.grid thead th:last-child { border-top-right-radius: 10px; }
table.grid tbody tr { transition: background .12s; }
table.grid tbody tr:hover { background: #f8f9fc; }
table.grid tbody tr:last-child td { border-bottom: none; }
table.grid td .btn { padding: 6px 12px; font-size: .85rem; }
table.grid a { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
table.grid a:hover { text-decoration: underline; }

/* ---------- Admin ---------- */
.card.admin { padding: 28px 32px 36px; }
.tabs {
    display: inline-flex;
    gap: 4px;
    margin: 18px 0 6px;
    padding: 4px;
    background: var(--slate-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    flex-wrap: wrap;
}
.tabs button {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s ease;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active {
    background: #fff;
    border-color: var(--line);
    color: var(--brand-ink);
    box-shadow: var(--shadow-sm);
}
.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.login { max-width: 380px; margin: 0 auto; }
.login h1 { margin-bottom: 14px; }
.preview { margin-top: 14px; }

.status-draft, .status-published, .status-archived {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.status-draft { color: var(--amber); background: var(--amber-soft); border: 1px solid #fedf89; }
.status-published { color: var(--green); background: var(--green-soft); border: 1px solid #a7f3d0; }
.status-archived { color: var(--muted); background: var(--slate-soft); border: 1px solid var(--line); }

/* ---------- Sections / identity ---------- */
.section { margin-bottom: 8px; }
.identity {
    padding: 6px 0 2px;
    background: #fafbfd;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 18px 20px;
}

/* ---------- Hero intro (Variante B) ---------- */
.hero {
    margin: 16px 0 6px;
    padding: 22px 24px;
    background:
        radial-gradient(420px 140px at 0% 0%, rgba(99, 102, 241, .10), transparent 70%),
        #fafbff;
    border: 1px solid #e0e7ff;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #4f46e5, #9333ea) 1;
    border-radius: 14px;
}
.hero-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--brand-ink);
}
.hero-title::before { display: none; }
.hero-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.hero-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .88rem;
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}
.hero-ico {
    flex: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand);
}
.hero-ico svg { width: 18px; height: 18px; }

/* ---------- Stepper (Variante B) ---------- */
.stepper {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 14px 0 4px;
    padding: 0;
    overflow-x: auto;
}
.stepper li {
    flex: 1 1 0;
    min-width: 84px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    transition: all .18s ease;
}
.stepper li.current {
    border-color: #c7d2fe;
    background: var(--brand-soft);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .10);
}
.stepper li.done { border-color: #a7f3d0; background: var(--green-soft); color: #065f46; }
.step-dot {
    flex: none;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--slate-soft);
    border: 1px solid var(--line);
    font-size: .75rem;
    font-weight: 700;
    color: var(--ink-soft);
}
.stepper li.current .step-dot { background: var(--grad); border-color: transparent; color: #fff; }
.stepper li.done .step-dot { background: #10b981; border-color: transparent; color: #fff; }
.step-label {
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Gleitendes Fenster: kompakte Pills statt vollbreiter Liste */
.stepper-window { gap: 8px; }
.stepper-window li {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    max-width: 260px;
}
.stepper-window li.more {
    border-style: dashed;
    background: var(--slate-soft);
}
.stepper-window li.done { flex: none; }
.step-count {
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}
.step-count-word {
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: .85;
}

/* ---------- Answered tick ---------- */
.question { position: relative; }
.answered-tick {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    box-shadow: 0 4px 10px -3px rgba(16, 185, 129, .6);
    animation: tick-pop .28s cubic-bezier(.34, 1.56, .64, 1) both;
    pointer-events: none;
}
@keyframes tick-pop {
    from { opacity: 0; transform: scale(.3); }
    to   { opacity: 1; transform: scale(1); }
}

/* ---------- Keyboard hint ---------- */
.kbd-hint {
    font-size: .78rem;
    color: #98a2b3;
    user-select: none;
}
@media (max-width: 640px) { .kbd-hint { display: none; } }

/* ---------- Result hero ---------- */
.result-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin: 20px 0 6px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f5f3ff, #eef2ff);
    border: 1px solid #ddd6fe;
    border-radius: 14px;
}
.siegel { margin: 0; padding: 0; background: none; border: none; gap: 18px; }
.siegel-label { font-weight: 800; font-size: 1.02rem; color: var(--ink); }
.siegel-hint { font-size: .82rem; color: var(--muted); }
.result-hero-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1 1 260px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}
.badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: .75;
}
.badge-bronze {
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fcd34d;
    box-shadow: 0 4px 12px -4px rgba(217, 119, 6, .4);
}
.badge-muted { color: var(--muted); background: var(--slate-soft); border-color: var(--line); }
.badge-neutral { color: var(--brand-ink); background: #fff; border-color: #ddd6fe; }

/* ---------- Quality grid ---------- */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.quality-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    background: #fafbfd;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
}
.quality-key { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.quality-val { font-size: 1.05rem; font-weight: 800; color: var(--ink); }

/* ---------- Admin stats strip ---------- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 16px 0 6px;
}
.stat-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-val {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.15;
}
.stat-val-sm { font-size: .95rem; font-weight: 700; color: var(--ink); -webkit-background-clip: border-box; background-clip: border-box; }
.stat-key { font-size: .76rem; font-weight: 600; color: var(--muted); }

/* ---------- Empty states ---------- */
.empty-state {
    text-align: center;
    padding: 40px 24px;
    margin: 12px 0;
    background: #fafbfd;
    border: 1.5px dashed #d3dae6;
    border-radius: 14px;
    color: var(--ink-soft);
}
.empty-state p:first-child { font-weight: 700; font-size: 1.02rem; margin: 0 0 4px; color: var(--ink); }
.empty-state .btn { margin-top: 12px; }

/* ---------- Toasts ---------- */
.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 40px));
}
.toast {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    background: #101828;
    box-shadow: 0 12px 28px -8px rgba(16, 24, 40, .5);
    animation: toast-in .3s cubic-bezier(.21, 1.02, .73, 1) both;
}
.toast-ok { background: linear-gradient(135deg, #059669, #10b981); }
.toast-error { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.toast-info { background: linear-gradient(135deg, #3730a3, #4f46e5); }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Footer links ---------- */
.footer a { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Step transition ---------- */
.step-anim { animation: step-in .3s ease both; }
@keyframes step-in {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .card, .step-anim { animation: none; }
    * { transition: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
    .shell { padding: 16px 12px 56px; }
    .card { padding: 22px 18px 28px; border-radius: 14px; }
    .card.admin { padding: 20px 16px 28px; }
    .group-item { flex-direction: column; align-items: flex-start; gap: 6px; }
    .nav { flex-wrap: wrap; }
    .nav .btn { flex: 1 1 auto; }
    .siegel { flex-direction: column; text-align: center; }
    h1 { font-size: 1.45rem; }
    .hero { padding: 16px 16px; }
    .hero-list { grid-template-columns: 1fr; }
    .result-hero { flex-direction: column; align-items: flex-start; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .toast-stack { right: 12px; bottom: 12px; }
}
