/* Naturtheke Apps – gemeinsames Design (packages/design).

   Der allgemeine Teil des freigegebenen Lager-Designs (apps/lager/design/DESIGN.md, 09.10.2026), das seinerseits
   aus dem Kalkulationstool stammt: Schriften, Farben, Grundelemente und die Bausteine Schale, Seitenleiste,
   Kopfbereich, Karte, Knopf, Feld, Marke, Punkt, Hinweis, Anmeldung, Tabelle. Farb- und Klassennamen sind dieselben
   wie in Lager und Kalk, damit beide ohne Umbenennen umsteigen können.

   Diese Datei wird nur in einer Sitzung in der Wurzel des Repos geändert; Apps lesen sie. Was nur eine App braucht,
   gehört in deren eigenes Stylesheet. Schriften liegen daneben in schriften/ – nichts wird von außen geladen. */


@font-face { font-family: Henju; font-weight: 400; font-display: swap;
             src: url('schriften/Henju-Regular.ttf') format('truetype'); }
@font-face { font-family: Henju; font-weight: 600; font-display: swap;
             src: url('schriften/Henju-Bold.ttf') format('truetype'); }
@font-face { font-family: Recoleta; font-weight: 400; font-display: swap;
             src: url('schriften/Recoleta-Regular.woff2') format('woff2'); }
@font-face { font-family: Recoleta; font-weight: 500; font-display: swap;
             src: url('schriften/Recoleta-Medium.woff2') format('woff2'); }
@font-face { font-family: Barlow; font-weight: 400; font-display: swap;
             src: url('schriften/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Barlow; font-weight: 500; font-display: swap;
             src: url('schriften/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap;
             src: url('schriften/barlow-latin-600-normal.woff2') format('woff2'); }

:root {
  --wald: #272F1E;        --wald-hover: #1F2618;   --logo: #37432B;
  --salbei: #8BA065;      --salbei-dunkel: #3F4F2A;
  --salbei-hell: #C1D1A4; --salbei-ton: #E6EDDB;
  --gold: #B29645;        --gold-ton: #F3EEE1;     --gold-text: #6A5720;
  --rot: #9E3A24;         --rot-ton: #F6E1DB;
  --bg: #F7F6F1;          --flaeche: #FFFFFF;
  --linie: #E5E5E5;       --linie-zart: #EFEEE8;   --feldrahmen: #C9C9C4;
  --text: #222222;        --text2: #5F5E57;        --text3: #6B6961;
  --nav-text: #B4BCA8;    --nav-titel: #A9B29B;    --nav-hell: #F4F1E8;   --nav-linie: #3A4430;
  --sans: Henju, 'Helvetica Neue', Arial, sans-serif;
  --serif: Recoleta, Georgia, serif;
  --zahl: Barlow, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
       font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--wald); }
a:hover { color: var(--wald-hover); }
.zahl { font-family: var(--zahl); font-variant-numeric: tabular-nums; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--salbei); outline-offset: 2px; }

/* ---------- Schale ---------- */
.schale { display: flex; min-height: 100vh; background: var(--bg); }
.inhalt { flex: 1 1 560px; min-width: 0; padding: 28px 36px 40px;
          display: flex; flex-direction: column; gap: 20px; }
.inhalt > * { margin-top: 0; margin-bottom: 0; }
/* Abstände kommen aus den Lücken (gap) der Karten und Spalten – Absätze bringen keine eigenen Ränder mit,
   sonst entstehen doppelte Abstände. */
.inhalt p { margin: 0; }

/* ---------- Seitenleiste ---------- */
.seitenleiste { width: 268px; flex: none; background: var(--wald); display: flex; flex-direction: column;
                gap: 20px; padding: 26px 16px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.seitenleiste-kopf { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; text-decoration: none; }
.seitenleiste-kopf img { width: 150px; height: auto; display: block; }
.seitenleiste .untertitel { font-size: 12px; color: var(--nav-text); letter-spacing: .02em; }
.navgruppe { display: flex; flex-direction: column; gap: 2px; }
.navgruppe > .titel { font-size: 11px; color: var(--nav-titel); padding: 0 12px 6px; letter-spacing: .06em; }
.navpunkt { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 7px;
            font-size: 14px; color: var(--nav-text); text-decoration: none; }
.navpunkt svg { flex: none; }
.navpunkt:hover { background: rgba(255, 255, 255, .06); color: #E9EDE2; }
.navpunkt.aktiv { background: var(--logo); color: #FFFFFF; }
.navpunkt .fuellt { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zaehler { font-family: var(--zahl); font-size: 12px; background: var(--salbei-hell); color: var(--wald);
           border-radius: 10px; padding: 0 8px; line-height: 20px; }
.zaehler.dringend { background: var(--rot); color: #fff; }
.benutzer { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--nav-linie);
            margin-top: auto; }
.benutzer .kreis { width: 34px; height: 34px; border-radius: 50%; background: var(--salbei-hell); color: var(--wald);
                   display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
                   flex: none; }
.benutzer-text { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.benutzer-text .name { color: var(--nav-hell); font-size: 13px; }
.benutzer-text .firma { color: var(--nav-text); font-size: 12px; }
.benutzer form.abmelden { margin: 0; }
.benutzer form.abmelden button { height: auto; padding: 4px 0; background: none; border: 0; color: var(--nav-text);
                                 font-size: 12px; font-weight: 400; text-decoration: underline; }
.benutzer form.abmelden button:hover { background: none; color: var(--nav-hell); }

/* ---------- Kopfbereich ---------- */
.kopfbereich { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.kopfbereich-text { display: flex; flex-direction: column; gap: 6px; }
.kopfbereich-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.brotkrume { font-size: 12px; color: var(--text3); }
.brotkrume a { color: var(--text3); }
.brotkrume span { padding: 0 4px; }
.seitentitel { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; color: var(--wald);
               margin: 0; }
.untertext { font-size: 13px; color: var(--text2); }
h2 { font-size: 16px; font-weight: 600; color: var(--wald); line-height: 1.3; }
h3 { font-size: 14px; font-weight: 600; color: var(--wald); }

/* ---------- Karte ---------- */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 18px 20px; }
.karte > :first-child { margin-top: 0; }
.karte > :last-child { margin-bottom: 0; }
.karte.schmal { max-width: 560px; }
.kartentitel { font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 12px; }
.karte.spalten > .kartentitel, .karte.spalten > .kartenkopf-text .kartentitel { margin: 0; }

/* ---------- Knöpfe ---------- */
button, .knopf { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px;
                 padding: 0 18px; border-radius: 6px; font-family: inherit; font-size: 14px; font-weight: 600;
                 white-space: nowrap; cursor: pointer; text-decoration: none;
                 background: var(--wald); color: #FFFFFF; border: 1px solid var(--wald); }
button:hover, .knopf:hover { background: var(--wald-hover); color: #FFFFFF; }
button.zweit, .knopf.zweit { background: var(--flaeche); color: var(--salbei-dunkel); border-color: var(--salbei);
                             padding: 0 16px; }
button.zweit:hover, .knopf.zweit:hover { background: var(--flaeche); color: var(--salbei-dunkel);
                                         border-color: var(--salbei-dunkel); }
button.leise, .knopf.leise { background: transparent; color: var(--text2); border-color: var(--linie);
                             font-weight: 400; }
button.leise:hover, .knopf.leise:hover { background: transparent; color: var(--text); border-color: var(--feldrahmen); }
button.link { height: auto; padding: 0; background: none; border: 0; color: var(--wald); font-weight: 400;
              text-decoration: underline; }
button.link:hover { background: none; color: var(--wald-hover); }
button:disabled, .knopf:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Felder ---------- */
/* Beschriftung 12 px über dem Feld, Abstand 5 px (DESIGN.md, Bausteine) – alle Felder stehen als <label for> + Feld */
label { display: block; margin: 0 0 5px; font-size: 12px; color: var(--text2); }
/* :where() hält die Grundregel schwach – sonst schlägt sie .zahl/.zeilenraster (Zahlenfelder standen in der Textschrift
   und „112“ saß höher als „Stück“, Rückmeldung Robert 09.10.) */
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden])), select, textarea {
  display: block; width: 100%; height: 44px; margin: 0; padding: 0 12px; font: inherit; font-size: 14px;
  color: var(--text); background: var(--flaeche); border: 1px solid var(--feldrahmen); border-radius: 6px; }
textarea { height: auto; min-height: 88px; padding: 10px 12px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--salbei);
                                                                   outline-offset: -1px; }
input.zahl { font-family: var(--zahl); text-align: right; }
input[type=file] { display: block; margin: 0; font: inherit; font-size: 13px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--salbei-dunkel); }
label.haken { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 13px;
              color: var(--text); cursor: pointer; }
fieldset[disabled] input, fieldset[disabled] select { background: var(--bg); color: var(--text2); }

/* ---------- Marken, Punkte, Hinweise ---------- */
.marke { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 18px; padding: 2px 9px;
         border-radius: 5px; white-space: nowrap; background: var(--linie-zart); color: var(--text2); }
.marke.gruen { background: var(--salbei-ton); color: var(--salbei-dunkel); }
.marke.gold { background: var(--gold-ton); color: var(--gold-text); }
.marke.rot { background: var(--rot-ton); color: var(--rot); }
.marke.grau { background: var(--linie-zart); color: var(--text2); }
.punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--salbei); flex: none; }
.punkt.gold { background: var(--gold); }
.punkt.rot { background: var(--rot); }
.hinweis { font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 8px; background: var(--bg);
           color: var(--text2); }
.inhalt > .hinweis { background: var(--flaeche); border: 1px solid var(--linie); }
.hinweis.gruen { background: var(--salbei-ton); color: var(--salbei-dunkel); border: 0; }
.hinweis.gold { background: var(--gold-ton); color: var(--gold-text); border: 0; }
.hinweis.rot { background: var(--rot-ton); color: var(--rot); border: 0; }
.hinweis ul { margin: 4px 0; padding-left: 18px; }

/* ---------- Anmeldung ---------- */
.anmeldung { display: flex; flex-wrap: wrap; min-height: 100vh; background: var(--bg); }
.anmeldung-panel { flex: 0 0 380px; background: var(--wald); padding: 56px 48px; display: flex; flex-direction: column;
                   justify-content: space-between; gap: 40px; }
.anmeldung-panel img { width: 190px; height: auto; display: block; }
.anmeldung-titel { display: flex; flex-direction: column; gap: 14px; }
.anmeldung-titel .schriftzug { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.1;
                               color: var(--nav-hell); }
.anmeldung-titel .beschreibung { font-size: 15px; color: var(--nav-text); max-width: 340px; }
.anmeldung-panel .fusszeile { font-size: 12px; color: var(--nav-titel); }
.anmeldung-inhalt { flex: 999 1 640px; min-width: 0; padding: 56px 48px; display: flex; align-items: center;
                    justify-content: center; }
.anmeldekarte { width: 100%; max-width: 420px; background: var(--flaeche); border: 1px solid var(--linie);
                border-radius: 10px; padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.anmeldekarte > * { margin: 0; }
.anmeldekarte-kopf { display: flex; flex-direction: column; gap: 4px; }
.anmeldekarte .schritt { font-size: 12px; letter-spacing: .06em; font-weight: 600; color: var(--salbei-dunkel); }
.anmeldekarte h1 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15;
                   color: var(--wald); margin: 0; }
.anmeldetext { font-size: 13px; color: var(--text2); }
.anmeldeformular { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.anmeldeformular input:not([type=checkbox]) { height: 46px; font-size: 15px; }
.anmeldeformular input.code { height: 56px; font-family: var(--zahl); font-size: 28px; letter-spacing: .3em;
                              text-align: center; }
.anmeldeformular .knopf.haupt { height: 46px; width: 100%; font-size: 15px; }
.anmeldelinks { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.anmeldelinks form { margin: 0; }
.anmeldelink, button.anmeldelink { display: flex; align-items: center; min-height: 44px; height: auto; padding: 0;
                                   font-size: 13px; font-weight: 400; color: var(--wald); background: none;
                                   border: 0; text-decoration: underline; }
button.anmeldelink:hover { background: none; color: var(--wald-hover); }

/* ---------- Hilfen ---------- */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
                white-space: nowrap; margin: 0; padding: 0; border: 0; }
.rechts { text-align: right; }
.fett { font-weight: 600; }
.nebentext { font-size: 12px; color: var(--text3); }
.nebentext2 { color: var(--text2); }
.rottext { color: var(--rot); }
.rollbar { overflow-x: auto; }

/* ---------- Tabelle in einer Karte: Kopfzeile text3, Zeilen 48 px, Trenner linie-zart ---------- */
table.eingebettet { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.eingebettet th, table.eingebettet td { text-align: left; padding: 10px 12px; }
table.eingebettet th { padding-top: 0; font-size: 12px; font-weight: 400; color: var(--text3);
                       border-bottom: 1px solid var(--linie); vertical-align: bottom; }
table.eingebettet td { height: 48px; border-bottom: 1px solid var(--linie-zart); }
table.eingebettet tbody tr:last-child > td { border-bottom: 0; }
table.eingebettet th.rechts, table.eingebettet td.rechts { text-align: right; }

/* ---------- Gruppentitel in Listen: 12 px, Großbuchstaben, gesperrt, salbei-dunkel ---------- */
.gruppentitel { display: flex; align-items: baseline; gap: 8px; font-size: 12px; letter-spacing: .06em;
                color: var(--text2); }
.gruppentitel .name { font-weight: 600; color: var(--salbei-dunkel); text-transform: uppercase; }
