/* immoverwalten – eigenes Stylesheet, keine externen Schriften oder Frameworks (DSGVO) */
:root {
  --marke: #0f6e6a;
  --marke-dunkel: #0b524f;
  --marke-hell: #e6f3f2;
  --akzent: #f2a93b;
  --text: #1c2526;
  --still: #5f6b6d;
  --linie: #e2e7e8;
  --flaeche: #f5f7f7;
  --karte: #ffffff;
  --rot: #c0392b;
  --rot-hell: #fbeaea;
  --gruen: #1e8a4c;
  --gruen-hell: #e7f5ec;
  --gelb-hell: #fff6e0;
  --blau-hell: #e9f1fb;
  --radius: 10px;
  --schatten: 0 1px 2px rgba(16, 40, 40, .06), 0 4px 16px rgba(16, 40, 40, .05);
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--schrift); color: var(--text); background: var(--flaeche); }
a { color: var(--marke); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
code { background: var(--flaeche); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
small { color: var(--still); }
.versteckt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; flex: none; }
.i.gross { width: 32px; height: 32px; color: var(--marke); }
.i.warn { color: var(--akzent); }
.i.ok { color: var(--gruen); }
.still { color: var(--still); }
.fein { color: var(--still); font-size: .88rem; }
.mitte { text-align: center; }
.rot { color: var(--rot) !important; }
.gruen { color: var(--gruen) !important; }
.umbruch { white-space: pre-wrap; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--marke); background: var(--marke); color: #fff;
  padding: 8px 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.knopf:hover { background: var(--marke-dunkel); border-color: var(--marke-dunkel); }
.knopf.zweit { background: #fff; color: var(--marke); border-color: var(--linie); }
.knopf.zweit:hover { border-color: var(--marke); }
.knopf.gefahr { background: var(--rot); border-color: var(--rot); }
.knopf.gross { padding: 12px 22px; font-size: 1.05rem; }
.knopf.klein { padding: 4px 10px; font-size: .88rem; }
.knopf.voll { width: 100%; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
button.link { background: none; border: 0; padding: 0; color: var(--marke); font: inherit; cursor: pointer; }
button.link:hover { text-decoration: underline; }
.gefahr, button.link.gefahr { color: var(--rot); }
.klein { font-size: .85rem; }

/* Formulare */
.formular { display: flex; flex-direction: column; gap: 12px; }
.formular.breit { max-width: 980px; }
.formular.zeile, .zeile { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 8px; display: flex; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; color: #34403f; }
label small { font-weight: 400; }
label.haken { display: block; font-weight: 400; padding-left: 24px; text-indent: -24px; }
label.haken input { margin: 0 8px 0 0; vertical-align: -2px; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--text); border: 1px solid #cfd8d9; border-radius: 7px; padding: 8px 10px; background: #fff; min-width: 0; width: 100%; }
input[type=checkbox] { width: auto; }
input[type=file] { padding: 6px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(15, 110, 106, .25); border-color: var(--marke); }
input:disabled, select:disabled, textarea:disabled { background: var(--flaeche); color: var(--still); }
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
legend { font-weight: 700; font-size: 1rem; margin-bottom: 10px; padding: 0; }
.feldraster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.feldraster.zwei { grid-template-columns: 1fr 1fr; }
.spalte2 { grid-column: span 2; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter select, .filter input { width: auto; min-width: 160px; }

/* Meldungen */
.meldung { padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; background: var(--gruen-hell); color: #14532d; border: 1px solid #bfe3cc; }
.meldung.fehler { background: var(--rot-hell); color: #7f1d1d; border-color: #f2c4c4; }
.meldung.info { background: var(--blau-hell); color: #1e3a5f; border-color: #c9dbf1; }
.meldung.warnung { background: var(--gelb-hell); color: #6b4a07; border-color: #f2dda8; }
.meldung form { display: inline; margin-left: 8px; }

/* Pillen */
.pille { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--flaeche); border: 1px solid var(--linie); font-size: .78rem; color: var(--still); font-weight: 600; white-space: nowrap; }
.pille.gruen { background: var(--gruen-hell); border-color: #bfe3cc; color: var(--gruen) !important; }
.pille.rot { background: var(--rot-hell); border-color: #f2c4c4; color: var(--rot) !important; }
.pille.gelb { background: var(--gelb-hell); border-color: #f2dda8; color: #8a5a00; }

/* App-Rahmen */
body.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.seitenleiste { background: #10302f; color: #cfe1df; display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.seitenleiste .marke { color: #fff; margin: 0 8px 18px; }
.marke { display: inline-flex; align-items: center; gap: 8px; font-size: 1.15rem; color: var(--text); text-decoration: none !important; letter-spacing: -.01em; }
.marke b { font-weight: 800; }
.bestandname { margin: 0 8px 14px; font-size: .85rem; color: #9fbcb9; }
.bestandwahl { margin: 0 4px 14px; }
.bestandwahl select { background: #1a4341; color: #fff; border-color: #2b5856; }
.seitenleiste nav { display: flex; flex-direction: column; gap: 2px; }
.seitenleiste nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #cfe1df; text-decoration: none; font-weight: 500; }
.seitenleiste nav a:hover { background: #17403e; }
.seitenleiste nav a.aktiv { background: var(--marke); color: #fff; }
.seitenleiste-fuss { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.testhinweis { background: rgba(242, 169, 59, .15); color: #f6c77c; padding: 8px 10px; border-radius: 8px; font-size: .85rem; }
.benutzer { display: flex; align-items: center; gap: 10px; color: #fff; padding: 4px 6px; }
.benutzer small { display: block; color: #9fbcb9; font-size: .78rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--akzent); color: #10302f; display: grid; place-items: center; font-weight: 800; }
.seitenleiste-fuss button.link { color: #9fbcb9; padding: 0 8px; text-align: left; }
.hauptbereich { min-width: 0; padding: 0 28px 40px; }
.kopf { display: flex; align-items: center; gap: 12px; padding: 22px 0 14px; }
.kopf h1 { margin: 0; font-size: 1.45rem; }
.kopf-aktionen { margin-left: auto; }
.menue-knopf { display: none; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text); }
.inhalt { display: flex; flex-direction: column; gap: 18px; }

/* Bausteine */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--schatten); min-width: 0; }
.karte.ohne-rand { padding: 0; overflow-x: auto; }
.karte h2 { display: flex; align-items: center; gap: 8px; }
.raster { display: grid; gap: 18px; }
.raster.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster.karten { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.raster.seite-rechts { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.raster.seite-links { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
.werkzeugleiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.werkzeugleiste > p { margin: 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--schatten); display: flex; flex-direction: column; gap: 2px; }
.kachel small { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.kachel b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.kachel span { color: var(--still); font-size: .85rem; }
.leer { color: var(--still); text-align: center; padding: 30px; background: var(--karte); border: 1px dashed var(--linie); border-radius: var(--radius); }
.leer-start { text-align: center; padding: 50px 20px; background: var(--karte); border-radius: var(--radius); border: 1px solid var(--linie); }
.leer-start .knopfreihe { justify-content: center; }

/* Tabellen */
.tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabelle th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--still); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.tabelle td { padding: 9px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle td small { display: block; }
.tabelle tbody tr:hover { background: #fafcfc; }
.tabelle tfoot td { font-weight: 600; border-bottom: 0; }
.tabelle .zahl { text-align: right; white-space: nowrap; }
.tabelle .aktionen { text-align: right; white-space: nowrap; }
.tabelle .aktionen > * { display: inline-block; margin-left: 10px; }
.tabelle tr.hervor td { background: var(--marke-hell); }
.tabelle tr.blass td { color: var(--still); }
.tabelle tr.ungeprueft td:first-child { box-shadow: inset 3px 0 var(--akzent); }
.tabelle.kompakt td { padding: 6px 8px; font-size: .88rem; }
.karte > .tabelle th:first-child, .karte > .tabelle td:first-child { padding-left: 0; }
.karte > .tabelle th:last-child, .karte > .tabelle td:last-child { padding-right: 0; }
.karte.ohne-rand > .tabelle th:first-child, .karte.ohne-rand > .tabelle td:first-child { padding-left: 16px; }
.karte.ohne-rand > .tabelle th:last-child, .karte.ohne-rand > .tabelle td:last-child { padding-right: 16px; }
.kuerzen { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.liste li:last-child { border-bottom: 0; }
.liste .datum { color: var(--still); font-size: .85rem; min-width: 82px; font-variant-numeric: tabular-nums; }
.liste small { margin-left: auto; }
.angaben { display: grid; gap: 6px; margin: 0; }
.angaben div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.angaben dt { color: var(--still); }
.angaben dd { margin: 0; }
.notiz { background: var(--flaeche); padding: 10px; border-radius: 8px; margin-top: 12px; }

.objektkarte { color: inherit; text-decoration: none !important; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s; }
.objektkarte:hover { border-color: var(--marke); }
.objektkarte dl { display: grid; gap: 4px; margin: 8px 0; }
.objektkarte dl div { display: flex; justify-content: space-between; }
.objektkarte dt { color: var(--still); }
.objektkarte dd { margin: 0; font-weight: 600; }
.objektkarte .pille { align-self: flex-start; }

.einklapp { margin-top: 14px; }
.einklapp > summary { cursor: pointer; color: var(--marke); font-weight: 600; list-style: none; }
.einklapp > summary::-webkit-details-marker { display: none; }
.einklapp[open] > summary { margin-bottom: 12px; }
.einklapp > form + form { margin-top: 10px; }
.gefahrzone { border-color: #f2c4c4; }
.gefahrzone form { margin-top: 8px; }

.reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.reiter a { padding: 8px 14px; color: var(--still); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; font-weight: 600; }
.reiter a.aktiv { color: var(--marke); border-color: var(--marke); }
.reiter.klein { border: 0; }
.reiter.klein a { border: 1px solid var(--linie); border-radius: 8px; margin: 0; background: #fff; padding: 6px 12px; }
.reiter.klein a.aktiv { background: var(--marke); color: #fff; border-color: var(--marke); }

/* Upload */
.ablagefeld { position: relative; border: 2px dashed #c5d3d3; border-radius: var(--radius); padding: 14px; background: #fff; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; transition: background .15s, border-color .15s; }
.ablagefeld.gross { padding: 22px; }
.ablagefeld input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ablagefeld > label { flex: 1 1 260px; flex-direction: row; align-items: center; gap: 10px; color: var(--marke); font-size: .95rem; cursor: pointer; flex-wrap: wrap; }
.ablagefeld > label small { width: 100%; padding-left: 28px; }
.ablagefeld select, .ablagefeld .zeile { position: relative; z-index: 1; width: auto; }
.ablagefeld.ziehen, .ablagefeld:hover { border-color: var(--marke); background: var(--marke-hell); }
.ablagefeld.laedt { opacity: .6; pointer-events: none; }
.ablagefeld.laedt > label::after { content: " – wird hochgeladen …"; }

/* Bank */
.umsaetze { display: flex; flex-direction: column; gap: 10px; }
.umsatz { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--schatten); }
.umsatz.zahlung, .umsatz.beleg { border-left: 3px solid var(--gruen); }
.umsatz.ignoriert { opacity: .6; }
.umsatz-kopf { display: flex; gap: 12px; align-items: baseline; }
.umsatz-kopf .datum { color: var(--still); font-size: .85rem; font-variant-numeric: tabular-nums; }
.umsatz-kopf .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umsatz .betrag { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.umsatz .zweck { color: var(--still); font-size: .88rem; margin: 4px 0 8px; word-break: break-word; }
.umsatz-fuss { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.umsatz-fuss select { width: auto; max-width: 240px; padding: 5px 8px; }
.konto { padding: 10px 0; border-bottom: 1px solid var(--linie); display: grid; }
.konto .betrag { font-size: 1.2rem; font-weight: 700; margin-top: 4px; }

/* Belege & Dokumente */
.beleg-ansicht { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.beleg-ansicht.ohne-datei { grid-template-columns: minmax(0, 720px); }
.vorschau-datei iframe { width: 100%; height: 70vh; border: 0; border-radius: 6px; background: var(--flaeche); }
.vorschau-datei img { max-width: 100%; border-radius: 6px; display: block; }
.kategorien { display: flex; flex-direction: column; padding: 10px; position: sticky; top: 12px; }
.kategorien a { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .92rem; }
.kategorien a span { color: var(--still); font-size: .8rem; }
.kategorien a.aktiv { background: var(--marke-hell); color: var(--marke); font-weight: 600; }
.speicher { margin-top: 14px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
meter { width: 100%; height: 8px; }
.nutzung { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 14px 0; }
.nutzung div { display: flex; flex-direction: column; gap: 4px; }

/* Tarife */
.tarif { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px; box-shadow: var(--schatten); }
.tarif.hervor { border: 2px solid var(--marke); }
.tarif .preis { font-size: 1.8rem; font-weight: 800; margin: 0; }
.tarif .preis small { font-size: .9rem; font-weight: 400; }
.tarif ul { padding-left: 18px; margin: 4px 0 12px; color: var(--still); flex: 1; }

/* Öffentlicher Bereich */
body.oeffentlich { background: #fff; display: flex; flex-direction: column; min-height: 100vh; }
body.oeffentlich main { flex: 1; }
.breite { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.breite.schmal { max-width: 760px; }
.oben { border-bottom: 1px solid var(--linie); background: #fff; position: sticky; top: 0; z-index: 5; }
.oben .breite { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.oben nav { display: flex; align-items: center; gap: 18px; }
.oben nav a:not(.knopf) { color: var(--text); font-weight: 500; }
.unten { border-top: 1px solid var(--linie); padding: 24px 0; color: var(--still); font-size: .9rem; margin-top: 40px; }
.unten .breite { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.unten nav { display: flex; gap: 16px; }
.unten a { color: var(--still); }
.held { background: linear-gradient(180deg, var(--marke-hell), #fff); padding: 64px 0 56px; }
.held-raster { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.held h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
.dachzeile { color: var(--marke); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.einleitung { font-size: 1.15rem; color: #3c4a4b; max-width: 560px; }
.vorschau { background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(16, 48, 47, .18); padding: 16px; border: 1px solid var(--linie); }
.vorschau-kopf { display: flex; gap: 6px; margin-bottom: 14px; }
.vorschau-kopf span { width: 10px; height: 10px; border-radius: 50%; background: var(--linie); }
.vorschau-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.vorschau-kacheln div { background: var(--flaeche); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; }
.vorschau-kacheln small { font-size: .7rem; }
.vorschau-kacheln b { font-size: .95rem; }
.vorschau-liste div { display: flex; justify-content: space-between; padding: 9px 4px; border-bottom: 1px solid var(--linie); font-size: .9rem; }
.funktionen { padding: 60px 20px 20px; }
.funktionen h2, .aufruf h2, .preise h1 { font-size: 1.8rem; text-align: center; margin-bottom: 30px; }
.funktionen article { padding: 22px; border: 1px solid var(--linie); border-radius: var(--radius); }
.funktionen article h3 { margin-top: 10px; }
.funktionen article p { color: var(--still); margin: 0; }
.bald { text-align: center; color: var(--still); margin-top: 24px; }
.aufruf { text-align: center; padding: 50px 20px; }
.aufruf p { max-width: 620px; margin: 0 auto 20px; color: var(--still); }
.preise { padding: 50px 20px; }
.preise .einleitung { text-align: center; margin: -10px auto 30px; }
.preise > .fein { text-align: center; margin-top: 20px; }
.karte-mitte { max-width: 440px; margin: 50px auto; padding: 30px; border: 1px solid var(--linie); border-radius: 14px; box-shadow: var(--schatten); background: #fff; }
.karte-mitte h1 { font-size: 1.5rem; }
.karte-mitte form + p, .karte-mitte form + form { margin-top: 14px; }
.rechtstext { padding: 40px 20px; }
.rechtstext h2 { margin-top: 1.6em; }
body.admin h1 { margin-top: 24px; }
body.admin .karte, body.admin .kacheln, body.admin .filter { margin-bottom: 18px; }

/* Mobil */
@media (max-width: 1000px) {
  .raster.seite-rechts, .raster.seite-links, .beleg-ansicht { grid-template-columns: minmax(0, 1fr); }
  .kategorien { position: static; flex-direction: row; flex-wrap: wrap; }
  .raster.drei { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  body.app { grid-template-columns: 1fr; }
  .seitenleiste { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  body.menue-offen .seitenleiste { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .menue-knopf { display: block; }
  .hauptbereich { padding: 0 16px 30px; }
  .raster.zwei, .held-raster, .nutzung, .feldraster.zwei { grid-template-columns: minmax(0, 1fr); }
  .spalte2 { grid-column: auto; }
  .held-bild { display: none; }
  .oben nav a:not(.knopf) { display: none; }
  .angaben div { grid-template-columns: 110px 1fr; }
  .tabelle th, .tabelle td { padding: 8px; }
  .filter select, .filter input { min-width: 0; flex: 1 1 140px; }
}
.karte-mitte.breit-installer { max-width: 640px; }
.karte:has(> .tabelle) { overflow-x: auto; }
.angaben dd { overflow-wrap: anywhere; }
@media (max-width: 1200px) { body.app .raster.zwei { grid-template-columns: minmax(0, 1fr); } }
.bald-raster { margin-top: 18px; }
.bald-raster article { padding: 22px; border: 1px solid var(--linie); border-radius: var(--radius); }
.bald-raster article p { color: var(--still); margin: 0; }
.tabelle.eingabe td { vertical-align: middle; }
.tabelle.eingabe input, .tabelle.eingabe select { padding: 5px 7px; }
.tabelle input.schmal { width: 110px; text-align: right; }
.tabelle input.mini { width: 64px; text-align: right; }
.tabelle tr.unterzeile td { background: var(--flaeche); }
.tabelle tr.neu td { background: #fbfdfd; }
.werte { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.werte label { flex: 0 0 130px; font-weight: 400; }
.tabelle-scroll { overflow-x: auto; }
.tabelle.av tr.summe td { font-weight: 700; background: var(--flaeche); }
.tabelle.eingabe input:not([type=checkbox]):not(.schmal):not(.mini):not(.kurz) { min-width: 170px; }
.tabelle input.kurz { width: 120px; }
.tabelle.eingabe select { min-width: 150px; }
.tabelle.eingabe { min-width: 860px; }
textarea.brieftext { font: 14px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.ampel { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #c9d3d3; flex: none; }
.ampel.gruen { background: var(--gruen); }
.ampel.gelb { background: var(--akzent); }
.ampel.rot { background: var(--rot); }
.ampelreihe { display: flex; gap: 4px; margin-top: 8px; }
.ampelliste li { align-items: center; flex-wrap: nowrap; }
.ampelliste li span { display: flex; flex-direction: column; }
.objektkarte.blass { opacity: .6; }
.ddpunkt { padding: 10px 0; border-bottom: 1px solid var(--linie); display: flex; flex-direction: column; gap: 6px; }
.ddpunkt:last-child { border-bottom: 0; }
.ddkopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ddkopf select { width: auto; padding: 4px 6px; }
.ddtitel { flex: 1 1 260px; }
.fett { font-weight: 700; }
.ddpunkt .fein { margin: 0; }
.ddkopf label.haken { padding-left: 0; text-indent: 0; white-space: nowrap; }
.kleben { position: sticky; bottom: 0; background: var(--flaeche); padding: 10px 0; }
.schritt { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.schritt label.haken:first-child { flex: 1 1 300px; }
.schritt input[type=date] { width: auto; padding: 4px 6px; }
.schritt.erledigt label.haken:first-child { color: var(--still); text-decoration: line-through; }
input.ueberfaellig { border-color: var(--rot); color: var(--rot); }
.badge { background: var(--rot); color: #fff; border-radius: 99px; font-size: .72rem; padding: 0 7px; margin-left: auto; font-weight: 700; }
.portalnavi { display: flex; gap: 18px; align-items: center; }
.portalnavi form { display: inline; }
.portalinhalt { padding-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.portalwahl { margin-top: 12px; }
.portalwahl select { width: auto; }
.verlauf { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.nachricht { background: var(--flaeche); border-radius: 10px; padding: 10px 14px; max-width: 80%; }
.nachricht.eigen { background: var(--marke-hell); align-self: flex-end; }
.nachricht p { margin: 4px 0; white-space: normal; }
.vorschaubild { max-width: 160px; max-height: 120px; border-radius: 6px; margin: 4px 6px 0 0; }
.liste li form { display: inline; }
@media (max-width: 820px) { .portalnavi a { display: inline !important; font-size: .9rem; } .portalnavi { gap: 10px; flex-wrap: wrap; } .oben .breite { height: auto; padding: 10px 16px; flex-wrap: wrap; } }
.karte table + h2, .karte ul + h2, .karte p + h2 { margin-top: 18px; }
.kachel.verlinkt { color: inherit; text-decoration: none !important; }
.kachel.verlinkt:hover, .kachel.verlinkt.aktiv { border-color: var(--marke); }
.pille.label { background: var(--marke-hell); border-color: #c8e2e0; color: var(--marke); }
fieldset.labels { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
fieldset.labels legend { width: 100%; }
fieldset.labels label.haken { padding-left: 0; text-indent: 0; }
svg.cashflow { width: 100%; height: auto; display: block; }
svg.cashflow .gitter { stroke: var(--linie); stroke-width: 1; }
svg.cashflow .achse { font-size: 11px; fill: var(--still); }
svg.cashflow rect.ein { fill: var(--marke); }
svg.cashflow rect.aus { fill: #8d6bb8; }
svg.cashflow .ueberschuss { fill: none; stroke: var(--akzent); stroke-width: 2.5; }
.legende { display: flex; gap: 16px; font-size: .85rem; color: var(--still); margin: 6px 0 0; }
.legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legende .ein::before { background: var(--marke); } .legende .aus::before { background: #8d6bb8; } .legende .ueberschuss::before { background: var(--akzent); height: 3px; vertical-align: 3px; }
.unterzeile label.inline { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 6px 16px 0 0; font-weight: 400; }

/* Forderungen */
.inline-formular { display: inline-flex; gap: 6px; align-items: center; margin-right: 6px; }
.inline-formular input { width: auto; padding: 4px 6px; font-size: .88rem; }
label.inline { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
label.inline input { width: auto; }
.tabelle th.schmal { width: 28px; }
.tabelle .aktionen > .inline-formular { display: inline-flex; }

/* Berichte */
.tabelle-scroll { overflow-x: auto; }
.tabelle.bericht td, .tabelle.bericht th { white-space: nowrap; }
.tabelle tr.abschnitt td { font-weight: 700; background: var(--flaeche, #f4f7f7); }
.tabelle tr.summe td { font-weight: 700; border-top: 1px solid var(--linie); }

/* Nachrichten */
.vorformatiert { white-space: pre-wrap; }
.auswahlliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; max-height: 320px; overflow-y: auto; }
.auswahlliste small { color: var(--still, #667); }
.mitteilung { border-left: 3px solid var(--marke); padding: 6px 0 6px 12px; margin: 0 0 12px; }
.mitteilung.neu { background: #f2f8f7; }
.mitteilung h3 { margin: 0 0 2px; font-size: 1rem; }
[hidden] { display: none !important; }

/* Mietvertrag im Portal */
.vertragstext { max-height: 60vh; overflow-y: auto; border: 1px solid var(--linie); border-radius: 8px; padding: 12px 18px; background: #fff; font-size: .95rem; }
.vertragstext h2 { text-align: center; }
.vertragstext h3 { font-size: 1rem; margin: 14px 0 4px; }
.vertragstext .vzeile { display: flex; justify-content: space-between; max-width: 420px; margin: 0; }
.vertragstext .vzeile.fett { font-weight: 700; border-top: 1px solid #333; }
form.gesperrt fieldset, form.gesperrt input, form.gesperrt select, form.gesperrt textarea { pointer-events: none; opacity: .7; }

/* Suche */
.kopfsuche input { width: 200px; padding: 7px 10px; border: 1px solid var(--linie); border-radius: 8px; font: inherit; background: #fff; }
.suchzeile { display: flex; gap: 8px; margin-bottom: 16px; }
.suchzeile input { flex: 1; max-width: 520px; }
@media (max-width: 700px) { .kopfsuche { display: none; } }
.knopfreihe.senkrecht { flex-direction: column; align-items: stretch; }
.zahlung-erfassen { position: relative; }
.zahlung-erfassen summary { list-style: none; cursor: pointer; }
.zahlung-erfassen summary::-webkit-details-marker { display: none; }
.zahlung-erfassen[open] .inline-formular { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.wahlzeile { display: flex; gap: 8px 28px; flex-wrap: wrap; margin-bottom: 12px; }
.wahlzeile label.haken { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 600; margin: 0; padding-left: 0; text-indent: 0; }
.wahlzeile label.haken input { width: auto; margin: 0; }

/* Rechtliche Hinweise im App- und Betreiberbereich */
.rechtliches { font-size: .75rem; line-height: 1.6; opacity: .75; margin-top: 10px; }
.rechtliches a { color: inherit; }
footer.rechtliches { margin: 32px 0 20px; text-align: center; }

/* Anmeldung mit Google / Apple */
.oauth-knoepfe { display: grid; gap: 10px; margin: 8px 0 4px; }
.knopf.oauth { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.knopf.oauth.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.knopf.oauth.apple { background: #000; color: #fff; }
.trenner { display: flex; align-items: center; gap: 10px; color: #7a8a89; font-size: .85rem; margin: 6px 0 0; }
.trenner::before, .trenner::after { content: ''; flex: 1; border-top: 1px solid var(--linie); }
