/* Federnest · Design Variante A „Klar“: hell, Menü links, Hauptinfos schwarz und fett, Nebeninfos grau.
   Kalenderfarben angelehnt an Smoobu: helle Balken mit dunkler Schrift, Kanal-Symbol links. */
:root {
  --grund: #F6F7F9; --flaeche: #FFFFFF; --text: #111827; --text-2: #374151; --leise: #6B7280;
  --linie: #E5E7EB; --linie-2: #EEF0F3; --akzent: #1D4ED8; --akzent-hell: #EFF4FF;
  --gut: #15803D; --schlecht: #B91C1C; --warn: #B45309; --ungelesen: #DC2626;
  --wochenende: #EEF3FB; --wochenende-text: #2F6BD8; --heute: #2563EB;
  --airbnb: #FFCDD0; --airbnb-stark: #E0484F; --booking: #7FA9EE; --booking-stark: #1A3E8C;
  --vrbo: #A9C6F7; --vrbo-stark: #2F6BD8; --direkt: #B4F0D8; --direkt-stark: #1F7A57;
  --radius: 10px; --halb: 20px; --namensbreite: 170px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: Inter, system-ui, sans-serif; font-size: 14px; }
a { color: var(--akzent); }
h1 { margin: 4px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.leise { color: var(--leise); }
.klein { font-size: 12px; }
.fett { font-weight: 600; }

/* Rahmen und Menü */
.rahmen { display: flex; flex-wrap: wrap; min-height: 100vh; }
.menue { flex: 1 1 200px; max-width: 220px; background: var(--flaeche); border-right: 1px solid var(--linie);
  padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; }
.marke { display: flex; gap: 10px; align-items: center; padding: 4px 8px 20px; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: var(--akzent); color: #fff; display: flex;
  align-items: center; justify-content: center; font-weight: 700; }
.marke-name { font-weight: 700; font-size: 15px; }
.menuepunkt { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 10px;
  border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.menuepunkt:hover { background: var(--grund); }
.menuepunkt.aktiv { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
.zaehler { background: var(--ungelesen); color: #fff; font-size: 11px; font-weight: 600; border-radius: 10px; padding: 2px 7px; }
.menue-fuss { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--linie); }
.inhalt { flex: 999 1 560px; min-width: 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; }

/* Kopf, Knöpfe, Kennzahlen */
.kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.knopf { height: 38px; padding: 0 14px; border: 1px solid #D1D5DB; background: var(--flaeche); border-radius: 19px;
  font: inherit; color: var(--text); display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--grund); }
.knopf.primaer { background: var(--akzent); border-color: var(--akzent); color: #fff; font-weight: 600; }
.knopf:disabled { opacity: 0.5; cursor: not-allowed; }
.klein-knopf { height: 32px; font-size: 13px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 3px; }
.kachel-wert { font-size: 22px; font-weight: 700; }
.zeile-gut { color: var(--gut); font-size: 12px; }
.zeile-schlecht { color: var(--schlecht); font-size: 12px; }
.zeile-warn { color: var(--warn); font-size: 12px; }
.zeile-leise { color: var(--leise); font-size: 12px; }
.zeile-stark { color: var(--text); font-size: 13px; font-weight: 600; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }

/* Kalender */
.kal-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.kal-zeitraum { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.kalender-bereich { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.kalender-karte { flex: 999 1 640px; min-width: 0; overflow: hidden; }
.kal-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: auto; scrollbar-color: #9CA3AF #F3F4F6; }
.kal-scroll::-webkit-scrollbar { height: 14px; }
.kal-scroll::-webkit-scrollbar-track { background: #F3F4F6; }
.kal-scroll::-webkit-scrollbar-thumb { background: #9CA3AF; border-radius: 7px; border: 3px solid #F3F4F6; }
.kal-scroll:focus-visible { outline: 2px solid var(--akzent); }
.kalender { width: max-content; }
.kal-zeile { display: grid; grid-template-columns: var(--namensbreite) repeat(calc(var(--tage) * 2), var(--halb));
  min-height: 42px; border-bottom: 1px solid var(--linie-2); }
.kal-zeile > * { grid-row: 1; }
.kal-name { grid-column: 1; position: sticky; left: 0; z-index: 3; background: var(--flaeche); padding: 6px 10px;
  border-right: 1px solid var(--linie); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.kal-name .fett { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kal-name .klein { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.kal-monate { min-height: 30px; border-bottom: 0; }
.kal-monat { padding: 8px 6px 0; font-weight: 600; font-size: 14px; border-left: 1px solid var(--linie); white-space: nowrap; }
.kal-frei { min-height: 24px; border-bottom: 0; }
.kal-frei .kal-name { font-size: 11px; }
.kal-frei-zahl { text-align: center; font-size: 11px; color: #9CA3AF; align-self: center; }
.kal-kopf { min-height: 46px; border-bottom: 1px solid var(--linie); }
.kal-tag { text-align: center; padding: 4px 0; color: var(--text-2); font-size: 12px; }
.kal-tag.wochenende { color: var(--wochenende-text); }
.kal-tagzahl { display: inline-block; min-width: 24px; padding: 1px 5px; border-radius: 10px; font-weight: 600; margin-top: 2px; }
.kal-tagzahl.heute { background: var(--heute); color: #fff; }
.kal-zelle { border-left: 1px solid var(--linie-2); }
.kal-zelle.wochenende, .kal-frei-zahl.wochenende { background: var(--wochenende); }
.kal-zelle.heute { background: #F3F7FF; }
.hilfs .kal-zelle { background: repeating-linear-gradient(135deg, #FAFAFB 0 8px, #F3F4F6 8px 16px); }

.balken { margin: 6px 0; border: 0; border-radius: 15px; color: var(--text); display: flex; align-items: center;
  gap: 6px; padding: 0 8px 0 4px; min-width: 0; overflow: hidden; cursor: pointer; z-index: 1; text-align: left;
  font: inherit; white-space: nowrap; }
.balken:hover, .balken:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.balken-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.balken-info { font-size: 11px; color: #1F2937; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.kanal-badge { flex: none; width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.kanal-airbnb { background: var(--airbnb); }
.kanal-airbnb .kanal-badge { background: #fff; color: var(--airbnb-stark); border: 1.5px solid var(--airbnb-stark); }
.kanal-airbnb .kanal-badge::after { content: "A"; }
.kanal-booking { background: var(--booking); }
.kanal-booking .kanal-badge { background: var(--booking-stark); }
.kanal-booking .kanal-badge::after { content: "B"; }
.kanal-vrbo { background: var(--vrbo); }
.kanal-vrbo .kanal-badge { background: var(--vrbo-stark); }
.kanal-vrbo .kanal-badge::after { content: "V"; }
.kanal-direkt { background: var(--direkt); }
.kanal-direkt .kanal-badge { background: var(--direkt-stark); }
.kanal-direkt .kanal-badge::after { content: "D"; }
.kanal-sonstiges { background: #E5E7EB; }
.kanal-blockiert { background: repeating-linear-gradient(135deg, #D1D5DB 0 6px, #E5E7EB 6px 12px); color: var(--text-2); }
.legende { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--linie); }
.legende i { display: inline-block; width: 18px; height: 10px; border-radius: 5px; margin-right: 6px; vertical-align: -1px; }

/* Details */
.details { flex: 1 1 300px; max-width: 380px; min-width: 280px; padding: 18px; display: flex; flex-direction: column;
  gap: 14px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.details-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.details-name { font-size: 18px; font-weight: 700; margin-top: 2px; }
.etikett { color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; white-space: nowrap; }
.fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--linie);
  border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; }
.fakten > div { background: var(--flaeche); padding: 9px 12px; }
.score-zeile { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--linie); border-radius: 8px; }
.score { width: 40px; height: 40px; border-radius: 20px; color: #fff; font-weight: 700; font-size: 16px; display: flex;
  align-items: center; justify-content: center; flex: none; }
.pruefungen { display: flex; flex-direction: column; gap: 8px; }
.pruef-zeile { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.code { font-family: ui-monospace, Consolas, monospace; font-weight: 600; letter-spacing: 0.04em; }
.hinweis { background: #FEF3C7; color: #78350F; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.notiz { white-space: pre-wrap; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.nachrichten { display: flex; flex-direction: column; gap: 8px; }
.nachricht { padding: 9px 11px; border-radius: 10px; max-width: 92%; }
.nachricht.eingehend { background: #F3F4F6; align-self: flex-start; }
.nachricht.ausgehend { background: var(--akzent-hell); align-self: flex-end; }
.nachricht-text { white-space: pre-wrap; font-size: 13px; line-height: 1.45; margin-top: 2px; }
.leer { padding: 40px; text-align: center; color: var(--leise); }

@media (max-width: 700px) {
  :root { --namensbreite: 110px; }
  .inhalt { padding: 16px; }
  .menue { max-width: none; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--linie); }
  .menue-fuss, .marke { display: none; }
  .details { max-width: none; position: static; max-height: none; }
}

/* Statistik */
h2 { margin: 0; font-size: 16px; font-weight: 700; }
.stat-untertitel { margin-top: 4px; }
.stat-dunkel { color: var(--text); }
.stat-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 14px 16px; }
.stat-feld { display: flex; flex-direction: column; gap: 4px; }
.eingabe { height: 38px; padding: 0 10px; border: 1px solid #D1D5DB; border-radius: 8px; background: var(--flaeche);
  font: inherit; color: var(--text); display: flex; align-items: center; }
.eingabe:focus-visible, .segment-knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.segment { display: inline-flex; border: 1px solid #D1D5DB; border-radius: 8px; overflow: hidden; height: 38px; }
.segment-knopf { display: inline-flex; align-items: center; padding: 0 14px; color: var(--text-2); text-decoration: none; }
.segment-knopf + .segment-knopf { border-left: 1px solid #D1D5DB; }
.segment-knopf.aktiv { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
.auswahl { position: relative; }
.auswahl summary { cursor: pointer; min-width: 200px; list-style: none; }
.auswahl summary::-webkit-details-marker { display: none; }
.auswahl summary::after { content: "▾"; margin-left: auto; padding-left: 10px; color: var(--leise); }
.auswahl-liste { position: absolute; z-index: 10; top: 42px; right: 0; width: 340px; max-height: 420px; overflow-y: auto;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 10px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12); display: flex; flex-direction: column; gap: 2px; }
.auswahl-knoepfe { display: flex; gap: 6px; margin-bottom: 6px; }
.auswahl-zeile { display: flex; align-items: center; gap: 8px; padding: 4px 4px; border-radius: 6px; cursor: pointer; }
.auswahl-zeile:hover { background: var(--grund); }
.auswahl-zeile .klein { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-vorlagen { display: flex; flex-wrap: wrap; gap: 4px 14px; flex-basis: 100%; }
.stat-hinweis { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.muster-offen, .legende i.leg-offen { background: #B7C6EE; }
.muster-offen { display: inline-block; width: 18px; height: 10px; border-radius: 3px; flex: none; }
.stat-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.spark { display: block; margin: 6px 0 4px; max-width: 100%; height: auto; }
.spark-fertig { fill: #8FA3CF; }
.spark-offen { fill: #D3DCF1; }
.stat-karte { padding: 16px 18px 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.stat-karte > .tabelle-scroll { margin: 0 -18px; }
.stat-karte-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.stat-diagramm { position: relative; height: 320px; }
.stat-karte .legende { margin: 0 -18px; padding: 10px 18px; }
.legende i.leg-umsatz { background: #3D63D2; }
.legende i.leg-vj { background: none; border-top: 2px dashed #6B7280; height: 0; border-radius: 0; vertical-align: 3px; }
.legende i.leg-auslastung { background: #0F766E; height: 3px; border-radius: 2px; vertical-align: 3px; }
.tabelle-scroll { overflow-x: auto; }
.stat-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stat-tabelle th, .stat-tabelle td { padding: 9px 14px; border-top: 1px solid var(--linie-2); text-align: right;
  vertical-align: top; white-space: nowrap; }
.stat-tabelle th:first-child { text-align: left; padding-left: 18px; }
.stat-tabelle td:last-child, .stat-tabelle th:last-child { padding-right: 18px; }
.stat-tabelle thead th { border-top: 0; border-bottom: 1px solid var(--linie); font-size: 12px; font-weight: 500;
  color: var(--leise); background: #FAFBFC; }
.stat-tabelle tbody th { font-weight: 600; }
.stat-tabelle tfoot th, .stat-tabelle tfoot td { border-top: 1px solid var(--linie); background: #FAFBFC; }
.stat-tabelle .zeile-gut, .stat-tabelle .zeile-schlecht, .stat-tabelle .zeile-leise { font-size: 12px; }
.sortierbar thead button { all: unset; cursor: pointer; }
.sortierbar thead button:focus-visible { outline: 2px solid var(--akzent); }
.sortierbar th[aria-sort="ascending"] button::after { content: " ▲"; }
.sortierbar th[aria-sort="descending"] button::after { content: " ▼"; }
.kanal-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 8px; }
.anteil-balken { height: 4px; background: var(--linie-2); border-radius: 2px; margin-top: 5px; min-width: 90px; }
.anteil-balken i { display: block; height: 4px; border-radius: 2px; }

@media (max-width: 700px) {
  .auswahl-liste { position: static; width: auto; margin-top: 6px; box-shadow: none; }
}

/* Anmeldung */
.anmelde-seite { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.anmelde-karte { width: 100%; max-width: 360px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.anmelde-karte .marke { padding: 0 0 8px; }
.anmelde-karte h1 { font-size: 20px; margin: 0; }
.anmelde-karte label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; color: var(--text-2); }
.anmelde-karte input[type=email], .anmelde-karte input[type=password] { height: 40px; padding: 0 12px; font: inherit;
  border: 1px solid #D1D5DB; border-radius: 8px; color: var(--text); background: var(--flaeche); }
.anmelde-karte input:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.anmelde-karte .knopf { justify-content: center; margin-top: 6px; }
.anmelde-fehler { margin: 0; padding: 10px 12px; border-radius: 8px; background: #FEF2F2; color: var(--schlecht); }
.link-knopf { all: unset; cursor: pointer; color: var(--akzent); margin: 2px 0 6px; }
.link-knopf:hover { text-decoration: underline; }

/* Nachrichten */
.postfach { display: flex; gap: 16px; align-items: flex-start; min-height: 0; }
.postfach-liste { flex: 0 0 340px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; overflow: hidden; }
.postfach-filter { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--linie); }
.filter-knopf { padding: 6px 12px; border-radius: 16px; text-decoration: none; color: var(--text-2); font-weight: 500; }
.filter-knopf.aktiv { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
.zaehler-leise { font-size: 12px; }
.konv-liste { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.konv { display: flex; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--linie-2); text-decoration: none;
  color: var(--text); }
.konv:hover { background: var(--grund); }
.konv.gewaehlt { background: var(--akzent-hell); }
.konv-symbol { background: none; flex: none; padding-top: 2px; }
.konv-mitte { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.konv-zeile1 { display: flex; justify-content: space-between; gap: 8px; }
.konv-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konv.ungelesen .konv-name { font-weight: 700; }
.konv.ungelesen .konv-name::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 4px;
  background: var(--ungelesen); margin-right: 6px; vertical-align: 1px; }
.konv-zeile2, .konv-vorschau { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.konv-vorschau { color: var(--text-2); }
.postfach-konv { flex: 1; min-width: 0; }
.konv-raster { display: flex; gap: 16px; align-items: flex-start; }
.konv-verlauf { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; max-height: calc(100vh - 140px); }
.konv-kopf { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--linie); align-items: flex-start; }
.konv-kopf-rechts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.verlauf { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; overflow-y: auto; }
.verlauf .nachricht { max-width: 85%; }
.verlauf details summary { cursor: pointer; list-style: none; }
.verlauf details[open] summary { display: none; }
.konv-antwort { flex: 0 1 400px; min-width: 300px; padding: 16px; display: flex; flex-direction: column; gap: 14px;
  max-height: calc(100vh - 140px); overflow-y: auto; }
.abschnitt-titel { font-weight: 600; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.etikett-leise { font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--grund);
  border: 1px solid var(--linie); padding: 2px 8px; border-radius: 10px; }
.vorschlaege { display: flex; flex-direction: column; gap: 10px; }
.vorschlag { border: 1px solid var(--linie); border-radius: 8px; padding: 10px 12px; display: flex;
  flex-direction: column; gap: 6px; }
.vorschlag.gewaehlt { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.vorschlag-kopf { display: flex; justify-content: space-between; align-items: center; }
.vorschlag-text { white-space: pre-wrap; font-size: 13px; line-height: 1.45; }
.vorschlag .knopf { align-self: flex-start; }
.konfidenz { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.konfidenz-gut { background: #DCFCE7; color: var(--gut); }
.konfidenz-warn { background: #FEF3C7; color: var(--warn); }
.konfidenz-schlecht { background: #FEE2E2; color: var(--schlecht); }
.klein-knopf { height: 30px; padding: 0 12px; font-size: 13px; }
.eingabe { width: 100%; font: inherit; font-size: 13px; line-height: 1.45; padding: 8px 10px; border: 1px solid #D1D5DB;
  border-radius: 8px; resize: vertical; color: var(--text); background: var(--flaeche); }
.eingabe:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.vorschlag-anfordern, .antwort-form { display: flex; flex-direction: column; gap: 8px; }
.meldung { padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.meldung-gut { background: #DCFCE7; color: #14532D; }
.meldung-warn { background: #FEF3C7; color: #78350F; }
.meldung-schlecht { background: #FEE2E2; color: #7F1D1D; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: block; }
@media (max-width: 1200px) {
  .konv-raster { flex-direction: column; }
  .konv-antwort { flex-basis: auto; width: 100%; max-height: none; }
}
@media (max-width: 800px) {
  .postfach { flex-direction: column; }
  .postfach-liste { flex-basis: auto; width: 100%; max-height: 40vh; }
}

/* Statistik: Reiter, Jahresvergleich, Kalenderwochen, Wohnungsvergleich, Cashflow */
.stat-reiter { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--linie); }
.stat-reiter-link { padding: 8px 14px; color: var(--text-2); text-decoration: none; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.stat-reiter-link:hover { color: var(--text); }
.stat-reiter-link.aktiv { color: var(--akzent); border-bottom-color: var(--akzent); font-weight: 600; }
.stat-reiter-link:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
button.segment-knopf { border: 0; background: var(--flaeche); font: inherit; cursor: pointer; }
button.segment-knopf.aktiv { background: var(--akzent-hell); }
.jahre-steuerung { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.jahre-auswahl { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.jahr-wahl { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; }
.jahr-wahl i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.stat-abschnitt { display: flex; flex-direction: column; gap: 12px; }
.stat-abschnitt > .stat-karte-kopf { padding: 0 2px; }
.kw-kacheln { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.kw-tabelle td .zeile-gut, .kw-tabelle td .zeile-schlecht, .kw-tabelle td .zeile-leise { font-size: 11px; }
.kw-aktuell > * { background: var(--akzent-hell); }
.kw-vergangen > * { color: var(--leise); }
.normal { font-weight: 400; }
.rang-tabelle th, .rang-tabelle td { padding: 6px 10px; }
.rang-tabelle thead th { text-align: left; color: var(--text); font-weight: 600; font-size: 13px; }
.rang-tabelle .rang-nr { width: 44px; text-align: right; color: var(--leise); }
.rang-tabelle .rang-name { text-align: left; white-space: nowrap; border-left: 1px solid var(--linie); }
.rang-tabelle .rang-wert { font-weight: 600; white-space: nowrap; }
.form-punkte { display: inline-flex; justify-content: center; align-items: center; min-width: 28px; height: 24px;
  border-radius: 6px; font-weight: 700; color: #1F2937; }
.form-legende { gap: 4px; align-items: center; }
.form-legende span:last-child { margin-left: 8px; }
.yoy-tabelle th, .yoy-tabelle td { padding: 5px 6px; }
.yoy-zelle { display: inline-block; min-width: 56px; padding: 3px 6px; border-radius: 5px; font-size: 12px; }
.yoy-zelle.offen { opacity: 0.6; }
.monat-wahl { display: flex; align-items: center; gap: 8px; height: 38px; }
.monat-name { min-width: 130px; text-align: center; }
.kontostand-felder { display: flex; flex-wrap: wrap; gap: 8px; }
.kontostand-felder .eingabe[name="betrag"] { width: 140px; }
.kontostand-form { margin-left: auto; }
.prognose-text { padding-bottom: 16px; max-width: 900px; }
.prognose-text p { margin: 0; line-height: 1.5; }
@media (max-width: 800px) {
  .kontostand-form { margin-left: 0; }
}
.zahlungs-tabelle td:nth-child(2), .zahlungs-tabelle td:nth-child(3), .zahlungs-tabelle th:nth-child(2),
.zahlungs-tabelle th:nth-child(3), .prognose-tabelle td, .prognose-tabelle th { text-align: left; }
.prognose-tabelle td.klein { white-space: normal; min-width: 320px; }

/* Nachrichten: Übersetzung, Diktat, Überarbeiten */
.nachricht .original { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #D1D5DB; }
.nachricht .original .nachricht-text { color: var(--text-2); font-size: 12px; }
.diktat-feld { display: flex; gap: 6px; align-items: flex-start; }
.diktat-feld textarea { flex: 1; }
.diktat-knopf { flex: none; }
.diktat-knopf.aktiv-diktat { background: #FEE2E2; border-color: var(--ungelesen); color: var(--ungelesen); font-weight: 600; }
.antwort-bereich { display: flex; flex-direction: column; gap: 14px; }
.antwort-form textarea.eingabe, .vorschlag-anfordern textarea.eingabe { height: auto; padding: 8px 10px; line-height: 1.45; }
.ueberarbeiten { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 8px; background: var(--grund); }
.ueberarbeiten > .knopf { align-self: flex-start; }
.vorschlag-anfordern summary { cursor: pointer; }
.vorschlag-anfordern form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.klein-eingabe { height: 32px; font-size: 13px; }
.uebersetzen-laeuft { padding: 6px 16px; }
/* Startseite */
.zaehler-rot { background: var(--ungelesen); color: #fff; font-size: 12px; border-radius: 10px; padding: 2px 8px; vertical-align: 2px; }
.heute-abschnitt { display: flex; flex-direction: column; gap: 12px; }
.heute-todos { padding: 14px 18px; }
.heute-todos ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.todo-warn::marker { color: var(--ungelesen); }
.todo-leise { color: var(--leise); }
.heute-karte { overflow: hidden; }
.heute-karte-inhalt { display: flex; gap: 16px; align-items: flex-start; padding: 0 16px 16px; }
.heute-karte .verlauf-kurz { flex: 1 1 340px; min-width: 0; padding: 0; overflow: visible; }
.heute-antwort { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.termin-tabelle td, .termin-tabelle th { text-align: left; }
.kanal-airbnb-punkt { background: var(--airbnb-stark); } .kanal-booking-punkt { background: var(--booking-stark); }
.kanal-vrbo-punkt { background: var(--vrbo-stark); } .kanal-direkt-punkt { background: var(--direkt-stark); }
.kanal-sonstiges-punkt { background: var(--leise); }
/* KI-Einstellungen */
.ki-empfehlung, .ki-form { padding-bottom: 16px; max-width: 900px; }
.ki-empfehlung ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }
.ki-empfehlung p { margin: 0; }
.ki-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ki-modell, .ki-schalter { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ki-modell input, .ki-schalter input { margin-top: 3px; }
.ki-zeile { display: block; }
@media (max-width: 800px) {
  .heute-karte-inhalt { flex-direction: column; }
  .heute-antwort, .heute-karte .verlauf-kurz { flex-basis: auto; width: 100%; }
}
