@import "marke-GdRnwA1.css";

:root {
    --fs-h1: 1.75rem;
    --fs-h2: 1.0625rem;
    --fs-h3: 1rem;
    --fs-body: 0.9375rem;
    --fs-sm: 0.875rem;
    --fs-xs: 0.8125rem;
    --lh-body: 1.55;
    --font-zahl: var(--font-body);

    --surface-page: var(--wm-ink-050);
    --surface-card: var(--wm-white);
    --surface-side: var(--wm-white);
    --surface-subtle: var(--wm-ink-100);
    --surface-hover: var(--wm-ink-100);
    --hervorheb-farbe: var(--wm-green-050);
    --text-accent: var(--wm-green-700);
    --radius-card: 12px;
    --shadow-card: 0 1px 2px rgba(16, 20, 16, .05);
    --feld-hoehe: 40px;
    --seitenleiste-breite: 240px;
}
:root[data-theme="dunkel"] {
    --text-heading: var(--wm-white);
    --text-body: var(--wm-ink-100);
    --text-muted: var(--wm-ink-300);
    --text-link: var(--wm-green-400);
    --text-link-hover: var(--wm-green-300);
    --text-accent: var(--wm-green-400);
    --surface-page: var(--wm-ink-900);
    --surface-card: var(--wm-ink-800);
    --surface-side: var(--wm-ink-800);
    --surface-subtle: var(--wm-ink-700);
    --surface-hover: var(--wm-ink-700);
    --surface-accent-soft: #23301a;
    --hervorheb-farbe: #1d2616;
    --border-subtle: var(--wm-ink-600);
    --border-strong: var(--wm-ink-500);
    --shadow-card: none;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-body);
    background: var(--surface-page);
    -webkit-font-smoothing: antialiased;
    transition: background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
h1, h2, h3, h4, h5 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    color: var(--text-heading);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--space-4); }
small { color: var(--text-muted); }
code { font-size: .9em; padding: 1px 6px; border-radius: var(--radius-xs); background: var(--surface-hover); }
a { color: var(--text-link); text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
a:hover { color: var(--text-link-hover); }
*:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
:root[data-theme="dunkel"] *:focus-visible { outline-color: var(--wm-green-400); }
.gefahr { color: var(--wm-danger); }
.gedaempft { color: var(--text-muted); }
.nur-lesen { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.turbo-progress-bar { background: var(--brand-primary); }
button, input[type="submit"], .knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: var(--feld-hoehe);
    padding: 8px 20px;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    color: var(--brand-on-primary);
    background: var(--brand-primary);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard),
        border-color var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
button:hover, input[type="submit"]:hover, .knopf:hover { background: var(--brand-primary-hover); color: var(--brand-on-primary); box-shadow: var(--shadow-accent); }
button:active, input[type="submit"]:active, .knopf:active { background: var(--brand-primary-active); box-shadow: none; }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.knopf .symbol, button .symbol { flex: none; }
.knopf-leise {
    background: var(--surface-card);
    color: var(--text-heading);
    border-color: var(--border-strong);
}
.knopf-leise:hover { background: var(--surface-hover); color: var(--text-heading); border-color: var(--border-strong); box-shadow: none; }
.knopf-leise:active { background: var(--surface-subtle); }
.knopf-text {
    background: transparent;
    color: var(--text-body);
    border-color: transparent;
    padding-left: 12px;
    padding-right: 12px;
}
.knopf-text:hover { background: var(--surface-hover); color: var(--text-heading); box-shadow: none; }
.knopf-gefahr { background: transparent; color: var(--wm-danger); border-color: var(--wm-danger); }
.knopf-gefahr:hover { background: var(--wm-danger); color: var(--wm-white); border-color: var(--wm-danger); box-shadow: none; }
.knopf-klein, .knopf-leise.knopf-klein { min-height: 32px; padding: 5px 14px; font-size: var(--fs-xs); }
form[action$="/loeschen"] button, form[action$="/umbenennen"] button {
    min-height: 32px;
    padding: 5px 14px;
    font-size: var(--fs-xs);
    background: var(--surface-card);
    color: var(--text-heading);
    border-color: var(--border-strong);
}
form[action$="/umbenennen"] button:hover { background: var(--surface-hover); box-shadow: none; }
form[action$="/loeschen"] button { color: var(--wm-danger); border-color: var(--border-strong); }
form[action$="/loeschen"] button:hover { background: var(--wm-danger); border-color: var(--wm-danger); color: var(--wm-white); box-shadow: none; }
form { font-family: var(--font-body); }
label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--text-heading);
}
:where(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]), select, textarea) {
    width: 100%;
    max-width: 480px;
    min-height: var(--feld-hoehe);
    margin-bottom: var(--space-3);
    padding: 9px 14px;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--text-heading);
    background: var(--surface-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
:where(input, select, textarea)::placeholder { color: var(--text-muted); opacity: .8; }
:where(input, select, textarea):hover { border-color: var(--wm-ink-400); }
:where(input, select, textarea):focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--surface-accent-soft); }
:where(textarea) { max-width: 100%; min-height: 7em; line-height: 1.5; }
:where(select) { cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 0 6px 0 0; accent-color: var(--brand-primary); vertical-align: middle; }
input[type="color"] { width: 64px; height: var(--feld-hoehe); padding: 4px; cursor: pointer; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-card); }
input[type="range"] { accent-color: var(--brand-primary); }
form div > ul:not([class]) {
    margin: -6px 0 var(--space-3);
    padding: 0;
    list-style: none;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--wm-danger);
}
form ul:not([class]) li + li { margin-top: 2px; }
form div:has(> input[type="checkbox"]) {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}
form div:has(> input[type="checkbox"]) label { margin: 0; font-weight: var(--fw-medium); }
form div:has(> input[type="checkbox"]) input { margin: 0; }
.feld { display: grid; gap: 6px; }
.feld > span { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-heading); }
.feld input, .feld select { max-width: none; margin: 0; }
.feld input.code-eingabe { min-height: 56px; font-size: 1.5rem; letter-spacing: .35em; text-align: center; padding: 12px; }
.hilfe { margin: 4px 0 var(--space-3); font-size: var(--fs-xs); color: var(--text-muted); }
table {
    width: 100%;
    margin-bottom: var(--space-5);
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
}
th, td { padding: 12px var(--space-4); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border-subtle); font-size: var(--fs-sm); }
th {
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface-subtle);
    white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--dur-fast) var(--ease-standard); }
tbody tr:hover { background: var(--surface-page); }
:root[data-theme="dunkel"] tbody tr:hover { background: var(--surface-subtle); }
td form { display: inline-block; margin: 0; }
td form + form { margin-left: var(--space-2); }
td:has(form) { white-space: nowrap; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
td.aktionen, th.aktionen { width: 1%; white-space: nowrap; text-align: right; }
.seitenkopf {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}
.seitenkopf h1 { margin: 0; }
.seitenkopf-text { margin: 4px 0 0; max-width: 46em; font-size: var(--fs-sm); color: var(--text-muted); }
.seitenkopf-aktionen { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.karte, .panel {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: var(--space-5);
    box-shadow: var(--shadow-card);
}
.karte > :first-child, .panel > :first-child { margin-top: 0; }
.karte > :last-child, .panel > :last-child { margin-bottom: 0; }
.panel h2, .karte h2 { margin: 0 0 var(--space-4); font-size: var(--fs-h2); }
.panel h3, .karte h3 { margin: 0 0 var(--space-3); }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.karte-kopf h2 { margin: 0; }
.karte table, .panel table { margin: 0; border: 0; border-radius: 0; }
.karte table th:first-child, .panel table th:first-child { padding-left: 0; }
.karte table td:first-child, .panel table td:first-child { padding-left: 0; }
.karte table th, .panel table th { background: transparent; border-bottom: 1px solid var(--border-subtle); }
.reiter {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    margin: 0 0 var(--space-4);
    padding: 3px;
    background: var(--surface-subtle);
    border-radius: var(--radius-pill);
}
.reiter a {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    line-height: 1.4;
}
.reiter a:hover { color: var(--text-heading); }
.reiter a[aria-current="page"] {
    background: var(--surface-card);
    color: var(--text-heading);
    box-shadow: 0 1px 3px rgba(16, 20, 16, .12);
}
:root[data-theme="dunkel"] .reiter a[aria-current="page"] { background: var(--wm-ink-600); }
.bericht-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin-bottom: var(--space-4); }
.bericht-filter > div { display: flex; flex-direction: column; }
.bericht-filter label { margin-bottom: 4px; }
.bericht-filter input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]), .bericht-filter select { width: auto; max-width: 300px; margin: 0; }
.bericht-filter button { margin: 0; }
.abzeichen {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: var(--surface-accent-soft);
    color: var(--wm-green-800);
    font-size: 0.75rem;
    font-weight: var(--fw-semibold);
    line-height: 1.6;
    white-space: nowrap;
}
.abzeichen-blau { background: var(--wm-blue-100); color: var(--wm-blue-700); }
.abzeichen-grau { background: var(--surface-subtle); color: var(--text-muted); }
.abzeichen-gelb { background: #fbf0d9; color: #8a5a00; }
.abzeichen-gruen { background: var(--wm-green-100); color: var(--wm-green-800); }
.abzeichen-rot { background: #fbeaea; color: #a82424; }
:root[data-theme="dunkel"] .abzeichen { background: #23301a; color: var(--wm-green-300); }
:root[data-theme="dunkel"] .abzeichen-blau { background: #14284a; color: var(--wm-blue-200); }
:root[data-theme="dunkel"] .abzeichen-grau { background: var(--wm-ink-700); color: var(--wm-ink-300); }
:root[data-theme="dunkel"] .abzeichen-gelb { background: #3a2c0d; color: #e8c169; }
:root[data-theme="dunkel"] .abzeichen-gruen { background: #1c2a10; color: var(--wm-green-300); }
:root[data-theme="dunkel"] .abzeichen-rot { background: #3a1f1f; color: #f0a3a3; }
.aktionsmenue { position: relative; display: inline-block; }
.aktionsmenue > summary {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    list-style: none;
}
.aktionsmenue > summary::-webkit-details-marker { display: none; }
.aktionsmenue > summary:hover, .aktionsmenue[open] > summary { background: var(--surface-hover); color: var(--text-heading); }
.leerzustand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: 48px var(--space-5);
    text-align: center;
    background: var(--surface-card);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-card);
}
.leerzustand .symbol { width: 40px; height: 40px; margin-bottom: var(--space-2); padding: 9px; border-radius: 50%; background: var(--surface-accent-soft); color: var(--text-accent); }
.leerzustand h2 { margin: 0; font-size: var(--fs-h3); }
.leerzustand p { max-width: 36em; margin: 0 0 var(--space-3); font-size: var(--fs-sm); color: var(--text-muted); }
.flash-erfolg, .flash-fehler {
    margin: var(--space-5) var(--space-6) 0;
    padding: 12px var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid;
    border-left-width: 4px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}
.flash-erfolg { background: var(--wm-green-050); color: var(--wm-green-900); border-color: var(--wm-green-200); border-left-color: var(--wm-green-500); }
.flash-fehler { background: #fdf2f2; color: #8f2020; border-color: #f1c4c4; border-left-color: var(--wm-danger); }
:root[data-theme="dunkel"] .flash-erfolg { background: #1c2a10; color: var(--wm-green-300); border-color: var(--wm-green-800); border-left-color: var(--wm-green-500); }
:root[data-theme="dunkel"] .flash-fehler { background: #3a1f1f; color: #f0a3a3; border-color: #6b2b2b; border-left-color: var(--wm-danger); }
.hinweis { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 var(--space-4); padding: 12px var(--space-4); border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.hinweis.oben { margin-top: var(--space-4); }
.hinweis.fehler { background: #fdf2f2; color: #8f2020; }
:root[data-theme="dunkel"] .hinweis.fehler { background: #3a1f1f; color: #f0a3a3; }
.eyebrow { margin-bottom: 6px; font-size: var(--fs-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-accent); }
.formular-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: var(--space-5); align-items: start; max-width: 1100px; }
.formular-raster .panel input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]), .formular-raster .panel select, .formular-raster .karte input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]), .formular-raster .karte select { max-width: none; }
.schmal { max-width: 640px; }
.rahmen { display: flex; min-height: 100vh; }
.hauptbereich { flex: 1; min-width: 0; }
.inhalt { max-width: none; margin: 0 auto; padding: var(--space-6) var(--space-6) 64px; }
.seitenleiste {
    width: var(--seitenleiste-breite);
    flex: none;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-3) var(--space-3);
    background: var(--surface-side);
    border-right: 1px solid var(--border-subtle);
}
.marke { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-2) var(--space-3); }
.marke img { display: block; height: 32px; width: auto; }
.marke .marke-logo-dunkel { display: none; }
.marke-name { font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--text-heading); font-size: 1.0625rem; }
:root[data-theme="dunkel"] .marke .marke-logo-hell { display: none; }
:root[data-theme="dunkel"] .marke .marke-logo-dunkel { display: block; }
.marke .marke-logo-hell + .marke-logo-dunkel + .marke-name { margin-left: -4px; }
.menue { display: flex; flex-direction: column; gap: 1px; }
.menue a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    line-height: 1.3;
}
.menue a .symbol { flex: none; color: var(--text-muted); transition: color var(--dur-fast) var(--ease-standard); }
.menue a:hover { background: var(--surface-hover); color: var(--text-heading); }
.menue a:hover .symbol { color: var(--text-heading); }
.menue a[aria-current="page"] { background: var(--surface-accent-soft); color: var(--text-accent); font-weight: var(--fw-semibold); }
.menue a[aria-current="page"] .symbol { color: var(--text-accent); }
.seitenleiste-fuss { margin-top: auto; display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.konto { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 var(--space-1); }
.konto-initial {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-accent-soft);
    color: var(--text-accent);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
}
.konto-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--text-muted); }
.fuss-werkzeuge { display: flex; gap: 2px; }
.menue-form { display: contents; }
.werkzeug {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    box-shadow: none;
}
.werkzeug:hover, .werkzeug[aria-current="page"] { background: var(--surface-hover); color: var(--text-heading); box-shadow: none; }
.werkzeug[aria-current="page"] { color: var(--text-accent); }
.glocke { flex: 1; display: flex; }
.glocke summary { list-style: none; width: 100%; }
.glocke summary::-webkit-details-marker { display: none; }
.glocke .zaehler {
    position: absolute;
    top: 2px;
    right: 6px;
    min-width: 17px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--surface-subtle);
    color: var(--text-heading);
    font-size: 0.6875rem;
    font-weight: var(--fw-bold);
    line-height: 17px;
    text-align: center;
}
.glocke .zaehler-offen { background: var(--wm-danger); color: var(--wm-white); }
.glocke-liste {
    position: fixed;
    left: calc(var(--seitenleiste-breite) + 8px);
    bottom: var(--space-4);
    width: 360px;
    max-height: 70vh;
    overflow-y: auto;
    padding: var(--space-4);
    background: var(--surface-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    z-index: 60;
}
.glocke-liste > p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.zaehler { color: var(--text-muted); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.gast { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; min-height: 100vh; }
.gast-marke { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; background: var(--wm-ink-800); color: #fff; }
.gast-marke::before { content: ""; position: absolute; left: -140px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: var(--wm-green-500); opacity: .9; }
.gast-marke::after { content: ""; position: absolute; right: -90px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: var(--wm-blue-600); opacity: .55; }
.gast-marke > * { position: relative; z-index: 1; }
.gast-marke img { width: min(260px, 70%); height: auto; }
.gast-marke p { margin: 0; max-width: 14em; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 1.5rem; line-height: var(--lh-heading); color: #fff; }
.gast-marke small { color: rgba(255, 255, 255, .7); font-size: var(--fs-xs); }
.gast-inhalt { display: grid; place-items: center; padding: 32px 24px; background: var(--surface-page); }
.gast-karte { width: min(420px, 100%); }
.gast-karte h1 { margin-bottom: 8px; font-size: clamp(1.625rem, 2.6vw, 2.25rem); }
.gast-karte .feld input { min-height: 50px; padding: 12px 14px; font-size: var(--fs-sm); }
.gast-karte form { display: grid; gap: 16px; margin-top: 24px; }
.gast-karte .knopf, .gast-karte form > button { width: 100%; min-height: 48px; padding: 14px 26px; font-size: 15px; }
.gast-karte .fussnote { margin-top: 20px; text-align: center; }
.gast-karte form.fussnote > button { width: auto; min-height: 0; padding: 4px 2px; font-size: var(--fs-sm); }
.gast-karte p { font-size: var(--fs-sm); }
.textknopf { min-height: 0; padding: 4px 2px; border: 0; border-radius: var(--radius-xs); background: none; color: var(--text-link); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.textknopf:hover { background: none; color: var(--text-link-hover); text-decoration: underline; box-shadow: none; }
.fehlernummer { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--brand-primary); letter-spacing: var(--ls-display); }
@media (max-width: 960px) {
.rahmen { flex-direction: column; }
.seitenleiste { position: static; width: auto; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-3); border-right: 0; border-bottom: 1px solid var(--border-subtle); }
.marke { padding: 0 var(--space-2); }
.menue { flex-direction: row; flex: 1 1 100%; order: 3; overflow-x: auto; padding-bottom: 2px; }
.menue a { width: auto; flex: none; white-space: nowrap; }
.seitenleiste-fuss { margin: 0 0 0 auto; padding: 0; border-top: 0; display: flex; align-items: center; }
.konto { display: none; }
.werkzeug { flex: none; width: 36px; }
.glocke { flex: none; }
.glocke-liste { left: var(--space-3); right: var(--space-3); bottom: auto; top: 64px; width: auto; }
.inhalt { padding: var(--space-4) var(--space-4) 48px; }
.flash-erfolg, .flash-fehler { margin-left: var(--space-4); margin-right: var(--space-4); }
.gast { grid-template-columns: 1fr; }
.gast-marke { padding: 28px 24px 56px; gap: 20px; }
.gast-marke p { font-size: 1.25rem; }
.gast-marke::before { width: 220px; height: 220px; left: -90px; bottom: -120px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: var(--space-5);
}
.kachel {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-top: 4px solid var(--kachel-farbe, var(--brand-primary));
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.kachel:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kachel h3 { margin: 0; font-size: 1.1875rem; }
.kachel h3 a { color: var(--text-heading); }
.kachel h3 a:hover { color: var(--text-accent); }
.kennzahlen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.kennzahl { padding: var(--space-4) var(--space-5); border-left: 1px solid var(--border-subtle); }
.kennzahl:first-child { border-left: 0; }
.kennzahl-wert { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 1.625rem; font-weight: var(--fw-bold); color: var(--text-heading); font-variant-numeric: tabular-nums; }
.kommentar { padding: var(--space-3) 0; border-top: 1px solid var(--border-subtle); }
.kommentar p { margin: var(--space-1) 0; white-space: normal; }
.kommentar footer { display: flex; align-items: center; justify-content: space-between; }
.kommentar footer form { margin: 0; }
turbo-frame#aufgabe-dialog:empty, turbo-frame#projekt-dialog:empty { display: none; }
.inhalt { max-width: none; }
.flash-erfolg, .flash-fehler { max-width: none; }
.kacheln { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.kachel { min-width: 0; }
.zaehler { color: var(--text-muted); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
turbo-frame#uhr-dialog:empty { display: none; }
@keyframes laufende-uhr-puls { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hinweisliste { list-style: none; margin: 0; padding: 0; }
.hinweisliste li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: var(--fs-sm);
}
.hinweisliste li:last-child { border-bottom: 0; }
.hinweisliste li > div { min-width: 0; }
.hinweisliste a { font-weight: var(--fw-semibold); }
.hinweisliste small { display: block; margin-top: 2px; }
.hinweisliste form { margin: 0; flex: none; }
.hinweisliste button { padding: 5px 12px; font-size: var(--fs-xs); }
.glocke-liste .hinweisliste li { padding: var(--space-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
table thead tr:first-child th:first-child { border-top-left-radius: calc(var(--radius-card) - 1px); }
table thead tr:first-child th:last-child { border-top-right-radius: calc(var(--radius-card) - 1px); }
table tbody tr:last-child td:first-child { border-bottom-left-radius: calc(var(--radius-card) - 1px); }
table tbody tr:last-child td:last-child { border-bottom-right-radius: calc(var(--radius-card) - 1px); }
.karte table thead th, .panel table thead th { border-radius: 0; }
.kennzahl-wert, .zaehler {
    font-family: var(--font-zahl);
    font-variant-numeric: tabular-nums;
}
.kacheln { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--space-4); }
.kachel {
    gap: var(--space-4);
    padding: var(--space-5);
    border-top-width: 3px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}
.kachel:hover { box-shadow: var(--shadow-md); transform: none; border-color: var(--border-strong); border-top-color: var(--kachel-farbe, var(--brand-primary)); }
.kachel h3 { font-size: 1.0625rem; margin: 0; }
.kennzahlen { box-shadow: var(--shadow-card); border-radius: var(--radius-card); }
.kennzahl-wert { font-size: 1.625rem; font-weight: var(--fw-bold); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.hinweisliste li { padding: var(--space-3) 0; }
.hinweisliste li:first-child { padding-top: 0; }
.hinweisliste a { color: var(--text-heading); }
.hinweisliste a:hover { color: var(--text-accent); }
.hinweisliste button { min-height: 30px; }
table td a:not(.knopf) { color: var(--text-heading); font-weight: var(--fw-semibold); }
table td a:not(.knopf):hover { color: var(--text-accent); }
.verlauf { margin-top: var(--space-5); }
form div:has(> input[type="radio"]) { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-bottom: var(--space-4); padding: 3px; background: var(--surface-subtle); border-radius: var(--radius-pill); }
form div > input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
form div > input[type="radio"] + label { display: block; margin: 0; padding: 7px 16px; border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted); cursor: pointer; transition: background var(--dur-fast) var(--ease-standard); }
form div > input[type="radio"]:checked + label { background: var(--surface-card); color: var(--text-heading); box-shadow: 0 1px 3px rgba(16, 20, 16, .12); }
form div > input[type="radio"]:focus-visible + label { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: var(--space-3); padding: 0; font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 960px) {
.menue { min-width: 0; }
.seitenleiste { max-width: 100vw; }
.kennzahlen { grid-template-columns: repeat(2, 1fr); }
.kennzahl:nth-child(odd) { border-left: 0; }
.kennzahl:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
.formular-raster { grid-template-columns: 1fr; }
.seitenkopf-aktionen { width: 100%; }
table { display: block; overflow-x: auto; }
}
.seitenleiste { z-index: 25; }
@media (max-width: 960px) {
.seitenleiste { position: relative; }
}
.filterkarte { margin-bottom: var(--space-5); padding: var(--space-4) var(--space-5); }
.filter-raster { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) repeat(2, minmax(0, 1fr)) auto; gap: var(--space-3); align-items: end; }
.filter-raster label { margin-bottom: 4px; }
.filter-raster input:not([type="checkbox"]), .filter-raster select { max-width: none; margin: 0; }
.filter-knopf { width: var(--feld-hoehe); padding: 0; border-radius: var(--radius-sm); }
@media (max-width: 960px) {
.filter-raster { grid-template-columns: 1fr 1fr; }
.filter-knopf { width: 100%; }
}
.protokoll-tabelle td { vertical-align: top; }
.protokoll-tabelle .zeit { white-space: nowrap; font-variant-numeric: tabular-nums; }
.objekt-name { color: var(--text-heading); }
.felder-details > summary { cursor: pointer; color: var(--text-link); font-size: var(--fs-sm); font-weight: var(--fw-medium); list-style: none; }
.felder-details > summary::-webkit-details-marker { display: none; }
.felder-details > summary::before { content: "\25B8"; display: inline-block; margin-right: 6px; transition: transform var(--dur-fast) var(--ease-standard); }
.felder-details[open] > summary::before { transform: rotate(90deg); }
.felder-details dl { margin: var(--space-2) 0 0; font-size: var(--fs-xs); }
.felder-details dl > div { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); padding: 2px 0; }
.felder-details dt { color: var(--text-muted); }
.felder-details dt::after { content: ":"; }
.felder-details dd { margin: 0; overflow-wrap: anywhere; color: var(--text-heading); }
.wert-alt { color: var(--text-muted); text-decoration: line-through; }
.wert-neu { font-weight: var(--fw-semibold); }
.wert-pfeil { color: var(--text-muted); }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-4); margin: 0 0 var(--space-5); }
.kennzahl { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4); background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); box-shadow: var(--shadow-xs); }
.kennzahl-wert { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: var(--fw-semibold); line-height: 1.1; color: var(--text-heading); font-variant-numeric: tabular-nums; }
.kennzahl-name { font-weight: var(--fw-semibold); color: var(--text-heading); }
.kennzahl-hinweis { font-size: var(--fs-xs); color: var(--text-muted); }
.diagramm { margin: 0; }
.diagramm-svg { display: block; width: 100%; height: auto; max-width: 100%; }
.diagramm .achse-linie { stroke: var(--border-subtle); stroke-width: 1; }
.diagramm .achse-text { fill: var(--text-muted); font-size: 11px; }
.diagramm .verlauf-linie { stroke: var(--text-accent); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; opacity: 0.9; }
.diagramm .verlauf-punkt { fill: var(--text-accent); stroke: var(--surface-card); stroke-width: 1; opacity: 0.8; }
.diagramm .marke-linie { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.diagramm .marke-punkt { fill: var(--text-heading); }
.diagramm .marke-nummer { fill: var(--surface-card); font-size: 11px; font-weight: 600; }
.marken-liste { margin: var(--space-3) 0 0; padding-left: var(--space-5); font-size: var(--fs-sm); color: var(--text-body); }
.marken-liste li { margin: 2px 0; }
.url-zelle { max-width: 28em; overflow-wrap: anywhere; font-size: var(--fs-sm); }
tr.eigene-zeile td { background: var(--surface-accent-soft); }
.zeilenform { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; }
.zeilenform select, .zeilenform input[type="text"] { min-width: 12em; }
.aktionsreihe { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.beispielliste { columns: 3 16em; margin: 0; padding-left: var(--space-5); font-size: var(--fs-sm); }
.stammbaum { list-style: none; margin: var(--space-2) 0 0; padding-left: var(--space-5); border-left: 2px solid var(--border-subtle); }
.stammbaum-wurzel { padding-left: 0; border-left: 0; }
.stammbaum li { margin: var(--space-3) 0; }
.seitenzeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; }
.seitenzeile input[type="text"] { min-width: 16em; flex: 1; }
.seitenzeile .schmal, .schmal { width: 6em; min-width: 0; }
.lokalkarte { display: block; width: 100%; max-width: 800px; height: auto; margin: 0 auto var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--surface-subtle); }
.lokalkarte-grund { fill: var(--surface-subtle); }
.lokalpunkt { stroke: #fff; stroke-width: 2; cursor: pointer; }
.lokalpunkt:hover, .punkt-gewaehlt { stroke: #111; stroke-width: 3; }
.lokalpunkt-zahl { fill: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 700; pointer-events: none; }
.punkt-gut { fill: #2f8f3a; background: #2f8f3a; }
.punkt-mittel { fill: #d98e04; background: #d98e04; }
.punkt-schlecht { fill: #cf3535; background: #cf3535; }
.punkt-keine { fill: #6b2b2b; background: #6b2b2b; }
.lokalmarker path { fill: #e02020; stroke: #fff; stroke-width: 2; }
.lokalmarker circle { fill: #fff; }
.lokallegende { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0 0 var(--space-3); padding: 0; list-style: none; font-size: var(--fs-sm); }
.lokalpunkt-muster { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }

.inhalt > * + * { margin-top: var(--space-5); }
.inhalt > .seitenkopf { margin-bottom: 0; }
.inhalt > .flash-erfolg, .inhalt > .flash-fehler { margin-right: 0; margin-bottom: 0; margin-left: 0; }
.panel > * + *, .karte > * + * { margin-top: var(--space-4); }
.panel > .panel-fuss { margin-top: var(--space-4); }
.panel > table + p, .panel > table + .aktionsreihe { margin-top: var(--space-4); }

.knopfreihe { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

.kennzahlen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: var(--space-4);
    margin-bottom: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.kennzahl, .kennzahl:first-child {
    padding: var(--space-4) var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}
.kennzahl-wert { display: block; margin: 0; font-size: 1.5rem; line-height: 1.2; }
.kennzahl-wert-klein { font-size: 1.125rem; line-height: 1.3; }
.kennzahl-name { display: block; margin-top: 4px; font-size: var(--fs-sm); }
.kennzahl-hinweis { display: block; margin-top: 4px; line-height: 1.4; }

form[name] > div > div { margin-bottom: var(--space-4); }
form[name] > div > div > label { margin-bottom: 6px; font-size: var(--fs-sm); }
form[name] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]), form[name] select { margin-bottom: 0; max-width: 32em; }
form[name] textarea { margin-bottom: 0; max-width: 46em; }
.help-text { margin-top: 6px; max-width: 46em; font-size: var(--fs-xs); line-height: 1.45; color: var(--text-muted); }
form[name] > button, form[name] > div + button { margin-top: var(--space-2); }
form[name] ul:not([class]) { margin: 6px 0 0; padding-left: var(--space-4); font-size: var(--fs-xs); color: var(--wm-danger); }
.panel form > label + input, .panel form > label + select { margin-top: 0; }
.panel form > input[type="text"], .panel form > select { margin-right: var(--space-2); }

.kachelreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-5); align-items: stretch; }
.kachelreihe > .panel { display: flex; flex-direction: column; }
meter { display: block; width: 100%; height: 10px; margin: var(--space-3) 0; border: 0; border-radius: 999px; background: var(--surface-subtle); }
meter::-webkit-meter-bar { height: 10px; background: var(--surface-subtle); border: 0; border-radius: 999px; }
meter::-webkit-meter-optimum-value { background: var(--brand-primary); border-radius: 999px; }
meter::-webkit-meter-suboptimum-value { background: var(--wm-warning); border-radius: 999px; }
meter::-webkit-meter-even-less-good-value { background: var(--wm-danger); border-radius: 999px; }
meter::-moz-meter-bar { background: var(--brand-primary); border-radius: 999px; }

.projektnav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.projektnav-name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted); }
.projektnav .reiter { margin: 0; }
.inhalt > .projektnav + .seitenkopf, .inhalt > .projektnav + * { margin-top: var(--space-5); }

.modulraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-4); }
.modulkachel {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-4) var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    color: var(--text-body);
    text-decoration: none;
    transition: border-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.modulkachel:hover { border-color: var(--brand-primary); transform: translateY(-1px); }
.modulkachel-titel { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-heading); }
.modulkachel-wert { font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--fw-bold); line-height: 1.25; color: var(--text-heading); font-variant-numeric: tabular-nums; }
.modulkachel-text { font-size: var(--fs-xs); line-height: 1.45; color: var(--text-muted); }

.zeilenform { flex-wrap: nowrap; }
.zeilenform > *, .seitenzeile > * { margin-bottom: 0; }
.aktionsreihe { align-items: center; }
td:has(form) .zeilenform { margin: 0; }
td.aktionen form, td form { margin: 0; }
td .knopf-klein, td button { white-space: nowrap; }

.lokalkarte-rahmen { overflow: hidden; border-radius: var(--radius-card); }

.filterleiste { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3) var(--space-4); padding: var(--space-4); background: var(--surface-subtle); border-radius: var(--radius-card); }
.filterfeld { display: flex; flex-direction: column; min-width: 9em; }
.filterfeld-breit { flex: 1 1 16em; min-width: 12em; }
.filterfeld-schmal { width: 6.5em; min-width: 0; }
.filterfeld label { margin-bottom: 4px; }
.filterleiste input, .filterleiste select { max-width: none; margin-bottom: 0; }
.filteraktionen { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }

.massenleiste { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface-card); border: 1px solid var(--brand-primary); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.massenleiste input[type="text"] { width: 16em; max-width: 100%; margin-bottom: 0; }
.massenleiste-zahl { font-size: var(--fs-sm); color: var(--text-muted); }
td.markierung, th.markierung { width: 1%; padding-right: 0; }
td.markierung input, th.markierung input { margin: 0; }
.keywordtabelle td.platzzelle { white-space: nowrap; }
.keywordtabelle .abzeichen { margin-left: 4px; }

.platz { display: inline-block; min-width: 2.2em; padding: 1px 8px; border-radius: 999px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; text-align: center; color: #fff; }
.platz-gut { background: #2f8f3a; }
.platz-mittel { background: #d98e04; }
.platz-schwach { background: #cf3535; }
.platz-tief { background: #6b2b2b; }

.entwicklung-rahmen { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); }
.entwicklung-rahmen:focus-visible { outline: 2px solid var(--focus-ring); }
.entwicklung { display: table; width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; overflow: visible; }
.entwicklung th, .entwicklung td { padding: 6px 8px; border-bottom: 1px solid var(--border-subtle); text-align: center; white-space: nowrap; }
.entwicklung thead th { position: sticky; top: 0; background: var(--surface-card); font-size: var(--fs-xs); }
.entwicklung .entw-keyword { position: sticky; left: 0; z-index: 2; min-width: 15em; max-width: 22em; padding-left: var(--space-4); text-align: left; white-space: normal; background: var(--surface-card); border-right: 1px solid var(--border-subtle); }
.entwicklung thead .entw-keyword { z-index: 3; }
.entwicklung .entw-woche { min-width: 4.2em; }
.entw-jahr { display: block; font-size: 10px; font-weight: var(--fw-regular); color: var(--text-muted); }
.entw-zelle { font-variant-numeric: tabular-nums; font-weight: var(--fw-bold); color: #fff; }
.entw-zelle.platz-gut { background: #2f8f3a; }
.entw-zelle.platz-mittel { background: #d98e04; }
.entw-zelle.platz-schwach { background: #cf3535; }
.entw-zelle.platz-tief { background: #6b2b2b; }
.entw-zelle.entw-ohne { background: #3d2323; color: #f0a3a3; font-weight: var(--fw-semibold); }
.entw-zelle.entw-leer { color: var(--text-muted); font-weight: var(--fw-regular); background: transparent; }
.entw-pfeil { margin-left: 2px; font-size: 9px; vertical-align: 1px; }
.entw-besser { color: #d8f5c8; }
.entw-schlechter { color: #ffd2d2; }
.entwicklung .entw-gesamt { min-width: 4.5em; }

.wb-farbe-0 { --wb-farbe: #2f9e44; }
.wb-farbe-1 { --wb-farbe: #0072b2; }
.wb-farbe-2 { --wb-farbe: #d55e00; }
.wb-farbe-3 { --wb-farbe: #e69f00; }
.wb-farbe-4 { --wb-farbe: #cc79a7; }
.wb-farbe-5 { --wb-farbe: #56b4e9; }
.wb-farbe-6 { --wb-farbe: #8c6bb1; }
.wb-punkt-farbe { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 50%; background: var(--wb-farbe); vertical-align: -1px; }
.wb-legende { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-3) 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); }
.wb-legende strong { font-weight: 600; }
.diagramm .wb-linie { stroke: var(--wb-farbe); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; fill: none; opacity: 0.75; }
.diagramm .wb-linie-wir { stroke-width: 2.25; opacity: 1; }
.diagramm .wb-marke { fill: var(--wb-farbe); stroke: var(--surface-card); stroke-width: 1; opacity: 0.85; }
.wb-spur { stroke: var(--border-subtle); stroke-width: 2; }
.wb-teilung { stroke: var(--border-subtle); stroke-width: 1; }
.wb-leiste-text { fill: var(--text-muted); font-size: 10px; }
.wb-leiste { display: block; max-width: 100%; height: auto; }
.wb-leiste .wb-marke { fill: var(--wb-farbe); stroke: var(--surface-card); stroke-width: 1.5; }
.wb-tabelle td { vertical-align: middle; }
.wb-tabelle .wb-leistenzelle { min-width: 280px; }
.wb-eintragsliste { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-4) 0; padding: 0; list-style: none; }
.wb-eintragsliste li { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); }
.wb-eintragsliste form { margin: 0; }
.wb-mixer-gruppen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.wb-mixer-gruppen textarea { width: 100%; max-width: none; box-sizing: border-box; }
@media (max-width: 1100px) { .wb-mixer-gruppen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .wb-mixer-gruppen { grid-template-columns: 1fr; } }
.wb-mixer-verkettungen { margin: var(--space-5) 0; }
.wb-mixer-titel { font-size: var(--fs-md); margin: 0 0 var(--space-3); }
.wb-mixer-stufe { margin: 0 0 var(--space-4); }
.wb-mixer-stufe legend { font-weight: 600; margin-bottom: var(--space-2); padding: 0; }
.wb-mixer-wahl { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.wb-mixer-option { display: inline-flex; align-items: center; gap: 2px; cursor: pointer; }
.wb-mixer-option input { margin-right: var(--space-2); }
.wb-mixer-aus { opacity: 0.45; cursor: not-allowed; }
.wb-mixer-schalter { display: flex; gap: var(--space-4); margin: var(--space-2) 0 0; font-size: var(--fs-sm); }
.wb-linkknopf { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; min-height: 0; box-shadow: none; }
.wb-gruppenmarke { display: inline-block; min-width: 1.5em; padding: 0 5px; text-align: center; font-weight: 600; font-size: var(--fs-sm); border-radius: 4px; color: #1b1f1c; }
.wb-sortierung { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; }
.wb-sortierung:hover { color: var(--text-heading); }
.wb-sortierung-aktiv { font-weight: 700; color: var(--text-heading); border-bottom-style: solid; }
.wb-fenster { width: min(920px, 94vw); max-height: 90vh; padding: var(--space-5); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--surface-card); color: inherit; overflow: auto; }
.wb-fenster::backdrop { background: rgba(0, 0, 0, 0.6); }
.wb-fenster-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.wb-fenster-kopf h2 { margin: 0; }
.wb-fenster-absicht { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-4) 0 var(--space-2); }
.wb-fenster-absicht select { max-width: 24em; }
.wb-fenster-inhalt:focus { outline: none; }
.wb-fenster-blaettern { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-3) 0; }
.wb-gespeichert { color: var(--text-accent); font-weight: 600; }
.wb-fehlerhinweis { color: #e5484d; font-weight: 600; }
.wb-serpliste { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.wb-serpliste li { display: flex; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); }
.wb-serpplatz { flex: 0 0 2em; font-weight: 700; }
.wb-serpurl { word-break: break-all; font-size: var(--fs-xs); }
.wb-keywordlink { cursor: pointer; }
.wb-intention { margin: 0; }
.wb-intention select { min-width: 11em; max-width: 16em; padding-top: 4px; padding-bottom: 4px; font-size: var(--fs-sm); }
.wb-intention select.wb-intention-manuell { font-weight: 700; }
tr.wb-irrelevant td { opacity: 0.5; }
tr.wb-irrelevant td:nth-child(n+7) { opacity: 1; }
.wb-gruppe-a { background: #f4b183; }
.wb-gruppe-b { background: #9dc3e6; }
.wb-gruppe-c { background: #a9d18e; }
.wb-gruppe-d { background: #d5a6e8; }
.wb-mixer-zaehlung { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-3) 0; padding: 0; list-style: none; }
.wb-neu-formular { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: 0 0 var(--space-3); }
.wb-neu-formular input[type="text"] { flex: 1 1 18em; min-width: 12em; max-width: none; }
.wb-neu-formular select { flex: 0 1 18em; max-width: 22em; }
.wb-werkzeuge { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.wb-hilfe { margin: 0; max-width: 60em; }
.wb-werkzeug-knoepfe { display: flex; gap: var(--space-2); }
.wb-meldung { min-height: 1.5em; margin: var(--space-2) 0; font-size: var(--fs-sm); color: var(--text-accent); }
.wb-meldung-fehler { color: #e5484d; font-weight: 600; }
.wb-baum { list-style: none; margin: 0; padding: 0 0 0 var(--space-6); border-left: 2px solid var(--border-subtle); }
.wb-baum-wurzel { padding-left: 0; border-left: 0; }
.wb-baum .wb-baum { margin-left: var(--space-3); }
.wb-knoten { margin: var(--space-2) 0; }
.wb-knoten.wb-zu > .wb-baum, .wb-knoten.wb-zu > .wb-neu-platz:empty { display: none; }
.wb-karte { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--surface-subtle); position: relative; }
.wb-karte:hover { border-color: var(--border-strong); }
.wb-zieht > .wb-karte { opacity: 0.4; }
.wb-griff { flex: 0 0 18px; align-self: stretch; min-height: 28px; cursor: grab; border-radius: 4px; background-image: radial-gradient(currentColor 1.4px, transparent 1.6px); background-size: 6px 7px; background-position: center; background-repeat: repeat; opacity: 0.5; }
.wb-griff:hover { opacity: 1; }
.wb-griff:active { cursor: grabbing; }
.wb-auf, .wb-auf-leer { flex: 0 0 24px; width: 24px; height: 24px; padding: 0; }
.wb-auf { position: relative; border: 0; background: none; cursor: pointer; min-height: 0; box-shadow: none; color: inherit; border-radius: 4px; }
.wb-auf::before { content: ""; position: absolute; left: 8px; top: 7px; border-left: 6px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transform: rotate(90deg); transition: transform 0.15s; }
.wb-zu > .wb-karte > .wb-auf::before { transform: rotate(0deg); }
.wb-titel { flex: 1 1 16em; min-width: 10em; max-width: none; border: 1px solid transparent; background: transparent; font-weight: 600; padding: 4px 8px; }
.wb-titel:hover { border-color: var(--border-subtle); }
.wb-titel:focus { border-color: var(--border-strong); background: var(--surface-card); }
.wb-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.wb-mehr { position: relative; font-size: var(--fs-sm); }
.wb-mehr summary { cursor: pointer; list-style: none; padding: 4px 8px; border-radius: 6px; opacity: 0.8; }
.wb-mehr summary::-webkit-details-marker { display: none; }
.wb-mehr summary:hover { opacity: 1; background: var(--surface-hover); }
.wb-mehr-inhalt { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-2); padding: var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--surface-card); }
.wb-neu-platz:not(:empty) { margin: var(--space-2) 0 var(--space-2) var(--space-6); }
.wb-neu-inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; }
.wb-neu-inline input[type="text"] { flex: 1 1 16em; max-width: 28em; }
.wb-ziel-in > .wb-karte, .wb-karte.wb-ziel-in { outline: 2px solid var(--text-accent); outline-offset: -2px; background: var(--surface-hover); }
.wb-karte.wb-ziel-vor::before, .wb-karte.wb-ziel-nach::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--text-accent); }
.wb-karte.wb-ziel-vor::before { top: -3px; }
.wb-karte.wb-ziel-nach::after { bottom: -3px; }
.wb-wurzelzone { margin-top: var(--space-4); padding: var(--space-3); border: 2px dashed var(--border-subtle); border-radius: var(--radius-card); text-align: center; font-size: var(--fs-sm); opacity: 0.6; }
.wb-wurzelzone.wb-ziel-ende { border-color: var(--text-accent); opacity: 1; background: var(--surface-hover); }
.wb-uebernahme { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4); margin: var(--space-3) 0; }
.wb-uebernahme > div { display: flex; flex-direction: column; gap: var(--space-2); }
@media (max-width: 700px) { .wb-baum { padding-left: var(--space-4); } .wb-baum .wb-baum { margin-left: 0; } .wb-griff { display: none; } }
.wb-assistent { max-width: 900px; }
.wb-chat { display: flex; flex-direction: column; gap: var(--space-4); padding: 0; }
.wb-chat-verlauf { display: flex; flex-direction: column; gap: var(--space-3); min-height: 320px; max-height: 62vh; overflow-y: auto; padding: var(--space-5) var(--space-5) 0; }
.wb-leer { color: var(--text-muted); font-size: var(--fs-sm); }
.wb-leer ul { margin: var(--space-2) 0 0; padding-left: 1.2em; }
.wb-nachricht { max-width: 88%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); border: 1px solid var(--border-subtle); }
.wb-nachricht p { margin: 0; overflow-wrap: anywhere; }
.wb-nachricht small { display: block; margin-top: 4px; color: var(--text-muted); }
.wb-nachricht-ich { align-self: flex-end; background: var(--hervorheb-farbe); }
.wb-nachricht-ki { align-self: flex-start; background: var(--surface-card); }
.wb-nachricht-fehler { border-color: var(--wm-danger); }
.wb-nachricht-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); }
.wb-nachricht-fuss small { margin: 0; }
.wb-schritte { margin-top: var(--space-3); font-size: var(--fs-sm); }
.wb-schritte summary { cursor: pointer; color: var(--text-muted); }
.wb-schritte table { margin-top: var(--space-2); }
.wb-schritt-text { max-width: 28em; overflow-wrap: anywhere; font-size: var(--fs-xs); font-family: var(--font-mono, monospace); }
.wb-schritt-fehler td, li.wb-schritt-fehler { color: var(--wm-danger); }
.wb-eingabe { display: flex; flex-direction: column; gap: var(--space-2); padding: 0 var(--space-5) var(--space-5); }
.wb-eingabe textarea { width: 100%; min-height: 84px; resize: vertical; }
.wb-eingabe-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.wb-nur-lesegeraet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wb-bereich { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--space-3); font-size: var(--fs-sm); }
.wb-gespraeche { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.wb-gespraeche li { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--space-2); align-items: center; padding: var(--space-2); border-radius: 8px; }
.wb-gespraeche li small { grid-column: 1; }
.wb-gespraeche li form { grid-column: 2; grid-row: 1 / span 2; }
.wb-gespraech-aktiv { background: var(--surface-hover); }
.wb-datenschutz { margin: 0; padding-left: 1.2em; font-size: var(--fs-sm); color: var(--text-muted); }
.wb-protokoll-schritte td { padding-top: 0; }
.wb-protokoll-liste { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
@media (max-width: 900px) { .wb-nachricht { max-width: 100%; } }
.wb-kipruefung { margin: var(--space-3) 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--surface-subtle); }
.wb-kipruefung h3 { margin: 0 0 var(--space-2); }
.wb-kipruefung p { margin: 0 0 var(--space-2); }
.tk { position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); }
.tk-start { display: block; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: var(--wm-green-500); box-shadow: 0 6px 18px rgba(16, 20, 16, .3); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.tk-start:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 24px rgba(16, 20, 16, .35); }
.tk-start:focus-visible { outline: 3px solid var(--wm-green-300); outline-offset: 3px; }
.tk-start img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.tk-panel { display: flex; flex-direction: column; width: min(400px, calc(100vw - 2 * var(--space-5))); height: min(620px, calc(100vh - 130px)); background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 16px; box-shadow: 0 14px 44px rgba(16, 20, 16, .28); overflow: hidden; }
.tk-panel[hidden] { display: none; }
.tk-kopf { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); background: var(--wm-ink-900); color: var(--wm-white); border-bottom: 3px solid var(--wm-green-500); }
.tk-avatar { flex: none; border-radius: 50%; }
.tk-titel { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tk-titel strong { color: var(--wm-white); }
.tk-titel small { color: var(--wm-ink-300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-kopfknopf { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 var(--space-2); border: 0; border-radius: 8px; background: transparent; color: var(--wm-ink-200); font-size: var(--fs-xs); text-decoration: none; cursor: pointer; }
.tk-kopfknopf:hover { background: var(--wm-ink-700); color: var(--wm-white); }
.tk-schliessen { font-size: 1.4rem; line-height: 1; }
.tk-panel turbo-frame { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tk-innen { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tk-verlauf { display: flex; flex-direction: column; flex: 1; gap: var(--space-3); min-height: 0; overflow-y: auto; padding: var(--space-4); }
.tk-verlauf .wb-nachricht { max-width: 92%; font-size: var(--fs-sm); }
.tk-hinweis { margin: 0; padding: var(--space-3) var(--space-4); font-size: var(--fs-sm); color: var(--text-muted); }
.tk-hinweis.flash-fehler, .tk-hinweis.flash-erfolg { margin: var(--space-3) var(--space-4) 0; border-radius: 8px; }
.tk-gruss { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; font-size: var(--fs-sm); padding-top: var(--space-4); }
.tk-gruss p { margin: 0; }
.tk-vorschlaege { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.tk-vorschlaege button { padding: var(--space-1) var(--space-3); border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-card); color: var(--text-body); font-size: var(--fs-xs); cursor: pointer; }
.tk-vorschlaege button:hover { background: var(--hervorheb-farbe); border-color: var(--wm-green-500); }
.tk-eingabe { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border-top: 1px solid var(--border-subtle); background: var(--surface-subtle); }
.tk-eingabe textarea { width: 100%; min-height: 56px; resize: none; }
.tk-eingabe-fuss { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.tk-eingabe-fuss select { flex: 1; min-width: 0; }
.tk-denkt { display: flex; gap: 5px; align-items: center; width: fit-content; }
.tk-denkt span { width: 7px; height: 7px; border-radius: 50%; background: var(--wm-green-500); animation: tk-puls 1.2s infinite ease-in-out; }
.tk-denkt span:nth-child(2) { animation-delay: .15s; }
.tk-denkt span:nth-child(3) { animation-delay: .3s; }
@keyframes tk-puls { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tk-start, .tk-denkt span { transition: none; animation: none; } .tk-denkt span { opacity: .6; } }
@media (max-width: 600px) { .tk { right: var(--space-4); bottom: var(--space-4); } .tk-panel { width: calc(100vw - 2 * var(--space-4)); height: calc(100vh - 110px); } }
@media print { .tk { display: none; } }
.karte-kopf-rechts { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.karte-kopf-rechts select { max-width: 260px; }
.lokalkarte [hidden] { display: none; }
.entw-volumen { text-align: right; white-space: nowrap; color: var(--text-muted); font-variant-numeric: tabular-nums; }
