/* Ein ruhiges Lesewerkzeug, kein Dashboard-Feuerwerk.
   Bootstrap trägt Raster und Bausteine; hier steht der Charakter:
   eine Serifenschrift für Überschriften, eine gedeckte Palette und
   Karten, die sich wie Zeitungsspalten lesen. */

:root {
  --fn-tinte: #1c1b19;
  --fn-papier: #faf8f5;
  --fn-karte: #ffffff;
  --fn-linie: #e3ded6;
  --fn-akzent: #1f5d50;
  --fn-akzent-hell: #e7f0ed;
  --fn-gedaempft: #6b6660;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fn-tinte: #e8e5e0;
    --fn-papier: #16171a;
    --fn-karte: #1e2024;
    --fn-linie: #2f3238;
    --fn-akzent: #7fc9b6;
    --fn-akzent-hell: #1c2a28;
    --fn-gedaempft: #9a958e;
  }
}

body {
  background: var(--fn-papier);
  color: var(--fn-tinte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, .fn-marke, .fn-zahl {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  letter-spacing: -0.01em;
}

h1 { font-size: 1.9rem; margin-bottom: .2em; }
h2 { font-size: 1.35rem; margin-top: 1.6rem; }

.fn-nav {
  background: var(--fn-karte);
  border-bottom: 1px solid var(--fn-linie);
}
.fn-marke { font-size: 1.3rem; font-weight: 700; color: var(--fn-akzent); }
.fn-konto { font-size: .85rem; color: var(--fn-gedaempft); }
.fn-inhalt { flex: 1 0 auto; padding: 2rem 0 3rem; max-width: 60rem; }
.fn-fuss {
  border-top: 1px solid var(--fn-linie);
  padding: 1rem 0;
  color: var(--fn-gedaempft);
  font-size: .85rem;
}
.fn-fuss a { color: var(--fn-gedaempft); }

.fn-vorspann { color: var(--fn-gedaempft); font-size: 1.05rem; max-width: 42em; }

/* Modulkarte: Titel, erwartete Menge, Rubriken, ein Schalter. */
.fn-karte {
  background: var(--fn-karte);
  border: 1px solid var(--fn-linie);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: .9rem;
  transition: border-color .15s ease;
}
.fn-karte:hover { border-color: var(--fn-akzent); }
.fn-karte--abonniert { border-left: 4px solid var(--fn-akzent); }

.fn-modulname { font-size: 1.15rem; font-weight: 600; margin: 0; }
.fn-quelle { font-size: .85rem; color: var(--fn-gedaempft); word-break: break-all; }

.fn-zahl { font-size: 1.6rem; font-weight: 700; color: var(--fn-akzent); line-height: 1; }
.fn-zahl-klein { font-size: .8rem; color: var(--fn-gedaempft); display: block; }

.fn-rubrik {
  display: inline-block;
  font-size: .78rem;
  padding: .15rem .55rem;
  margin: .15rem .2rem .15rem 0;
  border: 1px solid var(--fn-linie);
  border-radius: 999px;
  color: var(--fn-gedaempft);
}
.fn-rubrik--gewaehlt {
  background: var(--fn-akzent-hell);
  border-color: var(--fn-akzent);
  color: var(--fn-akzent);
  font-weight: 600;
}

/* Kennzahlen der Verwaltung */
.fn-kennzahl {
  background: var(--fn-karte);
  border: 1px solid var(--fn-linie);
  border-radius: 10px;
  padding: 1rem;
  height: 100%;
}
.fn-kennzahl .fn-zahl { font-size: 2rem; }

/* Ein Balkendiagramm ohne JavaScript: die Breite steht im style-Attribut. */
.fn-balken { display: flex; align-items: center; gap: .6rem; margin-bottom: .25rem; }
.fn-balken-spur { flex: 1; background: var(--fn-linie); border-radius: 3px; height: 12px; }
.fn-balken-wert { background: var(--fn-akzent); height: 12px; border-radius: 3px; }
.fn-balken-tag { font-size: .75rem; color: var(--fn-gedaempft); width: 5.5rem; }
.fn-balken-zahl { font-size: .75rem; color: var(--fn-gedaempft); width: 3rem; text-align: right; }

table { color: var(--fn-tinte); }
.table > :not(caption) > * > * { background: transparent; }
.fn-tabelle th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
                 color: var(--fn-gedaempft); font-weight: 600; }

.fn-formular { background: var(--fn-karte); border: 1px solid var(--fn-linie);
               border-radius: 10px; padding: 1.5rem; max-width: 32rem; }
.fn-formular--breit { max-width: 100%; }
.fn-hinweis { font-size: .82rem; color: var(--fn-gedaempft); }

.btn-primary { background: var(--fn-akzent); border-color: var(--fn-akzent); }
.btn-primary:hover { filter: brightness(1.1); }
a { color: var(--fn-akzent); }
