/* Redaktion — Ergänzungen zu intern.css (Modus B). Olive bleibt der einzige Akzent. */

.leiste { grid-template-columns: repeat(3, 1fr); }
.leiste a { position: relative; }
.leiste .zahl { position: absolute; top: 4px; left: calc(50% + 8px); }
.kopf h1 a { color: inherit; }

button { font: inherit; cursor: pointer; }
.haupt { border: 0; border-radius: var(--r-klein); background: var(--tinte); color: #F5F5F2; font-weight: 600; padding: 11px 18px; min-height: 44px; }
.haupt:disabled { opacity: .45; cursor: default; }
.zweit { border: 1px solid var(--linie-stark); border-radius: var(--r-klein); background: var(--flaeche); color: var(--text); font-weight: 600; padding: 9px 14px; min-height: 40px; }
.link { border: 0; background: none; color: var(--olive-tief); padding: 0 2px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
textarea, input[type="url"], input[type="email"], input[type="datetime-local"], input:not([type]), input[inputmode] {
  font: inherit; color: inherit; background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: var(--r-klein);
  padding: 10px 12px; width: 100%; }
textarea { resize: vertical; line-height: 1.45; }
.etikett { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); font-weight: 600; margin-bottom: 2px; }
.kennung { font-family: var(--mono); font-size: 12px; font-weight: 600; background: var(--olive-hauch); color: var(--olive-tief); border-radius: 6px; padding: 1px 6px; margin-right: 4px; }
.kennung.gross { font-size: 15px; padding: 3px 8px; }

/* Anmeldung */
body.anmelden { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.karte { width: 100%; max-width: 380px; }
.karte .label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); margin: 0; font-weight: 600; }
.karte h1 { font-family: var(--gross); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 44px; line-height: 1; margin: 6px 0 8px; }
.karte label { display: block; font-size: 14px; margin: 14px 0 6px; }
.karte .haupt { width: 100%; margin-top: 12px; }
.meldung { min-height: 1.4em; color: var(--kritisch); }

/* Kandidaten */
.kand { background: var(--flaeche); border-radius: var(--r); box-shadow: var(--schatten); padding: 14px 16px; margin-bottom: 12px; border-left: 4px solid transparent; }
.kand.ja { border-left-color: var(--olive); }
.kand.nein { opacity: .6; }
.kand header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin-bottom: 8px; }
.kand h3 { font-size: 17px; line-height: 1.3; flex: 1 1 60%; min-width: 0; }
.kand p { margin: 8px 0; }
.kand .bw { margin: 2px 0 10px; }
.kand label.etikett { margin-top: 10px; }
.hinweis-k { color: var(--warn); }
.wahl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wahl button { min-width: 88px; min-height: 44px; border-radius: var(--r-klein); border: 1px solid var(--linie-stark); background: var(--flaeche); font-weight: 600; color: var(--text); }
.wahl button[data-e="ja"][aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }
.wahl button[data-e="nein"][aria-pressed="true"] { background: var(--flaeche-2); border-color: var(--text); }
.zur-folge { margin-left: auto; color: var(--olive-tief); font-weight: 600; text-decoration: none; }

/* Folge */
.folge-kopf { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.folge-kopf h2 { font-size: 22px; line-height: 1.25; }
.schritte { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; background: var(--flaeche-2); padding: 4px; border-radius: 12px; }
.schritte button { border: 0; background: transparent; border-radius: 9px; padding: 8px 2px; font-size: 13px; color: var(--leise); min-height: 40px; overflow: hidden; text-overflow: ellipsis; }
.schritte button[aria-pressed="true"] { background: var(--flaeche); color: var(--olive-tief); font-weight: 700; box-shadow: var(--schatten); }
.termin { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 14px; color: var(--leise); }
.termin input { width: auto; flex: 0 1 240px; }
.blick { background: var(--olive-hauch); border-radius: var(--r-klein); padding: 10px 12px; margin: 0 0 14px; }

.raster { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .raster { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .wrap { max-width: 1180px; } }
.leiste-text { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.leiste-text h2 { font-family: var(--gross); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; }
#text { font-size: 19px; line-height: 1.65; padding: 16px 18px; min-height: 280px; background: var(--flaeche); }
.unter-text { position: sticky; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 8px; padding: 8px 0; background: var(--grund); }
.unter-text .mono { font-size: 12.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.konflikt { background: var(--warn-hauch); color: var(--text); border-radius: var(--r-klein); padding: 12px 14px; margin-bottom: 10px; }
.alt-text { white-space: pre-wrap; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-klein); padding: 10px 12px; margin: 8px 0; max-height: 320px; overflow: auto; font-size: 15px; }
.alt-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#alt { background: var(--flaeche-2); border-radius: var(--r-klein); padding: 10px 12px; }
.seite section + section { margin-top: 22px; }
.anm-form { display: grid; gap: 8px; margin-bottom: 10px; }
.anm-form button { justify-self: end; }
.liste.kompakt > .zeile { min-height: 44px; padding: 10px 14px; }
button.zeile { width: 100%; text-align: left; border: 0; background: none; color: inherit; font: inherit; }
.liste > button.zeile { border-top: 1px solid var(--linie); }
.liste > button.zeile:first-child { border-top: 0; }
.zeile.anm .name { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.zeile.anm input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--olive); flex: none; }
.zeile.erledigt .name { color: var(--leise); text-decoration: line-through; }

/* Markdown */
.md { font-size: 14px; }
.md p, .md ul { margin: 6px 0; }
.md h3, .md h4, .md h5, .md h6 { font-size: 14px; margin: 12px 0 4px; }
.md code { font-family: var(--mono); font-size: 12px; background: var(--flaeche-2); padding: 0 4px; border-radius: 4px; }
.md a { color: var(--olive-tief); overflow-wrap: anywhere; }
.tabelle { overflow-x: auto; margin: 8px 0; }
.tabelle table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.tabelle th, .tabelle td { border-bottom: 1px solid var(--linie); padding: 6px 8px; text-align: left; vertical-align: top; }
.tabelle th { font-weight: 600; color: var(--leise); }
.ergebnis { grid-column: 1 / -1; background: var(--flaeche-2); border-radius: var(--r-klein); padding: 8px 10px; margin-top: 4px; }

/* Eingang */
.ein { display: grid; gap: 8px; background: var(--flaeche); border-radius: var(--r); box-shadow: var(--schatten); padding: 14px; }
.ein button { justify-self: end; }

/* Meldung unten */
.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--tinte); color: #F5F5F2; padding: 10px 16px; border-radius: 99px; font-size: 14px; transition: .2s; z-index: 9; max-width: calc(100% - 32px); }
.toast.zeigen { opacity: 1; transform: translate(-50%, 0); }
.toast.k { background: var(--kritisch); }

.kacheln + section { margin-top: 28px; }
/* Auf der Folge zählt der Text: Kopf schmal */
body.eng .kopf .wrap { padding-block: 14px 0; }
body.eng .kopf .wrap::after { margin-top: 10px; }
body.eng .kopf .label { display: none; }
body.eng .kopf h1 { font-size: 28px; margin-top: 0; }
body.eng main { padding-top: 14px; }
