/* ==========================================================================
   Design-System „Datenweiser" – ruhig, aufgeräumt, amtlich-modern.
   ========================================================================== */

/* ---- Schrift ------------------------------------------------------------ */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-var.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* ---- Farb-Tokens -------------------------------------------------------- */
:root {
    --ink: #16232e;
    --ink-soft: #51616e;
    --paper: #f4f6f5;
    --surface: #ffffff;
    --line: #e2e7e6;

    --brand: #0e5a63;
    --brand-deep: #0b3d44;
    --brand-soft: #e2eeef;
    --brand-ghost: #f0f6f6;

    --amber: #a86a12;  --amber-bg: #fbf2e0;
    --green: #2c7a52;  --green-bg: #e5f2ea;
    --red:   #b0392f;  --red-bg:   #f9e9e7;

    --radius: 10px;
    --radius-sm: 7px;
    --shadow: 0 1px 2px rgba(22,35,46,.05), 0 4px 14px rgba(22,35,46,.06);
    --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;
}

/* ---- Basis -------------------------------------------------------------- */
* { box-sizing: border-box; }

html { font-size: 16px; }

body {
    margin: 0;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 450;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
}

h1 { font-size: 1.45rem; font-weight: 750; letter-spacing: -.015em; margin: 0 0 .35rem; }
h2 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .8rem; }
h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .6rem; }

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

code, .mono { font-family: var(--mono); }

/* ---- App-Rahmen: Sidebar + Inhalt --------------------------------------- */
.app {
    display: grid;
    grid-template-columns: 248px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, var(--brand-deep), #0d3239);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1rem 1.1rem;
}

.sidebar-marke {
    padding: 0 .55rem 1.2rem;
}
.sidebar-marke .name {
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -.01em;
    display: block;
}
.sidebar-marke .zusatz {
    color: #9dc2be;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.sidebar nav { flex: 1; }

.nav-label {
    color: #7fa5a1;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 1rem .55rem .35rem;
}

.nav-punkt {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #d6e5e3;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    padding: .5rem .55rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}
.nav-punkt svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.nav-punkt:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-punkt.aktiv { background: rgba(255,255,255,.13); color: #fff; }

.nav-zaehler {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 99px;
    padding: .05rem .45rem;
}

.sidebar-benutzer {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: .9rem;
    font-size: .82rem;
}
.sidebar-benutzer .wer { color: #d6e5e3; font-weight: 700; display: block; margin-bottom: .1rem; }
.sidebar-benutzer .rolle { color: #7fa5a1; font-size: .72rem; }
.sidebar-benutzer form { margin-top: .6rem; }
.btn-abmelden {
    width: 100%;
    background: transparent;
    color: #d6e5e3;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius-sm);
    padding: .4rem;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}
.btn-abmelden:hover { background: rgba(255,255,255,.09); color: #fff; }

/* ---- Topbar ------------------------------------------------------------- */
.hauptbereich { min-width: 0; }

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    padding: .7rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.schnellsuche {
    position: relative;
    flex: 1;
    max-width: 420px;
}
.schnellsuche svg {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    stroke: var(--ink-soft);
    fill: none;
    stroke-width: 2;
}
.schnellsuche input {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 99px;
    background: var(--paper);
    padding: .5rem 1rem .5rem 2.3rem;
    font: inherit;
    font-size: .88rem;
}
.schnellsuche input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent);
}

/* ---- Inhalt + Seitenkopf ------------------------------------------------ */
.content {
    padding: 1.6rem 2rem 2.4rem;
    width: 100%;
    max-width: none;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 1.4rem;
}
.page-head h1 { font-size: 1.35rem; margin: 0; }
.page-head .untertitel { color: var(--ink-soft); font-size: .9rem; margin: .15rem 0 0; }
.head-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.head-actions .btn, .head-actions .btn-outline { min-height: 42px; }

/* ---- Karten ------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.2rem;
}
.card h2 { font-size: 1.02rem; }
.card-hint { color: var(--ink-soft); font-size: .8rem; margin: .3rem 0 0; }

/* ---- Statistik-Kacheln -------------------------------------------------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.1rem 1.3rem;
}
.stat .zahl {
    font-size: 1.7rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}
.stat .label {
    color: var(--ink-soft);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

/* ---- Tabellen ----------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th {
    text-align: left;
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--ink-soft);
    border-bottom: 1.5px solid var(--line);
    padding: .5rem .7rem;
}
td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: var(--brand-ghost); }
tbody tr:last-child td { border-bottom: none; }
td .btn-sm { white-space: nowrap; }

/* ---- Mono-Badge (Nummern/Kennzeichen/Codes) ------------------------------ */
.az {
    font-family: var(--mono);
    font-size: .82rem;
    background: var(--brand-soft);
    color: var(--brand-deep);
    border-radius: 5px;
    padding: .12rem .45rem;
    white-space: nowrap;
}

/* ---- Status-Badges ------------------------------------------------------- */
.badge {
    display: inline-block;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 700;
    padding: .16rem .6rem;
    vertical-align: middle;
    white-space: nowrap;
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red   { background: var(--red-bg);   color: var(--red); }
.badge-gray  { background: var(--paper);    color: var(--ink-soft); }

/* ---- Buttons ------------------------------------------------------------- */
.btn, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 40px;
    padding: .45rem 1.1rem;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn {
    background: var(--brand);
    color: #fff;
    border: 1.5px solid var(--brand);
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-outline {
    background: transparent;
    color: var(--brand);
    border: 1.5px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-ghost); }
.btn-sm { min-height: 33px; padding: .25rem .75rem; font-size: .82rem; }
.btn:focus-visible, .btn-outline:focus-visible, .btn-abmelden:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}

/* ---- Formulare ----------------------------------------------------------- */
.field { margin-bottom: 1rem; }
label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .3rem;
}
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], input[type=date], input[type=file], select, textarea {
    width: 100%;
    min-height: 42px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: .9rem;
    padding: .5rem .75rem;
    appearance: none;
}
textarea { min-height: 100px; resize: vertical; }
input[type=date]::-webkit-calendar-picker-indicator { opacity: .45; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent);
}
.help { color: var(--ink-soft); font-size: .78rem; margin-top: .3rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ---- Flash-Meldungen ------------------------------------------------------ */
.flash {
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.flash-success { background: var(--green-bg); color: var(--green); }
.flash-error   { background: var(--red-bg);   color: var(--red); }
.flash-info    { background: var(--brand-soft); color: var(--brand-deep); }

/* ---- Leerzustände --------------------------------------------------------- */
.empty {
    text-align: center;
    color: var(--ink-soft);
    padding: 3rem 1.5rem;
}
.empty p { margin: 0 0 1rem; }

/* ---- Tabs ------------------------------------------------------------------ */
.tabs {
    display: flex;
    gap: 1.4rem;
    border-bottom: 1.5px solid var(--line);
    margin-bottom: 1.2rem;
}
.tabs a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    padding: .5rem 0 .55rem;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
}
.tabs a:hover { color: var(--ink); }
.tabs a.aktiv {
    color: var(--brand);
    font-weight: 800;
    border-bottom-color: var(--brand);
}

/* ---- Drag-and-drop-Zone ----------------------------------------------------- */
.dropzone {
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
    padding: 2.2rem 1.5rem;
    cursor: pointer;
}
.dropzone svg { width: 34px; height: 34px; stroke: var(--ink-soft); fill: none; stroke-width: 1.6; margin-bottom: .5rem; }
.dropzone .haupt { font-weight: 700; }
.dropzone .hinweis { color: var(--ink-soft); font-size: .82rem; margin-top: .2rem; }
.dropzone input[type=file] { display: none; }
.dropzone:hover, .dropzone.drueber {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 4%, var(--surface));
}
.dropzone .datei {
    margin-top: .8rem;
    font-family: var(--mono);
    font-size: .82rem;
    color: var(--brand-deep);
}

/* ---- Fortschrittsbalken (Ampellogik) ----------------------------------------- */
.meter {
    height: 12px;
    border-radius: 99px;
    background: var(--paper);
    border: 1px solid var(--line);
    overflow: hidden;
}
.meter > span { display: block; height: 100%; border-radius: 99px; }
.meter-green > span { background: var(--green); }
.meter-amber > span { background: var(--amber); }
.meter-red   > span { background: var(--red); }

/* ---- Modale Dialoge ------------------------------------------------------------ */
.dw-dialog {
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(22,35,46,.28);
    padding: 1.4rem 1.5rem;
    max-width: 460px;
    width: calc(100% - 2rem);
}
.dw-dialog::backdrop { background: rgba(22,35,46,.45); }

/* ---- Login / öffentliche Seiten -------------------------------------------------- */
.auth-seite {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(600px 400px at 85% -5%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%),
        var(--paper);
}
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 2rem 1.8rem;
    width: 100%;
    max-width: 400px;
}
.auth-marke { text-align: center; margin-bottom: 1.4rem; }
.auth-marke .name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; display: block; }
.auth-marke .zusatz {
    color: var(--brand);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
}
.code-input {
    font-family: var(--mono);
    font-size: 1.35rem;
    letter-spacing: .45em;
    text-align: center;
}

/* ---- Kleinkram -------------------------------------------------------------------- */
.text-soft { color: var(--ink-soft); }
.text-klein { font-size: .82rem; }
.mb-0 { margin-bottom: 0; }

/* ---- Responsiv --------------------------------------------------------------------- */
@media (max-width: 900px) {
    .app { grid-template-columns: 1fr; }
    .sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: .3rem;
        padding: .7rem 1rem;
    }
    .sidebar-marke { padding: 0 .8rem 0 0; }
    .sidebar nav { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem; flex: 1; }
    .nav-label { display: none; }
    .nav-punkt { padding: .4rem .55rem; }
    .sidebar-benutzer { border: none; padding: 0; display: flex; align-items: center; gap: .6rem; }
    .sidebar-benutzer .rolle { display: none; }
    .sidebar-benutzer form { margin: 0; }
    .topbar, .content { padding-left: 1rem; padding-right: 1rem; }
    .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
    .btn, .btn-outline, .nav-punkt, .tabs a, input, select, textarea, .dropzone {
        transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
    }
}

/* ==========================================================================
   Phase 2: Fragenverwaltung, Import, Meldungen, Simulation
   ========================================================================== */

/* Filterzeile über Tabellen */
.filterzeile {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr auto;
    gap: .8rem;
    align-items: center;
}

/* Antwortzeilen im Fragen-Formular */
.antwort-zeile {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: .7rem;
    align-items: center;
    margin-bottom: .55rem;
}
.antwort-zeile input[type=checkbox] {
    width: 19px;
    height: 19px;
    accent-color: var(--brand);
}

/* Kategorien-Inline-Bearbeitung */
.kategorie-zeile {
    display: grid;
    grid-template-columns: 1fr 110px 110px 90px 120px 190px;
    gap: .7rem;
    align-items: center;
    padding: .55rem .7rem;
}
.kategorie-zeile .kontrollfeld {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    font-size: .82rem;
    margin: 0;
}
.kategorie-zeile input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); }
.zeilen-aktionen { display: flex; gap: .45rem; justify-content: flex-end; }

/* Seitennummern */
.seiten { display: flex; gap: .3rem; margin-top: 1rem; flex-wrap: wrap; }
.seiten a {
    min-width: 34px;
    text-align: center;
    padding: .3rem .5rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink-soft);
}
.seiten a.aktiv { border-color: var(--brand); color: var(--brand); background: var(--brand-ghost); }

/* Meldungs-Karten */
.meldung-kopf { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.meldung-aktion {
    display: grid;
    grid-template-columns: 170px 1fr auto auto;
    gap: .6rem;
    align-items: center;
    margin-top: .7rem;
}

/* Vorlagen-Karten auf der Start-Seite */
.vorlage-karte { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Prüfungsansicht */
.timer {
    font-family: var(--mono);
    font-size: 1.02rem;
    font-weight: 700;
    background: var(--brand-soft);
    color: var(--brand-deep);
    border-radius: var(--radius-sm);
    padding: .45rem .8rem;
    min-width: 92px;
    text-align: center;
}
.timer-knapp { background: var(--red-bg); color: var(--red); }

.kopierschutz { position: relative; overflow: hidden; }
.frage-text {
    font-size: 1.06rem;
    font-weight: 600;
    user-select: none;
    -webkit-user-select: none;
}
.wasserzeichen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-24deg);
    font-family: var(--mono);
    font-size: 1.5rem;
    color: var(--ink);
    opacity: .05;
    pointer-events: none;
    white-space: nowrap;
}

.optionen { display: grid; gap: .6rem; margin-top: .6rem; }
.option {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .7rem .9rem;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
    font-size: .95rem;
}
.option:hover { border-color: var(--brand); background: var(--brand-ghost); }
.option input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--brand); flex-shrink: 0; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* Auswertung */
.kategorie-ergebnis { margin-bottom: .9rem; }
.kategorie-ergebnis-kopf { display: flex; justify-content: space-between; gap: .8rem; margin-bottom: .3rem; }
.nachbereitung { border-top: 1px solid var(--line); padding: .8rem 0; }
.nachbereitung:first-of-type { border-top: none; }
.nachbereitung .frage-text { user-select: text; -webkit-user-select: text; font-size: .95rem; }

@media (max-width: 900px) {
    .filterzeile, .meldung-aktion { grid-template-columns: 1fr; }
    .kategorie-zeile { grid-template-columns: 1fr 1fr; }
    .wasserzeichen { font-size: 1rem; }
}

/* ==========================================================================
   Phase 3: Registrierung, Verkauf, Rechnungen, Demo
   ========================================================================== */

.auth-links {
    margin-top: 1.1rem;
    text-align: center;
    font-size: .85rem;
    color: var(--ink-soft);
}
.auth-links a { color: var(--brand); text-decoration: none; font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

/* Honeypot unsichtbar, aber nicht display:none (manche Bots erkennen das) */
.hp-feld {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    overflow: hidden;
}

/* Produkt-Inline-Zeile */
.produkt-zeile {
    display: grid;
    grid-template-columns: 1.4fr 120px 100px 90px 1fr 50px 80px 190px;
    gap: .6rem;
    align-items: center;
    padding: .55rem .7rem;
}
.produkt-zeile .kontrollfeld { display: flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .82rem; margin: 0; }
.produkt-zeile input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); }
.az-eingabe { font-family: var(--mono); font-size: .82rem; }

/* Demo im bare Layout etwas breiter */
.auth-card:has(.demo-breit) { max-width: 720px; }
.demo-ergebnis { text-align: center; padding: .6rem 0; }
.demo-ergebnis .zahl { font-size: 3rem; font-weight: 800; color: var(--brand-deep); line-height: 1.1; }

@media (max-width: 900px) {
    .produkt-zeile { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Phase 4: Karteikarten, Übung, Gutscheine
   ========================================================================== */

.option-korrekt { border-color: var(--green) !important; background: var(--green-bg) !important; }
.option-falsch  { border-color: var(--red) !important;   background: var(--red-bg) !important; }

.erklaerung {
    margin-top: .9rem;
    padding: .7rem .9rem;
    background: var(--brand-ghost);
    border-left: 3px solid var(--brand);
    border-radius: 0 8px 8px 0;
    font-size: .88rem;
}

.karte-aktionen { display: flex; gap: .6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.karte-aktionen form { display: flex; gap: .6rem; }
.termin-zeile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.termin-formular { display: flex; gap: .5rem; align-items: center; }

/* ==========================================================================
   Phase 5: Situationen, Zuordnungsfragen, Verwaltung
   ========================================================================== */

.vignette {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 0 10px 10px 0;
    padding: .8rem 1rem;
    margin-bottom: 1rem;
}
.vignette-titel { font-weight: 700; font-size: .85rem; margin: 0 0 .25rem; color: var(--brand-deep); }
.vignette-text { font-size: .9rem; margin: 0; color: var(--ink-soft); }

.zuordnung { display: grid; gap: .6rem; margin-top: .6rem; }
.zuordnung-zeile {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .6rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .55rem .8rem;
    background: var(--card);
}
.zuordnung-zeile select { min-width: 240px; }
.zuordnung-links { font-weight: 600; font-size: .92rem; }

.paar-zeile {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .6rem;
    align-items: center;
    margin-bottom: .55rem;
}
.paar-pfeil { color: var(--ink-soft); font-weight: 700; }

@media (max-width: 700px) {
    .zuordnung-zeile { grid-template-columns: 1fr; }
    .zuordnung-zeile select { min-width: 0; width: 100%; }
}

/* ==========================================================================
   Phase 6: Fixes – Spaltenbreiten, Passwort-Ampel, Demo-Badge
   ========================================================================== */

/* type=search: Browser-Dekorationen entfernen (Styling kommt oben mit) */
input[type=search] { -webkit-appearance: none; appearance: none; }
input[type=search]::-webkit-search-decoration,
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Feste Spaltenbreiten für schmale Tabellenspalten – der Rest bleibt flexibel */
th.sp-80  { width: 80px; }
th.sp-90  { width: 90px; }
th.sp-110 { width: 110px; }
th.sp-120 { width: 120px; }
th.sp-130 { width: 130px; }
th.sp-150 { width: 150px; }
th.sp-180 { width: 180px; }
th.sp-220 { width: 220px; }

.badge-brand { background: var(--brand-soft); color: var(--brand-deep); }

/* Passwort-Ampel (BSI-orientiert): Balken + ein Wort, keine Anforderungsliste */
.pw-meter {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: .45rem;
}
.pw-balken {
    flex: 1;
    height: 8px;
    border-radius: 99px;
    background: var(--line);
    overflow: hidden;
}
.pw-balken span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: width .25s ease, background .25s ease;
}
.pw-wort {
    font-size: .76rem;
    font-weight: 700;
    min-width: 86px;
    text-align: right;
    color: var(--ink-soft);
}
.pw-rot span   { background: var(--red);   width: 33%; }
.pw-gelb span  { background: var(--amber); width: 66%; }
.pw-gruen span { background: var(--green); width: 100%; }
.pw-rot .pw-wort,
.pw-meter.pw-rot   .pw-wort { color: var(--red); }
.pw-meter.pw-gelb  .pw-wort { color: var(--amber); }
.pw-meter.pw-gruen .pw-wort { color: var(--green); }

/* ==========================================================================
   Verkauf 2.0: Angebote, Checkout, Bestellungen
   ========================================================================== */

.angebote {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.2rem;
    align-items: start;
}
.angebot { margin-bottom: 0; }
.angebot-preis { font-size: 1.25rem; font-weight: 800; color: var(--brand-deep); margin: .3rem 0 .4rem; }

.leistungen { list-style: none; padding: 0; margin: .5rem 0 .9rem; }
.leistungen li {
    position: relative;
    padding: .22rem 0 .22rem 1.5rem;
    font-size: .88rem;
}
.leistungen li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 800;
}

.checkout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.2rem;
    align-items: start;
}
.checkout-zusammenfassung { position: sticky; top: 76px; }
.checkout .summe {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1.5px solid var(--line);
    margin-top: .8rem;
    padding: .7rem 0 .4rem;
    font-size: 1.05rem;
}
.zahlarten { display: grid; gap: .6rem; }
.zahlart-aus { opacity: .55; }

.kontrollfeld-lang {
    display: flex !important;
    align-items: flex-start;
    gap: .6rem;
    font-weight: 450 !important;
    font-size: .86rem;
    margin-bottom: .7rem;
    line-height: 1.5;
}
.kontrollfeld-lang input[type=checkbox] { margin-top: .2rem; width: 17px; height: 17px; accent-color: var(--brand); flex-shrink: 0; }

.schritte { margin: .6rem 0 1rem 1.2rem; }
.schritte li { margin-bottom: .35rem; font-size: .92rem; }

.produkt-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }

.rechtstext { font-size: .9rem; line-height: 1.65; text-align: left; }

@media (max-width: 900px) {
    .checkout { grid-template-columns: 1fr; }
    .checkout-zusammenfassung { position: static; }
}
