/* beitrag.css: Seite "Ein Beitrag" (beitrag.html), Paket 7 "Ein Beitrag, ein Status" (27.11.2026).
   Nur Tokens aus theme.js, keine Schatten, ein Hauptknopf je Flaeche. */
.bt-zurueck { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--text-secondary, #B4B4AE); text-decoration: none; }
.bt-zurueck:hover { color: var(--text-primary, #F4F4F4); }
.bt-zurueck:focus-visible, .bt-btn:focus-visible, .bt-schritt-kopf:focus-visible, .bt-link:focus-visible, .bt-feld:focus-visible { outline: 2px solid var(--text-primary, #F4F4F4); outline-offset: 2px; border-radius: 12px; }
.bt-titel { font-family: 'Unbounded', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(26px, 4.4vw, 44px); line-height: 1.1; overflow-wrap: anywhere; margin: 6px 0 12px; }
.bt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; color: var(--text-secondary, #B4B4AE); }
.bt-meta .material-symbols-outlined { font-size: 18px; }
.bt-pille { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; background: var(--bg-s2, #1f1f1f); border: 1px solid var(--line, rgba(255,255,255,0.1)); color: var(--text-secondary, #B4B4AE); }
.bt-pille .material-symbols-outlined { font-size: 16px; }
.bt-pille.ok { background: var(--ok-weich); color: var(--ok); border-color: transparent; }
.bt-pille.offen { background: var(--offen-weich); color: var(--offen); border-color: transparent; }
.bt-pille.warn { background: var(--warn-weich); color: var(--warn-ink); border-color: transparent; }

.bt-spalten { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 28px; }
.bt-links, .bt-rechts { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bt-karte { background: var(--bg-s1, #161616); border: 1px solid var(--line-a100, rgba(255,255,255,0.1)); border-radius: 20px; }
.bt-karte-innen { padding: 20px; }
.bt-h2 { font-family: 'Unbounded', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: 16px; line-height: 1.2; }
.bt-text { font-size: 15px; line-height: 1.55; color: var(--text-primary, #F4F4F4); overflow-wrap: anywhere; white-space: pre-line; }
.bt-klein { font-size: 14px; line-height: 1.5; color: var(--text-secondary, #B4B4AE); overflow-wrap: anywhere; }
.bt-leise { font-size: 13px; line-height: 1.5; color: var(--text-muted, #8A8A84); }
html[data-theme] p.bt-fehler.bt-fehler, .bt-fehler { color: var(--warn-ink, #A8322A) !important; font-size: 14px; font-weight: 600; }

/* Als Naechstes */
.bt-jetzt { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.bt-jetzt.offen { background: var(--offen-weich); border-color: color-mix(in srgb, var(--offen) 45%, transparent); }
.bt-jetzt.ok { background: var(--ok-weich); border-color: transparent; }
.bt-jetzt-kopf { display: flex; align-items: flex-start; gap: 12px; }
.bt-jetzt-kopf > .material-symbols-outlined { font-size: 26px; flex: none; margin-top: 1px; }
.bt-jetzt-satz { font-size: 17px; font-weight: 600; line-height: 1.35; }
.bt-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.bt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-family: 'Funnel Display', sans-serif; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid var(--kontur, rgba(255,255,255,0.2)); background: transparent; color: var(--fg-1, #fff); white-space: nowrap; text-decoration: none; transition: opacity .15s, transform .15s; }
.bt-btn:hover { opacity: .85; }
.bt-btn:active { transform: scale(0.97); }
.bt-btn[disabled] { opacity: .5; cursor: default; }
.bt-btn .material-symbols-outlined { font-size: 18px; }
.bt-btn-haupt { background: var(--btn-primary-bg, #fff); color: var(--btn-primary-fg, #0A0708); border-color: var(--btn-primary-line, transparent); }
.bt-feld { width: 100%; padding: 10px 16px; border-radius: 16px; border: 1px solid var(--kontur, rgba(255,255,255,0.2)); background: var(--input-bg, #1f1f1f); color: var(--fg-1, #fff); font: inherit; font-size: 15px; min-height: 88px; resize: vertical; }
.bt-feld::placeholder { color: var(--text-muted, #8A8A84); }
.bt-feld[aria-invalid="true"] { border-color: var(--warn-ink, #A8322A); }
.bt-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary, #B4B4AE); }

/* Der Weg: sechs Schritte */
.bt-weg { list-style: none; margin: 0; padding: 6px 0; }
.bt-schritt { position: relative; padding: 0 20px 0 64px; }
.bt-schritt::before { content: ''; position: absolute; left: 35px; top: 0; bottom: 0; width: 2px; background: var(--line, rgba(255,255,255,0.1)); }
.bt-schritt:first-child::before { top: 30px; }
.bt-schritt:last-child::before { bottom: calc(100% - 30px); }
.bt-schritt.erledigt::before { background: color-mix(in srgb, var(--ok) 55%, transparent); }
.bt-punkt { position: absolute; left: 22px; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg-s1, #161616); border: 2px solid var(--line-a200, rgba(255,255,255,0.2)); color: var(--text-muted, #8A8A84); }
.bt-punkt .material-symbols-outlined { font-size: 16px; }
.bt-schritt.erledigt .bt-punkt { background: var(--ok); border-color: var(--ok); }
html .bt-schritt.erledigt .bt-punkt .material-symbols-outlined { color: var(--ok-fg, #0A0708) !important; font-weight: 700; }
.bt-schritt.jetzt .bt-punkt { border-color: var(--offen); color: var(--offen); background: var(--offen-weich); }
.bt-schritt.warn .bt-punkt { border-color: var(--warn-ink); color: var(--warn-ink); background: var(--warn-weich); }
.bt-schritt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 10px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bt-schritt-kopf[disabled] { cursor: default; }
.bt-schritt-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bt-schritt-name { font-size: 16px; font-weight: 700; }
.bt-schritt-kurz { font-size: 14px; color: var(--text-secondary, #B4B4AE); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.bt-schritt-kopf .bt-pfeil { color: var(--text-muted, #8A8A84); flex: none; }
.bt-schritt-inhalt { padding: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.bt-schritt + .bt-schritt .bt-schritt-kopf { border-top: 1px solid var(--line, rgba(255,255,255,0.1)); }

.bt-medium { border-radius: 16px; overflow: hidden; background: #0A0708; border: 1px solid var(--line-a080, rgba(255,255,255,0.08)); }
.bt-medium video, .bt-medium img { display: block; width: 100%; max-height: min(60vh, 520px); object-fit: contain; background: #0A0708; }
.bt-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--text-primary, #F4F4F4); text-decoration: underline; text-underline-offset: 3px; }
.bt-link .material-symbols-outlined { font-size: 18px; }
.bt-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.bt-feld-zahl { padding: 12px 14px; border-radius: 14px; background: var(--bg-s2, #1f1f1f); display: flex; flex-direction: column; gap: 2px; }
.bt-wert { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.bt-wert-label { font-size: 13px; color: var(--text-secondary, #B4B4AE); }
.bt-zeilen { display: flex; flex-direction: column; gap: 6px; }
.bt-zeile { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; }
.bt-zeile dt { color: var(--text-muted, #8A8A84); }
.bt-zeile dd { margin: 0; color: var(--text-primary, #F4F4F4); overflow-wrap: anywhere; white-space: pre-line; }

/* Verlauf und Kommentare */
.bt-liste { list-style: none; margin: 0; padding: 0 20px 14px; display: flex; flex-direction: column; }
.bt-ereignis { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line, rgba(255,255,255,0.1)); font-size: 14px; line-height: 1.45; }
.bt-ereignis:first-child { border-top: 0; }
.bt-ereignis .material-symbols-outlined { font-size: 18px; color: var(--text-muted, #8A8A84); margin-top: 1px; }
.bt-ereignis.ok .material-symbols-outlined { color: var(--ok); }
.bt-ereignis.warn .material-symbols-outlined { color: var(--warn-ink); }
.bt-ereignis small { display: block; font-size: 12px; color: var(--text-muted, #8A8A84); margin-top: 2px; }
.bt-kommentar { padding: 10px 0; border-top: 1px solid var(--line, rgba(255,255,255,0.1)); }
.bt-kommentar:first-child { border-top: 0; }
.bt-kommentar b { font-size: 14px; }
.bt-kommentar small { font-size: 12px; color: var(--text-muted, #8A8A84); margin-left: 6px; }
.bt-kommentar p { font-size: 14px; line-height: 1.5; margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.bt-kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }

.bt-status-karte { padding: 28px 24px; display: flex; gap: 14px; align-items: flex-start; }
.bt-status-karte .material-symbols-outlined { font-size: 26px; color: var(--text-secondary, #B4B4AE); }
.bt-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 700; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--invers-bg, #F4F4F4); color: var(--invers-fg, #0A0708); display: none; }

@media (max-width: 1024px) { .bt-spalten { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .bt-schritt { padding: 0 16px 0 54px; }
  .bt-schritt::before { left: 27px; }
  .bt-punkt { left: 14px; }
  .bt-jetzt { padding: 18px 16px; }
  .bt-knoepfe .bt-btn { flex: 1 1 100%; }
  .bt-zeile { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bt-liste { padding: 0 16px 12px; }
  .bt-kopfzeile { padding: 16px 16px 8px; }
  .bt-karte-innen { padding: 16px; }
}
@media (max-width: 767px) { main.page-content { padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .bt-btn { transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Design-Check 27.11.: Statusflaechen deckend (kein Blob-Verlauf), Kontrast, Punkte, Hauptsatz, Fehlerrand */
.bt-jetzt.offen, .bt-pille.offen { background: linear-gradient(var(--offen-weich), var(--offen-weich)), var(--bg-s1, #161616); }
.bt-jetzt.ok, .bt-pille.ok { background: linear-gradient(var(--ok-weich), var(--ok-weich)), var(--bg-s1, #161616); }
.bt-pille.offen, .bt-pille.ok { color: var(--text-primary, #F4F4F4); }
.bt-pille.offen .material-symbols-outlined { color: var(--offen); }
.bt-pille.ok .material-symbols-outlined { color: var(--ok); }
.bt-jetzt .bt-leise { color: var(--text-secondary, #B4B4AE); }
.bt-punkt { border-color: var(--kontur, rgba(255,255,255,0.2)); }
html[data-theme] p.bt-jetzt-satz, html[data-theme] p.bt-text, html[data-theme] .bt-kommentar p { color: var(--text-primary) !important; }
html[data-theme] .bt-feld[aria-invalid="true"] { border-color: var(--warn-ink) !important; }
html .bt-btn-haupt .material-symbols-outlined { color: var(--btn-primary-fg, #0A0708) !important; }
.bt-medium, .bt-medium video, .bt-medium img { background: var(--bg-body, #0A0708); }
