/* ===================================================================
   Stil "advisordesk" — über app.css gelegt, nur für die Instanz, die
   ihn unter gestaltung.stil nennt (portal.stil()).

   Vorbild ist advisordesk.de, ebenfalls aus dem Haus: Inter, Petrol
   #08798B als Akzent, Marineblau #102E45 als Schrift, ein kühles
   Hellgrau als Grund, weiße Karten mit 12 px Rundung und weichem
   Schatten, Knöpfe als Pillen. Aufgenommen am 27. Oktober 2026.

   Was bleibt, wie es war, und warum:
   - Die Bedeutung der Farben. Bernstein heißt "zu prüfen", Rot
     "Storno", Grün "erledigt/freigegeben". Petrol ist jetzt der Akzent
     und kann deshalb nicht mehr "freigegeben" heißen — dafür steht ein
     Grün, das Grün aus den Notizkarten von Advisordesk.
   - Beträge in Tabellenziffern. Inter hat sie (tnum); die Cent-Stellen
     stehen weiter untereinander, nur ohne Schreibmaschinenschrift.
   - Die Farben der Bilanz- und Personalgrafik (geprüfte Palette), die
     Ampel des Tachos und die rote Trennlinie unter Mitarbeiter.
   - Das Wort auf der Anmeldeseite: Microsoft YaHei, Versalien, fett
     (Wunsch vom 13. Oktober 2026). Nur die Farbe folgt dem Stil.
   =================================================================== */

/* Inter liegt unter app/static/fonts/ (siehe Kopf von app.css):
   variable Schrift, 400 bis 800, latin und latin-ext. SIL Open Font
   License. */
/* Inter, latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --tinte:         #102E45;
  --akzent:        #08798B;
  --akzent-dunkel: #06606F;
  --akzent-hell:   #E3F2F4;
  --tinte-weich:   #41566A;
  --papier:        #F4F7FA;
  --flaeche:       #FFFFFF;
  --linie:         #E9EEF4;
  --linie-satt:    #D3DCE6;
  --gedaempft:     #5E7184;
  --bernstein:     #B4530B;
  --bernstein-w:   #FFF1E3;
  --petrol:        #3F7A1F;
  --petrol-w:      #EEF6E6;
  --rot:           #B3261E;
  --rot-w:         #FDECEA;
  --nacht:         #075E6B;   /* die dunkle Karte ("Guten Morgen") */

  --serif: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Nachgemessen an app.advisordesk.de am 26.11.2026: Karte 18 px,
     Eingabefeld 12 px, Schatten in drei Lagen, Grundschrift 15 px. */
  --rund:      18px;
  --rund-gross: 18px;
  --rund-feld: 12px;
  --schatten:  0 1px 2px rgba(16, 46, 69, .04), 0 6px 16px -10px rgba(16, 46, 69, .16),
               0 28px 52px -34px rgba(16, 46, 69, .28);
  --schatten-hoch: 0 2px 4px rgba(16, 46, 69, .06), 0 10px 22px -10px rgba(16, 46, 69, .22),
                   0 34px 60px -34px rgba(16, 46, 69, .34);
  --tuerkis-hauch: #E0F5F5;
}

body { font: 400 15px/1.55 var(--sans); background: var(--papier);
       font-feature-settings: "cv11", "ss01"; }
/* Ziffern gleich breit, wo Zahlen untereinander stehen. */
.zahl-z, td.num, th.num, .mono, tfoot td, .achse .zahl, .tacho .wert,
.ziel-kopf .stand, .jahrmarke, .zieltacho-zahlen .gross {
  font-feature-settings: "tnum", "cv11"; }

/* --- Kopf: weiß, Logo und Name links, Zugang rechts --------------- */
.kopf { background: var(--flaeche); color: var(--tinte);
        border-bottom: 1px solid var(--linie); padding: .7rem 1.6rem; }
.kopf .marke, .kopf a.marke { border: 0; padding: 0; background: none; }
.kopf .logo, .marke .logo { height: 40px; background: none; padding: 0; }
.kopf-mitte .traeger { font: 700 17px/1.2 var(--sans); color: var(--tinte);
                       letter-spacing: -.01em; }
.kopf-mitte .untertitel { font: 600 11.5px/1.2 var(--sans); letter-spacing: .01em;
                          text-transform: none; color: var(--akzent); }
.kopf-mitte:hover .traeger { color: var(--akzent-dunkel); }
.kopf-rechts { gap: .75rem; }
.kopf-rechts a { color: var(--tinte); font: 600 13px var(--sans);
  padding: .4rem .9rem; border: 1px solid var(--linie); border-radius: 999px;
  background: var(--flaeche); box-shadow: 0 1px 2px rgba(16, 46, 69, .06); }
.kopf-rechts a:hover, .kopf-rechts a:focus-visible { color: var(--akzent-dunkel);
  background: var(--papier); text-decoration: none; }
.status { font-size: 12.5px; }
.status.an { color: var(--gedaempft); }
.status.an::before { background: #3FB37F; }
.status.an b { color: var(--tinte); }
.status.aus { color: var(--gedaempft); }
.status.aus::before { background: var(--linie-satt); }
.kopf-rechts .status.monat { opacity: 1; padding: .25rem .65rem;
  border-radius: 999px; background: var(--papier); }
.kopf-rechts .status.monat::before { display: none; }
.kuerzelkreis { width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; background: #E6F2DA;
  color: var(--petrol); font: 700 12px/1 var(--sans); letter-spacing: .02em; }

/* --- Leisten: Pillen statt Unterstreichung ------------------------ */
/* Hauptleiste und Kopf lesen sich als ein Block: beide weiß, die Linie
   steht erst unter der Leiste. Ohne Leiste (Anmeldung) bleibt sie am Kopf. */
.kopf:has(+ .hauptleiste) { border-bottom-color: transparent; }
.hauptleiste { background: var(--flaeche); border-bottom: 1px solid var(--linie);
  padding: .1rem 1.4rem .65rem; gap: .3rem; }
.hauptleiste a { padding: .5rem 1rem; border: 0; border-radius: 999px;
  font: 600 13.5px/1 var(--sans); letter-spacing: 0; text-transform: none;
  color: var(--tinte-weich); }
.hauptleiste a:hover { color: var(--tinte); background: var(--papier); }
.hauptleiste a.aktiv { color: #fff; background: var(--akzent);
  box-shadow: 0 1px 2px rgba(8, 121, 139, .3); }

.unterleiste { background: transparent; border-bottom: 0;
  padding: 1rem 1.4rem 0; gap: .3rem; max-width: 1180px; margin: 0 auto; }
.unterleiste a { padding: .42rem .9rem; border: 0; border-radius: 999px;
  font: 600 13px/1 var(--sans); color: var(--tinte-weich); }
.unterleiste a:hover { color: var(--tinte); background: var(--flaeche); }
.unterleiste a.aktiv { color: var(--akzent-dunkel); background: var(--akzent-hell);
  font-weight: 700; }

/* Jahres- und Monatsreiter: dieselbe Form wie die Unterleiste. */
.jahresreiter { border-bottom: 0; gap: .3rem; margin-bottom: 1.1rem;
  align-items: center; }
.jahresreiter a { padding: .38rem .85rem; border: 0; border-radius: 999px;
  color: var(--tinte-weich); font-weight: 600; }
.jahresreiter a:hover { background: var(--flaeche); color: var(--tinte); }
.jahresreiter a.aktiv { background: var(--tinte); color: #fff; }
.jahresreiter form.vergleich, .jahresreiter form.monatswahl { padding: 0;
  border: 0; }
.jahresreiter form.vergleich.aktiv { border: 0; }
.jahresreiter form.vergleich.aktiv .wort { color: var(--akzent-dunkel); }
.jahresreiter form.monatswahl label { text-transform: none; letter-spacing: 0;
  font-weight: 600; }
.jahresreiter form.monatswahl a.knopf { color: var(--tinte); }

.umschalter { border: 1px solid var(--linie); border-radius: 999px;
  overflow: hidden; background: var(--flaeche); padding: 3px; gap: 2px; }
.umschalter a { border-radius: 999px; background: transparent; }
.umschalter a + a { border-left: 0; }
.umschalter a.aktiv { background: var(--akzent); color: #fff; }

/* --- Inhalt ------------------------------------------------------- */
main { padding-top: 1.6rem; }
h1 { font: 800 26px/1.2 var(--sans); letter-spacing: -.02em; color: var(--tinte); }
h2 { font: 700 17px/1.3 var(--sans); text-transform: none; letter-spacing: -.01em;
     color: var(--tinte); border-bottom: 0; padding-bottom: 0;
     margin: 2.1rem 0 .8rem; }
h3 { font-family: var(--sans); font-weight: 700; color: var(--tinte); }
.personenkopf .personenname { font: 800 22px/1.2 var(--sans); letter-spacing: -.015em; }
a { color: var(--akzent-dunkel); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible,
textarea:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* --- Karten ------------------------------------------------------- */
.rahmen, .verlauf-rahmen, .kaskade, .ziel, .ring-block, .zieltacho,
.blaettern, .assistent-rahmen, .anmeldung .karte {
  border: 1px solid var(--linie); border-radius: var(--rund);
  background: var(--flaeche); box-shadow: var(--schatten); }
.rahmen { overflow: auto; }
.blaettern { padding: .55rem .9rem; }

/* Kennzahlen: aus dem Raster mit Haarlinien werden einzelne Karten. */
.achsen, .tacho-reihe, .kacheln, .hilfe-reihe, .videoliste {
  gap: 1rem; background: transparent; border: 0; }
.achse, .tacho, .kachel, .hilfe-feld, .videokarte {
  border: 1px solid var(--linie); border-radius: var(--rund);
  background: var(--flaeche); box-shadow: var(--schatten); }
.achse { padding: 1.05rem 1.2rem 1.1rem; }
.achse .label, .tacho .titel, .zonentacho .tacho-titel {
  font: 600 12.5px/1.3 var(--sans); text-transform: none; letter-spacing: 0;
  color: var(--tinte-weich); }
.achse .zahl { font: 800 27px/1.1 var(--sans); letter-spacing: -.02em; }
/* Die allgemeine Regel fuer .fuss (Fusszeile der Seite) traf auch die
   Fussnote der Karten: Linie darueber, 1,75rem eingerueckt. */
.achse .fuss, .tacho .fuss { display: block; padding: 0; border: 0;
  margin-top: .45rem; font-size: 12.5px; text-align: left; }
/* Die hervorgehobene Zahl ist die dunkle Karte von Advisordesk. */
.achse.hervor { background: var(--nacht); border-color: var(--nacht); color: #fff;
  box-shadow: var(--schatten-hoch); }
.achse.hervor .label { color: rgba(255, 255, 255, .78); text-transform: uppercase;
  letter-spacing: .08em; font-size: 11px; }
.achse.hervor .fuss { color: rgba(255, 255, 255, .72); }
.achse.hervor .zahl.minus { color: #FFB4A9; }
.tacho .wert { font: 800 26px/1 var(--sans); letter-spacing: -.02em; }

.kachel:hover { background: var(--flaeche); box-shadow: var(--schatten-hoch);
  border-color: var(--linie-satt); }
.kachel-symbol { border-radius: 10px; font-family: var(--sans); }
.kachel-fuss { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Startseite */
.portaltitel { font: 800 clamp(2rem, 6vw, 3.2rem)/1.1 var(--sans);
  letter-spacing: -.03em; color: var(--tinte); }
.bereich { border: 1px solid var(--linie); border-top: 1px solid var(--linie);
  border-radius: var(--rund-gross); box-shadow: var(--schatten);
  transition: box-shadow .15s, transform .15s, border-color .15s; }
.bereich:hover { background: var(--flaeche); border-color: var(--linie-satt);
  border-top-color: var(--linie-satt); box-shadow: var(--schatten-hoch);
  transform: translateY(-1px); }
.bereich-name { font: 700 clamp(1.1rem, 3vw, 1.35rem)/1.25 var(--sans);
  letter-spacing: -.01em; }
.bereich:hover .bereich-name { color: var(--akzent-dunkel); }

/* --- Tabellen ----------------------------------------------------- */
table { font-size: 13.5px; }
thead th { font: 600 11px var(--sans); letter-spacing: .06em;
  color: var(--gedaempft); background: #F8FAFC;
  border-bottom: 1px solid var(--linie); padding: .65rem .8rem; }
tbody td { padding: .55rem .8rem; border-bottom: 1px solid #EEF2F6; }
tbody tr:hover { background: #F7FAFC; }
/* Inter ist breiter als die Schreibmaschinenschrift: ein Datum brach
   in der Kostenzuordnung nach "2026-01-" um. */
td.mono { white-space: nowrap; }
tfoot td { border-top: 1px solid var(--linie-satt); background: #F8FAFC;
  font-family: var(--sans); font-weight: 700; padding: .65rem .8rem; }
.personen-tabelle tbody.ausgeschieden tr.zwischen td { border-top: 2px solid var(--linie-satt); }
.unterzeile td { background: #FAFBFD; }
.kostentabelle tr.offen td { background: #FFF8F0; }
.zuordnen tr.vorgeschlagen td { background: #FFFBF4; }

/* --- Marken: Pillen ohne Rahmen ----------------------------------- */
.marke { border: 0; border-radius: 999px; padding: .16rem .6rem;
  font: 600 11.5px var(--sans); letter-spacing: 0; }
.m-pool    { color: var(--akzent-dunkel); background: var(--akzent-hell); }
.m-eigen   { color: var(--tinte-weich); background: #EEF2F6; }
.m-pruefen { color: var(--bernstein); background: var(--bernstein-w); }
.m-frei    { color: var(--petrol); background: var(--petrol-w); }
.m-storno  { color: var(--rot); background: var(--rot-w); }
.marke-text.vorlaeufig, .marke-text.familie { border-radius: 999px;
  padding: .12rem .55rem; }
.frage-quellen .quelle { border-radius: 999px; padding: .12rem .6rem;
  background: var(--papier); border-color: var(--linie); }

/* --- Grafiken: Petrol statt Marine, mit runden Kanten ------------- */
.balken i { background: var(--akzent); border-radius: 3px 3px 0 0; opacity: .85; }
.balken:hover i { background: var(--akzent-dunkel); opacity: 1; }
.balken.aktiv i { background: var(--bernstein); opacity: 1; }
.balken.neg i { background: var(--rot); }
.kaskade-spur { background: #EEF2F6; border-radius: 6px; overflow: hidden; }
.k-pool i { background: var(--akzent); }
.ziel-schiene { background: #EEF2F6; border: 0; border-radius: 999px;
  overflow: visible; }
.ziel-fuell { border-radius: 999px; }
.tacho-schiene { background: #EEF2F6; border-radius: 999px; }
.tacho-fuell { border-radius: 999px; }
.balkenzelle i { background: var(--akzent); }
.kostentabelle .balken { background: var(--akzent); border-radius: 999px; }

/* --- Knöpfe: Pillen ----------------------------------------------- */
.knopf { font: 600 13.5px/1.2 var(--sans); padding: .55rem 1.1rem;
  border-radius: 999px; background: var(--akzent); border: 1px solid var(--akzent);
  color: #fff; box-shadow: 0 1px 2px rgba(8, 121, 139, .28);
  transition: background .12s, box-shadow .12s; }
.knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.knopf.leise, .knopf.still { background: var(--flaeche); color: var(--tinte);
  border: 1px solid var(--linie); box-shadow: 0 1px 2px rgba(16, 46, 69, .07); }
.knopf.leise:hover, .knopf.still:hover { background: var(--papier);
  color: var(--akzent-dunkel); border-color: var(--linie-satt); }
.knopf.klein { font-size: 12.5px; padding: .3rem .8rem; }
.frage-formular .diktat-knopf.nimmt-auf { background: var(--rot);
  border-color: var(--rot); color: #fff; }
a.knopf { text-decoration: none; }

/* --- Eingabefelder ------------------------------------------------ */
select, input[type=text], input[type=password], input[type=date],
input[type=number], input[type=email], input[type=search], input[type=file],
textarea, .stammdaten-form label input {
  font-family: var(--sans); border: 1px solid #DDE5EE; border-radius: var(--rund-feld);
  background: var(--flaeche); color: var(--tinte); }
select, input[type=text], input[type=password], input[type=date],
input[type=number], input[type=email], input[type=search] {
  padding: .5rem .85rem; }
.zuordnen-form select, .zuordnen-form input[type=text],
.zuordnen-form input[type=date], .zuordnen-form input[type=number] {
  border-radius: 8px; border-color: #D9E1EA; padding: .28rem .5rem; }
.frage-formular textarea { border-radius: var(--rund); padding: .75rem .9rem;
  border-color: #D9E1EA; box-shadow: var(--schatten); }
select:focus, input:focus, textarea:focus { border-color: var(--akzent);
  box-shadow: 0 0 0 3px rgba(8, 121, 139, .14); outline: none; }
.anmeldung label, .stammdaten-form label { text-transform: none; letter-spacing: 0;
  font-weight: 600; color: var(--tinte-weich); font-size: 12.5px; }

/* --- Hinweise: weiche Karten -------------------------------------- */
.hinweis { background: #FFF7EE; border: 1px solid #F3D9BB; border-radius: var(--rund);
  padding: .8rem 1rem; color: var(--tinte); }
.hinweis.warnung { background: var(--rot-w); border-color: #F2C4BF; }
.hinweis.erledigt { background: #F1F8EA; border-color: #CFE5B8; }
.fehler { border-radius: var(--rund); border-color: #F2C4BF; }
.rechtstext .offen { border-radius: 4px; }

/* --- Anmeldung ---------------------------------------------------- */
.seite-anmeldung .anmeldung .karte { border-top: 1px solid var(--linie);
  border-radius: var(--rund-gross); box-shadow: var(--schatten-hoch);
  padding: 2rem 1.5rem; }
/* Der Grund der Anmeldung: ein Hauch Türkis oben rechts, wie bei
   advisordesk. Nur hier — im Arbeitsbereich bleibt der Grund ruhig. */
body.seite-anmeldung { background:
  radial-gradient(1100px 560px at 100% 0%, var(--tuerkis-hauch) 0%, rgba(224, 245, 245, 0) 62%),
  var(--papier); background-attachment: fixed; }
.anmeldung h1, .anmeldung .karte h2 { font-family: var(--sans); font-weight: 700; }
.anmeldung-titel h1 { color: var(--tinte); }
.anmeldung .knopf { padding: .7rem; }

/* --- Fußzeile ----------------------------------------------------- */
footer.fuss { border-top: 1px solid var(--linie); background: var(--flaeche); }
footer.fuss a:hover { color: var(--akzent-dunkel); }

@media (max-width: 760px) {
  .kopf { padding: .7rem 1rem; }
  .hauptleiste { padding: .1rem .8rem .55rem; }
  .hauptleiste a { padding: .45rem .75rem; font-size: 12.5px; }
  .unterleiste { padding: .8rem .8rem 0; }
  .achse .zahl { font-size: 23px; }
}

/* --- Bereichsleiste: Marine, darunter die weiße Leiste des Bereichs --- */
.bereichsleiste { background: var(--tinte); padding: .45rem 1.4rem; gap: .3rem; }
.bereichsleiste a { border: 0; border-radius: 999px; padding: .45rem .95rem;
  font: 600 13px/1 var(--sans); color: rgba(255, 255, 255, .74); }
.bereichsleiste a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.bereichsleiste a.aktiv { color: var(--tinte); background: #fff; }
.vermoegenseite .vermoegen-tabelle tr.zwischen td { background: #F8FAFC; }
.vermoegenseite .firmenkarte, .vermoegenseite .rahmen.leer { border-radius: var(--rund); }
.vermoegenseite a.kachel-auf { transition: border-color .12s, box-shadow .12s; }
.vermoegenseite a.kachel-auf:hover { background: var(--flaeche); border-color: var(--akzent);
  box-shadow: var(--schatten-hoch); }
.vermoegenseite a.kachel-auf.hervor:hover { background: var(--nacht); filter: none; }
.vermoegenseite a.kachel-auf.aktiv { border-color: var(--akzent);
  box-shadow: 0 0 0 2px var(--akzent), var(--schatten-hoch); }
.vermoegenseite a.kachel-auf.hervor .auf { color: rgba(255, 255, 255, .8); }
@media (max-width: 760px) {
  .bereichsleiste { padding: .4rem .8rem; }
  .bereichsleiste a { padding: .4rem .7rem; font-size: 12px; }
}
