/* Bewusst schlicht und ohne Framework: eine Datei, keine Bauwerkzeuge. */

:root {
  --text: #1c1c1a;
  --gedaempft: #6a6a64;
  --linie: #dcdcd4;
  --flaeche: #ffffff;
  --hintergrund: #f4f3ee;
  --akzent: #2f5d50;
  --fehler: #8a2b20;
  --warnung: #8a6420;
  --gut: #2f6b3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  flex-wrap: wrap;
}

header nav { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
header a { color: var(--text); text-decoration: none; }
header a:hover { text-decoration: none; }
header .marke { font-weight: 600; color: var(--akzent); }
header .abmelden { display: flex; align-items: center; gap: 0.75rem; }
header .abmelden span { color: var(--gedaempft); font-size: 0.9rem; }
header .kopf-rechts { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
header .ansicht-wechsel { display: flex; align-items: center; gap: 0.4rem; }
header .ansicht-wechsel label { color: var(--gedaempft); font-size: 0.9rem; }
header .ansicht-wechsel select { padding: 0.2rem 0.3rem; font-size: 0.9rem; }

/* Fremde Ansicht: bewusst auffaellig, damit niemand versehentlich in einem
   fremden Konto arbeitet. */
.fremde-ansicht { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nav-aktion { padding: 0.35rem 0.55rem; border-radius: 4px; color: var(--gedaempft); }
.nav-aktion:hover, .nav-aktion.aktiv { background: #e7eee9; color: var(--akzent); }
.nav-icon { font-weight: 700; margin-right: 0.15rem; }

main { max-width: 62rem; margin: 0 auto; padding: 1.5rem; }

.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.karte.schmal { max-width: 24rem; margin: 3rem auto; }

h1 { font-size: 1.4rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 0.75rem; }
.bereich-kopf { display: flex; gap: 0.75rem; align-items: flex-start; }
.bereich-kopf h1, .bereich-kopf h2 { margin: 0; }
.bereich-kopf .hinweis { margin-top: 0.15rem; }
.bereich-icon { display: grid; place-items: center; flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: 50%; background: #e7eee9; color: var(--akzent); font-weight: 700; }
.augenbraue { margin: 0 0 0.15rem; color: var(--akzent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.einstieg { margin: 0 0 1.5rem; }
.einstieg h1 { margin-bottom: 1rem; }
.schrittfolge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding: 0; margin: 0; list-style: none; }
.schrittfolge li { display: flex; gap: 0.6rem; min-width: 0; padding: 0.85rem; border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche); }
.schrittnummer { display: grid; place-items: center; flex: 0 0 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--akzent); color: #fff; font-size: 0.85rem; font-weight: 700; }
.schrittfolge strong, .schrittfolge small { display: block; }
.schrittfolge small { margin-top: 0.15rem; color: var(--gedaempft); font-size: 0.8rem; line-height: 1.35; }

label {
  display: block;
  margin: 1rem 0 0.25rem;
  font-size: 0.9rem;
  color: var(--gedaempft);
}
label.ankreuz { display: flex; align-items: center; gap: 0.5rem; color: var(--text); }

input[type=text], input[type=email], input[type=password], input[type=number],
select, textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--linie);
  border-radius: 4px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--akzent);
  outline-offset: -1px;
}
textarea { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9rem; }

button, .link-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--akzent);
  border-radius: 4px;
  background: var(--akzent);
  color: #fff;
  font: inherit;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .link-knopf:hover { filter: brightness(1.1); }
button.gross { padding: 0.7rem 1.6rem; font-size: 1.05rem; }
button.schlicht {
  background: none;
  color: var(--gedaempft);
  border-color: var(--linie);
}
button.klein { padding: 0.15rem 0.5rem; font-size: 0.8rem; margin: 0 0 0 0.5rem; }

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0 1rem;
}
.raster > div > label:first-child { margin-top: 0.75rem; }
.testfeld { display: flex; align-items: flex-end; padding-bottom: 0.3rem; }

.liste { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.liste th, .liste td {
  text-align: left;
  padding: 0.4rem 0.5rem 0.4rem 0;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}
.liste th { font-size: 0.85rem; color: var(--gedaempft); font-weight: 500; }
.liste input { margin: 0; }
.liste tr.doppelt { background: #fdf6e6; }
.dokumentlinks { min-width: 12rem; }
.dokumentlinks a, .dokumentlinks span { display: block; }
.dokumentlinks a + a, .dokumentlinks a + span, .dokumentlinks span + a { margin-top: 0.3rem; }
.dokumentlinks span { color: var(--gedaempft); font-size: 0.85rem; }
.dokumentaktion { margin-top: 0.3rem; }
.dokumentlinks .link-knopf { width: 100%; margin-top: 0.3rem; padding: 0.3rem 0.5rem; border-color: var(--linie); background: var(--flaeche); color: var(--akzent); font-size: 0.8rem; }
.listenlink { color: var(--akzent); font-weight: 600; }
.listenlink:hover { text-decoration: underline; }

.meldung {
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  border-left: 3px solid var(--linie);
  margin: 0 0 1rem;
  background: #fafaf7;
}
.meldung.fehler { border-left-color: var(--fehler); color: var(--fehler); }
.meldung.warnung { border-left-color: var(--warnung); color: var(--warnung); }
.meldung.gut { border-left-color: var(--gut); color: var(--gut); }
.meldung ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

.hinweis { color: var(--gedaempft); font-size: 0.88rem; margin: 0.4rem 0 0; }
.fehlertext { color: var(--fehler); font-size: 0.85rem; margin-top: 0.2rem; }
.formatbeispiele { margin: 1rem 0; }
.formatbeispiele > div { padding: 0.6rem 0; border-bottom: 1px solid var(--linie); }
.formatbeispiele dt { font-weight: 600; }
.formatbeispiele dd { margin: 0.2rem 0 0; color: var(--gedaempft); }
.technische-regeln { margin-top: 1rem; }
.komplex { border: 1px solid var(--linie); border-radius: 4px; padding: 0 0.8rem; background: #fafaf7; }
.komplex summary { padding: 0.75rem 0; margin: 0; font-weight: 600; }
.komplex-markierung { display: inline-block; margin-right: 0.35rem; padding: 0.1rem 0.35rem; border-radius: 10px; background: #f6efdd; color: var(--warnung); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }

.status {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  background: #eee;
  color: var(--gedaempft);
}
.status.sent, .status.done { background: #e3f0e6; color: var(--gut); }
.status.failed { background: #f6e4e1; color: var(--fehler); }
.status.partial, .status.running { background: #f6efdd; color: var(--warnung); }

.marke-test {
  font-size: 0.75rem;
  padding: 0.05rem 0.45rem;
  border-radius: 10px;
  background: #f6efdd;
  color: var(--warnung);
}

.absenden {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--linie);
}
.nebenaktion { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.feldhilfe-inline { color: var(--gedaempft); font-size: 0.88rem; }
.meldung li button { margin-left: 0.5rem; }
details summary { cursor: pointer; color: var(--akzent); margin-top: 1rem; }
.sammelversand { margin: 1.5rem 0 0.5rem; }
.sammelversand > summary { font-weight: 700; margin-bottom: 0.75rem; }
.sammelversand textarea { font-family: inherit; font-size: 1rem; }
details summary:focus-visible, .link-knopf:focus-visible, .nav-aktion:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; }

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e6e0;
    --gedaempft: #a3a099;
    --linie: #3a3a36;
    --flaeche: #232320;
    --hintergrund: #191917;
    --akzent: #6fae9b;
    --fehler: #e0897c;
    --warnung: #d7b473;
    --gut: #8cc79b;
  }
  input[type=text], input[type=email], input[type=password], input[type=number],
  select, textarea { background: #1b1b19; color: var(--text); }
  button { color: #16211d; }
  .meldung { background: #201f1c; }
  .liste tr.doppelt { background: #262218; }
  .status { background: #2c2c28; }
  .status.sent, .status.done { background: #23332a; }
  .status.failed { background: #3a2622; }
  .status.partial, .status.running { background: #37301f; }
  .marke-test { background: #37301f; }
  .nav-aktion:hover, .nav-aktion.aktiv, .bereich-icon { background: #26342e; }
  .komplex { background: #201f1c; }
}

@media (max-width: 48rem) {
  main { padding: 1rem; }
  .schrittfolge { grid-template-columns: 1fr; }
  .vorlagenliste { min-width: 45rem; }
  .tabellenrahmen { overflow-x: auto; }
  .feldpaar { grid-template-columns: 1fr; }
}

/* Newsletter */
.newsletter-filter .feldpaar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 14rem));
  gap: 1rem;
}
.trainerwahl { margin: 1.25rem 0 0; padding: 0; border: 0; }
.trainerwahl legend { font-weight: 700; padding: 0; }
.trainer-gitter {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.25rem 1rem;
  margin-top: 0.5rem;
}
.trainer-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 400;
}
.trainer-option input { width: auto; margin: 0; }
.kopf-aktion {
  margin-left: auto;
  align-self: center;
  white-space: nowrap;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--akzent);
  border-radius: 6px;
  background: var(--flaeche);
  color: var(--akzent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.kopf-aktion:hover { background: var(--akzent); color: #fff; }
.newsletter-block {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--linie);
  border-radius: 6px;
  background: var(--flaeche);
}
.newsletter-block h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--akzent);
}
.newsletter-block h3:first-child { margin-top: 0; }
.newsletter-block ul { margin: 0; padding-left: 1.2rem; }
.newsletter-block li { margin: 0.2rem 0; line-height: 1.5; }
.newsletter-block a { color: var(--akzent); }

/* Automails */
.seitenkopf {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  margin: 1rem 0 1.5rem;
}
.seitenkopf h1 { margin: 0.15rem 0 0.5rem; }
.ueberzeile {
  margin: 0;
  color: var(--akzent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.einleitung { max-width: 46rem; margin: 0; color: var(--gedaempft); font-size: 1.05rem; }
.versandstatus {
  display: flex;
  gap: 0.75rem;
  width: min(100%, 25rem);
  padding: 1rem;
  border: 1px solid var(--linie);
  border-left: 4px solid var(--gut);
  border-radius: 8px;
  background: var(--flaeche);
}
.versandstatus.fehlt { border-left-color: var(--warnung); }
.versandstatus > span {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gut) 16%, transparent);
  color: var(--gut);
  font-size: 0.75rem;
  font-weight: 800;
}
.versandstatus.fehlt > span { color: var(--warnung); background: #f6efdd; }
.versandstatus p { margin: 0.2rem 0 0.6rem; color: var(--gedaempft); font-size: 0.88rem; }
.automail-schritte { margin-bottom: 1.5rem; }
.trigger-raster { display: grid; gap: 1rem; }
.trigger-karte {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche);
}
.trigger-nummer {
  color: color-mix(in srgb, var(--akzent) 50%, var(--linie));
  font-size: 2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.trigger-inhalt h2 { margin: 0.15rem 0 0.35rem; font-size: 1.35rem; }
.trigger-inhalt > p:not(.ueberzeile, .streckenstatus) { margin: 0 0 1rem; color: var(--gedaempft); }
.streckenstatus {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.streckenstatus > span { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--gedaempft); }
.streckenstatus.aktiv > span { background: var(--gut); }
.streckenstatus.pausiert > span { background: var(--warnung); }
.automail-verlauf { margin-top: 1.5rem; }
.automation-attention {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--warnung) 55%, var(--linie));
  border-left: 4px solid var(--warnung);
  border-radius: 8px;
  background: var(--flaeche);
}
.section-heading { display: flex; gap: 0.75rem; align-items: flex-start; }
.section-heading h2 { margin: 0; }
.section-heading .hint { margin: 0.25rem 0 0; color: var(--gedaempft); }
.section-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #f6efdd;
  color: var(--warnung);
  font-weight: 800;
}
.automation-attention ul { margin: 1rem 0 0; padding-left: 1.25rem; }
.automation-attention li { margin: 0.4rem 0; }
.automation-attention code { margin-left: 0.5rem; color: var(--gedaempft); }
.leerzustand { padding: 2rem; border: 1px dashed var(--linie); border-radius: 8px; text-align: center; }
.leerzustand p { margin: 0.35rem 0 0; color: var(--gedaempft); }
.zurueck-knopf {
  display: inline-flex;
  margin-bottom: 0.5rem;
  color: var(--akzent);
  font-weight: 700;
  text-decoration: none;
}
.zurueck-knopf::before { content: "←"; margin-right: 0.4rem; }
.editor-hinweis {
  max-width: 30rem;
  padding: 1rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--flaeche);
}
.editor-hinweis strong { display: block; margin-bottom: 0.5rem; }
.editor-hinweis code { display: inline-block; margin: 0.15rem 0.1rem; padding: 0.15rem 0.35rem; background: var(--hintergrund); }
.feldhilfe { margin: -0.35rem 0 1rem; color: var(--gedaempft); font-size: 0.88rem; }
.schalter {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--hintergrund);
}
.schalter input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; }
.schalter small { display: block; margin-top: 0.15rem; color: var(--gedaempft); font-weight: 400; }
.mail-builder { margin-top: 2rem; }
.builder-kopf { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.builder-kopf h2 { margin: 0.15rem 0 0; }
.builder-aktionen { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.builder-aktionen button { margin-top: 0; }
.automail-footer { margin-top: 1.5rem; }
.automail-footer .editor-field { margin: 1rem 0; }
.mail-editor-layout { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.mail-tabs { display: grid; gap: 0.4rem; }
.mail-tabs button {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--linie);
  border-radius: 7px;
  background: var(--hintergrund);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
}
.mail-tabs button.aktiv, .mail-tabs button[aria-selected="true"] { border-color: var(--akzent); background: var(--flaeche); color: var(--akzent); font-weight: 700; }
.mail-liste { min-width: 0; }
.mail-editor {
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche);
  overflow: hidden;
}
.mail-editor > label, .mail-editor > input, .mail-editor > .editor-field,
.mail-editor > .zeit-raster { margin-left: 1.25rem; margin-right: 1.25rem; }
.mail-editor > input { width: calc(100% - 2.5rem); }
.mail-editor-kopf {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--linie);
  background: var(--hintergrund);
}
.mail-editor-kopf h3 { margin: 0.2rem 0 0; font-size: 1.05rem; overflow-wrap: normal; word-break: normal; }
.mail-header-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.mail-header-actions .secondary {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--akzent);
  background: var(--flaeche);
  color: var(--akzent);
  font-size: 0.8rem;
}
.mail-reihenfolge { color: var(--akzent); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.editor-label { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-top: 1rem; }
.editor-label span { display: block; margin-top: 0.15rem; color: var(--gedaempft); font-size: 0.85rem; }
.editor-modus {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0.2rem;
  border: 1px solid var(--linie);
  border-radius: 7px;
  background: var(--hintergrund);
}
.editor-modus button {
  min-width: 5rem;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--gedaempft);
}
.editor-modus button.aktiv { background: var(--flaeche); color: var(--akzent); box-shadow: 0 1px 2px rgba(20, 22, 20, 0.12); }
.editor-shell { margin-top: 0.45rem; }
.editor-shell [hidden] { display: none !important; }
.editor-werkzeuge {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid var(--linie);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: var(--hintergrund);
}
.werkzeug-gruppe {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  padding-right: 0.35rem;
  border-right: 1px solid var(--linie);
}
.werkzeug-gruppe:last-child { padding-right: 0; border-right: 0; }
.werkzeug-bild span { color: var(--gedaempft); font-size: 0.78rem; font-weight: 700; }
.editor-werkzeuge button, .editor-werkzeuge select, .farbwahl {
  min-width: 2.15rem;
  min-height: 2.15rem;
  margin: 0;
  padding: 0.32rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
}
.editor-werkzeuge button:hover, .editor-werkzeuge button:focus-visible,
.editor-werkzeuge select:hover, .editor-werkzeuge select:focus-visible,
.farbwahl:hover, .farbwahl:focus-within { border-color: var(--linie); background: var(--flaeche); }
.editor-werkzeuge select { width: auto; padding-right: 1.65rem; }
.editor-icon { width: 2.15rem; padding-left: 0 !important; padding-right: 0 !important; font-size: 1rem !important; }
.editor-underline { text-decoration: underline; }
.editor-strike { text-decoration: line-through; }
.farbwahl { position: relative; display: grid; place-items: center; cursor: pointer; }
.farbwahl::before { content: "A"; font-weight: 800; text-decoration: underline 3px var(--editor-color, var(--akzent)); text-underline-offset: 3px; }
.farbwahl input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.visuell-versteckt {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rich-editor {
  min-height: 18rem;
  max-height: 42rem;
  overflow-y: auto;
  padding: 1.25rem;
  border: 1px solid var(--linie);
  border-radius: 0 0 7px 7px;
  background: #fff;
  color: #2c2925;
  line-height: 1.6;
}
.rich-editor:focus { outline: 2px solid var(--akzent); outline-offset: 2px; }
.rich-editor p:first-child { margin-top: 0; }
.rich-editor::after { content: ""; display: block; clear: both; }
.rich-editor img { display: block; max-width: 100%; height: auto; margin: 1rem 0; cursor: pointer; }
.rich-editor img[align="left"] { display: inline; float: left; margin: 0 1rem 0.75rem 0; }
.rich-editor img[align="right"] { display: inline; float: right; margin: 0 0 0.75rem 1rem; }
.rich-editor img:focus, .rich-editor img:hover { outline: 2px solid var(--akzent); outline-offset: 2px; }
.rich-editor table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.rich-editor th, .rich-editor td { padding: 0.5rem 0.65rem; border: 1px solid #d9d4ca; text-align: left; }
.rich-editor th { background: #f5f1e8; }
.html-editor {
  width: 100%;
  min-height: 20rem;
  max-height: 42rem;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  resize: vertical;
  border: 1px solid var(--linie);
  border-radius: 0 0 7px 7px;
  background: #18211f;
  color: #edf4f1;
  font: 0.9rem/1.55 Consolas, "Courier New", monospace;
  tab-size: 2;
}
.editor-status { min-height: 1.25rem; margin: 0.35rem 0 0; color: var(--gedaempft); font-size: 0.8rem; }
.editor-dialog {
  width: min(calc(100% - 2rem), 32rem);
  padding: 1.5rem;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche);
  color: var(--text);
}
.editor-dialog::backdrop { background: rgba(20, 22, 20, 0.48); }
.editor-dialog h2 { margin: 0.2rem 0 0.75rem; }
.editor-bild-url { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--linie); }
.editor-bild-url summary { margin-bottom: 0.75rem; color: var(--akzent); font-weight: 700; cursor: pointer; }
.editor-bild-status { min-height: 1.4rem; margin: 0.75rem 0 0; color: var(--gedaempft); font-size: 0.88rem; }
.dialog-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dialog-aktionen { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }
.dialog-aktionen button { margin-top: 0; }
.zeit-raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
}
.zeit-eingabe { display: grid; grid-template-columns: 6rem 1fr 1fr; gap: 0.4rem; }
.zeit-eingabe.kompakt { grid-template-columns: 6rem 1fr; }
.speicherleiste {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--linie);
  border-radius: 8px 8px 0 0;
  background: var(--flaeche);
}
.speicherleiste span { display: block; color: var(--gedaempft); font-size: 0.85rem; }
.gefahr { color: var(--fehler); }
.status.active { background: #e4f3e8; color: var(--gut); }
.status.cancelled { background: #f3ead6; color: var(--warnung); }
.public-action-card {
  max-width: 38rem;
  margin: 8vh auto 0;
  padding: 2rem;
  border: 1px solid var(--linie);
  border-top: 4px solid var(--akzent);
  border-radius: 8px;
  background: var(--flaeche);
}
.public-action-card h1 { margin: 0.2rem 0 0.75rem; }
.public-action-card form { margin-top: 1.25rem; }
.eyebrow {
  margin: 0;
  color: var(--akzent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.automation-toggle-field { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.automation-toggle-field .feldhilfe { margin: 0.3rem 0 0 1.75rem; }
.automail-hauptaktion { display: flex; justify-content: flex-end; margin: -0.75rem 0 1.25rem; }
.crm-kopf { align-items: center; }
.crm-kopf .link-knopf { margin-top: 0; white-space: nowrap; }
.crm-import-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
.crm-import-form button { margin-bottom: 1rem; }
.crm-tabelle { min-width: 58rem; }
.crm-tabelle td small { display: block; margin-top: 0.2rem; color: var(--gedaempft); }
.crm-aktionen { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crm-aktionen form { margin: 0; }
.crm-aktionen button { margin: 0; }

@media (max-width: 48rem) {
  .seitenkopf, .builder-kopf, .speicherleiste { flex-direction: column; align-items: stretch; }
  .versandstatus, .editor-hinweis { width: auto; max-width: none; }
  .trigger-karte { grid-template-columns: 2.5rem minmax(0, 1fr); padding: 1rem; gap: 0.75rem; }
  .trigger-nummer { font-size: 1.15rem; }
  .mail-editor-kopf { align-items: flex-start; }
  .mail-editor-layout { grid-template-columns: 1fr; }
  .mail-tabs { display: flex; overflow-x: auto; padding-bottom: 0.2rem; }
  .mail-tabs button { flex: 0 0 min(17rem, 82vw); }
  .zeit-raster { grid-template-columns: 1fr; }
  .editor-label { display: block; }
  .editor-label span { display: block; margin-top: 0.2rem; }
  .editor-werkzeuge { align-items: flex-start; overflow-x: hidden; }
  .werkzeug-gruppe { min-width: 0; flex-wrap: wrap; }
  .werkzeug-auswahl,
  .werkzeug-bild,
  .werkzeug-platzhalter {
    flex: 1 1 100%;
    padding-right: 0;
    border-right: 0;
  }
  .werkzeug-auswahl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .werkzeug-auswahl select,
  .werkzeug-platzhalter select {
    width: 100%;
    min-width: 0;
  }
  .werkzeug-bild span { flex: 0 0 100%; }
  .werkzeug-bild button { flex: 1 1 4.75rem; }
  .builder-aktionen { justify-content: stretch; }
  .builder-aktionen button { flex: 1 1 13rem; }
  .crm-import-form { grid-template-columns: 1fr; }
  .crm-import-form button { margin: 0; }
  .automail-hauptaktion { justify-content: stretch; }
  .automail-hauptaktion .link-knopf { width: 100%; }
  .dialog-raster { grid-template-columns: 1fr; }
}

@media (max-width: 25rem) {
  .zeit-eingabe, .zeit-eingabe.kompakt { grid-template-columns: 1fr; }
  .mail-editor > label, .mail-editor > input, .mail-editor > .editor-field,
  .mail-editor > .zeit-raster { margin-left: 0.85rem; margin-right: 0.85rem; }
  .mail-editor > input { width: calc(100% - 1.7rem); }
}

/* Signaturprofil: Bild links, Angaben rechts, unter 45rem gestapelt. */
.signatur-raster { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: start; }
.signatur-bild img { display: block; border: 1px solid var(--linie); border-radius: 4px; margin-bottom: 0.75rem; }
.signatur-bild input[type="file"] { width: 100%; margin-bottom: 0.5rem; font-size: 0.85rem; }
.signatur-felder .hinweis { margin-top: -0.35rem; }
.nurfueradmin {
  margin: 1.25rem 0 1rem;
  padding: 0.75rem 1rem 1rem;
  border: 1px dashed var(--linie);
  border-radius: 4px;
  background: var(--hintergrund);
}
.nurfueradmin legend { padding: 0 0.4rem; color: var(--gedaempft); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.ankreuzfeld { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.75rem; font-weight: 400; }
.ankreuzfeld input { width: auto; margin: 0; }

@media (max-width: 45rem) {
  .signatur-raster { grid-template-columns: 1fr; }
}

/* Themenstrecken: Liste und Entwurfseditor auf einer Seite. */
.themen-hinweis { margin-top: 1.5rem; }
.themen-hinweis .link-knopf { margin-top: 1rem; }
.themen-ansicht[hidden] { display: none; }
.themen-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.themen-kennzahl {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--flaeche);
}
.themen-kennzahl span {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--akzent);
  font-variant-numeric: tabular-nums;
}
.themen-kennzahl small {
  display: block;
  margin-top: 0.25rem;
  color: var(--gedaempft);
  font-size: 0.82rem;
}
.themen-liste { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.themen-karte {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--flaeche);
}
.themen-karte-kopf { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.themen-karte-kopf code {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--hintergrund);
  color: var(--akzent);
  font-weight: 700;
}
.themen-karte-kopf .streckenstatus { margin: 0; }
.themen-karte h2 { margin: 0.6rem 0 0; font-size: 1.2rem; }
.themen-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; margin: 0.75rem 0 0; }
.themen-meta dt { color: var(--gedaempft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.themen-meta dd { margin: 0.1rem 0 0; font-weight: 600; }
.themen-entwurfsnotiz {
  margin: 0.9rem 0 0;
  padding: 0.45rem 0.7rem;
  border-left: 3px solid var(--warnung);
  border-radius: 4px;
  background: var(--hintergrund);
  color: var(--warnung);
  font-size: 0.88rem;
  font-weight: 600;
}
.themen-neu-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: start; }
.themen-neu-zeile button { margin-top: 0; }
.themen-neu .feldhilfe { margin-top: 0.5rem; }
.themen-zurueck {
  display: inline-flex;
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--akzent);
  font-weight: 700;
}
.themen-zurueck:hover { filter: none; text-decoration: underline; }
.themen-zurueck::before { content: "\2190"; margin-right: 0.4rem; }
.themen-autosave { min-height: 1.25rem; color: var(--gedaempft); font-size: 0.88rem; }
.themen-autosave.fehlgeschlagen { color: var(--fehler); font-weight: 600; }
.themen-aktionen { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.themen-aktionen button { margin-top: 0; }
.themen-mailstatus { min-height: 1.25rem; margin: 0 1.25rem 1.25rem; color: var(--gedaempft); font-size: 0.88rem; }

@media (max-width: 48rem) {
  .themen-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themen-neu-zeile { grid-template-columns: 1fr; }
  .themen-aktionen button { flex: 1 1 12rem; }
  .themen-mailstatus { margin-left: 0.85rem; margin-right: 0.85rem; }
}

/* Themenstrecken: Mailformat, Termin-Snippets und Linkprüfung. */
.themen-snippets { margin-bottom: 1.25rem; }
.themen-snippets h3 { margin: 0; font-size: 1.05rem; }
.themen-snippets code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--hintergrund);
  color: var(--akzent);
  font-weight: 700;
}
.themen-formathilfe { margin: 0.35rem 0 0; }
.themen-speicherinfo { display: grid; gap: 0.2rem; }
.themen-linkstatus { margin: 0; color: var(--gedaempft); font-size: 0.88rem; }
.themen-linkstatus.fehlgeschlagen { color: var(--fehler); font-weight: 600; }
.themen-totelinks { display: block; }
.themen-totelinks[hidden] { display: none; }
.themen-totelinks ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.themen-totelinks li { margin-bottom: 0.4rem; }
.themen-totelinks li code { word-break: break-all; }
.themen-totelinks li span { display: block; color: var(--gedaempft); font-size: 0.85rem; }
.themen-totelinks .schalter { margin-top: 0.9rem; color: var(--text); }

/* Bildermediathek im geteilten Bilddialog. */
.mediathek-ablegen { margin: 0.5rem 0 1rem; }
.mediathek-block { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--linie); }
.mediathek-block h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.mediathek-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.5rem;
  max-height: 13rem;
  overflow-y: auto;
}
.mediathek-eintrag { position: relative; }
.mediathek-bild {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.25rem;
  border: 2px solid var(--linie);
  border-radius: 6px;
  background: var(--hintergrund);
}
.mediathek-bild:hover { filter: none; border-color: var(--akzent); }
.mediathek-bild.gewaehlt { border-color: var(--akzent); box-shadow: 0 0 0 2px var(--akzent); }
.mediathek-bild img { display: block; width: 100%; height: 4.5rem; object-fit: contain; }
.mediathek-loeschen {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--linie);
  border-radius: 50%;
  background: var(--flaeche);
  color: var(--fehler);
  font-size: 0.95rem;
  line-height: 1;
}
.mediathek-hinweis { margin: 0.5rem 0 0; color: var(--gedaempft); font-size: 0.88rem; }

/* Themenstrecken, Umbau nach dem Kampagnenvorbild: Liste, Streckendetail,
   Einzelmail-Editor. Drei Sichten auf denselben Entwurf. */
.themen-teilansicht[hidden] { display: none; }
.themen-listenrahmen { margin-bottom: 1.5rem; }
.themen-leer { margin-bottom: 1.5rem; }
.themen-tabelle td, .themen-mailtabelle td { vertical-align: middle; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.themen-tabelle .streckenstatus, .themen-mailtabelle .streckenstatus { margin: 0; font-size: 0.85rem; }
.themen-zeile { cursor: pointer; }
.themen-zeile:hover { background: #f0efe9; }
.themen-zeilenlink {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--akzent);
  font: inherit;
  font-weight: 600;
  text-align: left;
}
.themen-zeilenlink:hover { filter: none; text-decoration: underline; }
.themen-zeilenaktion { text-align: right; white-space: nowrap; }
.themen-zeilenaktion button { margin: 0; }
.themen-schluessel {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--hintergrund);
  color: var(--akzent);
  font-weight: 700;
}
.themen-entwurfsspalte { color: var(--warnung); font-size: 0.85rem; }
.themen-brotkrumen { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 1rem; }
.themen-brotkrumen .themen-zurueck { margin: 0; }
.themen-brotkrumen strong { font-size: 1.15rem; }
.themen-krumentrenner { color: var(--gedaempft); }
.themen-editor-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.themen-statusfeld,
.themen-editor-kennzahlen {
  min-width: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--flaeche);
}
.themen-statusfeld strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}
.themen-statusfeld small {
  display: block;
  margin-top: 0.25rem;
  color: var(--gedaempft);
}
.themen-statusmarke {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #f6efdd;
  color: var(--warnung);
  font-size: 0.78rem;
  font-weight: 800;
}
.themen-statusmarke::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: currentColor;
}
.themen-statusmarke.aktiv { background: #e3f0e6; color: var(--gut); }
.themen-statusmarke.pausiert { background: #f6efdd; color: var(--warnung); }
.themen-statusmarke.entwurf { background: #e7eee9; color: var(--akzent); }
.themen-editor-kennzahlen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}
.themen-editor-kennzahlen div { min-width: 0; }
.themen-editor-kennzahlen dt {
  color: var(--gedaempft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.themen-editor-kennzahlen dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.themen-einstellungen { margin-bottom: 1.5rem; }
.themen-einstellungen[hidden] { display: none; }
.themen-flowkarte { padding: 1rem 1.15rem; }
.themen-flowkopf {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.themen-flowkopf h3 { margin: 0; font-size: 1.05rem; }
.themen-flowkopf span {
  flex: 0 0 auto;
  color: var(--gedaempft);
  font-size: 0.85rem;
  font-weight: 700;
}
.themen-flow {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0 0.1rem 0.35rem;
}
.themen-flowitem {
  position: relative;
  flex: 0 0 min(18rem, 78vw);
}
.themen-flowitem:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.52rem;
  width: 0.38rem;
  height: 0.38rem;
  border-top: 2px solid var(--linie);
  border-right: 2px solid var(--linie);
  transform: translateY(-50%) rotate(45deg);
}
.themen-flowstep {
  display: block;
  width: 100%;
  min-height: 6.25rem;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--hintergrund);
  color: var(--text);
  text-align: left;
}
.themen-flowstep:hover,
.themen-flowstep:focus-visible,
.themen-flowstep.aktiv {
  border-color: var(--akzent);
  background: var(--flaeche);
  filter: none;
}
.themen-flowstep span {
  display: block;
  color: var(--akzent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.themen-flowstep strong {
  display: block;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}
.themen-flowstep small {
  display: block;
  margin-top: 0.35rem;
  color: var(--gedaempft);
  font-size: 0.82rem;
}

/* Ansicht C: Mailtext links, schmale Einstellungsspalte rechts. */
.themen-mailkarte { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.25rem; align-items: start; }
.themen-mailkarte[hidden] { display: none; }
.themen-mailhaupt { min-width: 0; margin-bottom: 0; }
.themen-mailhaupt > label:first-child { margin-top: 0; }
.themen-mailseite { min-width: 0; }
.themen-mail-context {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--flaeche);
}
.themen-mail-context span {
  display: block;
  color: var(--akzent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.themen-mail-context strong {
  display: block;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}
.themen-mail-context dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 0.75rem 1rem;
  margin: 0;
}
.themen-mail-context dt {
  color: var(--gedaempft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.themen-mail-context dd {
  margin: 0.1rem 0 0;
  font-weight: 700;
}
.themen-klappkarte { margin-bottom: 1rem; padding: 1rem 1.25rem; }
.themen-klappkarte:last-child { margin-bottom: 0; }
.themen-klappkarte > summary { margin: 0; color: var(--text); font-weight: 700; }
.themen-klappkarte > summary:hover { color: var(--akzent); }
.themen-klappinhalt { margin-top: 0.5rem; }
.themen-klappinhalt > label:first-child { margin-top: 0.5rem; }
.themen-klappinhalt .themen-mailstatus { margin: 0.5rem 0 0; }
.themen-klappinhalt .feldhilfe { margin-bottom: 0; }
.themen-klappinhalt button { width: 100%; }

/* Echte PDF-Anhänge je Mail. */
.anhang-zahl { color: var(--gedaempft); font-weight: 400; }
.anhang-liste { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.anhang-zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--linie);
}
.anhang-name { flex: 1 1 100%; font-weight: 600; overflow-wrap: anywhere; }
.anhang-groesse { color: var(--gedaempft); font-size: 0.82rem; }
.anhang-ansehen { color: var(--akzent); font-size: 0.82rem; }
.anhang-zeile button { width: auto; margin: 0 0 0 auto; }
.anhang-leer { color: var(--gedaempft); font-size: 0.88rem; }
.anhang-warnung { margin: 0.75rem 0 0; font-size: 0.85rem; }
.anhang-hochladen { margin-top: 0.9rem; }
.anhang-hochladen input { width: 100%; margin-top: 0.3rem; font-size: 0.85rem; }
.anhang-status { min-height: 1.2rem; margin: 0.5rem 0 0; color: var(--gedaempft); font-size: 0.85rem; }
.anhang-oeffner { margin-top: 0.75rem; }
.anhang-vorhanden { max-height: 14rem; margin-top: 0.75rem; overflow-y: auto; border-top: 1px solid var(--linie); }
.anhang-vorhanden[hidden] { display: none; }
.anhang-vorhandenzeile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--linie);
}
.anhang-vorhandenzeile.dran { opacity: 0.7; }
.anhang-vorhandenzeile .anhang-waehlknopf {
  flex: 1 1 100%;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--akzent);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
}
.anhang-vorhandenzeile .anhang-waehlknopf:hover { filter: none; text-decoration: underline; }
.anhang-vorhandenzeile .anhang-waehlknopf[disabled] { color: var(--gedaempft); cursor: default; text-decoration: none; }
.anhang-vorhandenzeile button.klein { width: auto; margin: 0 0 0 auto; }

@media (prefers-color-scheme: dark) {
  .themen-zeile:hover { background: #26251f; }
  .themen-statusmarke.aktiv { background: #23332a; }
  .themen-statusmarke.pausiert { background: #37301f; }
  .themen-statusmarke.entwurf { background: #26342e; }
}

@media (max-width: 64rem) {
  .themen-editor-dashboard { grid-template-columns: 1fr; }
  .themen-mailkarte { grid-template-columns: 1fr; }
  .themen-mail-context { display: block; }
  .themen-mail-context dl { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.75rem; }
}

/* Themenstrecken auf ganzer Browserbreite: der Mail-Editor braucht Platz,
   die Seitenleiste bleibt fest, der Editor nimmt den Rest. */
main.vollbreite { max-width: none; padding-left: 2rem; padding-right: 2rem; }
@media (max-width: 48rem) {
  main.vollbreite { padding-left: 1rem; padding-right: 1rem; }
}

/* Stillgelegte Mail (Owner 10.09.2026): erkennbar, ohne die Zeile zu verstecken. */
.themen-zeile.pausiert > td { opacity: .55; }
.themen-zeile.pausiert .themen-zeilenlink { text-decoration: line-through; }
.themen-pausemarke {
  margin-left: .5rem; padding: .05rem .4rem; border-radius: 999px;
  background: #efe3cf; color: #6b5a3c; font-size: .75rem; white-space: nowrap;
}
.themen-flowstep.pausiert { opacity: .6; border-style: dashed; }
[data-mail-context-zustand].pausiert { color: #8a6d3b; font-weight: 600; }
.themen-pauseschalter { margin: .6rem 0; }

/* Signaturen aller Konten (Owner 10.09.2026). */
.signatur-uebersicht h2 { margin: 0; }
.signatur-daten { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .4rem 1rem; margin: 0; }
.signatur-daten dt { font-size: .8rem; color: #6f6b63; }
.signatur-daten dd { margin: 0 0 .3rem 0; }
.signatur-vorschau { width: 100%; min-height: 220px; border: 1px solid #ddd8cc; border-radius: 6px; background: #fff; }
