/* =====================================================================================================
 * Handy-App (Paul 26.09.2026 abends). Eingebunden mit media="(max-width: 767px)" - dieses Blatt erreicht PC und
 * iPad nie. Zusaetzlich steht alles in derselben Abfrage, falls es jemand ohne media-Attribut einbindet.
 * Look Black Iris / Frozen, nur bestehende Tokens (iris.css).
 * ===================================================================================================== */
@media (max-width: 767px) {
:root { --h-tabs: calc(56px + env(safe-area-inset-bottom)); --h-leiste: calc(52px + env(safe-area-inset-top)); --h-rand: 16px; }
html { overscroll-behavior-y: contain; }
input, select, textarea, .input, .textarea, select.input { font-size: 16px !important; }

/* ---- Leiste oben ------------------------------------------------------------------------------------ */
.top { height: var(--h-leiste) !important; padding: env(safe-area-inset-top) 8px 0 var(--h-rand) !important; display: flex !important; align-items: center; justify-content: space-between; gap: 8px; position: sticky; }
body.handy .top .marke { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; min-height: 44px; transition: opacity .2s ease; }
.h-signet { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; flex: none; color: var(--text);
  background: var(--karte); border: 1px solid var(--linie); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--karten-schatten); }
.h-signet svg { width: 18px; height: 18px; }
.top .marke-name { font-family: var(--sans) !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: -0.02em; }
.top .marke-sub, .top .marke-kunde, .top .segmente { display: none !important; }
.top .top-rechts { display: flex !important; align-items: center; gap: 2px; margin-left: auto; }
.top .theme-knopf { width: 44px !important; height: 44px !important; border: 0 !important; background: transparent !important; display: grid; place-items: center; }
body.handy .top .avatar-ziel { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.top .avatar { width: 32px; height: 32px; font-size: 12px; }
.h-leistentitel { position: absolute; left: 50%; bottom: 0; height: 52px; display: flex; align-items: center; transform: translate(-50%, 6px); max-width: calc(100% - 200px);
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.top.h-klein .h-leistentitel { opacity: 1; transform: translate(-50%, 0); }
.top.h-klein .marke-name, .top.h-klein .marke-kunde { opacity: 0; transition: opacity .2s ease; }
/* Kundenlogo (27.09.2026): nur wenn eines gesetzt ist, klein hinter "×" (max. 20 px hoch), nie der Firmenname. */
.top .marke-kunde.hat-logo:not([hidden]) { display: flex !important; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; margin: 0 0 0 6px !important; padding: 0 !important; border: 0 !important; height: auto; transition: opacity .2s ease; }
.top .marke-kunde.hat-logo .marke-x { display: inline; font-size: 12px; color: var(--text-3); }
.top .marke-kunde.hat-logo img { height: auto !important; max-height: 20px; max-width: 64px !important; min-width: 0 !important; min-height: 0 !important; }
.top .marke-kunde.hat-logo .marke-kunde-name { display: none !important; }
:root[data-theme="dark"] .top .marke-kunde.hat-logo img { max-height: 16px; padding: 2px 5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top .marke-kunde.hat-logo img { max-height: 16px; padding: 2px 5px; } }
/* Glocke (Mitteilungen) mit 44-px-Tippflaeche, Punkt 8 px */
.glocke { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--text); display: grid; place-items: center; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.glocke svg { width: 22px; height: 22px; }
.glocke-punkt { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 2px var(--karte-glas); }
.mitteilungen { position: fixed; z-index: 450; left: 8px; right: 8px !important; width: auto; border-radius: 18px; padding: 14px 8px 8px;
  background: var(--karte-glas); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--linie); box-shadow: var(--schwebe-schatten); }
.mitteilungen[hidden] { display: none; }
.mt-titel { margin: 0 12px 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--text-3); }
.mt-liste { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow: auto; display: grid; gap: 2px; }
.mt-eintrag { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; padding: 12px; border-radius: 12px; }
.mt-eintrag.ungelesen { background: var(--flaeche); }
.mt-punkt { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--text-3); }
.mt-punkt.gut { background: var(--gut); } .mt-punkt.schlecht { background: var(--schlecht); } .mt-punkt.wartet { background: var(--wartet); }
.mt-kopf { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.mt-zusatz { margin: 2px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.35; }
.mt-link { min-height: 44px; margin: -6px 0 -10px; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 600; cursor: pointer; }
.mt-zeit { font-size: 12px; color: var(--text-3); white-space: nowrap; padding-top: 2px; }
.mt-leer { margin: 0; padding: 8px 12px 14px; font-size: 15px; color: var(--text-2); }

/* ---- Buehne: Platz fuer Tab-Leiste und "+"-Knopf ---------------------------------------------------- */
body.handy .stage, body.handy .stage.breit { padding: 8px var(--h-rand) calc(var(--h-tabs) + 96px) !important; max-width: none !important; }
.h-gross { font-size: 34px !important; font-weight: 800 !important; letter-spacing: -0.04em !important; line-height: 1.1; margin: 6px 0 10px !important; transform-origin: left center; will-change: transform, opacity; }

/* ---- Tab-Leiste unten ------------------------------------------------------------------------------- */
.h-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; height: var(--h-tabs); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--glas); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-top: .5px solid var(--linie-stark); }
.h-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px; border: 0; background: transparent; color: var(--text-3); font: 500 10.5px/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.h-tab svg { width: 24px; height: 24px; }
.h-tab[aria-current="page"] { color: var(--akzent); font-weight: 600; }
.h-tab:active { transform: scale(.94); }
.h-tab:focus-visible { outline: 2px solid var(--aktion); outline-offset: -4px; border-radius: 12px; }

/* ---- "+"-Knopf ------------------------------------------------------------------------------------ */
.h-fab { position: fixed; right: 16px; bottom: calc(var(--h-tabs) + 16px); z-index: 151; width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--aktion); color: var(--aktion-text); box-shadow: 0 14px 30px rgba(8, 8, 19, .32), 0 4px 10px rgba(8, 8, 19, .2); cursor: pointer; transition: transform .2s var(--kurve-auf); -webkit-tap-highlight-color: transparent; }
.h-fab:active { transform: scale(.92); }
.h-fab:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
body:has(#rueck) .h-fab { transform: translateY(-64px); }
body:has(#sheet-overlay:not([hidden])) .h-fab { opacity: 0; pointer-events: none; }
body:has(#sheet-overlay:not([hidden])) .rueck { display: none; }

/* ---- Toasts und Rueckgaengig ueber der Tab-Leiste (Toasts auch ueber dem "+"-Knopf, 27.09.2026) ----- */
.toasts { top: auto !important; bottom: calc(var(--h-tabs) + 88px) !important; }
.toast { animation: h-toast-ein .26s var(--kurve-auf) both !important; }
.toast.geht { transform: translateY(6px) !important; }
@keyframes h-toast-ein { from { opacity: 0; transform: translateY(10px); } }
.rueck { bottom: calc(var(--h-tabs) + 12px) !important; left: 16px !important; right: 16px !important; width: auto !important; }

/* Fusszeile ueber der Tab-Leiste, nichts verdeckt (27.09.2026) */
body.handy .app-fuss { padding: 0 16px calc(var(--h-tabs) + 88px); margin-top: calc(-1 * (var(--h-tabs) + 72px)); }
body.handy .app-fuss a, body.handy .app-fuss .link { min-height: 44px; }

/* ---- Ziehen zum Aktualisieren ---------------------------------------------------------------------- */
.h-ziehen { position: fixed; left: 50%; top: calc(var(--h-leiste) + 4px); z-index: 119; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--karte-glas); border: 1px solid var(--linie); color: var(--text-3); box-shadow: var(--karten-schatten); opacity: 0; transform: translate(-50%, -40px); pointer-events: none; transition: opacity .15s ease; }
.h-ziehen.zeigt { opacity: 1; }
.h-ziehen.bereit { color: var(--akzent); }
.h-ziehen.dreht svg { animation: h-drehen .8s linear infinite; }
@keyframes h-drehen { to { transform: rotate(360deg); } }

/* ---- Blatt mit Griff -------------------------------------------------------------------------------- */
.sheet-overlay, .sheet-overlay.seite { align-items: end !important; justify-items: stretch !important; }
.sheet, .sheet-overlay.seite .sheet { width: 100% !important; height: auto !important; max-height: calc(100dvh - env(safe-area-inset-top) - 24px) !important; border-radius: 22px 22px 0 0 !important;
  padding: 26px var(--h-rand) max(22px, calc(env(safe-area-inset-bottom) + 16px)) !important; animation: hoch var(--dauer) var(--kurve) both !important; overscroll-behavior: contain; }
.h-griff { position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--linie-stark); }
.h-griff::after { content: ""; position: absolute; inset: -14px -40px; }
.sheet-close { width: 44px !important; height: 44px !important; }

/* ---- Woche ----------------------------------------------------------------------------------------- */
.h-woche .h-datumzeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; }
.h-datum { margin: 0; font-size: 15px; color: var(--text-2); min-width: 0; }
/* Status als Text mit Punkt, antippen pausiert bzw. setzt fort (27.09.2026) - keine Pille. */
.h-automatik { flex: none; position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none;
  font: 500 15px var(--sans); color: var(--text-2); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.h-automatik:active { opacity: .6; }
.h-puls-gruen { width: 7px; height: 7px; border-radius: 50%; background: var(--gut); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gut) 50%, transparent); animation: h-puls 2s ease-out infinite; }
.h-automatik.aus .h-puls-gruen { background: var(--wartet); animation: none; }
@keyframes h-puls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gut) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
.h-woche .wk-hinweis, .h-woche .h-verify { margin-bottom: 14px; }
.h-fk { padding: 4px 2px 0; margin: 0 0 18px; }
.h-fk-oben { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.h-fk-titel { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.h-fk-naechster { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.h-fk-naechster .puls { width: 7px; height: 7px; background: var(--akzent); animation: none; opacity: 1; transform: none; }
.h-fk-alle { flex: none; position: relative; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--aktion); color: var(--aktion-text); font: 600 13px var(--sans); cursor: pointer; }
.h-fk-alle::after { content: ""; position: absolute; inset: -5px 0; }
.h-fk-alle:active { transform: scale(.96); }
.h-fk-balken { margin-top: 10px; height: 3px; border-radius: 2px; background: var(--flaeche); overflow: hidden; }
.h-fk-balken span { display: block; height: 100%; border-radius: 3px; background: var(--akzent); transition: width .9s var(--kurve-auf); }

.h-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--h-rand)) 18px; padding: 2px var(--h-rand) 4px; scroll-snap-type: x proximity; scroll-padding-inline: var(--h-rand); scrollbar-width: none; }
.h-chips::-webkit-scrollbar { display: none; }
.h-chip { flex: none; width: 52px; height: 58px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; scroll-snap-align: start; cursor: pointer;
  background: var(--karte); border: 1px solid var(--linie); color: var(--text); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); font-family: var(--sans); -webkit-tap-highlight-color: transparent; }
.h-chip span { font-size: 11px; color: var(--text-3); font-weight: 500; }
.h-chip b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.h-chip.alle { font-size: 14px; font-weight: 700; }
.h-chip[aria-pressed="true"] { background: var(--aktion); color: var(--aktion-text); border-color: var(--aktion); }
.h-chip[aria-pressed="true"] span { color: var(--aktion-text); opacity: .75; }
.h-chip:active { transform: scale(.95); }

.h-kanal { margin: 0 0 22px; }
.h-kanal-kopf { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 20px !important; font-weight: 800 !important; letter-spacing: -0.02em; }
.h-kanal-name { flex: 1; }
.h-kanal-tipp { font-size: 12px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.h-reihe { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(-1 * var(--h-rand)); padding: 4px var(--h-rand) 14px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--h-rand); scrollbar-width: none; }
.h-reihe::-webkit-scrollbar { display: none; }
.h-slot { flex: none; scroll-snap-align: start; }
.h-slot[hidden] { display: none; }
.h-karte { position: relative; width: 256px; border-radius: 22px; overflow: hidden; background: var(--karte); border: 1px solid var(--linie); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--karten-schatten); }
.h-karte.li { width: 282px; }
.h-karte-innen { position: relative; z-index: 1; background: inherit; border-radius: inherit; will-change: transform; }
.h-karte.wischt .h-karte-innen, .h-karte.h-hinweis .h-karte-innen { background: var(--karte-glas); }
.h-bild { position: relative; display: block; width: 100%; height: 300px; padding: 0; border: 0; border-radius: 0; overflow: hidden; cursor: pointer; background: var(--flaeche); }
.h-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-bild .kt-h { position: absolute; inset: auto 16px 18px; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.2; text-align: left; }
.h-bildchip { position: absolute; top: 10px; left: 10px; }
.h-zeitchip { position: absolute; top: 10px; right: 10px; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(8, 8, 19, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap; }
.h-litext { position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; height: 300px; padding: 14px 16px; border: 0; background: var(--flaeche); color: var(--text); text-align: left; cursor: pointer; font-family: var(--sans); overflow: hidden; }
.h-litext .h-zeitchip { position: static; background: var(--karte); color: var(--text-2); border: 1px solid var(--linie); }
.h-li-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h-li-kanal { font-size: 12px; font-weight: 700; color: var(--li); letter-spacing: .02em; }
.h-li-text { font-size: 14px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden; }
.h-karte.leer .h-litext .h-zeitchip { position: absolute; }
.h-unten { padding: 12px 14px 12px; }
.h-unten.h-wisch { touch-action: pan-y; }
.h-titel { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; min-height: calc(2 * 1.3em); margin: 0; padding: 0; border: 0; background: none; color: var(--text);
  font: 700 15px/1.3 var(--sans); letter-spacing: -0.01em; text-align: left; cursor: pointer; }
.h-status { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 44px; font-size: 13px; color: var(--text-2); }
.h-status-t { flex: 1; min-width: 0; }
.h-karte .haken, .h-karte .haken.gross { width: 44px !important; height: 44px !important; flex: none; margin-left: auto; }
.h-karte .haken svg { width: 22px; height: 22px; }
.h-karte.leer { opacity: .7; }
.h-karte.leer .h-status { color: var(--text-3); gap: 8px; }
/* Wischen: gruene Flaeche "Frei" (rechts wischen), graue "Zurueck" (links wischen) */
.h-wisch-grund { position: absolute; inset: 0; z-index: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 18px 30px; border-radius: inherit; font-weight: 700; font-size: 15px; }
.h-wisch-grund span { display: inline-flex; align-items: center; gap: 6px; opacity: 0; transition: opacity .15s ease, transform .15s ease; }
.h-wisch-grund svg { width: 20px; height: 20px; }
.h-karte.nach-rechts .h-wisch-grund, .h-karte.h-hinweis .h-wisch-grund { background: var(--gut); color: #fff; }
.h-karte.nach-links .h-wisch-grund { background: var(--text-3); color: #fff; justify-content: flex-end; }
.h-karte.nach-rechts .h-frei, .h-karte.h-hinweis .h-frei, .h-karte.nach-links .h-zurueck { opacity: .85; }
.h-karte.nach-links .h-frei, .h-karte.nach-rechts .h-zurueck, .h-karte.h-hinweis .h-zurueck { display: none; }
.h-karte.rastet .h-frei, .h-karte.rastet .h-zurueck { opacity: 1; transform: scale(1.08); }
.h-karte.h-hinweis .h-karte-innen { animation: h-wackeln 1.6s var(--kurve-auf) both; }
@keyframes h-wackeln { 0%, 100% { transform: none; } 20% { transform: translateX(64px); } 40% { transform: translateX(0); } 55% { transform: translateX(28px); } 70% { transform: none; } }

/* ---- Kalender -------------------------------------------------------------------------------------- */
.h-kalender .kal-koerper { display: block; }
.h-kal-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.h-rund { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--text); cursor: pointer; position: relative;
  background: var(--karte); border: 1px solid var(--linie); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--karten-schatten); }
.h-rund::after { content: ""; position: absolute; inset: -2px; }
.h-rund:active { transform: scale(.94); }
.h-kal-monat { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.h-kal-monat b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.h-kal-monat span { font-size: 12px; color: var(--text-3); }
.h-ks { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 6px; border-radius: 20px; margin: 0 0 14px; touch-action: pan-y;
  background: var(--karte); border: 1px solid var(--linie); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--karten-schatten); }
.h-ks-tag { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 64px; padding: 7px 0 6px; border: 0; border-radius: 14px; background: transparent; color: var(--text); cursor: pointer; font-family: var(--sans); -webkit-tap-highlight-color: transparent; }
.h-ks-tag span { font-size: 11px; color: var(--text-3); font-weight: 500; }
.h-ks-tag b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.h-ks-tag i { display: flex; gap: 3px; height: 6px; }
.h-ks-tag em { width: 5px; height: 5px; border-radius: 50%; background: var(--ig); }
.h-ks-tag em.li { background: var(--li); }
.h-ks-tag.heute { background: var(--flaeche); }
.h-ks-tag.heute span { color: var(--akzent); font-weight: 700; }
.h-ks-tag.ist-wahl { background: var(--aktion); color: var(--aktion-text); }
.h-ks-tag.ist-wahl span { color: var(--aktion-text); opacity: .8; }
.h-ks-tag.ist-wahl em { box-shadow: 0 0 0 1.5px var(--aktion-text); }
.h-seg { display: flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--flaeche); margin: 0 0 18px; }
.h-seg-k { flex: 1; min-height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 500 14px var(--sans); cursor: pointer; position: relative; }
.h-seg-k::after { content: ""; position: absolute; inset: -4px 0; }
.h-seg-k[aria-pressed="true"] { background: var(--karte-glas); color: var(--text); font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.h-tagtitel { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; font-size: 20px !important; font-weight: 800 !important; letter-spacing: -0.02em; }
.h-tagtitel span { font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.h-zeitleiste { display: grid; gap: 12px; }
.h-zl-zeile { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; position: relative; }
.h-zl-zeit { font-size: 13px; font-weight: 700; padding-top: 10px; position: relative; height: 100%; }
.h-zl-zeit::after { content: ""; position: absolute; left: 18px; top: 32px; bottom: -12px; width: 1px; background: var(--linie-stark); }
.h-zl-zeile:last-child .h-zl-zeit::after { display: none; }
.h-zl-karte { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px; border-radius: 18px; text-align: left; color: var(--text); cursor: pointer; font-family: var(--sans);
  background: var(--karte); border: 1px solid var(--linie); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--karten-schatten); }
.h-zl-karte:active { transform: scale(.98); }
.h-zl-bild { flex: none; width: 64px; height: 80px; border-radius: 12px; overflow: hidden; background: var(--flaeche); display: grid; place-items: center; }
.h-zl-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-zl-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.h-zl-kanal { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.h-zl-titel { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-zl-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.h-zl-status .kal-status { position: static; }
.h-leer { padding: 18px 0; }

/* ---- Analytics ------------------------------------------------------------------------------------- */
.h-an-gross, .h-an-karte { border-radius: 22px; padding: 18px 16px; margin: 0 0 12px; background: var(--karte); border: 1px solid var(--linie); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--karten-schatten); }
.h-an-l { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-3); }
.h-an-zahl { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.h-an-zahl b { font-size: 56px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.h-an-pille { height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--gut); background: color-mix(in srgb, var(--gut) 16%, transparent); }
.h-an-pille.grau { color: var(--text-2); background: var(--flaeche); }
.h-an-satz { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.h-an-kurve { margin: 6px 0 0; color: var(--akzent); }
.h-an-kurve svg { display: block; width: 100%; height: 120px; overflow: visible; }
.h-an-li { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: h-zeichnen 1.1s var(--kurve-auf) .1s forwards; }
.h-an-fl { opacity: 0; animation: h-einblenden .6s ease .7s forwards; }
@keyframes h-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes h-einblenden { to { opacity: 1; } }
.h-an-achse { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--text-3); }
.h-an-leer { margin: 8px 0 0; }
.h-an-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; }
.h-an-kz { display: flex; flex-direction: column; gap: 4px; border-radius: 20px; padding: 14px; background: var(--karte); border: 1px solid var(--linie); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--karten-schatten); }
.h-an-kz-l { font-size: 12px; font-weight: 600; color: var(--text-3); }
.h-an-kz b { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.h-an-aend { font-size: 12px; color: var(--text-3); }
.h-an-aend.gut { color: var(--gut); font-weight: 600; }
.h-an-b { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; margin-top: 10px; align-items: start; }
.h-an-b img { width: 72px; height: 90px; object-fit: cover; border-radius: 12px; }
.h-an-b p { margin: 0 0 4px; }
.h-an-b-titel { font-size: 15px; font-weight: 700; line-height: 1.3; }
.h-an-b-zahlen { font-size: 13px; color: var(--text-2); }
.h-an-follower { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.h-an-follower > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.h-an-fzahl { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.h-an-mini { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.h-an-mini i { width: 9px; border-radius: 3px 3px 1px 1px; background: var(--akzent); opacity: .85; }
.h-an-mini i:last-child { opacity: 1; }
.h-an-fuss { margin: 14px 2px 0; }

/* ---- Einstellungen --------------------------------------------------------------------------------- */
.h-profil { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; margin: 4px 0 22px; border-radius: 22px; text-align: left; color: var(--text); cursor: pointer; font-family: var(--sans);
  background: var(--karte); border: 1px solid var(--linie); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--karten-schatten); }
.h-avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; font-weight: 700; background: var(--aktion); color: var(--aktion-text); }
.h-profil-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.h-profil-t b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-profil-t span { font-size: 13px; color: var(--text-2); }
.h-chev { flex: none; color: var(--text-3); display: grid; place-items: center; }
.h-gruppe-titel { margin: 0 0 8px 16px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--text-3); }
.h-gruppe { border-radius: 18px; overflow: hidden; margin: 0 0 24px; background: var(--karte); border: 1px solid var(--linie); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--karten-schatten); }
.h-zeile { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; border: 0; background: transparent; color: var(--text); text-align: left; font-family: var(--sans); cursor: pointer; }
.h-zeile + .h-zeile::before { content: ""; position: absolute; top: 0; right: 0; left: 56px; height: .5px; background: var(--linie-stark); }
.h-schalter-zeile + .h-schalter-zeile::before { left: 16px; }
.h-zeile:active { background: var(--flaeche); }
.h-kachel { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--aktion); color: var(--aktion-text); }
.h-kachel.bilder { background: var(--ig); color: #fff; }
.h-kachel.kanaele { background: var(--li); color: #fff; }
.h-zeile-t { flex: 1; min-width: 0; font-size: 16px; display: flex; flex-direction: column; gap: 2px; }
.h-zeile-t small { font-size: 12.5px; color: var(--text-3); }
.h-zeile-info { max-width: 44%; font-size: 14px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-schalter { position: relative; flex: none; width: 51px; height: 31px; }
.h-schalter input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.h-schalter i { position: absolute; inset: 0; border-radius: 16px; background: var(--linie-stark); transition: background .2s ease; }
.h-schalter i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .22s var(--kurve-auf); }
.h-schalter input:checked + i { background: var(--gut); }
.h-schalter input:checked + i::after { transform: translateX(20px); }
.h-schalter input:focus-visible + i { outline: 2px solid var(--aktion); outline-offset: 2px; }
.h-schalter input:disabled + i { opacity: .6; }
.h-gelernt { border-radius: 22px; padding: 16px; margin: 0 0 24px; background: var(--karte); border: 1px solid var(--linie); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--karten-schatten); }
.h-gelernt-kopf { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.h-gelernt ul { margin: 0 0 6px; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--text-2); }
.h-gelernt .link { min-height: 44px; display: inline-flex; align-items: center; }
.h-abmelden { justify-content: center; color: var(--schlecht); font-size: 16px; font-weight: 600; }
.h-unterseite.rein { animation: h-von-rechts .32s var(--kurve-auf) both; }
@keyframes h-von-rechts { from { transform: translateX(40%); opacity: 0; } to { transform: none; opacity: 1; } }
.h-zurueck { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 0 -6px; padding: 0 6px; border: 0; background: none; color: var(--akzent); font: 500 16px var(--sans); cursor: pointer; }
.h-unterseite .einst-inhalt { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .h-puls-gruen, .h-karte.h-hinweis .h-karte-innen, .h-unterseite.rein, .h-ziehen.dreht svg { animation: none !important; }
  .h-an-li { animation: none; stroke-dashoffset: 0; }
  .h-an-fl { animation: none; opacity: 1; }
  .h-fk-balken span { transition: none; }
}
}
