/* FinanzDESK
 *
 * Diagrammfarben: dieselbe geprüfte Kategorienpalette wie im DepotDESK (dunkel auf #1a2235,
 * hell auf #ffffff bestanden). Im Hellmodus liegen drei Farben unter 3:1 - deshalb trägt jedes
 * Diagramm eine Legende mit Werten und eine Tabelle daneben. Statusfarben erscheinen nie ohne
 * Symbol und Wort.
 */

:root {
  --fd-s1: #3987e5;
  --fd-s2: #d95926;
  --fd-s3: #199e70;
  --fd-s4: #c98500;
  --fd-s5: #d55181;
  --fd-s6: #008300;
  --fd-s7: #9085e9;
  --fd-gut: #0ca30c;
  --fd-warnung: #fab219;
  --fd-kritisch: #d03b3b;
  --fd-plus: #2fbf4a;
  --fd-neutral: color-mix(in srgb, var(--text-muted) 70%, var(--bg-2));
  --fd-neutral-2: color-mix(in srgb, var(--text-muted) 38%, var(--bg-2));
  --fd-gitter: rgba(176, 207, 229, 0.08);
  --fd-achse: rgba(176, 207, 229, 0.22);
  --fd-heat-farbe: var(--accent);
}

[data-theme="light"] {
  --fd-s1: #2a78d6;
  --fd-s2: #eb6834;
  --fd-s3: #1baf7a;
  --fd-s4: #eda100;
  --fd-s5: #e87ba4;
  --fd-s6: #008300;
  --fd-s7: #4a3aa7;
  --fd-plus: #006300;
  --fd-gitter: rgba(14, 60, 120, 0.08);
  --fd-achse: rgba(14, 60, 120, 0.22);
}

/* --- Rahmen ------------------------------------------------------------------ */

/* `.btn` setzt display und schlägt damit das hidden-Attribut - versteckt heißt versteckt */
.fd [hidden] {
  display: none !important;
}

.fd {
  gap: 20px;
}

/* Rasterspalten dürfen schmaler werden als ihr Inhalt - breite Tabellen scrollen in sich */
.fd,
.fd .stack {
  grid-template-columns: minmax(0, 1fr);
}

.fd .stack > *,
.fd > * {
  min-width: 0;
}

.fd .page-head {
  margin-bottom: 4px;
}

.fd-reiter {
  display: flex;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  width: fit-content;
  max-width: 100%;
}

.fd-reiter::-webkit-scrollbar {
  display: none;
}

.fd-reiter a {
  flex: none;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.fd-reiter a:hover {
  color: var(--text);
}

.fd-reiter a.is-active {
  background: var(--button-secondary-bg-hover);
  color: var(--text);
}

.fd .card {
  padding: 24px;
}

.fd-karte h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.fd-karte .muted {
  margin-top: 4px;
  font-size: 13px;
}

.fd-karte-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.fd-karte-summe {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.fd-unterkopf {
  margin: 16px 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.fd-zwei {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.fd-zwei:empty {
  display: none;
}

.fd-verborgen .betrag,
.fd-verborgen .betrag-svg {
  filter: blur(7px);
  user-select: none;
}

/* --- Steuerleiste: Bereich und Jahr ---------------------------------------------- */

.fd-steuer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fd-schalter {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
}

.fd-schalter button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.fd-schalter--gross button {
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
}

.fd-schalter button.is-active {
  background: var(--bg-2);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.fd-jahrwahl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.fd-jahrwahl select {
  width: auto;
}

/* --- Hinweis offene Zuordnungen ------------------------------------------------- */

.fd-offen {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--fd-warnung) 45%, transparent);
  background: color-mix(in srgb, var(--fd-warnung) 9%, var(--bg-2));
  color: var(--text);
  font-size: 13.5px;
  text-decoration: none;
}

.fd-offen:hover {
  border-color: var(--fd-warnung);
}

.fd-offen-zahl {
  flex: none;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--fd-warnung) 22%, transparent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* --- Held und Kacheln -------------------------------------------------------- */

.fd-held {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: center;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    var(--bg-2);
}

.fd-held-wert {
  font-size: clamp(36px, 5.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}

.fd-teile {
  display: flex;
  gap: 2px;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
}

.fd-teil {
  min-width: 3px;
  flex-basis: 0;
}

.fd-teil-legende {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.fd-teil-legende li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto 56px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.fd-teil-legende li > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fd-marke {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.fd-teil-wert {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.fd-teil-anteil {
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fd-kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.fd-kacheln--vier {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fd-kachel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.fd-karte .fd-kachel {
  background: color-mix(in srgb, var(--bg-3) 55%, var(--bg-2));
  box-shadow: none;
}

.fd-kachel-titel {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.fd-kachel-wert {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.fd-kachel-unter {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.fd-plus {
  color: var(--fd-plus);
}

/* --- Monatsdiagramm ------------------------------------------------------------ */

.fd-diagramm {
  width: 100%;
  min-height: 120px;
}

.fd-diagramm svg {
  display: block;
  overflow: visible;
  touch-action: pan-y;
}

.fd-gitter {
  stroke: var(--fd-gitter);
  stroke-width: 1;
}

.fd-gitter.fd-achse {
  stroke: var(--fd-achse);
}

.fd-achsentext {
  fill: var(--text-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.fd-schnitt {
  stroke: var(--text);
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
  opacity: 0.55;
  pointer-events: none;
}

.fd-trefferflaeche {
  fill: transparent;
}

.fd-balken:hover .fd-trefferflaeche {
  fill: color-mix(in srgb, var(--text) 5%, transparent);
}

.fd-tooltip {
  position: fixed;
  z-index: 130;
  pointer-events: none;
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.fd-tt-kopf {
  font-weight: 600;
  margin-bottom: 6px;
}

.fd-tt-zeile {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  padding: 1px 0;
}

.fd-tt-zeile b {
  margin-left: auto;
  padding-left: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.fd-tt-summe {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 5px;
}

/* --- Tabellen ---------------------------------------------------------------- */

.fd-tabellenrahmen {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.fd-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.fd-tabelle th,
.fd-tabelle td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.fd-tabelle thead th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  background: color-mix(in srgb, var(--bg-3) 50%, var(--bg-2));
  white-space: nowrap;
}

.fd-tabelle tbody tr:last-child td,
.fd-tabelle tbody tr:last-child th {
  border-bottom: 0;
}

.fd-tabelle tfoot th,
.fd-tabelle tfoot td {
  border-top: 2px solid var(--border);
  border-bottom: 0;
  font-weight: 700;
}

.fd-zahl {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fd-nowrap {
  white-space: nowrap;
}

.fd-text {
  min-width: 220px;
  max-width: 520px;
}

.fd-text .muted {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fd-still {
  opacity: 0.55;
}

/* Monat x Kategorie: die Zelle färbt sich nach Höhe (Heatmap), die Zahl bleibt lesbar */
.fd-monatstabelle td.fd-zahl {
  background: color-mix(in srgb, var(--fd-heat-farbe) var(--fd-heat, 0%), transparent);
  min-width: 64px;
}

.fd-monatstabelle th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-2);
  min-width: 190px;
}

.fd-monatstabelle thead th:first-child {
  background: color-mix(in srgb, var(--bg-3) 50%, var(--bg-2));
}

.fd-gruppenzeile th,
.fd-gruppenzeile td {
  font-weight: 600;
}

.fd-katzeile th {
  font-weight: 400;
  padding-left: 34px !important;
}

.fd-katzeile th a {
  color: var(--text);
}

.fd-katzeile td,
.fd-katzeile th {
  font-size: 13px;
  background-color: color-mix(in srgb, var(--bg-3) 25%, transparent);
}

.fd-katzeile th {
  background: color-mix(in srgb, var(--bg-3) 25%, var(--bg-2)) !important;
}

.fd-leer {
  color: var(--text-muted);
  opacity: 0.5;
}

.fd-summe {
  font-weight: 700;
}

.fd-fuss-aufteilung {
  font-weight: 400;
}

.fd-klick {
  cursor: pointer;
}

.fd-klick:hover {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.fd-auf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.fd-pfeil {
  display: inline-block;
  width: 12px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.fd-auf[aria-expanded="true"] .fd-pfeil {
  transform: rotate(90deg);
}

/* Abdeckung der Auszüge */
.fd-abdeckung th,
.fd-abdeckung td {
  text-align: center;
}

.fd-abdeckung th:first-child {
  text-align: left;
}

.fd-abd {
  font-size: 16px;
  line-height: 1;
}

.fd-abd--voll {
  color: var(--fd-gut);
}

.fd-abd--teil {
  color: var(--fd-warnung);
}

.fd-abd--leer {
  color: var(--fd-kritisch);
}

/* Listen (Einnahmen, Sonderposten) */
.fd-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fd-liste li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.fd-liste li:last-child {
  border-bottom: 0;
}

.fd-liste a {
  color: var(--text);
}

.fd-liste b {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- Buchungen --------------------------------------------------------------- */

.fd-filterleiste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 120px)) minmax(0, 1.4fr) minmax(0, 1.4fr) auto;
  gap: 10px;
  align-items: end;
}

.fd-filterleiste .field {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.fd-filter-haken {
  white-space: nowrap;
  font-size: 13px;
  padding-bottom: 8px;
}

.fd-legende-quelle {
  margin: 0;
  font-size: 12.5px;
}

.fd-konto {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.fd-konto--finom {
  border-color: color-mix(in srgb, var(--fd-s1) 50%, transparent);
  background: color-mix(in srgb, var(--fd-s1) 12%, transparent);
}

.fd-konto--giro {
  border-color: color-mix(in srgb, var(--fd-s2) 50%, transparent);
  background: color-mix(in srgb, var(--fd-s2) 12%, transparent);
}

.fd-konto--paypal {
  border-color: color-mix(in srgb, var(--fd-s7) 50%, transparent);
  background: color-mix(in srgb, var(--fd-s7) 12%, transparent);
}

.fd-katzelle {
  min-width: 230px;
}

.fd-katwahl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fd-katwahl select {
  min-width: 0;
  flex: 1;
  padding: 5px 8px;
  font-size: 13px;
}

.fd-quelle {
  flex: none;
  width: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.fd-regelknopf {
  margin: 4px 0 0 22px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
}

.fd-regelknopf:hover {
  text-decoration: underline;
}

/* --- Einlesen ---------------------------------------------------------------- */

.fd-ablage {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 16px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fd-ablage:hover,
.fd-ablage.is-drueber {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.fd-ablage input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fd-ablage-symbol {
  font-size: 28px;
  color: var(--accent);
}

#fd-vorschauen:not(:empty) {
  margin-top: 18px;
}

.fd-vorschau {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  gap: 12px;
  background: color-mix(in srgb, var(--bg-3) 30%, var(--bg-2));
}

.fd-vorschau--fertig {
  border-color: color-mix(in srgb, var(--fd-gut) 45%, transparent);
}

.fd-vorschau-kopf {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fd-vorschau-kopf b {
  margin-left: 8px;
}

.fd-vorschau-kopf .muted {
  margin-top: 4px;
  font-size: 13px;
}

.fd-vorschau-zahlen {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-muted);
}

.fd-vorschau-zahlen b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.fd-st {
  font-size: 13px;
  font-weight: 600;
}

.fd-st--gut {
  color: var(--fd-gut);
}

.fd-st--fehler {
  color: var(--fd-kritisch);
}

.fd-st--still {
  color: var(--text-muted);
  font-weight: 500;
}

.fd-warnliste {
  margin: 0;
  padding: 10px 14px;
  list-style: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--fd-warnung) 9%, transparent);
  font-size: 13px;
  display: grid;
  gap: 3px;
}

.fd-warntext,
.fd-warn {
  color: var(--fd-warnung);
}

.fd-aufklapp summary {
  cursor: pointer;
  font-size: 13.5px;
  color: var(--accent);
  padding: 4px 0;
}

.fd-aufklapp[open] summary {
  margin-bottom: 10px;
}

.fd-karte > .fd-aufklapp {
  margin-top: 16px;
}

/* --- Privatkredit -------------------------------------------------------------- */

.fd-fortschritt {
  height: 14px;
  border-radius: 7px;
  background: var(--fd-neutral-2);
  overflow: hidden;
}

.fd-fortschritt span {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: 7px 0 0 7px;
  background: var(--accent);
}

/* --- Kategorien und Regeln ------------------------------------------------------ */

.fd-inline {
  width: 100%;
  min-width: 0;
  padding: 5px 8px;
  font-size: 13px;
  border-radius: 7px;
}

.fd-prio {
  width: 64px;
  text-align: right;
}

.fd-muster {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  min-width: 220px;
}

.fd-regeln td:nth-child(2) {
  min-width: 260px;
}

.fd-zeilenform {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.fd-zeilenform input,
.fd-zeilenform select {
  width: auto;
  flex: 1 1 160px;
  padding: 7px 10px;
  font-size: 13px;
}

.fd-zeilenform .fd-prio {
  flex: 0 0 72px;
}

/* --- Hilfe und FAQ --------------------------------------------------------------- */

.fd-notiz {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-style: italic;
  color: var(--accent);
}

.fd-hilfe-ablauf {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.fd-hilfe-liste {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(130px, max-content) minmax(0, 1fr);
  gap: 8px 18px;
  font-size: 14px;
  line-height: 1.5;
}

.fd-hilfe-liste dt {
  font-weight: 600;
}

.fd-hilfe-liste dd {
  margin: 0;
  color: var(--text-muted);
}

.fd-hilfe-zeichen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.fd-hilfe-zeichen span {
  display: inline-block;
  width: 26px;
  font-size: 16px;
  text-align: center;
  color: var(--accent);
}

.fd-faq details {
  border-bottom: 1px solid var(--border);
}

.fd-faq details:last-child {
  border-bottom: 0;
}

.fd-faq summary {
  cursor: pointer;
  padding: 12px 4px;
  font-weight: 600;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  gap: 10px;
}

.fd-faq summary::before {
  content: "▸";
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.fd-faq details[open] summary::before {
  transform: rotate(90deg);
}

.fd-faq summary::-webkit-details-marker {
  display: none;
}

.fd-faq p {
  margin: 0 0 14px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 820px;
}

@media (max-width: 640px) {
  .fd-hilfe-liste {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .fd-hilfe-liste dd {
    margin-bottom: 8px;
  }
}

/* --- Meldungen ------------------------------------------------------------------ */

.fd-meldung {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  max-width: min(420px, calc(100% - 40px));
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  font-size: 14px;
  border-left: 4px solid var(--fd-gut);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fd-meldung--warnung {
  border-left-color: var(--fd-warnung);
}

.fd-meldung--fehler {
  border-left-color: var(--fd-kritisch);
}

.fd-meldung--weg {
  opacity: 0;
  transform: translateY(8px);
}

/* --- Schmal ------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .fd-filterleiste {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fd-filter-breit {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .fd-zwei,
  .fd-held {
    grid-template-columns: minmax(0, 1fr);
  }

  .fd-held {
    gap: 20px;
  }

  .fd-kacheln--vier {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fd .card {
    padding: 18px 16px;
  }

  .fd .page-head {
    flex-direction: column;
  }

  .fd-kacheln {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fd-kachel {
    padding: 13px 14px;
  }

  .fd-kachel-wert {
    font-size: 19px;
  }

  .fd-teil-legende li {
    grid-template-columns: 12px minmax(0, 1fr) auto 38px;
    font-size: 13px;
  }

  .fd-filterleiste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-filter-breit,
  .fd-filter-haken {
    grid-column: 1 / -1;
  }

  .fd-schalter--gross button {
    padding: 8px 16px;
  }

  .fd-monatstabelle th:first-child {
    min-width: 150px;
  }

  .field-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
