:root {
  --papier: #f5f1e8;
  --papier-2: #ece5d6;
  --karte: #fffdf8;
  --tinte: #1c2731;
  --tinte-2: #3b4854;
  --leise: #75808a;
  --linie: #e2d9c6;
  --gold: #b08d57;
  --gold-hell: #e9d7b4;
  --petrol: #2c6e72;
  --petrol-hell: #d3e7e4;
  --salbei: #5f7f52;
  --salbei-hell: #dde8d3;
  --navy: #1f3a5c;
  --rot: #b4533c;
  --rot-hell: #f4dcd3;
  --gruen: #3f7f54;
  --gruen-hell: #d7ebdc;
  --schatten: 0 1px 2px rgba(28, 39, 49, .06), 0 8px 28px rgba(28, 39, 49, .07);
  --schatten-hoch: 0 2px 4px rgba(28, 39, 49, .08), 0 22px 50px rgba(28, 39, 49, .14);
  --serif: "New York", "Iowan Old Style", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --radius: 18px;
  --akzent: var(--gold);
  --akzent-hell: var(--gold-hell);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #14191e; --papier-2: #1b2228; --karte: #1e262d; --tinte: #ece6da; --tinte-2: #c9c2b5;
    --leise: #8d969e; --linie: #2f3a43; --gold: #cfae74; --gold-hell: #4a3d26; --petrol: #6fb3b3;
    --petrol-hell: #1f3b3d; --salbei: #9cbf8a; --salbei-hell: #263524; --navy: #9fb7d6; --rot: #e08a72;
    --rot-hell: #43261e; --gruen: #85c597; --gruen-hell: #1f3a28;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .3);
    --schatten-hoch: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 50px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #14191e; --papier-2: #1b2228; --karte: #1e262d; --tinte: #ece6da; --tinte-2: #c9c2b5;
  --leise: #8d969e; --linie: #2f3a43; --gold: #cfae74; --gold-hell: #4a3d26; --petrol: #6fb3b3;
  --petrol-hell: #1f3b3d; --salbei: #9cbf8a; --salbei-hell: #263524; --navy: #9fb7d6; --rot: #e08a72;
  --rot-hell: #43261e; --gruen: #85c597; --gruen-hell: #1f3a28;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .3);
  --schatten-hoch: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 50px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
.e-petrol { --akzent: var(--petrol); --akzent-hell: var(--petrol-hell); }
.e-gold { --akzent: var(--gold); --akzent-hell: var(--gold-hell); }
.e-salbei { --akzent: var(--salbei); --akzent-hell: var(--salbei-hell); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--papier); color: var(--tinte); font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
button { font: inherit; color: inherit; }
.zahl { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; }
a { color: inherit; }
.leise { color: var(--leise); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- Kopf ---------- */
.kopf { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 6px; gap: 16px; }
.marke { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 19px; }
.marke svg { width: 34px; height: 34px; }
.kopf-rechts { display: flex; gap: 8px; align-items: center; }
.pille {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--linie); background: var(--karte);
  border-radius: 99px; padding: 7px 14px; font-size: 13.5px; cursor: pointer; transition: .2s; white-space: nowrap;
}
.pille:hover { border-color: var(--akzent); transform: translateY(-1px); }
.pille.dunkel { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.pille.akzent { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.pille[disabled] { opacity: .55; pointer-events: none; }
.pille svg { width: 16px; height: 16px; }
select.pille { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---------- Startseite ---------- */
.gruss { padding: 34px 0 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.gruss h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.gruss p { margin: 8px 0 0; color: var(--tinte-2); font-size: 16.5px; max-width: 620px; }
.frist-pille {
  display: flex; align-items: center; gap: 14px; background: var(--karte); border: 1px solid var(--linie);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--schatten);
}
.frist-pille .tage { font: 600 30px/1 var(--serif); color: var(--rot); min-width: 38px; text-align: center; }
.frist-pille.ruhig .tage { color: var(--gruen); }
.frist-pille small { display: block; color: var(--leise); font-size: 12.5px; }

.buehne { position: relative; margin: 26px 0 10px; }
.himmel { position: absolute; inset: -10px 0 auto; height: 120px; pointer-events: none; overflow: visible; }
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.haus {
  position: relative; background: var(--karte); border: 1px solid var(--linie); border-radius: 26px;
  padding: 0 0 22px; cursor: pointer; text-align: left; box-shadow: var(--schatten); overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; display: flex; flex-direction: column;
}
.haus:hover, .haus:focus-visible { transform: translateY(-6px); box-shadow: var(--schatten-hoch); outline: none; }
.haus .bild {
  height: 210px; background: linear-gradient(180deg, var(--akzent-hell) 0%, transparent 100%); position: relative;
  display: flex; align-items: flex-end; justify-content: center; color: var(--tinte);
}
.haus .bild svg { width: 100%; height: 100%; }
.haus .inhalt { padding: 6px 24px 0; }
.haus .titel { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.haus h2 { font-size: clamp(19px, 1.65vw, 24px); hyphens: manual; }
.haus .titel > div:first-child { min-width: 0; }
.haus .zeile { color: var(--leise); font-size: 13.5px; margin-top: 2px; }
.haus .werte { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.haus .wert small { display: block; color: var(--leise); font-size: 12px; letter-spacing: .02em; }
.haus .wert b { font: 600 21px/1.2 var(--serif); }
.haus .fuss { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 10px; }
.haus .weiter { font-size: 13.5px; color: var(--akzent); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.haus .weiter svg { transition: transform .3s; }
.haus:hover .weiter svg { transform: translateX(5px); }
.marke-chip { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: var(--akzent-hell); color: var(--tinte); white-space: nowrap; }
.spark { width: 100%; height: 38px; margin-top: 12px; }

.ring { position: relative; width: 56px; height: 56px; flex: none; }
.ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; font: 600 14px var(--sans); }
.ring .lbl small { display: none; }

.strasse { height: 2px; background: repeating-linear-gradient(90deg, var(--linie) 0 18px, transparent 18px 30px); margin: 30px 0 0; }
.unten { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; margin: 28px 0 60px; }
.tafel { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--schatten); }
.tafel h3 { font-size: 19px; margin-bottom: 4px; }
.tafel .unter { color: var(--leise); font-size: 13.5px; margin-bottom: 14px; }

/* ---------- Animationen der Illustrationen ---------- */
.ill .fenster { fill: transparent; transition: fill .5s; }
.haus:hover .ill .fenster, .einheit-kopf .ill .fenster { fill: var(--gold-hell); }
.haus:hover .ill .fenster:nth-child(2n) { transition-delay: .12s; }
.haus:hover .ill .fenster:nth-child(3n) { transition-delay: .24s; }
.ill .rauch { opacity: 0; }
.haus:hover .ill .rauch { animation: rauch 2.4s ease-out infinite; }
.haus:hover .ill .rauch.r2 { animation-delay: .8s; }
.haus:hover .ill .rauch.r3 { animation-delay: 1.6s; }
@keyframes rauch { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 30% { opacity: .7; } 100% { opacity: 0; transform: translate(10px, -26px) scale(1.4); } }
.ill .baum { transform-origin: 50% 100%; transform-box: fill-box; }
.haus:hover .ill .baum { animation: wiegen 2.6s ease-in-out infinite; }
@keyframes wiegen { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(2deg); } }
.ill .schild { transform-origin: 50% 0; transform-box: fill-box; }
.haus:hover .ill .schild { animation: schwingen 1.8s ease-in-out infinite; }
@keyframes schwingen { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.ill .tipp { stroke-dasharray: 40; stroke-dashoffset: 40; }
.haus:hover .ill .tipp { animation: tippen 2.4s steps(14) infinite; }
.haus:hover .ill .tipp.t2 { animation-delay: .5s; }
.haus:hover .ill .tipp.t3 { animation-delay: 1s; }
@keyframes tippen { 0% { stroke-dashoffset: 40; } 60%, 100% { stroke-dashoffset: 0; } }
.ill .orbit { transform-origin: center; transform-box: fill-box; }
.haus:hover .ill .orbit { animation: drehen 6s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.ill .dampf { opacity: .0; }
.haus:hover .ill .dampf { animation: rauch 2s ease-out infinite; }
.ill .sonne { transform-origin: center; transform-box: fill-box; animation: drehen 40s linear infinite; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Einheit ---------- */
.einheit-kopf { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 18px 0 8px; }
.zurueck { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie); background: var(--karte); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.zurueck:hover { transform: translateX(-3px); border-color: var(--akzent); }
.einheit-kopf .mini { width: 92px; height: 66px; border-radius: 14px; background: var(--akzent-hell); overflow: hidden; display: flex; align-items: flex-end; }
.einheit-kopf .mini svg { width: 100%; height: 100%; }
.einheit-kopf .namen { display: flex; align-items: center; gap: 16px; }
.einheit-kopf h1 { font-size: clamp(26px, 3vw, 36px); }
.einheit-kopf .zeile { color: var(--leise); font-size: 14px; }
.aktionen { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.hero { display: grid; grid-template-columns: 1.15fr 2fr; gap: 20px; margin-top: 18px; }
.held {
  background: var(--tinte); color: var(--papier); border-radius: 22px; padding: 22px 26px; position: relative; overflow: hidden;
  box-shadow: var(--schatten-hoch);
}
.held::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--akzent) 0%, transparent 70%); opacity: .45; }
.held small { color: color-mix(in srgb, var(--papier) 70%, transparent); font-size: 13px; letter-spacing: .02em; }
.held .gross { font: 600 46px/1.05 var(--serif); margin: 6px 0 4px; position: relative; z-index: 1; }
.held .gross.minus { color: #9fd3b0; }
.held .sub { font-size: 13.5px; color: color-mix(in srgb, var(--papier) 78%, transparent); position: relative; z-index: 1; }
.held .frist { margin-top: 16px; display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.1); border-radius: 99px; padding: 6px 12px; font-size: 13px; position: relative; z-index: 1; }
.held .frist i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }
.held .frist.dringend i { background: #ff8a6a; box-shadow: 0 0 0 0 rgba(255,138,106,.7); animation: puls 1.6s infinite; }
@keyframes puls { 70% { box-shadow: 0 0 0 10px rgba(255,138,106,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,106,0); } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; padding: 16px 18px; box-shadow: var(--schatten); display: flex; flex-direction: column; justify-content: space-between; min-height: 112px; }
.kpi small { color: var(--leise); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.kpi small i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.kpi b { font: 600 clamp(18px, 1.55vw, 24px)/1.15 var(--serif); white-space: nowrap; }
.kpi .fein { font-size: 12px; color: var(--leise); }

.band { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin: 22px 0 6px; }
.monat {
  background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 9px 8px 8px; cursor: pointer;
  text-align: center; transition: .2s; position: relative; user-select: none;
}
.monat:hover { border-color: var(--akzent); transform: translateY(-2px); }
.monat.an { background: var(--akzent-hell); border-color: var(--akzent); }
.monat .mn { font-size: 12.5px; font-weight: 600; }
.monat .balken { height: 34px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; margin: 6px 0 4px; }
.monat .balken span { width: 8px; border-radius: 3px 3px 1px 1px; background: var(--akzent); min-height: 2px; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.monat .balken span.aus { background: color-mix(in srgb, var(--tinte) 30%, transparent); }
.monat .st { font-size: 10.5px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monat .punkt { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; }
.s-abgeschlossen .punkt, .s-gebucht .punkt { background: var(--gruen); }
.s-vorbereitet .punkt { background: var(--gold); }
.s-offen .punkt { background: var(--rot); }
.s-laufend .punkt { background: var(--petrol); animation: puls2 2s infinite; }
@keyframes puls2 { 50% { opacity: .35; } }
.s-zukunft { opacity: .55; }
.s-vor_automatik .punkt { background: var(--linie); }
.band-hilfe { font-size: 12.5px; color: var(--leise); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.band-hilfe span { display: inline-flex; align-items: center; gap: 6px; }
.band-hilfe i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.raster { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 14px; }
.chart { width: 100%; height: 250px; display: block; overflow: visible; }
.chart text { font: 11px var(--sans); fill: var(--leise); }
.chart .gitter { stroke: var(--linie); stroke-width: 1; }
.chart .bar { transition: opacity .2s; }
.chart .bar:hover { opacity: .75; }
.legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--tinte-2); margin-top: 6px; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.donut-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
.donut { width: 170px; height: 170px; }
.donut path { transition: transform .25s, opacity .25s; transform-origin: 85px 85px; cursor: default; }
.donut path:hover, .donut path.hell { transform: scale(1.04); }
.donut-liste { font-size: 13px; display: flex; flex-direction: column; gap: 7px; }
.donut-liste div { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.donut-liste i { width: 10px; height: 10px; border-radius: 3px; }
.donut-liste b { font-weight: 600; font-variant-numeric: tabular-nums; }

.tip { position: fixed; pointer-events: none; background: var(--tinte); color: var(--papier); padding: 8px 11px; border-radius: 10px; font-size: 12.5px; z-index: 50; opacity: 0; transition: opacity .15s; box-shadow: var(--schatten-hoch); white-space: nowrap; }
.tip.an { opacity: 1; }

/* Aufgaben */
.aufgaben { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow: auto; padding-right: 4px; }
.aufgabe { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; background: var(--papier); border: 1px solid transparent; transition: .2s; }
.aufgabe:hover { border-color: var(--linie); }
.aufgabe .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--akzent-hell); }
.aufgabe .ic svg { width: 18px; height: 18px; }
.aufgabe.a-frist .ic { background: var(--rot-hell); color: var(--rot); }
.aufgabe.a-fehlt .ic, .aufgabe.a-bank .ic { background: var(--gold-hell); }
.aufgabe b { font-size: 14px; font-weight: 600; display: block; }
.aufgabe p { margin: 2px 0 0; font-size: 13px; color: var(--tinte-2); }
.aufgabe button { font-size: 12.5px; padding: 5px 11px; }
.leer { text-align: center; padding: 26px 10px; color: var(--tinte-2); }
.leer .gross { font-size: 40px; }

/* Reiter */
.reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--linie); margin: 34px 0 18px; overflow-x: auto; }
.reiter button { border: 0; background: none; padding: 10px 16px; cursor: pointer; font-weight: 600; color: var(--leise); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.reiter button.an { color: var(--tinte); border-color: var(--akzent); }
.reiter .zahl-chip { font-size: 11px; background: var(--papier-2); border-radius: 99px; padding: 1px 7px; margin-left: 6px; color: var(--tinte-2); }

/* Tabelle */
.werkzeug { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.suche { flex: 1; min-width: 200px; border: 1px solid var(--linie); background: var(--karte); border-radius: 99px; padding: 9px 16px; font: inherit; color: inherit; }
.suche:focus { outline: 2px solid var(--akzent-hell); border-color: var(--akzent); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--linie); background: var(--karte); border-radius: 99px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.chip.an { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.tabelle { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.tabelle th { text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--leise); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--linie); background: var(--papier); }
.tabelle td { padding: 11px 14px; border-bottom: 1px solid color-mix(in srgb, var(--linie) 60%, transparent); font-size: 14px; vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr { cursor: pointer; transition: background .15s; }
.tabelle tbody tr:hover { background: var(--akzent-hell); }
.tabelle .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle .partner { font-weight: 600; }
.tabelle .klein { font-size: 12px; color: var(--leise); }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.status.ok { background: var(--gruen-hell); color: var(--gruen); }
.status.offen { background: var(--rot-hell); color: var(--rot); }
.status.kat { background: var(--akzent-hell); color: var(--tinte); }
.art { display: inline-block; width: 22px; height: 22px; border-radius: 7px; text-align: center; line-height: 22px; font-size: 13px; font-weight: 700; }
.art.ein { background: var(--papier-2); color: var(--tinte-2); }
.art.aus { background: var(--akzent); color: #fff; }

/* Export */
.export { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.paket { background: linear-gradient(135deg, var(--akzent-hell), var(--karte) 70%); border: 1px solid var(--linie); border-radius: 24px; padding: 26px; position: relative; overflow: hidden; box-shadow: var(--schatten); }
.paket h3 { font-size: 24px; }
.paket > p { padding-right: 120px; }
.paket .karton { position: absolute; right: 18px; top: 14px; width: 120px; opacity: .9; }
.feld { margin-top: 18px; }
.feld > label { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--leise); margin-bottom: 8px; font-weight: 600; }
.wahl { display: grid; gap: 8px; }
.wahl label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 11px 14px; cursor: pointer; transition: .2s; }
.wahl label:has(input:checked) { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }
.wahl input { margin-top: 3px; accent-color: var(--akzent); }
.wahl b { font-size: 14px; display: block; }
.wahl span { font-size: 12.5px; color: var(--leise); }
.zeitraum { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.zeitraum input[type=month] { border: 1px solid var(--linie); background: var(--karte); color: inherit; border-radius: 10px; padding: 7px 10px; font: inherit; }
.los { margin-top: 22px; display: flex; gap: 14px; align-items: center; }
.los .pille { padding: 12px 22px; font-size: 15px; font-weight: 600; }
.vorschau { font-size: 13px; }
.vorschau table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vorschau td { padding: 6px 4px; border-bottom: 1px solid var(--linie); }
.vorschau .r { text-align: right; white-space: nowrap; }
.vorschau .k { color: var(--leise); font-size: 12px; }

/* Berichte */
.berichte { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bericht { background: var(--karte); border: 1px solid var(--linie); border-radius: 20px; padding: 20px; cursor: pointer; transition: .25s; text-align: left; box-shadow: var(--schatten); display: flex; flex-direction: column; gap: 10px; min-height: 168px; }
.bericht:hover { transform: translateY(-4px); border-color: var(--akzent); box-shadow: var(--schatten-hoch); }
.bericht svg { width: 46px; height: 46px; color: var(--akzent); }
.bericht b { font: 600 17px var(--serif); }
.bericht span { font-size: 13px; color: var(--leise); }

/* Bank & Mieten */
.bank { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.umsatz { display: grid; grid-template-columns: 80px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: 13.5px; }
.umsatz .b { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.umsatz .b.plus { color: var(--gruen); }
.umsatz .t { color: var(--tinte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mieter { width: 100%; border-collapse: collapse; }
.mieter td, .mieter th { padding: 6px; text-align: left; font-size: 13.5px; }
.mieter th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); }
.mieter td:nth-child(2) { width: 30%; }
.mieter td:nth-child(1) { width: 16%; }
.mieter input { width: 100%; border: 1px solid var(--linie); background: var(--papier); color: inherit; border-radius: 9px; padding: 7px 9px; font: inherit; }
.mieter input.zahl { text-align: right; }

/* Schublade */
.schleier { position: fixed; inset: 0; background: rgba(15, 20, 25, .35); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: .25s; z-index: 30; }
.schleier.an { opacity: 1; pointer-events: auto; }
.schublade { position: fixed; top: 0; right: 0; bottom: 0; width: min(920px, 96vw); background: var(--karte); z-index: 40; transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: grid; grid-template-columns: 1fr 330px; box-shadow: var(--schatten-hoch); }
.schublade.an { transform: none; }
.schublade iframe { width: 100%; height: 100%; border: 0; background: #888; }
.schublade .seite { padding: 22px; overflow: auto; border-left: 1px solid var(--linie); display: flex; flex-direction: column; gap: 14px; }
.schublade .zu { align-self: flex-end; }
.schublade dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; }
.schublade dt { color: var(--leise); }
.schublade dd { margin: 0; font-variant-numeric: tabular-nums; }
.hinweis { background: var(--rot-hell); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.hinweis.gelb { background: var(--gold-hell); }
.knoepfe { display: grid; gap: 8px; }
.knoepfe .pille { justify-content: center; }

/* Toast & Konfetti */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 30px); background: var(--tinte); color: var(--papier); padding: 12px 20px; border-radius: 99px; font-size: 14px; opacity: 0; transition: .3s; z-index: 60; box-shadow: var(--schatten-hoch); max-width: 90vw; }
.toast.an { opacity: 1; transform: translate(-50%, 0); }
#konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; }
.lade { display: grid; place-items: center; min-height: 60vh; color: var(--leise); gap: 14px; }
.lade .kreis { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--linie); border-top-color: var(--gold); animation: drehen 1s linear infinite; }
.dreh { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: drehen .8s linear infinite; display: inline-block; }
.einblenden { animation: rein .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rein { from { opacity: 0; transform: translateY(12px); } }
.kartenreihe > * { animation: rein .6s cubic-bezier(.2, .8, .2, 1) both; }
.kartenreihe > *:nth-child(2) { animation-delay: .08s; }
.kartenreihe > *:nth-child(3) { animation-delay: .16s; }
.kartenreihe > *:nth-child(4) { animation-delay: .24s; }

@media (max-width: 1000px) {
  .karten, .unten, .hero, .raster, .export, .bank { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: repeat(6, 1fr); }
  .einheit-kopf { grid-template-columns: auto 1fr; }
  .aktionen { grid-column: 1 / -1; justify-content: flex-start; }
  .schublade { grid-template-columns: 1fr; grid-template-rows: 55vh 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .band { grid-template-columns: repeat(4, 1fr); }
  .tabelle .weg { display: none; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
}
