/* Design „Gerät“ wie Myzel: Alu (hell) oder Graphit (dunkel), Orange als Signalfarbe.
   Farben aus needanapp-design (DesignColors), Schriften Geist, Geist Mono und Doto (OFL). */
@font-face { font-family: "Geist"; src: url("schriften/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("schriften/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Doto"; src: url("schriften/doto.woff2") format("woff2"); font-weight: 900; font-display: swap; }
:root {
  --grund: #e4e4e0; --flaeche: #f3f3f0; --rand: #c9c9c3; --trenner: #d6d6d0;
  --taste: #f3f3f0; --taste-rand: #c3c3bc; --taste-kante: rgba(0, 0, 0, .12);
  --text: #151515; --text2: #55554f; --text3: #75756e;
  --signal: #ff5a1f; --signal-text: #b83a0b; --auf-signal: #151515;
  --anzeige: #141414; --anzeige-rand: #141414; --anzeige-text: #9a9a93;
  --gruen: #3ddc97; --gruen-dunkel: #0f3d22; --chip-grau: #e4e4e0;
  --leiste: #151515; --leiste-rand: #2e2e2c; --leiste-text: #ededea;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --punkte: "Doto", "Geist Mono", ui-monospace, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #111111; --flaeche: #1c1c1b; --rand: #2e2e2c; --trenner: #2e2e2c;
    --taste: #262624; --taste-rand: #343432; --taste-kante: rgba(0, 0, 0, .45);
    --text: #ededea; --text2: #a3a39c; --text3: #85857e;
    --signal-text: #ff6b33;
    --anzeige: #050505; --anzeige-rand: #2e2e2c;
    --chip-grau: #2e2e2c;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--grund); }
body { margin: 0; min-height: 100vh; background: var(--grund); color: var(--text);
  font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--signal-text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--signal); outline-offset: 2px; }
.seite { max-width: 780px; margin: 0 auto; padding: 28px 16px 40px; }
.seite.breit { max-width: 1120px; }
.seite.mit-leiste { padding-bottom: 116px; }
.mono { font-family: var(--mono); }
.mono.gross { font-size: 17px; }
.hinweis { color: var(--text3); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.hinweis.mitte { margin: 12px 0 0; text-align: center; font-family: var(--sans); font-size: 14px; letter-spacing: 0; }

/* Kopf mit Taste zurück, Symbol und Name */
.oben { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.pfad { color: var(--text2); font: 500 12px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  text-align: right; overflow-wrap: anywhere; }
.zurueck, .blaettern, .ansicht-knopf { display: grid; place-items: center; padding: 0; border: 1px solid var(--taste-rand);
  border-radius: 50%; background: var(--taste); color: var(--text); cursor: pointer;
  box-shadow: inset 0 -3px 0 var(--taste-kante), 0 1px 2px rgba(0, 0, 0, .12); }
.zurueck { flex: none; width: 52px; height: 52px; }
.zurueck:hover, .blaettern:hover, .ansicht-knopf:hover { border-color: var(--signal); }
.zurueck svg { width: 26px; height: 26px; fill: currentColor; }
.kopf { display: flex; align-items: center; gap: 20px; margin: 4px 0 26px; }
.kopf > div:last-child { min-width: 0; }
.kreis { flex: none; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%;
  background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--rand), 0 2px 8px rgba(0, 0, 0, .12); }
.kreis img { width: 74%; height: 74%; object-fit: contain; }
.kreis.mini { width: 26px; height: 26px; box-shadow: 0 0 0 1px var(--rand); }
.buchstabe { color: #151515; font-size: 2.6em; font-weight: 700; line-height: 1; }
.app .buchstabe { font-size: 1.8em; }
h1 { margin: 0; font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; }
.von { margin: 8px 0 0; color: var(--text2); font: 500 13px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.von a { color: inherit; text-decoration: none; }
.von a:hover { color: var(--signal-text); }
.kopf .chip { margin-top: 10px; }
.unterzeile { margin: 6px 0 0; color: var(--text2); font-size: 19px; }
.einleitung { margin: 0 4px 18px; font-size: 19px; line-height: 1.45; }

/* Flächen */
.karte { position: relative; display: block; margin: 0 0 16px; background: var(--flaeche);
  border: 1px solid var(--rand); border-radius: 22px; overflow: hidden; }
.innen { padding: 20px 22px 22px; }
h2 { margin: 0 0 14px; color: var(--text2); font: 500 12px/1.3 var(--mono); letter-spacing: .16em;
  text-transform: uppercase; }
h2.unter { margin: 26px 0 4px; }

/* Anzeige: schwarz, LED, Punktmatrix */
.anzeige { display: flex; align-items: center; gap: 14px; min-height: 66px; margin: 12px 12px 0;
  padding: 14px 18px; border: 1px solid var(--anzeige-rand); border-radius: 16px; background: var(--anzeige); }
.led { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 8px 1px rgba(255, 90, 31, .7); }
.matrix { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; color: var(--signal);
  font: 900 26px/1.1 var(--punkte); letter-spacing: .07em; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 90, 31, .45); }
.anzeige.gruen .led { background: var(--gruen); box-shadow: 0 0 8px 1px rgba(61, 220, 151, .6); }
.anzeige.gruen .matrix { color: var(--gruen); text-shadow: 0 0 10px rgba(61, 220, 151, .35); }
.anzeige-rand { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--anzeige-text);
  font: 500 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

/* Zeilen und Felder */
dl.zeilen { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 14px 20px; margin: 0; align-items: baseline; }
dl.zeilen dt { color: var(--text2); font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  hyphens: auto; overflow-wrap: break-word; }
dl.zeilen dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.raster-felder { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 18px; }
.feld { min-width: 0; padding: 12px 16px 14px 0; border-bottom: 1px solid var(--trenner); }
.feld:nth-child(even) { padding: 12px 0 14px 16px; border-left: 1px solid var(--trenner); }
.feld:nth-last-child(-n+2) { border-bottom: 0; }
.feld-name { display: block; color: var(--text2); font: 500 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.feld-wert { display: block; margin-top: 6px; font-size: 22px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.feld-wert .hinweis { font-size: 13px; }

.kopieren { display: inline-grid; place-items: center; width: 34px; height: 34px; margin: -6px 0 -6px 6px;
  padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text2); cursor: pointer; vertical-align: middle; }
.kopieren:hover { background: var(--trenner); color: var(--text); }
.kopieren svg { width: 19px; height: 19px; fill: currentColor; }
.kopieren .ok { display: none; fill: #1f9e5f; }
.kopieren.kopiert .ok { display: block; }
.kopieren.kopiert .kopie { display: none; }

/* Taste in der Signalfarbe */
.taste { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; margin: 0 0 16px;
  padding: 12px 24px; border-radius: 22px; background: var(--signal); color: var(--auf-signal);
  font: 600 15px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 1px 3px rgba(0, 0, 0, .18); }
.taste:hover { filter: brightness(1.06); }
.taste:active { transform: translateY(1px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.taste svg { width: 22px; height: 22px; fill: currentColor; }
.karte .taste { margin: 22px 0 0; }

.grafik { display: block; width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; margin: 0 0 18px;
  border: 1px solid var(--rand); border-radius: 22px; background: var(--anzeige); }
.text { line-height: 1.6; overflow-wrap: anywhere; }
.text.umbruch { white-space: pre-line; }
.text.klein { color: var(--text2); font-size: 14px; }
.text p, .text ul, .text ol { margin: 0 0 .8em; }
.text ul, .text ol { padding-left: 1.4em; }
.text h3 { margin: 1em 0 .3em; font-size: 17px; }
.text code, .text tt { font-family: var(--mono); font-size: .92em; }
.streifen { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory;
  scrollbar-color: var(--rand) transparent; }
.streifen a { flex: none; scroll-snap-align: start; }
/* vor dem Laden im Format eines Handys, sonst stünden noch nicht geladene Bilder als Striche da */
.streifen img { display: block; height: 420px; width: auto; aspect-ratio: auto 9 / 20; border: 1px solid var(--rand);
  border-radius: 16px; background: var(--anzeige); }
.galerie { position: relative; }
.blaettern { position: absolute; top: calc(50% - 5px); z-index: 1; width: 46px; height: 46px; transform: translateY(-50%);
  transition: opacity .15s; }
.blaettern:disabled { opacity: 0; pointer-events: none; }
.blaettern svg { width: 26px; height: 26px; fill: currentColor; }
.blaettern.links { left: 8px; }
.blaettern.rechts { right: 8px; }

/* Pillen wie in Myzel: NEU grün, UHR grau, NEUESTE orange */
.chip { display: inline-block; margin: 0 6px 2px 0; padding: 2px 7px; border-radius: 6px; background: var(--chip-grau);
  color: var(--text); font: 700 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.chip.neu { background: var(--gruen); color: var(--gruen-dunkel); }
.chip.signal { background: var(--signal); color: var(--auf-signal); }
.chip.warnung { background: none; box-shadow: inset 0 0 0 1px var(--signal); color: var(--signal-text); }
.versionen { margin: 0; padding: 0; list-style: none; }
.versionen li { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 4px 16px;
  padding: 12px 0; border-bottom: 1px solid var(--trenner); }
.versionen li:last-child { border-bottom: 0; padding-bottom: 0; }
.versionen .v { font-size: 15px; }
.versionen .info { color: var(--text2); font-size: 14px; }
.versionen .text.klein { grid-column: 1 / -1; }
.laden { display: inline-flex; align-items: center; gap: 4px; font: 600 13px/1.2 var(--mono); letter-spacing: .1em;
  text-decoration: none; }
.laden:hover { text-decoration: underline; }
.laden svg { width: 19px; height: 19px; fill: currentColor; }
details summary { color: var(--signal-text); cursor: pointer; }
.rechte { margin: 8px 0 0; padding-left: 1.2em; color: var(--text2); font-size: 13px; }
.quelle-link { display: inline-flex; align-items: center; gap: 10px; }

/* Übersicht */
.suche { display: flex; align-items: center; gap: 12px; min-height: 58px; margin: 0 0 22px; padding: 0 22px;
  border: 1px solid var(--rand); border-radius: 999px; background: var(--flaeche); cursor: text; }
.suche:focus-within { border-color: var(--signal); }
.suche svg { flex: none; width: 24px; height: 24px; fill: var(--text2); }
.suche input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 18px; }
.suche input::placeholder { color: var(--text3); }
.liste-kopf { display: flex; align-items: baseline; gap: 8px; margin: 0 6px 12px; color: var(--text2);
  font: 500 12px/1.3 var(--mono); letter-spacing: .16em; }
.liste-kopf h2 { margin: 0; }
.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.app { display: flex; align-items: center; gap: 16px; margin: 0; padding: 16px 18px; color: inherit;
  text-decoration: none; transition: border-color .15s, transform .15s; }
.app:hover, .app:focus-visible { border-color: var(--text3); transform: translateY(-1px); }
.app .kreis { width: 62px; height: 62px; }
.app-text { min-width: 0; flex: 1; }
.app h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.app h3 .chip { margin: 0 0 2px 8px; }
.app .von { margin: 3px 0 6px; font-size: 11px; }
.app .kurz { margin: 0; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin: 8px 0 0;
  color: var(--text3); font: 500 12px/1.4 var(--mono); letter-spacing: .04em; }
.leer { padding: 22px 24px; color: var(--text2); text-align: center; }
.quelle dl.zeilen { grid-template-columns: minmax(120px, 22%) 1fr; }
.fuss { margin: 30px 0 0; color: var(--text3); font: 12px/1.6 var(--mono); letter-spacing: .04em; text-align: center; }
.fuss a { color: var(--text2); }

/* Leiste unten wie die Pille in Myzel: Graphit, schwebend */
.leiste { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 5; display: flex; gap: 4px;
  padding: 6px; border: 1px solid var(--leiste-rand); border-radius: 999px; background: var(--leiste);
  transform: translateX(-50%); box-shadow: 0 8px 28px rgba(0, 0, 0, .28); }
.leiste a { display: grid; place-items: center; width: 52px; height: 46px; border-radius: 999px; color: var(--leiste-text); }
.leiste a:hover { background: rgba(255, 255, 255, .1); color: var(--signal); }
.leiste svg { width: 24px; height: 24px; fill: currentColor; }
.bildansicht { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 16px;
  border: 0; background: rgba(10, 10, 10, .95); color: #ededea; }
.bildansicht[open] { display: grid; place-items: center; }
.bildansicht::backdrop { background: transparent; }
.bildansicht img { max-width: calc(100% - 136px); max-height: calc(100vh - 96px); border-radius: 16px; }
.ansicht-knopf { position: absolute; z-index: 1; width: 52px; height: 52px; border-color: #343432; background: #262624; color: #ededea; }
.ansicht-knopf svg { width: 28px; height: 28px; fill: currentColor; }
.ansicht-knopf.links, .ansicht-knopf.rechts { top: 50%; transform: translateY(-50%); }
.ansicht-knopf.links { left: 16px; }
.ansicht-knopf.rechts { right: 16px; }
.ansicht-knopf.schliessen { top: 16px; right: 16px; }
.zaehler { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; color: #a3a39c; font: 500 13px/1 var(--mono);
  letter-spacing: .12em; text-align: center; }
:target { scroll-margin-top: 16px; }

@media (max-width: 600px) {
  .seite { padding-top: 18px; }
  .kopf { gap: 14px; }
  .kreis { width: 84px; height: 84px; }
  h1 { font-size: 32px; }
  .unterzeile, .einleitung { font-size: 17px; }
  .innen { padding: 18px 16px 20px; }
  .anzeige { margin: 10px 10px 0; padding: 12px 14px; min-height: 58px; gap: 12px; }
  .matrix { font-size: 21px; }
  .anzeige-rand { font-size: 11px; letter-spacing: .08em; }
  dl.zeilen, .quelle dl.zeilen { grid-template-columns: minmax(96px, 34%) 1fr; gap: 12px 14px; }
  .feld-wert { font-size: 19px; }
  .streifen img { height: 340px; }
  .bildansicht { padding: 8px; }
  .bildansicht img { max-width: 100%; max-height: calc(100vh - 140px); }
  .ansicht-knopf { width: 44px; height: 44px; }
  .ansicht-knopf.links, .ansicht-knopf.rechts { top: auto; bottom: 12px; transform: none; }
  .ansicht-knopf.links { left: 12px; }
  .ansicht-knopf.rechts { right: 12px; }
  .ansicht-knopf.schliessen { top: 12px; right: 12px; }
  .zaehler { bottom: 24px; }
  dl.zeilen .mono { font-size: 14px; }
  dl.zeilen .mono.gross { font-size: 15px; }
  .versionen li { grid-template-columns: 1fr auto; }
  .versionen .info { grid-column: 1 / -1; grid-row: 2; }
  .app { padding: 14px; gap: 14px; }
  .app .kreis { width: 56px; height: 56px; }
}
