/* =====================================================================
   app.css — UI der Plattform (Login, Registrierung, Dashboard, Wizard)
   Designsprache der Landingpage: Mint · Teal-Gradient · Pills · Paper
   ===================================================================== */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/Poppins-Light.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Poppins-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Poppins-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Poppins-SemiBold.woff2') format('woff2');
}

:root {
    --ink:       #16292B;
    --ink-soft:  #2C4143;
    --mid:       rgba(22, 41, 43, 0.7); /* 0.6 ergab nur ~4.2:1 auf Weiß — WCAG AA braucht 4.5:1 */
    --paper:     #FFFFFF;
    --bg:        #EFF6F4;
    --teal:      #0B7180;
    --teal-mid:  #10A6AE;
    --green:     #1F7A4D; /* nur als TEXT-Farbe im Einsatz; #2BA86A erreichte nur 3:1 */
    --line:      rgba(36, 30, 32, 0.10);
    --line-soft: rgba(36, 30, 32, 0.06);

    --grad-primary: linear-gradient(118deg, #1E86C9 0%, #10A6AE 46%, #0B7180 100%);
    --grad-soft:    linear-gradient(135deg, #DBEEEE 0%, #D7EBDE 100%);
    --grad-text:    linear-gradient(100deg, #1E86C9, #0B7180 60%, #2BA86A);

    --r:    18px;
    --r-md: 14px;
    --r-lg: 28px;
    --r-xl: 36px;
    --pill: 999px;

    --sh-xs: 0 2px 8px rgba(13, 110, 125, 0.08);
    --sh-sm: 0 8px 24px -8px rgba(13, 110, 125, 0.18);
    --sh:    0 22px 54px -18px rgba(13, 110, 125, 0.30);

    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }

/* hidden-Attribut gewinnt IMMER — display:flex/grid an der Klasse hebelt es sonst aus */
[hidden] { display: none !important; }

/* Sichtbarer Tastatur-Fokus für Links, Buttons, Chips (Inputs haben eigene Ringe) */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Nur für Screenreader */
.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-Link: unsichtbar, bis er Tastatur-Fokus bekommt */
.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 12px 0;
    font-weight: 600;
    text-decoration: none;
}
.skip:focus { left: 0; }

/* Eingabefelder füllen IMMER ihre Zelle (Browser-Default ist Festbreite!) */
input, textarea, select, button { max-width: 100%; }
.form-card input, .form-card textarea,
.wizard-form input, .wizard-form textarea,
.rep-row input, .rep-row textarea { width: 100%; }

body.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    background-image: radial-gradient(ellipse 90% 60% at 80% -10%, rgba(16, 166, 174, 0.10), transparent 60%),
                      radial-gradient(ellipse 70% 50% at 10% 100%, rgba(43, 168, 106, 0.08), transparent 60%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: var(--teal); color: #fff; }

/* ------------------------------------------------------------ Appbar */
.appbar {
    position: sticky;
    top: 14px;
    z-index: 60;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: min(1280px, calc(100% - 28px));
    margin: 14px auto 0;
    padding: 0 clamp(18px, 3vw, 28px);
    height: 60px;
    background: var(--paper);
    border-radius: var(--pill);
    box-shadow: var(--sh-sm);
}
.appbar-brand {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 15.5px;
    letter-spacing: -0.01em;
    text-decoration: none;
}
.appbar-brand .dot { color: var(--teal-mid); }
.appbar-brand .brand__icon { display: block; height: 36px; width: auto; }
.appbar-brand .brand__text { display: inline; margin-left: 9px; }
@media (max-width: 639px) {
    .appbar-brand .brand__icon { height: 30px; }
    .appbar-brand .brand__text { margin-left: 8px; font-size: 14.5px; }
}
.appbar-nav { display: flex; gap: 6px; }
.appbar-nav a {
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-soft);
    padding: 8px 14px;
    border-radius: var(--pill);
    transition: background 0.2s ease, color 0.2s ease;
}
.appbar-nav a:hover { background: var(--bg); color: var(--teal); }

/* Burger (nur mobil) */
.appbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: -8px;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--ink);
}
.appbar-toggle .bars,
.appbar-toggle .bars::before,
.appbar-toggle .bars::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease, background 0.2s ease;
}
.appbar-toggle .bars { position: relative; }
.appbar-toggle .bars::before { position: absolute; left: 0; top: -6px; }
.appbar-toggle .bars::after  { position: absolute; left: 0; top: 6px; }
.appbar.is-open .appbar-toggle .bars { background: transparent; }
.appbar.is-open .appbar-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.appbar.is-open .appbar-toggle .bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 639px) {
    .appbar { position: relative; }
    .appbar-toggle { display: inline-flex; }
    .appbar-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        min-width: 210px;
        flex-direction: column;
        gap: 2px;
        background: var(--paper);
        border-radius: var(--r);
        box-shadow: var(--sh-sm);
        padding: 10px;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
        z-index: 70;
    }
    .appbar.is-open .appbar-nav {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    .appbar-nav a { padding: 11px 14px; font-size: 14px; }
}

/* -------------------------------------------------------------- Main */
.app-main {
    flex: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px) clamp(16px, 3vw, 48px);
}
.app-foot {
    padding: 20px clamp(20px, 4vw, 48px);
    font-size: 12px;
    color: var(--mid);
    text-align: center;
}
.app-foot-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
}
.app-foot-line img { height: 72px; width: auto; display: block; opacity: 0.9; }

/* ------------------------------------------------------------ Landing-Karte (Fallback) */
.hero-card { max-width: 640px; margin: 0 auto; text-align: center; }
.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--teal);
    background: var(--paper);
    border-radius: var(--pill);
    padding: 8px 16px;
    box-shadow: var(--sh-xs);
}
.hero-card h1 {
    font-size: clamp(34px, 6.5vw, 52px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 18px 0;
}
.hero-sub { font-size: 16.5px; color: var(--mid); }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------ Buttons */
.btn {
    display: inline-block;
    padding: 13px 26px;
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: 0;
    border-radius: var(--pill);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    color: #fff;
    background: var(--grad-primary);
    box-shadow: 0 12px 30px -10px rgba(13, 110, 125, 0.6);
}
.btn-primary:hover { box-shadow: 0 16px 36px -10px rgba(13, 110, 125, 0.7); }
.btn-ghost {
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--sh-sm);
}
.btn-block { width: 100%; }
.btn-small { padding: 9px 18px; font-size: 13px; align-self: flex-start; }

/* -------------------------------------------------------------- Forms */
.form-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--paper);
    border-radius: var(--r-xl);
    box-shadow: var(--sh);
    padding: clamp(26px, 5vw, 44px);
}
.form-card h1 { font-size: 27px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.form-sub { font-size: 14px; color: var(--mid); margin-bottom: 18px; }
.form-card form { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field-group { display: flex; flex-direction: column; gap: 9px; }
.field-label { font-size: 13.5px; font-weight: 500; }
.form-card .domain-line { padding: 11px 16px; }
.form-card .domain-url { font-size: 13.5px; word-break: break-all; }
.domain-url .domain-slug { color: var(--ink-soft); }
.form-card label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 500;
}
.form-card .hint { font-weight: 400; color: var(--mid); }
.form-card input {
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-card input:focus {
    outline: none;
    border-color: var(--teal-mid);
    box-shadow: 0 0 0 4px rgba(16, 166, 174, 0.15);
}
/* Passwort-Toggle (app.js umhüllt jedes Passwortfeld) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 96px; }
.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--teal);
    cursor: pointer;
    padding: 8px 10px;
}
.pw-toggle:hover { text-decoration: underline; }

.form-alt { margin-top: 20px; font-size: 13.5px; color: var(--mid); text-align: center; }
.form-alt a { color: var(--teal); font-weight: 500; }

.alert {
    padding: 13px 16px;
    font-size: 14px;
    border-radius: var(--r-md);
    margin: 12px 0;
}
.alert-error { color: #8c2320; background: rgba(197, 65, 61, 0.1); }
.alert-ok    { color: #1d6e44; background: rgba(43, 168, 106, 0.12); }

/* Wizard-Autosave: wiederhergestellter Entwurf + dezente Statuszeile */
.draft-note {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    padding: 13px 16px;
    font-size: 13.5px;
    line-height: 1.55;
    border-radius: var(--r-md);
    margin: 12px 0;
    background: rgba(16, 166, 174, 0.10);
    color: var(--ink-soft);
}
.autosave-note {
    font-size: 12px;
    color: var(--mid);
    min-height: 18px;
    margin-top: -6px;
}

/* -------------------------------------------------- PoW-Captcha (unsichtbar) */
.gp-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
[data-gp-captcha] { min-height: 0; }
.gp-captcha-status { font-size: 12.5px; color: var(--mid); }
.gp-captcha-status[data-state="idle"] { display: none; }
.gp-captcha-status[data-state="ok"] { color: var(--green); }
.gp-captcha-status[data-state="fail"] { color: #b3372f; }

/* ----------------------------------------------------------- Dashboard */
.dash h1 { font-size: clamp(26px, 5vw, 38px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 24px; }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .dash-grid { grid-template-columns: 1fr 1fr; } }
.dash-card {
    background: var(--paper);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: 26px;
}
.dash-card h2 { font-size: 16.5px; font-weight: 600; margin-bottom: 12px; }
.dash-card p { font-size: 14px; color: var(--mid); margin-bottom: 12px; }
.dash-url a {
    font-size: 17px;
    font-weight: 600;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}
.status { font-size: 13.5px; }
.status-on  { color: var(--green); font-weight: 500; }
.status-off { color: var(--mid); }
.status-safe { color: var(--teal); font-weight: 500; }
.safe-form { margin-top: 10px; }
.safe-vis-form { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 16px; padding: 14px 16px; background: var(--bg); border-radius: var(--r-md); }
.safe-vis-form .field-label { font-size: 13px; font-weight: 600; }
.safe-vis-form .btn { align-self: flex-start; }

/* Offline-/Safe-Hinweisseite ({slug}.domain ohne veröffentlichte Seite) */
.offline-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 100vh;
}
.offline-card {
    max-width: 520px;
    text-align: center;
    background: var(--paper);
    border-radius: var(--r-xl);
    box-shadow: var(--sh);
    padding: clamp(28px, 6vw, 52px);
}
.offline-card img { height: 48px; width: auto; margin-bottom: 18px; }
.offline-card h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.offline-card p { font-size: 14.5px; color: var(--mid); line-height: 1.7; }
.offline-foot { margin-top: 22px; font-size: 12.5px; }
.offline-foot a { color: var(--teal); font-weight: 600; text-decoration: none; }
.offline-foot a:hover { text-decoration: underline; }

/* Türöffner-Seite: Kurzprofil + Kontaktformular */
.tueroeffner-stack { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 560px; }
.tueroeffner-stack .form-card { max-width: none; text-align: left; }
.tueroeffner-stack .form-card h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.tueroeffner-stack .offline-foot { margin-top: 4px; text-align: center; }
.t-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; box-shadow: var(--sh-xs); }
.t-role { font-weight: 500; color: var(--ink-soft) !important; }
.t-tagline { font-style: italic; margin-top: 8px; }
.t-open { margin-top: 14px; color: var(--teal) !important; font-weight: 600; }

/* form-card stylt bisher nur input — textarea (Kontaktformular) gleichziehen */
.form-card textarea {
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--ink);
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-card textarea:focus {
    outline: none;
    border-color: var(--teal-mid);
    box-shadow: 0 0 0 4px rgba(16, 166, 174, 0.15);
}
.hint-small { font-size: 12.5px; color: var(--mid); }
.hint-small a { color: var(--teal); }

.dash-section-title { font-size: 21px; font-weight: 600; margin: 38px 0 16px; letter-spacing: -0.01em; }

/* -------------------------------------------------------------- Wizard */
.wizard { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 860px) { .wizard { grid-template-columns: 230px 1fr; align-items: start; } }

.stepper {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--paper);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: 12px;
}
@media (max-width: 859px) { .stepper { flex-direction: row; flex-wrap: wrap; gap: 4px; } }
.stepper a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border-radius: var(--pill);
    transition: background 0.2s ease;
}
.stepper a:hover { background: var(--bg); }
.stepper .is-current a { background: var(--bg); color: var(--teal); font-weight: 600; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    color: var(--mid);
}
.stepper .is-done .step-num,
.checklist .is-done .step-num {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
}

.wizard-body {
    background: var(--paper);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-sm);
    padding: clamp(22px, 4vw, 40px);
}
.wizard-body h1 { font-size: 25px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 18px; }
.wizard-body .optional {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--bg);
    border-radius: var(--pill);
    padding: 4px 10px;
    vertical-align: middle;
    font-weight: 600;
}
.wizard-form { display: flex; flex-direction: column; gap: 16px; max-width: 1120px; }
.wizard-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 500; }
.wizard-form .hint, .wizard .hint { font-weight: 400; color: var(--mid); font-size: 12.5px; }
.wizard-form input[type="text"], .wizard-form input[type="email"],
.wizard-form textarea, .wizard-form input[type="file"] {
    padding: 11px 15px;
    font-family: var(--font);
    font-size: 14.5px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wizard-form textarea { resize: vertical; }
.wizard-form input:focus, .wizard-form textarea:focus {
    outline: none;
    border-color: var(--teal-mid);
    box-shadow: 0 0 0 4px rgba(16, 166, 174, 0.15);
}
.form-section { font-size: 16px; font-weight: 600; margin-top: 14px; }
.wizard-actions { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; align-items: center; }

/* Repeater */
.repeater { display: flex; flex-direction: column; gap: 10px; }
.rep-row { display: grid; gap: 8px; align-items: start; }
.rep-row-single { grid-template-columns: 1fr auto; }
.rep-row-exp    { grid-template-columns: 1fr auto; }
.rep-row-edu    { grid-template-columns: 1fr auto; }
.rep-row-pair   { grid-template-columns: 1fr 1fr auto; }
@media (min-width: 760px) {
    .rep-row-exp { grid-template-columns: 190px 1fr 1fr 1fr auto; }
    .rep-row-edu { grid-template-columns: 190px 1fr 1fr auto; }
}
.rep-row input, .rep-row textarea, .rep-row select {
    padding: 10px 12px;
    font-family: var(--font);
    font-size: 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
}
.rep-row select { cursor: pointer; min-width: 0; }
.rep-row input:focus, .rep-row textarea:focus, .rep-row select:focus {
    outline: none;
    border-color: var(--teal-mid);
    box-shadow: 0 0 0 3px rgba(16, 166, 174, 0.13);
}
.rep-tools { display: flex; gap: 4px; }
.rep-tools button {
    width: 30px;
    height: 38px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--mid);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.rep-tools button:hover { color: var(--teal); border-color: var(--teal-mid); }

/* Foto-Zuschnitt */
.photo-current { display: flex; align-items: center; gap: 14px; }
.photo-current img { border-radius: var(--r-md); box-shadow: var(--sh-xs); }
.crop-stage {
    width: 300px;
    height: 400px;
    border: 2px solid var(--teal-mid);
    border-radius: var(--r-md);
    overflow: hidden;
    touch-action: none;
}
.crop-stage canvas { display: block; cursor: grab; }
.crop-stage canvas:active { cursor: grabbing; }
.crop-zoom { max-width: 300px; }
.crop-zoom input { width: 100%; accent-color: var(--teal); }

/* Echte Unterschrift (Foto-Step) */
.sig-current {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: var(--r-md);
}
.sig-current img { max-height: 64px; max-width: 280px; }
.sig-pad { max-width: 600px; }
.sig-pad canvas {
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 1.5px dashed var(--line);
    border-radius: var(--r-md);
    background: #fff;
    touch-action: none;
    cursor: crosshair;
    display: block;
}
.sig-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }

/* Unterlagen-Liste */
.doc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; max-width: 680px; }
.doc-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px 18px;
    background: var(--bg);
    border-radius: var(--r-md);
    font-size: 14px;
}
.doc-list-title { font-weight: 600; }
.doc-list-meta { color: var(--mid); flex: 1; }
.doc-list a { color: var(--teal); font-size: 13px; font-weight: 500; }
.inline-form { display: inline; }
.link-danger {
    border: 0;
    background: none;
    color: var(--mid);
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}
.link-danger:hover { color: #b3372f; }
.btn-danger-soft { color: #8c2320; }
.btn-danger-soft:hover { background: rgba(197, 65, 61, 0.1); }

.check-line {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
    font-size: 14.5px !important;
}
.check-line input { width: 19px; height: 19px; flex: 0 0 19px; accent-color: var(--teal); } /* flex-shrink:0 — lange Label-Texte quetschten die Radios sonst klein */

/* Dashboard-Checkliste */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.checklist a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding: 9px 12px;
    background: var(--bg);
    border-radius: var(--r-md);
    transition: background 0.2s ease;
}
.checklist a:hover { background: #E3EFEC; }
.checklist .step-num { width: 21px; height: 21px; font-size: 10px; background: var(--paper); }
.checklist .todo { color: var(--mid); font-size: 12px; margin-left: auto; }

/* Domain-Wahl (Publish-Adresse) */
.domain-list { display: flex; flex-direction: column; gap: 9px; max-width: 560px; }
.domain-line {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px !important;
    padding: 13px 18px;
    background: var(--bg);
    border: 1.5px solid transparent;
    border-radius: var(--pill);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.domain-line:hover { background: #E3EFEC; }
.domain-line:has(input:checked) {
    background: var(--paper);
    border-color: var(--teal-mid);
    box-shadow: var(--sh-xs);
}
.domain-line input { width: 17px; height: 17px; accent-color: var(--teal); }
.domain-url { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.domain-url .domain-host {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------------------------------------------------------------- Admin */
.admin h1 { font-size: clamp(24px, 4.5vw, 32px); font-weight: 600; margin: 18px 0 18px; }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-nav a {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink-soft);
    background: var(--paper);
    border-radius: var(--pill);
    padding: 9px 18px;
    box-shadow: var(--sh-xs);
}
.admin-nav a.is-current { background: var(--grad-primary); color: #fff; }
.admin-table-wrap {
    background: var(--paper);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: 8px 16px;
    overflow-x: auto;
    margin-top: 16px;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th {
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid);
    padding: 12px 10px 8px;
    border-bottom: 1.5px solid var(--line);
    white-space: nowrap;
}
.admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .mut { color: var(--mid); font-size: 12.5px; }
.admin-table a { color: var(--teal); text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }
.admin-table code { background: var(--bg); border-radius: 7px; padding: 3px 8px; font-size: 12.5px; }
.pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: var(--pill);
    padding: 3px 10px;
    white-space: nowrap;
}
.pill-on  { background: rgba(43, 168, 106, 0.14); color: #1d6e44; }
.pill-off { background: rgba(22, 41, 43, 0.08); color: var(--mid); }
.admin-actions { white-space: nowrap; }
.admin-actions .inline-form { display: inline-block; margin-right: 6px; }
.btn-mini {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    background: var(--bg);
    border: 0;
    border-radius: var(--pill);
    padding: 6px 13px;
    cursor: pointer;
}
.btn-mini:hover { background: #E3EFEC; }
.btn-mini-danger { color: #b3372f; }
.admin-gen { margin-top: 18px; }
.gen-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.gen-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 500; }
.gen-form input {
    padding: 9px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    font-family: var(--font);
    font-size: 14px;
    width: 140px;
}
.fresh-codes {
    background: var(--paper);
    border-radius: var(--r);
    box-shadow: var(--sh-sm);
    padding: 16px 18px;
    margin-bottom: 4px;
}
.fresh-codes code {
    display: inline-block;
    background: rgba(43, 168, 106, 0.12);
    color: #1d6e44;
    font-size: 14px;
    font-weight: 600;
    border-radius: 9px;
    padding: 6px 12px;
    margin: 4px 6px 0 0;
    user-select: all;
}

/* Mobil: Tabellenzeilen werden Karten (kein horizontales Scrollen) */
@media (max-width: 719px) {
    .admin-table-wrap { background: none; box-shadow: none; padding: 0; overflow: visible; }
    .admin-table, .admin-table tbody { display: block; }
    .admin-table thead { display: none; }
    .admin-table tr {
        display: block;
        background: var(--paper);
        border-radius: var(--r);
        box-shadow: var(--sh-xs);
        padding: 8px 16px;
        margin-bottom: 12px;
    }
    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 14px;
        text-align: right;
        padding: 9px 0;
        border-bottom: 1px solid var(--line-soft);
    }
    .admin-table td:last-child { border-bottom: 0; }
    .admin-table td::before {
        content: attr(data-label);
        font-size: 10.5px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-weight: 600;
        color: var(--mid);
        text-align: left;
        flex-shrink: 0;
    }
    .admin-table td:not([data-label])::before { content: none; }
    .admin-table td:not([data-label]) { justify-content: flex-start; text-align: left; }
    .admin-table td[data-label=""]::before { content: none; }
    .admin-table .admin-actions { justify-content: flex-end; }
    .admin-table td:empty { display: none; }
    .log-ua { display: none; }   /* User-Agent mobil ausblenden — Platzfresser */
}

/* Statistik + Logbuch */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--paper);
    border-radius: var(--r);
    box-shadow: var(--sh-xs);
    padding: 16px 18px;
}
.stat-num {
    font-size: 26px;
    font-weight: 600;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.stat-label { font-size: 12px; color: var(--mid); }
.log-filter { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.log-filter label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 500; }
.log-filter select {
    padding: 8px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    font-family: var(--font);
    font-size: 13.5px;
    background: #fff;
}
.log-filter .btn-mini { background: var(--paper); box-shadow: var(--sh-xs); text-decoration: none; }
.log-count { font-size: 12.5px; margin-left: auto; }
.log-time { white-space: nowrap; }
.log-ip { word-break: break-all; }
.log-detail { word-break: break-word; }
.log-pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.log-pager .btn-mini { text-decoration: none; background: var(--paper); box-shadow: var(--sh-xs); }
.log-pager .is-cur { background: var(--grad-primary); color: #fff; }

/* --------------------------------------------------------- Theme-Wahl */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.theme-grid-live { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.theme-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--r-md);
    background: #fff;
    box-shadow: var(--sh-xs);
    margin-bottom: 12px;
}
.theme-thumb iframe {
    width: 500%;
    height: 500%;
    border: 0;
    transform: scale(0.2);
    transform-origin: 0 0;
    pointer-events: none;
}

.theme-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: var(--paper);
    border: 1.5px solid transparent;
    border-radius: var(--r);
    box-shadow: var(--sh-xs);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.theme-card:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.theme-card:has(input:checked) {
    border-color: var(--teal-mid);
    box-shadow: var(--sh-sm);
}
.theme-card:has(input:checked)::after {
    content: "✓ gewählt";
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
    background: var(--grad-primary);
    border-radius: var(--pill);
    padding: 5px 11px;
    box-shadow: var(--sh-xs);
}
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-name { font-size: 15px; font-weight: 600; }
.theme-kicker { font-size: 11.5px; color: var(--mid); letter-spacing: 0.03em; }
.theme-preview {
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    align-self: flex-start;
}
.theme-preview:hover { text-decoration: underline; }
.theme-card.is-soon { opacity: 0.55; cursor: default; }
.theme-card.is-soon:hover { transform: none; box-shadow: var(--sh-xs); }
.theme-soon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--bg);
    border-radius: var(--pill);
    padding: 3px 9px;
    font-weight: 600;
}

/* ------------------------------------------------------- Rechtsseiten */
.legal { max-width: 780px; margin: 0 auto; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: clamp(26px, 5vw, 52px); }
.legal h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.legal .legal-stand { font-size: 13px; color: var(--mid); margin-bottom: 28px; }
.legal h2 { font-size: 19px; font-weight: 600; margin: 34px 0 10px; }
.legal h3 { font-size: 15.5px; font-weight: 600; margin: 22px 0 6px; }
.legal p, .legal li { font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--teal); }
.legal .legal-box { background: var(--bg); border-radius: var(--r-md); padding: 16px 20px; margin: 14px 0; }
.legal .legal-box p:last-child { margin-bottom: 0; }
.app-foot-legal { display: block; margin-top: 10px; }
.app-foot-legal a { color: var(--mid); text-decoration: none; }
.app-foot-legal a:hover { color: var(--teal); }
.form-legal { font-size: 12.5px; color: var(--mid); margin: 4px 0 14px; line-height: 1.6; }
.form-legal a { color: var(--teal); }

/* --------------------------------------------------------- Abo-Seite */
.form-card-wide { max-width: 640px; margin-bottom: 22px; }
.sub-status { font-size: 15px; padding: 14px 18px; border-radius: var(--r-md); background: var(--bg); margin: 14px 0 18px; }
.sub-status-active { background: rgba(43, 168, 106, 0.12); }
.sub-status-warn { background: rgba(214, 138, 31, 0.13); }
.upgrade-box { margin-top: 22px; padding: 20px 22px; border-radius: var(--r); background: var(--grad-soft); }
.upgrade-box h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.upgrade-price { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.7; }
.consent-line { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.55; margin-bottom: 9px; }
.consent-line input { width: auto !important; margin-top: 3px; flex: 0 0 auto; }
.consent-line a { color: var(--teal); }
.invoices-head { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.invoices-table { width: 100%; border-collapse: collapse; }
.invoices-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mid); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.invoices-table td { font-size: 14px; padding: 10px; border-bottom: 1px solid var(--line-soft); }
.invoices-table a { color: var(--teal); }
@media (max-width: 719px) {
    .invoices-table thead { display: none; }
    .invoices-table, .invoices-table tbody, .invoices-table tr, .invoices-table td { display: block; width: 100%; }
    .invoices-table tr { background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 10px; }
    .invoices-table td { border: 0; padding: 4px 0; }
    .invoices-table td::before { content: attr(data-label) ": "; font-weight: 600; font-size: 12px; color: var(--mid); }
}
.label-opt { font-weight: 400; font-size: 12px; color: var(--mid); }

/* ---------------------------------------------- Wizard mobil (<760px):
   Eingaben groß (16px verhindert iOS-Auto-Zoom, 48px Touch-Höhe),
   Repeater-Einträge als Karten statt gequetschtem Raster. */
@media (max-width: 759px) {
    .wizard-form input[type="text"], .wizard-form input[type="email"],
    .wizard-form textarea, .wizard-form input[type="file"] {
        font-size: 16px;
        min-height: 48px;
        padding: 12px 14px;
    }
    .repeater { gap: 14px; }
    .rep-row {
        grid-template-columns: 1fr;
        background: var(--bg);
        border-radius: var(--r-md);
        padding: 12px;
        gap: 9px;
    }
    .rep-row input, .rep-row textarea {
        font-size: 16px;
        min-height: 46px;
    }
    .rep-tools { justify-content: flex-end; gap: 8px; padding-top: 2px; }
    .rep-tools button { width: 46px; height: 44px; font-size: 17px; }
    .wizard-actions .btn { width: 100%; }
}

/* ------------------------------------------------- KI-Anschreiben-Box */
.ai-box {
    max-width: 680px;
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: var(--r);
    background: var(--grad-soft);
    border: 1.5px solid rgba(16, 166, 174, 0.25);
}
.ai-box h2 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.ai-box p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; line-height: 1.65; }
.ai-box .hint a { color: var(--teal); }
.ai-status { font-size: 13.5px; font-weight: 500; color: var(--teal); margin-top: 10px; }
.ai-status.is-error { color: #B2402F; }
.tagline-ai { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -6px; }
.tagline-ai .ai-status { margin-top: 0; }
.bundle-list { list-style: none; padding: 0; margin: 0 0 14px; }
.bundle-list li { display: flex; gap: 9px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 8px; }
.bundle-list .ck { color: var(--green); font-weight: 600; flex: 0 0 auto; }

/* ------------------------------------------ Kenntnisse: Gruppen & Chips */
.skill-group { background: var(--bg); border-radius: var(--r-md); padding: 14px; margin-bottom: 14px; }
.skill-group-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.skill-group-title { flex: 1; font-weight: 600; }
.group-del { flex: 0 0 auto; width: 38px; height: 38px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--mid); cursor: pointer; font-size: 15px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 12px; }
.chip {
    padding: 7px 13px;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 500;
    border: 1.5px solid var(--line);
    border-radius: var(--pill);
    background: var(--paper);
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--teal-mid); color: var(--teal); }
.chip.is-active { background: var(--grad-primary); border-color: transparent; color: #fff; }
.chip-cat { background: var(--grad-soft); border-color: rgba(16, 166, 174, 0.25); }
.group-add-bar { margin: 6px 0 4px; }
@media (max-width: 759px) { .chip { padding: 9px 14px; font-size: 13.5px; } }

/* Zeitraum-Helfer */
.period-pop[hidden] { display: none; } /* display:flex unten wuerde [hidden] sonst aushebeln! */
.period-pop {
    position: fixed;
    z-index: 90;
    background: var(--paper);
    border-radius: var(--r-md);
    box-shadow: var(--sh);
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.period-pop .period-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.period-pop .period-row > span { width: 28px; color: var(--mid); }
.period-pop select {
    padding: 8px 10px;
    font-family: var(--font);
    font-size: 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.period-pop .p-now { display: flex; gap: 5px; align-items: center; font-size: 13px; }
.period-pop .p-now input { width: auto !important; min-height: 0 !important; }
.appbar-nav-guest { display: flex !important; position: static !important; opacity: 1 !important; pointer-events: auto !important; transform: none !important; flex-direction: row !important; background: none !important; box-shadow: none !important; padding: 0 !important; min-width: 0 !important; align-items: center; }
.appbar-cta { background: var(--grad-primary); color: #fff !important; white-space: nowrap; }

/* Gast-Appbar mobil: kompakt statt überlaufend (CTA brach zweizeilig aus der Bar aus) */
@media (max-width: 639px) {
    .appbar-nav-guest { gap: 2px; }
    .appbar-nav-guest a { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 429px) {
    .appbar-brand .brand__text { display: none; } /* sehr schmal: das Logo trägt die Marke */
    .appbar-brand .brand__icon { height: 34px; }
}
.appbar-cta:hover { background: var(--grad-primary) !important; color: #fff !important; filter: brightness(1.08); }
.letter-meter { font-size: 12.5px; font-weight: 500; margin: -6px 0 2px; }
.letter-meter.is-ok { color: var(--green); }
.letter-meter.is-warn { color: #96600A; }
.letter-meter.is-bad { color: #B2402F; }
/* Es ist gut, der König zu sein. */
.krone { font-size: 1.9em; line-height: 1; vertical-align: -0.15em; display: inline-block; filter: drop-shadow(0 2px 4px rgba(199, 162, 59, 0.55)); }
@keyframes btn-pulse {
    0%, 100% { box-shadow: 0 12px 30px -10px rgba(13, 110, 125, 0.6); transform: scale(1); }
    50% { box-shadow: 0 0 0 8px rgba(16, 166, 174, 0.25); transform: scale(1.04); }
}
.btn-pulse { animation: btn-pulse 1.2s ease-in-out 5; }

/* Langlaufende Formulare (Mistral): Lade-Zustand */
.form-busy { display: flex; align-items: center; gap: 11px; margin-top: 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.form-busy[hidden] { display: none; }
/* AJAX-KI-Status (Tagline/Anschreiben) mit Spinner bei is-loading */
.ai-status.is-loading::before {
    content: "";
    display: inline-block;
    vertical-align: -3px;
    width: 14px;
    height: 14px;
    margin-right: 7px;
    border: 2px solid var(--line, rgba(22, 41, 43, 0.18));
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.spinner {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--line, rgba(22, 41, 43, 0.18));
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* --------------------------------------------- Upload-Assistent: Einstiege */
/* Schwebender Button (Dashboard + Wizard) */
.import-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 21px;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    background: var(--grad-primary);
    border-radius: var(--pill);
    box-shadow: 0 12px 30px -8px rgba(13, 110, 125, 0.55), 0 2px 6px rgba(13, 110, 125, 0.25);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.25s ease;
}
.import-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(13, 110, 125, 0.62); }
.import-fab:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.import-fab-ico { flex: 0 0 auto; }
.import-fab.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (max-width: 520px) {
    .import-fab { right: 13px; bottom: 13px; padding: 12px 16px; font-size: 13.5px; gap: 7px; }
}
@media print { .import-fab { display: none; } }

/* Dashboard-Karte (gefülltes Profil) */
.import-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    background: var(--bg);
    border-radius: var(--r-md);
    padding: 16px 18px;
    margin-top: 6px;
}
.import-callout-text { flex: 1 1 240px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.import-callout-text b { display: block; color: var(--ink); margin-bottom: 2px; }
.import-callout .btn { flex: 0 0 auto; }

/* Inline-Link im Wizard-Kopf */
.import-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 6px;
    padding: 7px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--teal);
    background: var(--bg);
    border-radius: var(--pill);
    text-decoration: none;
    transition: background 0.16s ease;
}
.import-inline:hover { background: var(--cream-2, #e3eeec); }
.import-inline svg { flex: 0 0 auto; }

/* ----------------------------------------- Upload-Assistent: Vorschlagsauswahl */
.import-pick { border: 0; padding: 0; margin: 0 0 18px; }
.import-pick legend {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
    padding: 0;
}
.import-opt {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: var(--paper);
    border: 1px solid var(--line, rgba(22, 41, 43, 0.12));
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin-bottom: 7px;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}
.import-opt:hover { border-color: var(--teal); }
.import-opt input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }
.import-opt-label { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.import-opt.is-dup { background: var(--bg); }
.import-opt.is-dup .import-opt-label { color: var(--mid); }
.import-tag {
    flex: 0 0 auto;
    align-self: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--mid);
    background: var(--paper);
    border: 1px solid var(--line, rgba(22, 41, 43, 0.12));
    border-radius: var(--pill);
    padding: 2px 10px;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .btn-pulse { animation: none; }
    .import-opt, .import-fab, .import-inline { transition: none; }
    .appbar-toggle .bars, .appbar-toggle .bars::before, .appbar-toggle .bars::after,
    .appbar-nav, .btn, .theme-card { transition: none; }
}

/* ============================================================ HILFE / ANLEITUNG */
.help { max-width: 820px; margin: 0 auto; }
.help-hero { margin-bottom: 28px; }
.help-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 10px;
}
.help-hero h1 { font-size: clamp(26px, 6vw, 38px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.help-lead { font-size: clamp(15px, 4vw, 17px); color: var(--ink-soft); line-height: 1.7; margin-top: 14px; }

.help-toc { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: clamp(20px, 4vw, 28px); margin-bottom: 30px; }
.help-toc-title { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--mid); margin-bottom: 14px; }
.help-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.help-toc li { margin: 0; }
.help-toc a {
    display: block;
    padding: 11px 12px;
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.help-toc a:hover, .help-toc a:focus-visible { background: var(--bg); color: var(--teal); }

.help-section { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: clamp(22px, 5vw, 40px); margin-bottom: 18px; scroll-margin-top: 78px; }
.help-section h2 { font-size: clamp(20px, 5vw, 26px); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.help-section > p { font-size: 15px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 12px; }
.help-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 5px; }

.help-steps { list-style: none; counter-reset: help; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; }
.help-steps > li { counter-increment: help; position: relative; padding-left: 48px; }
.help-steps > li::before {
    content: counter(help);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: grid;
    place-items: center;
}
.help-steps p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; margin-top: 4px; }

.help-list { padding-left: 0; margin: 6px 0 0; list-style: none; display: grid; gap: 10px; }
.help-list li { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; padding-left: 26px; position: relative; }
.help-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.help-acc { background: var(--bg); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; }
.help-acc summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 48px 16px 18px;
    position: relative;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
}
.help-acc summary::-webkit-details-marker { display: none; }
.help-acc summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--teal);
    transition: transform 0.25s ease;
}
.help-acc[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.help-acc summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.help-acc p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; padding: 0 18px 16px; margin: 0; }

.help-tip { background: var(--bg); border-left: 3px solid var(--teal); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 14px 18px; margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

.help-url { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--bg); padding: 2px 8px; border-radius: 6px; color: var(--teal); white-space: nowrap; }

.help-price { background: var(--bg); border-radius: var(--r-md); padding: 18px 20px; margin: 16px 0; }
.help-price-head { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.help-price-figure { font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.help-price-figure span { color: var(--mid); margin: 0 4px; }
.help-price-note { font-size: 13.5px; color: var(--mid); line-height: 1.6; margin: 0; }

.help-cta { text-align: center; padding: clamp(28px, 6vw, 44px) clamp(22px, 5vw, 40px); }
.help-cta h2 { font-size: clamp(20px, 5vw, 26px); font-weight: 600; margin-bottom: 8px; }
.help-cta > p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.help-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
    .help-toc a, .help-acc summary::after { transition: none; }
}
