/* Cockpit, „Klarer Arbeitsplatz“ (docs/specs/2026-11-17-oberflaeche-arbeitsplatz.md, Vorlagen A1 und C unter
   docs/entwuerfe/2026-11-17-redesign/). Farben, Wortmarke, Meldungszeile, Grundstil und Instagram-Vorschau kommen aus
   /gemeinsam/basis.css. Am Rechner Seitenleiste (240 px), unter 900 px eine Leiste oben; unter 700 px steht alles untereinander.
   Rahmen und Bausteine stehen oben, die Klassen der einzelnen Ansichten weiter unten. */

body { font-size: 14px; line-height: 1.5; }
input, select, textarea, button { font: inherit; color: inherit; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--f-ui); font-weight: 600; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }

.ck-skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--r-m);
  background: var(--accent); color: var(--accent-on); font-weight: 600;
}
.ck-skip:focus { top: 12px; }

/* ---------- Rahmen: Seitenleiste ---------- */
.ck { --leiste: 240px; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: var(--leiste) minmax(0, 1fr); }
.ck.ohne-leiste { display: block; }
/* Die Seitenleiste bleibt beim Scrollen im Bild (sticky, eine Bildschirmhöhe). Ihr Grund und ihr Rand liegen am Raster
   selbst und laufen so über die ganze Seitenhöhe, auch wenn die Seite länger ist als der Bildschirm. */
.ck-top {
  display: flex; flex-direction: column; gap: 24px; padding: 16px 12px;
  position: sticky; top: 0; height: 100vh; height: 100dvh;
}
@media (width >= 900px) {
  .ck:not(.ohne-leiste) {
    background: linear-gradient(to right, var(--surface) 0, var(--surface) calc(var(--leiste) - 1px),
      var(--line) calc(var(--leiste) - 1px), var(--line) var(--leiste), transparent var(--leiste));
  }
}
.ck-brand { margin: 0; min-height: 44px; padding: 4px 8px; display: flex; align-items: center; font-size: 16px; font-weight: 600; }
.ck-nav { display: flex; flex-direction: column; gap: 2px; }
.ck-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-m);
  color: var(--z-ruhig-schrift); font-size: 14px; font-weight: 500; text-decoration: none;
}
.ck-nav a:hover { background: var(--soft); color: var(--ink); }
.ck-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ck-nav-t { flex: 1; min-width: 0; }
.ck-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-on); font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}
.ck-fuss { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.ck-abmelden {
  width: 100%; min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 12px; text-align: left;
  border: 0; border-radius: var(--r-m); background: none; color: var(--z-ruhig-schrift); font-size: 14px; font-weight: 500;
}
.ck-abmelden:hover { background: var(--soft); color: var(--ink); }

/* ---------- Rahmen: Spalte, Seitenkopf, Inhalt ---------- */
.ck-spalte { min-width: 0; display: flex; flex-direction: column; }
.ck-main { min-width: 0; flex: 1; }
.ck-main:focus { outline: none; }
/* Was ohne Seitenkopf in `main` steht (Laden, Fehler), bekommt den Abstand des Inhalts. */
.ck-main:not(:has(> .ck-seite)) { padding: 24px 32px 40px; }
.ck-main:not(:has(> .ck-seite)) .ck-banner { margin-bottom: 18px; }

header.ck-kopf {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; min-height: 72px; padding: 10px 32px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.ck-kopf-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-pfad ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ck-pfad li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.ck-pfad a { color: var(--muted); text-decoration: none; }
.ck-pfad a:hover { color: var(--ink); text-decoration: underline; }
.ck-pfad .sym { width: 14px; height: 14px; stroke-width: 2; }
.ck-pfad [aria-current="page"] { color: var(--ink); font-weight: 500; }
.ck-kopf-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
header.ck-kopf h1 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.015em; }
.ck-kopf-aktion { flex: 0 1 auto; min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-kopf-unter { flex: 1 0 100%; min-width: 0; }
.ck-inhalt { max-width: 1280px; padding: 24px 32px 40px; display: flex; flex-direction: column; gap: 24px; }
.ck-sub { color: var(--muted); margin: 4px 0 0; }
.ck-sec { margin-top: 28px; }
.ck-sec > h2 { font-size: 19px; margin-bottom: 12px; }

/* ---------- Zustände ---------- */
.ck-laden { color: var(--muted); padding: 32px 0; margin: 0; }
.ck-leer { margin: 0; padding: 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); color: var(--muted); }
.ck-fehler {
  margin: 16px 0 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--z-fehler-punkt);
  border-radius: var(--r-l); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
}
.ck-fehler p { margin: 0; flex: 1 1 240px; font-weight: 600; color: var(--z-fehler-schrift); }
/* Banner und Netzhinweis: ruhige Zeile in Hinweisfarben mit Symbol. */
.ck-banner {
  margin: 0; padding: 10px 12px; display: flex; align-items: flex-start; gap: 8px; border-radius: var(--r-m);
  background: var(--z-hinweis-flaeche); color: var(--z-hinweis-schrift); font-size: 13px; font-weight: 500; line-height: 20px; overflow-wrap: anywhere;
}
div.ck-banner { flex-direction: column; gap: 4px; }
.ck-banner p { margin: 0; }
.ck-netz {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 8px 32px; background: var(--z-hinweis-flaeche); color: var(--z-hinweis-schrift); border-bottom: 1px solid var(--line);
}
.ck-netz-t { margin: 0; flex: 1 1 200px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.ck-msg { font-size: 14px; }

/* ---------- Knöpfe ---------- */
.ck-btn {
  min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-m); background: transparent;
  font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; touch-action: manipulation;
}
.ck-btn .sym { width: 20px; height: 20px; }
.ck-btn.p { background: var(--accent); color: var(--accent-on); }
.ck-btn.p:hover { background: var(--accent-hover); color: var(--accent-on); }
.ck-btn.s { background: var(--surface); color: var(--ink); border-color: var(--field-line); }
.ck-btn.s:hover { background: var(--soft); color: var(--ink); }
.ck-btn.g { color: var(--z-ruhig-schrift); }
.ck-btn.g:hover { background: var(--soft); color: var(--ink); }
.ck-btn.stop { color: var(--z-fehler-schrift); }
.ck-btn.stop:hover { background: var(--z-fehler-flaeche); color: var(--z-fehler-schrift); }
/* Kompakt nur im Innenabstand; die Trefferfläche bleibt 44 px hoch. */
.ck-btn.klein { min-height: 44px; padding: 0 10px; }
/* Gesperrt: leise Fläche, Schrift --muted; der Grund steht daneben in Worten. Nach den Arten, damit es sie überschreibt. */
.ck-btn:is(:disabled, [aria-disabled="true"]), .ck-btn:is(:disabled, [aria-disabled="true"]):hover {
  background: var(--soft); color: var(--muted); border-color: var(--line); opacity: 1; cursor: not-allowed;
}
.ck-btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.ck-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }

/* ---------- Felder ---------- */
.ck-lbl { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.ck-in, .ck-text, .ck-sel {
  display: block; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: var(--r-m);
  background: var(--surface); color: var(--ink); font-family: var(--f-ui); font-size: 14px;
}
.ck-text { padding: 10px 12px; line-height: 1.5; resize: vertical; min-height: 96px; }
.ck-in:focus-visible, .ck-text:focus-visible, .ck-sel:focus-visible { border-color: var(--accent); }
.ck-in[aria-invalid="true"], .ck-text[aria-invalid="true"], .ck-sel[aria-invalid="true"] { border-color: var(--z-fehler-schrift); }
.ck-in.zahl { width: 9em; display: inline-block; }
.ck-help { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ck-feldfehler { margin: 4px 0 0; display: flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 500; line-height: 18px; color: var(--z-fehler-schrift); }
.ck-feldfehler:empty { display: none; }
.ck-feldfehler .sym { width: 16px; height: 16px; margin-top: 1px; }
.ck-field { margin-top: 20px; }
/* Felder zu zweit erst ab 900 px, darunter untereinander. */
.ck-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 20px; }
@media (width >= 900px) {
  .ck-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ck-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.ck-check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }

/* ---------- Segmente (wie Vorlage C) ---------- */
.ck-segc {
  display: inline-flex; flex-wrap: wrap; max-width: 100%; overflow: hidden;
  border: 1px solid var(--field-line); border-radius: var(--r-m); background: var(--surface);
}
.ck-segc button {
  flex: 1 1 auto; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: var(--surface); color: var(--z-ruhig-schrift); font-size: 14px; font-weight: 500;
}
.ck-segc button + button { border-left: 1px solid var(--field-line); }
.ck-segc button:hover { background: var(--soft); }
.ck-segc button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ck-segc button:disabled { cursor: not-allowed; background: var(--soft); color: var(--muted); }
.ck-segc button:disabled[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

/* ---------- Flächen ---------- */
.ck-box { background: var(--surface); padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-l); min-width: 0; }
.ck-box > h2 { font-size: 15px; line-height: 22px; font-weight: 600; margin-bottom: 8px; }
.ck-box > p { margin: 0 0 8px; }

/* ---------- Tabellen: ganze Zeile klickbar über den Link der ersten Spalte ---------- */
.ck-tab-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.ck-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.ck-tab th {
  padding: 10px 16px 8px; text-align: left; vertical-align: bottom; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line);
}
.ck-tab td { padding: 10px 16px; vertical-align: middle; border-bottom: 1px solid var(--soft); overflow-wrap: anywhere; }
.ck-tab tbody tr:last-child td { border-bottom: 0; }
.ck-tab tbody tr { position: relative; }
.ck-tab tbody tr:hover { background: var(--soft); }
.ck-tab td:first-child a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ck-tab td:first-child a::after { content: ""; position: absolute; inset: 0; }
.ck-tab td:not(:first-child) :is(a, button, input, select) { position: relative; z-index: 1; }
/* Steht der Link nicht in der ersten Spalte (Posts: erst die Vorschau), deckt er die Zeile über diese Klasse. */
.ck-tab td:not(:first-child) a.ck-zeilenlink { position: static; color: var(--ink); font-weight: 600; text-decoration: none; }
.ck-tab a.ck-zeilenlink::after { content: ""; position: absolute; inset: 0; }
.ck-tab .rechts { text-align: right; }
.ck-tab td.leise { color: var(--muted); }

/* ---------- Dialog (auch für frage()) ---------- */
.ck-dialog {
  width: 100%; max-width: min(480px, calc(100vw - 32px)); padding: 24px;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); color: var(--ink);
}
.ck-dialog::backdrop { background: rgba(21, 32, 28, .45); }
.ck-dialog h2 { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.ck-dialog p { margin: 0 0 8px; }
.ck-dialog .ck-knoepfe { justify-content: flex-end; margin-top: 20px; }

/* ---------- Anmeldung ---------- */
.ck-anmeldung {
  width: min(400px, calc(100% - 32px)); margin: max(24px, 10vh) auto 32px; padding: 28px 24px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
}
.ck-anmeldung .ck-brand { padding: 0; }
.ck-anmeldung h1 { margin: 20px 0 4px; font-size: 20px; line-height: 28px; letter-spacing: -0.015em; }
.ck-anmeldung .ck-field { margin-top: 16px; }
.ck-anmeldung .ck-btn { width: 100%; margin-top: 20px; }
.ck-anmeldung .ck-msg { margin-top: 12px; }

/* ---------- Eingang (Vorlage A1) ---------- */
/* Vorschaubild im Ausschnitt; auch in der Post-Liste des Betriebs. */
.ck-thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg); }
.ck-thumb img { position: absolute; max-width: none; width: var(--iw, 100%); height: var(--ih, 100%); left: var(--il, 0); top: var(--it, 0); object-fit: cover; }
.ck-thumb-48, .ck-thumb-40 { flex: none; aspect-ratio: auto; border-radius: 6px; }
.ck-thumb-48 { width: 48px; height: 48px; }
.ck-thumb-40 { width: 40px; height: 40px; }

/* Kennzahlen: keine Links, nur Zahl und Wort. */
.ck-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ck-zahl { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.ck-zahl-kopf { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; line-height: 20px; color: var(--muted); }
.ck-zahl-wert { margin: 0; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.ck-zahl-wert.is-fehler { color: var(--z-fehler-schrift); }

/* Links die Status-Spalten, rechts „Braucht Aufmerksamkeit“ und „Diese Woche“; umbrechend untereinander. */
.ck-eingang { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.ck-eingang-links { flex: 999 1 620px; min-width: 0; }
.ck-eingang-rechts { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.ck-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; align-items: start; }
.ck-stsp { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: var(--soft); border-radius: var(--r-l); }
.ck-stsp-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 2px; }
.ck-stsp-kopf h2 { font-size: inherit; line-height: 1; }
.ck-stsp-zahl { font-size: 13px; color: var(--muted); }
.ck-stsp-leer { margin: 0; padding: 4px 4px 8px; font-size: 13px; color: var(--muted); }
.ck-karten { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ck-karte {
  min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none;
}
.ck-karte:hover { border-color: var(--field-line); color: var(--ink); }
.ck-karte-oben { min-width: 0; display: flex; gap: 12px; align-items: flex-start; }
.ck-karte-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-karte-wg { font-size: 12px; font-weight: 500; color: var(--muted); overflow-wrap: anywhere; }
.ck-karte-titel {
  font-size: 14px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.ck-karte-unten { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ck-karte-termin { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ck-karte-termin .sym { width: 14px; height: 14px; stroke-width: 2; }
.ck-marken { display: flex; flex-wrap: wrap; gap: 4px; }
.ck-marke {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: var(--r-s);
  border: 1px solid color-mix(in srgb, var(--zs) 30%, var(--zf)); background: var(--zf); color: var(--zs); font-size: 12px; font-weight: 500;
}
/* Geplant: kompakt, Bild links, Titel einzeilig, darunter Weingut und Termin. */
.ck-karte.kompakt { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; }
.ck-karte-titel.einzeilig { display: block; white-space: nowrap; text-overflow: ellipsis; }
.ck-karte-neben { font-size: 12px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }

/* Weiße Fläche mit Kopfzeile: „Braucht Aufmerksamkeit“, „Diese Woche“. */
.ck-flaeche { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.ck-flaeche-kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 4px 8px 4px 16px;
  border-bottom: 1px solid var(--line);
}
.ck-flaeche-kopf h2 { font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; }
.ck-flaeche-leer { margin: 0; padding: 16px; color: var(--muted); }
.ck-zahlmarke {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: inline-grid; place-items: center;
  background: var(--z-fehler-flaeche); color: var(--z-fehler-schrift); font-size: 12px; font-weight: 600; line-height: 1;
}
.ck-aufm { list-style: none; margin: 0; padding: 0; }
.ck-aufm > li { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--soft); }
.ck-aufm > li:last-child { border-bottom: 0; }
.ck-aufm-sym { width: 32px; height: 32px; flex: none; display: inline-grid; place-items: center; border-radius: 8px; background: var(--zf); color: var(--zs); }
.ck-aufm-sym .sym { width: 18px; height: 18px; }
.ck-aufm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ck-aufm-satz { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.ck-aufm-wg { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ck-aufm .ck-knoepfe { margin-top: 4px; }
.ck-aufm .ck-msg { align-self: stretch; }

/* Wochenstreifen: je Tag Wochentag, Tageszahl (heute im Akzentkreis), Punkte und Zahl der Posts. */
.ck-woche { list-style: none; margin: 0; padding: 0; }
.ck-tag { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 16px; border-bottom: 1px solid var(--soft); }
.ck-tag:last-child { border-bottom: 0; }
.ck-tag-datum { flex: none; min-width: 108px; display: flex; align-items: center; gap: 8px; }
.ck-tag-wt { width: 20px; font-size: 12px; font-weight: 500; color: var(--muted); }
.ck-tag-nr { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 600; }
.ck-tag.heute .ck-tag-nr { background: var(--accent); color: var(--accent-on); }
.ck-tag.heute .ck-tag-wt, .ck-tag-heute { color: var(--accent); }
.ck-tag-heute { font-size: 12px; font-weight: 500; }
.ck-tag-punkte { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ck-tag-zahl { min-width: 2ch; text-align: right; font-size: 13px; font-weight: 600; }
.ck-tag-zahl.null { color: var(--muted); font-weight: 500; }

/* ---------- Post bearbeiten (Vorlage C) ---------- */
/* Enger als die übrigen Seiten: bei 1440 × 900 sollen Vorschau, Bildtext, Termin, Prüfung und Leiste ohne Scrollen zu sehen sein. */
.ck-bearbeiter .ck-inhalt { padding: 16px 32px 20px; gap: 16px; }
/* Leere Orte (Konflikt, neuer Stand) machen keinen doppelten Abstand; der Ort für den neuen Stand bleibt als Live-Region im Baum. */
.ck-inhalt > .ck-ort:empty { margin-top: -16px; }
.ck-post-hinweise { display: flex; flex-direction: column; gap: 8px; }
.ck-post-hinweise .ck-sub { margin: 0; }
.ck-kopf-angabe { font-size: 13px; color: var(--muted); }
.ck-spalten { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Schrittband im Kopf: erledigt mit Häkchen, aktuell in der Akzentfarbe mit Ring, offen nur mit Rand. Es bricht am Handy um. */
ol.ck-schritte { min-width: 0; max-width: 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; line-height: 20px; }
.ck-schritte li { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--muted); }
.ck-schritte li.ist-erledigt { color: var(--z-ruhig-schrift); }
.ck-schritte li.ist-aktuell { color: var(--accent); font-weight: 600; }
.ck-schritt-strich { width: 16px; height: 2px; border-radius: 1px; flex: none; background: var(--line); }
.ck-schritte li:is(.ist-erledigt, .ist-aktuell) .ck-schritt-strich { background: color-mix(in srgb, var(--accent) 50%, var(--surface)); }
.ck-schritt-kreis {
  width: 20px; height: 20px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--field-line) 55%, var(--surface)); color: var(--muted);
  font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}
.ck-schritte .ist-erledigt .ck-schritt-kreis { border-color: var(--accent-soft); background: var(--accent-soft); color: var(--accent); }
.ck-schritte .ist-aktuell .ck-schritt-kreis { border-color: var(--accent); background: var(--accent); color: var(--accent-on); box-shadow: 0 0 0 3px var(--accent-soft); }
.ck-schritt-kreis .sym { width: 14px; height: 14px; stroke-width: 2.25; }

/* Raster: links Vorschau und Bildtext, rechts 380 px Abschnitte; unter 1100 px untereinander. */
.ck-post { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; }
@media (width >= 1100px) {
  .ck-post { grid-template-columns: minmax(0, 1fr) 380px; }
}
.ck-buehne { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.ck-buehne-oben { flex: none; display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 16px 24px; padding: 16px 24px; background: var(--soft); }
.ck-buehne-info { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; }
.ck-buehne-info h2 { font-size: 13px; line-height: 20px; font-weight: 600; }
.ck-buehne-info p { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.ck-angaben { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ck-angaben div { display: flex; flex-direction: column; gap: 1px; }
.ck-angaben dt { font-size: 12px; color: var(--muted); }
.ck-angaben dd { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.ck-buehne-ausgleich { flex: 1 1 160px; min-width: 0; }
/* Instagram-Vorschau in Handybreite; Schrift wie in Vorlage C etwas kleiner als auf der Betriebsseite. */
.ck-vorschau { flex: 0 0 300px; width: 300px; max-width: 100%; align-self: center; }
.ck-vorschau .ig { border-radius: var(--r-l); }
.ck-vorschau .ig-head { padding: 8px 12px; }
.ck-vorschau .ig-user { font-size: 14px; }
.ck-vorschau .ig-cap { padding: 2px 12px 10px; font-size: 14px; line-height: 18px; }
.ck-vorschau .ig-more { font-size: 14px; }

/* Zwei Teile des Inhalts als Fieldsets ohne Rahmen; „Speichern“ sperrt beide gemeinsam. */
fieldset.ck-editor { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.ck-editor:disabled { opacity: .75; }
fieldset.ck-editor:disabled .zs-rahmen, fieldset.ck-editor:disabled .ck-strip li { pointer-events: none; }
.ck-bildtext { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px 16px; border-top: 1px solid var(--soft); }
.ck-bildtext .ck-field { margin: 0; }
.ck-bildtext > .ck-help { margin: 0; }
.ck-bildtext-kopf { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 6px; }
.ck-bildtext-kopf .ck-lbl { margin: 0; font-size: 14px; font-weight: 600; }
.ck-bildtext-hinweis { font-size: 13px; color: var(--muted); }
.ck-zaehler { margin: 6px 0 0; font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ck-zaehler.zu-viel { color: var(--z-fehler-schrift); font-weight: 600; }

/* Rechte Spalte: Abschnitte als Flächen mit 10 px Abstand, innen ebenso. */
.ck-details, .ck-abschnitte { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ck-details .ck-box { display: flex; flex-direction: column; gap: 10px; }
.ck-details .ck-box > :is(h2, h3, p, ul, blockquote) { margin: 0; }
.ck-details .ck-box > h2, .ck-box-kopf h2 { font-size: 15px; line-height: 22px; letter-spacing: -0.01em; }
.ck-details .ck-box > h3 { font-size: 13px; line-height: 20px; color: var(--muted); }
.ck-details .ck-field { margin-top: 0; }
.ck-box-kopf { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
/* „Spätestens am“ und „Vor (Uhrzeit)“ als Paar unter dem Termin. */
.ck-frist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
/* Ohne Termin: deutlich, weil der Post so nicht freigegeben werden kann. */
.ck-field.ohne-termin .ck-help { color: var(--z-hinweis-schrift); font-weight: 600; }
.ck-ki-kern { font-size: 15px; line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; }
.ck-ki-grund { font-size: 14px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }

.ck-ungespeichert { font-size: 13px; font-weight: 500; color: var(--z-hinweis-schrift); }
.ck-konflikt { margin: 0; padding: 12px 16px; background: var(--z-hinweis-flaeche); color: var(--z-hinweis-schrift); border-radius: var(--r-l); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.ck-konflikt p { margin: 0; font-weight: 600; flex: 1 1 220px; }

/* Bilder und Format: 56-px-Kacheln mit Nummer, darunter Pfeile und Entfernen; Hinzufügen als gestrichelte Kachel. */
.ck-medien { display: flex; flex-direction: column; gap: 10px; }
.ck-medien .ck-field { margin-top: 0; }
.ck-medien .ck-help { margin: 4px 0 0; }
.ck-medien-reihe { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 2px; }
.ck-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ck-strip li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ck-strip li.is-zug { opacity: .5; }
.ck-strip li.is-ziel .ck-mini { outline: 2px dashed var(--accent); outline-offset: 2px; }
.ck-mini {
  position: relative; width: 45px; height: 56px; flex: none; overflow: hidden; border: 0; border-radius: var(--r-m);
  background: var(--bg); padding: 0; cursor: grab;
}
.ck-mini.sv-11 { width: 56px; }
.ck-mini[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck-mini img { position: absolute; max-width: none; width: var(--iw, 100%); height: var(--ih, 100%); left: var(--il, 0); top: var(--it, 0); }
.ck-mini b {
  position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}
.ck-mini-k { display: flex; gap: 2px; }
.ck-mini-k button {
  width: 28px; min-height: 28px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink);
}
.ck-mini-k button:hover { background: var(--soft); }
.ck-mini-k button:disabled { opacity: .35; cursor: not-allowed; }
.ck-mini-k .sym { width: 16px; height: 16px; }
.ck-hinzu {
  flex: none; width: 56px; height: 56px; padding: 0; display: inline-grid; place-items: center;
  border: 1px dashed var(--field-line); border-radius: var(--r-m); background: var(--bg); color: var(--z-ruhig-schrift);
}
.ck-hinzu:hover { background: var(--soft); color: var(--ink); }
.ck-hinzu[aria-expanded="true"] { border-style: solid; border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ck-segmente { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-segment { flex: 1 1 240px; min-width: 0; }
.ck-segment .ck-segc { display: flex; width: 100%; }
.ck-segment .ck-segc button { flex: 1 1 0; }
.ck-material { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.ck-material button { position: relative; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); }
.ck-material img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ck-material small { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px; background: rgba(255, 255, 255, .92); font-size: 12px; color: var(--ink); }
.ck-material button:disabled { opacity: .45; cursor: not-allowed; }

.zs { margin-top: 12px; }
.zs-flaeche { position: relative; aspect-ratio: var(--sv, 4 / 3); max-height: 420px; max-width: 100%; background: var(--bg); border-radius: 8px; overflow: hidden; touch-action: none; }
.zs-flaeche img { display: block; width: 100%; height: 100%; object-fit: fill; user-select: none; -webkit-user-drag: none; }
.zs-rahmen {
  position: absolute; left: var(--zl); top: var(--zt); width: var(--zb); height: var(--zh);
  border: 3px solid #FFFFFF; box-shadow: 0 0 0 2px var(--ink), 0 0 0 9999px rgba(15, 20, 25, .45); cursor: move; touch-action: none;
}
.zs-rahmen:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.zs-rahmen.is-zug { cursor: grabbing; }

.ck-find { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ck-find li { padding: 12px; background: var(--z-hinweis-flaeche); border-radius: 10px; }
.ck-find li.sperre { background: var(--surface); border: 2px solid var(--z-fehler-schrift); }
.ck-find li.done { background: var(--z-geplant-flaeche); }
.ck-find .k { font-weight: 700; color: var(--z-hinweis-schrift); font-size: 14px; display: block; }
.ck-find li.sperre .k { color: var(--z-fehler-schrift); }
.ck-find li.done .k { color: var(--z-geplant-schrift); }
.ck-find p { margin: 2px 0 8px; font-size: 14px; overflow-wrap: anywhere; }
.ck-find .ok-t { font-size: 14px; font-weight: 600; color: var(--z-geplant-schrift); }
/* Reine Information (Rhythmus): ruhig, ohne Knopf. */
.ck-find li.info { background: var(--surface); border: 1px solid var(--line); }
.ck-find li.info .k { color: var(--muted); }
.ck-find .info-t { font-size: 14px; font-weight: 600; color: var(--muted); }
.ck-find h3 { font-size: 15px; margin: 6px 0 2px; }
.ck-quote { margin: 0 0 8px; padding-left: 12px; border-left: 3px solid var(--accent-soft); font-style: italic; overflow-wrap: anywhere; white-space: pre-line; }
.ck-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ck-liste li { overflow-wrap: anywhere; }
.ck-liste small { display: block; color: var(--muted); font-size: 14px; }
.ck-fass details { border-top: 1px solid var(--line); padding: 6px 0; }
.ck-fass summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--accent); }
.ck-diff { margin: 6px 0 0; display: flex; flex-direction: column; gap: 6px; }
.ck-diff p { margin: 0; padding: 6px 10px; border-radius: 8px; white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; }
.ck-diff .neu { background: var(--z-geplant-flaeche); color: var(--z-geplant-schrift); }
.ck-diff .entfernt { background: var(--z-hinweis-flaeche); color: var(--z-hinweis-schrift); text-decoration: line-through; }
.ck-diff .art { font-weight: 700; text-decoration: none; display: inline-block; margin-right: 6px; }


/* Haftende Aktionsleiste; solange das Formular für den Winzer offen ist, haftet sie nicht. */
.ck-aktionen {
  position: sticky; bottom: 16px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 8px 24px rgba(21, 32, 28, .08);
}
.ck-aktionen.ist-offen { position: static; }
.ck-aktionen-links, .ck-aktionen-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-aktionen-rechts { margin-left: auto; gap: 8px 12px; }
.ck-trenner { width: 1px; height: 28px; margin: 0 4px; background: var(--line); flex: none; }
.ck-neu { flex: 1 1 12rem; min-width: 10rem; display: flex; align-items: center; gap: 8px; }
.ck-neu-feld { position: relative; flex: 1 1 0; min-width: 0; }
.ck-neu-feld .sym { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ck-neu-feld .ck-in { padding-left: 38px; }
.ck-neu .ck-btn { flex: none; }
/* Der Grund steht in einer eigenen Zeile unter den Knöpfen, rechts unter „Freigeben“; so brechen die Knöpfe nicht um. */
.ck-grund { flex: 1 0 100%; margin: 0; min-width: 0; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 13px; font-weight: 500; color: var(--z-hinweis-schrift); }
.ck-grund:empty { display: none; }
.ck-grund .sym { width: 16px; height: 16px; }
.ck-aktionen > .ck-msg { flex: 1 0 100%; }
.ck-formular { flex: 1 0 100%; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.ck-formular h2 { font-size: 15px; line-height: 22px; }

/* ---------- Betriebe ---------- */
.ck-ig { display: inline-flex; align-items: center; gap: 8px; }
.ck-betriebe td:nth-child(2), .ck-betriebe td:nth-child(5) { white-space: nowrap; }

/* ---------- Betrieb: Kopf mit KI-Balken und Unterstrich-Reitern ---------- */
header.ck-kopf.mit-reitern { padding-bottom: 0; }
.ck-verbrauch { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; line-height: 20px; }
.ck-verbrauch-balken { flex: none; width: 160px; max-width: 100%; height: 6px; overflow: hidden; border-radius: 3px; background: var(--soft); }
/* Breite über die CSSOM-Variable --anteil (ansicht-betrieb.js); max-width hält den Balken in seinem Grund. */
.ck-verbrauch-fuellung { display: block; height: 100%; width: var(--anteil, 0%); max-width: 100%; border-radius: inherit; background: var(--accent); }
.ck-verbrauch-neben { color: var(--muted); }
.ck-tabs { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 8px 0 0; }
.ck-tabs a {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; margin-bottom: -1px;
  border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none;
}
.ck-tabs a:hover { color: var(--ink); border-bottom-color: var(--line); }
.ck-tabs a[aria-current="page"] { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.ck-bereich { max-width: 980px; min-width: 0; }

/* Verlauf: je Tag eine Überschrift und eine Zeitleiste; Wichtiges in der Farbe seines Zustands, Routine leise. */
.ck-verlauf-tag + .ck-verlauf-tag { margin-top: 24px; }
.ck-verlauf-tag h3 { margin-bottom: 8px; font-size: 14px; line-height: 20px; }
.ck-zeitleiste { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.ck-zeitleiste li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--soft); }
.ck-zeitleiste li:last-child { border-bottom: 0; }
.ck-zl-sym { flex: none; width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--r-m); background: var(--soft); color: var(--muted); }
.ck-zl-sym .sym { width: 18px; height: 18px; }
.ck-zeitleiste li.wichtig .ck-zl-sym { background: var(--zf); color: var(--zs); }
.ck-zl-satz { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.ck-zl-satz b { font-weight: 500; line-height: 20px; color: var(--muted); }
.ck-zeitleiste li.wichtig .ck-zl-satz b { font-weight: 600; color: var(--zs); }
.ck-zl-satz span { font-size: 13px; color: var(--muted); }
.ck-zl-zeit { flex: none; font-size: 13px; line-height: 32px; color: var(--muted); }

/* Posts: Filter, darunter die Tabelle. */
.ck-filter { margin-top: 0; max-width: 320px; }
.ck-posts-ort { margin-top: 16px; }
.ck-posts td:first-child { width: 48px; padding-right: 0; }
.ck-posts td:nth-child(3), .ck-posts td:nth-child(4) { white-space: nowrap; }

.ck-zeilen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ck-zeilen li { display: flex; gap: 6px; align-items: center; }
.ck-zeilen .ck-in { flex: 1; min-width: 0; }
.ck-zeilen .ck-btn { flex: none; }
/* Formularteil: weiße Fläche; die Legende steht als Überschrift in der Fläche statt auf dem Rahmen. */
.ck-formteil { min-width: 0; margin: 0 0 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.ck-formteil > legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.ck-formteil > legend + * { clear: both; }
.ck-tage { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.ck-kontakte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ck-kontakte h3 { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.ck-adresse { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ck-adresse code { flex: 1 1 260px; min-width: 0; padding: 10px 12px; background: var(--bg); border-radius: 8px; overflow-wrap: anywhere; font-size: 14px; }
.ck-konto { font-size: 20px; line-height: 28px; font-weight: 600; margin: 4px 0 8px; overflow-wrap: anywhere; }
.ck-farben { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ck-farbe input[type="color"] { width: 100%; height: 48px; border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--surface); padding: 4px; }
.ck-logo { width: 96px; height: 96px; object-fit: contain; background: var(--bg); border-radius: 12px; border: 1px solid var(--line); }
.ck-muster { display: flex; gap: 8px; margin-top: 10px; }
.ck-muster i { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--muster, var(--bg)); }
.ck-wortliste { margin-bottom: 18px; }
.ck-wortliste h2 { font-size: 16px; line-height: 24px; }
.ck-gruppenhilfe { margin: 0 0 12px; }
.ck-wortliste .ck-zeilen li { flex-wrap: wrap; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--soft); }
.ck-wortliste .ck-zeilen li > .ck-btn { margin-top: 2px; }
/* Eine Zeile je Wort: bricht um statt abzuschneiden. */
.ck-wortzeile { flex: 1 1 24rem; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.ck-wortfeld { flex: 1 1 12rem; min-width: 12rem; }
.ck-wortfeld .ck-in { width: 100%; }
.ck-schalterzeile { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; white-space: normal; font-weight: 400; }
.ck-schalter {
  appearance: none; flex: none; position: relative; width: 36px; height: 20px; margin: 0; border-radius: 10px;
  background: var(--field-line); cursor: pointer; transition: background .15s;
}
.ck-schalter::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); transition: transform .15s;
}
.ck-schalter:checked { background: var(--accent); }
.ck-schalter:checked::after { transform: translateX(16px); }
.ck-schalter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck-wirkung { display: inline-flex; align-items: center; }
.ck-mehr { flex: 1 0 100%; }
.ck-mehr summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--accent); }
.ck-mehr-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding-bottom: 8px; }
@media (width < 700px) {
  .ck-wortfeld { flex-basis: 100%; }
  .ck-mehr-felder { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Leiste oben unter 900 px ---------- */
@media (width < 900px) {
  .ck { display: block; }
  .ck-top {
    position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 12px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .ck-nav { flex-direction: row; flex-wrap: wrap; order: 3; width: 100%; }
  .ck-nav a { gap: 8px; padding: 0 10px; }
  .ck-nav-t { flex: none; }
  .ck-fuss { margin: 0 0 0 auto; padding: 0; border: 0; }
  .ck-abmelden { width: auto; gap: 8px; padding: 0 10px; }
  header.ck-kopf { padding: 10px 20px; }
  .ck-inhalt { padding: 20px 20px 32px; }
  .ck-main:not(:has(> .ck-seite)) { padding: 20px 20px 32px; }
  .ck-netz { padding: 8px 20px; }
}

/* ---------- Handy: alles untereinander; Eingabefelder 16 px, damit iOS beim Antippen nicht zoomt ---------- */
@media (max-width: 700px) {
  header.ck-kopf { padding: 10px 16px; }
  .ck-inhalt, .ck-main:not(:has(> .ck-seite)) { padding: 16px; }
  .ck-netz { padding: 8px 16px; }
  .ck-find p, .ck-sub,
  .ck-liste small, .ck-diff p, .ck-adresse code { font-size: 16px; }
  .ck-find .k { font-size: 15px; }
  /* Eingang: Kennzahlen zu zweit nebeneinander statt vier hohe Kacheln untereinander. */
  .ck-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-farben, .ck-frist { grid-template-columns: 1fr; }
  /* Post bearbeiten: alles untereinander, die Leiste haftet unten über die volle Breite. */
  .ck-bearbeiter .ck-inhalt { padding: 16px 16px 0; }
  .ck-buehne-oben { padding: 16px; }
  .ck-buehne-ausgleich, .ck-trenner { display: none; }
  .ck-bildtext { padding: 14px 16px 16px; }
  .ck-aktionen {
    bottom: 0; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 0;
    box-shadow: 0 -4px 16px rgba(21, 32, 28, .08);
  }
  .ck-neu { flex: 1 1 100%; flex-wrap: wrap; }
  .ck-neu-feld { flex: 1 1 100%; }
  .ck-aktionen .ck-btn { flex: 1 1 auto; }
  .ck-aktionen-links, .ck-aktionen-rechts { flex: 1 1 100%; margin-left: 0; }
  .ck-grund { justify-content: flex-start; }
  .ck-mini-k button { width: 44px; min-height: 44px; }
  .ck-in, .ck-text, .ck-sel { font-size: 16px; }
}

