@font-face { font-family: "Ropa Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: local("Ropa Sans"), local("RopaSans-Regular"), url(/static/ropa-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Ropa Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/ropa-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Ropa Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: local("Ropa Sans Italic"), url(/static/ropa-sans-latin-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Ropa Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/static/ropa-sans-latin-ext-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* WERTACH Quelle – Erscheinungsbild: Marineblau #21264d, Blau #1d4591 / #427bbe, Gold #b6882d → #fae892 */
:root {
  --bg: #f3f5fa;
  --flaeche: #ffffff;
  --rand: #dde2ee;
  --text: #1c2140;
  --text-leise: #5d6482;
  --akzent: #1d4591;
  --akzent-hell: #e7eef9;
  --akzent-text: #ffffff;
  --gruen: #1b7a4b;  --gruen-bg: #e2f4ea;
  --gelb: #8a5a00;   --gelb-bg: #fdf0d2;
  --rot: #b3261e;    --rot-bg: #fbe4e2;
  --blau: #1d4591;   --blau-bg: #e4eefa;
  --grau: #52597a;   --grau-bg: #eceef5;
  --balken: #427bbe;
  --marine: #21264d;
  --gold: #c5982c;
  --gold-hell: #fae892;
  --sl-aktiv-bg: rgba(250, 232, 146, .16);
  --radius: 10px;
}
:root[data-theme="dark"] {
    --bg: #11142a;
    --flaeche: #1a1f3d;
    --rand: #2d3560;
    --text: #e8ebf6;
    --text-leise: #99a1c6;
    --akzent: #78a9ea;
    --akzent-hell: #232d58;
    --akzent-text: #0e1230;
    --gruen: #66d09a;  --gruen-bg: #143324;
    --gelb: #f0c368;   --gelb-bg: #3a2c10;
    --rot: #ff8f86;    --rot-bg: #43201d;
    --blau: #8ab8f0;   --blau-bg: #1b2a4a;
    --grau: #a9b1d1;   --grau-bg: #232949;
    --balken: #5b92d6;
    --sl-aktiv-bg: rgba(250, 232, 146, .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11142a;
    --flaeche: #1a1f3d;
    --rand: #2d3560;
    --text: #e8ebf6;
    --text-leise: #99a1c6;
    --akzent: #78a9ea;
    --akzent-hell: #232d58;
    --akzent-text: #0e1230;
    --gruen: #66d09a;  --gruen-bg: #143324;
    --gelb: #f0c368;   --gelb-bg: #3a2c10;
    --rot: #ff8f86;    --rot-bg: #43201d;
    --blau: #8ab8f0;   --blau-bg: #1b2a4a;
    --grau: #a9b1d1;   --grau-bg: #232949;
    --balken: #5b92d6;
    --sl-aktiv-bg: rgba(250, 232, 146, .14);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 "Ropa Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--akzent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
p { margin: 0 0 .75rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.klein { font-size: .85rem; color: var(--text-leise); }
.leise { color: var(--text-leise); }

/* Rahmen */
.rahmen { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; transition: grid-template-columns .18s ease; }
html[data-seitenleiste="zu"] .rahmen { grid-template-columns: 68px 1fr; }
.seitenleiste {
  background: var(--marine); color: #e8ebf6; padding: 16px 12px 12px;
  display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow: hidden;
  border-right: 0;
}
.sl-kopf { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; }
.marke { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.logo-voll { height: 38px; width: auto; max-width: 100%; display: block; }
.logo-emblem { display: none; height: 38px; width: auto; }
.sl-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hell); opacity: .8; padding: 0 8px; }
.seitenleiste nav { display: flex; flex-direction: column; gap: 2px; }
.seitenleiste nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 0;
  color: #d5daee; text-decoration: none; white-space: nowrap;
}
.seitenleiste nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.seitenleiste nav a[aria-current="page"] { background: var(--sl-aktiv-bg); color: var(--gold-hell); font-weight: 600; }
.sym { width: 20px; height: 20px; flex: none; }
.icon-knopf {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 0; cursor: pointer;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #d5daee;
}
.icon-knopf:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.icon-knopf .sym { width: 18px; height: 18px; }
.sl-zu .sym { transition: transform .18s ease; }
html[data-seitenleiste="zu"] .sl-zu .sym { transform: rotate(180deg); }
.sl-fuss { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.benutzer { font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 12px; }
.benutzer-name { font-weight: 600; color: #fff; }
.benutzer-rolle { color: #aab2d4; word-break: break-all; margin-bottom: 8px; }
.benutzer-zeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.seitenleiste .knopf-leise { color: #e8ebf6; border-color: rgba(255, 255, 255, .22); }
.seitenleiste .knopf-leise:hover { background: rgba(255, 255, 255, .1); }
.seitenleiste :focus-visible { outline-color: var(--gold-hell); }
.version { font-size: .7rem; color: #8f98c2; letter-spacing: .02em; white-space: nowrap; }
.version-login { text-align: center; margin: 14px 0 0; color: var(--text-leise); }

/* eingeklappt: nur Symbole */
html[data-seitenleiste="zu"] .seitenleiste { padding-left: 8px; padding-right: 8px; }
html[data-seitenleiste="zu"] .logo-voll,
html[data-seitenleiste="zu"] .nav-text,
html[data-seitenleiste="zu"] .benutzer-name,
html[data-seitenleiste="zu"] .benutzer-rolle,
html[data-seitenleiste="zu"] .sl-label { display: none; }
html[data-seitenleiste="zu"] .logo-emblem { display: block; }
html[data-seitenleiste="zu"] .seitenleiste nav a .sym { flex: none; }
html[data-seitenleiste="zu"] .sl-kopf { flex-direction: column; gap: 10px; }
html[data-seitenleiste="zu"] .seitenleiste nav a { justify-content: center; padding: 10px 0; }
html[data-seitenleiste="zu"] .benutzer-zeile { justify-content: center; flex-direction: column; gap: 8px; }
.v-kurz { display: none; }
html[data-seitenleiste="zu"] .v-lang { display: none; }
html[data-seitenleiste="zu"] .v-kurz { display: block; text-align: center; font-size: .62rem; }

/* Hell/Dunkel: Symbole und Logos umschalten */
.nur-dunkel { display: none; }
:root[data-theme="dark"] .nur-hell { display: none; }
:root[data-theme="dark"] .nur-dunkel { display: inline-grid; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nur-hell { display: none; }
  :root:not([data-theme="light"]) .nur-dunkel { display: inline-grid; }
}
img.nur-dunkel { display: none !important; }
:root[data-theme="dark"] img.nur-dunkel { display: block !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) img.nur-dunkel { display: block !important; } }

.inhalt { padding: 28px clamp(16px, 3vw, 40px) 60px; width: 100%; min-width: 0; }
.kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }

/* Karten, Kennzahlen */
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 16px 18px; }
.karte + .karte, .raster + .karte, .karte + .raster { margin-top: 16px; }
.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kennzahl .zahl { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kennzahl .name { color: var(--text-leise); font-size: .85rem; }
.kennzahl .unter { color: var(--text-leise); font-size: .8rem; margin-top: 2px; }
.zwei { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 16px; }
.zwei > .karte { margin: 0; }

/* Tabellen */
.tabelle-rahmen { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-leise); font-weight: 600; white-space: nowrap; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
tbody tr:hover { background: var(--akzent-hell); }
tr:last-child td { border-bottom: 0; }
.summen td { border: 0; padding: 3px 10px; }
.summen tr:hover { background: none; }
.summen .gesamt td { font-weight: 700; border-top: 1px solid var(--rand); padding-top: 8px; }

/* Abzeichen */
.abzeichen { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.abzeichen-grau { background: var(--grau-bg); color: var(--grau); }
.abzeichen-gruen { background: var(--gruen-bg); color: var(--gruen); }
.abzeichen-gelb { background: var(--gelb-bg); color: var(--gelb); }
.abzeichen-rot { background: var(--rot-bg); color: var(--rot); }
.abzeichen-blau { background: var(--blau-bg); color: var(--blau); }

/* Formulare */
label { display: block; font-size: .85rem; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea {
  width: 100%; padding: 9px 11px; font: inherit; color: var(--text); background: var(--flaeche);
  border: 1px solid var(--rand); border-radius: 8px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.knopf, .knopf-leise {
  font: inherit; cursor: pointer; border-radius: 8px; padding: 9px 14px; border: 1px solid transparent;
}
.knopf { background: var(--akzent); color: var(--akzent-text); font-weight: 600; width: 100%; margin-top: 18px; }
.knopf-leise { background: transparent; border-color: var(--rand); color: var(--text); padding: 6px 10px; }
.knopf-leise:hover { background: var(--grau-bg); }
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.filter > div { flex: 1 1 180px; }
.filter label { margin-top: 0; }
.filter .knopf { width: auto; margin: 0; }

/* Hinweise */
.hinweis { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--rand); background: var(--grau-bg); margin-bottom: 14px; }
.hinweis-fehler { background: var(--rot-bg); border-color: transparent; color: var(--rot); }
.hinweis-warnung { background: var(--gelb-bg); border-color: transparent; color: var(--gelb); }
.hinweis-ok { background: var(--gruen-bg); border-color: transparent; color: var(--gruen); }

/* Login */
.login-seite { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login { width: min(400px, 100%); background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px; padding: 28px; box-shadow: 0 8px 30px rgba(33, 38, 77, .08); }
.login-logo { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto 18px; }
.login .klein { margin-top: 14px; }
.login-thema { position: fixed; top: 14px; right: 14px; }
.login-thema .icon-knopf { color: var(--text); border-color: var(--rand); }
.login-thema .icon-knopf:hover { background: var(--grau-bg); }

/* Diagramm */
.diagramm { width: 100%; height: auto; display: block; }
.diagramm .balken { fill: var(--balken); }
.diagramm .balken:hover { opacity: .75; }
.diagramm text { fill: var(--text-leise); font-size: 10px; font-family: inherit; }
.diagramm .linie { stroke: var(--rand); stroke-width: 1; }

/* Sonstiges */
.seitenwahl { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--text-leise); font-size: .9rem; }
.definition { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; }
.definition dt { color: var(--text-leise); }
.definition dd { margin: 0; }
.adresse { white-space: pre-line; }
.kruemel { font-size: .85rem; color: var(--text-leise); margin-bottom: 8px; }
.leer { color: var(--text-leise); padding: 14px 4px; }

@media (max-width: 800px) {
  .rahmen, html[data-seitenleiste="zu"] .rahmen { grid-template-columns: 1fr; }
  .seitenleiste { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 14px; gap: 6px 14px; border-right: 0; }
  .sl-kopf { min-height: 0; }
  .sl-zu, .sl-label, .version { display: none; }
  html[data-seitenleiste="zu"] .v-lang { display: inline; }
  .seitenleiste nav { flex-direction: row; flex-wrap: wrap; order: 3; width: 100%; }
  .sl-fuss { margin: 0 0 0 auto; flex-direction: row; }
  .benutzer { border: 0; padding: 0; }
  .benutzer-rolle, .benutzer-name { display: none; }
  html[data-seitenleiste="zu"] .logo-voll { display: block; }
  html[data-seitenleiste="zu"] .logo-emblem { display: none; }
  html[data-seitenleiste="zu"] .benutzer-zeile { flex-direction: row; }
  html[data-seitenleiste="zu"] .nav-text { display: inline; }
  html[data-seitenleiste="zu"] .seitenleiste nav a { justify-content: flex-start; padding: 8px 10px; }
  .inhalt { padding-top: 18px; }
}
@media print { .seitenleiste { display: none; } .rahmen { display: block; } }
.abstand { margin-top: 18px; }
.raster > .karte, .zwei > .karte { margin: 0; }
td.nr { white-space: nowrap; }
.diagramm text { font-size: 8px; }

/* Analytics */
:root { --serie-1: #3b74bd; --serie-2: #b07f14; }
:root[data-theme="dark"] { --serie-1: #3c79c4; --serie-2: #b5861f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --serie-1: #3c79c4; --serie-2: #b5861f; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--rand); background: var(--flaeche); color: var(--text); text-decoration: none; font-size: .88rem; }
.chip:hover { background: var(--grau-bg); }
.chip[aria-current="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.diagramm .saeule { fill: var(--serie-1); }
.diagramm .saeule:hover { opacity: .8; }
.diagramm .serie-1, .punkt.serie-1 { fill: var(--serie-1); background: var(--serie-1); }
.diagramm .serie-2, .punkt.serie-2 { fill: var(--serie-2); background: var(--serie-2); }
.diagramm rect.serie-1, .diagramm rect.serie-2 { stroke: var(--flaeche); stroke-width: 1; }
.diagramm text { font-size: 10px; }
.legende { display: flex; gap: 16px; font-size: .85rem; color: var(--text-leise); margin-bottom: 6px; }
.legende .punkt { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.hbalken { display: flex; flex-direction: column; gap: 7px; }
.hz { display: grid; grid-template-columns: minmax(90px, 36%) 1fr auto; align-items: center; gap: 10px; font-size: .88rem; }
.hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb { width: 100%; display: block; }
.hb .saeule { fill: var(--serie-1); }
.hw { color: var(--text-leise); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tabellenansicht { margin-top: 10px; }
.tabellenansicht summary { cursor: pointer; color: var(--text-leise); font-size: .88rem; }
.kennzahl .unter .abzeichen { margin-top: 2px; }
@media (max-width: 800px) { .hz { grid-template-columns: minmax(80px, 40%) 1fr; } .hw { grid-column: 1 / -1; text-align: left; } }

/* Benutzersystem */
.knopf.auto { width: auto; margin-top: 0; display: inline-block; text-decoration: none; text-align: center; }
a.knopf.auto { padding: 9px 14px; }
.knopf-gefahr { color: var(--rot); border-color: var(--rot); }
.knopf-gefahr:hover { background: var(--rot-bg); }
button:disabled, input:disabled { opacity: .55; cursor: not-allowed; }
.reiter { margin-bottom: 4px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--akzent-hell); }
.avatar-initialen { background: linear-gradient(135deg, #b6882d, #fae892); color: #21264d; font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
.avatar-gross { width: 48px; height: 48px; font-size: 1rem; }
.avatar-riesig { width: 96px; height: 96px; font-size: 1.8rem; }
.mit-avatar { display: flex; align-items: center; gap: 12px; }
.person { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.person:hover strong { text-decoration: underline; }
.benutzer-kopf { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-bottom: 10px; min-width: 0; }
.benutzer-kopf:hover .benutzer-name { text-decoration: underline; }
.benutzer-kopf .avatar { border: 2px solid rgba(250, 232, 146, .55); }
.benutzer-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.benutzer-text .benutzer-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.benutzer-text .benutzer-rolle { margin: 0; font-size: .78rem; word-break: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-seitenleiste="zu"] .benutzer-text { display: none; }
html[data-seitenleiste="zu"] .benutzer-kopf { justify-content: center; margin-bottom: 8px; }

.powered { font-size: .66rem; color: #8f98c2; text-decoration: none; letter-spacing: .02em; opacity: .85; }
.powered:hover { color: var(--gold-hell); text-decoration: underline; opacity: 1; }
html[data-seitenleiste="zu"] .powered { display: none; }
.powered-mobil { display: none; }

.formular { max-width: 460px; }
.formular-breit { max-width: 640px; }
.formular-zeilen { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.massnahme { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; }
.passwort-anzeige { margin: 8px 0; }
.passwort-anzeige code { font-size: 1.25rem; letter-spacing: .06em; padding: 6px 12px; background: var(--flaeche); color: var(--text); border: 1px dashed var(--gold); border-radius: 8px; user-select: all; display: inline-block; }
.haken { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rand); cursor: pointer; }
.haken:last-child { border-bottom: 0; }
.haken input { width: auto; margin-top: 4px; flex: none; }
td select { padding: 5px 8px; min-width: 150px; }
.avatar-zeile { display: flex; gap: 18px; align-items: flex-start; }
.avatar-zeile input[type=file] { padding: 6px; }
#avatar-status.fehler { color: var(--rot); }

@media (max-width: 800px) {
  .powered-mobil { display: block; padding: 0 16px 20px; text-align: center; }
  .powered-mobil .powered { color: var(--text-leise); }
  .powered { display: none; }
  .powered-mobil .powered { display: inline; }
  html[data-seitenleiste="zu"] .benutzer-text { display: none; }
  .benutzer-kopf { margin: 0; }
  .benutzer-kopf .benutzer-text { display: none; }
  .avatar-zeile { flex-direction: column; }
}
.knopf.auto.abstand { margin-top: 18px; }
form .knopf.auto { margin-top: 16px; }
.filter .knopf.auto, .kopf .knopf.auto { margin-top: 0; }

/* Abmelden: nur Symbol, leicht rot */
.seitenleiste .icon-knopf.abmelden { color: #ff9f97; border-color: rgba(255, 143, 134, .38); }
.seitenleiste .icon-knopf.abmelden:hover { background: rgba(255, 143, 134, .16); color: #ffc2bd; }
.benutzer-zeile form { display: inline-flex; }

/* Profilbild: Auswahlknopf und Zuschnitt-Fenster */
.verborgen { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; opacity: 0; border: 0; }
.knopf-datei { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border-radius: 8px; cursor: pointer;
  background: var(--akzent); color: var(--akzent-text); font-weight: 600; font-size: .95rem; }
.knopf-datei:hover { filter: brightness(1.08); }
.knopf-datei .sym { width: 18px; height: 18px; }
.verborgen:focus-visible + .knopf-datei { outline: 2px solid var(--akzent); outline-offset: 2px; }
.avatar-aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.avatar-aktionen form { margin: 0; }
dialog#zuschnitt { border: 1px solid var(--rand); border-radius: 14px; padding: 20px 22px; background: var(--flaeche); color: var(--text); width: min(400px, calc(100vw - 24px)); }
dialog#zuschnitt::backdrop { background: rgba(14, 18, 48, .62); }
dialog#zuschnitt h2 { margin-bottom: .25rem; }
#zuschnitt-flaeche { display: block; width: 100%; height: auto; max-width: 320px; margin: 10px auto; border-radius: 10px; cursor: grab; touch-action: none; background: #fff; }
#zuschnitt-flaeche:active { cursor: grabbing; }
#zuschnitt-flaeche:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.zoom-zeile { display: flex; align-items: center; gap: 12px; max-width: 320px; margin: 0 auto 4px; }
.zoom-zeile input[type=range] { padding: 0; border: 0; background: transparent; accent-color: var(--akzent); flex: 1; }
.zoom-zeile .sym { width: 18px; height: 18px; color: var(--text-leise); flex: none; }
.dialog-knoepfe { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* Benutzerzeile: Bild, Name und beide Symbole in einer Zeile */
.benutzer { display: flex; align-items: center; gap: 8px; }
.benutzer-kopf { flex: 1; margin: 0; }
.benutzer-zeile { flex: none; gap: 6px; }
.benutzer .icon-knopf { width: 30px; height: 30px; }
.benutzer .icon-knopf .sym { width: 16px; height: 16px; }
html[data-seitenleiste="zu"] .benutzer { flex-direction: column; gap: 8px; }
html[data-seitenleiste="zu"] .benutzer-kopf { flex: none; }
@media (max-width: 800px) { .benutzer { flex-direction: row; } .benutzer-kopf { flex: none; } }

/* Administration: zweite Seitenleiste direkt neben der Hauptleiste */
.rahmen.mit-admin { grid-template-columns: 236px 208px minmax(0, 1fr); }
html[data-seitenleiste="zu"] .rahmen.mit-admin { grid-template-columns: 68px 208px minmax(0, 1fr); }
.admin-nav { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
  background: var(--flaeche); border-right: 1px solid var(--rand); padding: 20px 10px; }
.admin-titel { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); padding: 4px 10px 10px; }
.admin-gruppe { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); padding: 16px 10px 4px; }
.admin-nav a { padding: 9px 10px; border-radius: 0; color: var(--text); text-decoration: none; }
.admin-nav a:hover { background: var(--grau-bg); }
.admin-nav a[aria-current="page"] { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
@media (max-width: 800px) {
  .rahmen.mit-admin, html[data-seitenleiste="zu"] .rahmen.mit-admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 8px 14px; border-right: 0; border-bottom: 1px solid var(--rand); }
  .admin-titel { display: none; }
}
@media print { .admin-nav { display: none; } }

/* Wellen-Diagramme */
.stop-1 { stop-color: var(--serie-1); }
.stop-2 { stop-color: var(--serie-2); }
.diagramm .welle { stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.diagramm .l-1 { stroke: var(--serie-1); }
.diagramm .l-2 { stroke: var(--serie-2); }
.diagramm .treffer { fill: transparent; }
.diagramm .pkt-linie { stroke: var(--text-leise); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.diagramm .pkt-punkt { stroke: var(--flaeche); stroke-width: 2; opacity: 0; }
.diagramm .pkt-punkt.d-1 { fill: var(--serie-1); }
.diagramm .pkt-punkt.d-2 { fill: var(--serie-2); }
.diagramm .pkt:hover .pkt-linie, .diagramm .pkt:hover .pkt-punkt { opacity: 1; }
.diagramm .linie { stroke-dasharray: 2 4; }

/* Moderne Balken: Spur mit Farbverlauf, rund */
svg.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hb-spur { fill: var(--grau-bg); }
.hb-fuell { transform-box: fill-box; transform-origin: left center; }
.hb { height: 12px; }
.hz:hover .hb-fuell { filter: brightness(1.12); }
.hbalken { gap: 10px; }
.hw a { color: inherit; font-weight: 600; }
.kopf h1 + .klein { display: block; margin-top: 2px; }

/* Sanftes Einblenden */
@keyframes einblenden { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes enthuellen { from { clip-path: inset(-10% 100% -10% 0); opacity: .2; } to { clip-path: inset(-10% -2% -10% 0); opacity: 1; } }
@keyframes wachsen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes einblenden-leise { from { opacity: 0; } to { opacity: 1; } }
.inhalt .karte { animation: einblenden .5s cubic-bezier(.2, .7, .2, 1) both; }
.raster > .karte:nth-child(2), .zwei > .karte:nth-child(2) { animation-delay: .06s; }
.raster > .karte:nth-child(3) { animation-delay: .12s; }
.raster > .karte:nth-child(4) { animation-delay: .18s; }
.raster > .karte:nth-child(5) { animation-delay: .24s; }
.raster > .karte:nth-child(6) { animation-delay: .30s; }
.raster > .karte:nth-child(7) { animation-delay: .36s; }
.wellen-gruppe { animation: enthuellen 1.1s cubic-bezier(.3, .6, .2, 1) .15s both; }
.diagramm .linie, .diagramm text { animation: einblenden-leise .8s ease both; }
.hb-fuell { animation: wachsen .9s cubic-bezier(.2, .7, .2, 1) both; }
.hz:nth-child(2) .hb-fuell { animation-delay: .05s; }
.hz:nth-child(3) .hb-fuell { animation-delay: .1s; }
.hz:nth-child(4) .hb-fuell { animation-delay: .15s; }
.hz:nth-child(5) .hb-fuell { animation-delay: .2s; }
.hz:nth-child(6) .hb-fuell { animation-delay: .25s; }
.hz:nth-child(7) .hb-fuell { animation-delay: .3s; }
.hz:nth-child(n+8) .hb-fuell { animation-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .inhalt .karte, .wellen-gruppe, .diagramm .linie, .diagramm text, .hb-fuell { animation: none; }
}

/* Buttons im Erscheinungsbild: fast quadratisch, kleine schräge Ecke oben rechts.
   Gefüllte Buttons: Form per clip-path. Umrissbuttons: Rand = Hintergrund (--b), Füllung = ::before (--f),
   damit die schräge Kante denselben Rand trägt. Fokus wird innen gezeichnet (außen würde clip-path ihn abschneiden). */
.knopf, .knopf-datei, .knopf-leise, .icon-knopf, .chip {
  --ecke: 10px;
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - var(--ecke)) 0, 100% var(--ecke), 100% 100%, 0 100%);
}
.icon-knopf { --ecke: 8px; }
.knopf:focus-visible, .knopf-datei:focus-visible, .verborgen:focus-visible + .knopf-datei { outline: none; box-shadow: inset 0 0 0 2px var(--gold-hell), inset 0 0 0 3px var(--marine); }

.knopf-leise, .icon-knopf, .chip {
  --b: var(--rand); --f: var(--flaeche); --fh: var(--grau-bg);
  position: relative; isolation: isolate;
  border-color: transparent; background: var(--b);
}
.knopf-leise::before, .icon-knopf::before, .chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--f);
  clip-path: polygon(0 0, calc(100% - (var(--ecke) - 0.59px)) 0, 100% calc(var(--ecke) - 0.59px), 100% 100%, 0 100%);
  border-radius: 1px;
}
.knopf-leise:hover, .icon-knopf:hover, .chip:hover { background: var(--b); }
.knopf-leise:hover::before, .icon-knopf:hover::before, .chip:hover::before { background: var(--fh); }
.knopf-leise:focus-visible, .icon-knopf:focus-visible, .chip:focus-visible { outline: none; }
.knopf-leise:focus-visible::before, .icon-knopf:focus-visible::before, .chip:focus-visible::before { box-shadow: inset 0 0 0 2px var(--akzent); }

.knopf-gefahr { --b: var(--rot); --fh: var(--rot-bg); }
.knopf-gefahr:hover { background: var(--b); }
.chip[aria-current="true"] { --b: var(--akzent); --f: var(--akzent); --fh: var(--akzent); }

/* Seitenleiste und Login: Symbolknöpfe */
.seitenleiste .icon-knopf { --b: rgba(255, 255, 255, .24); --f: var(--marine); --fh: #353b6b; }
.seitenleiste .icon-knopf.abmelden { --b: rgba(255, 143, 134, .45); --fh: #46304f; }
.seitenleiste .icon-knopf:hover { background: var(--b); }
.login-thema .icon-knopf { --b: var(--rand); --f: var(--bg); --fh: var(--grau-bg); }
.login-thema .icon-knopf:hover { background: var(--b); }

input, select { border-radius: 4px; }
.seitenleiste .icon-knopf.abmelden:hover { background: var(--b); color: #ffc2bd; }

.zwischentitel { font-size: .85rem; font-weight: 600; margin: 16px 0 10px; color: var(--text-leise); text-transform: uppercase; letter-spacing: .05em; }

/* Status-Abzeichen im selben Stil wie die Buttons: eckig, kleine schräge Ecke oben rechts */
.abzeichen {
  border-radius: 2px; padding: 2px 9px; font-weight: 600; letter-spacing: .01em;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

/* Partner */
.inline-form { display: inline-block; margin: 0 4px 0 0; }
.liste-schlicht { list-style: none; margin: 0; padding: 0; }
.liste-schlicht li { padding: 6px 0; border-bottom: 1px solid var(--rand); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.liste-schlicht li:last-child { border-bottom: 0; }
.haken { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.haken input { width: auto; margin: 0; }
a.knopf-leise { text-decoration: none; display: inline-block; }
td input { max-width: 100%; }

/* Shop-Redaktion */
textarea { resize: vertical; line-height: 1.45; }
.aktionsleiste { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 16px; }
.aktionsleiste .massnahme { margin: 0; }
.aktionsleiste .massnahme input { width: 230px; }
.aktionsleiste a.knopf-leise { text-decoration: none; display: inline-block; }
.abschnitt { margin: 26px 0 10px; font-size: 1.1rem; }
.block-karte { padding: 0; margin-bottom: 10px; }
.block-karte > summary { cursor: pointer; padding: 12px 16px; display: flex; gap: 10px; align-items: baseline; list-style: none; }
.block-karte > summary::-webkit-details-marker { display: none; }
.block-karte[open] > summary { border-bottom: 1px solid var(--rand); }
.block-karte > form, .block-karte > p { padding: 4px 16px 16px; }
.block-nr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--akzent-hell); color: var(--akzent); font-size: .8rem; font-weight: 700; flex: none; }
.block-felder { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.block-felder > div:has(textarea), .block-felder > .liste-feld { grid-column: 1 / -1; }
.block-felder .klein { display: block; margin-top: 3px; }
.block-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rand); }
.block-knoepfe .knopf.auto { margin: 0; }
.block-knoepfe button:disabled, .aktionsleiste button:disabled { opacity: .45; cursor: not-allowed; }
.liste-feld { border: 1px solid var(--rand); border-radius: 8px; margin: 14px 0 0; padding: 4px 14px 12px; }
.liste-feld legend { font-size: .85rem; font-weight: 600; padding: 0 6px; }
.liste-zeile { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--rand); }
.liste-zeile:last-child { border-bottom: 0; }
.liste-nr { color: var(--text-leise); font-size: .8rem; padding-top: 34px; width: 14px; flex: none; text-align: right; }
.liste-felder { flex: 1; display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.inline-label { margin: 0; }
.karte.massnahme select { width: auto; min-width: 200px; }

/* Shop-Verwaltung: Kategorienauswahl am Produkt */
.kat-auswahl { max-height: 320px; overflow-y: auto; border: 1px solid var(--rand); border-radius: 8px; padding: 4px 12px; }
.kat-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; border-bottom: 1px solid var(--rand); }
.kat-zeile:last-child { border-bottom: 0; }
.kat-zeile .haken { border-bottom: 0; flex: 1 1 260px; }
.kat-zeile .klein { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.einzug-1 { padding-left: 34px !important; } .einzug-2 { padding-left: 56px !important; } .einzug-3 { padding-left: 78px !important; }
.einzug-4 { padding-left: 100px !important; } .einzug-5 { padding-left: 122px !important; }

/* Klaviyo-Seite */
.metrik { display: inline-block; margin: 0 14px 6px 0; white-space: nowrap; }

/* Newsletter */
.mail-vorschau { width: 100%; height: 760px; border: 1px solid var(--rand); background: #fff; display: block; }
.empfaenger { display: grid; gap: 0; }
.empfaenger .haken { border-bottom: 1px solid var(--rand); }

/* Lager */
.lager-reiter { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 18px; }
.lager-reiter a { padding: 6px 0; color: var(--text-leise, inherit); text-decoration: none; border-bottom: 2px solid transparent; }
.lager-reiter a[aria-current="page"] { color: inherit; font-weight: 600; border-bottom-color: var(--akzent, currentColor); }
.zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zeile select { width: auto; }
.klein-knopf { width: auto; padding: 6px 12px; font-size: .875rem; }

/* Texteditor (editor.js) */
.ed { border: 1px solid var(--rand); border-radius: var(--radius); background: var(--flaeche); margin-top: 4px; }
.ed:focus-within { outline: 2px solid var(--akzent); outline-offset: 1px; }
.ed-leiste { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; border-bottom: 1px solid var(--rand); background: var(--grau-bg); border-radius: var(--radius) var(--radius) 0 0; }
.ed-knopf { font: inherit; font-size: .85rem; min-width: 34px; min-height: 34px; padding: 4px 9px; border: 1px solid var(--rand); background: var(--flaeche); color: var(--text); border-radius: 6px; cursor: pointer; }
.ed-knopf:hover { border-color: var(--akzent); }
.ed-knopf:disabled { opacity: .45; cursor: default; }
.ed-knopf[aria-pressed="true"] { background: var(--akzent); color: var(--akzent-text); }
.ed-rechts { margin-left: auto; }
.ed-farben { display: inline-flex; gap: 4px; align-items: center; padding: 0 6px; }
.ed-farbe { min-width: 24px; min-height: 24px; width: 24px; height: 24px; padding: 0; }
.ed-farbe[data-klasse="c-marine"] { background: #21264d; }
.ed-farbe[data-klasse="c-gold"] { background: #c5982c; }
.ed-farbe[data-klasse="c-rot"] { background: #b3261e; }
.ed-farbe[data-klasse="c-gruen"] { background: #1b7a4b; }
.ed-farbe[data-klasse="c-grau"] { background: #5d6482; }
.ed-flaeche { min-height: 160px; max-height: 520px; overflow: auto; padding: 12px 14px; line-height: 1.55; outline: none; }
.ed-flaeche h2, .ed-flaeche h3 { margin: .8em 0 .3em; }
.ed-flaeche p { margin: 0 0 .8em; }
.ed-flaeche img { max-width: 100%; height: auto; }
.ed ~ textarea, .ed textarea { width: 100%; border: 0; border-radius: 0 0 var(--radius) var(--radius); font-family: ui-monospace, monospace; font-size: .85rem; }
.c-marine { color: #21264d; } .c-gold { color: #a67c14; } .c-rot { color: #b3261e; } .c-gruen { color: #1b7a4b; } .c-grau { color: #5d6482; }
.gross { font-size: 1.25em; }
.faq-zeile { border-top: 1px solid var(--rand); padding-top: 14px; margin-top: 14px; }
.faq-kopf { display: grid; grid-template-columns: 1fr 110px auto; gap: 12px; align-items: end; }
@media (max-width: 700px) { .faq-kopf { grid-template-columns: 1fr; } }
.upload-zeile { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 14px; }
.upload-zeile input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-zeile input[type=file]:focus-visible + .klein, .upload-zeile label { cursor: pointer; }
.upload-zeile:focus-within label { outline: 2px solid var(--akzent); outline-offset: 2px; }
.fehler { color: var(--rot); }

/* Shop → Menüs */
.menue-zeile { display: grid; grid-template-columns: 22px minmax(180px, 2fr) minmax(180px, 2fr) auto auto; gap: 8px 14px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--linie, #e3e5ee); }
.menue-zeile.menue-sub { margin-left: 28px; }
.menue-name { display: grid; gap: 2px; }
.menue-an { display: flex; gap: 6px; align-items: center; white-space: nowrap; padding-bottom: 8px; }
.menue-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.menue-neu { margin-top: 18px; }
@media (max-width: 900px) { .menue-zeile { grid-template-columns: 22px 1fr 1fr; } }
.griff { display: inline-flex; align-items: center; justify-content: center; align-self: center; height: 36px; cursor: grab; color: #8a90a8; }
.griff svg { fill: currentColor; pointer-events: none; }
.griff:hover { color: #151937; }
.zieht { opacity: .45; background: #eef0f8; }
.menue-gruppe { background: #fff; }

/* Shop → Bilder (Galerie) */
.galerie { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.galerie-kachel { background: #fff; border: 1px solid var(--linie, #e3e5ee); display: flex; flex-direction: column; min-width: 0; }
.galerie-bild { display: block; aspect-ratio: 1; background: repeating-conic-gradient(#f1f2f8 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.galerie-bild img { width: 100%; height: 100%; object-fit: contain; display: block; }
.galerie-info { padding: 10px 12px 12px; display: grid; gap: 6px; }
.galerie-info form { display: grid; gap: 6px; }
.galerie-info p { margin: 0; }
.galerie-verw { list-style: none; margin: 0; padding: 0; font-size: .8125rem; display: grid; gap: 2px; }

/* Baukasten: Block-Kacheln */
.bk h3 { margin: 0 0 4px; }
.bk h4 { margin: 18px 0 8px; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); font-weight: 600; }
.bk-raster { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.bk-kachel { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; background: var(--flaeche, #fff); border: 1px solid var(--rand); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.bk-kachel:hover, .bk-kachel:focus-visible { border-color: var(--akzent); box-shadow: 0 6px 18px rgba(21,25,55,.1); transform: translateY(-1px); outline: none; }
.bk-skizze { display: block; background: var(--akzent-hell); color: var(--akzent); padding: 8px; margin-bottom: 6px; }
.bk-skizze svg { display: block; width: 100%; height: 64px; }
.bk-skizze svg rect, .bk-skizze svg path, .bk-skizze svg circle { fill: currentColor; opacity: .32; }
.bk-skizze svg .d { opacity: .95; }
.bk-skizze svg .f { opacity: .16; }
.bk-skizze svg .k { fill: #0b0b0e; opacity: 1; }
.bk-skizze svg .w { fill: #fff; opacity: .9; }
.bk-kachel strong { font-size: .9375rem; }
.bk-kachel .klein { margin: 0; line-height: 1.3; }

/* Baukasten: Auswahl mit Symbolen */
.seg { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.seg legend { padding: 0; font-weight: 600; margin-bottom: 6px; }
.seg-reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-kachel { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; padding: 8px 10px; border: 1px solid var(--rand); background: var(--flaeche, #fff); color: var(--text-leise); transition: border-color .15s, background .15s, color .15s; }
.seg-opt:hover .seg-kachel { border-color: var(--akzent); }
.seg-opt input:checked + .seg-kachel { border-color: var(--akzent); background: var(--akzent-hell); color: var(--akzent); box-shadow: inset 0 0 0 1px var(--akzent); }
.seg-opt input:focus-visible + .seg-kachel { outline: 2px solid var(--akzent); outline-offset: 2px; }
.seg-kachel svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.seg-kachel svg .o { fill: none; opacity: .6; }
.seg-kachel svg .d { fill: currentColor; stroke: none; opacity: .75; }
.seg-kachel svg .t { fill: #fff; stroke: none; font-size: 6px; font-weight: 700; text-anchor: middle; }
.seg-text { font-size: .75rem; text-align: center; line-height: 1.2; max-width: 92px; }
.seg-farbe { width: 28px; height: 28px; border: 1px solid rgba(0,0,0,.2); display: block; }
.sw-marine { background: #21264d; } .sw-gold { background: linear-gradient(135deg, #fae892, #c5982c); } .sw-weiss { background: #fff; }
.sw-hell { background: #eef0f7; } .sw-schwarz { background: #0b0b0e; }
.seg-aa { font-weight: 700; line-height: 28px; height: 28px; }
.aa-klein { font-size: 1rem; } .aa-gross { font-size: 1.5rem; }

/* Bildwahl */
.bw-zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bw-zeile select { flex: 1; min-width: 160px; }
.bw-vorschau { width: 64px; height: 64px; flex: 0 0 64px; background: repeating-conic-gradient(#f1f2f8 0 25%, #fff 0 50%) 0 0 / 12px 12px; border: 1px solid var(--rand); display: block; }
.bw-vorschau img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bw-dialog { width: min(920px, 94vw); max-height: 88vh; padding: 0; border: 1px solid var(--rand); background: var(--flaeche); color: var(--text); }
.bw-dialog::backdrop { background: rgba(21,25,55,.55); }
.bw-kopf { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--rand); position: sticky; top: 0; background: var(--flaeche); z-index: 1; }
.bw-kopf input { flex: 1; }
.bw-raster { display: grid; gap: 10px; padding: 16px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.bw-kachel { position: relative; padding: 0; border: 1px solid var(--rand); background: repeating-conic-gradient(#f1f2f8 0 25%, #fff 0 50%) 0 0 / 12px 12px; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.bw-kachel:hover, .bw-kachel:focus-visible { border-color: var(--akzent); outline: 2px solid var(--akzent); outline-offset: -2px; }
.bw-kachel img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bw-name { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(21,25,55,.78); color: #fff; font-size: .6875rem; padding: 3px 5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-stand { position: absolute; top: 4px; left: 4px; background: #fae892; color: #4a3500; font-size: .625rem; padding: 2px 5px; }
.bw-dialog > .knopf-leise { margin: 0 16px 16px; }

.block-karte > summary .griff { height: 24px; align-self: center; }
.block-karte.zieht { opacity: .45; }

/* Produkt bearbeiten: zwei Spalten, aufklappbare Widgets */
.pgrid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; margin-bottom: 16px; }
@media (min-width: 1150px) { .pgrid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.pspalte { display: grid; gap: 12px; min-width: 0; align-content: start; }
.widget { background: var(--karte, #fff); border: 1px solid var(--rand, #e3e5ee); border-radius: 10px; }
.widget > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.widget > summary::-webkit-details-marker { display: none; }
.widget > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-right: 4px; opacity: .6; }
.widget[open] > summary::after { transform: rotate(-135deg); }
.widget[open] > summary { border-bottom: 1px solid var(--rand, #e3e5ee); }
.widget-inhalt { padding: 14px 18px 18px; }

.pbilder { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pbild { border: 1px solid var(--rand, #e3e5ee); border-radius: 8px; padding: 8px; display: grid; gap: 6px; align-content: start; background: #fff; }
.pbild.zieht { opacity: .4; }
.pbild-bild { position: relative; aspect-ratio: 1; background: #f3f4f9; border-radius: 6px; overflow: hidden; display: grid; place-items: center; }
.pbild-bild img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pbild-bild .griff { position: absolute; top: 6px; left: 6px; height: 30px; width: 24px; background: rgba(255,255,255,.92); border-radius: 6px; z-index: 1; }
.pbild-haupt { position: absolute; left: 6px; bottom: 6px; background: #151937; color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 4px; }
.pbild-fuss { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.pbild-fuss input[type=number] { width: 56px; }

/* Layout anpassen */
.pleiste { display: flex; justify-content: flex-end; gap: 8px; margin: -8px 0 10px; }
.widget-aktion { position: sticky; top: 12px; z-index: 3; box-shadow: 0 4px 18px rgba(21,25,55,.08); }
.widget-aktion .widget-inhalt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.widget-aktion .klein { flex: 1 0 100%; margin: 0; }
.wgriff { display: none; }
.pgrid.anpassen .wgriff { display: inline-block; cursor: grab; padding: 4px 10px; font-size: .8rem; font-weight: 400; color: #5a6086; background: #eef0f8; border-radius: 6px; margin-right: 10px; }
.pgrid.anpassen .widget-aktion > .wgriff { display: block; margin: 8px 12px 0; }
.widget > summary { justify-content: flex-start; }
.widget > summary::after { margin-left: auto; }
.pgrid.anpassen .pspalte { min-height: 80px; outline: 2px dashed #d3d7ea; outline-offset: 4px; border-radius: 10px; }
.widget.zieht { opacity: .4; }

.alt-beschreibung { margin-top: 14px; border: 1px dashed var(--rand, #e3e5ee); border-radius: 8px; padding: 8px 12px; }
.alt-beschreibung > summary { cursor: pointer; font-size: .9rem; color: #5a6086; }
.landing-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.landing-leiste .massnahme { display: flex; gap: 8px; align-items: center; }

/* Helpdesk */
.reiter { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--rand); }
.reiter a { padding: 8px 14px; border-radius: 0; color: var(--text-leise); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.reiter a[aria-current="page"] { color: var(--text); border-bottom-color: var(--akzent); font-weight: 600; }
.kennzahlen { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.kennzahlen .gross { font-size: 2rem; margin: 4px 0; font-weight: 600; }
.text-rot { color: var(--rot); font-weight: 600; }
.hd-raster { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 1000px) { .hd-raster { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.hd-haupt, .hd-seite { display: grid; gap: 16px; min-width: 0; }
.hd-haupt > .karte, .hd-seite > .karte { margin: 0; }
.faden { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nachricht { padding: 12px 14px; border: 1px solid var(--rand); background: var(--flaeche); }
.nachricht-kunde { border-left: 3px solid var(--grau); }
.nachricht-team { border-left: 3px solid var(--akzent); background: var(--akzent-hell); }
.nachricht-notiz { border-left: 3px solid var(--gelb); background: var(--gelb-bg); }
.nachricht-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.nachricht-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.knopf-reihe .knopf { margin-top: 0; }
.liste-kompakt { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 4px; font-size: .9375rem; }
.hd-seite h3 { margin: 14px 0 4px; font-size: .9375rem; }
@media (max-width: 700px) { .kennzahlen { grid-template-columns: 1fr; } }
form.inline { display: inline; }
form.inline .knopf-leise { margin-left: 8px; }

/* Hilfe-Center-Liste: Einrückung nach Ebene */
.einzug-1 { padding-left: 28px; } .einzug-2 { padding-left: 52px; } .einzug-3 { padding-left: 76px; } .einzug-4 { padding-left: 100px; }
form.suche { margin: 0 0 14px; display: flex; gap: 8px; }
form.suche input[type="text"], form.suche input:not([type]) { max-width: 340px; }

/* Einheitliche Hinterlegung bei Hover und aktivem Eintrag: gerade Kanten, nur oben rechts eine leichte Schräge */
.seitenleiste nav a, .admin-nav a, .reiter a, .ztl-nav a {
  --ecke: 10px; border-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--ecke)) 0, 100% var(--ecke), 100% 100%, 0 100%);
}
.seitenleiste nav a:focus-visible, .admin-nav a:focus-visible, .reiter a:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--akzent); }
.reiter a:hover { background: var(--grau-bg); color: var(--text); }

/* Stundentafel: Positionen in Viertelstunden (CSP erlaubt keine Inline-Stile) */
.zt-t0{top:0}
.zt-t1{top:14px}
.zt-t2{top:28px}
.zt-t3{top:42px}
.zt-t4{top:56px}
.zt-t5{top:70px}
.zt-t6{top:84px}
.zt-t7{top:98px}
.zt-t8{top:112px}
.zt-t9{top:126px}
.zt-t10{top:140px}
.zt-t11{top:154px}
.zt-t12{top:168px}
.zt-t13{top:182px}
.zt-t14{top:196px}
.zt-t15{top:210px}
.zt-t16{top:224px}
.zt-t17{top:238px}
.zt-t18{top:252px}
.zt-t19{top:266px}
.zt-t20{top:280px}
.zt-t21{top:294px}
.zt-t22{top:308px}
.zt-t23{top:322px}
.zt-t24{top:336px}
.zt-t25{top:350px}
.zt-t26{top:364px}
.zt-t27{top:378px}
.zt-t28{top:392px}
.zt-t29{top:406px}
.zt-t30{top:420px}
.zt-t31{top:434px}
.zt-t32{top:448px}
.zt-t33{top:462px}
.zt-t34{top:476px}
.zt-t35{top:490px}
.zt-t36{top:504px}
.zt-t37{top:518px}
.zt-t38{top:532px}
.zt-t39{top:546px}
.zt-t40{top:560px}
.zt-t41{top:574px}
.zt-t42{top:588px}
.zt-t43{top:602px}
.zt-t44{top:616px}
.zt-t45{top:630px}
.zt-t46{top:644px}
.zt-t47{top:658px}
.zt-t48{top:672px}
.zt-t49{top:686px}
.zt-t50{top:700px}
.zt-t51{top:714px}
.zt-t52{top:728px}
.zt-t53{top:742px}
.zt-t54{top:756px}
.zt-t55{top:770px}
.zt-t56{top:784px}
.zt-t57{top:798px}
.zt-t58{top:812px}
.zt-t59{top:826px}
.zt-t60{top:840px}
.zt-t61{top:854px}
.zt-t62{top:868px}
.zt-t63{top:882px}
.zt-t64{top:896px}
.zt-t65{top:910px}
.zt-t66{top:924px}
.zt-t67{top:938px}
.zt-t68{top:952px}
.zt-t69{top:966px}
.zt-t70{top:980px}
.zt-t71{top:994px}
.zt-t72{top:1008px}
.zt-t73{top:1022px}
.zt-t74{top:1036px}
.zt-t75{top:1050px}
.zt-t76{top:1064px}
.zt-t77{top:1078px}
.zt-t78{top:1092px}
.zt-t79{top:1106px}
.zt-t80{top:1120px}
.zt-t81{top:1134px}
.zt-t82{top:1148px}
.zt-t83{top:1162px}
.zt-t84{top:1176px}
.zt-t85{top:1190px}
.zt-t86{top:1204px}
.zt-t87{top:1218px}
.zt-t88{top:1232px}
.zt-t89{top:1246px}
.zt-t90{top:1260px}
.zt-t91{top:1274px}
.zt-t92{top:1288px}
.zt-t93{top:1302px}
.zt-t94{top:1316px}
.zt-t95{top:1330px}
.zt-t96{top:1344px}
.zt-h1{height:14px}
.zt-h2{height:28px}
.zt-h3{height:42px}
.zt-h4{height:56px}
.zt-h5{height:70px}
.zt-h6{height:84px}
.zt-h7{height:98px}
.zt-h8{height:112px}
.zt-h9{height:126px}
.zt-h10{height:140px}
.zt-h11{height:154px}
.zt-h12{height:168px}
.zt-h13{height:182px}
.zt-h14{height:196px}
.zt-h15{height:210px}
.zt-h16{height:224px}
.zt-h17{height:238px}
.zt-h18{height:252px}
.zt-h19{height:266px}
.zt-h20{height:280px}
.zt-h21{height:294px}
.zt-h22{height:308px}
.zt-h23{height:322px}
.zt-h24{height:336px}
.zt-h25{height:350px}
.zt-h26{height:364px}
.zt-h27{height:378px}
.zt-h28{height:392px}
.zt-h29{height:406px}
.zt-h30{height:420px}
.zt-h31{height:434px}
.zt-h32{height:448px}
.zt-h33{height:462px}
.zt-h34{height:476px}
.zt-h35{height:490px}
.zt-h36{height:504px}
.zt-h37{height:518px}
.zt-h38{height:532px}
.zt-h39{height:546px}
.zt-h40{height:560px}
.zt-h41{height:574px}
.zt-h42{height:588px}
.zt-h43{height:602px}
.zt-h44{height:616px}
.zt-h45{height:630px}
.zt-h46{height:644px}
.zt-h47{height:658px}
.zt-h48{height:672px}
.zt-h49{height:686px}
.zt-h50{height:700px}
.zt-h51{height:714px}
.zt-h52{height:728px}
.zt-h53{height:742px}
.zt-h54{height:756px}
.zt-h55{height:770px}
.zt-h56{height:784px}
.zt-h57{height:798px}
.zt-h58{height:812px}
.zt-h59{height:826px}
.zt-h60{height:840px}
.zt-h61{height:854px}
.zt-h62{height:868px}
.zt-h63{height:882px}
.zt-h64{height:896px}
.zt-h65{height:910px}
.zt-h66{height:924px}
.zt-h67{height:938px}
.zt-h68{height:952px}
.zt-h69{height:966px}
.zt-h70{height:980px}
.zt-h71{height:994px}
.zt-h72{height:1008px}
.zt-h73{height:1022px}
.zt-h74{height:1036px}
.zt-h75{height:1050px}
.zt-h76{height:1064px}
.zt-h77{height:1078px}
.zt-h78{height:1092px}
.zt-h79{height:1106px}
.zt-h80{height:1120px}
.zt-h81{height:1134px}
.zt-h82{height:1148px}
.zt-h83{height:1162px}
.zt-h84{height:1176px}
.zt-h85{height:1190px}
.zt-h86{height:1204px}
.zt-h87{height:1218px}
.zt-h88{height:1232px}
.zt-h89{height:1246px}
.zt-h90{height:1260px}
.zt-h91{height:1274px}
.zt-h92{height:1288px}
.zt-h93{height:1302px}
.zt-h94{height:1316px}
.zt-h95{height:1330px}
.zt-h96{height:1344px}
.zt-g8{height:112px}
.zt-g9{height:126px}
.zt-g10{height:140px}
.zt-g11{height:154px}
.zt-g12{height:168px}
.zt-g13{height:182px}
.zt-g14{height:196px}
.zt-g15{height:210px}
.zt-g16{height:224px}
.zt-g17{height:238px}
.zt-g18{height:252px}
.zt-g19{height:266px}
.zt-g20{height:280px}
.zt-g21{height:294px}
.zt-g22{height:308px}
.zt-g23{height:322px}
.zt-g24{height:336px}
.zt-g25{height:350px}
.zt-g26{height:364px}
.zt-g27{height:378px}
.zt-g28{height:392px}
.zt-g29{height:406px}
.zt-g30{height:420px}
.zt-g31{height:434px}
.zt-g32{height:448px}
.zt-g33{height:462px}
.zt-g34{height:476px}
.zt-g35{height:490px}
.zt-g36{height:504px}
.zt-g37{height:518px}
.zt-g38{height:532px}
.zt-g39{height:546px}
.zt-g40{height:560px}
.zt-g41{height:574px}
.zt-g42{height:588px}
.zt-g43{height:602px}
.zt-g44{height:616px}
.zt-g45{height:630px}
.zt-g46{height:644px}
.zt-g47{height:658px}
.zt-g48{height:672px}
.zt-g49{height:686px}
.zt-g50{height:700px}
.zt-g51{height:714px}
.zt-g52{height:728px}
.zt-g53{height:742px}
.zt-g54{height:756px}
.zt-g55{height:770px}
.zt-g56{height:784px}
.zt-g57{height:798px}
.zt-g58{height:812px}
.zt-g59{height:826px}
.zt-g60{height:840px}
.zt-g61{height:854px}
.zt-g62{height:868px}
.zt-g63{height:882px}
.zt-g64{height:896px}
.zt-g65{height:910px}
.zt-g66{height:924px}
.zt-g67{height:938px}
.zt-g68{height:952px}
.zt-g69{height:966px}
.zt-g70{height:980px}
.zt-g71{height:994px}
.zt-g72{height:1008px}
.zt-g73{height:1022px}
.zt-g74{height:1036px}
.zt-g75{height:1050px}
.zt-g76{height:1064px}
.zt-g77{height:1078px}
.zt-g78{height:1092px}
.zt-g79{height:1106px}
.zt-g80{height:1120px}
.zt-g81{height:1134px}
.zt-g82{height:1148px}
.zt-g83{height:1162px}
.zt-g84{height:1176px}
.zt-g85{height:1190px}
.zt-g86{height:1204px}
.zt-g87{height:1218px}
.zt-g88{height:1232px}
.zt-g89{height:1246px}
.zt-g90{height:1260px}
.zt-g91{height:1274px}
.zt-g92{height:1288px}
.zt-g93{height:1302px}
.zt-g94{height:1316px}
.zt-g95{height:1330px}
.zt-g96{height:1344px}

/* Zeiterfassung: Stundentafel */
.kopf-rechts { display: inline-flex; gap: 10px; align-items: center; }
.zt-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.zt-leiste .knopf-leise { text-decoration: none; }
.zt-titel { font-size: 1.15rem; margin-left: 8px; }
.zt-kw { color: var(--text-leise); }
.zt-bilanz { margin-left: auto; color: var(--text-leise); font-size: .88rem; }
.zt { overflow-x: auto; border: 1px solid var(--rand); background: var(--flaeche); }
.zt-innen { min-width: 780px; }
.zt-zeile { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); }
.zt-kopfzeile > div { padding: 8px 6px; border-bottom: 1px solid var(--rand); }
.zt-tagknopf { all: unset; cursor: pointer; font-size: 1.05rem; font-weight: 500; padding: 2px 6px; }
.zt-tagknopf:hover { background: var(--grau-bg); }
.zt-tagknopf:focus-visible { box-shadow: inset 0 0 0 2px var(--akzent); }
.zt-nr { font-weight: 700; }
.zt-frei-kopf .zt-tagknopf { color: var(--text-leise); }
.zt-heute-kopf .zt-tagknopf { color: var(--akzent); background: var(--akzent-hell); font-weight: 700; }
.zt-achse, .zt-tag { position: relative; }
.zt-achse { border-right: 1px solid var(--rand); }
.zt-stunde { position: absolute; right: 6px; transform: translateY(-50%); font-size: .72rem; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.zt-stunde.zt-t0 { transform: none; }
.zt-tag { border-right: 1px solid var(--rand); background-image: repeating-linear-gradient(to bottom, var(--rand) 0, var(--rand) 1px, transparent 1px, transparent 56px); }
.zt-tag:last-child { border-right: 0; }
.zt-frei { background-color: var(--grau-bg); }
.zt-heute { box-shadow: inset 0 0 0 1px var(--akzent); }
.zt-block, .zt-pause { position: absolute; left: 3px; right: 6px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 3px 8px; font-size: .78rem; line-height: 1.2; border-radius: 0; }
.zt-block { background: var(--akzent-hell); border-left: 3px solid var(--akzent); color: var(--text); z-index: 2; }
.zt-pause { background: repeating-linear-gradient(135deg, var(--grau-bg) 0 6px, var(--rand) 6px 12px); color: var(--text-leise); z-index: 1; }
.zt-zeit { font-weight: 600; }
.zt-dauer { align-self: flex-end; font-weight: 700; font-variant-numeric: tabular-nums; }
.zt-pause .zt-dauer { font-weight: 600; }
.zt-pausenstreifen { position: absolute; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 6px, rgba(0,0,0,.08) 6px 12px); padding: 1px 8px; font-size: .7rem; color: var(--text-leise); overflow: hidden; }
.zt-block .zt-dauer { position: relative; z-index: 1; }
.zt-loeschen { position: absolute; top: 1px; right: 2px; margin: 0; }
.zt-loeschen button { all: unset; cursor: pointer; padding: 0 5px; font-size: 1rem; line-height: 1.2; color: var(--text-leise); opacity: 0; }
.zt-block:hover .zt-loeschen button, .zt-loeschen button:focus-visible { opacity: 1; }
.zt-loeschen button:hover { color: var(--rot); }
.zt-abw { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(127,127,127,.08) 8px 16px); z-index: 0; }
.zt-abw span { position: absolute; top: 6px; left: 8px; right: 8px; font-size: .78rem; font-weight: 600; color: var(--text-leise); }
.zt-fusszeile > div { padding: 8px 8px 10px; border-top: 1px solid var(--rand); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.zt-fusszeile .zt-woche { align-items: flex-start; font-size: .82rem; padding-left: 4px; }
.zt-sum { font-weight: 700; font-variant-numeric: tabular-nums; }
.zt-warn { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; font-size: .7rem; background: var(--rot); color: #fff; font-weight: 700; cursor: help; }
.zt-fusszeile .klein { font-size: .72rem; text-align: right; }
/* Dialog "Erfassen" */
.dialog-erfassen { border: 0; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--flaeche); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); border-radius: 0; }
.dialog-erfassen::backdrop { background: rgba(15, 18, 40, .55); }
.dialog-kopf { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; gap: 10px; }
.dialog-tabs { display: inline-flex; border: 1px solid var(--rand); }
.dialog-tabs button { all: unset; cursor: pointer; padding: 8px 28px; font-weight: 600; color: var(--text-leise); }
.dialog-tabs button[aria-selected="true"] { background: var(--akzent); color: var(--akzent-text); }
.dialog-tabs button:focus-visible { box-shadow: inset 0 0 0 2px var(--akzent); }
.dialog-zu { all: unset; cursor: pointer; font-size: 1.6rem; line-height: 1; padding: 0 8px; }
.dialog-zu:hover { color: var(--rot); }
.dialog-blau { padding: 4px 22px 6px; }
.dialog-blau label { font-weight: 600; font-size: .82rem; color: var(--text-leise); }
.dialog-pause { padding: 12px 18px 0; }
.dialog-pause summary { cursor: pointer; font-weight: 600; }
.dialog-fuss { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 18px 6px; }
.dialog-fuss .haken { margin-right: auto; border: 0; padding: 0; }
.dialog-hinweis { padding: 0 18px 14px; margin: 6px 0 0; }
.dialog-erfassen form[hidden] { display: none; }

/* Schlichte Pfeile (Chevrons) statt Textzeichen */
.zurueck::before, .weiter::after, .pfeil-l:not(.knopf-leise)::before, .pfeil-r:not(.knopf-leise)::before { content: ""; display: inline-block; width: .5em; height: .5em; border: solid currentColor; border-width: 0 0 1.5px 1.5px; vertical-align: .05em; }
.zurueck::before, .pfeil-l:not(.knopf-leise)::before { transform: rotate(45deg); margin-right: .55em; }
.weiter::after, .pfeil-r:not(.knopf-leise)::before { transform: rotate(-135deg); margin-left: .55em; }
.pfeil-l:not(.knopf-leise)::before, .pfeil-r:not(.knopf-leise)::before { margin: 0 .15em; }

/* Erfassen-Dialog, modern */
.dialog-erfassen { width: min(520px, calc(100vw - 32px)); }
.dialog-kopf { padding: 16px 22px 8px; }
.dz-zusammen { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 16px; border-bottom: 1px solid var(--rand); margin-bottom: 16px; }
.dz-gross { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dz-klein { color: var(--text-leise); font-size: .9rem; min-height: 1.2em; }
.dz-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dz-raster.dz-zwei { grid-template-columns: repeat(2, 1fr); padding-top: 8px; }
.dz-voll { grid-column: 1 / -1; }
.dz-raster input, .dz-raster select, .dz-voll input { width: 100%; font-size: 1.05rem; padding: 10px 12px; font-variant-numeric: tabular-nums; }
.dz-pause { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.dz-label { font-weight: 600; font-size: .82rem; color: var(--text-leise); margin-right: 4px; }
.dz-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dz-chip { all: unset; cursor: pointer; padding: 7px 12px; border: 1px solid var(--rand); font-size: .9rem; font-weight: 600; color: var(--text-leise); }
.dz-chip:hover { background: var(--grau-bg); }
.dz-chip[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.dz-chip:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.dz-pause input { width: 74px; padding: 7px 8px; margin-left: auto; }
.dialog-fuss { padding: 14px 22px 20px; border-top: 1px solid var(--rand); margin-top: 10px; }
.dialog-tabs { border: 0; background: var(--grau-bg); padding: 3px; gap: 2px; }
.dialog-tabs button { padding: 7px 20px; }
.dialog-tabs button[aria-selected="true"] { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
@media (max-width: 480px) { .dz-raster { grid-template-columns: 1fr 1fr; } }

/* Stundentafel: Zeit aufziehen */
.zt-ziehbar { cursor: crosshair; }
.zt-zieht, .zt-zieht * { user-select: none; cursor: ns-resize !important; }
.zt-geist { position: absolute; left: 3px; right: 6px; background: var(--akzent); opacity: .85; color: var(--akzent-text); z-index: 5; pointer-events: none; padding: 3px 7px; font-size: .78rem; font-weight: 600; overflow: hidden; }
.zt-tipp { color: var(--text-leise); font-size: .88rem; margin: 0 0 10px; }

/* Anträge, Kalender, Planer, Genehmigungen, Analytics */
.antraege, .genehmigungen { list-style: none; margin: 0; padding: 0; }
.antraege li { display: grid; grid-template-columns: 56px 1fr minmax(160px, 260px) auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rand); }
.antraege li:first-child { border-top: 0; }
.an-datum { display: flex; flex-direction: column; align-items: center; width: 48px; border: 1px solid var(--rand); }
.an-datum span { background: var(--akzent); color: var(--akzent-text); font-size: .62rem; font-weight: 700; width: 100%; text-align: center; padding: 1px 0; }
.an-datum b { font-size: 1.2rem; padding: 2px 0; }
.an-text { display: flex; flex-direction: column; gap: 2px; }
.an-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
@media (max-width: 760px) { .antraege li { grid-template-columns: 48px 1fr; } .an-status, .an-aktion { grid-column: 2; } }
.kal { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 32px; margin-top: 18px; }
.kal-monat h3 { margin: 0 0 8px; font-size: 1.05rem; }
.kal table, .planer { border-collapse: collapse; width: 100%; }
.kal th { font-size: .72rem; font-weight: 500; color: var(--text-leise); padding: 3px 0; text-align: center; }
.kal td { text-align: center; padding: 1px 0; }
.kd { display: inline-block; min-width: 26px; padding: 3px 0; font-size: .82rem; font-variant-numeric: tabular-nums; border: 1px solid transparent; }
.kd-frei { color: var(--text-leise); opacity: .55; }
.kd-feier { background: var(--rand); color: var(--text); }
.kd-heute { box-shadow: inset 0 0 0 1px var(--text); }
.kd-urlaub.kd-ok, .kd-sonst.kd-ok { background: #2f9e62; color: #fff; }
.kd-krank.kd-ok { background: #3556d6; color: #fff; }
.kd-home.kd-ok { background: #e6c23c; color: #1a1a1a; }
.kd-urlaub.kd-offen, .kd-sonst.kd-offen { background: rgba(47,158,98,.14); border-color: #2f9e62; }
.kd-krank.kd-offen { background: rgba(53,86,214,.14); border-color: #3556d6; }
.kd-home.kd-offen { background: rgba(230,194,60,.2); border-color: #e6c23c; }
.kal-legende h3 { margin: 0 0 8px; font-size: .95rem; }
.kal-legende ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .88rem; }
.kal-legende .kd { margin-right: 6px; }
.genehmigung { padding: 14px 0; border-top: 1px solid var(--rand); display: flex; flex-direction: column; gap: 4px; }
.genehmigung:first-child { border-top: 0; }
.ge-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ge-zeit { margin: 0; font-weight: 600; }
.ge-aktion { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; align-items: center; }
.ge-ablehnen { display: inline-flex; gap: 8px; align-items: center; }
.ge-ablehnen input { width: 230px; padding: 7px 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.planer th, .planer td { border: 1px solid var(--rand); padding: 0; text-align: center; font-size: .72rem; }
.planer thead th { padding: 4px 0; font-weight: 600; min-width: 24px; }
.planer thead th span { display: block; font-weight: 400; color: var(--text-leise); }
.planer tbody th { text-align: left; padding: 6px 10px; font-size: .88rem; white-space: nowrap; position: sticky; left: 0; background: var(--flaeche); }
.pl-z { height: 30px; }
.pl-we { background: var(--grau-bg); }
.pl-heute { box-shadow: inset 0 0 0 1px var(--text); }
.planer td.kd-frei { background: var(--grau-bg); opacity: 1; }
.planer td.kd-feier { background: var(--rand); }
.grafik { width: 100%; max-width: 760px; height: auto; margin: 6px 0 14px; display: block; }
.g-raster { stroke: var(--rand); stroke-width: 1; }
.g-text { fill: var(--text-leise); font-size: 10px; }
.g-soll { fill: var(--rand); }
.g-ist { fill: var(--akzent); }
.g-aktiv { fill: #2f9e62; }
.g-leg { display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 12px; vertical-align: -1px; }
.g-leg-soll { background: var(--rand); } .g-leg-ist { background: var(--akzent); }
tr.summe td { font-weight: 700; border-top: 2px solid var(--rand); }
tr.zeile-aktiv td { background: var(--akzent-hell); }

/* Jahres- und Wochenwahl: Chevron im Button (::before trägt die schräge Form) */
.knopf-leise.pfeil-l, .knopf-leise.pfeil-r { width: 38px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.knopf-leise.pfeil-l::after, .knopf-leise.pfeil-r::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px; }
.knopf-leise.pfeil-l::after { transform: translateX(2px) rotate(45deg); }
.knopf-leise.pfeil-r::after { transform: translateX(-2px) rotate(-135deg); }
.zt-leiste .zt-titel { margin: 0 6px; min-width: 3.2em; text-align: center; }
/* Legende */
.kal-legende { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rand); }
.kal-legende ul { gap: 10px 26px; }
.kal-legende li { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 16px; height: 16px; border: 1px solid transparent; flex: none; }
.lg.kd-frei { background: var(--flaeche); border-color: var(--rand); opacity: 1; }
.lg.kd-feier { border-color: var(--rand); }
.lg.kd-urlaub.kd-offen { border-color: #2f9e62; }

/* Haken: schlichte Quadrate mit klarem Häkchen */
input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid #9aa1c4; border-radius: 0; background: var(--flaeche); cursor: pointer; position: relative; transition: background .12s, border-color .12s; vertical-align: middle; }
input[type="checkbox"]:hover:not(:disabled) { border-color: var(--akzent); }
input[type="checkbox"]:checked { background: var(--akzent); border-color: var(--akzent); }
input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--akzent-text, #fff); border-width: 0 2px 2px 0; transform: rotate(45deg); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: .45; cursor: default; }
.haken input[type="checkbox"] { margin-top: 0; }
.haken { align-items: center; }
fieldset { border: 1px solid var(--rand); border-radius: 0; padding: 12px 16px 14px; }
fieldset legend { padding: 0 6px; font-weight: 600; font-size: .85rem; color: var(--text-leise); }
fieldset .haken { display: inline-flex; border: 0; padding: 6px 0; margin-right: 22px; }
.formular-breit > .haken { border: 0; display: flex; }
.formular-breit > .knopf { margin-top: 16px; }

/* Einheitliche Höhe und Mittelung für Felder und Buttons in einer Zeile */
:root { --feld-h: 40px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]), select { min-height: var(--feld-h); box-sizing: border-box; }
.knopf, .knopf-leise { min-height: var(--feld-h); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; text-align: center; }
.knopf-leise.pfeil-l, .knopf-leise.pfeil-r { width: var(--feld-h); height: var(--feld-h); }
.dz-chip { min-height: var(--feld-h); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding-block: 0; }
.dz-pause input, .ge-ablehnen input { height: var(--feld-h); padding-block: 0; }
.ge-aktion, .ge-ablehnen, .dz-pause, .zt-leiste, .filter { align-items: center; }
.filter { align-items: end; }
form.inline { display: inline-flex; align-items: center; margin: 0; }
form.inline .knopf, .ge-aktion .knopf, .dialog-fuss .knopf, .kopf-rechts .knopf { margin-top: 0; width: auto; }
.dialog-fuss { align-items: center; }

/* Arbeitsort */
.dz-radio { position: relative; cursor: pointer; }
.dz-radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dz-radio:has(input:checked) { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.dz-radio:has(input:focus-visible) { outline: 2px solid var(--akzent); outline-offset: 1px; }
.zt-ort { font-size: .7rem; font-weight: 600; color: var(--akzent); text-transform: uppercase; letter-spacing: .03em; }

/* Versions-Verlauf (Klick auf die Version unten links) */
.version-knopf { all: unset; cursor: pointer; font-size: .7rem; color: #8f98c2; letter-spacing: .02em; white-space: nowrap; }
.version-knopf:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.version-knopf:focus-visible { outline: 2px solid var(--gold-hell, #fae892); outline-offset: 2px; }
.aenderungen { position: fixed; inset: auto auto 44px 12px; margin: 0; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow: auto; padding: 18px 20px; border: 1px solid var(--rand); border-radius: 0; background: var(--flaeche); color: var(--text); box-shadow: 0 16px 40px rgba(0,0,0,.28); }
.aenderungen h2 { margin: 0 0 12px; font-size: 1rem; }
.aenderungen h3 { margin: 14px 0 6px; font-size: .88rem; color: var(--akzent); }
.aenderungen ul { margin: 0; padding-left: 18px; font-size: .85rem; line-height: 1.45; }
.aenderungen li + li { margin-top: 5px; }

/* Zeiteintrag und Zeitverlauf */
.zt-link { position: absolute; inset: 0; z-index: 1; }
.zt-block .zt-loeschen { z-index: 3; }
.zt-block:hover { filter: brightness(.97); cursor: pointer; }
.zt-block:focus-within { outline: 2px solid var(--akzent); outline-offset: -2px; }
.eintrag-form .dz-raster { margin-bottom: 4px; }
.eintrag-form .dz-voll { margin-top: 12px; }
.eintrag-loeschen { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rand); }
.eintrag-loeschen input { flex: 1; max-width: 340px; }
.verlauf { list-style: none; margin: 14px 0 0; padding: 0; border-left: 2px solid var(--rand); }
.verlauf > li { position: relative; padding: 0 0 18px 20px; }
.verlauf > li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; background: var(--akzent); }
.vl-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.vl-werte { margin: 6px 0 2px; }
.vl-diff { margin: 4px 0; padding-left: 18px; font-size: .88rem; }
.auswahl-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 18px; max-height: 240px; overflow: auto; border: 1px solid var(--rand); padding: 4px 14px; margin-bottom: 14px; }
.auswahl-liste .haken { border-bottom: 0; padding: 6px 0; }
form.karte > h2 { margin: 26px 0 12px; }
form.karte > h2:first-child { margin-top: 0; }

/* Gutscheine: aufgeräumtes Formular */
.gs-raster { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .gs-raster { grid-template-columns: minmax(0, 1fr) 280px; } .gs-fest { position: sticky; top: 16px; } }
.gs-karte { margin-bottom: 16px; }
.gs-karte h2 { font-size: 1rem; margin: 0 0 14px; }
.gs-karte h2 .klein { font-weight: 400; margin-left: 8px; }
.gs-haupt .formular-zeilen { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mit-einheit { position: relative; display: flex; align-items: center; }
.mit-einheit input { width: 100%; padding-right: 84px; }
.mit-einheit .einheit { position: absolute; right: 12px; color: var(--leise, #6b7280); pointer-events: none; font-size: .9rem; }
.gs-form:has(#g-art option[value=percent]:checked) .einheit-euro,
.gs-form:has(#g-art option[value=fixed]:checked) .einheit-prozent { display: none; }
.gs-form:has(#g-art option[value=free_shipping]:checked) .gs-wert { display: none; }
.gs-form:has(#g-umfang option[value=all]:checked) .gs-umfang-felder { display: none; }
.gs-speichern { width: 100%; margin-top: 14px; }
.gs-loeschen { width: 100%; margin-top: 10px; }
.gs-fest .haken { border-bottom: 0; padding: 0; }
.gs-kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.gs-kennzahlen > div { background: var(--flaeche, #fff); border: 1px solid var(--rand); padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.gs-kennzahlen strong { font-size: 1.15rem; font-weight: 600; }

/* Partner › Creatives */
.cr-felder { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 2fr) auto; gap: 14px; align-items: end; }
.cr-datei { display: flex; align-items: end; }
.cr-liste { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cr-karte { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; overflow: hidden; }
.cr-vorschau { display: flex; align-items: center; justify-content: center; height: 180px; background: #f1f2f6; color: inherit; text-decoration: none; }
.cr-vorschau img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.cr-art { font-weight: 700; letter-spacing: .08em; font-size: 1.25rem; color: #6a6f87; }
.cr-text { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 16px; }
.cr-aktionen { margin-top: 4px; }
.cr-bearbeiten { margin-top: 8px; border-top: 1px solid var(--rand, #dcdfe8); padding-top: 8px; }
.cr-bearbeiten summary { cursor: pointer; }
.cr-bearbeiten form { display: grid; gap: 6px; margin-top: 10px; }
.cr-sort { width: 90px; }
@media (max-width: 700px) { .cr-felder { grid-template-columns: 1fr; } }
.cr-zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 10px; }
.cr-zeile input:not([type=checkbox]), .cr-zeile select { flex: 1 1 220px; width: auto; min-width: 0; height: 40px; margin: 0; }
.cr-zeile input.cr-sort { flex: 0 0 90px; }
.cr-zeile button, .cr-zeile .klein { flex: none; margin: 0; }
.cr-zeile button { height: 40px; }
.cr-versteckt { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.cr-felder input, .cr-felder select { height: 40px; margin: 0; }
.cr-datei .knopf { height: 40px; display: inline-flex; align-items: center; margin: 0; }
.cr-liste > li.karte { margin: 0; }
.cr-kats > li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 0; }
.cr-kats .cr-zeile { flex-wrap: nowrap; margin: 0; }
.cr-kats .cr-zeile:first-child { flex: 1 1 420px; }
.cr-kats .cr-zeile input:not(.cr-sort) { flex: 1 1 200px; }

/* Partnerportal */
.portal-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid var(--rand, #dcdfe8); }
.portal-nav a { padding: 10px 16px; color: inherit; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.portal-nav a:hover { background: #eceef4; }
.portal-nav a[aria-current=page] { border-bottom-color: #1d4591; font-weight: 600; color: #1d4591; }
.cr-regel { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--rand, #dcdfe8); }
.cr-regel-felder { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cr-regel button { justify-self: start; }

/* Neuer Auftrag */
.auftrag-oben { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); align-items: start; }
.auftrag-oben > .karte { margin: 0; }
.such-box { position: relative; margin-bottom: 12px; }
.treffer { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none; background: var(--karte, #fff); border: 1px solid var(--linie, #d9d9d9); box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 320px; overflow: auto; }
.treffer li { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--linie, #eee); }
.treffer li:last-child { border-bottom: 0; }
.treffer li:hover, .treffer li[aria-selected="true"] { background: #f0f0f0; }
.treffer .klein { display: block; }
.adr-wahl { margin-bottom: 8px; }
.auftrag-pos td { vertical-align: middle; }

/* Variante: Bild wählen */
.vb-wahl { border: 0; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vb-wahl legend { padding: 0; font-size: .8125rem; font-weight: 600; margin-bottom: 6px; }
.vb-wahl label { cursor: pointer; }
.vb-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.vb-thumb img { display: block; width: 56px; height: 56px; object-fit: cover; border: 2px solid transparent; background: #fff; }
.vb-thumb:has(input:checked) img { border-color: var(--akzent, #2d4590); }
.vb-thumb:has(input:focus-visible) img, .vb-kein:has(input:focus-visible) { outline: 2px solid var(--akzent, #2d4590); outline-offset: 2px; }
.vb-kein { padding: 8px 12px; border: 2px solid transparent; background: #f0f0f4; font-size: .875rem; }
.vb-kein:has(input:checked) { border-color: var(--akzent, #2d4590); }
.vb-thumb { position: relative; }
.vb-eigen { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(21,25,55,.78); color: #fff; font-size: .6875rem; text-align: center; padding: 2px 0; }

.mail-text { white-space: pre-wrap; word-break: break-all; max-width: 520px; }
.zeitleiste { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.zeitleiste li { padding-left: 14px; border-left: 2px solid var(--rand); }

/* Lagerverwaltung: Kacheln und Scan-Masken */
.kachel-titel { margin: 22px 0 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-leise); }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.kachel { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); color: inherit; text-decoration: none; }
.kachel:hover { background: var(--grau-bg); }
.kachel .sym { width: 26px; height: 26px; color: var(--akzent); margin-bottom: 6px; }
.kachel strong { font-size: 1.0625rem; }
.kachel-lager .kachel-zahl { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.kacheln-gross { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.kacheln-gross .kachel { padding: 24px 22px; min-height: 130px; }
.scan-karte { max-width: 560px; }
.scan-feld { font-size: 1.25rem; padding: 14px 12px; min-height: 56px; }
.scan-knopf { min-height: 52px; font-size: 1.0625rem; width: 100%; box-sizing: border-box; display: block; text-align: center; margin-top: 12px; }
.scan-aktionen .scan-knopf { margin-top: 12px; }
.scan-karte select, .scan-karte input, .scan-karte textarea { font-size: 1rem; }
.scan-karte select { min-height: 48px; }

/* Reseller mit Whitelabel */
.reseller-aktionen { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0 0; }
.reseller-aktionen .knopf { width: auto; margin: 0; }
.reseller-aktionen .knopf, .reseller-aktionen .knopf-leise { min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; padding: 0 16px; }
.logo-vorschau { background: #fff; border: 1px solid var(--rand); padding: 10px; display: inline-block; }
.logo-vorschau img { display: block; max-height: 60px; max-width: 240px; }
.farbfeld { display: flex; gap: 8px; align-items: center; }
.farbfeld input[type="color"] { width: 40px; height: 40px; padding: 2px; border: 1px solid var(--rand); background: var(--flaeche); }
.hinweis-karte { border-left: 4px solid var(--gelb); }
.reihe-neu { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.reihe-neu > div { flex: 1 1 220px; }
.reihe-neu input, .reihe-neu .knopf { height: 40px; margin: 0; }
.reihe-neu .knopf { width: auto; padding: 0 18px; display: inline-flex; align-items: center; }

/* Vertrieb */
.ganze-breite { grid-column: 1 / -1; }
.umbruch { white-space: pre-wrap; }
.feld-schmal { width: 96px; height: 40px; text-align: right; }
td.zahl .feld-schmal { margin: 0; }

/* Seitenleiste: Navigation scrollt bei vielen Punkten, Fuß mit Benutzer, Version und „powered by“ bleibt immer sichtbar */
.seitenleiste { gap: 10px; }
.seitenleiste > nav[aria-label="Hauptmenü"] { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.seitenleiste > nav[aria-label="Hauptmenü"] a { padding: 7px 10px; }
.sl-fuss { flex: none; gap: 8px; }
@media (max-height: 900px) { .seitenleiste > nav[aria-label="Hauptmenü"] a { padding: 5px 10px; } .seitenleiste { padding-top: 12px; } }

.angebot-aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.angebot-aktionen form { display: flex; gap: 8px; align-items: flex-end; margin: 0; }
.angebot-aktionen input, .angebot-aktionen select, .angebot-aktionen .knopf { height: 40px; margin: 0; }
.angebot-aktionen > input { min-width: 320px; flex: 1 1 320px; }

.produkt-zelle { display: flex; align-items: center; gap: 12px; }
.produktbild { flex: none; display: block; object-fit: contain; background: #fff; border: 1px solid var(--linie, #d9deec); }
.produktbild-klein { width: 48px; height: 48px; } .produktbild-gross { width: 96px; height: 96px; }
.produktbild-leer { background: repeating-conic-gradient(#f1f2f8 0 25%, #fff 0 50%) 0 0 / 12px 12px; }

/* Katalog › Stammdaten: zwei Spalten, rechts die Provisionsbox mit Liveberechnung */
.stamm-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 16px; align-items: start; margin-bottom: 16px; }
.stamm-raster .karte { margin-bottom: 0; }
.stamm-links { display: grid; gap: 16px; }
.provbox h2 { margin-top: 0; } .provbox h3 { margin: 16px 0 6px; font-size: 1em; }
.pb-felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.pb-felder input, .provbox select { width: 100%; height: 40px; }
.pb-gs-zeile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.pb-marge, .pb-ergebnis { margin-top: 12px; }
.pb-tabelle td, .pb-tabelle th { padding: 5px 6px; }
.pb-summe td { font-weight: 600; border-top: 2px solid var(--rand); }
.pb-minus { color: #c0392b; } .pb-plus { color: #1e7b3c; }
@media (max-width: 1100px) { .stamm-raster { grid-template-columns: 1fr; } }

.ohne-rahmen { border: 0; padding: 0; margin: 0; min-width: 0; }
.pb-ziel { margin-bottom: 8px; } .pb-ziel input { width: 100%; height: 40px; }

/* Auszahlung: einfache, grafische Übersicht */
.az-unter { margin: 2px 0 0; }
.az-titel { font-size: .9rem; color: var(--text-leise); }
.az-filterfelder { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.az-filterfelder > div { min-width: 180px; }
.az-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.az-kopf { display: flex; align-items: center; gap: 10px; min-width: 0; }
.az-leer { text-align: center; padding: 36px 18px; }
.az-leiste { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 8px 0 28px; padding: 14px 18px; background: var(--marine); color: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(21, 25, 55, .25); }
.az-csv { color: #fff; text-decoration: underline; white-space: nowrap; font-size: .875rem; }

/* Partner: Übersicht und Provisionstabelle ohne Layoutbrüche */
.raster-fuenf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.raster-fuenf .kennzahl .zahl { font-size: 1.45rem; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .raster-fuenf { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.nowrap { white-space: nowrap; }
.pv-akt-zelle { width: 1%; }
.pv-akt { display: flex; flex-direction: column; gap: 4px; min-width: 118px; }
.pv-akt form { margin: 0; }
.pv-akt .knopf-leise { width: 100%; white-space: nowrap; }
.pv-akt { min-width: 96px; }
.pv-akt .knopf-leise { padding: 5px 8px; font-size: .8rem; }
.pv-tab td, .pv-tab th { padding-left: 8px; padding-right: 8px; }
.pv-bearb h3 { margin: 22px 0 8px; font-size: 1rem; }
.pv-vergleich { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin: 10px 0 4px; }
.pv-vergleich > div { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.pv-alt { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-pfeil { font-size: 1.4rem; color: var(--text-leise); padding-bottom: 8px; }
.pl-box { margin: 14px 0 6px; padding: 12px 14px; border: 1px dashed var(--linie, #c9cee0); }
.pl-titel { margin: 0 0 8px; font-weight: 600; }
.pl-bild { display: block; max-width: 150px; max-height: 60px; width: auto; height: auto; margin: 0 0 10px; object-fit: contain; background: #fff; }
.pl-wahl { display: inline-block; cursor: pointer; }
.pl-datei { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pl-datei:focus-visible + .klein { outline: 2px solid var(--marine); }

.unterschrift-bild { max-width: 100%; height: auto; background: #fff; border: 1px solid var(--rand); margin-top: 8px; }

.link-feld { width: 100%; margin-bottom: 8px; }

/* Checklisten-Editor */
.cl-raster { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .cl-raster { grid-template-columns: 300px 1fr; } }
.cl-karten { display: grid; gap: 10px; }
.cl-karte { display: grid; gap: 4px; padding: 14px 16px; background: var(--flaeche); border: 1px solid var(--rand); text-decoration: none; color: inherit; }
.cl-karte:hover { border-color: var(--akzent); }
.cl-karte.aktiv { border-color: var(--akzent); background: var(--akzent-hell); }
.cl-editor label[for="c-n"] { display: block; font-weight: 600; margin-bottom: 6px; }
.cl-liste { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.cl-punkt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--rand); }
.cl-punkt.zieht { opacity: .5; }
.cl-text { flex: 1; min-width: 0; background: var(--flaeche); }
.cl-foto { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--rand-stark, var(--rand)); background: var(--flaeche); color: var(--text-leise); font-size: .85rem; white-space: nowrap; cursor: pointer; }
.cl-foto.an { background: var(--akzent-hell); border-color: var(--akzent); color: var(--akzent); font-weight: 600; }
.cl-foto .sym { width: 18px; height: 18px; }
.cl-weg { width: 32px; height: 32px; font-size: 1.4rem; line-height: 1; color: var(--text-leise); background: none; border: 0; cursor: pointer; }
.cl-weg:hover { color: var(--rot); }
.cl-neu { display: block; width: 100%; padding: 12px; border: 1.5px dashed var(--rand-stark, var(--rand)); background: none; color: var(--akzent); font-weight: 600; cursor: pointer; margin-bottom: 18px; }
.cl-neu:hover { background: var(--akzent-hell); }
.cl-optionen { display: grid; gap: 8px; margin-bottom: 18px; }
@media (max-width: 560px) { .cl-foto span { display: none; } }
