/* Offizina Browser-App. Werte aus dem Design „2c Login" (import_store/designs, nur lokal), Schrift Cabin selbst gehostet. */
:root {
  --tanne: #2F4A3B;
  --tanne-dunkel: #2F4A3B;
  --salbei: #7A9A80;
  --salbei-hell: #A9C4AE;
  --flaeche: #F4F2EC;
  --flaeche-tief: #E9E5DE;
  --linie: #CBD6CB;
  --linie-neutral: #E3DFD6;
  --text: #2B2A27;
  --text-leise: #5C5850;
  --text-still: #7A756C;
  --warn: #9A6B1F;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--flaeche);
  color: var(--text);
  font-family: 'Cabin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--tanne); }
a:hover { color: var(--tanne-dunkel); }

/* Kopfleiste */
.kopf {
  height: 64px;
  background: var(--tanne);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  flex-shrink: 0;
}
.wortmarke { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: #fff; text-decoration: none; line-height: 1; }
.wortmarke span { color: var(--salbei-hell); }
.kopf-rechts { display: flex; align-items: center; gap: 24px; font-size: 16px; }
.kopf-standort, .kopf-rolle { opacity: .85; }
.kopf-kuerzel {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--tanne);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.abmelden { margin: 0; }
.abmelden button {
  font: inherit; font-size: 15px; color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,.45); border-radius: 8px; padding: 6px 12px; cursor: pointer;
}
.abmelden button:hover { background: rgba(255,255,255,.1); }

.inhalt { flex: 1; display: flex; flex-direction: column; }

/* Anmeldung */
.anmelde-flaeche { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.anmelde-karte { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 28px; margin: 0; }
.titel { display: flex; flex-direction: column; gap: 6px; }
.titel h1 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.15; }
.titel p { margin: 0; font-size: 16px; color: var(--text-leise); }
.felder { display: flex; flex-direction: column; gap: 18px; }
.feld { display: flex; flex-direction: column; gap: 8px; }
.feld-kopf { display: flex; justify-content: space-between; align-items: baseline; }
label { font-size: 15px; font-weight: 600; }
.leise { font-size: 14px; color: var(--tanne); text-decoration: underline; text-underline-offset: 3px; }
input[type="text"], input[type="password"] {
  font: inherit; font-size: 17px; color: var(--text);
  height: 52px; width: 100%;
  border: 1px solid var(--linie); border-radius: var(--radius); background: #fff;
  padding: 0 16px; outline: none;
}
input[type="text"]:focus, input[type="password"]:focus { border: 1.5px solid var(--tanne); padding: 0 15.5px; }
.passwort { position: relative; }
.passwort input { padding-right: 52px; letter-spacing: .04em; }
.auge {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-still);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px;
}
.auge:hover { color: var(--tanne); }
.auge:focus-visible, .primaer:focus-visible, .abmelden button:focus-visible { outline: 2px solid var(--salbei); outline-offset: 2px; }
.aktionen { display: flex; flex-direction: column; gap: 16px; }
.primaer {
  font: inherit; font-size: 17px; font-weight: 600; color: #fff;
  height: 52px; width: 100%; background: var(--tanne); border: 0; border-radius: var(--radius); cursor: pointer;
}
.primaer:hover { background: #29412F; }
.haken { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; color: var(--text-leise); cursor: pointer; }
.haken input { position: absolute; opacity: 0; width: 0; height: 0; }
.haken .kasten { width: 20px; height: 20px; border: 1.5px solid var(--linie); border-radius: 5px; background: #fff; flex-shrink: 0; position: relative; }
.haken input:checked + .kasten { background: var(--tanne); border-color: var(--tanne); }
.haken input:checked + .kasten::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.haken input:focus-visible + .kasten { outline: 2px solid var(--salbei); outline-offset: 2px; }
.hinweis { margin: 0; font-size: 14px; color: var(--text-still); text-wrap: pretty; }
.fehler {
  border: 1px solid #D9C39A; background: #F6EDD9; color: var(--warn);
  border-radius: var(--radius); padding: 12px 16px; font-size: 15px;
}

/* Strom nach Design „2c Heute": Inhalt 1160 px, Kacheln 5 Spalten, Zeilen 220 | 1fr | 130 | 34 | 34 */
.strom { width: 100%; max-width: 1280px; margin: 0 auto; padding: 36px 60px 56px; display: flex; flex-direction: column; gap: 32px; }
.kacheln { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kachel {
  background: #fff; color: var(--text); border: 1px solid var(--linie-neutral); border-radius: 12px;
  padding: 22px 18px 18px; min-height: 88px; text-decoration: none;
  display: grid; grid-template-columns: 20px 1fr; gap: 8px 10px; align-items: center; align-content: start;
}
.kachel svg { color: var(--tanne); }
.kachel-name { font-size: 16px; font-weight: 700; line-height: 1.25; }
.kachel:hover { border-color: var(--linie); color: var(--text); }
.kachel.aktiv { background: var(--tanne); color: #fff; border-color: var(--tanne); }
.kachel.aktiv svg { color: #fff; }
.kachel:focus-visible { outline: 2px solid var(--salbei); outline-offset: 2px; }
.liste { display: flex; flex-direction: column; gap: 14px; }
.strom-titel { margin: 20px 0 16px; font-size: 30px; font-weight: 600; line-height: 1.15; }
.zeile {
  background: #fff; border: 1px solid var(--linie-neutral); border-radius: 12px; overflow: hidden;
  display: grid; grid-template-columns: 220px 1fr 130px 34px 34px; gap: 24px; align-items: center; padding: 0 28px 0 0;
}
.zeile + .zeile { margin-top: 6px; }
.zeile-zahl { background: #EAEFEA; align-self: stretch; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.zahl { font-size: 34px; font-weight: 700; color: var(--tanne); font-variant-numeric: tabular-nums; line-height: 1; }
.zahl-text { font-size: 15px; color: var(--text-leise); }
.rubrik-label { font-size: 14px; color: var(--text-still); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.zeile-titel { font-size: 18px; font-weight: 600; }
.zeile-frist { font-size: 15px; color: var(--warn); }
.knopf { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.knopf-leise { border: 1.5px solid var(--linie); color: var(--salbei); }
.knopf-primaer { background: var(--tanne); color: #fff; }
.liste-fuss { display: flex; justify-content: flex-end; gap: 6px; font-size: 15px; color: var(--text-still); margin-top: 12px; padding-right: 4px; }
.liste-fuss .leise { color: var(--tanne); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zeile { grid-template-columns: 160px 1fr 34px 34px; gap: 16px; padding-right: 16px; }
  .zeile-frist { display: none; }
}

@media (max-width: 600px) {
  .kopf { padding: 0 20px; }
  .kopf-standort { display: none; }
  .anmelde-flaeche { padding: 32px 20px; align-items: flex-start; }
}

/* Kopfleiste: Zurück-Link und Kontextmenü (Design Kontext-Menü) */
.kopf-links { display: flex; align-items: center; gap: 28px; }
.zurueck { color: #fff; opacity: .85; text-decoration: none; font-size: 16px; }
.zurueck:hover { opacity: 1; color: #fff; }
.menue { position: relative; }
.menue > summary { list-style: none; cursor: pointer; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.menue > summary::-webkit-details-marker { display: none; }
.menue > summary::marker { content: ''; }
.menue[open] > summary .pfeil { display: inline-block; transform: rotate(180deg); }
.menue-box {
  position: absolute; right: 0; top: 46px; width: 400px; max-width: calc(100vw - 32px); z-index: 20;
  background: #fff; color: var(--text); border-radius: 12px; box-shadow: 0 8px 28px rgba(40,35,25,.16); overflow: hidden;
}
.menue-kopf { background: #EAEFEA; padding: 20px 24px; }
.menue-name { font-size: 19px; font-weight: 600; }
.menue-sub { font-size: 15px; color: var(--text-leise); }
.menue-eintrag {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 24px; border-top: 1px solid var(--linie-neutral); text-decoration: none; color: var(--text);
}
.menue-eintrag:hover { background: var(--flaeche); color: var(--text); }
.menue-eintrag > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.menue-titel { font-size: 19px; }
.menue-pfeil { color: var(--tanne); font-size: 20px; }
.menue-abmelden { margin: 0; border-top: 1px solid var(--linie-neutral); }
.menue-abmelden button { font: inherit; font-size: 19px; color: var(--text); background: none; border: 0; padding: 18px 24px; width: 100%; text-align: left; cursor: pointer; }
.menue-abmelden button:hover { background: var(--flaeche); }

/* Seiten mit Karten (Meine Einstellungen, Apotheke verwalten, Stammdaten, Standort) */
.seite { width: 100%; max-width: 1280px; margin: 0 auto; padding: 40px 60px 64px; display: flex; flex-direction: column; gap: 20px; }
.seite.schmal { max-width: 840px; margin: 0; }
.seiten-titel { margin: 0; font-size: 34px; font-weight: 600; line-height: 1.15; }
.untertitel { margin: -10px 0 8px; font-size: 17px; color: var(--text-leise); }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.abschnitt-label { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-still); }
.karten-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.karte { background: #fff; border: 1px solid var(--linie-neutral); border-radius: 12px; padding: 24px 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.karte-aktiv { border: 1.5px solid var(--tanne); }
.karte-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.karte-kopf h2 { margin: 0; font-size: 20px; font-weight: 600; }
.karte-sub { font-size: 15px; color: var(--text-leise); margin-top: 2px; }
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; margin: 0; font-size: 17px; }
.dl dt { color: var(--text-still); }
.dl dd { margin: 0; }
.still { color: var(--text-still); }
.gut { color: var(--tanne); }
.warn { color: var(--warn); }
.karte form { display: flex; flex-direction: column; gap: 16px; }
.karte .feld { gap: 6px; }
.karte label { font-size: 15px; font-weight: 400; color: var(--text-leise); }
.karte input[type="text"], .karte input[type="email"], .karte input[type="tel"], .karte input[type="password"], .karte select, .karte input[type="time"] {
  font: inherit; font-size: 17px; color: var(--text); height: 52px; width: 100%;
  border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; padding: 0 16px; outline: none;
}
.karte input:focus, .karte select:focus { border: 1.5px solid var(--tanne); }
.karte input[type="file"] { font: inherit; font-size: 15px; }
.form-zeile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-zeile.breit-schmal { grid-template-columns: 3fr 1fr; }
.form-zeile.schmal-breit { grid-template-columns: 1fr 3fr; }
.form-aktionen { display: flex; align-items: center; gap: 24px; margin-top: 4px; }
.primaer.schmal { width: auto; padding: 0 26px; }
.erfolg { border: 1px solid var(--linie); background: #EAEFEA; color: var(--tanne); border-radius: var(--radius); padding: 12px 16px; font-size: 15px; }
.hinweis.warn { color: var(--warn); }
.farbe-zeile { display: flex; gap: 10px; align-items: center; }
.farbe-zeile input[type="color"] { width: 52px; height: 52px; padding: 4px; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; }
.farbe-punkt { display: inline-block; width: 22px; height: 22px; border-radius: 6px; vertical-align: middle; }
.logo-vorschau { display: inline-flex; align-items: center; justify-content: center; width: 104px; height: 60px; border: 1px dashed var(--linie); border-radius: 8px; background: var(--flaeche); vertical-align: middle; overflow: hidden; }
.logo-vorschau img { max-width: 96px; max-height: 52px; }
.logo-vorschau.leer { color: var(--text-still); font-size: 14px; }
.zeit-zeile { display: grid; grid-template-columns: 120px 1fr auto 1fr auto; gap: 10px; align-items: center; }
.zeit-tag { font-size: 16px; }
.haken.klein { font-size: 14px; }

/* Standortliste und Verwaltungszeilen */
.zeile-link { text-decoration: none; color: var(--text); grid-template-columns: 220px 1fr 34px; }
.zeile-link:hover { border-color: var(--linie); color: var(--text); }
.zeile-kurz { display: block; font-size: 22px; font-weight: 600; color: var(--tanne); }
.zeile-sub { display: block; font-size: 16px; color: var(--text-leise); margin-top: 2px; }
.vz-liste { display: flex; flex-direction: column; gap: 14px; }
.vz { background: #fff; border: 1px solid var(--linie-neutral); border-radius: 12px; padding: 26px 28px; display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; text-decoration: none; color: var(--text); }
.vz:hover { border-color: var(--linie); color: var(--text); }
.vz-icon { color: var(--tanne); display: inline-flex; }
.vz-text { display: flex; flex-direction: column; gap: 4px; }
.vz-titel { font-size: 20px; font-weight: 600; }
.vz-sub { font-size: 16px; color: var(--text-leise); }
.vz-inaktiv { opacity: .55; cursor: default; }
.vz-bald { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-still); border: 1px solid var(--linie-neutral); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

@media (max-width: 900px) {
  .karten-raster, .form-zeile { grid-template-columns: 1fr; }
  .seite, .strom { padding-left: 24px; padding-right: 24px; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dt { margin-top: 8px; }
  .zeit-zeile { grid-template-columns: 1fr 1fr; }
  .zeile-link { grid-template-columns: 140px 1fr 34px; }
}
