/* ============================================================================
   hcXclusiv Immobilienverwaltung – Erscheinungsbild
   Helles und dunkles Erscheinungsbild, beide bewusst gesetzt.
   Diagrammfarben: validierte Reihenfolge blau · orange · aqua · gelb ·
   magenta · grün · violett · rot.
   ========================================================================== */

:root {
  color-scheme: light;

  --grund:        #f4f5f3;
  --flaeche:      #ffffff;
  --flaeche-2:    #fafaf8;
  --flaeche-3:    #f0f1ee;
  --linie:        #d9dad3;
  --linie-weich:  #e9eae5;

  --ink:          #14140f;
  --ink-2:        #52514e;
  --ink-3:        #7c7b74;

  --akzent:       #2a78d6;
  --akzent-weich: #e8f0fc;
  --akzent-ink:   #1b5ba8;

  --gut:          #007a4d;
  --achtung:      #b06a00;
  --kritisch:     #c0392b;
  --gut-weich:    #e4f3ec;
  --achtung-weich:#fbf0dd;
  --kritisch-weich:#fbeae8;

  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #4a3aa7;
  --series-8: #e34948;

  --radius:   12px;
  --radius-s: 8px;
  --schatten: 0 1px 2px rgba(20,20,15,.05), 0 8px 24px rgba(20,20,15,.06);
  --schatten-s: 0 1px 2px rgba(20,20,15,.07);
  --seiten-breite: 250px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --grund:        #131312;
    --flaeche:      #1c1c1a;
    --flaeche-2:    #232321;
    --flaeche-3:    #2a2a27;
    --linie:        #3a3a36;
    --linie-weich:  #2e2e2b;
    --ink:          #f6f6f2;
    --ink-2:        #c3c2b7;
    --ink-3:        #91908a;
    --akzent:       #3987e5;
    --akzent-weich: #1b2c42;
    --akzent-ink:   #7fb2f0;
    --gut:          #35a877;
    --achtung:      #d79b3c;
    --kritisch:     #e66767;
    --gut-weich:    #16302a;
    --achtung-weich:#332815;
    --kritisch-weich:#3a1f1e;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
    --schatten: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
    --schatten-s: 0 1px 2px rgba(0,0,0,.4);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --grund:        #131312;
  --flaeche:      #1c1c1a;
  --flaeche-2:    #232321;
  --flaeche-3:    #2a2a27;
  --linie:        #3a3a36;
  --linie-weich:  #2e2e2b;
  --ink:          #f6f6f2;
  --ink-2:        #c3c2b7;
  --ink-3:        #91908a;
  --akzent:       #3987e5;
  --akzent-weich: #1b2c42;
  --akzent-ink:   #7fb2f0;
  --gut:          #35a877;
  --achtung:      #d79b3c;
  --kritisch:     #e66767;
  --gut-weich:    #16302a;
  --achtung-weich:#332815;
  --kritisch-weich:#3a1f1e;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;
  --series-8: #e66767;
  --schatten: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  --schatten-s: 0 1px 2px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--grund);
  color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { margin: 0; font-weight: 640; letter-spacing: -.015em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0 0 10px; }
a { color: var(--akzent-ink); }
small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Anmeldung ------------------------------------------------ */
.anmeldung {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.anmeldung-karte {
  width: min(400px, 100%); background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten); padding: 28px;
}
.anmeldung-karte h1 { margin-bottom: 6px; }
.anmeldung-karte p { color: var(--ink-2); font-size: 13.5px; }

/* ---------- Gerüst --------------------------------------------------- */
.geruest { display: grid; grid-template-columns: var(--seiten-breite) 1fr; min-height: 100vh; }

.seitenleiste {
  background: var(--flaeche); border-right: 1px solid var(--linie);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.marke { padding: 18px 20px 14px; border-bottom: 1px solid var(--linie-weich); }
.marke strong { display: block; font-size: 15.5px; letter-spacing: -.02em; }
.marke span { color: var(--ink-3); font-size: 12px; }

.navi { padding: 10px; overflow-y: auto; flex: 1; }
.navi-gruppe { margin: 14px 0 6px; padding: 0 10px; color: var(--ink-3); font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 660; }
.navi button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--ink-2); font: inherit;
  font-size: 13.5px; font-weight: 520; padding: 8px 10px; border-radius: var(--radius-s);
  cursor: pointer; margin-bottom: 1px;
}
.navi button:hover { background: var(--flaeche-3); color: var(--ink); }
.navi button.an { background: var(--akzent-weich); color: var(--akzent-ink); font-weight: 620; }
.navi button .kennzeichen {
  margin-left: auto; background: var(--flaeche-3); color: var(--ink-2);
  border-radius: 20px; padding: 1px 7px; font-size: 11px; font-weight: 660;
}
.navi button.an .kennzeichen { background: var(--flaeche); }
.navi .punkt { width: 9px; height: 9px; border-radius: 3px; flex: none; }

.seiten-fuss { padding: 12px; border-top: 1px solid var(--linie-weich); font-size: 12px; color: var(--ink-3); }
.speicherstand { display: flex; align-items: center; gap: 7px; }
.speicherstand i { width: 8px; height: 8px; border-radius: 50%; background: var(--gut); flex: none; }
.speicherstand.fehler i { background: var(--kritisch); }

/* ---------- Inhalt --------------------------------------------------- */
.inhalt { min-width: 0; }
.kopfleiste {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--linie);
  padding: 14px 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.kopfleiste .titel { margin-right: auto; min-width: 0; }
.kopfleiste .titel small { display: block; color: var(--ink-3); font-size: 12.5px; }
.buehne { padding: 22px 26px 90px; max-width: 1320px; }

/* ---------- Bedienelemente ------------------------------------------- */
.knopf {
  border: 1px solid var(--linie); background: var(--flaeche); color: var(--ink);
  font: inherit; font-size: 13.5px; font-weight: 560; padding: 7px 13px;
  border-radius: var(--radius-s); cursor: pointer; display: inline-flex;
  align-items: center; gap: 7px; white-space: nowrap;
}
.knopf:hover { background: var(--flaeche-3); }
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf.haupt:hover { filter: brightness(1.08); }
.knopf.leise { border-color: transparent; background: transparent; color: var(--ink-2); }
.knopf.leise:hover { background: var(--flaeche-3); color: var(--ink); }
.knopf.gefahr { color: var(--kritisch); border-color: color-mix(in srgb, var(--kritisch) 35%, var(--linie)); }
.knopf.gefahr:hover { background: var(--kritisch-weich); }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
.knopf.klein { padding: 4px 9px; font-size: 12.5px; }

input, select, textarea {
  font: inherit; color: var(--ink); background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: var(--radius-s);
  padding: 7px 10px; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--akzent-weich); border-color: var(--akzent);
}
textarea { resize: vertical; min-height: 70px; }
label { font-size: 12px; font-weight: 620; color: var(--ink-2); }
.feld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.feld .hinweis { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.raster { display: grid; gap: 14px 16px; }
.r2 { grid-template-columns: repeat(2, 1fr); }
.r3 { grid-template-columns: repeat(3, 1fr); }
.r4 { grid-template-columns: repeat(4, 1fr); }
.spann2 { grid-column: span 2; }
.spann3 { grid-column: span 3; }
.spann4 { grid-column: span 4; }
.zeile { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.zeile.rechts { justify-content: flex-end; }
.abstand { margin-left: auto; }
input[type=checkbox] { width: auto; accent-color: var(--akzent); }

/* ---------- Karten ---------------------------------------------------- */
.karte {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); box-shadow: var(--schatten-s); margin-bottom: 18px;
  overflow: hidden;
}
.karte > header {
  padding: 13px 18px; border-bottom: 1px solid var(--linie-weich);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.karte > header h2 { font-size: 14.5px; }
.karte > header .neben { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.karte .leib { padding: 18px; }
.karte .leib.eng { padding: 0; }

.kachelreihe { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 18px; }
.kachel {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 15px 17px; box-shadow: var(--schatten-s);
}
.kachel .marke-text { color: var(--ink-3); font-size: 11.5px; font-weight: 620;
  text-transform: uppercase; letter-spacing: .05em; }
.kachel .gross { font-size: 25px; font-weight: 660; letter-spacing: -.02em; margin: 5px 0 2px;
  font-variant-numeric: tabular-nums; }
.kachel .fuss { color: var(--ink-2); font-size: 12.5px; }
.kachel.betont { border-color: var(--akzent); }

.z-gut { color: var(--gut); }
.z-achtung { color: var(--achtung); }
.z-kritisch { color: var(--kritisch); }

.merker {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 620;
  padding: 2px 8px; border-radius: 20px; background: var(--flaeche-3); color: var(--ink-2);
}
.merker.gut { background: var(--gut-weich); color: var(--gut); }
.merker.achtung { background: var(--achtung-weich); color: var(--achtung); }
.merker.kritisch { background: var(--kritisch-weich); color: var(--kritisch); }
.merker.info { background: var(--akzent-weich); color: var(--akzent-ink); }

.hinweisfeld {
  border: 1px solid var(--linie); border-left: 3px solid var(--akzent);
  background: var(--flaeche-2); border-radius: var(--radius-s);
  padding: 12px 14px; font-size: 13.5px; margin-bottom: 14px;
}
.hinweisfeld.achtung { border-left-color: var(--achtung); background: var(--achtung-weich); }
.hinweisfeld.kritisch { border-left-color: var(--kritisch); background: var(--kritisch-weich); }
.hinweisfeld.gut { border-left-color: var(--gut); background: var(--gut-weich); }
.hinweisfeld strong { display: block; margin-bottom: 3px; }

/* ---------- Tabellen -------------------------------------------------- */
.tabellen-huelle { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-3); font-weight: 660; padding: 9px 14px;
  border-bottom: 1px solid var(--linie); white-space: nowrap; background: var(--flaeche-2);
  position: sticky; top: 0;
}
td { padding: 9px 14px; border-bottom: 1px solid var(--linie-weich); vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: var(--flaeche-2); }
tr.anklickbar { cursor: pointer; }
.leer { padding: 34px 18px; text-align: center; color: var(--ink-3); font-size: 13.5px; }

/* ---------- Diagramme -------------------------------------------------- */
.diagramm { margin: 0 0 6px; }
.diagramm figcaption { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.diagramm figcaption span { font-size: 13.5px; font-weight: 620; }
.diagramm figcaption small { color: var(--ink-3); }
.svg-diagramm { width: 100%; height: auto; display: block; }
.gitter { stroke: var(--linie-weich); stroke-width: 1; }
.achse { stroke: var(--linie); stroke-width: 1; }
.achse-text { fill: var(--ink-3); font-size: 11.5px; font-family: inherit; }
.wert-text { fill: var(--ink-2); font-size: 12px; font-weight: 620; font-family: inherit;
  font-variant-numeric: tabular-nums; }
.ring-wert { fill: var(--ink); font-size: 22px; font-weight: 660; font-family: inherit;
  font-variant-numeric: tabular-nums; }
.ring-text { fill: var(--ink-3); font-size: 10.5px; font-family: inherit; }
.svg-ring { display: block; }

.diagramm-legende { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.diagramm-legende span { display: inline-flex; align-items: center; gap: 6px; }
.diagramm-legende i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.diagramm-tabelle { margin-top: 10px; }
.diagramm-tabelle summary { cursor: pointer; font-size: 12.5px; color: var(--ink-3); }
.diagramm-tabelle table { margin-top: 8px; }
.diagramm-tabelle th { position: static; }

.diagramm-tip {
  position: fixed; z-index: 200; display: none; pointer-events: none;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-s);
  box-shadow: var(--schatten); padding: 8px 11px; font-size: 12.5px; color: var(--ink);
  max-width: 260px; line-height: 1.45;
}

.fortschritt { margin-bottom: 14px; }
.fortschritt-kopf { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.fortschritt-kopf strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.fortschritt-bahn { height: 9px; background: var(--flaeche-3); border-radius: 5px; overflow: hidden; }
.fortschritt-fuell { height: 100%; border-radius: 5px; background: var(--akzent); transition: width .35s; }
.fortschritt-fuell.z-gut { background: var(--gut); }
.fortschritt-fuell.z-achtung { background: var(--achtung); }
.fortschritt-fuell.z-kritisch { background: var(--kritisch); }
.fortschritt-fuss { font-size: 12px; color: var(--ink-3); margin-top: 5px; }

/* ---------- Objektkarten ------------------------------------------------ */
.objekt-gitter { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.objekt-karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten-s); overflow: hidden; display: flex; flex-direction: column;
}
.objekt-karte .streifen { height: 4px; }
.objekt-karte .kopf { padding: 15px 17px 10px; }
.objekt-karte .kopf h3 { font-size: 15.5px; }
.objekt-karte .kopf .adresse { color: var(--ink-3); font-size: 12.5px; }
.objekt-karte .werte { padding: 0 17px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.objekt-karte .werte div span { display: block; color: var(--ink-3); font-size: 11px;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 620; }
.objekt-karte .werte div strong { font-size: 15px; font-weight: 640; font-variant-numeric: tabular-nums; }
.objekt-karte .fuss { margin-top: auto; padding: 11px 17px; border-top: 1px solid var(--linie-weich);
  display: flex; align-items: center; gap: 9px; background: var(--flaeche-2); }

/* ---------- Dialog ------------------------------------------------------- */
.schleier {
  position: fixed; inset: 0; background: rgba(15,15,12,.42); z-index: 100;
  display: grid; place-items: start center; padding: 40px 20px; overflow-y: auto;
}
.dialog {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); width: min(860px, 100%);
}
.dialog > header { padding: 15px 20px; border-bottom: 1px solid var(--linie-weich);
  display: flex; align-items: center; gap: 10px; }
.dialog > header h2 { margin-right: auto; }
.dialog .leib { padding: 20px; max-height: 66vh; overflow-y: auto; }
.dialog > footer { padding: 13px 20px; border-top: 1px solid var(--linie-weich);
  display: flex; gap: 9px; justify-content: flex-end; background: var(--flaeche-2); }

/* ---------- Ablage / Anhänge --------------------------------------------- */
.ablage {
  border: 1.5px dashed var(--linie); border-radius: var(--radius-s);
  padding: 22px; text-align: center; color: var(--ink-3); font-size: 13.5px;
  background: var(--flaeche-2); cursor: pointer;
}
.ablage.aktiv { border-color: var(--akzent); background: var(--akzent-weich); color: var(--akzent-ink); }
.anhang-liste { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.anhang {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--linie);
  border-radius: var(--radius-s); padding: 6px 10px; font-size: 12.5px; background: var(--flaeche-2);
}
.anhang a { color: var(--ink); text-decoration: none; }
.anhang a:hover { text-decoration: underline; }
.foto-gitter { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.foto-gitter figure { margin: 0; border: 1px solid var(--linie); border-radius: var(--radius-s); overflow: hidden; background: var(--flaeche-2); }
.foto-gitter img { width: 100%; height: 120px; object-fit: cover; display: block; }
.foto-gitter figcaption { padding: 7px 9px; font-size: 11.5px; color: var(--ink-2); }

/* ---------- Filterzeile --------------------------------------------------- */
.filterzeile {
  display: flex; gap: 9px; flex-wrap: wrap; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--linie-weich); background: var(--flaeche-2);
}
.filterzeile input, .filterzeile select { width: auto; min-width: 130px; }
.filterzeile .suche { flex: 1; min-width: 180px; }

/* ---------- Bericht ------------------------------------------------------- */
.bericht { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 30px 34px; box-shadow: var(--schatten-s); }
.bericht h1 { font-size: 21px; margin-bottom: 4px; }
.bericht h2 { font-size: 16px; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--linie-weich); }
.bericht h3 { font-size: 13.5px; margin: 18px 0 7px; color: var(--ink-2); }
.bericht p { font-size: 14px; }
.bericht ul { padding-left: 20px; font-size: 14px; }
.bericht li { margin-bottom: 5px; }
.bericht .kopfzeile { color: var(--ink-3); font-size: 12.5px; margin-bottom: 20px; }
.empfehlung {
  border: 1px solid var(--linie); border-left: 3px solid var(--akzent);
  border-radius: var(--radius-s); padding: 13px 15px; margin-bottom: 12px; background: var(--flaeche-2);
}
.empfehlung.hoch { border-left-color: var(--kritisch); }
.empfehlung.mittel { border-left-color: var(--achtung); }
.empfehlung .kopf { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.empfehlung .kopf strong { font-size: 14px; }
.empfehlung .wirkung { margin-left: auto; font-size: 12.5px; color: var(--ink-2); font-weight: 620; }
.empfehlung p { font-size: 13.5px; margin: 0 0 6px; color: var(--ink-2); }
.empfehlung .grundlage { font-size: 12px; color: var(--ink-3); }

/* ---------- Aufgaben ------------------------------------------------------ */
.aufgabe { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--linie-weich); }
.aufgabe:last-child { border-bottom: 0; }
.aufgabe input { width: auto; margin-top: 3px; }
.aufgabe.erledigt .text { text-decoration: line-through; color: var(--ink-3); }
.aufgabe .text { flex: 1; font-size: 13.5px; }
.aufgabe .meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ---------- Reiter -------------------------------------------------------- */
.reiter { display: flex; gap: 3px; border-bottom: 1px solid var(--linie); margin-bottom: 18px; flex-wrap: wrap; }
.reiter button {
  border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px;
  font-weight: 560; padding: 9px 14px; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.reiter button.an { color: var(--akzent-ink); border-bottom-color: var(--akzent); font-weight: 640; }

/* ---------- Kleine Bildschirme --------------------------------------------- */
@media (max-width: 980px) {
  .geruest { grid-template-columns: 1fr; }
  .seitenleiste { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--linie); }
  .navi { display: flex; flex-wrap: wrap; gap: 4px; }
  .navi-gruppe { display: none; }
  .navi button { width: auto; }
  .r3, .r4 { grid-template-columns: repeat(2, 1fr); }
  .spann3, .spann4 { grid-column: span 2; }
  .buehne { padding: 18px 16px 80px; }
  .kopfleiste { padding: 12px 16px; }
}
@media (max-width: 620px) {
  .r2, .r3, .r4 { grid-template-columns: 1fr; }
  .spann2, .spann3, .spann4 { grid-column: span 1; }
  .bericht { padding: 20px 18px; }
}

/* ---------- Druck ---------------------------------------------------------- */
@media print {
  .seitenleiste, .kopfleiste, .knopf, .filterzeile { display: none !important; }
  .geruest { grid-template-columns: 1fr; }
  .buehne { padding: 0; max-width: none; }
  .karte, .bericht { box-shadow: none; border-color: #ccc; page-break-inside: avoid; }
  body { background: #fff; }
}

/* ---------- Belegsichtung ---------------------------------------------- */
.zielreihe { display: flex; gap: 3px; flex-wrap: nowrap; min-width: 340px; }
.zielreihe .ziel {
  border: 1px solid var(--linie); background: var(--flaeche); color: var(--ink-2);
  font: inherit; font-size: 11.5px; font-weight: 620; padding: 3px 8px;
  border-radius: 20px; cursor: pointer; white-space: nowrap;
}
.zielreihe .ziel:hover { border-color: var(--akzent); color: var(--akzent-ink); }
.zielreihe .ziel.an { background: var(--akzent); border-color: var(--akzent); color: #fff; }
tr.gesichtet td { opacity: .55; }
tr.gesichtet .zielreihe .ziel.an { opacity: 1; }

/* ---------- Belegvorschau ----------------------------------------------- */
.pdf-knopf {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 20px;
  border: 1px solid var(--akzent); color: var(--akzent-ink); background: var(--akzent-weich);
  font-size: 11px; font-weight: 660; text-decoration: none; vertical-align: 2px;
}
.pdf-knopf:hover { background: var(--akzent); color: #fff; }
.pdf-vorschau iframe {
  width: 100%; height: 480px; border: 1px solid var(--linie);
  border-radius: var(--radius-s); background: var(--flaeche-2);
}
