:root {
  /* Akzent = das Rot des Logos (haeufigste Farbe darin: #cc0000). */
  --primary: #cc0000;
  --primary-dunkel: #a30000;
  --primary-hell: #fdeaea;
  --bg: #f4f6f8;
  --flaeche: #fff;
  --rand: #dde2e8;
  --rand-stark: #c6cdd6;
  --text: #1b2430;
  --leise: #6b7684;
  --ok: #1c7c4a;
  --ok-bg: #eaf6ee;
  --warn: #a86b00;
  --warn-bg: #fff8e6;
  /* Fehlerrot bewusst DUNKLER und entsaettigter als das Markenrot - sonst
     sehen ein Bezahlen-Knopf und eine Fehlermeldung gleich aus. */
  --fehler: #7f1d1d;
  --fehler-bg: #f8e9e9;
  --kopf-hoehe: 52px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: var(--primary); }
h2 { font-size: 15px; margin: 20px 0 7px; font-weight: 650; }
h2:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ Kopf */
.kopf {
  display: flex; align-items: stretch; gap: 20px; height: var(--kopf-hoehe);
  background: var(--flaeche); border-bottom: 1px solid var(--rand);
  padding: 0 18px; position: sticky; top: 0; z-index: 30;
}
/* Achtung: .marke ist schon vergeben (die kleinen Statusabzeichen), deshalb
   heisst der Block in der Kopfleiste .kopf-marke. */
.kopf-marke { align-self: center; display: flex; align-items: center; gap: 9px; }
/* Das Logo ist eine PNG, die in app/static/logo.png liegt. Fehlt sie, wird das
   img gar nicht erst gerendert (hat_statisch) - kein kaputtes Bildsymbol. */
.marke-bild { height: 26px; width: auto; display: block; }
.marke-name { font-weight: 700; font-size: 15px; white-space: nowrap; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.reiter { display: flex; align-items: stretch; gap: 2px; }
.reiter-knopf {
  border: none; background: none; font: inherit; color: var(--leise); cursor: pointer;
  padding: 0 16px; border-bottom: 3px solid transparent; display: flex; align-items: center;
  gap: 7px; white-space: nowrap;
  /* Auf der Einstellungsseite sind die Reiter <a> statt <button>: ohne diese
     Zeile standen sie dort als unterstrichene Links in der Leiste. */
  text-decoration: none;
}
.reiter-knopf:hover { color: var(--text); background: #f7f9fb; }
.reiter-knopf.aktiv { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.zaehler {
  background: var(--rand); color: var(--text); border-radius: 10px; padding: 0 7px;
  font-size: 12px; min-width: 20px; text-align: center; font-weight: 600;
}
.reiter-knopf.aktiv .zaehler { background: var(--primary); color: #fff; }
.zaehler.leer { opacity: .45; }
/* Zahnrad: sieht aus wie ein Reiter, steht aber rechts bei Mailadresse und
   Abmelden. `align-self: stretch` gibt ihm die volle Kopfhoehe, damit der
   Balken unten sitzt wie bei den echten Reitern. */
.reiter-knopf.zahnrad { padding: 0 12px; align-self: stretch; }
.reiter-knopf.zahnrad svg { display: block; }

/* ---------------------------------------------------------------- Layout */
main { padding: 16px 18px 80px; }
.tafel { display: none; }
.tafel.aktiv { display: block; }

.meldung {
  display: none; margin: 10px 18px 0; padding: 9px 12px; border-radius: 6px; font-size: 13px;
}
.meldung.an { display: block; }
.meldung.ok { background: var(--ok-bg); border: 1px solid #bfe3cd; color: #14603a; }
.meldung.warn { background: var(--warn-bg); border: 1px solid #f0dca8; color: #7d5100; }
.meldung.fehler { background: var(--fehler-bg); border: 1px solid #f3c4c0; color: #8c1e18; }

.leise { color: var(--leise); font-size: 12px; }
.leer-hinweis { color: var(--leise); font-size: 13px; padding: 14px 2px; }

/* --------------------------------------------------------------- Abwurf */
.abwurf {
  border: 2px dashed var(--rand-stark); border-radius: 12px; background: var(--flaeche);
  padding: 34px 28px; margin: 22px 40px 8px; cursor: pointer; transition: .12s;
}
.abwurf:hover { border-color: var(--primary); background: #fbfcfe; }
.abwurf.aktiv { border-color: var(--primary); background: var(--primary-hell); }
.abwurf-inhalt { display: flex; align-items: center; gap: 18px; justify-content: center; }
.abwurf-symbol {
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary-hell);
  color: var(--primary); display: grid; place-items: center; font-size: 26px; font-weight: 300;
}
.link { background: none; border: none; color: var(--primary); font: inherit; padding: 0;
        cursor: pointer; text-decoration: underline; }

/* -------------------------------------------------------------- Tabellen */
.tabellenrahmen {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 8px;
  overflow-x: auto;
}
table.liste { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px;
              table-layout: fixed; min-width: 1180px; }
table.liste th, table.liste td {
  padding: 9px 10px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--rand); overflow: hidden;
}
table.liste thead th {
  background: #f7f9fb; font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--leise); font-weight: 600; white-space: nowrap;
  border-bottom: 1px solid var(--rand-stark);
}
/* Reiter „Hochladen“ braucht keine Spaltenueberschriften - nur die Filterzeile */
table.liste.ohne-kopf thead tr:not(.filterzeile) { display: none; }
table.liste tbody tr:hover { background: #fafcfe; }
table.liste tbody tr:last-child td { border-bottom: none; }
.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Prozent statt Pixel: die Tabelle fuellt den Rahmen und waechst mit,
   min-width haelt sie auf schmalen Schirmen lesbar (dann scrollt der Rahmen). */
.sp-nr     { width: 3%; }
.sp-pdf    { width: 4%; }
.sp-datei  { width: 11.5%; }
.sp-firma  { width: 11.5%; }
.sp-objekt { width: 16%; }
.sp-renr   { width: 8%; }
.sp-datum  { width: 7%; }
.sp-kat    { width: 11.5%; }
.sp-betrag { width: 7%; }
.sp-aktion { width: 19.5%; }

/* Filterzeile */
tr.filterzeile th {
  padding: 6px; background: var(--flaeche); text-transform: none; letter-spacing: 0;
  border-bottom: 1px solid var(--rand);
}
tr.filterzeile input, tr.filterzeile select {
  width: 100%; font: inherit; font-size: 12px; padding: 3px 6px; border: 1px solid var(--rand);
  border-radius: 4px; background: #fff; color: var(--text);
}
tr.filterzeile input::placeholder { color: #a7b0ba; }

/* Zellen-Eingaben */
td select, td input.zelle {
  width: 100%; font: inherit; font-size: 13px; padding: 5px 6px; border: 1px solid var(--rand);
  border-radius: 4px; background: #fff; color: var(--text);
}
td select:hover, td input.zelle:hover { border-color: var(--rand-stark); }
td select:focus, td input.zelle:focus {
  border-color: var(--primary); background: #fff; outline: 2px solid #cfe0f4;
}
td input.zelle.zahl { text-align: right; }
td select.leer { color: var(--warn); }
tr.unvollstaendig td select.leer { border-color: #f0dca8; background: var(--warn-bg); }

.fest { padding: 4px 6px; display: block; }
.fest.gedimmt { color: var(--leise); }

/* Belegzelle */
.pdf-knopf {
  width: 34px; height: 28px; border-radius: 5px; border: 1px solid var(--rand);
  background: #fff; color: var(--fehler); font-size: 10px; font-weight: 700; cursor: pointer;
  display: grid; place-items: center; letter-spacing: .3px;
}
.pdf-knopf:hover { border-color: var(--fehler); background: var(--fehler-bg); }
.beleg-text { min-width: 0; }
.beleg-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beleg-sub { color: var(--leise); font-size: 11px; white-space: nowrap; overflow: hidden;
             text-overflow: ellipsis; }
.beleg-text { flex: 1 1 auto; }

/* Warnzeichen */
.warnzeichen {
  flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--warn-bg);
  color: var(--warn); border: 1px solid #f0dca8; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; cursor: help;
}

/* --------------------------------------------------------------- Knöpfe */
.knopf {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rand-stark);
  background: #fff; color: var(--text); border-radius: 6px; padding: 6px 12px; font: inherit;
  font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.knopf:hover { background: #f2f5f8; }
.knopf.klein { padding: 3px 8px; font-size: 12px; }
.knopf.primaer {
  background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600;
}
.knopf.primaer:hover { background: var(--primary-dunkel); border-color: var(--primary-dunkel); }
.knopf.rand {
  background: transparent; border-color: var(--primary); color: var(--primary); font-weight: 600;
}
.knopf.rand:hover { background: var(--primary-hell); }
.knopf.gefahr { color: var(--fehler); border-color: #eab9b5; }
.knopf.gefahr:hover { background: var(--fehler-bg); }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
.knopfreihe { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.stift {
  width: 30px; padding: 6px 0; justify-content: center; font-size: 14px;
}

/* -------------------------------------------------------------- Spinner */
.spinner {
  width: 15px; height: 15px; border: 2px solid var(--rand); border-top-color: var(--primary);
  border-radius: 50%; animation: dreh .7s linear infinite; display: inline-block;
  vertical-align: -2px;
}
@keyframes dreh { to { transform: rotate(360deg); } }
tr.laedt td { color: var(--leise); }
/* Zeile arbeitet im Hintergrund: sichtbar, aber angefasst wird sie nicht. */
tr.laeuft { opacity: .55; }
tr.laeuft td { pointer-events: none; }
tr.laeuft .sp-aktion { pointer-events: auto; }

/* Dublette: wartet auf eine Entscheidung, gehört deshalb sichtbar abgesetzt */
tr.dublette td { background: var(--warn-bg); }
tr.dublette .beleg-sub { color: var(--warn); }

/* -------------------------------------------------------- Statusmarken */
.marke {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 10px;
  border: 1px solid var(--rand); background: #f4f6f8; color: var(--leise); white-space: nowrap;
}
.marke.ok { background: var(--ok-bg); border-color: #bfe3cd; color: var(--ok); }
.marke.fehler { background: var(--fehler-bg); border-color: #f3c4c0; color: var(--fehler); }

/* --------------------------------------------------------------- Dialog */
.overlay {
  position: fixed; inset: 0; background: rgba(20, 28, 38, .45); z-index: 60;
  display: grid; place-items: center; padding: 20px;
}
.overlay[hidden] { display: none; }
.dialog {
  background: var(--flaeche); border-radius: 10px; width: min(560px, 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25); max-height: 90vh; overflow: auto;
}
.dialog-kopf { padding: 16px 20px 8px; }
.dialog-kopf h3 { margin: 0; font-size: 16px; }
.dialog-koerper { padding: 4px 20px 8px; }
.dialog-fuss {
  padding: 14px 20px 18px; display: flex; gap: 8px; justify-content: flex-end;
  border-top: 1px solid var(--rand); margin-top: 12px;
}
.daten { width: 100%; font-size: 13px; }
.daten td { padding: 5px 0; vertical-align: top; border-bottom: 1px solid #f0f2f5; }
.daten td:first-child { color: var(--leise); width: 42%; }
.daten td.gross { font-size: 18px; font-weight: 700; }
.kopieren {
  border: none; background: none; color: var(--primary); cursor: pointer; font-size: 11px;
  padding: 0 0 0 6px;
}

/* -------------------------------------------------------------- Zeitraum */
.zeitraum {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.zeitraum label { font-size: 12px; color: var(--leise); display: flex; align-items: center;
                  gap: 5px; }
.zeitraum input[type=date] {
  font: inherit; font-size: 13px; padding: 4px 7px; border: 1px solid var(--rand);
  border-radius: 5px;
}

/* ---------------------------------------------------- Einstellungsseite */
.seite { max-width: 1400px; margin: 0 auto; padding: 18px; }
.karte {
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 8px;
  padding: 14px 16px; margin-bottom: 16px;
}
.karte > h2:first-child { margin-top: 0; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
          gap: 10px 14px; align-items: end; }
.raster .spanne-alle { grid-column: 1 / -1; }
label.feld { display: block; font-size: 12px; color: var(--leise); margin-bottom: 3px; }
input[type=text], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 6px 8px; border: 1px solid var(--rand); border-radius: 5px;
  font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #cfe0f4; border-color: var(--primary); }
.hinweis { padding: 9px 12px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; }
.hinweis.ok { background: var(--ok-bg); border: 1px solid #bfe3cd; }
.hinweis.warn { background: var(--warn-bg); border: 1px solid #f0dca8; }
.hinweis.fehler { background: var(--fehler-bg); border: 1px solid #f3c4c0; }
table.einfach { width: 100%; border-collapse: collapse; font-size: 13px; }
table.einfach th, table.einfach td { text-align: left; padding: 7px 9px;
                                     border-bottom: 1px solid var(--rand); vertical-align: top; }
table.einfach th { font-size: 11px; text-transform: uppercase; color: var(--leise);
                   letter-spacing: .4px; }
table.objekt-tabelle { table-layout: fixed; min-width: 980px; }
table.objekt-tabelle td { overflow-wrap: anywhere; }
.pruefzeile { font-size: 11px; margin-top: 4px; color: var(--ok); }
.pruefzeile.fehler { color: var(--fehler); }
.karte .marke { white-space: normal; }

/* --------------------------------------------------------------- Anmelden */
.anmelden { max-width: 380px; margin: 9vh auto; }
.anmelden .karte { padding: 22px; }
.anmelden h1 { text-align: center; font-size: 20px; margin-top: 0; }


/* ------------------------------------------------------- Mengenkreis */
.kreis {
  flex: none; display: inline-grid; place-items: center; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 10px; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.kreis.leer { background: #eef1f4; color: #9aa4af; }
.fest .kreis { margin-right: 6px; }

/* --------------------------------------------------- Eigenes Auswahlfeld */
.combo { position: relative; }
.combo-knopf {
  display: flex; align-items: center; gap: 6px; width: 100%; font: inherit; font-size: 13px;
  padding: 4px 6px; border: 1px solid var(--rand); border-radius: 4px; background: #fff;
  color: var(--text); cursor: pointer; text-align: left;
}
.combo-knopf:hover { border-color: var(--rand-stark); }
.combo-knopf.leer { color: var(--warn); border-color: #f0dca8; background: var(--warn-bg); }
.combo-text { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-pfeil { flex: none; color: var(--leise); font-size: 10px; }

.combo-liste {
  position: fixed; z-index: 90; background: #fff; border: 1px solid var(--rand-stark);
  border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); padding: 6px;
  max-height: 330px; display: flex; flex-direction: column;
}
.combo-suche {
  width: 100%; font: inherit; font-size: 13px; padding: 5px 7px; margin-bottom: 5px;
  border: 1px solid var(--rand); border-radius: 5px;
}
.combo-eintraege { overflow-y: auto; }
.combo-eintrag {
  display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 5px;
  cursor: pointer; font-size: 13px;
}
.combo-eintrag:hover { background: var(--primary-hell); }
.combo-eintrag.gewaehlt { background: #f2f5f8; font-weight: 600; }
.combo-eintrag.leise { color: var(--leise); }
/* Ohne Mengenkreis (CapEx-Kategorie) etwas einruecken, damit der Text
   nicht an der Kante klebt. */
.combo-eintrag.ohne-kreis { padding-left: 10px; }
.combo-trenner {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--leise);
  padding: 8px 7px 3px; border-top: 1px solid var(--rand); margin-top: 4px;
}

/* ------------------------------------------------------- Warndreieck */
.dreieck-platz { display: inline-block; width: 30px; }
.dreieck {
  position: relative; width: 30px; height: 28px; border-radius: 6px; border: 1px solid;
  display: inline-grid; place-items: center; font-size: 13px; cursor: help; flex: none;
}
.dreieck.gelb { color: var(--warn); border-color: #f0dca8; background: var(--warn-bg); }
.dreieck.rot { color: var(--fehler); border-color: #f3c4c0; background: var(--fehler-bg); }
.blase {
  position: fixed; width: 340px; background: #fff; border: 1px solid var(--rand-stark);
  border-radius: 8px; padding: 11px 13px; box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
  color: var(--text); font-size: 12.5px; text-align: left; display: none; z-index: 95;
  cursor: default;
}
.dreieck:hover .blase, .dreieck:focus .blase, .dreieck.offen .blase { display: block; }

.blase-kopf { font-weight: 700; margin-bottom: 5px; }
.blase ul { margin: 0; padding-left: 16px; }
.blase li { margin: 3px 0; }
.blase li.fehler { color: var(--fehler); }
.blase li.warnung { color: var(--warn); }
.blase-fuss { margin-top: 7px; color: var(--leise); font-size: 11.5px; }

/* ---------------------------------------------------------- Werkbank */
.werkbank {
  position: fixed; inset: 0; z-index: 70; background: var(--bg);
  display: flex; flex-direction: column;
}
.werkbank[hidden] { display: none; }
.wb-kopf {
  display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #fff;
  border-bottom: 1px solid var(--rand); flex: none;
}
.wb-titel { font-weight: 700; font-size: 15px; }
.wb-kopf-rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.wb-koerper { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr) 420px;
              min-height: 0; }
@media (max-width: 900px) { .wb-koerper { grid-template-columns: 1fr; } }
.wb-beleg { overflow: auto; padding: 16px; background: #e9edf1; }
.wb-laedt { color: var(--leise); font-size: 13px; padding: 20px; text-align: center; }
.wb-seite {
  position: relative; width: 100%; max-width: 880px; margin: 0 auto 14px; background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
}
.wb-seite img { display: block; width: 100%; height: auto; }
.wb-fund {
  position: absolute; background: rgba(255, 214, 0, .32); outline: 1px solid rgba(190, 150, 0, .5);
  border-radius: 2px; pointer-events: none; transition: background .12s, outline-color .12s;
}
.wb-fund.aktiv {
  background: rgba(204, 0, 0, .26); outline: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, .16);
}
.wb-formular { overflow: auto; padding: 14px 16px 40px; background: #fff;
               border-left: 1px solid var(--rand); }
.wb-hinweise { margin-bottom: 10px; }
.wb-gruppe {
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--leise);
  font-weight: 700; margin: 16px 0 6px; border-bottom: 1px solid var(--rand); padding-bottom: 4px;
}
.wb-feld { position: relative; margin-bottom: 9px; padding: 4px 6px; border-radius: 6px; }
.wb-feld:hover { background: #f7f9fb; }
.wb-feld input, .wb-feld select { width: 100%; }
.wb-feld input.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.wb-fundmarke {
  position: absolute; right: 8px; top: 4px; font-size: 10px; border-radius: 8px;
  padding: 0 6px; transition: opacity .12s;
}
.wb-fundmarke.da { color: var(--primary); background: var(--primary-hell); opacity: 0; }
.wb-feld:hover .wb-fundmarke.da { opacity: 1; }
.wb-fundmarke.fehlt { color: var(--warn); background: var(--warn-bg); opacity: 1; }
.wb-fundmarke.leer { display: none; }


/* ----------------------------------------------- Loeschen / Doenermenue */
.knopf.rand-gefahr {
  background: transparent; border-color: #dd8a84; color: var(--fehler); font-weight: 600;
  padding: 6px 10px;
}
.knopf.rand-gefahr:hover { background: var(--fehler-bg); border-color: var(--fehler); }
.knopf.doener { width: 28px; padding: 6px 0; justify-content: center; font-size: 16px;
                line-height: 1; color: var(--leise); }
.knopf.doener:hover { color: var(--text); }
.combo-liste.menue { width: 260px; padding: 5px; }
.combo-liste.menue .combo-eintrag { padding: 7px 9px; }
.combo-eintrag.gefahr { color: var(--fehler); }
.combo-eintrag.gefahr:hover { background: var(--fehler-bg); }

/* gesperrte Hauptknöpfe deutlich als gesperrt zeigen */
.knopf.primaer:disabled, .knopf.rand:disabled { opacity: .4; }
.blase-fuss .knopf { margin-right: 6px; }
.fest { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* --------------------------------------------------------- Filter-Auswahl */
.filter-combo .combo-knopf { font-size: 12px; padding: 3px 6px; color: var(--leise); }
.filter-combo .combo-knopf.gesetzt { color: var(--text); border-color: var(--primary);
                                     background: var(--primary-hell); font-weight: 600; }

/* -------------------------------------------------------------- GiroCode */
.giro {
  display: flex; gap: 14px; align-items: flex-start; margin: 14px 0 10px;
  padding: 12px; border: 1px solid var(--rand); border-radius: 8px; background: #fbfcfd;
}
.giro-bild { flex: none; width: 150px; height: 150px; image-rendering: pixelated;
             background: #fff; border-radius: 4px; }
.giro-text { min-width: 0; }
.giro-kopf { font-weight: 700; margin-bottom: 4px; }


/* --------------------------------------- Einstellungen: Firma mit Objekten */
.firma-karte { padding: 0; overflow: hidden; }
.firma-kopf {
  padding: 12px 16px; background: #f7f9fb; border-bottom: 1px solid var(--rand);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
/* Das Formular umschliesst jetzt Gesellschaft UND Objektzeilen, deshalb sitzt
   der Innenabstand an den Abschnitten statt am Formular: der Objektblock soll
   weiter über die ganze Kartenbreite laufen (eigener Rahmen, eigener Grund). */
.firma-karte > form > .raster { padding: 14px 16px; }
.firma-karte > form > .speicherleiste { padding: 12px 16px 14px; margin-top: 0; }
.trennlinie { border-top: 1px solid var(--rand); padding-top: 12px; margin-top: 4px; }
.objekt-block { border-top: 1px solid var(--rand); background: #fcfdfe; padding: 10px 16px 14px; }
.objekt-titel {
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--leise);
  font-weight: 700; margin-bottom: 6px;
}
.objekt-block table.einfach th { background: none; }

/* Ein Speichern-Knopf je Gesellschaftskarte - er gilt fuer die Gesellschaft
   UND die Objektzeilen darunter. Vorher hatte jede Zeile einen eigenen Knopf,
   und Eingaben in den Zeilen gingen beim falschen Knopf verloren. */
.speicherleiste { display: flex; align-items: center; gap: 12px;
                  border-top: 1px solid var(--rand); }
