/* Seller - Aussehen wie HIVE (Schrift, Farben, Statusfarben aus /var/www/hive.gonto.space/web/hive.css).
   Rahmen: oben Name, Suche, Uhr, Glocke, Profil; links Menue als Felder; Inhalt in einer Flaeche; am Handy Leiste unten.
   Keine fremden Quellen, keine Inline-Stile (CSP style-src 'self'). Groessen in rem: Schriftgroesse im Profil. */
@font-face { font-family: "Space Sans"; src: url("schrift/e-Ukraine-UltraLight.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Space Sans"; src: url("schrift/e-Ukraine-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Space Sans"; src: url("schrift/e-Ukraine-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --buehne: #0a0a0b; --leiste: #111113; --flaeche: #161618; --feld: #1f1f22; --an: #3a3a3f; --hover: #29292d;
  --text: #ececec; --neben: rgba(236, 236, 236, .66); --leise: rgba(236, 236, 236, .56); --linie: rgba(255, 255, 255, .07);
  --st-arbeitet: #4fb6fa; --st-fragt: #fcbc3f; --st-fertig: #5ee3c0; --st-fehler: #ff8170; --st-alt: #86868d;
  --r-flaeche: 14px; --r: 10px; --r-knopf: 8px;
  color-scheme: dark;
}
html { font-size: 15px; -webkit-text-size-adjust: 100%; background: var(--buehne); }
html[data-schrift="klein"] { font-size: 13.5px; }
html[data-schrift="gross"] { font-size: 17.5px; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--buehne); color: var(--text); font: 400 1rem/1.45 "Space Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.vorrat { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.z { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
a { color: inherit; }

/* --- oben --- */
.oben { display: flex; align-items: center; gap: 22px; padding: 14px 22px; position: sticky; top: 0; z-index: 4; background: var(--buehne); }
.marke { width: 264px; flex: none; display: flex; align-items: center; }
.wort { font: 200 1.45rem/1 "Space Sans"; letter-spacing: .42em; padding-left: 4px; }
.suche { flex: 0 1 560px; display: flex; align-items: center; gap: 12px; background: var(--feld); border-radius: 12px; padding: 0 16px; color: var(--leise); }
.suche input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 0; color: var(--text); outline: none; }
.suche input::placeholder { color: var(--leise); }
.suche:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.rechts { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--neben); }
.uhr { font-size: .95rem; margin-right: 6px; }
.rund { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--feld); display: grid; place-items: center; color: var(--neben); }
.rund:hover { background: var(--hover); color: var(--text); }
#such-knopf { display: none; }
.glocke b { position: absolute; top: -5px; right: -5px; background: #fff; color: #000; border-radius: 99px; font: 400 .68rem/16px "Space Sans"; min-width: 16px; padding: 0 4px; text-align: center; }
.ich { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--text); padding: 4px 6px 4px 4px; border-radius: 99px; }
.ich:hover, .ich[aria-current="page"] { background: var(--feld); }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--an); display: grid; place-items: center; font-size: .8rem; letter-spacing: .04em; flex: none; }

/* --- Rahmen: Menue links, Inhalt in einer Flaeche --- */
.rahmen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 22px 22px; min-height: calc(100vh - 72px); }
body.drin .rahmen { grid-template-columns: 264px minmax(0, 1fr); }
.leiste { display: flex; flex-direction: column; gap: 10px; }
.shopwahl { padding: 0 2px 4px; }
.shop-titel { display: flex; align-items: center; gap: 10px; padding: 6px 14px 8px; font: 400 .74rem "Space Sans"; letter-spacing: .24em; text-transform: uppercase; color: var(--neben); }
.shop-titel svg.z { width: 1rem; height: 1rem; }
.shop-select { position: relative; }
.shop-select select { appearance: none; -webkit-appearance: none; width: 100%; border: 0; border-radius: var(--r); background: var(--feld); padding: 11px 38px 11px 16px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--neben); }
.shop-select svg.z { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--leise); }
.menue { display: grid; gap: 6px; }
.menue a, .blatt-innen a { display: flex; align-items: center; gap: 13px; padding: 13px 16px; border-radius: var(--r); background: var(--feld); color: var(--neben); text-decoration: none; font-size: .97rem; }
.menue a:hover, .blatt-innen a:hover { background: var(--hover); color: var(--text); }
.menue a[aria-current="page"], .blatt-innen a[aria-current="page"] { background: var(--an); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.menue a b, .blatt-innen a b, .unten a b { margin-left: auto; font: 400 .77rem/20px "Space Sans"; min-width: 20px; padding: 0 6px; text-align: center; border-radius: 99px; background: #fff; color: #000; }
.menue .trenner { height: 8px; }
.flaeche { background: var(--flaeche); border-radius: var(--r-flaeche); padding: 26px 34px 40px; outline: none; min-width: 0; }
.innen { max-width: 980px; margin: 0 auto; }

/* --- Inhalt --- */
.kopf { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
h1 { margin: 0; font: 400 1.07rem "Space Sans"; letter-spacing: .22em; text-transform: uppercase; }
h2 { margin: 30px 0 12px; font: 400 .74rem "Space Sans"; letter-spacing: .24em; text-transform: uppercase; color: var(--neben); }
.karte h2 { margin: 0 0 8px; }
.unter { color: var(--neben); font-size: .9rem; margin-top: 6px; }
.leise { color: var(--leise); }
.neben { color: var(--neben); }
p { margin: 0 0 12px; }
.text-breit { max-width: 46rem; }

.kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.kachel { display: block; text-align: left; border: 0; background: var(--feld); border-radius: var(--r-flaeche); padding: 16px 18px; color: var(--text); text-decoration: none; }
a.kachel:hover { background: var(--hover); }
.kachel .l { display: flex; align-items: center; gap: 8px; font-size: .87rem; color: var(--neben); }
.kachel .l svg.z { width: 1.05rem; height: 1.05rem; }
.kachel .n { font: 200 2.65rem/1.1 "Space Sans"; margin-top: 10px; }
.kachel .s { font-size: .83rem; color: var(--leise); margin-top: 2px; }
.zwei { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.karte { background: var(--feld); border-radius: var(--r-flaeche); padding: 18px 20px; margin-bottom: 12px; }
.zwei .karte { margin-bottom: 0; }
.karte .zahl { font: 200 1.85rem/1.2 "Space Sans"; }
.karte .zahl small { font: 400 .87rem "Space Sans"; color: var(--leise); margin-left: 8px; }

.f { color: var(--st-fragt); } .a { color: var(--st-arbeitet); } .g { color: var(--st-fertig); } .r { color: var(--st-fehler); } .grau { color: var(--st-alt); }

/* Saeulen: Eingaenge der letzten 14 Tage */
.diagramm { position: relative; height: 200px; margin-top: 18px; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; align-items: end; padding-bottom: 22px; }
.saeule { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.saeule i { display: block; width: 62%; min-height: 2px; background: rgba(236, 236, 236, .32); border-radius: 4px 4px 0 0; }
.saeule i.leer { background: rgba(255, 255, 255, .07); }
.saeule.heute i { background: #ececec; }
.saeule em { position: absolute; bottom: -20px; font-style: normal; font-size: .72rem; color: var(--leise); white-space: nowrap; }
.saeule.heute em { color: var(--text); }
.saeule b { font-weight: 400; font-size: .75rem; color: var(--neben); margin-bottom: 4px; }

.punkt { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: .93rem; width: 100%; border: 0; background: none; text-align: left; color: var(--text); }
button.punkt:hover .wer-name { text-decoration: underline; text-underline-offset: 3px; }
.punkt + .punkt { box-shadow: 0 -1px 0 var(--linie); }
.punkt > div { flex: 1; min-width: 0; }
.punkt small { display: block; color: var(--leise); font-size: .83rem; }
.punkt .w { color: var(--neben); font-size: .87rem; white-space: nowrap; }
.wer-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Listen wie in HIVE: eine Flaeche, Zeilen mit feiner Linie */
.pillen { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.pille { padding: 8px 14px; border-radius: var(--r); border: 0; background: var(--feld); font-size: .9rem; color: var(--neben); }
.pille:hover { background: var(--hover); color: var(--text); }
.pille[aria-pressed="true"] { background: var(--an); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.pille i { font-style: normal; color: var(--leise); margin-left: 6px; }
.liste { background: var(--feld); border-radius: var(--r-flaeche); padding: 6px; }
.zeile { display: grid; grid-template-columns: 34px minmax(0, 1.4fr) minmax(0, 1.2fr) 13.5rem; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: var(--r); width: 100%; border: 0; background: none; text-align: left; color: var(--text); }
.zeile + .zeile { box-shadow: 0 -1px 0 var(--linie); }
.zeile:hover { background: var(--hover); box-shadow: none; }
.zeile:hover + .zeile { box-shadow: none; }
.zeichen { width: 34px; height: 34px; border-radius: 9px; background: var(--an); display: grid; place-items: center; color: var(--neben); }
.zeile .wer small, .zeile .was small { display: block; color: var(--leise); font-size: .83rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile .wer, .zeile .was { min-width: 0; }
.zeile .was { color: var(--neben); font-size: .93rem; }
.st { font-size: .87rem; display: flex; align-items: center; gap: 7px; justify-content: flex-end; white-space: nowrap; }
.st svg.z { width: 1rem; height: 1rem; }
.marke-schild { font-size: .77rem; padding: 2px 8px; border-radius: 99px; background: var(--an); color: var(--neben); white-space: nowrap; }
.leer-hinweis { padding: 26px 14px; text-align: center; color: var(--leise); }

/* Einzelansicht */
.zurueck { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--neben); padding: 4px 0; margin-bottom: 14px; }
.zurueck:hover { color: var(--text); }
dl.felder { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
dl.felder dt { color: var(--leise); }
dl.felder dd { margin: 0; overflow-wrap: anywhere; }
pre.text { white-space: pre-wrap; font: inherit; background: var(--flaeche); border-radius: var(--r); padding: 14px 16px; margin: 16px 0; overflow-wrap: anywhere; color: var(--neben); }

/* Knoepfe: weisser Hauptknopf wie in HIVE */
.knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-knopf);
  border: 0; background: #fff; color: #000; text-decoration: none; }
.knopf:hover { background: #dcdcdc; }
.knopf.zweit { background: var(--an); color: var(--text); }
.knopf.zweit:hover { background: #46464c; }
.knopf.leicht { background: none; color: var(--neben); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.knopf.leicht:hover { color: var(--text); background: var(--hover); }
.knopf:disabled { opacity: .5; cursor: default; }
.link { border: 0; background: none; color: var(--neben); padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }

/* Formulare */
label { display: block; color: var(--neben); font-size: .9rem; margin: 14px 0 6px; }
input[type="text"], input[type="password"], select.feld { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-knopf); border: 0;
  background: var(--flaeche); color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); }
input[type="text"]:focus, input[type="password"]:focus, select.feld:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); outline: none; }
.wahl { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.wahl label { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--text); }
.kopie { display: flex; gap: 8px; margin-top: 8px; }
.kopie input { flex: 1; font-size: .85rem; }

/* Profil: Schalter und Auswahl */
.einstellung { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.einstellung + .einstellung { box-shadow: 0 -1px 0 var(--linie); }
.einstellung > div { flex: 1; min-width: 0; }
.einstellung small { display: block; color: var(--leise); font-size: .83rem; margin-top: 2px; }
.schalter { position: relative; width: 46px; height: 28px; flex: none; border: 0; border-radius: 99px; background: var(--an); padding: 0; }
.schalter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--neben); transition: transform .15s; }
.schalter[aria-checked="true"] { background: var(--st-fertig); }
.schalter[aria-checked="true"]::after { transform: translateX(18px); background: #0a0a0b; }
.schalter:disabled { opacity: .45; cursor: default; }
.wahlreihe { display: flex; gap: 6px; flex-wrap: wrap; }
.wahlreihe .pille { min-height: 38px; }
.schriftbeispiel { color: var(--leise); font-size: .83rem; margin-top: 10px; }
.vermerk { color: var(--leise); font-size: .8rem; margin-top: 26px; }

/* Tabellen (Leute, Protokoll) */
.tabelle { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tabelle td, .tabelle th { text-align: left; padding: 10px 8px; vertical-align: top; }
.tabelle tr + tr td { box-shadow: 0 -1px 0 var(--linie); }
.tabelle th { color: var(--leise); font-weight: 400; font-size: .83rem; }

/* Hinweise */
.meldung { padding: 11px 14px; border-radius: var(--r); margin: 12px 0; background: var(--feld); box-shadow: inset 3px 0 0 currentColor; }
.meldung.gut { color: var(--st-fertig); }
.meldung.schlecht { color: var(--st-fehler); }
.meldung.warn { color: var(--st-fragt); }

/* Anmelden */
body.draussen .rahmen { padding-top: 10vh; }
body.draussen .flaeche { background: none; padding: 0; }
.tor { max-width: 430px; margin: 0 auto; }
.tor .wort { display: block; text-align: center; font-size: 2rem; margin-bottom: 8px; }
.tor .unter { text-align: center; margin-bottom: 28px; }
.tor .karte { padding: 22px 24px; background: var(--flaeche); }
.tor .knopf { width: 100%; }
.tor details summary { cursor: pointer; color: var(--neben); }

/* Meldungen (Toast) unten rechts */
.meldungen { position: fixed; right: 24px; bottom: 24px; z-index: 9; display: grid; gap: 10px; width: 340px; }
.toast { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #2e2e33; border: 0; color: var(--text); text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 50px rgba(0, 0, 0, .55); animation: rein .25s ease; }
.toast > div { flex: 1; min-width: 0; }
.toast small { display: block; color: var(--neben); font-size: .83rem; }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Glocke: Liste der Meldungen */
.glocke-liste { position: fixed; top: 64px; right: 22px; z-index: 8; width: 340px; max-height: 70vh; overflow: auto; background: #26262a; border-radius: 14px; padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 50px rgba(0, 0, 0, .55); }
.glocke-liste .punkt { padding: 10px 10px; border-radius: var(--r); }
.glocke-liste .punkt:hover { background: var(--hover); }
.glocke-liste .leer-hinweis { padding: 18px; }

/* Handy: Leiste unten, Menue als Blatt */
.unten { display: none; }
.blatt { position: fixed; inset: 0; z-index: 7; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; }
.blatt-innen { width: 100%; background: var(--leiste); border-radius: 18px 18px 0 0; padding: 14px 16px calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 6px; max-height: 80vh; overflow: auto; }

@media (max-width: 860px) {
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zwei { grid-template-columns: minmax(0, 1fr); }
  .zwei .karte { margin-bottom: 12px; }
}
@media (max-width: 1000px) {
  .marke { width: auto; }
  body.drin .rahmen { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 700px) {
  body { overflow-x: hidden; }
  .oben { padding: 12px 16px; gap: 10px; }
  .uhr, .ich-name { display: none; }
  .suche { display: none; }
  body.suche-offen .suche { display: flex; position: absolute; left: 12px; right: 12px; top: 10px; z-index: 5; }
  #such-knopf { display: grid; }
  .rahmen, body.drin .rahmen { grid-template-columns: minmax(0, 1fr); padding: 0; min-height: calc(100vh - 66px); }
  body.drin .leiste { display: none; }
  .flaeche { border-radius: 14px 14px 0 0; padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  body.draussen .flaeche { padding: 0 16px; }
  .kachel .n { font-size: 2.1rem; }
  .kachel { padding: 14px; }
  .saeule.zwischen em { display: none; }
  .zeile { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 8px; }
  .zeile .zeichen { grid-row: 1 / 3; }
  .zeile .was { grid-column: 2 / 3; grid-row: 2; }
  .zeile .st { grid-column: 3; grid-row: 1 / 3; }
  .zeile .st .st-text { display: none; }
  dl.felder { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  dl.felder dd { margin-bottom: 8px; }
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; }
  .tabelle thead { display: none; }
  .tabelle tr { padding: 10px 0; }
  .tabelle tr + tr { box-shadow: 0 -1px 0 var(--linie); }
  .tabelle tr + tr td { box-shadow: none; }
  .tabelle td { padding: 2px 0; }
  .meldungen { left: 16px; right: 16px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .glocke-liste { left: 12px; right: 12px; width: auto; top: 62px; }
  body.drin .unten { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; justify-content: space-around;
    padding: 10px 0 calc(14px + env(safe-area-inset-bottom)); background: var(--leiste); border-top: 1px solid var(--linie); }
  .unten a, .unten button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .77rem; color: var(--leise);
    text-decoration: none; border: 0; background: none; padding: 2px 8px; min-width: 64px; }
  .unten a[aria-current="page"], .unten button[aria-expanded="true"] { color: #fff; }
  .unten a b { position: absolute; top: -4px; left: calc(50% + 6px); margin: 0; min-width: 18px; font-size: .68rem; line-height: 16px; padding: 0 4px; }
}
