:root {
  --primaer: #8c084d;
  --sekundaer: #eb5e50;
  --text: #262626;
  --hell: #eaf3f4;
  --rahmen: #d4e2e4;
  --hellrot: #ffd9d5;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--hell);
  color: var(--text);
  font: 15px/1.5 "Roboto Flex", "Segoe UI", system-ui, Arial, sans-serif;
}
.top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--rahmen);
}
.logo { height: 40px; }
.top-title { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { font-size: .75rem; font-weight: 600; background: var(--hellrot); color: var(--primaer); padding: 2px 10px; border-radius: 30px; }
.top-links { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: .85rem; }
.top-links a { color: #6b6b6b; text-decoration: none; }
.top-links a:hover { color: var(--primaer); text-decoration: underline; }

.grid {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) 660px;
  gap: 24px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}
.karte { background: #fff; border: 1px solid var(--rahmen); border-radius: 10px; padding: 20px 22px; margin-bottom: 20px; }
.karte h2 { margin: 0 0 8px; font-size: 1.15rem; color: var(--primaer); display: flex; align-items: center; gap: 10px; }
.nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primaer); color: #fff; font-size: .85rem; }
.hilfe { margin: 0 0 12px; color: #4a4a4a; font-size: .9rem; }

textarea, input[type="text"], input[type="password"] {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 8px 10px;
  border: 1px solid var(--rahmen);
  border-radius: 6px;
  background: #fff;
}
textarea { resize: vertical; }
#vorgaben { font-family: Consolas, "Courier New", monospace; font-size: .88rem; }
textarea:focus, input:focus { outline: 2px solid var(--primaer); outline-offset: 1px; border-color: transparent; }

.aktion { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.btn {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--primaer);
  border: 0;
  border-radius: 30px;
  padding: 10px 24px;
  cursor: pointer;
}
.btn:hover { background: #6f063d; }
.btn:disabled { opacity: .5; cursor: wait; }
.btn:focus-visible, .link-btn:focus-visible { outline: 2px solid var(--sekundaer); outline-offset: 2px; }
.status { font-size: .9rem; color: #4a4a4a; }
.status a { color: var(--primaer); font-weight: 700; }

.hinweise { margin: 0 0 14px; padding: 0; list-style: none; }
.hinweise li { background: var(--hellrot); border-left: 4px solid var(--sekundaer); padding: 8px 12px; margin-bottom: 6px; border-radius: 4px; font-size: .9rem; }
.hinweise:empty { display: none; }

.feld { display: block; margin-bottom: 12px; }
.feld > span { display: block; font-size: .8rem; font-weight: 700; color: #4a4a4a; margin-bottom: 3px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thema { border: 1px solid var(--rahmen); border-radius: 8px; padding: 12px 14px 8px; margin: 0 0 14px; background: #fafcfc; }
.thema legend { font-weight: 700; color: var(--primaer); padding: 0 6px; }
.link-btn { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--primaer); text-decoration: underline; cursor: pointer; padding: 0 0 6px; }

.vorschau { position: sticky; top: 16px; }
.mailkopf { background: #fff; border: 1px solid var(--rahmen); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 10px 16px; font-size: .9rem; }
.lbl { color: #6b6b6b; }
#vorschau { display: block; width: 100%; height: calc(100vh - 140px); border: 1px solid var(--rahmen); border-radius: 0 0 10px 10px; background: var(--hell); }
.leer { position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: #6b6b6b; margin: 0; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: 1fr; }
  .vorschau { position: static; }
}

.protokoll { margin: 14px 0 0; padding: 0 0 0 4px; list-style: none; font-size: .88rem; }
.protokoll:empty { display: none; }
.protokoll li { padding: 3px 0 3px 22px; position: relative; color: #4a4a4a; word-break: break-all; }
.protokoll li::before { content: "↳"; position: absolute; left: 4px; color: var(--rahmen); font-weight: 700; }
.protokoll li.frage, .protokoll li.antwort { word-break: normal; }
.protokoll li.frage { color: var(--primaer); font-weight: 600; }
.protokoll li.frage::before { content: "?"; color: var(--sekundaer); }
.protokoll li.antwort::before { content: "→"; color: var(--primaer); }
.protokoll li.fertig { color: #2f7f4f; font-weight: 600; }
.protokoll li.fertig::before { content: "✓"; color: #2f7f4f; }

.frage { margin-top: 12px; padding: 14px 16px; background: var(--hellrot); border-radius: 8px; }
.frage-text { margin: 0 0 10px; font-weight: 700; color: var(--primaer); }
.optionen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.option { font: inherit; font-size: .9rem; background: #fff; color: var(--primaer); border: 1px solid var(--primaer); border-radius: 30px; padding: 6px 14px; cursor: pointer; }
.option:hover { background: var(--primaer); color: #fff; }
.antwortzeile { display: flex; gap: 10px; }

.einstellungen { margin-top: 16px; font-size: .9rem; }
.einstellungen summary { cursor: pointer; color: #4a4a4a; }
.einstellungen[open] summary { margin-bottom: 8px; }
.btn.klein { padding: 6px 16px; font-size: .9rem; }

.hilfe-seite { max-width: 820px; margin: 0 auto; padding: 24px; }
.hilfe-seite .karte p, .hilfe-seite .karte li, .hilfe-seite dd { line-height: 1.6; }
.hilfe-seite ul, .hilfe-seite ol { padding-left: 22px; margin: 8px 0; }
.hilfe-seite li { margin-bottom: 6px; }
.hinweis-box { background: var(--hellrot); border-left: 4px solid var(--sekundaer); padding: 10px 14px; border-radius: 4px; }
.beispiel { background: var(--hell); border: 1px solid var(--rahmen); border-radius: 6px; padding: 12px 14px; font-size: .85rem; white-space: pre-wrap; }
.meldungen dt { font-weight: 700; margin-top: 12px; color: var(--primaer); }
.meldungen dd { margin: 4px 0 0; }
code { background: var(--hell); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

.anmelden { max-width: 400px; margin: 12vh auto 0; padding: 0 24px; }
.anmelden .btn { width: 100%; margin-top: 4px; }
.fehler { display: none; margin: 0 0 12px; background: var(--hellrot); border-left: 4px solid var(--sekundaer); padding: 8px 12px; border-radius: 4px; font-size: .9rem; }
.fehler:target { display: block; }
