:root {
  --bg: #f5f4f1;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --ink: #151515;
  --ink-2: #3d3a36;
  --muted: #77726b;
  --line: #e7e3dc;
  --line-2: #d9d4cb;
  --amber: #d18c12;
  --amber-dark: #a96f08;
  --amber-soft: #fbf3e4;
  --ok: #2f7d52;
  --ok-soft: #e8f4ec;
  --warn: #b5481e;
  --warn-soft: #fbece5;
  --info: #3b5b75;
  --info-soft: #e9eff4;
  --privat: #6c5a86;
  --privat-soft: #f0ecf6;
  --mandant: #d18c12;
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(20, 18, 15, .04), 0 4px 16px rgba(20, 18, 15, .05);
  --shadow-l: 0 2px 6px rgba(20, 18, 15, .06), 0 14px 40px rgba(20, 18, 15, .10);
  --fs: 15px;
  --pad: 1rem;
  --btn-h: 2.6rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body.profil-einfach { --fs: 19px; --pad: 1.25rem; --btn-h: 3.1rem; }
body.profil-experte { --fs: 14px; --pad: .85rem; --btn-h: 2.3rem; }

* { box-sizing: border-box; }
html { font-size: var(--fs); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { color: var(--amber-dark); text-decoration-color: currentColor; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 650; }
h2 { font-size: 1.15rem; font-weight: 620; }
h3 { font-size: 1rem; font-weight: 620; margin-top: 1.25rem; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--muted); }
.klein { font-size: .85rem; }
.warn { color: var(--warn); }
.nowrap { white-space: nowrap; }
.r { text-align: right; }
.center { text-align: center; }
.stark { font-weight: 700; }
[hidden] { display: none !important; }

.mandant-band { height: 4px; background: var(--mandant); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.25rem;
  padding: .6rem 1.5rem;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 8px;
  background: #141414; color: var(--amber);
  font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
}
.brand-mark.gross { width: 3rem; height: 3rem; font-size: 1.4rem; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: .95rem; letter-spacing: .14em; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

.mandant-switch { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.mandant-switch button {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 0; background: transparent; border-radius: 999px;
  padding: .4rem .9rem; font: inherit; font-size: .88rem; color: var(--ink-2); cursor: pointer;
}
.mandant-switch button .dot, .mandant-single .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--c, var(--mandant)); display: inline-block; }
.mandant-switch button.aktiv { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08), inset 0 0 0 1.5px var(--c); }
.mandant-switch button:hover:not(.aktiv) { background: var(--surface); }
.mandant-single { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-2); }

.hauptnav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.hauptnav > a, .nav-admin > summary {
  padding: .5rem .85rem; border-radius: var(--radius-s); text-decoration: none; color: var(--ink-2);
  font-weight: 520; cursor: pointer; list-style: none;
}
.nav-admin > summary::-webkit-details-marker, .usermenu > summary::-webkit-details-marker { display: none; }
.hauptnav > a:hover, .nav-admin > summary:hover { background: var(--surface-2); color: var(--ink); }
.hauptnav > a.aktiv, .nav-admin.aktiv > summary { color: var(--ink); background: var(--amber-soft); box-shadow: inset 0 -2px 0 var(--amber); }
details { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l);
  padding: .35rem; display: flex; flex-direction: column; z-index: 30;
}
.menu a, .menu .linkbtn { padding: .55rem .75rem; border-radius: var(--radius-s); text-decoration: none; text-align: left; color: var(--ink); }
.menu a:hover, .menu .linkbtn:hover { background: var(--surface-2); }
.usermenu > summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; list-style: none; padding: .25rem .4rem; border-radius: 999px; }
.usermenu > summary:hover { background: var(--surface-2); }
.avatar { width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .85rem; }
.uname { font-size: .9rem; color: var(--ink-2); }

.inhalt { max-width: 1440px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; }
.gast-inhalt { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(1200px 500px at 50% -10%, #fff 0%, var(--bg) 60%); }
.fuss { max-width: 1440px; margin: 0 auto; padding: 1rem 1.5rem 2rem; display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }

.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.seitenkopf h1 { margin: 0; }
.untertitel { color: var(--muted); margin: .25rem 0 0; }
.kopf-aktionen { display: flex; gap: .5rem; flex-wrap: wrap; }
.zurueck { display: inline-block; color: var(--muted); text-decoration: none; font-size: .88rem; margin-bottom: .35rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: var(--btn-h); padding: 0 1.05rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 560; font-size: .95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(209, 140, 18, .45); outline-offset: 2px; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2825; color: #fff; border-color: #2a2825; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #276a45; color: #fff; border-color: #276a45; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--line); }
.btn-gross { min-height: calc(var(--btn-h) * 1.15); font-size: 1.02rem; padding: 0 1.4rem; }
.btn-block { width: 100%; }
.btn .ico { font-size: 1.15em; line-height: 1; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--amber-dark); }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }

input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .6rem .75rem; min-height: var(--btn-h);
  border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(209, 140, 18, .15); outline: none; }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--ink); padding: 0; }
input[type=color] { padding: .2rem; height: var(--btn-h); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset[disabled] { opacity: .7; }
legend { font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--ink-2); }

.form { display: flex; flex-direction: column; gap: .9rem; }
.form label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 560; color: var(--ink-2); }
.form label small { font-weight: 400; }
.form label.check, .radios label { flex-direction: row; align-items: center; gap: .55rem; font-weight: 450; color: var(--ink); }
.radios { display: flex; flex-direction: column; gap: .5rem; }
.form-kompakt { gap: .65rem; }
.form-breit { max-width: 980px; }
.feld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.feld-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.feld-2.eng { gap: .6rem; }
.form-fuss { display: flex; gap: .5rem; padding-top: .4rem; flex-wrap: wrap; }
.inline-label { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.inline-label input { width: auto; }
.inline, .inline-form { display: inline; }

.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: calc(var(--pad) * 1.4); box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.karte-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.karte-kopf h2 { margin: 0; }
.karte.firma { border-top: 4px solid var(--c); }
.raster-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.hinweis { background: var(--amber-soft); border: 1px solid #f0dcb4; color: #6a4a0c; padding: .8rem 1rem; border-radius: var(--radius-s); margin-bottom: 1.25rem; }
.erklaerung { color: var(--ink-2); margin: -.25rem 0 1rem; }

.flash { padding: .8rem 1rem; border-radius: var(--radius-s); margin-bottom: .75rem; border: 1px solid; font-weight: 500; }
.flash-ok { background: var(--ok-soft); border-color: #c6e3d0; color: #1f5a3a; }
.flash-fehler { background: var(--warn-soft); border-color: #f1cdbd; color: #8a3413; }
.flash-info { background: var(--info-soft); border-color: #cfdbe5; color: #2c475c; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.tab { padding: .7rem 1rem; text-decoration: none; color: var(--muted); font-weight: 560; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; }
.tab:hover { color: var(--ink); }
.tab.aktiv { color: var(--ink); border-bottom-color: var(--amber); }
.zahl { display: inline-block; min-width: 1.6em; padding: .05em .45em; border-radius: 999px; background: #eeebe5; color: var(--ink-2); font-size: .78rem; font-weight: 600; text-align: center; }
.tab.aktiv .zahl { background: var(--ink); color: #fff; }

.filterzeile { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.segment { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 3px; gap: 2px; }
.segment a, .segment label { padding: .38rem .8rem; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-size: .9rem; cursor: pointer; white-space: nowrap; }
.segment a.aktiv, .segment label:has(input:checked) { background: var(--ink); color: #fff; }
.segment label input { position: absolute; opacity: 0; pointer-events: none; }
.segment-gross { display: grid; grid-template-columns: 1fr 1fr; width: 100%; padding: 4px; }
.segment-gross label { padding: .85rem 1rem; text-align: center; font-weight: 600; display: flex; flex-direction: column; }
.segment-gross label small { font-weight: 400; opacity: .75; }
.suche { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; flex: 1; }
.suche input[type=search] { flex: 1 1 240px; width: auto; }
.suche select, .suche input[type=date] { width: auto; }
.schnellwahl { display: flex; gap: .35rem; flex-wrap: wrap; }
.schnellwahl a { font-size: .82rem; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-2); background: var(--surface); }
.schnellwahl a:hover { border-color: var(--ink-2); }

.tabelle-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; margin-bottom: 1rem; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: .75rem var(--pad); border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.tabelle th a { color: inherit; text-decoration: none; }
.tabelle th.r { text-align: right; }
.tabelle td { padding: .78rem var(--pad); border-bottom: 1px solid #f0ede8; vertical-align: middle; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle tbody tr[data-href] { cursor: pointer; }
.tabelle tbody tr:hover { background: #fcfbf8; }
.tabelle tr.ist-neu td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.tabelle tr.ist-neu .zeilenlink { font-weight: 650; }
.tabelle tr.inaktiv { opacity: .55; }
.tabelle.kompakt td, .tabelle.kompakt th { padding-top: .5rem; padding-bottom: .5rem; }
.zeilenlink { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: .5rem; }
.betrag { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
td.r { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plus { color: var(--ok); }
.minus { color: var(--ink); }
.w-check { width: 2.5rem; }
.richtung-punkt { width: .55rem; height: .55rem; border-radius: 50%; flex: none; }
.richtung-punkt.richtung-eingang { background: var(--ink-2); }
.richtung-punkt.richtung-ausgang { background: var(--ok); }

.badge { display: inline-flex; align-items: center; padding: .14rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 600; background: #eeebe5; color: var(--ink-2); white-space: nowrap; letter-spacing: .01em; }
.badge-neu { background: var(--amber); color: #fff; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-offen { background: #f1eee8; color: var(--ink-2); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-frei { background: var(--info-soft); color: var(--info); }
.badge-privat { background: var(--privat-soft); color: var(--privat); }
.badge-profil-einfach { background: var(--amber-soft); color: var(--amber-dark); }
.badge-profil-experte { background: #1c1c1c; color: #fff; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 650; padding: .1rem .45rem; border-radius: 4px; background: color-mix(in srgb, var(--c, #888) 14%, white); color: color-mix(in srgb, var(--c, #888) 75%, black); border: 1px solid color-mix(in srgb, var(--c, #888) 30%, white); letter-spacing: .02em; margin-left: .35rem; }
.chip-e { --c: #3b5b75; }
.farbpunkt { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; background: var(--c); margin-right: .45rem; vertical-align: -1px; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.kachel { display: flex; flex-direction: column; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s, border-color .12s; }
.kachel:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); border-color: var(--line-2); color: var(--ink); }
.kachel.ist-neu { border-left: 5px solid var(--amber); }
.kachel-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.kachel-partner { font-size: 1.15rem; font-weight: 650; line-height: 1.25; }
.kachel-betrag { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kachel-fuss { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.richtung { display: inline-block; font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.richtung-ausgang { color: var(--ok); }

.leer { text-align: center; padding: 3.5rem 1rem; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.leer h2 { color: var(--ink); }
.leer-ico { width: 3rem; height: 3rem; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 1.4rem; font-weight: 700; }

.sammelleiste { position: sticky; top: 4.2rem; z-index: 10; display: flex; gap: .6rem; align-items: center; padding: .6rem .9rem; margin-bottom: .75rem; background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-l); }
.sammelleiste span { margin-right: auto; }
.sammelleiste .btn { min-height: 2.1rem; }

.detail-nav { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.detail { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 1.5rem; align-items: start; }
body.profil-einfach .detail { grid-template-columns: minmax(0, 1.3fr) minmax(400px, 1fr); }
.vorschau { position: sticky; top: 5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 7rem); min-height: 520px; }
.vorschau iframe { flex: 1; width: 100%; border: 0; background: #525659; }
.bildvorschau { flex: 1; overflow: auto; background: #2b2b2b; display: grid; place-items: start center; cursor: zoom-in; }
.bildvorschau img { max-width: 100%; display: block; }
.bildvorschau.zoom { cursor: zoom-out; }
.bildvorschau.zoom img { max-width: none; width: 180%; }
.xmlvorschau { flex: 1; overflow: auto; padding: 2rem; background: linear-gradient(180deg, #fff, var(--surface-2)); }
.xml-badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--info); background: var(--info-soft); padding: .25rem .6rem; border-radius: 4px; margin-bottom: 1rem; }
.vorschau-leiste { display: flex; gap: 1.2rem; padding: .65rem 1rem; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .88rem; }
.seitenpanel { display: flex; flex-direction: column; gap: 1rem; }
.panel-kopf { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.panel-kopf h1 { font-size: 1.45rem; margin: .3rem 0 .4rem; }
.partner-info { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.partner-info .chip { margin-left: 0; }
.betrag-gross { font-size: 2.1rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: .3rem 0 .5rem; }
.badges { display: flex; gap: .35rem; flex-wrap: wrap; }
.aktionen { display: flex; flex-direction: column; gap: .65rem; }
.aktion-zeile { display: flex; flex-direction: column; gap: .5rem; }
.status-box { display: flex; flex-direction: column; gap: .1rem; padding: .85rem 1rem; border-radius: var(--radius-s); border: 1px solid; }
.status-box.ok { background: var(--ok-soft); border-color: #c6e3d0; color: #1f5a3a; }
.status-box.frei { background: var(--info-soft); border-color: #cfdbe5; color: #2c475c; }
.status-box span { font-size: .9rem; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.block h2 { font-size: 1rem; text-transform: none; }
.notiz-form { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; margin-bottom: .75rem; }
.notiz { border-left: 3px solid var(--amber); background: var(--surface-2); padding: .6rem .8rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin-top: .6rem; }
.notiz p { margin: 0 0 .2rem; white-space: pre-wrap; }
.notiz small { color: var(--muted); }
.zahlung { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.zahlung:first-of-type { border-top: 0; }
.dl-klein, .dl-gross { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.dl-klein dt { color: var(--muted); font-size: .85rem; }
.dl-klein dd { margin: 0; font-size: .9rem; word-break: break-word; }
.dl-gross { gap: .7rem 1.5rem; font-size: 1.05rem; margin: 1.25rem 0; }
.dl-gross dt { color: var(--muted); }
.dl-gross dd { margin: 0; font-variant-numeric: tabular-nums; }
.verlauf { list-style: none; margin: 0; padding: 0; }
.verlauf li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-top: 1px solid #f0ede8; font-size: .88rem; }
.verlauf li:first-child { border-top: 0; }
.verlauf small { color: var(--muted); white-space: nowrap; }

.upload-karte { max-width: 860px; display: flex; flex-direction: column; gap: 1.1rem; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center; padding: 2.75rem 1rem; border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--amber); background: var(--amber-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico { font-size: 2rem; color: var(--amber); line-height: 1; }
.dateiliste { margin-top: .5rem; font-weight: 600; color: var(--ink); }
.hinweis-karte { max-width: 860px; }
.hinweis-karte ul { margin: 0; padding-left: 1.2rem; }

.umsatzliste { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.5rem; }
.umsatz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.umsatz.ist-privat { opacity: .8; }
.umsatz-haupt { display: grid; grid-template-columns: 8rem 1fr auto; gap: 1rem; align-items: start; padding: .95rem 1.2rem; }
.umsatz-datum { font-variant-numeric: tabular-nums; color: var(--ink-2); display: flex; flex-direction: column; }
.umsatz-datum small { color: var(--muted); font-size: .78rem; }
.umsatz-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .2rem; min-width: 0; }
.umsatz-text .zweck { flex-basis: 100%; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.umsatz-betrag { font-size: 1.12rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.umsatz-status { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .6rem 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; }
.umsatz-status.ok { background: var(--ok-soft); color: #1f5a3a; }
.umsatz-status.privat { background: var(--privat-soft); color: var(--privat); }
.vorschlag { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .8rem 1.2rem; border-top: 1px solid #f0dcb4; background: var(--amber-soft); }
.vorschlag-text { display: flex; flex-direction: column; gap: .1rem; }
.vorschlag-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--amber-dark); }
.vorschlag a { text-decoration: none; }
.janein { display: flex; align-items: center; gap: .5rem; }
.frage { font-weight: 650; margin-right: .25rem; }
.janein .btn { min-width: 5rem; }
body.profil-einfach .janein .btn { min-width: 7rem; }
.umsatz-aktionen { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; padding: .6rem 1.2rem; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .9rem; }
.zuordnen[open] { flex-basis: 100%; }
.zuordnen-form { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.zuordnen-form select { flex: 1 1 320px; width: auto; }
.w-betrag { width: 11rem !important; }
.import-pop[open] > .karte { position: absolute; right: 0; top: calc(100% + 8px); width: min(460px, 92vw); z-index: 25; box-shadow: var(--shadow-l); }
.klein-karte { margin-top: 1rem; }

.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kennzahl { display: flex; flex-direction: column; gap: .2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
a.kennzahl:hover { border-color: var(--line-2); box-shadow: var(--shadow-l); color: var(--ink); }
.kennzahl.warn { border-left: 4px solid var(--warn); }
.kz-wert { font-size: 1.6rem; font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kz-label { color: var(--muted); font-size: .88rem; }
.berichtkarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.berichtkarte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); position: relative; transition: transform .12s, box-shadow .12s; }
.berichtkarte::after { content: "→"; position: absolute; right: 1.2rem; top: 1.2rem; color: var(--amber); font-weight: 700; }
.berichtkarte:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); color: var(--ink); }
.berichtkarte p { color: var(--muted); margin: 0; }
.fabrikkarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.fabrikkarte { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .5rem; }
.fabrikkarte:hover, .fabrikkarte.aktiv { box-shadow: var(--shadow-l); color: var(--ink); }
.fabrikkarte.aktiv { outline: 2px solid var(--c); outline-offset: -1px; }
.fk-kopf { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.balken { height: 6px; background: #f0ede8; border-radius: 999px; overflow: hidden; }
.balken span { display: block; height: 100%; background: var(--c); border-radius: 999px; }
.fk-werte { display: grid; grid-template-columns: 1fr auto; gap: .3rem .75rem; margin: 0; font-size: .92rem; }
.fk-werte dt { color: var(--muted); }
.fk-werte dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.fk-werte small { color: var(--muted); font-weight: 400; }
.abschnitt { margin-top: 1.5rem; }
.druckfuss { display: none; }
.blaettern { display: flex; gap: .5rem; justify-content: center; }

.login-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2.2rem 2.2rem 1.8rem; box-shadow: var(--shadow-l); }
.login-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem; }
.login-brand strong { display: block; letter-spacing: .16em; font-size: 1.05rem; }
.login-brand small { color: var(--muted); }
.login-card h1 { font-size: 1.45rem; }
.qr { display: block; width: 200px; height: 200px; margin: .5rem auto 1rem; border: 1px solid var(--line); border-radius: var(--radius-s); padding: .5rem; background: #fff; }
.code-input { text-align: center; font-size: 1.6rem; letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.schritte { padding-left: 1.2rem; color: var(--ink-2); }

.profilwahl { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.profil-option { display: flex; gap: .8rem; align-items: flex-start; width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; }
.profil-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-2); }
.profil-option span { display: flex; flex-direction: column; }
.profil-option small { color: var(--muted); }
.profil-radios label small { color: var(--muted); }

.kontoliste { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .4rem; }
.konto-zeile { display: flex; gap: .6rem; align-items: center; }
.konto-zeile input { width: auto; flex: 1; min-height: 2.2rem; }
.kontoliste .inaktiv { opacity: .55; }

.modal-hinter { position: fixed; inset: 0; background: rgba(20, 18, 15, .45); display: grid; place-items: center; z-index: 100; padding: 1rem; animation: einblenden .12s ease-out; }
.modal { background: var(--surface); border-radius: 14px; padding: 1.6rem 1.6rem 1.3rem; width: min(460px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal p { font-size: 1.05rem; margin: 0 0 1.3rem; }
.modal-knoepfe { display: flex; gap: .6rem; justify-content: flex-end; }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }

.fehlerseite { max-width: 520px; margin: 15vh auto; padding: 2rem; background: #fff; border-radius: 12px; border: 1px solid var(--line); font-family: var(--font); }

body.profil-einfach .tabs .tab { padding: .85rem 1.1rem; }
body.profil-einfach .seitenkopf h1 { font-size: 2rem; }
body.profil-einfach .aktionen .btn-gross { min-height: 3.8rem; font-size: 1.15rem; }
body.profil-einfach .panel-kopf h1 { font-size: 1.6rem; }
body.profil-einfach .betrag-gross { font-size: 2.4rem; }
body.profil-experte .tabelle td { padding-top: .5rem; padding-bottom: .5rem; }
body.profil-experte h1 { font-size: 1.5rem; }

@media (max-width: 1100px) {
  .detail, body.profil-einfach .detail { grid-template-columns: 1fr; }
  .vorschau { position: static; height: 70vh; }
  .raster-2 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; padding: .6rem 1rem; gap: .6rem; }
  .hauptnav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .mandant-switch button { padding: .35rem .6rem; font-size: .8rem; }
  .uname { display: none; }
  .inhalt { padding: 1.2rem 1rem 2.5rem; }
  .feld-2, .feld-3 { grid-template-columns: 1fr; }
  .umsatz-haupt { grid-template-columns: 1fr auto; }
  .umsatz-datum { grid-column: 1 / -1; flex-direction: row; gap: .5rem; }
  .segment-gross { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .topbar, .mandant-band, .fuss, .no-print, .tabs, .filterzeile, .flash, .zurueck { display: none !important; }
  .inhalt { padding: 0; max-width: none; }
  .tabelle-wrap, .kennzahl, .fabrikkarte, .karte { box-shadow: none; border-color: #ccc; }
  .tabelle th { background: #f3f3f3 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .druckfuss { display: block; color: #777; font-size: 9pt; margin-top: 1rem; }
  a { text-decoration: none; color: inherit; }
}
.filterzeile select, .filterzeile input[type=date] { width: auto; }

.topsuche { flex: 0 1 280px; margin-left: auto; }
.topsuche input { min-height: 2.3rem; padding: .4rem .8rem .4rem 2.1rem; border-radius: 999px; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2377726b' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .75rem center; font-size: .9rem; }
.topsuche + .hauptnav { margin-left: .5rem; }
.suchkopf { font-weight: 600; margin: -.25rem 0 .9rem; color: var(--ink-2); }
.ausschnitt { font-size: .84rem; color: var(--muted); margin-top: .3rem; line-height: 1.45; max-width: 720px; }
.ausschnitt mark, .kachel .ausschnitt mark { background: #fbe3b3; color: var(--ink); padding: 0 .1em; border-radius: 2px; }
.kachel .ausschnitt { font-size: .9rem; }

.pdfviewer { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #e9e6e0; }
.pv-leiste { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .5rem .7rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.pv-gruppe { display: inline-flex; align-items: center; gap: .25rem; }
.pv-btn { min-width: 2.1rem; height: 2.1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font: inherit; font-size: 1rem; cursor: pointer; color: var(--ink-2); padding: 0 .5rem; }
.pv-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.pv-btn.pv-text { font-size: .82rem; font-weight: 560; }
.pv-umschalter .pv-btn.aktiv { background: var(--ink); color: #fff; border-color: var(--ink); }
.pv-zoom { min-width: 3.4rem; text-align: center; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-info { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-suche { margin-left: auto; }
.pv-suche input { width: 13rem; min-height: 2.1rem; padding: .3rem .6rem; font-size: .88rem; }
.pv-treffer-info { font-size: .8rem; color: var(--muted); min-width: 4.5rem; text-align: right; }
.pv-seiten { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.pv-seite { position: relative; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 6px 20px rgba(0,0,0,.08); flex: none; }
.pv-seite canvas { display: block; }
.pv-laden { margin: auto; color: var(--muted); padding: 3rem 1rem; }
.textLayer { --highlight-bg-color: rgba(209, 140, 18, .25); --highlight-selected-bg-color: rgba(209, 140, 18, .55); }
.textLayer ::selection { background: rgba(47, 111, 159, .3); }
.textLayer .pv-treffer { background: rgba(244, 187, 74, .45); border-radius: 2px; }
.textLayer .pv-aktiv { background: rgba(209, 110, 18, .7); outline: 2px solid #b5481e; }
body.profil-einfach .pv-btn { min-width: 2.6rem; height: 2.6rem; font-size: 1.15rem; }

.block-kopf { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.block-kopf h2 { margin: 0; }
.kopierliste { display: grid; grid-template-columns: max-content 1fr; gap: .1rem 1rem; margin: 0; }
.kopierliste dt { color: var(--muted); font-size: .85rem; padding: .45rem 0; }
.kopierliste dd { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .25rem 0; border-bottom: 1px dashed #eee9e1; word-break: break-word; }
.kopier-btn { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: .25rem .6rem; font: inherit; font-size: .78rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.kopier-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.kopier-btn.ok, .btn.ok { background: var(--ok-soft); border-color: #c6e3d0; color: var(--ok); }
body.profil-einfach .kopier-btn { padding: .45rem .8rem; font-size: .9rem; }
.abweichung { margin-top: .9rem; padding: .8rem 1rem; background: var(--amber-soft); border: 1px solid #f0dcb4; border-radius: var(--radius-s); font-size: .9rem; }
.abweichung ul { margin: .35rem 0 .7rem; padding-left: 1.1rem; }
.volltext { margin-top: .9rem; }
.volltext summary { cursor: pointer; font-weight: 560; color: var(--ink-2); }
.volltext-leiste { margin: .6rem 0; }
.volltext pre { max-height: 420px; overflow: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .8rem; font-family: var(--mono); font-size: .8rem; white-space: pre-wrap; word-break: break-word; margin: 0; }
.neu-erkennen { margin-top: .6rem; font-size: .85rem; }
@media (max-width: 1200px) { .topsuche { display: none; } }
.abweichung.warnung { background: var(--warn-soft); border-color: #f1cdbd; color: #7a3011; margin: 0; }
.abweichung.warnung a { color: inherit; }
.merken { margin: .2rem 0 .3rem; font-size: .92rem; }
.geraeteliste { list-style: none; padding: 0; margin: 0 0 1rem; }
.geraeteliste li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.geraeteliste li div { display: flex; flex-direction: column; }
.demo-band { background: repeating-linear-gradient(135deg, #141414 0 14px, #1f1f1f 14px 28px); color: var(--amber); text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem 1rem; }
body.gast .demo-band { position: fixed; top: 0; left: 0; right: 0; z-index: 5; }

body.mit-menu { --menu-b: 264px; }
body.profil-einfach.mit-menu { --menu-b: 290px; }
.menu-schalter, .mobilkopf, .menu-hinter { display: none; }
.seitenmenu {
  position: fixed; inset: 0 auto 0 0; width: var(--menu-b); z-index: 30;
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.1rem .85rem 1rem;
  background: #141414; color: #e9e6e0;
  overflow-y: auto; scrollbar-width: thin;
}
body.mit-menu .demo-band { margin-left: var(--menu-b); }
.seitenmenu .brand { color: #fff; padding: .2rem .45rem .8rem; }
.seitenmenu .brand-mark { background: var(--amber); color: #141414; }
.seitenmenu .brand-text small { color: #9b958c; }
.firmenwahl { display: flex; flex-direction: column; gap: 3px; background: #1f1f1f; border-radius: 10px; padding: 4px; margin-bottom: .35rem; }
.firmenwahl button { display: flex; align-items: center; gap: .6rem; width: 100%; border: 0; background: transparent; color: #c9c4bb; font: inherit; font-size: .9rem; text-align: left; padding: .55rem .7rem; border-radius: 7px; cursor: pointer; }
.firmenwahl button:hover { background: #2a2a2a; color: #fff; }
.firmenwahl button.aktiv { background: #fff; color: #141414; font-weight: 650; }
.firmenwahl .dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--c, var(--mandant)); flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.firmenwahl.einzeln { flex-direction: row; align-items: center; gap: .6rem; padding: .6rem .8rem; font-size: .88rem; }
.menusuche input { background: #1f1f1f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239b958c' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .75rem center; border: 1px solid #2c2c2c; color: #fff; padding-left: 2.2rem; min-height: 2.5rem; font-size: .9rem; }
.menusuche input::placeholder { color: #8a857d; }
.menusuche input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(209,140,18,.25); }
.nav-upload { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: .5rem 0 .35rem; padding: .8rem 1rem; border-radius: 10px; background: var(--amber); color: #141414; font-weight: 700; text-decoration: none; }
.nav-upload:hover { background: #e39c1c; color: #141414; }
.nav-upload .ico { width: 1.25rem; height: 1.25rem; stroke-width: 2.2; }
.nav-gruppe { display: flex; flex-direction: column; gap: 2px; margin-top: .6rem; }
.nav-titel { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #8a857d; font-weight: 700; padding: .3rem .75rem .35rem; }
.nav-link { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .62rem .75rem; border-radius: 8px; color: #dcd7cf; text-decoration: none; font-size: .95rem; font-weight: 520; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.nav-link:hover { background: #222; color: #fff; }
.nav-link.aktiv { background: #2a2620; color: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.nav-link .ico { width: 1.25rem; height: 1.25rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.nav-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.nav-text small { color: #8a857d; font-size: .75rem; }
.nav-zahl { min-width: 1.7rem; padding: .1rem .45rem; border-radius: 999px; background: #2e2e2e; color: #e9e6e0; font-size: .75rem; font-weight: 700; text-align: center; }
.nav-link.hat-neu .nav-zahl { background: var(--amber); color: #141414; }
.menu-fuss { margin-top: auto; padding-top: 1rem; border-top: 1px solid #262626; display: flex; flex-direction: column; gap: 2px; }
.menu-fuss .avatar { background: #2e2e2e; width: 1.9rem; height: 1.9rem; flex: none; }
.abmelden { color: #a9a39a; }
body.profil-einfach .nav-link { font-size: 1.05rem; padding: .78rem .85rem; }
body.profil-einfach .nav-link .ico { width: 1.45rem; height: 1.45rem; }
body.profil-einfach .nav-upload { font-size: 1.05rem; padding: 1rem; }
body.mit-menu .inhalt { margin-left: var(--menu-b); max-width: none; padding: 1.6rem 2rem 3rem; }
body.mit-menu .mandant-band { height: 4px; margin: -1.6rem -2rem 1.4rem; }
body.mit-menu .topbar, body.mit-menu .fuss { display: none; }
body.mit-menu .vorschau { top: 1.25rem; height: calc(100vh - 2.5rem); }
body.mit-menu .sammelleiste { top: .75rem; }

@media (max-width: 980px) {
  .mobilkopf { display: flex; align-items: center; gap: .9rem; position: sticky; top: 0; z-index: 25; padding: .6rem 1rem; background: #141414; }
  .mobilkopf .brand { color: #fff; }
  .mobilkopf .brand-mark { background: var(--amber); color: #141414; }
  .menu-knopf { display: inline-flex; flex-direction: column; gap: 4px; padding: .55rem; cursor: pointer; }
  .menu-knopf span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }
  .seitenmenu { transform: translateX(-100%); transition: transform .2s ease; width: min(86vw, 320px); }
  .menu-schalter:checked ~ .seitenmenu { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .menu-schalter:checked ~ .menu-hinter { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 29; }
  body.mit-menu .inhalt { margin-left: 0; padding: 1.1rem 1rem 2.5rem; }
  body.mit-menu .mandant-band { margin: -1.1rem -1rem 1rem; }
  body.mit-menu .demo-band { margin-left: 0; }
}

.feld-4 { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr 1fr; gap: .9rem; }
@media (max-width: 1100px) { .feld-4 { grid-template-columns: 1fr 1fr; } }

.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .55rem .18rem .2rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, white); border: 1px solid color-mix(in srgb, var(--c) 35%, white); color: color-mix(in srgb, var(--c) 80%, black); font-size: .78rem; font-weight: 650; text-decoration: none; white-space: nowrap; line-height: 1.3; }
a.tag:hover { border-color: var(--c); color: color-mix(in srgb, var(--c) 90%, black); }
.tag-typ { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--c); color: #fff; font-size: .62rem; font-weight: 800; }
.tag-x { border: 0; background: none; color: inherit; font-size: 1rem; line-height: 1; padding: 0 0 0 .15rem; cursor: pointer; opacity: .6; }
.tag-x:hover { opacity: 1; }
.tag-form { display: inline; }
.tagbox { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .55rem; }
.tagbox-kopf { font-weight: 650; font-size: .9rem; }
.tagbox-kopf small { font-weight: 400; }
.tagliste, .tag-schnell, .kachel-tags, .zeilen-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.zeilen-tags { margin-top: .3rem; }
.tag-plus { cursor: pointer; padding: .22rem .65rem; background: #fff; border-style: dashed; font-family: inherit; }
.tag-plus:hover { background: color-mix(in srgb, var(--c) 12%, white); border-style: solid; }
.tag-neu { display: flex; gap: .4rem; }
.tag-neu input { flex: 1; min-width: 0; min-height: 2.3rem; padding: .35rem .6rem; font-size: .9rem; }
.tag-neu select { width: auto; min-height: 2.3rem; padding: .3rem .4rem; font-size: .85rem; }
.tag-neu .btn { min-height: 2.3rem; padding: 0 .8rem; font-size: .88rem; }
body.profil-einfach .tag { font-size: .9rem; padding: .3rem .7rem .3rem .25rem; }
body.profil-einfach .tag-typ { width: 1.35rem; height: 1.35rem; font-size: .7rem; }
.tag-zeile { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.tag-zeile input[name=name] { flex: 1 1 200px; width: auto; min-height: 2.2rem; }
.tag-zeile select { width: auto; min-height: 2.2rem; }
.tag-zeile input[type=color] { width: 3rem; height: 2.2rem; }
.tag-zeile .check { display: inline-flex; gap: .35rem; align-items: center; font-size: .88rem; }
.tag-zeile .anzahl { font-size: .85rem; color: var(--muted); min-width: 5.5rem; }
.tag-zeile .btn { min-height: 2.2rem; }
.tabelle-wrap.flach { box-shadow: none; }

.w-schnell { width: 1%; white-space: nowrap; }
.schnell-knoepfe, .schnellleiste { display: flex; gap: .3rem; }
.sk { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 6px; padding: .3rem .6rem; font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer; white-space: nowrap; }
.sk:hover { border-color: var(--ink); color: var(--ink); }
.sk.an { background: var(--ink); border-color: var(--ink); color: #fff; }
.kachel-wrap { display: flex; flex-direction: column; }
.kachel-wrap .kachel { border-bottom-left-radius: 0; border-bottom-right-radius: 0; flex: 1; }
.schnellleiste { background: var(--surface-2); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: .55rem; }
.schnellleiste .sk { flex: 1; padding: .6rem .4rem; font-size: .95rem; }
.badge-sepa { background: #e7eef7; color: #2f5d8a; }
.aktion-paar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.aktion-paar .btn { width: 100%; }
.btn.ist-aktiv { background: #e7eef7; border-color: #bcd0e5; color: #2f5d8a; }
.ico { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-gefahr { background: #fff; border-color: #e3b8a6; color: var(--warn); }
.btn-gefahr:hover { background: var(--warn); border-color: var(--warn); color: #fff; }
.abweichung.warnung form { margin-top: .6rem; }
.loeschen-block summary { cursor: pointer; color: var(--muted); font-size: .9rem; font-weight: 560; }
.loeschen-block[open] summary { margin-bottom: .7rem; color: var(--warn); }
.geloescht-band { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; margin-bottom: 1rem; border-radius: var(--radius-s); background: var(--warn-soft); border: 1px solid #f1cdbd; color: #7a3011; }
.sepa-hinweis { padding: .75rem 1rem; border-radius: var(--radius-s); background: #e7eef7; border: 1px solid #bcd0e5; color: #2f5d8a; font-size: .9rem; }
.sepa-hinweis.warn { background: var(--warn-soft); border-color: #f1cdbd; color: #7a3011; }
.badge-sepa.badge-warn { background: var(--warn-soft); color: var(--warn); }
