/* Essen-Planner
   Layout: eine schmale Spalte wie eine Handy-App, Tab-Leiste unten, Karten mit dunklerer Unterkante zum Drücken.
   Farben aus Dithmarschen: Weißkohl-Grün = erledigt und Hauptaktion, Rotkohl = Hinweise und Erinnerungen, Kartoffelgelb sparsam. */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-wght.woff2') format('woff2'); font-weight: 100 900; font-display: swap; 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; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-ext-wght.woff2') format('woff2'); font-weight: 100 900; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage-wght.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #f4f6f0;
  --flaeche: #ffffff;
  --flaeche-2: #edf1e9;
  --tinte: #1b2820;
  --leise: #5a685f;
  --linie: #dce3d7;
  --kante: #cdd6c7;
  --kohl: #2b7445;
  --kohl-kante: #1b4f2e;
  --kohl-weich: #e1ede4;
  --auf-kohl: #ffffff;
  --rotkohl: #85396d;
  --rotkohl-kante: #5e2549;
  --rotkohl-weich: #f5e8f0;
  --kartoffel: #e9b949;
  --kartoffel-weich: #fbf1d6;
  --schrift-kopf: 'Bricolage', 'Inter', system-ui, sans-serif;
  --schrift: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tabs: 64px;
  --rund: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1510; --flaeche: #172019; --flaeche-2: #1e2920; --tinte: #e4ebe5; --leise: #9aa89e; --linie: #29342c;
    --kante: #080c09; --kohl: #74c692; --kohl-kante: #437f58; --kohl-weich: #1b2f22; --auf-kohl: #0d1a11;
    --rotkohl: #de98c7; --rotkohl-kante: #9c5e89; --rotkohl-weich: #301e2b; --kartoffel: #e9c063; --kartoffel-weich: #2d2716;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--tinte); font-family: var(--schrift); font-size: 15px; line-height: 1.45;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--schrift-kopf); margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 600; }
.zahl { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--kohl); outline-offset: 2px; border-radius: 8px; }

.seite {
  max-width: 560px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: calc(env(safe-area-inset-top, 0px) + 18px);
  padding-bottom: calc(var(--tabs) + env(safe-area-inset-bottom, 0px) + 28px);
  display: grid; gap: 14px;
}
.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.kopf .unter { color: var(--leise); font-size: 14px; margin-top: 4px; }
.leise { color: var(--leise); }
.klein { font-size: 13px; }

/* Start */
.start { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--leise); padding: 24px; }
.start-logo { width: 72px; height: 72px; border-radius: 22px; background: var(--kohl) url('/icons/icon.svg') center/cover; box-shadow: 0 4px 0 var(--kohl-kante); }

/* Karten und Knöpfe */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: 0 3px 0 var(--kante); }
.karte.innen { padding: 14px 16px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 14px; border: 0; cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: var(--kohl); color: var(--auf-kohl); box-shadow: 0 4px 0 var(--kohl-kante);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--kohl-kante); }
.knopf.zweit { background: var(--flaeche); color: var(--tinte); border: 1px solid var(--linie); box-shadow: 0 4px 0 var(--kante); }
.knopf.zweit:active { box-shadow: 0 1px 0 var(--kante); }
.knopf.breit { width: 100%; }
.knopf:disabled { opacity: 0.4; pointer-events: none; }
.knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.knopfreihe { display: flex; gap: 10px; flex-wrap: wrap; }
.knopfreihe .knopf { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--flaeche-2); color: var(--tinte); white-space: nowrap; }
.chip.kohl { background: var(--kohl-weich); color: var(--kohl); }
.chip.rot { background: var(--rotkohl-weich); color: var(--rotkohl); }
.chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Haken-Knopf (geteilt) */
.haken {
  flex: none; width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--linie); background: var(--flaeche);
  box-shadow: 0 3px 0 var(--kante); display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.haken svg { width: 24px; height: 24px; fill: none; stroke: var(--auf-kohl); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform: scale(0); transition: transform 0.18s cubic-bezier(.3, 1.6, .5, 1); }
.haken[aria-pressed="true"] { background: var(--kohl); border-color: var(--kohl); box-shadow: 0 3px 0 var(--kohl-kante); }
.haken[aria-pressed="true"] svg { transform: scale(1); }
.haken:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--kante); }
.haken.klein { width: 34px; height: 34px; border-radius: 10px; }
.haken.klein svg { width: 18px; height: 18px; }
.wer { font-size: 11px; color: var(--kohl); font-weight: 600; text-align: center; margin-top: 4px; white-space: nowrap; }

/* Tag-Streifen */
.streifen { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 2px max(16px, env(safe-area-inset-left, 0px)) 8px; scrollbar-width: none; }
.streifen::-webkit-scrollbar { display: none; }
.tagchip {
  flex: none; scroll-snap-align: center; width: 54px; padding: 8px 0 7px; border-radius: 14px; text-decoration: none; text-align: center;
  background: var(--flaeche); border: 1px solid var(--linie); box-shadow: 0 3px 0 var(--kante); display: grid; gap: 1px;
}
.tagchip small { font-size: 11px; color: var(--leise); font-weight: 500; }
.tagchip b { font-family: var(--schrift-kopf); font-size: 19px; font-weight: 650; }
.tagchip i { width: 6px; height: 6px; border-radius: 50%; justify-self: center; background: var(--linie); }
.tagchip i.teil { background: var(--kartoffel); }
.tagchip i.voll { background: var(--kohl); }
.tagchip.heute small { color: var(--kohl); font-weight: 700; }
.tagchip[aria-current="true"] { background: var(--kohl); border-color: var(--kohl); color: var(--auf-kohl); box-shadow: 0 3px 0 var(--kohl-kante); }
.tagchip[aria-current="true"] small { color: var(--auf-kohl); opacity: 0.85; }

/* Held: Abendessen */
.held { overflow: hidden; }
.held-bild { position: relative; height: 210px; background: radial-gradient(ellipse at 50% 70%, var(--kohl-weich), transparent 70%), var(--flaeche-2); }
.held-bild canvas, .detail-bild canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.held-bild .ersatz, .detail-bild .ersatz { position: absolute; inset: 0; display: grid; place-items: center; font-size: 84px; }
.held-bild .marke { position: absolute; left: 14px; top: 12px; }
.held-text { padding: 14px 16px 16px; display: grid; gap: 10px; }
.held-zeile { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.held-zeile h2 { font-size: 22px; }

/* Mahlzeit-Zeilen */
.mahlzeiten { display: grid; }
.mahlzeit { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; }
.mahlzeit + .mahlzeit { border-top: 1px solid var(--linie); }
.mahlzeit .bild { width: 56px; height: 56px; border-radius: 14px; background: var(--flaeche-2); display: grid; place-items: center; overflow: hidden; font-size: 28px; }
.mahlzeit .bild img { width: 100%; height: 100%; object-fit: cover; }
.mahlzeit .art { font-size: 12px; font-weight: 600; color: var(--leise); text-transform: uppercase; letter-spacing: 0.06em; }
.mahlzeit .titel { font-weight: 600; }
.mahlzeit .sub { font-size: 13px; color: var(--leise); }
.mahlzeit.erledigt .titel { text-decoration: line-through; text-decoration-color: var(--kohl); text-decoration-thickness: 2px; }

.hinweisbox { background: var(--rotkohl-weich); color: var(--tinte); border-radius: var(--rund); padding: 12px 14px; display: grid; gap: 6px; box-shadow: 0 3px 0 var(--rotkohl-kante); border: 1px solid transparent; }
.hinweisbox .titel { color: var(--rotkohl); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; display: flex; gap: 6px; align-items: center; }
.hinweisbox .titel svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hinweisbox p { margin: 0; font-size: 14px; }
.einkaufbox { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; }
.einkaufbox .bild { width: 52px; height: 52px; border-radius: 14px; background: var(--kartoffel-weich); display: grid; place-items: center; overflow: hidden; font-size: 26px; }
.einkaufbox .bild img { width: 100%; height: 100%; object-fit: cover; }
.pfeil { width: 22px; height: 22px; fill: none; stroke: var(--leise); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-zeilen { display: grid; gap: 8px; font-size: 14px; }
.info-zeilen div { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.info-zeilen svg { width: 20px; height: 20px; fill: none; stroke: var(--kohl); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* Plan */
.zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zahlen div { background: var(--flaeche-2); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.zahlen b { font-family: var(--schrift-kopf); font-size: 21px; font-weight: 650; font-variant-numeric: tabular-nums; }
.zahlen span { font-size: 12px; color: var(--leise); }
.wochenkopf { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 2px 0; }
.plantag { display: grid; grid-template-columns: 50px minmax(0, 1fr) 22px; gap: 12px; align-items: center; padding: 11px 14px; text-decoration: none; }
.plantag + .plantag { border-top: 1px solid var(--linie); }
.plantag .datum { text-align: center; display: grid; }
.plantag .datum small { font-size: 12px; color: var(--leise); font-weight: 600; }
.plantag .datum b { font-family: var(--schrift-kopf); font-size: 20px; font-weight: 650; }
.plantag.heute .datum small { color: var(--kohl); }
.plantag .gerichte { display: grid; gap: 2px; min-width: 0; }
.plantag .gerichte .abend { font-weight: 600; }
.plantag .gerichte .rest { font-size: 13px; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.punkte { display: flex; gap: 4px; margin-top: 3px; }
.punkte i { width: 18px; height: 5px; border-radius: 3px; background: var(--linie); }
.punkte i.an { background: var(--kohl); }

/* Einkauf */
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--flaeche-2); border-radius: 16px; }
.segment a { text-decoration: none; text-align: center; padding: 8px 6px; border-radius: 12px; display: grid; gap: 1px; color: var(--leise); }
.segment a b { font-family: var(--schrift-kopf); font-size: 16px; color: var(--tinte); font-weight: 650; }
.segment a small { font-size: 12px; font-variant-numeric: tabular-nums; }
.segment a[aria-current="true"] { background: var(--flaeche); box-shadow: 0 2px 0 var(--kante); }
.fortschritt { display: grid; gap: 8px; }
.balken { height: 10px; border-radius: 5px; background: var(--flaeche-2); overflow: hidden; }
.balken span { display: block; height: 100%; background: var(--kohl); border-radius: 5px; transition: width 0.3s ease; }
.fortschritt .zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.schalter { border: 1px solid var(--linie); background: var(--flaeche); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
.schalter[aria-pressed="true"] { background: var(--kohl-weich); color: var(--kohl); border-color: var(--kohl); }
.abteilung { overflow: hidden; }
.abteilung > header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px 8px; }
.abteilung > header span { font-size: 13px; color: var(--leise); font-variant-numeric: tabular-nums; white-space: nowrap; }
.abteilung > header .ok { color: var(--kohl); font-weight: 600; }
.posten { display: grid; grid-template-columns: 34px 4.3rem minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--linie); cursor: pointer; min-height: 58px; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.posten:active { background: var(--kohl-weich); }
.posten .menge { font-weight: 650; font-variant-numeric: tabular-nums; }
.posten .text { display: grid; gap: 1px; min-width: 0; }
.posten .name { font-weight: 500; }
.posten .info { font-size: 13px; color: var(--leise); font-variant-numeric: tabular-nums; }
.posten .angebot { justify-self: start; font-size: 12px; color: var(--rotkohl); background: var(--rotkohl-weich); border-radius: 6px; padding: 1px 7px; margin-top: 3px; }
.posten.drin .menge, .posten.drin .name { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.posten.drin .menge, .posten.drin .text { opacity: 0.5; }
.posten .haken { pointer-events: none; }
.posten[aria-pressed="true"] .haken { background: var(--kohl); border-color: var(--kohl); box-shadow: 0 3px 0 var(--kohl-kante); }
.posten[aria-pressed="true"] .haken svg { transform: scale(1); }

/* Rezepte */
.filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 0 max(16px, env(safe-area-inset-left, 0px)) 4px; }
.filter::-webkit-scrollbar { display: none; }
.filter button { flex: none; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--tinte); color: var(--bg); border-color: var(--tinte); }
.raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rezeptkarte { text-decoration: none; overflow: hidden; display: grid; }
.rezeptkarte .bild { aspect-ratio: 1 / 0.82; background: radial-gradient(ellipse at 50% 72%, var(--kohl-weich), transparent 68%), var(--flaeche-2); display: grid; place-items: center; font-size: 54px; overflow: hidden; }
.rezeptkarte .bild img { width: 100%; height: 100%; object-fit: contain; }
.rezeptkarte .text { padding: 10px 12px 12px; display: grid; gap: 3px; }
.rezeptkarte h3 { font-size: 15px; }
.rezeptkarte .sub { font-size: 12px; color: var(--leise); font-variant-numeric: tabular-nums; }

/* Rezept-Detail */
.detail-bild { position: relative; height: 270px; margin: calc(-18px - env(safe-area-inset-top, 0px)) calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 0; background: radial-gradient(ellipse at 50% 72%, var(--kohl-weich), transparent 70%), var(--flaeche-2); border-radius: 0 0 28px 28px; padding-top: env(safe-area-inset-top, 0px); }
.zurueck { position: absolute; left: max(14px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 12px); width: 44px; height: 44px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: 0 3px 0 var(--kante); display: grid; place-items: center; z-index: 2; }
.zurueck svg { width: 22px; height: 22px; fill: none; stroke: var(--tinte); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dreh-hinweis { position: absolute; right: 14px; bottom: 12px; font-size: 12px; color: var(--leise); background: var(--flaeche); border-radius: 999px; padding: 3px 10px; opacity: 0.9; }
.liste { margin: 0; padding: 0; list-style: none; display: grid; }
.liste li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--linie); }
.liste li:first-child { border-top: 0; }
.liste .menge { font-weight: 650; font-variant-numeric: tabular-nums; margin-right: 6px; }
.liste li.drin span { opacity: 0.5; text-decoration: line-through; }
.zutat-knopf { all: unset; display: contents; cursor: pointer; }
.schritte { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.schritte li::before { content: counter(s); width: 32px; height: 32px; border-radius: 10px; background: var(--kohl-weich); color: var(--kohl); font-weight: 700; display: grid; place-items: center; font-family: var(--schrift-kopf); }
.unten-fest { position: sticky; bottom: calc(var(--tabs) + env(safe-area-inset-bottom, 0px) + 12px); z-index: 3; }

/* Kochmodus */
.kochen { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 16px) max(16px, env(safe-area-inset-left, 0px)); }
.kochen-kopf { display: grid; gap: 10px; max-width: 560px; width: 100%; margin: 0 auto; }
.kochen-kopf .zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.segmente { display: flex; gap: 5px; }
.segmente i { flex: 1; height: 6px; border-radius: 3px; background: var(--flaeche-2); }
.segmente i.an { background: var(--kohl); }
.kochen-mitte { max-width: 560px; width: 100%; margin: 0 auto; overflow-y: auto; display: grid; align-content: center; gap: 18px; padding: 12px 0; }
.kochen-mitte .nr { font-family: var(--schrift-kopf); font-weight: 700; color: var(--kohl); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.kochen-mitte p { font-size: clamp(21px, 5.6vw, 27px); line-height: 1.38; margin: 0; font-weight: 500; text-wrap: pretty; }
.kochen-mitte .modell { height: 150px; }
.kochen-mitte .modell canvas { width: 100%; height: 100%; display: block; }
.kochen-fuss { max-width: 560px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.blatt { position: fixed; inset: auto 0 0 0; z-index: 45; background: var(--flaeche); border-radius: 24px 24px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18); max-height: 75vh; overflow-y: auto; padding: 18px max(18px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 18px) max(18px, env(safe-area-inset-left, 0px)); }
.blatt .griff { width: 42px; height: 5px; border-radius: 3px; background: var(--linie); margin: -6px auto 12px; }
.schleier { position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, 0.35); }

/* Anmelden */
.anmelden { min-height: 100vh; display: grid; align-content: center; gap: 18px; max-width: 420px; margin: 0 auto; padding: 24px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px)); }
.anmelden .logo { width: 84px; height: 84px; border-radius: 26px; background: var(--kohl) url('/icons/icon.svg') center/cover; box-shadow: 0 5px 0 var(--kohl-kante); }
.feld { width: 100%; min-height: 52px; border-radius: 14px; border: 2px solid var(--linie); background: var(--flaeche); padding: 0 16px; font-size: 18px; letter-spacing: 0.06em; }
.feld:focus { outline: none; border-color: var(--kohl); }
.fehler { color: var(--rotkohl); font-weight: 600; margin: 0; }
.namen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.namen button { min-height: 64px; border-radius: 16px; border: 1px solid var(--linie); background: var(--flaeche); box-shadow: 0 3px 0 var(--kante); font-family: var(--schrift-kopf); font-size: 18px; font-weight: 650; cursor: pointer; }
.namen button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--kante); }
.namen button[aria-pressed="true"] { background: var(--kohl); color: var(--auf-kohl); border-color: var(--kohl); box-shadow: 0 3px 0 var(--kohl-kante); }
.ich { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linie); background: var(--flaeche); border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 0 var(--kante); }
.ich i { width: 26px; height: 26px; border-radius: 50%; background: var(--kohl); color: var(--auf-kohl); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; }

/* Tab-Leiste */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--flaeche); border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); display: grid; grid-template-columns: repeat(4, 1fr); }
.tabs a { height: var(--tabs); display: grid; place-content: center; justify-items: center; gap: 3px; text-decoration: none; color: var(--leise); font-size: 12px; font-weight: 600; position: relative; }
.tabs a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { color: var(--kohl); }
.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--kohl); }
.tabs .punkt { position: absolute; top: 10px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--rotkohl); }

/* Meldung */
.meldung { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs) + env(safe-area-inset-bottom, 0px) + 14px); z-index: 50; background: var(--tinte); color: var(--bg); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }
.verbindung { font-size: 12px; color: var(--leise); display: inline-flex; align-items: center; gap: 6px; }
.verbindung::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kohl); }
.verbindung.aus::before { background: var(--rotkohl); }

@media (min-width: 700px) {
  .raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .held-bild { height: 250px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
