/* Schaltzentrale — Freie Waldorfschule Soest, Hugo-Kükelhaus-Schule.
   Warm, organisch, klar. Waldorf-Erdtöne mit lebendigem Grün.
   Bricolage Grotesque Headings, DM Sans Body, oklch Farben. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000; font-display: swap;
}

/* ---------- Animationen ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px oklch(0.46 0.12 155 / 0.3); }
  50% { box-shadow: 0 4px 24px oklch(0.46 0.12 155 / 0.5), 0 0 0 8px oklch(0.46 0.12 155 / 0.08); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes ripple {
  0% { transform: scale(0.85); opacity: 0.6; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes loadBar {
  from { width: 0; }
}
@keyframes gentleSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

:root {
  --grund: oklch(0.995 0.003 85);
  --grund-erhoben: oklch(0.99 0.005 85);
  --tinte: oklch(0.18 0.025 155);
  --tinte-mittel: oklch(0.38 0.02 155);
  --tinte-leise: oklch(0.52 0.015 155);
  --gruen: oklch(0.46 0.12 155);
  --gruen-hell: oklch(0.54 0.12 155);
  --gruen-tief: oklch(0.22 0.06 155);
  --gruen-glow: oklch(0.46 0.12 155 / 0.12);
  --band: oklch(0.97 0.008 90);
  --band-kraeftig: oklch(0.94 0.012 90);
  --linie: oklch(0.91 0.008 90);
  --linie-fein: oklch(0.945 0.005 90);
  --sand: oklch(0.72 0.09 70);
  --sand-band: oklch(0.95 0.025 75);
  --rot: oklch(0.52 0.18 25);
  --rot-band: oklch(0.95 0.03 25);
  --r: 14px;
  --r-gross: 20px;
  --r-xl: 28px;
  --schatten-xs: 0 1px 2px oklch(0.2 0.02 90 / 0.05);
  --schatten: 0 2px 4px oklch(0.2 0.02 90 / 0.04), 0 8px 20px oklch(0.2 0.02 90 / 0.08);
  --schatten-md: 0 4px 12px oklch(0.2 0.02 90 / 0.06), 0 16px 40px oklch(0.2 0.02 90 / 0.1);
  --schatten-lg: 0 8px 24px oklch(0.2 0.02 90 / 0.08), 0 24px 56px oklch(0.2 0.02 90 / 0.12);
  --kopf: 56px;
  --fuss: calc(60px + env(safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--band); color: var(--tinte);
  min-height: 100vh; min-height: 100svh;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(0.78 0.04 155); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gruen); }

h1, h2, h3, .anzeige {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 8px;
  text-wrap: balance; color: var(--tinte);
}
h1 { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
h2 { font-size: 18px; font-weight: 650; margin-top: 20px; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0 0 12px; }
a { color: var(--gruen); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
small, .leise { color: var(--tinte-leise); font-size: 13.5px; }
.mittig { text-align: center; }
.verborgen { display: none !important; }
img { max-width: 100%; }

/* ========== Kopf — schwebend, Gradient-Akzent ========== */
.kopf {
  position: sticky; top: 0; z-index: 30;
  background: oklch(0.99 0.003 155 / 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid oklch(0.90 0.01 155 / 0.5);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: var(--kopf);
}
.kopf .wortmarke {
  display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 16px;
  font-family: "Bricolage Grotesque", sans-serif; letter-spacing: -0.015em;
  color: var(--tinte);
}
.kopf .zeichen {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gruen), var(--gruen-hell));
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  box-shadow: 0 1px 4px oklch(0.46 0.12 155 / 0.18);
}
.kopf .rest { margin-left: auto; display: flex; align-items: center; gap: 2px; }

.zurueck-btn {
  background: none; border: 0; padding: 6px; min-height: 0; border-radius: 10px;
  color: var(--gruen); cursor: pointer; display: flex; align-items: center;
  transition: background 0.15s, transform 0.1s;
}
.zurueck-btn:active { background: var(--band); transform: scale(0.92); }

/* ========== Flächen ========== */
.seite {
  padding: 20px 20px calc(var(--fuss) + 12px); max-width: 680px; margin: 0 auto;
  width: 100%; box-sizing: border-box;
  animation: fadeInUp 0.3s ease-out;
}

/* Karten — Tiefe, Hover, Akzentstreifen */
.karte {
  background: var(--grund);
  border: 1px solid oklch(0.92 0.006 90);
  border-radius: var(--r);
  padding: 18px; margin: 0 0 12px;
  box-shadow: var(--schatten);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.karte:active { transform: translateY(-1px); box-shadow: var(--schatten-md); }
@media (hover: hover) {
  .karte:hover { transform: translateY(-2px); box-shadow: var(--schatten-md); }
}
.karte h3 {
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.karte h3::before {
  content: ''; width: 4px; height: 18px; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--gruen), var(--gruen-hell));
}
.karte.band {
  background: var(--band); border-color: var(--linie-fein);
  box-shadow: none; padding: 20px;
}
.karte.hinweis {
  background: var(--sand-band); border-color: oklch(0.88 0.04 85); box-shadow: none;
  border-left: 4px solid oklch(0.72 0.12 75);
  padding-left: 16px;
}
.karte.warnung {
  background: var(--rot-band); border-color: oklch(0.88 0.04 27); box-shadow: none;
  border-left: 4px solid var(--rot);
  padding-left: 16px;
}

.reihe { display: flex; gap: 10px; align-items: center; }
.reihe.zwischen { justify-content: space-between; margin-bottom: 12px; }
.reihe.umbruch { flex-wrap: wrap; }
.spalte { display: flex; flex-direction: column; gap: 10px; }
.raster { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ========== Knöpfe — Gradient, lebendiger ========== */
button, .knopf {
  font: inherit; font-size: 15px; font-weight: 600; border-radius: 12px; border: 1px solid transparent;
  padding: 11px 20px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  justify-content: center; min-height: 46px;
  transition: transform 0.12s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.haupt {
  background: linear-gradient(135deg, var(--gruen), var(--gruen-hell));
  color: #fff;
  box-shadow: 0 2px 4px oklch(0.46 0.12 155 / 0.2), 0 6px 16px oklch(0.46 0.12 155 / 0.2);
}
@media (hover: hover) {
  .haupt:hover {
    box-shadow: 0 2px 6px oklch(0.46 0.12 155 / 0.25), 0 8px 20px oklch(0.46 0.12 155 / 0.25);
    transform: translateY(-1px);
  }
}
.haupt:active { transform: scale(0.96) translateY(0); box-shadow: 0 1px 3px oklch(0.46 0.12 155 / 0.3); }
.haupt[disabled] { opacity: .45; box-shadow: none; pointer-events: none; }
.zweit {
  background: var(--grund); color: var(--tinte); border-color: var(--linie);
  box-shadow: var(--schatten-xs);
}
@media (hover: hover) {
  .zweit:hover { background: oklch(0.97 0.015 155); border-color: oklch(0.84 0.03 155); }
}
.zweit:active { background: var(--band); transform: scale(0.97); }
.leiseknopf {
  background: transparent; color: var(--tinte-leise); border: 0; padding: 8px 12px; min-height: 0;
  font-weight: 550; border-radius: 10px;
}
.leiseknopf:active { background: var(--band); }
@media (hover: hover) {
  .leiseknopf:hover { color: var(--gruen); }
}
.gefahr { background: var(--grund); color: var(--rot); border-color: oklch(0.82 0.06 27); }
.klein { padding: 7px 14px; min-height: 36px; font-size: 14px; border-radius: 10px; }

/* ========== Formulare — großzügig, focus-glow ========== */
label.feld { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; color: var(--tinte-mittel); }
input[type=text], input[type=email], input[type=search], input[type=date], input[type=datetime-local],
input[type=number], input[type=tel], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--tinte); background: var(--grund);
  border: 1.5px solid var(--linie); border-radius: 12px; padding: 12px 16px; min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea { min-height: 100px; resize: vertical; }
.reihe input, .reihe select, .reihe textarea { width: auto; min-width: 0; }
dialog .inhalt input, dialog .inhalt select, dialog .inhalt textarea { max-width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--gruen);
  box-shadow: 0 0 0 4px var(--gruen-glow);
  background: var(--grund-erhoben);
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gruen); outline-offset: 2px;
}
.haken { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 15px; }
.haken input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--gruen); border-radius: 6px; }

/* ========== Marken / Badges — mit Schatten ========== */
.marke {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600;
  border-radius: 8px; padding: 4px 12px; background: var(--band-kraeftig); color: var(--tinte-mittel);
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px oklch(0.2 0.02 90 / 0.06);
}
.marke.gruen { background: oklch(0.94 0.03 155); color: oklch(0.3 0.08 155); }
.marke.sand { background: var(--sand-band); color: oklch(0.35 0.08 80); }
.marke.rot { background: var(--rot-band); color: var(--rot); }
.marke.grau { background: var(--band); color: var(--tinte-leise); }

/* ========== Reihenknopf — interaktiver ========== */
.reihenknopf {
  display: flex; width: 100%; text-align: left; background: none; border: 0; border-radius: 12px;
  padding: 14px 8px; min-height: 0; color: var(--tinte); font-weight: 500; gap: 14px; align-items: center;
  transition: background 0.12s, transform 0.1s;
}
.reihenknopf:active { background: var(--band-kraeftig); transform: scale(0.99); }
@media (hover: hover) {
  .reihenknopf:hover { background: var(--band); }
  .reihenknopf:hover .pfeil { transform: translateX(3px); color: var(--gruen); }
}
.reihenknopf .text { flex: 1; min-width: 0; }
.reihenknopf strong { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.reihenknopf .leise { font-size: 13.5px; line-height: 1.4; margin-top: 1px; display: block; }
.reihenknopf .pfeil {
  color: var(--linie); flex: none; font-size: 20px; font-weight: 300;
  transition: transform 0.2s ease, color 0.2s;
}

/* ========== Listen ========== */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li {
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, var(--linie-fein) 15%, var(--linie-fein) 85%, transparent 100%) 1;
}
.liste > li:last-child { border-bottom: 0; border-image: none; }
/* Einträge nicht aneinanderkleben (17.09.); Chat-Liste hat eigene Innenabstände */
.liste:not(.chat-liste) > li { padding: 12px 0; }
.liste:not(.chat-liste) > li:first-child { padding-top: 4px; }
/* Seitenkopf mit mehreren Knöpfen darf umbrechen statt rechts aus dem Bild zu laufen */
.reihe.zwischen:has(> .seiten-kopf) { flex-wrap: wrap; row-gap: 8px; }
.zeile-an { display: flex; gap: 12px; align-items: flex-start; }
.zeile-an .text { flex: 1; min-width: 0; }
.abschneiden { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== Fußleiste — Glas, Glow ========== */
.fuss {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: oklch(0.99 0.003 155 / 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid oklch(0.90 0.01 155 / 0.5);
  padding: 0 4px; padding-bottom: env(safe-area-inset-bottom, 0px);
}
.fuss button {
  background: none; border: 0; border-radius: 0; padding: 4px 2px 5px; min-height: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 500; color: var(--tinte-leise);
  transition: color 0.2s; position: relative; letter-spacing: 0.01em;
}
.fuss button[aria-current="page"] { color: var(--gruen); font-weight: 600; }
.fuss button[aria-current="page"] .tab-pill {
  background: oklch(0.46 0.12 155 / 0.1);
}
.fuss button[aria-current="page"] svg { stroke-width: 2.2; }
.fuss .tab-pill {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 30px; border-radius: 15px;
  transition: background 0.25s;
}
.fuss button:active .tab-pill { background: oklch(0.46 0.12 155 / 0.06); }
.fuss svg { width: 24px; height: 24px; stroke-width: 1.7; }
.fuss .punkt {
  position: absolute; top: 1px; left: 50%; transform: translateX(8px);
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px; background: var(--rot); color: #fff; font-size: 9px;
  font-weight: 700; line-height: 16px; text-align: center;
  box-shadow: 0 1px 3px oklch(0.52 0.18 25 / 0.25);
}

/* Aufnahme-Tab */
.fuss .aufnahme-tab {
  padding: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; padding-bottom: 5px;
}
.aufnahme-kreis {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gruen), var(--gruen-hell));
  display: flex; align-items: center; justify-content: center;
  margin-top: -10px;
  box-shadow: 0 2px 10px oklch(0.46 0.12 155 / 0.22);
  transition: transform 0.15s, box-shadow 0.15s;
}
.aufnahme-kreis svg { width: 20px; height: 20px; color: #fff; stroke-width: 2; }
.fuss .aufnahme-tab:active .aufnahme-kreis { transform: scale(0.93); }
.fuss .aufnahme-tab[aria-current="page"] .aufnahme-kreis {
  box-shadow: 0 2px 10px oklch(0.46 0.12 155 / 0.3), 0 0 0 2px oklch(0.94 0.03 155);
}

/* ========== Segmented Control ========== */
.segsteuerung {
  display: flex; background: var(--band-kraeftig); border-radius: 12px; padding: 3px; gap: 2px;
}
.segsteuerung button {
  flex: 1; padding: 8px 14px; border: 0; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 550; background: transparent;
  color: var(--tinte-leise); min-height: 0; cursor: pointer;
  transition: all 0.2s;
}
.segsteuerung button.aktiv {
  background: var(--grund); color: var(--tinte); font-weight: 650;
  box-shadow: var(--schatten);
}

/* ========== Kalender-Raster ========== */
.kal-raster {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 3px; text-align: center; font-size: 14px;
}
.kal-raster .kopf-tag {
  font-weight: 650; font-size: 11px; color: var(--tinte-leise);
  padding: 8px 0; text-transform: uppercase; letter-spacing: 0.06em;
}
.kal-raster .tag {
  padding: 8px 2px; border-radius: 10px; font-variant-numeric: tabular-nums;
  cursor: pointer; min-height: 38px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-weight: 500; transition: background 0.15s, transform 0.1s;
}
.kal-raster .tag:active { transform: scale(0.92); }
@media (hover: hover) {
  .kal-raster .tag:hover { background: var(--band-kraeftig); }
}
.kal-raster .tag.heute {
  background: linear-gradient(135deg, var(--gruen), var(--gruen-hell));
  color: #fff; font-weight: 700;
  box-shadow: 0 2px 8px oklch(0.46 0.12 155 / 0.3);
}
.kal-raster .tag.termin {
  background: oklch(0.94 0.03 155); color: oklch(0.3 0.08 155); font-weight: 650;
}
.kal-raster .tag.heute.termin {
  background: linear-gradient(135deg, var(--gruen), var(--gruen-hell)); color: #fff;
  box-shadow: 0 2px 8px oklch(0.46 0.12 155 / 0.3), 0 0 0 2.5px oklch(0.94 0.03 155);
}
.kal-raster .tag.gedimmt { color: var(--tinte-leise); opacity: 0.3; }

/* Kalender-Listenansicht */
.kal-tag-spalte { text-align: center; min-width: 44px; flex-shrink: 0; }
.kal-tag-spalte .wochentag {
  font-size: 11px; text-transform: uppercase; font-weight: 650;
  color: var(--tinte-leise); letter-spacing: 0.05em;
}
.kal-tag-spalte .tageszahl {
  font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.kal-tag-spalte.heute .tageszahl { color: var(--gruen); }

/* Monat-Navigation */
.kal-monat-nav {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
}
.kal-monat-nav h2 { margin: 0; flex: 1; text-align: center; font-size: 18px; }
.kal-monat-nav button {
  background: var(--band); border: 0; border-radius: 10px; width: 38px; height: 38px;
  min-height: 0; padding: 0; display: flex; align-items: center; justify-content: center;
  color: var(--tinte); cursor: pointer; transition: background 0.12s, transform 0.1s;
}
.kal-monat-nav button:active { background: var(--band-kraeftig); transform: scale(0.92); }

/* ========== Aufnahme-Seite — Hero ========== */
.aufnahme-seite {
  display: flex; flex-direction: column; align-items: center;
  gap: 28px; padding-top: 40px; text-align: center;
}
.aufnahme-zentrum {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.aufnahme-grosser-knopf {
  width: 112px; height: 112px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--gruen), var(--gruen-hell));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px oklch(0.46 0.12 155 / 0.35);
  cursor: pointer; min-height: 0; padding: 0;
  transition: transform 0.15s;
  position: relative;
}
.aufnahme-grosser-knopf::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid oklch(0.46 0.12 155 / 0.25);
  animation: ripple 2.5s ease-out infinite;
}
.aufnahme-grosser-knopf:active { transform: scale(0.92); }
.aufnahme-grosser-knopf:active::after { animation: none; }
.aufnahme-grosser-knopf svg { color: #fff; width: 48px; height: 48px; }
.aufnahme-titel { margin: 0; font-size: 22px; }
.aufnahme-hinweis { margin: 0; }
.aufnahme-links { display: flex; gap: 10px; }

/* ========== Kategorie-Kacheln (Bereiche) — Premium ========== */
.kat-raster {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  max-width: 100%; overflow: hidden;
}
@media (min-width: 480px) {
  .kat-raster { grid-template-columns: repeat(2, 1fr); }
}
.kat-kachel {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-gross);
  max-width: 100%; min-width: 0;
  background-size: cover; background-position: center; overflow: hidden;
  border: 0; padding: 0; cursor: pointer; min-height: 0;
  box-shadow: var(--schatten);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kat-kachel::before {
  content: ''; position: absolute; inset: 0;
  background-size: inherit; background-position: inherit; background-image: inherit;
  transition: transform 0.4s ease;
  z-index: 0;
}
.kat-kachel:active { transform: scale(0.97); box-shadow: var(--schatten-xs); }
@media (hover: hover) {
  .kat-kachel:hover { transform: translateY(-3px); box-shadow: var(--schatten-md); }
  .kat-kachel:hover::before { transform: scale(1.06); }
}
.kat-kachel-inhalt {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 16px 18px; z-index: 1;
  background: linear-gradient(to top,
    oklch(0.1 0.02 155 / 0.92) 0%,
    oklch(0.1 0.02 155 / 0.4) 45%,
    oklch(0.1 0.02 155 / 0.08) 70%,
    transparent 100%);
}
.kat-kachel-titel {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 18px; font-weight: 700; color: #fff; line-height: 1.15;
}
.kat-kachel-text {
  font-size: 12.5px; color: oklch(0.88 0.01 90); margin-top: 3px; line-height: 1.3;
}

/* Bereich-Blöcke (Kategorie + Kinder direkt darunter) */
.bereich-block { margin-bottom: 24px; }
.bereich-block .liste { margin-top: 8px; }

/* Kategorie-Hero */
.kat-hero {
  height: 120px; border-radius: var(--r-gross); background-size: cover;
  background-position: center; overflow: hidden; position: relative;
  display: flex; align-items: flex-end;
  box-shadow: var(--schatten);
  max-width: 100%;
}
.kat-hero-titel {
  position: relative; width: 100%; padding: 14px 20px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px; font-weight: 700; color: #fff;
  background: linear-gradient(to top, oklch(0.1 0.02 155 / 0.88) 0%, transparent 100%);
}

/* Bereich-Icons in Listen */
.bereich-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--band-kraeftig), var(--band));
  display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 18px;
  box-shadow: var(--schatten-xs);
}

/* Termin-Farbstreifen */
.termin-streifen {
  width: 3px; min-height: 24px; border-radius: 2px; flex-shrink: 0; align-self: stretch;
}
.termin-streifen.gruen { background: linear-gradient(180deg, var(--gruen), var(--gruen-hell)); }
.termin-streifen.rot { background: linear-gradient(180deg, var(--rot), oklch(0.58 0.16 25)); }
.termin-streifen.sand { background: linear-gradient(180deg, var(--sand), oklch(0.78 0.08 70)); }

/* ========== Meldungen — schwebend ========== */
#meldung {
  position: fixed; left: 50%; bottom: calc(var(--fuss) + 16px); transform: translateX(-50%);
  background: var(--gruen-tief); color: #fff; padding: 13px 22px; border-radius: 16px;
  box-shadow: var(--schatten-lg); z-index: 60; max-width: min(92vw, 480px); text-align: center;
  font-weight: 550; font-size: 15px;
  animation: slideUp 0.25s ease-out;
}
#meldung.fehler { background: var(--rot); }

/* ========== Dialog — Slide-Up, weichere Ecken ========== */
dialog:not([open]) { display: none; }
dialog[open] {
  border: 0; border-radius: 20px; padding: 0;
  width: min(480px, 92vw);
  max-height: 85vh;
  max-height: 85dvh;
  box-shadow: var(--schatten-lg); color: var(--tinte); background: var(--grund);
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}
dialog::backdrop { background: oklch(0.08 0.025 165 / 0.6); backdrop-filter: blur(6px); }
dialog .inhalt {
  padding: 24px;
  max-height: 70vh; max-height: 70dvh;
  overflow-x: hidden;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
dialog h2 { margin-top: 0; font-size: 18px; }
dialog .fuss-knoepfe {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 16px 24px 20px; flex-wrap: wrap; flex-shrink: 0;
  border-top: 1px solid var(--linie-fein);
}

/* ========== Anmeldung — emotional ========== */
.anmeldung {
  min-height: 100svh; display: grid; place-items: center; padding: 24px 20px;
  background: linear-gradient(160deg, var(--band) 0%, oklch(0.96 0.015 155) 100%);
}
.anmeldung .kasten { width: min(440px, 100%); animation: fadeInUp 0.5s ease-out; }
.buehne {
  background: linear-gradient(145deg, var(--gruen-tief), var(--gruen), var(--gruen-hell));
  background-size: 200% 200%;
  animation: shimmer 8s ease infinite;
  color: #fff; border-radius: var(--r-xl); padding: 36px 28px; margin-bottom: 20px;
  box-shadow: var(--schatten-md);
}
.buehne h1 { color: #fff; font-size: 30px; }
.buehne p { color: oklch(0.92 0.015 155); margin-bottom: 0; font-size: 15.5px; line-height: 1.5; }

.anmeldung .karte {
  box-shadow: var(--schatten-md);
  border: 1px solid oklch(0.93 0.005 90);
}

/* ========== Nachrichten ========== */
/* ═══ Chat: WhatsApp-Layout ═══ */
.chat-ansicht {
  display: flex; flex-direction: column;
  position: fixed;
  top: var(--kopf); bottom: var(--fuss);
  left: 0; right: 0;
  padding: 0 !important; margin: 0 !important;
  max-width: none !important;
  overflow: hidden;
  z-index: 10;
  background: var(--band);
}
.chat-kopf {
  flex-shrink: 0; padding: 8px 16px;
  border-bottom: 1px solid var(--linie-fein);
  background: var(--band);
}
#chatBereich {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
}
.blasen {
  flex: 1; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 16px 8px; min-height: 0;
}
.blase {
  max-width: 80%; padding: 8px 12px; border-radius: 16px;
  background: var(--grund); border: 1px solid var(--linie-fein);
  font-size: 14.5px; line-height: 1.45;
  animation: fadeInUp 0.15s ease-out;
  word-break: break-word; overflow: hidden;
}
.blase.eigen {
  align-self: flex-end;
  background: oklch(0.93 0.04 155);
  border-color: oklch(0.86 0.04 155);
  border-bottom-right-radius: 4px;
}
.blase:not(.eigen) { border-bottom-left-radius: 4px; }
.blase.istAngeheftet { border-left: 3px solid var(--gruen); }
.blase .kopfzeile { font-size: 12px; font-weight: 650; color: var(--gruen-dunkel); margin-bottom: 2px; }
.blase.eigen .kopfzeile { color: oklch(0.38 0.08 155); }
.blase .zitat {
  border-left: 3px solid var(--gruen); padding: 4px 8px; font-size: 13px;
  color: var(--tinte-leise); margin-bottom: 4px; border-radius: 4px;
  background: oklch(0.96 0.01 155 / 0.5);
}
.blase .weitergeleitet { font-size: 12px; font-style: italic; }
.blase .zeit { font-size: 11px; color: var(--tinte-leise); }
.blase.gelöscht, .blase.geloescht {
  font-style: italic; color: var(--tinte-leise);
  background: transparent; border-style: dashed; max-width: 60%;
}
.reaktionen { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.reaktionen button {
  background: var(--grund); border: 1px solid var(--linie); border-radius: 999px;
  padding: 1px 6px; min-height: 0; font-size: 12px; font-weight: 500;
  transition: transform 0.1s, border-color 0.15s;
}
.reaktionen button:active { transform: scale(0.92); }
.reaktionen button.meine { border-color: var(--gruen); color: var(--gruen); background: var(--gruen-glow); }
.blase .reihe .leiseknopf { font-size: 13px; padding: 6px 8px; min-height: 32px; }
.blase > .reihe { flex-wrap: wrap; }
.hervor { animation: hervorHeben 2s ease-out; }
@keyframes hervorHeben {
  0%, 30% { background: oklch(0.92 0.06 155); }
  100% { background: var(--grund); }
}
.schreiben {
  flex-shrink: 0; z-index: 20;
  background: var(--band);
  border-top: 1px solid var(--linie-fein);
  padding: 8px 12px; display: flex; gap: 8px; align-items: flex-end;
}
.schreiben textarea {
  min-height: 40px; max-height: 120px; font-size: 15px;
  border-radius: 20px; padding: 8px 14px; resize: none;
}
.schreiben .haupt { border-radius: 50%; width: 40px; height: 40px; padding: 0; flex-shrink: 0; display: grid; place-items: center; }
.schreiben .zweit { border-radius: 50%; width: 40px; height: 40px; padding: 0; flex-shrink: 0; display: grid; place-items: center; }
/* Chat: nur der Nachrichtenbereich scrollt, nie die Seite oder der Kopf (iOS-Gummiband, 17.09.) */
html:has(#inhalt.chat-ansicht), body:has(#inhalt.chat-ansicht) { overscroll-behavior: none; }
.chat-ansicht .blasen, .chat-ansicht .kanal-inhalt-bereich, .chat-ansicht textarea { overscroll-behavior: contain; }
.chat-ansicht .blasen { touch-action: pan-y; }
/* Angeheftete Nachrichten begrenzen, damit der Verlauf sichtbar bleibt */
#angeheftetLeiste { max-height: 104px; overflow-y: auto; overscroll-behavior: contain; }
/* Blasen im Scrollbereich nie stauchen: sonst schneidet overflow:hidden den Text ab (17.09.) */
.blasen > * { flex-shrink: 0; }
/* Blase kompakt: keine Außenabstände der allgemeinen Zeile, leere Reaktionen ausblenden */
.blase > .reihe { margin-bottom: 0; }
.blase .reaktionen:empty { display: none; }
/* Push-Hinweis schwebt über der Navigation und verschiebt kein Layout; im Chat ausgeblendet */
#pushHinweisLeiste {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--fuss) + 10px); z-index: 45;
  display: flex; gap: 8px; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 14px; background: #fff4d6; color: #4a3b12; font-size: 14px;
  border: 1px solid #e8d49a; box-shadow: var(--schatten-md);
}
body:has(.chat-ansicht) #pushHinweisLeiste { display: none; }
#pushHinweisLeiste .schliessen { background: none; border: 0; font-size: 18px; line-height: 1; padding: 4px 6px; color: inherit; min-height: 0; }
#tipptZeile { font-size: 12px; color: var(--tinte-leise); padding: 0 16px 2px; flex-shrink: 0; min-height: 18px; }

/* Chat-Liste */
.chat-liste { gap: 0 !important; }
.chat-liste li { border-bottom: 1px solid var(--linie-fein); }
.chat-liste li:last-child { border-bottom: 0; }
.chat-liste .reihenknopf { padding: 12px 4px; }

/* ========== Ablage ========== */
.kachel {
  border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden;
  background: var(--grund); box-shadow: var(--schatten);
  transition: transform 0.15s, box-shadow 0.15s;
}
@media (hover: hover) {
  .kachel:hover { transform: translateY(-2px); box-shadow: var(--schatten-md); }
}
.kachel .bild { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--band); display: block; }
.kachel .text { padding: 12px 14px; }
.ordnerzeile {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--linie);
  border-radius: var(--r); margin-bottom: 8px; background: var(--grund); width: 100%; text-align: left;
  box-shadow: var(--schatten-xs); transition: background 0.12s, transform 0.12s, box-shadow 0.12s;
}
.ordnerzeile:active { background: var(--band); transform: scale(0.99); }
@media (hover: hover) {
  .ordnerzeile:hover { box-shadow: var(--schatten); transform: translateY(-1px); }
}
.ordnerzeile .name { font-weight: 600; }

/* ========== Fortschritt ========== */
.balken { height: 6px; border-radius: 999px; background: var(--band-kraeftig); overflow: hidden; }
.balken i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gruen), var(--gruen-hell));
  animation: loadBar 0.6s ease-out;
}

/* ========== Tabellen ========== */
.tabelle { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tabelle th, .tabelle td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--linie-fein); vertical-align: top; }
.tabelle th { font-weight: 650; color: var(--tinte-leise); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.scrollbar { overflow-x: auto; }

/* ========== Angeheftete Nachrichten ========== */
.angeheftet {
  display: flex; gap: 8px; align-items: flex-start; background: var(--band);
  border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px;
}
.angeheftet > .marke { flex: none; margin-top: 2px; }
.angeheftet ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.angeheftet li { display: flex; align-items: center; gap: 2px; }
.angeheftet .springe {
  flex: 1; min-width: 0; text-align: left; justify-content: flex-start;
  padding: 4px 6px; text-decoration: none; color: var(--tinte); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; display: block;
}
.angeheftet .kreuz { flex: none; padding: 4px 8px; text-decoration: none; }
.blase .weitergeleitet { font-size: 12.5px; color: var(--tinte-leise); margin-bottom: 4px; }
.blase.istAngeheftet { box-shadow: inset 0 0 0 1px var(--band-kraeftig); }
.blase.hervor { box-shadow: 0 0 0 2px var(--gruen); }
.kanalzeile-fuss { display: flex; justify-content: flex-end; margin-top: -6px; }

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ========== Responsive ========== */
@media (min-width: 760px) {
  .seite { padding: 32px 28px calc(var(--fuss) + 16px); }
  h1 { font-size: 32px; }
  .kat-kachel-titel { font-size: 20px; }
  .kat-hero { height: 160px; }
  .kat-hero-titel { font-size: 26px; }
}

@media (min-width: 1000px) {
  .seite { max-width: 800px; }
}

#inhalt:focus, #inhalt:focus-visible { outline: none; }

/* ========== Kalender: Typenpunkte ========== */
.kal-punkte { display: flex; gap: 2px; justify-content: center; margin-top: 2px; }
.kal-punkte .punkt-gruen,
.kal-punkte .punkt-sand,
.kal-punkte .punkt-rot { width: 5px; height: 5px; border-radius: 50%; }
.punkt-gruen { background: var(--gruen); }
.punkt-sand { background: var(--sand); }
.punkt-rot { background: var(--rot); }

/* ========== Start-Seite ========== */
.start-begruessung {
  margin-bottom: 20px;
}
.start-begruessung h1 {
  font-size: 26px; margin-bottom: 2px;
}
.start-name { color: var(--gruen); }
.start-datum {
  font-size: 14px; color: var(--tinte-leise); font-weight: 500; margin-bottom: 4px;
}

/* Quick-Action Pillen */
.start-schnell {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 0 16px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.start-schnell::-webkit-scrollbar { display: none; }
.start-schnell-knopf {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--linie);
  background: var(--grund); color: var(--tinte); font-weight: 600; font-size: 14px;
  white-space: nowrap; min-height: 0; scroll-snap-align: start;
  box-shadow: var(--schatten-xs);
  transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
}
.start-schnell-knopf:active { transform: scale(0.95); }
@media (hover: hover) {
  .start-schnell-knopf:hover {
    border-color: var(--gruen); box-shadow: var(--schatten);
    transform: translateY(-1px);
  }
}
.start-schnell-icon {
  font-size: 18px; display: flex; align-items: center;
}

/* Kennzahl-Karten */
.start-zahlen {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 16px;
}
.start-zahl-karte {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 16px 8px; border-radius: var(--r);
  background: var(--grund); border: 1px solid var(--linie);
  box-shadow: var(--schatten-xs); min-height: 0; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.start-zahl-karte:active { transform: scale(0.96); }
@media (hover: hover) {
  .start-zahl-karte:hover { transform: translateY(-2px); box-shadow: var(--schatten); }
}
.start-zahl-wert {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 28px; font-weight: 700; line-height: 1;
}
.start-zahl-label {
  font-size: 11.5px; font-weight: 600; color: var(--tinte-leise);
  text-transform: uppercase; letter-spacing: 0.04em; text-align: center;
}
.start-zahl-rot .start-zahl-wert { color: var(--rot); }
.start-zahl-sand .start-zahl-wert { color: var(--sand); }
.start-zahl-gruen .start-zahl-wert { color: var(--gruen); }

/* Ungelesene Nachrichten */
.start-ungelesen {
  border-left: 4px solid var(--gruen); padding-left: 16px;
  background: oklch(0.97 0.015 155);
}

/* Verlauf-Timeline */
.start-verlauf {
  position: relative; padding-left: 20px;
}
.start-verlauf::before {
  content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--gruen), var(--linie-fein));
  border-radius: 1px;
}
.start-verlauf-eintrag {
  position: relative; padding: 6px 0; display: flex; gap: 12px; align-items: flex-start;
}
.start-verlauf-punkt {
  position: absolute; left: -20px; top: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gruen); border: 2px solid var(--grund);
  box-shadow: 0 0 0 2px oklch(0.94 0.03 155);
  flex-shrink: 0;
}
.start-verlauf-inhalt {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.start-verlauf-inhalt .leise { font-size: 12px; }

/* ========== Responsive Start ========== */
@media (max-width: 400px) {
  .start-zahlen { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .start-zahl-wert { font-size: 24px; }
  .start-zahl-label { font-size: 10px; }
  .start-begruessung h1 { font-size: 22px; }
}

/* Header-Icons */
.kopf-icon {
  background: none; border: 0; padding: 8px; min-height: 0; border-radius: 12px;
  color: var(--tinte-leise); cursor: pointer; display: flex; align-items: center;
  transition: background 0.15s, color 0.15s;
}
.kopf-icon:hover, .kopf-icon:active { background: var(--band); color: var(--gruen); }

.kopf-avatar {
  width: 36px; height: 36px; min-width: 36px; max-width: 36px; min-height: 36px;
  border-radius: 50%; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--gruen), var(--gruen-hell));
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  border: 0; padding: 0; margin: 0; cursor: pointer; display: grid; place-items: center;
  transition: box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px oklch(0.46 0.12 155 / 0.18);
  overflow: hidden; -webkit-appearance: none; appearance: none;
}
.kopf-avatar:hover { box-shadow: 0 3px 12px oklch(0.46 0.12 155 / 0.3); }
.kopf-avatar:active { transform: scale(0.93); }

/* Profil-Seite */
.profil-kopf { text-align: center; padding: 24px 0 8px; }
.profil-avatar {
  width: 96px; height: 96px; min-width: 96px; max-width: 96px; min-height: 96px;
  border-radius: 50%; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--gruen), var(--gruen-hell));
  display: grid; place-items: center; cursor: pointer; position: relative;
  border: 0; padding: 0;
  box-shadow: 0 4px 16px oklch(0.46 0.12 155 / 0.22);
  transition: box-shadow 0.2s, transform 0.15s;
  -webkit-appearance: none; appearance: none;
}
.profil-avatar:hover { box-shadow: 0 6px 24px oklch(0.46 0.12 155 / 0.35); transform: scale(1.03); }
.profil-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; position: absolute; inset: 0; z-index: 1; }
.profil-ini { color: #fff; font-size: 36px; font-weight: 700; letter-spacing: 0.04em; }
.profil-kamera {
  position: absolute; bottom: 2px; right: 2px; width: 30px; height: 30px;
  background: var(--tinte); color: #fff; border-radius: 50%;
  display: grid; place-items: center; z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  pointer-events: none;
}

/* Chat-Liste: Avatar-Kreise */
.kanal-avatar {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  color: #fff;
}
.kanal-avatar.direkt {
  background: linear-gradient(135deg, oklch(0.55 0.14 220), oklch(0.65 0.12 250));
}
.kanal-avatar.gruppe {
  background: linear-gradient(135deg, var(--gruen), var(--gruen-hell));
}
.chat-liste .reihenknopf { padding: 12px 16px; }
.chat-modus {
  background: var(--band); color: var(--tinte-leise);
  transition: background 0.15s, color 0.15s;
}
.chat-modus.aktiv {
  background: var(--gruen); color: #fff;
}

/* Chat: Platz fuer die fixierte Eingabezeile */


/* Einheitlicher Seitenkopf */
.seiten-kopf {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 20px; gap: 12px;
}
.seiten-kopf h1 { margin: 0; flex: 1; min-width: 0; }
.seiten-kopf .aktionen { display: flex; gap: 8px; align-items: center; flex: none; }
.karte h2 { font-size: 16px; font-weight: 650; margin: 0 0 8px; }

.kanal-avatar-upload { position: relative; cursor: pointer; }
.kanal-avatar-overlay {
  position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,0.4);
  display: grid; place-items: center; opacity: 0; transition: opacity 0.2s;
}
.kanal-avatar-upload:hover .kanal-avatar-overlay,
.kanal-avatar-upload:active .kanal-avatar-overlay { opacity: 1; }

/* Action-Sheet Menü (vertikal) */
dialog .fuss-knoepfe.vertikal {
  flex-direction: column; gap: 0;
  padding: 0;
}
dialog .fuss-knoepfe.vertikal button {
  width: 100%; border-radius: 0; border: 0;
  border-top: 1px solid var(--linie-fein);
  padding: 14px 24px; font-size: 16px;
  text-align: center; background: transparent;
}
dialog .fuss-knoepfe.vertikal button:last-child {
  border-radius: 0 0 20px 20px;
}
dialog .fuss-knoepfe.vertikal button.gefahr { color: var(--rot); font-weight: 600; }
dialog .fuss-knoepfe.vertikal button:active { background: var(--band); }

/* Kanal-Tabs (Chat / Aufgaben / Termine) */
.kanal-tabs {
  display: flex; gap: 0; flex-shrink: 0;
  border-bottom: 1px solid var(--linie-fein);
  background: var(--band);
}
.kanal-tabs button {
  flex: 1; padding: 8px 4px; border: 0; border-radius: 0;
  background: transparent; font-size: 13px; font-weight: 600;
  color: var(--tinte-leise); min-height: 36px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.kanal-tabs button.aktiv {
  color: var(--gruen); border-bottom-color: var(--gruen);
}
.kanal-tabs button:active { background: var(--band-kraeftig); }

/* Kanal-Aufgaben */
.kanal-aufgabe {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 16px; border-bottom: 1px solid var(--linie-fein);
}
.kanal-aufgabe input[type=checkbox] {
  width: 20px; height: 20px; margin: 2px 0 0; flex: none;
  accent-color: var(--gruen); border-radius: 6px;
}
.kanal-aufgabe .aufgabe-text { flex: 1; min-width: 0; font-size: 14.5px; }
.kanal-aufgabe.erledigt .aufgabe-text {
  text-decoration: line-through; color: var(--tinte-leise);
}
.kanal-aufgabe .aufgabe-meta { font-size: 12px; color: var(--tinte-leise); margin-top: 2px; }

/* Kanal-Termine */
.kanal-termin {
  padding: 10px 16px; border-bottom: 1px solid var(--linie-fein);
}
.kanal-termin .termin-titel { font-weight: 600; font-size: 14.5px; }
.kanal-termin .termin-zeit { font-size: 12px; color: var(--tinte-leise); margin-top: 2px; }
.kanal-termin .termin-ort { font-size: 12px; color: var(--tinte-mittel); }

.kanal-inhalt-bereich {
  flex: 1; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  min-height: 0;
}

/* Swipe-Aktionen Kanalliste */
.swipe-zeile { position: relative; overflow: hidden; }
.swipe-aktionen {
  position: absolute; top: 0; right: 0; bottom: 0;
  display: flex; align-items: stretch; gap: 0; z-index: 1;
}
.swipe-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 2px; border: 0; font-size: 10px; font-weight: 500;
  color: #fff; white-space: nowrap; cursor: pointer;
  width: 56px; gap: 2px; line-height: 1.1;
}
.swipe-btn .ico { font-size: 16px; line-height: 1; }
.swipe-btn.pin { background: var(--gruen, #22c55e); }
.swipe-btn.stumm-btn { background: #6b7280; }
.swipe-btn.loeschen { background: #ef4444; }
.swipe-inhalt {
  position: relative; z-index: 2; background: var(--band);
  will-change: transform;
}

/* Swipe links (Archiv + Loeschen) */
.swipe-aktionen-links {
  position: absolute; top: 0; left: 0; bottom: 0;
  display: flex; align-items: stretch; gap: 0; z-index: 1;
}
.swipe-btn.archiv { background: #f59e0b; }

/* Aufnahme pulsierend */
.aufnahme-grosser-knopf.pulsierend {
  animation: rec-puls 1.5s ease-in-out infinite;
  background: #ef4444;
}
@keyframes rec-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { box-shadow: 0 0 0 14px rgba(239,68,68,0); }
}

/* Hilfe / Bedienungsanleitung */
.hilfe-inhalt { padding-left: 20px; margin: 0; }
.hilfe-inhalt li { margin: 6px 0; }
.hilfe-link { color: var(--akzent); text-decoration: underline; font-size: 0.95rem; text-align: left; }
.hilfe-artikel { display: flex; flex-direction: column; gap: 16px; }
.hilfe-abschnitt { background: var(--karte-bg, #fff); border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.hilfe-abschnitt h3 { margin: 0 0 12px; font-size: 1.1rem; }
.hilfe-abschnitt h4 { margin: 16px 0 8px; font-size: 0.95rem; font-weight: 600; }
.hilfe-abschnitt p { margin: 8px 0; line-height: 1.6; }
.hilfe-abschnitt ul, .hilfe-abschnitt ol { padding-left: 20px; margin: 8px 0; }
.hilfe-abschnitt li { margin: 4px 0; line-height: 1.5; }
.hilfe-tabelle { width: 100%; border-collapse: collapse; margin: 8px 0; }
.hilfe-tabelle td { padding: 8px 12px; border-bottom: 1px solid var(--rand, #e5e7eb); vertical-align: top; line-height: 1.5; }
.hilfe-tabelle tr:last-child td { border-bottom: none; }
