/* Studio: ruhige Flächen, ein Akzent (Glutrot) für die Hauptaktion und die Aufnahme.
   Glas (Web-Annäherung, kein offizielles Liquid Glass) nur für Tab-Leiste, Overlays und Hinweise.
   Ecken: Karten 22px, Felder 14px, Knöpfe und Chips ganz rund. */

:root {
  color-scheme: light dark;
  --grund: #edeff4;
  --flaeche: #ffffff;
  --flaeche-2: #f3f4f8;
  --text: #161922;
  --text-2: #525a6a;
  --linie: rgba(22, 25, 34, 0.1);
  --akzent: #d2381f;
  --akzent-weich: rgba(210, 56, 31, 0.1);
  --mac: #7a4f00;
  --mac-grund: #fff0d2;
  --ok: #146c44;
  --ok-grund: #ddf4e7;
  --bereit: #1d4ed8;
  --bereit-grund: #dfe8ff;
  --fehler: #a8231b;
  --fehler-grund: #fde3df;
  --glas: rgba(255, 255, 255, 0.74);
  --glas-kante: rgba(255, 255, 255, 0.95);
  --schatten: 0 1px 2px rgba(30, 35, 60, 0.06), 0 10px 28px rgba(30, 35, 60, 0.08);
  --schatten-glas: 0 12px 40px rgba(30, 35, 60, 0.16);
  --leuchten-1: rgba(255, 116, 76, 0.32);
  --leuchten-2: rgba(84, 132, 255, 0.24);
  --r-karte: 22px;
  --r-feld: 14px;
  --feder: cubic-bezier(0.34, 1.56, 0.64, 1);
  --sanft: cubic-bezier(0.22, 1, 0.36, 1);
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titel: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --tabs-hoehe: 64px;
  --diagramm: #2a78d6; /* eine Datenfarbe (Linie, Balken), geprüft mit dataviz-Validator gegen --flaeche */
  --unten: max(10px, env(safe-area-inset-bottom));
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0e1016;
    --flaeche: #181b24;
    --flaeche-2: #20242e;
    --text: #f1f2f6;
    --text-2: #a6acba;
    --linie: rgba(255, 255, 255, 0.09);
    --akzent-weich: rgba(255, 110, 82, 0.16);
    --mac: #ffc970;
    --mac-grund: rgba(255, 184, 77, 0.14);
    --ok: #7fe0ae;
    --ok-grund: rgba(80, 210, 140, 0.14);
    --bereit: #8fb4ff;
    --bereit-grund: rgba(90, 140, 255, 0.16);
    --fehler: #ff978c;
    --fehler-grund: rgba(255, 110, 95, 0.15);
    --glas: rgba(28, 31, 41, 0.72);
    --glas-kante: rgba(255, 255, 255, 0.1);
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.25);
    --schatten-glas: 0 12px 40px rgba(0, 0, 0, 0.45);
    --leuchten-1: rgba(255, 96, 60, 0.2);
    --leuchten-2: rgba(70, 110, 255, 0.18);
    --diagramm: #3987e5;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--grund);
  color: var(--text);
  font: 17px/1.45 var(--schrift);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-family: var(--titel); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 30px; line-height: 1.15; font-weight: 700; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 650; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--akzent); outline-offset: 2px; }
[hidden] { display: none !important; }
.unsichtbar {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Hintergrund: ein weiches Leuchten oben, sehr langsam. */
.hintergrund { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hintergrund::before {
  content: ""; position: absolute; inset: -20% -20% 40% -20%;
  background:
    radial-gradient(45% 55% at 20% 30%, var(--leuchten-1), transparent 70%),
    radial-gradient(40% 50% at 85% 20%, var(--leuchten-2), transparent 70%);
  filter: blur(10px);
  animation: treiben 48s ease-in-out infinite alternate;
}
@keyframes treiben {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

/* Gerüst */
main {
  max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) max(16px, env(safe-area-inset-right))
    calc(var(--tabs-hoehe) + var(--unten) + 28px) max(16px, env(safe-area-inset-left));
}
.bildschirm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.bildschirm.rein { animation: rein 0.42s var(--sanft); }
@keyframes rein { from { opacity: 0; transform: translateY(10px); } }
.kopf { display: grid; gap: 4px; padding: 6px 2px 0; }
.kopf-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marke-studio { display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--titel); color: var(--text-2); }
.marke-studio img { width: 26px; height: 26px; border-radius: 7px; }
.konto { position: relative; min-width: 0; }
.konto-knopf .marke-studio { line-height: 1.15; min-width: 0; overflow-wrap: anywhere; }
.kopf-zeile > #datum { white-space: nowrap; }
.konto > summary { list-style: none; cursor: pointer; }
.konto > summary::-webkit-details-marker { display: none; }
.konto-knopf { display: flex; align-items: center; gap: 8px; min-height: 44px; border-radius: 999px; }
.konto-symbol {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-2); background: var(--flaeche); border: 1px solid var(--linie);
}
.konto-symbol svg { width: 20px; height: 20px; }
.konto[open] .konto-symbol { color: var(--akzent); border-color: var(--akzent); }
.konto-menue {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; width: min(280px, calc(100vw - 32px)); padding: 6px;
  display: grid; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-feld); box-shadow: var(--schatten-glas);
}
.konto[open] .konto-menue { animation: aufploppen 0.35s var(--feder); transform-origin: top left; }
.konto-kopf { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; }
.konto-name { font-weight: 650; overflow-wrap: anywhere; }
.konto-rolle { font: 600 12px/1 var(--schrift); padding: 5px 8px; border-radius: 999px; background: var(--flaeche-2); color: var(--text-2); }
.konto-gruppe { display: grid; padding: 4px 0; }
.konto-gruppe + .konto-gruppe, .konto-kopf + .konto-gruppe { border-top: 1px solid var(--linie); }
.konto-titel { padding: 6px 12px 2px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.konto-eintrag {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 0; background: none;
  color: var(--text); text-decoration: none; text-align: left; font-size: 16px; cursor: pointer;
}
.konto-eintrag:hover { background: var(--flaeche-2); }
.konto-eintrag[aria-current="page"] { color: var(--akzent); font-weight: 600; }
.konto-eintrag[aria-current="page"]::after { content: "✓"; margin-left: auto; }
.fuellstand { gap: 6px; padding-bottom: 10px; }
.fuellstand-text { padding: 0 12px; font-size: 15px; }
.fuellstand-balken { margin: 0 12px; height: 6px; border-radius: 999px; background: var(--flaeche-2); overflow: hidden; }
.fuellstand-balken > span { display: block; height: 100%; border-radius: inherit; background: var(--text-2); }
.fuellstand-balken.voll > span { background: var(--akzent); }
.unterzeile { color: var(--text-2); font-size: 15px; }
.abschnitt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.abschnitt-kopf h2 { font-size: 18px; }
/* Spalten (Start, Aufnahmen): am Handy untereinander, ab 900 px nebeneinander. */
.spalten, .spalte-links, .spalte-rechts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }

/* Karten und Listen */
.karte {
  background: var(--flaeche); border-radius: var(--r-karte);
  box-shadow: var(--schatten); border: 1px solid var(--linie);
  padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
}
.liste { list-style: none; margin: 0; padding: 0; background: var(--flaeche); border-radius: var(--r-karte); box-shadow: var(--schatten); border: 1px solid var(--linie); overflow: hidden; }
.eintrag { padding: 14px 16px; display: grid; gap: 6px; }
.eintrag + .eintrag { border-top: 1px solid var(--linie); }
.eintrag-text { overflow-wrap: anywhere; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.eintrag-text.ohne-text { color: var(--text-2); }
.eintrag-text.offen { display: block; -webkit-line-clamp: unset; overflow: visible; }
.aufklappen { justify-self: start; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--akzent); cursor: pointer; }
.aufklappen[hidden] { display: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--text-2); }
.hinweis-text { font-size: 14px; color: var(--mac); }
.antwort { font-size: 15px; color: var(--text-2); border-left: 3px solid var(--linie); padding-left: 10px; white-space: pre-line; overflow-wrap: anywhere; }
audio { width: 100%; height: 40px; }
.leer { padding: 22px 18px; text-align: center; color: var(--text-2); font-size: 15px; display: grid; gap: 12px; justify-items: center; }

/* Statusmarken (echter Zustand, keine Deko) */
.status { font: 600 13px/1 var(--schrift); padding: 6px 10px; border-radius: 999px; background: var(--flaeche-2); color: var(--text-2); white-space: nowrap; }
.status-mac { background: var(--mac-grund); color: var(--mac); }
.status-ok { background: var(--ok-grund); color: var(--ok); }
.status-bereit { background: var(--bereit-grund); color: var(--bereit); }
.status-fehler { background: var(--fehler-grund); color: var(--fehler); }
.status-wer { background: var(--flaeche-2); color: var(--text); border: 1px solid var(--linie); }
.wer-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0; }
.status-laeuft { background: var(--akzent-weich); color: var(--akzent); }

/* Überblick auf dem Start */
.ueberblick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kachel {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); box-shadow: var(--schatten);
  padding: 14px 16px; display: grid; gap: 2px; text-align: left; cursor: pointer; text-decoration: none; color: inherit;
  transition: transform 0.5s var(--feder);
}
.kachel:active { transform: scale(0.97); transition-duration: 0.12s; }
.kachel-zahl { font: 700 32px/1.1 var(--titel); font-variant-numeric: tabular-nums; }
.kachel-text { font-size: 14px; color: var(--text-2); }
.kachel.hat-mac .kachel-zahl { color: var(--mac); }

/* Felder */
.feld { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.feld > span, .feld-titel { font-size: 14px; font-weight: 600; color: var(--text-2); padding-left: 2px; }
textarea, select, input[type="text"], input[type="password"], input[type="number"], input:not([type]) {
  width: 100%; border: 1px solid var(--linie); background: var(--flaeche-2); border-radius: var(--r-feld);
  padding: 13px 14px; font-size: 17px; min-height: 50px; transition: border-color 0.2s, background 0.2s;
}
textarea { min-height: 128px; resize: none; line-height: 1.45; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--akzent); background: var(--flaeche); }
::placeholder { color: var(--text-2); opacity: 1; }
.fehlertext { color: var(--fehler); font-size: 15px; min-height: 0; }
.fehlertext:empty { display: none; }

/* Chips für Projekt und Ziel */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; scroll-padding: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips.umbruch { flex-wrap: wrap; margin: 12px 0; padding: 0; }
.app-ideen { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.app-idee h3 { margin: 0; }
.app-idee .knopf { justify-self: start; }
.app-idee .chip { justify-self: start; }
.app-idee.gewaehlt { outline: 2px solid var(--text); outline-offset: -2px; }
.chips.mehr {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linie);
  background: var(--flaeche-2); font-size: 15px; font-weight: 550; cursor: pointer;
  transition: transform 0.45s var(--feder), background 0.2s, color 0.2s;
}
.chip:active { transform: scale(0.94); transition-duration: 0.1s; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--flaeche); border-color: transparent; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 17px; font-weight: 650; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform 0.5s var(--feder), opacity 0.2s, box-shadow 0.2s;
}
.knopf:active { transform: scale(0.95); transition-duration: 0.12s; }
.knopf:disabled { opacity: 0.5; cursor: default; transform: none; }
.knopf svg { width: 22px; height: 22px; flex: none; }
.knopf-haupt { background: var(--akzent); color: #fff; box-shadow: 0 8px 20px rgba(210, 56, 31, 0.28); }
.knopf-zweit { background: var(--flaeche-2); color: var(--text); border-color: var(--linie); }
.knopf-leise { background: none; color: var(--text-2); min-height: 44px; padding: 0 12px; font-weight: 600; }
.knopf-breit { width: 100%; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; }
.knopf-reihe > .knopf { flex: 1 1 auto; min-width: 0; }
.knopf.sendet { opacity: 0.7; pointer-events: none; }

/* Projekte */
.projekt-zeile {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 16px; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; color: inherit;
  transition: background 0.2s;
}
.projekt-zeile:active { background: var(--flaeche-2); }
.projekt-zeile + .projekt-zeile { border-top: 1px solid var(--linie); }
.projekt-zeichen {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font: 700 19px/1 var(--titel); color: #fff; background: hsl(var(--farbton, 14) 70% 48%);
}
.projekt-zeichen.offen { background: var(--flaeche-2); color: var(--text-2); border: 1.5px dashed var(--text-2); }
.projekt-name { font-weight: 600; }
.projekt-zahl { font-size: 14px; color: var(--text-2); }
.pfeil { color: var(--text-2); width: 18px; height: 18px; }
.zurueck { justify-self: start; margin-left: -10px; }
.zurueck svg { transform: rotate(180deg); width: 18px; height: 18px; }

/* Uploads */
.datei-wahl { position: relative; overflow: hidden; }
.app-beschreibung p { margin: 0 0 0.35em; }
.datei-wahl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload { display: grid; gap: 8px; }
.upload-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.upload-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.balken { height: 6px; border-radius: 999px; background: var(--flaeche-2); overflow: hidden; }
.balken > span { display: block; height: 100%; background: var(--akzent); transform-origin: left; transform: scaleX(var(--anteil, 0)); transition: transform 0.3s var(--sanft); border-radius: inherit; }
.upload.fertig .balken > span { background: var(--ok); }
.upload-info { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Glas: Tab-Leiste, Overlays, Hinweise */
.glas {
  background: var(--glas);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--glas-kante);
  box-shadow: var(--schatten-glas), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glas { background: var(--flaeche); }
}
@media (prefers-reduced-transparency: reduce) {
  .glas { background: var(--flaeche); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.tabs {
  position: fixed; z-index: 10; left: 50%; bottom: var(--unten); transform: translateX(-50%);
  width: min(calc(100% - 24px), 480px); height: var(--tabs-hoehe); border-radius: 999px; padding: 6px;
  display: grid; grid-template-columns: repeat(6, 1fr);
}
/* iOS: Bei offener Tastatur rutscht die feste Leiste in die Mitte und fährt beim Scrollen mit (05.11.2026). Daher
   auf dem Handy ausblenden, solange ein Textfeld aktiv ist. */
@media (max-width: 899px) {
  body:has(:is(input:not([type="checkbox"], [type="radio"], [type="button"], [type="submit"], [type="file"], [type="range"]), textarea, [contenteditable="true"]):focus) .tabs { display: none; }
}
.tabs-marke { display: none; }
.tabs-marker {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 6); border-radius: 999px;
  background: var(--akzent-weich); transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 0.55s var(--feder);
}
.tab {
  position: relative; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 999px;
  color: var(--text-2); text-decoration: none; font-size: 12px; font-weight: 600;
  transition: color 0.2s, transform 0.45s var(--feder);
}
.tab:active { transform: scale(0.92); transition-duration: 0.1s; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--akzent); }
.tab-zahl {
  position: absolute; top: 4px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--mac); color: var(--flaeche); font-size: 11px; line-height: 18px; text-align: center;
}

.toast {
  position: fixed; z-index: 30; left: 50%; bottom: calc(var(--unten) + var(--tabs-hoehe) + 12px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; width: max-content; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; text-align: center;
  transition: transform 0.55s var(--feder), opacity 0.25s;
}
.toast.sichtbar { transform: translate(-50%, 0); opacity: 1; }
.toast.fehler { color: var(--fehler); }
.toast.mit-aktion { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 18px; text-align: left; }
.toast-aktion { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--text); color: var(--flaeche); font: inherit; cursor: pointer; }

/* Sprachnotiz-Blatt */
dialog.blatt-dialog {
  inset: auto 0 0 0; margin: 0; padding: 0; border: 0; width: 100%; max-width: none; max-height: 100dvh;
  background: transparent; color: inherit; overflow: visible;
}
dialog.blatt-dialog::backdrop { background: rgba(10, 12, 20, 0.36); animation: blende 0.25s ease-out; }
@keyframes blende { from { opacity: 0; } }
.blatt {
  width: min(100%, 560px); margin: 0 auto; border-radius: 30px 30px 0 0; border-bottom: 0;
  padding: 10px 20px calc(env(safe-area-inset-bottom) + 20px); display: grid; gap: 16px;
  animation: hoch 0.5s var(--feder);
}
@keyframes hoch { from { transform: translateY(100%); } }
.blatt-griff { width: 40px; height: 5px; border-radius: 999px; background: var(--linie); justify-self: center; }
.blatt-kopf { display: flex; justify-content: space-between; align-items: center; }
.welle { width: 100%; height: 96px; display: block; }
.uhr { font: 600 40px/1 var(--titel); font-variant-numeric: tabular-nums; text-align: center; }
.aufnahme-knopf {
  justify-self: center; width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--linie);
  background: var(--flaeche); display: grid; place-items: center; cursor: pointer; position: relative;
  transition: transform 0.5s var(--feder);
}
.aufnahme-knopf:active { transform: scale(0.92); transition-duration: 0.1s; }
.aufnahme-knopf::after {
  content: ""; width: 60px; height: 60px; border-radius: 50%; background: var(--akzent);
  transition: width 0.4s var(--feder), height 0.4s var(--feder), border-radius 0.4s var(--feder);
}
.aufnahme-knopf.laeuft::after { width: 30px; height: 30px; border-radius: 8px; }
.aufnahme-knopf.laeuft::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 4px solid var(--akzent);
  animation: puls 1.6s ease-out infinite;
}
@keyframes puls { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(1.3); } }
.blatt-hinweis { text-align: center; color: var(--text-2); font-size: 15px; }

/* Login (Seite und Überlagerung) */
.login-seite { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px calc(env(safe-area-inset-bottom) + 24px); }
.login-karte { width: min(100%, 400px); display: grid; gap: 18px; }
.login-seite { align-content: center; gap: 16px; }
.rechtliches { color: var(--text-2); font-size: 14px; text-align: center; }
.rechtliches a { color: inherit; padding: 8px 4px; }
.rechtstext-seite { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; padding: 24px 16px calc(env(safe-area-inset-bottom) + 24px); }
.rechtstext { display: grid; gap: 12px; line-height: 1.55; }
.rechtstext h2 { margin: 12px 0 0; font-size: 18px; }
.rechtstext ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.login-karte img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--schatten); }
.login-kopf { display: grid; gap: 6px; }
dialog.login-dialog {
  border: 0; padding: 0; background: transparent; color: inherit; width: min(calc(100% - 32px), 400px); max-height: none;
}
dialog.login-dialog::backdrop { background: rgba(10, 12, 20, 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.login-dialog[open] { animation: aufploppen 0.5s var(--feder); }
@keyframes aufploppen { from { opacity: 0; transform: scale(0.92); } }

/* ---------- Etappe 3/4: Inhalte, Einstellungen, Teleprompter ---------- */

/* Mac-Anzeige im Kopf: echter Zustand der Werkstatt */
.mac-status {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mac-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); opacity: 0.5; }
.mac-status.bereit { color: var(--ok); }
.mac-status.bereit::before { background: var(--ok); opacity: 1; }
.mac-status.arbeitet { color: var(--akzent); }
.mac-status.arbeitet::before { background: var(--akzent); opacity: 1; animation: blinken 1.4s ease-in-out infinite; }
@keyframes blinken { 50% { opacity: 0.3; } }
.mac-status:empty { display: none; }
.knopf-rund {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-2); background: var(--flaeche); border: 1px solid var(--linie);
}
.knopf-rund svg { width: 22px; height: 22px; }
.knopf.klein { min-height: 40px; padding: 0 16px; font-size: 15px; justify-self: start; }
.tab-einstellungen { display: none; }

/* Wartet auf dich */
.wartet-zeile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 12px;
  padding: 13px 16px; color: inherit; text-decoration: none;
}
#wartet-liste > li + li { border-top: 1px solid var(--linie); }
.wartet-text { display: grid; min-width: 0; }
.wartet-text .projekt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Schild unter dem Namen (z. B. „Frage vom Mac“ bei Karussells). */
.wartet-text .status { justify-self: start; margin-top: 4px; }
/* Langer Hinweis („Ausarbeitung lesen, dann …“) bricht um, statt in den Titel zu ragen. */
.wartet-zeile .status { white-space: normal; max-width: 13em; text-align: center; line-height: 1.25; border-radius: 14px; }

/* Reiter im Projekt */
.reiter { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--flaeche-2); border: 1px solid var(--linie); justify-self: start; max-width: 100%; overflow-x: auto; }
.reiter-knopf {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.reiter-knopf[aria-selected="true"] { background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
.reiter-zahl { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
/* Handy: vier Reiter passen ohne Wischen nebeneinander. */
@media (max-width: 420px) { .reiter { justify-self: stretch; } .reiter-knopf { flex: 1 0 auto; justify-content: center; padding: 0 8px; gap: 5px; } }
.projekt-bereich { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }

/* Karten für Reels und Stories */
.inhalt-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.inhalt-karte {
  display: grid; gap: 8px; padding: 14px 16px; color: inherit; text-decoration: none;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); box-shadow: var(--schatten);
}
.inhalt-karte.hat-frage { border-color: var(--fehler); }
.mini-schritte { height: 4px; border-radius: 999px; background: var(--flaeche-2); overflow: hidden; position: relative; }
.mini-schritte::after { content: ""; position: absolute; inset: 0; background: var(--akzent); transform-origin: left; transform: scaleX(var(--anteil, 0)); border-radius: inherit; }
.leer.karte { display: block; }
details.story-neu { padding: 0; gap: 0; background: none; border: 0; box-shadow: none; }
details.story-neu > summary { list-style: none; justify-self: start; display: inline-flex; }
details.story-neu > summary::-webkit-details-marker { display: none; }
details.story-neu[open] { background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); padding: 16px; gap: 14px; }
details.story-neu[open] > summary { margin-bottom: 14px; }

/* Inhalt-Seite */
.inhalt-seite { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.inhalt-kopf { gap: 6px; }
.art-zeile { font-size: 15px; font-weight: 600; color: var(--text-2); }
.schritt-text { font-size: 15px; color: var(--text-2); }
.schritte { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.schritte li { height: 6px; border-radius: 999px; background: var(--flaeche-2); border: 1px solid var(--linie); }
.schritte li.erledigt { background: var(--text-2); border-color: transparent; opacity: 0.55; }
.schritt-aktionen { display: flex; align-items: center; gap: 8px; }
.schritt-aktionen .mehr-menue { margin-left: auto; }
.zurueck-schritt { justify-self: start; min-height: 44px; padding: 0 12px 0 0; font-size: 15px; }
.zurueck-schritt.gefragt { color: var(--fehler); }
.schritte li.jetzt { background: var(--akzent); border-color: transparent; }
.schritt-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mac-zeile { padding: 12px 16px; border-radius: var(--r-feld); background: var(--mac-grund); color: var(--mac); font-weight: 600; font-size: 15px; }
.mac-zeile.laeuft { background: var(--akzent-weich); color: var(--akzent); }
.inhalt-spalten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
/* Fertige und gepostete Reels: Kästen groß, Skript als kleine Kachel (am Handy ganz unten). */
.inhalt-fertig { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
/* Fertige Reels (14.11.2026): Abschnitte mit großer Überschrift, darin Kästen nebeneinander (Handy: untereinander). */
.inhalt-fertig { gap: 30px; }
.abschnitt-block { display: grid; gap: 12px; }
.abschnitt-titel { font: 700 24px/1.2 var(--titel); margin: 0; padding: 0 2px 8px; border-bottom: 2px solid var(--linie); }
.abschnitt-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.abschnitt-karten > .karte > h2 { font-size: 19px; padding-bottom: 10px; border-bottom: 1px solid var(--linie); }
.seitenleiste .abschnitt-karten { grid-template-columns: minmax(0, 1fr); }
/* Allein im Abschnitt (z. B. die lange DM): ganze Breite, dann wird der Kasten kürzer. */
.abschnitt-karten > .karte:only-child { grid-column: 1 / -1; }
/* Handy: Hauptteil löst sich auf, „Griffbereit“ steht direkt unter „Jetzt dran“. */
.fertig-haupt { display: contents; }
.fertig-haupt > * { order: 2; }
.fertig-haupt > :first-child { order: 0; }
.inhalt-fertig > .seitenleiste { order: 1; }
.inhalt-fertig > .ganze-breite { order: 3; }
.karten-stapel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }
@media (min-width: 1100px) {
  .inhalt-fertig { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 28px; }
  .fertig-haupt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-content: start; }
  .inhalt-fertig > .seitenleiste { align-self: start; position: sticky; top: 24px; }
  .inhalt-fertig > .ganze-breite { grid-column: 1 / -1; }
}
.skript-kachel { display: grid; gap: 10px; justify-items: start; }
.inhalt-aktion, .inhalt-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.hinweis-mac { color: var(--mac); font-weight: 600; }

/* Vorschläge aus den Zahlen: ruhige Karten, Entscheidung als zwei Knöpfe */
.vorschlag-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vorschlag { border: 1px solid var(--linie); border-radius: 16px; padding: 14px; display: grid; gap: 10px; background: var(--flaeche); }
.vorschlag.entschieden { background: var(--flaeche-2); }
.vorschlag-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vorschlag-kopf h3 { margin: 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.vorschlag-id { display: inline-block; margin-right: 8px; font: 700 13px/1 var(--schrift); color: var(--text-2); padding: 4px 7px; border-radius: 8px; background: var(--flaeche-2); vertical-align: 2px; }
.vorschlag.entschieden .vorschlag-id { background: var(--flaeche); }
.vorschlag-felder { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; font-size: 15px; line-height: 1.45; }
.vorschlag-felder dt { font-weight: 600; color: var(--text-2); }
.vorschlag-felder dd { margin: 0; overflow-wrap: anywhere; }
.vorschlag-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vorschlag-knopf { min-height: 46px; padding: 0 12px; font-size: 16px; }
.vorschlag-knopf.uebernehmen[aria-pressed="true"] { background: var(--ok-grund); color: var(--ok); border-color: var(--ok); }
.vorschlag-knopf.ablehnen[aria-pressed="true"] { background: var(--text); color: var(--flaeche); border-color: transparent; }
@media (max-width: 420px) { .vorschlag-felder { grid-template-columns: minmax(0, 1fr); gap: 2px; } .vorschlag-felder dd + dt { margin-top: 6px; } }
.frage-karte { border: 2px solid var(--fehler); }
.frage-text { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.mehr-menue { justify-self: end; position: relative; }
.mehr-menue > summary { list-style: none; cursor: pointer; }
.mehr-menue > summary::-webkit-details-marker { display: none; }
.mehr-liste {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 180px; padding: 6px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-feld); box-shadow: var(--schatten);
}
.mehr-liste > .knopf { width: 100%; justify-content: flex-start; }
.knopf-gefahr { background: var(--fehler); color: #fff; }
.knopf-gefahr-text { color: var(--fehler); }
.text-aktion { display: grid; gap: 10px; }
.text-aktion .knopf { justify-self: start; }
textarea.kurz { min-height: 92px; }
.regeln-feld { font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 280px; resize: vertical; }
input[type="url"], input[type="search"] {
  width: 100%; border: 1px solid var(--linie); background: var(--flaeche-2); border-radius: var(--r-feld);
  padding: 13px 14px; font-size: 17px; min-height: 50px;
}
input[type="url"]:focus, input[type="search"]:focus { outline: none; border-color: var(--akzent); background: var(--flaeche); }
.video { display: block; justify-self: center; width: auto; max-width: 100%; max-height: 56vh; aspect-ratio: 9 / 16; border-radius: 16px; background: #000; object-fit: contain; }
.beschreibung-block { display: grid; gap: 10px; }
.beschreibung-block h3 { font-size: 17px; }
.beschreibung { white-space: pre-line; overflow-wrap: anywhere; padding: 12px 14px; border-radius: var(--r-feld); background: var(--flaeche-2); font-size: 16px; max-height: 320px; overflow: auto; }
.beschreibung-block .knopf, .karte > a.knopf-breit { justify-self: stretch; }
.beschreibung-block .knopf { justify-self: start; }
.online-zeile { overflow-wrap: anywhere; }
.online-zeile a { color: var(--akzent); }
.posten-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.posten-zeile { display: grid; gap: 8px; overflow-wrap: anywhere; }
.posten-zeile p { margin: 0; line-height: 1.5; }
.posten-zeile a { color: var(--akzent); }
.upload-liste { box-shadow: none; }
.story-teile { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.story-teil { display: grid; gap: 8px; }
.story-teil img, .story-teil video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: var(--flaeche-2); }
.story-teil .knopf { min-height: 40px; font-size: 14px; padding: 0 12px; }

/* Markdown (Skript, Verlauf, Zuordnung) */
.md { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.md .md-h { font-family: var(--titel); margin-top: 10px; }
.md h2.md-h { font-size: 20px; }
.md h3.md-h { font-size: 18px; }
.md h4.md-h, .md h5.md-h, .md h6.md-h { font-size: 16px; }
.md ul, .md ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.md code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--flaeche-2); padding: 1px 5px; border-radius: 6px; }
.md pre { margin: 0; padding: 12px; background: var(--flaeche-2); border-radius: 12px; overflow-x: auto; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.md blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--linie); color: var(--text-2); }
.md hr { border: 0; border-top: 1px solid var(--linie); width: 100%; }
.md a { color: var(--akzent); }
.md .md-bild { width: 180px; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; vertical-align: middle; margin: 4px 8px 4px 0; display: inline-block; }
.md-tabelle { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.md table { border-collapse: collapse; font-size: 14px; line-height: 1.4; min-width: 100%; }
.md th, .md td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--linie); min-width: 140px; max-width: 320px; }
.md th { font-weight: 650; color: var(--text-2); background: var(--flaeche-2); }
.md tbody tr:last-child td { border-bottom: 0; }
.zuordnung .fehlt { color: var(--fehler); background: var(--fehler-grund); font-weight: 650; border-radius: 8px; }
.zuordnung p.fehlt { padding: 8px 12px; }
details.verlauf { border-top: 1px solid var(--linie); padding-top: 12px; }
details.verlauf > summary, details.antwort-auf > summary { cursor: pointer; font-weight: 600; color: var(--text-2); font-size: 15px; }
details.verlauf .md { margin-top: 10px; font-size: 14px; }
details.antwort-auf .antwort { margin-top: 8px; }
.antwort-ziel { display: flex; align-items: center; gap: 10px; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.antwort-ziel[hidden] { display: none; }
.antwort-ziel p { margin: 0; overflow-wrap: anywhere; }
.befehl-art { font-size: 14px; font-weight: 650; color: var(--text-2); }
.befehl-art a { color: var(--akzent); }

/* Stilwahl (Inhalt und Einstellungen) */
fieldset.stil-feld { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
fieldset.karte.stil-feld { padding: 16px; border: 1px solid var(--linie); }
.stil-feld > legend { float: left; width: 100%; padding: 0 2px; }
.stil-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stil-karte {
  position: relative; display: grid; gap: 6px; align-content: start; padding: 6px 6px 10px; border-radius: 16px;
  border: 2px solid var(--linie); background: var(--flaeche); cursor: pointer;
}
.stil-karte input { position: absolute; opacity: 0; pointer-events: none; }
.stil-karte img, .stil-ohne-bild { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--flaeche-2); }
.stil-ohne-bild { display: grid; place-items: center; color: var(--text-2); font-weight: 600; }
.stil-name { font-weight: 600; font-size: 15px; padding: 0 4px; }
.stil-karte .status { justify-self: start; margin-left: 4px; }
.stil-karte:has(input:checked) { border-color: var(--akzent); background: var(--akzent-weich); }
.stil-karte:has(input:focus-visible) { outline: 2.5px solid var(--akzent); outline-offset: 2px; }
.feld-hilfe { font-size: 14px; color: var(--text-2); }
.einstellungen-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.leiste-unten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.einstellungen-felder { border: 0; margin: 0; padding: 0; min-width: 0; }
#einstellungen-mehr .karte > h2 { font-size: 18px; }
.nur-lesen { font-size: 14px; font-weight: 600; color: var(--mac); background: var(--mac-grund); border-radius: 12px; padding: 10px 12px; }
textarea:read-only, textarea:disabled, input:disabled { color: var(--text-2); }
textarea.kurz { min-height: 76px; }
/* Schalter (Checkbox mit role=switch) */
.schalter { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.schalter-text { display: grid; gap: 2px; }
.schalter-titel { font-weight: 600; }
.schalter input {
  appearance: none; flex: none; width: 51px; height: 31px; border-radius: 999px; background: var(--flaeche-2);
  border: 1px solid var(--linie); position: relative; cursor: pointer; transition: background 0.2s;
}
.schalter input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 25px; height: 25px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.25s var(--sanft);
}
.schalter input:checked { background: var(--ok); border-color: transparent; }
.schalter input:checked::after { transform: translateX(20px); }
.schalter input:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.schalter input:disabled { opacity: 0.55; cursor: default; }
.richtungen { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.richtung { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid var(--linie); }
.richtung-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.richtung-kopf .knopf-leise { min-height: 36px; padding: 0 4px; }
.insta-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.stil-karte:has(input:disabled) { cursor: default; }
.stil-karte:has(input:disabled:not(:checked)) { opacity: 0.6; }
.code-gross { font: 700 40px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; text-align: center; padding: 14px 24px; background: var(--flaeche-2); border-radius: var(--r-feld); user-select: all; justify-self: start; }
.schluessel { font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; user-select: all; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r-feld); padding: 12px 14px; }
.knopf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Einrichtung: Checkliste mit Haken */
.einrichtung-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.einrichtung-punkt { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
.einrichtung-punkt + .einrichtung-punkt { border-top: 1px solid var(--linie); }
.einrichtung-punkt:last-child { padding-bottom: 0; }
.haken { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--linie); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.einrichtung-punkt.erledigt .haken { background: var(--ok); border-color: transparent; color: #fff; }
.einrichtung-text { display: grid; gap: 8px; min-width: 0; align-content: start; }
.einrichtung-titel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 650; min-height: 28px; }
.einrichtung-punkt.erledigt .einrichtung-titel { color: var(--text-2); }
/* Koppeln-Bereich aus den Einstellungen, hier ohne eigene Karte und Überschrift */
.einrichtung-text > .karte { padding: 0; border: 0; box-shadow: none; background: none; gap: 10px; }
.einrichtung-text > .karte > h2 { display: none; }
.einrichtung-text .code-gross { font-size: 30px; padding: 12px 18px; white-space: nowrap; }
.einrichtung-fertig { font-weight: 600; color: var(--ok); }

/* Teleprompter: schwarz, Text oben nah an der Frontkamera */
dialog.prompter {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: #fff; display: none; grid-template-rows: 1fr auto auto; overflow: hidden;
}
dialog.prompter[open] { display: grid; }
dialog.prompter::backdrop { background: #000; }
.p-flaeche {
  padding: calc(env(safe-area-inset-top) + 56px) max(20px, env(safe-area-inset-right)) 20px max(20px, env(safe-area-inset-left));
  display: grid; align-content: start; gap: 22px; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none;
}
.p-jetzt { font: 700 var(--p-groesse, 34px)/1.2 var(--schrift); max-width: 900px; margin: 0 auto; width: 100%; text-wrap: balance; }
.p-naechster { font-size: calc(var(--p-groesse, 34px) * 0.55); line-height: 1.3; color: rgba(255, 255, 255, 0.45); max-width: 900px; margin: 0 auto; width: 100%; }
.p-tipp { color: rgba(255, 255, 255, 0.35); font-size: 13px; text-align: center; margin-top: 12px; }
.p-stand { height: 3px; background: rgba(255, 255, 255, 0.15); }
.p-stand > span { display: block; height: 100%; background: var(--akzent); transform-origin: left; transform: scaleX(var(--anteil, 0)); transition: transform 0.3s var(--sanft); }
.p-steuer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 10px) max(12px, env(safe-area-inset-left));
}
.p-gruppe { display: inline-flex; align-items: center; gap: 4px; }
.p-knopf {
  min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 17px; font-weight: 650; cursor: pointer;
}
.p-start { min-width: 88px; background: var(--akzent); border-color: transparent; }
.p-start[aria-pressed="true"] { background: rgba(255, 255, 255, 0.18); }
.p-zu { margin-left: 4px; }
.p-wert { font-size: 14px; color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: center; }

/* Aufnehmen mit Teleprompter: Kamera im Hintergrund, Abschnitt oben direkt unter der Frontkamera */
dialog.kamera {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: #fff; overflow: hidden;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; /* kein Heranzoomen per Doppeltipp */
}
dialog.kamera::backdrop { background: #000; }
.k-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scaleX(-1); } /* contain: genau der Ausschnitt, der aufgenommen wird */
.k-oben {
  position: absolute; top: 0; left: 0; right: 0; max-height: 40%; overflow-y: auto;
  padding: calc(env(safe-area-inset-top) + 18px) max(20px, env(safe-area-inset-right)) 28px max(20px, env(safe-area-inset-left));
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.45) 75%, transparent);
}
.k-ohne-text .k-oben { display: none; }
.k-rueck .k-video { transform: none; } /* Rückkamera nicht spiegeln */
/* REC: oben rechts, leuchtet rot, solange gefilmt wird; der Text fließt um den Platzhalter herum */
.k-rec {
  position: absolute; z-index: 2; top: calc(env(safe-area-inset-top) + 16px); right: max(16px, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(229, 55, 42, 0.92); color: #fff; font: 800 15px/1 var(--schrift); letter-spacing: 0.06em;
  box-shadow: 0 0 18px rgba(229, 55, 42, 0.75);
}
.k-rec[hidden] { display: none; }
.k-rec-punkt { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: k-rec-blinken 1.2s ease-in-out infinite; }
.k-rec.pause { background: rgba(0, 0, 0, 0.55); box-shadow: none; letter-spacing: 0.02em; }
.k-rec.pause .k-rec-punkt { animation: none; background: rgba(255, 255, 255, 0.6); }
@keyframes k-rec-blinken { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .k-rec-punkt { animation: none; } }
.k-rec-platz { float: right; width: 84px; height: 30px; margin: 0 0 6px 10px; }
.k-platz, .k-wechseln { width: 48px; height: 48px; flex: none; }
.k-wechseln { display: grid; place-items: center; padding: 0; border-radius: 50%; }
.k-ton { gap: 10px; font-size: 14px; }
.k-mikro {
  max-width: 220px; min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45); color: #fff; font: 600 14px var(--schrift); text-overflow: ellipsis;
}
.k-mikro:disabled { opacity: 1; -webkit-appearance: none; appearance: none; }
.k-pegel { width: 70px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.k-pegel > span { display: block; height: 100%; background: #3ccf7a; transform-origin: left; transform: scaleX(var(--pegel, 0)); transition: transform 0.08s linear; }
.k-text { font: 700 var(--k-groesse, 30px)/1.25 var(--schrift); margin: 0; text-wrap: pretty; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.5); }
.p-knopf[aria-pressed="true"] { background: rgba(255, 255, 255, 0.28); }
.k-hinweis {
  display: inline-block; margin: 12px 0 0; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); font-size: 15px; font-weight: 650; letter-spacing: 0.01em;
}
.k-neues-reel .k-oben { background: linear-gradient(rgba(210, 56, 31, 0.92), rgba(210, 56, 31, 0.8) 75%, transparent); }
.k-neues-reel .k-hinweis { background: #fff; color: #a8231b; }
.k-naechster { font-size: 15px; line-height: 1.35; color: rgba(255, 255, 255, 0.55); margin: 14px 0 0; }
.k-unten {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 12px; justify-items: center;
  padding: 24px max(12px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 12px) max(12px, env(safe-area-inset-left));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7) 40%);
}
.k-reihe { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.k-reihe .p-knopf { background: rgba(0, 0, 0, 0.35); }
.k-aufnahme {
  width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 0; margin: 0 14px;
  display: grid; place-items: center; cursor: pointer;
}
.k-aufnahme > span { width: 58px; height: 58px; border-radius: 50%; background: #e5372a; transition: all 0.2s var(--sanft); }
.k-aufnahme[data-zustand="laeuft"] > span { width: 30px; height: 30px; border-radius: 7px; }
.k-aufnahme:disabled { opacity: 0.4; }
.k-zeit { font-variant-numeric: tabular-nums; font-weight: 650; min-width: 3.2em; text-align: center; }
.k-fertig { background: var(--akzent) !important; border-color: transparent; }

/* ---------- Größere Bildschirme ---------- */
@media (hover: hover) {
  .tab:hover { color: var(--text); }
  .tab[aria-current="page"]:hover { color: var(--akzent); }
  .projekt-zeile:hover { background: var(--flaeche-2); }
  .chip:hover { border-color: var(--text-2); }
  .kachel:hover { border-color: var(--text-2); }
}

/* Zahlen (Instagram) */
.zahlen-seite, .hilfe-seite { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.kennzahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kennzahl { cursor: default; align-content: start; }
.kachel.kennzahl:hover { border-color: var(--linie); }
.kachel.kennzahl:active { transform: none; }
.kennzahl-zeile { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ohne-wert { color: var(--text-2); font-weight: 500; }
.kachel-zahl.ohne-wert { font-size: 20px; line-height: 1.6; }
.diagramm-flaeche { min-height: 200px; }
.diagramm { position: relative; }
.diagramm-svg { display: block; touch-action: pan-y; }
.diagramm-svg .raster { stroke: var(--linie); stroke-width: 1; }
.diagramm-svg .achse { fill: var(--text-2); font: 12px var(--schrift); font-variant-numeric: tabular-nums; }
.diagramm-svg .linie { fill: none; stroke: var(--diagramm); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.diagramm-svg .punkt { fill: var(--diagramm); stroke: var(--flaeche); stroke-width: 2; }
.diagramm-svg .kreuz { stroke: var(--text-2); stroke-width: 1; }
.diagramm-tipp {
  position: absolute; top: -6px; transform: translateX(-50%); pointer-events: none; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; background: var(--text); color: var(--flaeche);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
details.als-tabelle > summary { cursor: pointer; font-size: 14px; color: var(--text-2); }
details.als-tabelle table { margin-top: 8px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
details.als-tabelle td, details.als-tabelle th { padding: 4px 16px 4px 0; text-align: left; border-bottom: 1px solid var(--linie); }
.rangliste-kopf { display: grid; gap: 4px; }
.sortierung { align-items: center; }
.sortierung .feld-titel { flex: none; padding-right: 2px; }
.hinweis-leise { font-size: 14px; color: var(--text-2); }
.reel-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.reel-zeile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; padding: 14px 0; border-top: 1px solid var(--linie); align-items: end; }
.reel-kopfzeile { display: none; }
.reel-name, .reel-wiedergabe { grid-column: 1 / -1; }
.reel-name { display: grid; gap: 2px; min-width: 0; }
.reel-titel { font-weight: 650; color: inherit; text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
a.reel-titel:hover { text-decoration: underline; }
.reel-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--text-2); }
.reel-meta a, .text-link { color: var(--akzent); }
.reel-wiedergabe { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "label label" "wert balken"; align-items: center; gap: 2px 12px; }
.reel-wiedergabe .reel-label { grid-area: label; }
.reel-wiedergabe-wert { grid-area: wert; font: 700 24px/1.15 var(--titel); font-variant-numeric: tabular-nums; }
.reel-wiedergabe-wert.ohne-wert { font: 500 16px/1.4 var(--schrift); }
.reel-wiedergabe.gross .reel-wiedergabe-wert { font-size: 34px; }
.balken { grid-area: balken; height: 8px; border-radius: 999px; background: var(--flaeche-2); position: relative; overflow: hidden; }
.balken::after { content: ""; position: absolute; inset: 0; background: var(--diagramm); border-radius: 0 4px 4px 0; transform-origin: left; transform: scaleX(var(--anteil, 0)); }
.reel-wert { display: grid; gap: 1px; min-width: 0; font-variant-numeric: tabular-nums; }
.reel-wert > span:last-child { font-weight: 600; }
.reel-wert > span.ohne-wert { font-size: 14px; font-weight: 500; }
.reel-label { font-size: 13px; color: var(--text-2); }
.reel-werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.hilfe-text { max-width: 760px; }
.vorbild-liste > li + li { border-top: 1px solid var(--linie); }
.vorbild-bilder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vorbild-bilder img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: var(--flaeche-2); }
@media (min-width: 600px) { .vorbild-bilder { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Tablet: breitere Spalte, Karten im Raster, Dialoge in der Mitte, Chips umbrechen statt wischen. */
@media (min-width: 600px) {
  main { max-width: 760px; padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0; }
  .chips.mehr { -webkit-mask-image: none; mask-image: none; }
  .karten-raster {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px;
    background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
  }
  .karten-raster > * {
    align-content: start;
    background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); box-shadow: var(--schatten);
  }
  .karten-raster > .leer { grid-column: 1 / -1; }
  .karten-raster > .projekt-zeile { padding: 16px; }
  .karten-raster > .projekt-zeile:hover, .karten-raster > .projekt-zeile:active { background: var(--flaeche-2); }
  #projekt-form { max-width: 480px; }
  .inhalt-raster { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .md-tabelle { margin: 0; padding: 0; }

  dialog.blatt-dialog { inset: 0; margin: auto; width: min(calc(100% - 48px), 460px); height: fit-content; }
  .blatt { width: 100%; border-radius: 28px; border-bottom: 1px solid var(--glas-kante); padding: 20px 24px 24px; animation: aufploppen 0.5s var(--feder); }
  .blatt-griff { display: none; }
}

/* Computer: Navigation links, Inhalt bis 1240 px breit, Start und Aufnahmen zweispaltig. */
@media (min-width: 900px) {
  :root { --seite: 248px; }
  main { max-width: none; margin: 0 0 0 var(--seite); padding: 36px 40px 56px; }
  .bildschirm { max-width: 1240px; margin: 0 auto; gap: 26px; }
  h1 { font-size: 34px; }

  .tabs {
    left: 0; top: 0; bottom: 0; transform: none; width: var(--seite); height: auto;
    border-radius: 0; border-width: 0 1px 0 0; border-color: var(--linie); box-shadow: none;
    padding: 28px 16px; display: flex; flex-direction: column; gap: 4px;
  }
  .tabs-marke { display: flex; align-items: center; gap: 10px; padding: 0 12px 26px; font: 700 21px/1 var(--titel); color: var(--text); }
  .tabs-marke img { width: 32px; height: 32px; border-radius: 9px; }
  .tabs-marker { display: none; }
  .tab {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px;
    min-height: 46px; padding: 0 14px; border-radius: 14px; font-size: 16px;
  }
  .tab:active { transform: scale(0.97); }
  .tab[aria-current="page"] { background: var(--akzent-weich); }
  .tab-zahl { position: static; margin-left: auto; min-width: 22px; height: 22px; line-height: 22px; font-size: 12px; }
  .toast { bottom: 28px; left: calc(50% + var(--seite) / 2); }

  .konto-knopf .marke-studio { display: none; }
  .spalten { grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); gap: 28px; align-items: start; }
  textarea { min-height: 160px; }
  #ki { grid-template-columns: minmax(0, 760px); }

  .nur-handy { display: none !important; }
  .tab-einstellungen { display: flex; margin-top: auto; }
  .mac-status { font-size: 15px; }
  .inhalt-spalten { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); grid-template-areas: "text aktion"; gap: 28px; }
  .inhalt-aktion { grid-area: aktion; }
  .inhalt-text { grid-area: text; }
  .md { font-size: 16.5px; }
  .md table { font-size: 14.5px; }
  .einstellungen-form { max-width: 980px; }
  .stil-raster { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .stil-raster.klein { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .p-jetzt { text-align: center; }
  .p-naechster { text-align: center; }

  .zahlen-seite { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 22px 28px; align-items: start; }
  .zahlen-seite > * { grid-column: 1 / -1; }
  .zahlen-seite > .kennzahlen { grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  .zahlen-seite > .verlauf-karte { grid-column: 2; }
  .reel-zeile { grid-template-columns: minmax(0, 2.4fr) minmax(170px, 1.4fr) repeat(4, minmax(76px, 0.8fr)); gap: 16px; align-items: center; padding: 12px 0; }
  .reel-kopfzeile { display: grid; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 0 0 8px; border-top: 0; }
  .reel-kopfzeile > span:nth-child(n+3) { text-align: right; }
  .karussell-zeile { grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(76px, 0.8fr)); }
  .karussell-zeile.reel-kopfzeile > span:nth-child(n+2) { text-align: right; }
  .reel-name, .reel-wiedergabe { grid-column: auto; }
  .rangliste .reel-label { display: none; }
  .rangliste .reel-wiedergabe { grid-template-areas: "wert balken"; }
  .rangliste .reel-wert { text-align: right; }
}

@media (min-width: 900px) and (min-height: 700px) {
  .inhalt-aktion { position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 2px; margin: -2px; }
}

@media (min-width: 900px) and (min-height: 700px) {
  .spalte-links { position: sticky; top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- Content-Planer ---------- */
.planer-seite { display: grid; gap: 18px; }
.planer-kopf { display: grid; gap: 12px; }
.planer-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.planer-pfeil { min-width: 44px; min-height: 44px; padding: 0; font-size: 26px; line-height: 1; }
.planer-datum { font-weight: 700; font-size: 17px; min-width: 9.5em; text-align: center; }
.planer-karte-raster { padding: 0; overflow: hidden; }
.planer-tage { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--linie); }
.planer-tage span { padding: 10px 6px; text-align: center; font-weight: 600; font-size: 14px; color: var(--text-2); }
.planer-tage span.heute { color: var(--akzent); }
.planer-raster { height: min(68dvh, 760px); overflow-y: auto; overscroll-behavior: contain; }
.planer-flaeche { position: relative; height: 1536px; display: grid; grid-template-columns: 52px 1fr; }
.planer-raster.woche .planer-flaeche { grid-template-columns: 52px repeat(7, minmax(0, 1fr)); }
.planer-stunden { position: relative; border-right: 1px solid var(--linie); }
.planer-stunden span { position: absolute; left: 0; right: 6px; transform: translateY(-50%); text-align: right; font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.planer-stunden span:first-child { transform: none; }
.planer-spalte {
  position: relative; border-right: 1px solid var(--linie);
  background-image: repeating-linear-gradient(to bottom, var(--linie) 0 1px, transparent 1px calc(100% / 24));
}
.planer-spalte:last-child { border-right: 0; }
.planer-spalte.heute { background-color: var(--akzent-weich); }
.planer-jetzt { position: absolute; left: 0; right: 0; height: 2px; background: var(--akzent); z-index: 2; }
.planer-jetzt::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--akzent); }
.planer-gruppe { position: absolute; left: 4px; right: 4px; display: flex; gap: 4px; z-index: 1; }
.planer-karte {
  flex: 1 1 0; min-width: 0; display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 12px;
  background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); color: var(--text); text-decoration: none;
}
.planer-karte.faellig { border-color: var(--akzent); }
.planer-karte.erledigt { opacity: 0.75; }
.planer-karte.nicht-fertig { opacity: 0.55; filter: grayscale(1); }
.planer-bild { flex: none; width: 34px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--flaeche-2); }
.planer-platzhalter { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--text-2); }
.planer-text { display: grid; min-width: 0; gap: 1px; }
.planer-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planer-zeit { font-size: 12px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.planer-karte.faellig .planer-zeit { color: var(--akzent); }
.planer-titel { font-size: 14px; font-weight: 600; }
.planer-projekt { font-size: 12px; color: var(--text-2); }
.planer-raster.woche .planer-bild { width: 26px; height: 46px; }
.planer-raster.woche .planer-karte { padding: 4px; gap: 6px; }
.planer-geplant { font-weight: 600; }
.planer-belegt { margin-top: 16px; font-size: 13px; color: var(--text-2); }
.planer-belegt h3 { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.belegt-spalten { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.planer-tag { flex: 0 0 116px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche-2); min-height: 92px; }
.planer-tag.gewaehlt { border-color: var(--akzent); background: var(--akzent-weich); }
.planer-tag-kopf { font-weight: 600; color: var(--text); text-align: center; padding-bottom: 2px; border-bottom: 1px solid var(--linie); }
.planer-tag-eintrag { display: flex; flex-direction: column; gap: 2px; padding: 5px 6px; border-radius: 8px; background: var(--flaeche); font-size: 12px; line-height: 1.3; text-align: left; }
.planer-tag-zeit { font-weight: 600; color: var(--text); }
.planer-tag-titel { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; hyphens: auto; }
.planer-blaettern { justify-content: space-between; align-items: center; margin-top: 6px; }
.planer-tag-leer { margin: auto 0; text-align: center; font-size: 12px; opacity: 0.6; }
@media (max-width: 420px) { .tab { font-size: 11px; } }
@media (max-width: 359px) {
  .tabs { width: calc(100% - 12px); padding: 4px; }
  .tabs-marker { top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 6); }
  .tab { font-size: 10px; letter-spacing: -0.3px; }
}
.planer-raster.woche .planer-gruppe { flex-direction: column; }

/* Vorbild-Merkmale und Gespräch */
.merkmal-marken { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.merkmal-vorschau { display: grid; gap: 10px; }
.merkmal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vorschlag details > summary { cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.vorschlag details[open] > summary { margin-bottom: 8px; }
.gespraech-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gespraech-frage { margin: 0 0 6px; font-weight: 600; overflow-wrap: anywhere; }
.gespraech-karte textarea:disabled { opacity: 0.6; }

/* Vergleich und Regeln (Vorbilder) */
.vorbild-zeile { display: flex; align-items: center; }
.vorbild-zeile .wartet-zeile { flex: 1; min-width: 0; padding-left: 4px; }
.vorbild-haken { flex: none; width: 48px; min-height: 48px; display: grid; place-items: center; cursor: pointer; }
.vorbild-haken input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; accent-color: var(--akzent); }
.vergleich-leiste {
  position: sticky; bottom: calc(var(--unten) + var(--tabs-hoehe) + 12px); z-index: 5; display: grid; gap: 8px; justify-items: center;
  padding: 12px; border: 1px solid var(--linie); border-radius: 20px; background: var(--flaeche);
}
.vergleich-leiste[hidden] { display: none; }
.vergleich-leiste .knopf { width: 100%; }
.regeln-karte > summary { cursor: pointer; font-weight: 600; }
.regeln-karte[open] > summary { margin-bottom: 12px; }
.regeln-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.regel { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--linie); }
.regel:first-child { padding-top: 0; border-top: 0; }
.regel p { margin: 0; overflow-wrap: anywhere; }
.regel-zustand { font-weight: 600; }
.regel-text { font-size: 16px; line-height: 1.45; font-weight: 500; }
#upload-beschreibung { min-height: 124px; }

/* Trends */
.trend-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trend-kopf { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; }
.trend-bild { width: 84px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: var(--flaeche-2); }
.trend-bild-leer { display: grid; place-items: center; font-size: 12px; color: var(--text-2); text-align: center; border: 1px solid var(--linie); }
.trend-text { display: grid; gap: 4px; min-width: 0; }
.trend-text p, .trend-karte p { margin: 0; overflow-wrap: anywhere; }
.trend-profil { font-weight: 650; }
.trend-faktor { font-weight: 650; color: var(--akzent); line-height: 1.3; }
.trend-zahlen { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.trend-bewertung { display: grid; gap: 6px; }
.trend-satz { line-height: 1.45; }
.trend-profile { gap: 0; }
.trend-sterne { font-size: 18px; letter-spacing: 2px; line-height: 1; }
.trend-sterne .voll { color: var(--akzent); }
.trend-sterne .leer-stern { color: var(--linie); }
.trend-karte .text-link { justify-self: start; }
.trend-vorbild { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--linie); }
.trend-profil-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--linie); }
.trend-profil-zeile:first-child { padding-top: 0; border-top: 0; }
.trend-profil-form { display: grid; gap: 10px; margin-top: 14px; }
.trend-profil-form .knopf { justify-self: start; }

/* Checkliste im Schritt „Aufnahme“ (11.11.2026) */
.checkliste { display: grid; gap: 6px; }
.checkliste h3 { margin: 0; font-size: 17px; }
.ck-liste { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.ck-punkt { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 14px 0; }
.ck-punkt + .ck-punkt { border-top: 1px solid var(--linie); }
.ck-haken {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--linie); background: var(--flaeche);
  display: grid; place-items: center; font: 700 20px/1 var(--schrift); color: var(--flaeche); cursor: pointer; padding: 0;
}
.ck-haken[aria-pressed="true"] { background: var(--ok); border-color: transparent; }
.ck-haken:disabled { opacity: 0.5; }
.ck-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; align-content: start; }
.ck-titel { margin: 0; padding-top: 10px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.ck-titel .status { display: inline-block; vertical-align: 2px; margin-left: 2px; padding: 4px 9px; font-size: 12px; }
.ck-id { color: var(--text-2); font-variant-numeric: tabular-nums; }
.ck-punkt.erledigt .ck-titel { color: var(--text-2); }
.ck-beschreibung { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.45; }
.ck-datei { margin: 0; overflow-wrap: anywhere; }
.ck-medien { display: block; max-width: 100%; max-height: 40vh; border-radius: 12px; justify-self: start; }
.ck-prompt-auf > summary, .ck-prompt-aendern > summary { cursor: pointer; font-weight: 600; color: var(--text-2); font-size: 15px; }
.ck-prompt-aendern textarea { display: block; width: 100%; margin-top: 8px; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); color: inherit; resize: vertical; }
.ck-prompt-aendern .knopf-reihe { margin-top: 8px; }
.ck-prompt { margin: 8px 0 0; padding: 12px; background: var(--flaeche-2); border-radius: 12px; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 40vh; overflow-y: auto; }
.ck-vorschau { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--linie); border-radius: 14px; background: var(--flaeche-2); }
.ck-vorschau .ck-prompt { margin: 0; background: var(--flaeche); }
.ck-vorschau p { margin: 0; }
.ck-wahlen { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.ck-wahl { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); cursor: pointer; }
.ck-wahl input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--akzent); }
.ck-wahl:has(input:checked) { border-color: var(--akzent); }
.ck-wahl:has(input:disabled) { opacity: 0.6; cursor: default; }
.ck-wahl-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ck-wahl-name { font-weight: 650; }
.ck-wahl .unterzeile { font-size: 14px; }

/* Karussells (11.11.2026) */
.kv-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.kv-karte { gap: 10px; }
.kv-karte p, .kv-karte h3 { margin: 0; overflow-wrap: anywhere; }
.kv-schilder { display: flex; flex-wrap: wrap; gap: 6px; }
.kv-titel { font-size: 18px; line-height: 1.3; }
.kv-inhalt { line-height: 1.45; }
.k-liste > li + li { border-top: 1px solid var(--linie); }
.k-zeile { grid-template-columns: 44px minmax(0, 1fr) 18px; }
.k-mini { width: 44px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--flaeche-2); border: 1px solid var(--linie); }
.k-blaettern { display: grid; gap: 8px; }
.k-seiten {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  border-radius: 12px; background: var(--flaeche-2); scrollbar-width: none;
}
.k-seiten::-webkit-scrollbar { display: none; }
.k-seite { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; display: block; }
.k-zaehler { margin: 0; text-align: center; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.k-text-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.k-text-liste > li { display: grid; gap: 4px; padding: 12px 0; }
.k-text-liste > li + li { border-top: 1px solid var(--linie); }
.k-text-liste p { margin: 0; overflow-wrap: anywhere; }
.k-text-liste .ck-titel { padding-top: 0; }
.k-haupt { font-weight: 650; line-height: 1.35; }

/* Kasten „Automatische DM“ */
.dm-an { font-weight: 700; }
.dm-zaehler { color: var(--text-2); font-size: 14px; }
.dm-hinweis { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--linie); border-radius: 12px; margin-bottom: 12px; }
.dm-vorschau { display: grid; gap: 8px; }
.dm-blase { padding: 10px 14px; border-radius: 16px; background: var(--flaeche-2); max-width: 100%; }
.dm-blase p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dm-blase-teil { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.dm-aeltere { display: grid; gap: 4px; }
.dm-zeile { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.dm-zeile input { width: 22px; height: 22px; }

/* Serien-Studio: keine Reel-Aufnahme, kein Ideenformular */
.serie-studio .nicht-serie { display: none !important; }
