/* Dynamis-App, feste helle Darstellung, Handy zuerst. Eigene Schrift (Lora, Source Sans 3), die App macht keine externen Anfragen. */
/* Eigene Schrift, nichts von Google. Variable Schriften (Teilmenge latin), Lizenz in schriften/OFL.txt */
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/schriften/lora.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('/schriften/lora-kursiv.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/schriften/source-sans-3.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 200 900; font-display: swap; src: url('/schriften/source-sans-3-kursiv.woff2') format('woff2'); }
:root {
  --coral: #c3512f; --blau: #3b5898; --teal: #88bbc8; --sonne: #f5c770;
  --creme: #f7eadc; --violett: #8e5aa0; --tinte: #363636; --weiss: #ffffff;
  --hell: #f6f3ee; --linie: #e2dccf;
  --zentrum: #c3512f; --verlag: #3b5898; --thomas: #8e5aa0;
  --schrift: 'Source Sans 3', system-ui, sans-serif;
  --schrift-titel: 'Lora', Georgia, serif;
  --rand: 16px;
  --leiste-breite: 230px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); }  /* Platz unter der festen Navigation: Fokus und Scrollen landen nie darunter */
body {
  margin: 0; background: var(--hell); color: var(--tinte);
  font-family: var(--schrift);
  font-size: 17px; line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--schrift-titel); }
h1 { font-size: 27px; line-height: 1.2; margin: 0 0 12px; color: var(--blau); font-weight: 700; overflow-wrap: anywhere; }
h2 { font-size: 22px; margin: 28px 0 10px; color: var(--blau); font-weight: 700; }
.lead { margin: 0 0 18px; font-size: 18px; overflow-wrap: anywhere; }

/* Navigation: am Handy unten, ab 768 Pixel links */
.rahmen { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
nav.haupt {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; flex-direction: row;
  background: var(--blau); color: var(--weiss);
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
}
.logo-kopf { display: none; }
nav.haupt a {
  flex: 1 1 0; min-width: 0; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--weiss); text-decoration: none; border-radius: 12px;
  font-size: 12px; font-weight: 400; line-height: 1.2; padding: 4px 0; text-align: center; white-space: nowrap;
}
nav.haupt a .zeichen { font-size: 22px; line-height: 1.1; }
@media (max-width: 374px) { nav.haupt a { font-size: clamp(10px, 3.1vw, 12px); } }   /* sechs Namen in einer Zeile: «Kampagnen» und «Gedächtnis» passen auch bei 320 Pixel in ihr Feld */
nav.haupt a[aria-current="page"] { background: var(--weiss); color: var(--blau); }
a:focus-visible, .knopf:focus-visible, .textknopf:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; }
nav.haupt a:focus-visible { outline-color: var(--weiss); }

main#bereich { padding: 20px var(--rand) 24px; min-width: 0; }
main.ohne-navigation { max-width: 460px; margin: 0 auto; }
/* Fuss im Cockpit: klein, ruhig, kein Link. #595959 auf dem hellen Grund (#f6f3ee) gibt Kontrast über 6 */
.fuss-produkt { margin: 32px 0 0; padding-top: 12px; border-top: 1px solid var(--linie); font-size: 14px; line-height: 1.4; color: #595959; text-align: center; }
.logo-gross { width: 88px; height: 88px; object-fit: contain; margin: 8px 0 16px; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  border-radius: 12px; font-size: 18px; font-weight: 800; padding: 10px 22px;
  cursor: pointer; text-decoration: none; border: 2px solid transparent;
}
.knopf.haupt { background: var(--coral); color: var(--weiss); }
.knopf.haupt:hover { background: #a94323; }
.knopf.zweit { background: var(--weiss); color: var(--blau); border-color: var(--blau); }
.knopf.zweit:hover { background: var(--creme); }

/* Formulare */
.formular { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.feld { width: 100%; }
.feld label { display: block; font-weight: 700; margin-bottom: 4px; }
.feld input, .feld textarea {
  width: 100%; min-height: 52px; padding: 10px 12px; font-size: 18px; color: var(--tinte);
  background: var(--weiss); border: 2px solid var(--blau); border-radius: 12px;
}
.haken { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.haken input { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; accent-color: var(--blau); }
.formular .knopf.haupt { width: 100%; }
.zweite-aktion { margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--linie); gap: 10px; }
.hilfe { margin: 0; }
.feld textarea { display: block; line-height: 1.4; resize: vertical; }
.feld textarea.gross { min-height: 320px; }
.feld input[type="file"] { padding: 10px 8px; font-size: 17px; }
.feld-paar { display: flex; gap: 12px; width: 100%; }
.feld-paar .feld { flex: 1 1 0; min-width: 0; }
.feld input.farbwahl { width: 96px; padding: 4px; cursor: pointer; }
fieldset.gruppe-feld { border-top: 2px solid var(--linie); padding-top: 14px; }
fieldset.feld { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.feld label.haken { display: flex; margin: 0; font-weight: 400; }
.feld .haken input { min-height: 0; padding: 0; }
.feld-hinweis { margin: 8px 0 4px; font-weight: 800; }
/* Knopf für zweite Wahl: sieht aus wie ein Link, ist aber gross genug zum Tippen */
.textknopf {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; background: none; border: 0;
  color: var(--blau); font-size: inherit; font-weight: 700; text-decoration: underline; text-align: left; cursor: pointer;
}
.nach-formular { margin: 16px 0; }
.mehr-felder { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.mehr-felder summary { display: flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--blau); text-decoration: underline; cursor: pointer; }
.mehr-felder summary::before { content: '▸'; margin-right: 8px; }
.mehr-felder[open] summary::before { content: '▾'; }
.mehr-felder .feld { margin-top: 16px; }
/* Fängt die Eingabetaste ab, damit sie nie online stellt oder überschreibt */
.eingabetaste { position: absolute; left: -9999px; width: 44px; height: 44px; opacity: 0; }
.vorschau { display: inline-block; margin-bottom: 8px; min-height: 44px; }
.vorschau img { max-height: 160px; border: 2px solid var(--linie); border-radius: 8px; }
.einfuegen { width: 100%; padding: 14px; background: var(--creme); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* Listen */
.suche { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs a {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 10px;
  background: var(--weiss); color: var(--blau); border: 2px solid var(--blau); border-radius: 12px; font-weight: 800; text-decoration: none;
}
.tabs a[aria-current="page"] { background: var(--blau); color: var(--weiss); }
.liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.zeile {
  display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 12px 14px; background: var(--weiss);
  border: 2px solid var(--linie); border-radius: 12px; color: var(--tinte); text-decoration: none;
}
.zeile:hover { border-color: var(--blau); }
.zeile-titel { font-weight: 800; color: var(--blau); overflow-wrap: anywhere; }
.zeile-text { overflow-wrap: anywhere; }
.marke { font-weight: 700; white-space: nowrap; margin-right: 10px; }
.kurz { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 16px; }
h3 { font-size: 18px; margin: 16px 0 6px; }
.aktionen-erinnerung { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.aktionen-erinnerung .knopf { flex: 1 1 180px; }
.erinnerung-vorschau pre { margin: 0 0 8px; padding: 10px 12px; background: var(--creme); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.mehr-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; align-items: flex-start; }

/* Rückmeldungen: immer Zeichen plus Farbe */
.feld-fehler { margin: 8px 0 0; color: #a94323; font-weight: 800; }
#bereich > .feld-fehler { margin: 0 0 14px; }
.meldung p { margin: 0; }
.meldung .knopf { margin-top: 10px; }
.meldung.warn { border-color: #a94323; border-width: 3px; }
.meldung {
  margin: 0 0 16px; overflow-wrap: anywhere; padding: 12px 14px; background: var(--weiss); color: var(--tinte);
  border: 2px solid var(--blau); border-radius: 12px; font-weight: 700;
}

@media (min-width: 768px) {
  html { scroll-padding-bottom: 0; }
  body { font-size: 18px; }
  h1 { font-size: 32px; }
  .rahmen { display: flex; min-height: 100vh; padding-bottom: 0; }
  nav.haupt {
    position: sticky; top: 0; align-self: flex-start; flex: 0 0 var(--leiste-breite);
    height: 100vh; flex-direction: column; gap: 6px; padding: 20px 14px;
  }
  .logo-kopf { display: flex; align-items: center; gap: 10px; padding: 0 6px 18px; font-weight: 800; font-size: 19px; line-height: 1.2; }
  .logo-kopf img { width: 46px; height: 46px; object-fit: contain; background: var(--weiss); border-radius: 50%; padding: 4px; }
  nav.haupt a {
    flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 52px;
    font-size: 19px; font-weight: 700; padding: 8px 14px; text-align: left;
  }
  nav.haupt a .zeichen { width: 26px; text-align: center; font-size: 22px; }
  nav.haupt a:hover { background: rgba(255, 255, 255, .15); }
  nav.haupt a[aria-current="page"]:hover { background: var(--weiss); }
  main#bereich { flex: 1 1 auto; padding: 28px 32px 48px; max-width: 1100px; }
  main#bereich.ohne-navigation { flex: none; max-width: 460px; padding-top: 48px; }
  .formular .knopf.haupt { width: auto; }
  .suche { flex-direction: row; align-items: flex-end; }
  .suche .feld { max-width: 460px; }
  .tabs { max-width: 460px; }
  .formular .feld, .formular .feld-paar { max-width: 760px; }
  .feld-paar .feld { max-width: none; }
}

/* ---- Statusübersicht (Heute) und Stand der Kanäle ----
   Unter 1200 Pixel Karten statt Tabelle: die Seitenleiste nimmt ab 768 Pixel Platz weg, sieben Spalten würden Wörter zerreissen. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.feld select {
  width: 100%; min-height: 52px; padding: 10px 12px; font-size: 18px; color: var(--tinte);
  background: var(--weiss); border: 2px solid var(--blau); border-radius: 12px;
}
.st-zeichen { display: inline-block; min-width: 1.1em; text-align: center; font-weight: 800; }
.legende { list-style: none; margin: 0 0 16px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; font-size: 16px; }
.legende-betrieb { font-weight: 700; }
.heute-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 16px 0 0; }

.stand-tabelle { display: block; width: 100%; }
.stand-tabelle thead { display: none; }
.stand-tabelle tbody { display: block; }
.stand-tabelle tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; padding: 12px 14px; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; }
.stand-tabelle th.stand-anlass { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; text-align: left; font-weight: 400; overflow-wrap: break-word; }
.stand-tabelle td { display: block; min-width: 0; padding: 0; }
.stand-tabelle td::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.stand-zelle {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; min-height: 44px; padding: 6px 10px;
  border: 2px solid var(--blau); border-radius: 10px; color: var(--blau); font-weight: 700; font-size: 16px; text-decoration: none; background: var(--weiss);
}
a.stand-zelle:hover { background: var(--creme); }
.stand-zelle.fest { border: 2px dashed var(--linie); color: var(--tinte); background: var(--hell); }
.st-text { overflow-wrap: break-word; min-width: 0; }

.stand-kopf { margin: 0 0 16px; overflow-wrap: break-word; }
.stand-kopf .zeile-titel { display: inline-flex; align-items: center; min-height: 44px; }
.stand-anlass .zeile-titel { display: flex; align-items: center; min-height: 44px; }
.dran-zeile .zeile-titel { display: inline-flex; align-items: center; min-height: 44px; }
.dran-kampagne { font-size: 15px; }
.stand-fest { margin: 0 0 14px; overflow-wrap: break-word; }
fieldset.stand-kanal { border: 2px solid var(--linie); border-radius: 12px; padding: 12px 14px; background: var(--weiss); }
fieldset.stand-kanal legend { padding: 0 6px; font-size: 19px; }
.stand-anzahl { margin-bottom: 6px; max-width: 280px; }
.stand-haken { display: flex; flex-direction: column; }
.stand-bestaetigung { margin-top: 16px; scroll-margin-top: 16px; scroll-margin-bottom: 16px; }
.stand-bestaetigung:focus { outline: none; }
.stand-form .knopf.haupt { margin-top: 4px; }

/* ---- Kampagnen-Seite: Kopf, Zeitachse, Abschnitt «Von Hand abhaken» ---- */
.kampagne-kopf { margin: 0 0 8px; overflow-wrap: anywhere; }
.kampagne-kopf p { margin: 0 0 8px; }
.kampagne-fortschritt { font-size: 20px; }
.zeitachse > li.zeile { gap: 4px; }
.eintrag-datum { font-weight: 800; color: var(--blau); }
.eintrag-inhalt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.eintrag-bildzeile { display: flex; align-items: center; gap: 10px; min-width: 0; }
.eintrag-vorschau { flex: none; width: 64px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid var(--linie, #d9d9e3); background: #f2f2f6; }
.bild-sperre { margin: 8px 0 0; }
.eintrag-zustand { white-space: normal; margin-right: 0; }
.eintrag-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: flex-start; }
.eintrag-knoepfe .knopf, .eintrag-verschieben > summary { min-height: 48px; font-size: 16px; padding: 8px 16px; }
.eintrag-form { margin: 0; }
.eintrag-verschieben { flex: 1 1 100%; }
.eintrag-verschieben > summary { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; border: 2px solid var(--blau); border-radius: 12px; color: var(--blau); background: var(--weiss); font-weight: 800; }
.eintrag-verschieben > summary::-webkit-details-marker { display: none; }
.eintrag-verschieben[open] > summary { background: var(--creme); }
.eintrag-verschieben form { margin-top: 10px; }
.z-nicht_noetig .zeile-titel, .z-nicht_noetig .eintrag-text { text-decoration: line-through; }
.z-draussen { background: var(--hell); }
.stand-uebersicht { margin: 0 0 12px; }
.stand-uebersicht li { scroll-margin-top: 12px; }
details.von-hand { margin: 8px 0 24px; padding: 4px 14px 14px; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; }
details.von-hand > summary { display: flex; align-items: center; min-height: 48px; font-weight: 800; color: var(--blau); text-decoration: underline; cursor: pointer; }
details.von-hand[open] > summary { margin-bottom: 8px; }
@media (min-width: 1100px) {
  .zeitachse > li.zeile { display: grid; grid-template-columns: 9rem minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .eintrag-datum { font-size: 19px; padding-top: 2px; }
}

/* ---- Kalender ---- */
.filter-leiste { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.filter-leiste a {
  display: flex; align-items: center; min-height: 48px; padding: 6px 14px; background: var(--weiss); color: var(--blau);
  border: 2px solid var(--blau); border-radius: 12px; font-weight: 800; text-decoration: none;
}
.filter-leiste a[aria-current="true"] { background: var(--blau); color: var(--weiss); }
.monat-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.monat-nav .knopf { min-height: 48px; padding: 8px 14px; flex: 0 0 auto; }
.monat-name { margin: 0; font-size: 22px; text-align: center; flex: 1 1 auto; }
.zum-heute { margin: 0 0 12px; }
.kal-wochentage { display: none; }
.kal-raster { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kal-tag.leer-zelle, .kal-tag.ohne { display: none; }
.kal-tag.heute.ohne { display: block; }
.kal-leer { margin: 6px 0 0; font-weight: 700; }
.zurueck-kalender { margin: 0 0 4px; }
.kal-tag { min-width: 0; padding: 10px 12px; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; }
.kal-tag.heute { border: 3px solid var(--tinte); }
.kal-kopf { margin: 0 0 6px; font-size: 18px; color: var(--blau); }
.kal-nr { display: none; }
.kal-heute { margin-left: 6px; padding: 0 6px; font-size: 14px; font-weight: 800; color: var(--tinte); border: 2px solid var(--tinte); border-radius: 6px; }
.kal-eintrag {
  display: block; min-height: 44px; margin: 6px 0 0; padding: 8px 10px; background: var(--hell); color: var(--tinte);
  border-radius: 8px; text-decoration: none; overflow-wrap: break-word; hyphens: manual;
}
.kal-eintrag:hover { background: var(--creme); }
.kal-eintrag .zeit { font-weight: 700; white-space: nowrap; }
.kal-eintrag .kal-titel { font-weight: 700; color: var(--blau); }
.marke-klein { display: inline-block; padding: 0 6px; font-size: 14px; font-weight: 800; border: 2px solid var(--tinte); border-radius: 6px; white-space: nowrap; }

@media (min-width: 768px) {
  .stand-tabelle tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .stand-tabelle { display: table; table-layout: fixed; border-collapse: separate; border-spacing: 0 8px; }
  .stand-tabelle thead { display: table-header-group; }
  .stand-tabelle thead th:first-child { width: 31%; }
  .stand-tabelle thead th { padding: 4px 6px; text-align: left; font-size: 16px; color: var(--blau); }
  .stand-tabelle tbody { display: table-row-group; }
  .stand-tabelle tr { display: table-row; padding: 0; margin: 0; background: none; border: 0; }
  .stand-tabelle thead tr { display: table-row; }
  .stand-tabelle td, .stand-tabelle th.stand-anlass { display: table-cell; padding: 8px 8px; vertical-align: top; background: var(--weiss); border-top: 2px solid var(--linie); border-bottom: 2px solid var(--linie); }
  .stand-tabelle th.stand-anlass { display: table-cell; border-left: 2px solid var(--linie); border-radius: 12px 0 0 12px; }
  .stand-tabelle th.stand-anlass > * { display: block; margin-bottom: 2px; }
  .stand-tabelle td:last-child { border-right: 2px solid var(--linie); border-radius: 0 12px 12px 0; }
  .stand-tabelle td::before { display: none; }
  .stand-zelle { font-size: 15px; padding: 4px 6px; column-gap: 4px; }
  .stand-zelle .st-text { white-space: nowrap; }   /* «− nicht nötig» bleibt auf einer Zeile */

}

/* Das Monatsraster ab 1280 Pixel (Michelles Mac ist 1440 breit). Lange Wörter tragen weiche Trennstellen, darunter gilt die Tagesliste. */
@media (min-width: 1280px) {
  main#bereich:has(.kal-raster) { max-width: none; }
  .kal-wochentage, .kal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .kal-wochentage { margin-bottom: 6px; font-weight: 800; text-align: center; }
  .kal-tag.leer-zelle, .kal-tag.ohne { display: block; }
  .kal-tag.leer-zelle { background: none; border: 0; }
  .kal-tag { min-height: 110px; padding: 6px; border-width: 1px; border-radius: 8px; }
  .kal-tag.heute { border-width: 3px; padding: 4px; }
  .kal-kopf { margin: 0 0 4px; font-size: 16px; }
  .kal-nr { display: inline; font-weight: 800; }
  .kal-datum { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .kal-eintrag { padding: 5px 6px; margin-top: 4px; font-size: 13px; line-height: 1.3; hyphens: manual; }
  .kal-leer { display: none; }
}

/* ---- Entwürfe und Bilder ---- */
.entwurf-raster { display: flex; flex-direction: column; gap: 16px; }
details.original { background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; padding: 0 14px; min-width: 0; }
details.original summary { display: flex; align-items: center; min-height: 48px; font-weight: 800; color: var(--blau); cursor: pointer; }
.entwurf-kopf .marke, .liste.entwuerfe .marke { white-space: normal; }
.original-text { padding-bottom: 12px; }
.original-text h2 { margin: 14px 0 6px; font-size: 19px; }
.original-inhalt { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 8px; }
.angaben { margin: 0; padding-left: 20px; overflow-wrap: anywhere; }
.entwurf-form { width: 100%; min-width: 0; }
section.kanal { width: 100%; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; padding: 4px 14px 14px; min-width: 0; }
section.kanal h2 { margin: 12px 0 8px; font-size: 21px; }
.folien-titel { margin: 16px 0 4px; font-size: 18px; color: var(--blau); }
.zaehler { margin: 6px 0 0; font-size: 15px; }
.zu-lang { font-weight: 800; color: #a94323; }
.kopieren { margin-top: 10px; }
.befunde { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.befund { padding: 10px 12px; border: 2px solid #a94323; border-radius: 10px; overflow-wrap: anywhere; }
.befund p { margin: 0 0 6px; }
.befund p:last-child { margin-bottom: 0; }
.befund .knopf { margin-top: 4px; }
.befund-ok { margin: 12px 0 0; }
.geprueft { font-weight: 700; }
.aktionen { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.aktionen .hilfe { margin: 0; }
.regel-vorschlag { margin-top: 12px; padding: 10px 12px; background: var(--creme); border-radius: 10px; overflow-wrap: anywhere; }
.regel-vorschlag p { margin: 0; }
.bilder-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.bild { margin: 0; padding: 12px; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; min-width: 0; }
.bild-titel { margin-bottom: 8px; font-weight: 800; color: var(--blau); }
.bild-flaeche { width: 100%; max-width: 480px; border: 2px solid var(--linie); overflow: hidden; }
.bild-story .bild-flaeche { max-width: 270px; }
.versand-bilder { margin: 0 0 20px; }
.versand-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.versand-liste li { margin: 2px 0; overflow-wrap: anywhere; }
.versand-liste:empty { display: none; }
.versand-vorschau { vertical-align: middle; border-radius: 4px; object-fit: cover; margin: 0 6px; background: #eee; }
.bild-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---- Stimme, Handliste, nächster Schritt ---- */
.naechster-schritt { margin-bottom: 12px; }
.regel-titel { margin: 16px 0 6px; font-size: 18px; color: var(--blau); }
.regeln, .titel-liste, .offen-liste, .liste-fehler { margin: 0; padding-left: 20px; overflow-wrap: anywhere; }
.regeln { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 12px; }
.regel-form { padding: 10px 12px; background: var(--creme); border-radius: 10px; }
.regel-text { margin: 0 0 6px; font-weight: 700; overflow-wrap: anywhere; }
.regel-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.titel-liste li { margin-bottom: 8px; }
.schnaeppchen { font-weight: 700; }
details.lesen-liste { margin: 10px 0; border-top: 2px solid var(--linie); }
details.lesen-liste summary { display: flex; align-items: center; min-height: 48px; font-weight: 800; color: var(--blau); cursor: pointer; }
.liste-fehler { margin-top: 8px; }
#handliste-form { margin: 16px 0; }
.beispiel { margin: 6px 0; padding: 8px 10px; background: var(--creme); border-radius: 8px; font-size: 14px; overflow-x: auto; white-space: pre; max-width: 100%; }
.titel-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.titel-verwaltung { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 14px; }
.beleg-zeile { margin: 0; overflow-wrap: anywhere; }
.offen-text { margin: 0; overflow-wrap: anywhere; }
.regel-frage p { margin: 0 0 6px; font-weight: 700; }
.regel-frage .knopf { text-decoration: none; }
.stilbuch-kurz { margin: 0 0 12px; }
.stilbuch-kurz dt { font-weight: 700; margin-top: 8px; }
.stilbuch-kurz dd { margin: 0; overflow-wrap: anywhere; }
#feld-liste { white-space: pre; overflow-x: auto; }

@media (min-width: 768px) {
  .bilder-raster { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
}
@media (min-width: 1100px) {
  .entwurf-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: start; gap: 24px; }
  details.original { position: sticky; top: 12px; }
  .aktionen { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .aktionen .hilfe { flex: 1 1 100%; }
  .aktionen .knopf { width: auto; }
}

/* ---- Heute: Was heute dran ist ---- */
.heute-dran { margin: 0 0 8px; }
.heute-dran h2 { margin-top: 8px; }
.dran-liste { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dran-zeile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; }
.dran-text { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.dran-zeile .knopf { min-height: 48px; }
.dran-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dran-form { display: block; }
.weg-zeile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; }
.weg-text { margin: 0; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 4px; }
.weg-form { display: block; }
.weg-aktionen .formular { margin-bottom: 10px; }
#anlass-gesperrt p, #beitrag-ausgelassen p { margin: 0 0 8px; overflow-wrap: anywhere; }
.kal-beitrag { border: 2px dashed var(--linie); background: var(--weiss); }

/* ---- Fotos zu einem Anlass ---- */
.fotos-link { margin: 0 0 8px; }
.fehler-liste { margin: 4px 0 0; padding-left: 20px; }
.feld-fehler p { margin: 0 0 4px; }
#foto-feld.zieht { outline: 3px dashed var(--blau); outline-offset: 4px; background: var(--creme); }
.foto-hinweise { margin: 0 0 14px; padding-left: 20px; overflow-wrap: anywhere; }
.foto-liste { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.foto-karte { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; }
.foto-bild { width: 100%; height: 220px; object-fit: contain; background: var(--hell); border-radius: 8px; }
.foto-titel { margin: 0; font-weight: 800; color: var(--blau); }
.foto-mass { font-weight: 400; font-size: 15px; color: var(--tinte); }
.foto-marken { margin: 0; min-height: 28px; display: flex; flex-wrap: wrap; gap: 6px; }

@media (min-width: 768px) {
  .dran-zeile { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .dran-zeile .knopf { flex: 0 0 auto; }
  .foto-liste { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ---- Versand: Veröffentlichen, Ansicht, Stand am Entwurf ---- */
.versand-form { width: 100%; }
.versand-form section.kanal { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.versand-form section.kanal h2 { margin-bottom: 0; }
.versand-form .aktionen { margin-top: 4px; }
.versand-bilder-wahl label.haken { overflow-wrap: anywhere; }
.versand-kanaele li { margin: 6px 0; }
.versand-zeilen { margin-bottom: 16px; }
.von-hand-eintrag { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--linie); overflow-wrap: anywhere; }
.von-hand-eintrag:last-child { border-bottom: 0; }
.versand-auftraege .zeile { overflow-wrap: anywhere; }

/* ---- Teilnehmerliste, Druckseite ---- */
.teil-druck { margin: 0 0 16px; }
.teil-lage { margin: 0 0 12px; font-weight: 700; }
.teil-gruppe { margin: 0 0 24px; }
.teil-gruppe h2 { margin-bottom: 10px; }
.teil-liste { gap: 10px; }
.teil-karte { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; overflow-wrap: anywhere; }
.teil-name { margin: 0; font-weight: 800; }
.teil-name a { display: inline-block; min-height: 44px; line-height: 44px; color: var(--blau); }
.teil-zeile { margin: 0; }
.teil-zeile a { display: inline-block; min-height: 44px; line-height: 44px; }
.teil-warn { margin: 4px 0 0; color: #a94323; font-weight: 800; }
.teil-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.teil-aktionen form { margin: 0; }
.druck { max-width: 900px; margin: 0 auto; padding: 16px; }
.druck-kopf { margin: 0 0 14px; }
.druck-tabelle { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.druck-tabelle th, .druck-tabelle td { border: 1px solid var(--tinte); padding: 8px 10px; text-align: left; overflow-wrap: anywhere; }
.druck-tabelle td.da { width: 14%; }
@media print {
  nav.haupt, .fuss-produkt, .nicht-druck, .knopf, .textknopf, .meldung, .teil-aktionen, .teil-druck, form { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .rahmen { display: block; padding: 0; }
  .druck { max-width: none; padding: 0; }
  .druck-tabelle th, .druck-tabelle td { border-color: #000; padding: 6pt 8pt; }
  .druck-tabelle td.da { height: 22pt; }
  .druck-tabelle tr { page-break-inside: avoid; }
}

/* ---- Betriebe: Rand und Schild in der Farbe des Betriebs (Zentrum Koralle, Verlag Blau, Thomas Müller Violett), nie ein Zeichen ---- */
.schild { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--zentrum); color: var(--weiss); font-size: 15px; font-weight: 800; line-height: 1.3; white-space: nowrap; vertical-align: baseline; }
.schild-zentrum { background: var(--zentrum); }
.schild-verlag { background: var(--verlag); }
.schild-thomas { background: var(--thomas); }
.betrieb-zentrum { --bfarbe: var(--zentrum); }
.betrieb-verlag { --bfarbe: var(--verlag); }
.betrieb-thomas { --bfarbe: var(--thomas); }
.betrieb-zentrum, .betrieb-verlag, .betrieb-thomas { border-left: 6px solid var(--bfarbe); }
.betrieb-zentrum:hover, .betrieb-verlag:hover, .betrieb-thomas:hover { border-left-color: var(--bfarbe); }
.stand-tabelle th.stand-anlass.betrieb-zentrum, .stand-tabelle th.stand-anlass.betrieb-verlag, .stand-tabelle th.stand-anlass.betrieb-thomas { border-left: 6px solid var(--bfarbe); }
.stand-tabelle th.stand-anlass > .schild { display: block; width: fit-content; }
.stand-kopf.betrieb-zentrum, .stand-kopf.betrieb-verlag, .stand-kopf.betrieb-thomas { padding-left: 10px; }
section.kanal.betrieb-zentrum, section.kanal.betrieb-verlag, section.kanal.betrieb-thomas { border-left: 6px solid var(--bfarbe); }
.zeile-text .schild { margin-right: 6px; }
.kal-eintrag .schild { margin-right: 4px; padding: 0 8px; font-size: 13px; }
.legende-betrieb { margin: 0; }
.filter-leiste a .schild { margin-left: 0; }

/* Stufe 7a: Anweisung an einen Text im Entwurf, Vorschlag mit vorher und nachher */
.anweisung-text { margin: 16px 0 4px; padding-top: 12px; border-top: 2px solid var(--linie); }
.anweisung-text .vorschlag { margin: 0 0 16px; padding: 12px; background: var(--creme); border-radius: 10px; overflow-wrap: anywhere; }
.anweisung-text .vorschlag h3 { margin: 0 0 6px; font-size: 18px; color: var(--blau); }
.vorher-nachher { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 8px 0; }
.vn { padding: 10px 12px; background: var(--weiss); border: 2px solid var(--linie); border-radius: 10px; overflow-wrap: anywhere; }
.vn-nachher { border-color: var(--blau); }
.vn h4 { margin: 0 0 6px; font-size: 16px; }
.vn p { margin: 0; }
.vn-folien { margin: 8px 0 0; padding-left: 22px; }
.anweisung-text .knopf { min-height: 48px; }
@media (min-width: 1100px) { .vorher-nachher { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Stilbuch (Stufe 7b) */
.stilbuch-kopf { border-left: 6px solid var(--bfarbe); padding: 4px 0 4px 12px; margin-bottom: 16px; }
.stilbuch-kopf p { margin: 6px 0; }
.stilbuch-bestaetigen { margin: 16px 0 24px; }
.stilbuch-vorbilder { margin-top: 24px; }
.vorbilder { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.vorbilder li { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vorbilder .vorschau img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 8px; border: 2px solid var(--linie); }
.vorbilder .knopf { width: 100%; }

/* ---- Bilderseite: KI-Bilder, Varianten, Wahl, Schriftkontrolle (Stufe 7b) ---- */
.meldung.fehler { border-color: #a94323; border-width: 3px; }
.ki-bilder { margin: 0 0 28px; }
.ki-bilder form { margin: 0; }
.ki-malen, .ki-jetzt { margin: 0 0 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
.ki-varianten { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ki-variante { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; }
.ki-variante .ki-bild { display: block; width: 100%; max-height: 360px; object-fit: contain; background: var(--creme); border: 2px solid var(--linie); border-radius: 8px; }
.ki-variante p, .ki-variante .meldung { margin: 0; }
.ki-variante .meldung { font-weight: 400; }
.ki-marke { font-weight: 800; color: #a94323; }
.ki-aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.ki-aktionen .knopf { min-height: 48px; font-size: 16px; padding: 8px 16px; }
.ki-gesicht-form { gap: 8px; }
.ki-angaben { margin: 0 0 16px; }
.ki-cover { display: block; max-width: 160px; max-height: 220px; object-fit: contain; border: 2px solid var(--linie); border-radius: 8px; }
.ki-bilder .feld select { width: 100%; }
.ki-wunsch { margin: 4px 0 0; gap: 8px; }
.ki-wunsch textarea { width: 100%; box-sizing: border-box; }
.ki-vorschlag { margin: 0 0 16px; padding: 12px; background: var(--weiss); border: 2px solid var(--linie); border-radius: 12px; }
.ki-vorschlag h3, .ki-vorschlag p { margin: 0 0 8px; }
.ki-vergleich { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 12px; }
.ki-vergleich figure { margin: 0; min-width: 0; }
.ki-vergleich figcaption { font-weight: 800; margin: 0 0 6px; }
.ki-vergleich .ki-bild { display: block; width: 100%; max-height: 360px; object-fit: contain; background: var(--creme); border: 2px solid var(--linie); border-radius: 8px; }
.stilbuch-vorschlag { margin: 0 0 16px; }
.stilbuch-vorschlag .formular { margin: 8px 0 0; flex-direction: row; flex-wrap: wrap; gap: 8px; }

/* Buchtipp des Monats (begleitung/buchtipp.php): Vorschau wie auf der Webseite, Bild klein neben dem Text */
.buchtipp-monate { display: flex; flex-wrap: wrap; gap: 8px; }
.buchtipp-vorschau { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: var(--rand); margin: 12px 0; }
.buchtipp-buch { border-top: 1px solid var(--linie); padding-top: 12px; margin-top: 12px; overflow: hidden; }
.buchtipp-bild { float: right; width: 96px; height: auto; margin: 0 0 8px 12px; border-radius: 6px; }
.buchtipp-zitat { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--sonne); font-style: italic; }
.buchtipp-monate a[aria-current="page"] { background: var(--blau); color: var(--weiss); }
