/* News – Webseite „Leseraum“. Farben und Maße wie in der Android-App und im abgestimmten Entwurf A. */
@font-face { font-family: Manrope; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/manrope_regular.ttf") format("truetype"); }
@font-face { font-family: Manrope; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/manrope_semibold.ttf") format("truetype"); }
@font-face { font-family: Manrope; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/manrope_bold.ttf") format("truetype"); }
@font-face { font-family: Manrope; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/manrope_extrabold.ttf") format("truetype"); }

:root {
  --schwarz: #000000;
  --flaeche: #121212;
  --flaeche2: #1C1C1C;
  --linie: #262626;
  --text: #EDEDED;
  --neben: #9A9A9A;
  --gruen: #6BBF59;
  --gruen-hell: #8fd47f;
  --gruen-dunkel: #15240f;
  --rot: #E5675C;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--schwarz); color: var(--text); overflow-x: hidden; }
body { font-family: Manrope, system-ui, sans-serif; font-size: 16px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
button, input { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: var(--gruen); text-decoration: none; }
a:hover { color: var(--gruen-hell); }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

/* Klickbares: keine Klick-Fläche, nur die Schrift wird beim Drücken kurz blasser. */
:where(button, a[href], [role="button"], [role="switch"], [role="option"]) { transition: opacity .08s linear; }
:where(button, a[href], [role="button"], [role="switch"], [role="option"]):active { opacity: .55; }
:where(button:disabled) { cursor: default; opacity: .6; }

/* Tastatur-Fokus: dezenter grüner Rand. */
:focus { outline: none; }
:focus-visible { outline: 2px solid rgba(107, 191, 89, .75); outline-offset: 2px; border-radius: 6px; }
input:focus-visible { outline: none; }
.suchfeld:focus-within, .feld input:focus-visible { box-shadow: 0 0 0 2px rgba(107, 191, 89, .75); }

/* ---------------------------------------------------------------- Anmeldung */
.anmeldung { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.karte { width: 100%; max-width: 380px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 28px 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.marke { font-size: 24px; font-weight: 800; color: var(--gruen); }
.satz { font-size: 15px; line-height: 22px; }
.felder { display: flex; flex-direction: column; gap: 14px; }
.feld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--neben); }
.feld input { height: 48px; padding: 0 14px; background: var(--flaeche2); border: 1px solid var(--linie); border-radius: 12px; color: var(--text); font-size: 16px; font-weight: 400; width: 100%; }
.feld input:focus { border-color: var(--gruen); }
.knopf-gruen { width: 100%; height: 48px; border-radius: 24px; background: var(--gruen); color: var(--schwarz); font-size: 15px; font-weight: 800; text-align: center; }
.fehlertext { color: var(--rot); font-size: 14px; line-height: 20px; min-height: 20px; }

/* ---------------------------------------------------------------- Gerüst: Menü | Liste | Lesebereich */
.app { display: grid; grid-template-columns: 240px minmax(360px, 520px) minmax(0, 1fr); height: 100dvh; }
.menue { grid-column: 1; border-right: 1px solid var(--linie); padding: 24px 16px 16px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; }
.liste { grid-column: 2; border-right: 1px solid var(--linie); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lesen { grid-column: 3; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.lesen-inhalt { max-width: 760px; padding: 28px 40px 48px; display: flex; flex-direction: column; gap: 14px; }

/* Menü */
.logo { font-size: 22px; font-weight: 800; padding: 0 12px 18px; color: var(--gruen); }
.m-punkt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 15px; min-height: 40px; }
.m-punkt:hover { color: var(--text); }
.m-punkt.unter { padding: 5px 12px 5px 28px; min-height: 30px; color: var(--neben); font-size: 14px; font-weight: 400; }
.m-punkt[aria-current="page"] { background: var(--flaeche2); color: var(--gruen); font-weight: 700; }
.m-zahl { font-size: 13px; color: var(--neben); font-weight: 600; white-space: nowrap; }
.m-zahl.gruen { color: var(--gruen); }
.m-zahl.pille { background: var(--gruen); color: var(--schwarz); border-radius: 10px; padding: 1px 8px; font-weight: 700; }
.m-kopf { font-size: 12px; font-weight: 700; color: var(--neben); letter-spacing: .06em; padding: 18px 12px 6px; }
.m-fuss { margin-top: auto; padding: 12px; font-size: 13px; color: var(--neben); border-top: 1px solid var(--linie); line-height: 1.5; }
.m-fuss .name { overflow-wrap: anywhere; }
.m-fuss button { color: var(--gruen); font-weight: 600; font-size: 13px; }

/* Liste: Kopf */
.liste-kopf { flex: none; padding: 20px 20px 4px; }
.kopfzeile { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-height: 40px; }
.titel { flex: 1 1 auto; min-width: 0; font-size: 24px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suchfeld { display: flex; align-items: center; gap: 8px; flex: none; width: 200px; height: 40px; background: var(--flaeche2); border-radius: 10px; padding: 0 12px; color: var(--neben); }
.suchfeld input { background: transparent; border: 0; outline: none; color: var(--text); font-size: 14px; width: 100%; min-width: 0; height: 100%; }
.suchfeld input::placeholder { color: var(--neben); opacity: 1; }
.suchfeld input::-webkit-search-cancel-button { filter: invert(.7); cursor: pointer; }
.symbol-knopf { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--flaeche2); display: flex; align-items: center; justify-content: center; color: var(--text); }
.symbol-knopf.leer { background: transparent; }
.kopf-aktion { flex: none; }
.unsichtbar { visibility: hidden; }
.nur-schmal { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
.chips:empty { display: none; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid transparent; background: var(--flaeche2); color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; }
.chip[aria-pressed="true"] { border-color: var(--gruen); background: var(--gruen-dunkel); color: var(--gruen); }

/* Liste: Körper */
.liste-koerper { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; }
.abschnitt { font-size: 15px; font-weight: 800; color: var(--gruen); padding: 8px 20px 6px; margin-top: 8px; }
.abschnitt:first-child { margin-top: 0; }
.unterzeile { font-size: 13px; font-weight: 700; color: rgba(237, 237, 237, .7); padding: 10px 20px 2px; }
.erklaerung { font-size: 13px; line-height: 18px; color: var(--neben); padding: 0 20px 4px; }
.leer { text-align: center; color: var(--neben); font-size: 15px; line-height: 22px; padding: 48px 32px; white-space: pre-line; }
.leer.fehler { color: var(--rot); }
.notiz { font-size: 12px; color: var(--neben); padding: 0 20px 2px; }

.zeile { display: flex; width: 100%; gap: 14px; padding: 14px 20px 14px 17px; border-left: 3px solid transparent; text-align: left; color: var(--text); align-items: flex-start; }
.zeile[aria-current="true"] { background: var(--flaeche); border-left-color: var(--gruen); }
.zeile .z-text { flex: 1 1 auto; min-width: 0; display: block; }
.zeile .z-titel { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.zeile .z-meta { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; color: var(--neben); min-width: 0; }
.zeile .z-meta .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.zeile .z-bild { flex: none; width: 96px; height: 60px; border-radius: 8px; background: var(--flaeche2); object-fit: cover; display: block; }
.zeile.gelesen .z-titel { color: var(--neben); font-weight: 600; }
.zeile.gelesen .z-bild { opacity: .6; }
.zeile.gelesen .z-meta { opacity: .75; }
.schild { flex: none; margin-left: 6px; font-size: 11px; font-weight: 800; color: var(--gruen); background: rgba(107, 191, 89, .16); border: 1px solid var(--gruen); border-radius: 10px; padding: 0 8px; line-height: 18px; }
.lesezeichen { flex: none; color: var(--gruen); display: block; }

/* Kurse */
.notiz-block { padding: 2px 0 0; }
.k-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 56px 92px 62px; gap: 8px; align-items: center; width: 100%; padding: 10px 20px 10px 17px; border-left: 3px solid transparent; text-align: left; position: relative; }
.k-zeile[aria-current="true"] { background: var(--flaeche); border-left-color: var(--gruen); }
.k-name { display: block; min-width: 0; }
.k-name b { display: block; font-size: 15px; font-weight: 700; line-height: 19px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.k-name small { display: block; font-size: 12px; color: var(--neben); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-name small.fett { font-weight: 700; }
.k-linie { display: block; width: 56px; height: 26px; }
.k-preis { text-align: right; min-width: 0; }
.k-preis b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; }
.k-preis small { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; min-height: 18px; }
.k-meld { text-align: center; }
.k-meld b { display: block; font-size: 15px; font-weight: 800; }
.k-meld small { display: block; font-size: 9px; line-height: 11px; color: var(--neben); }
.plus { color: var(--gruen); } .minus { color: var(--rot); } .null { color: var(--neben); }
.k-entfernen { position: absolute; right: 2px; top: 2px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--neben); z-index: 1; }
.knopf-rand { height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--gruen); color: var(--gruen); font-weight: 800; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; }
.panel { margin: 0 0 8px; }
.kombi { position: relative; }
.kombi .suchfeld { width: 100%; }
.optionen { position: absolute; z-index: 5; left: 0; right: 0; top: 46px; max-height: 320px; overflow-y: auto; background: var(--flaeche2); border: 1px solid var(--linie); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); padding: 4px 0; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; text-align: left; }
.option[aria-selected="true"] { background: var(--flaeche); }
.option .o-text { flex: 1 1 auto; min-width: 0; display: block; }
.option b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.option small { display: block; font-size: 13px; color: var(--neben); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.option .o-tat { flex: none; font-size: 13px; font-weight: 700; color: var(--gruen); }
.option .o-tat.schon { color: var(--neben); }
.optionen .leer { padding: 16px; font-size: 14px; }

/* Quellen */
.q-zeile { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 20px; }
.q-zeile.aus { opacity: .6; }
.q-symbol { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--flaeche2); display: flex; align-items: center; justify-content: center; color: var(--gruen); }
.q-text { flex: 1 1 auto; min-width: 0; }
.q-text b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-text small { display: block; font-size: 13px; color: var(--neben); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-text small.fehler { color: rgba(229, 103, 92, .9); }
.schalter { flex: none; width: 28px; height: 28px; display: block; color: var(--neben); }
.schalter::after { content: ""; position: absolute; inset: 0; }
.schalter svg { display: block; }
.schalter[aria-checked="true"] { color: var(--gruen); }
.chip.tag { font-size: 13px; }

/* Themen (Handy) */
.t-zeile, .t-zeile:hover { color: var(--text); }
.t-zeile { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 20px; height: 56px; font-size: 18px; font-weight: 800; text-align: left; }
.t-zeile.unter, .t-zeile.unter:hover { color: rgba(237, 237, 237, .9); }
.t-zeile.unter { height: 48px; padding-left: 40px; font-size: 16px; font-weight: 600; }
.t-zeile .t-zahl { width: 88px; text-align: right; font-size: 14px; font-weight: 700; color: var(--neben); flex: none; }
.t-zeile .t-zahl.neu { color: var(--gruen); }
.t-fuss { padding: 24px 20px; font-size: 13px; color: var(--neben); }
.t-fuss button { color: var(--gruen); font-weight: 600; font-size: 13px; }

/* ---------------------------------------------------------------- Lesebereich */
.l-artikel, .l-x, .l-firma { display: flex; flex-direction: column; gap: 14px; }
.l-leiste { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.l-aktionen { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.zurueck { display: none; align-items: center; gap: 4px; height: 38px; color: var(--text); font-weight: 600; font-size: 14px; max-width: 60%; }
.zurueck.zeigen { display: inline-flex; }
.zurueck .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pille { height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid var(--linie); background: transparent; color: var(--text); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; }
.pille.gruen { background: var(--gruen); border-color: var(--gruen); color: var(--schwarz); font-weight: 700; }
.pille.gruen:hover { color: var(--schwarz); }
.pille.rand-gruen { border-color: var(--gruen); color: var(--gruen); }
.pille[aria-pressed="true"] svg { fill: var(--gruen); stroke: var(--gruen); }
/* Beschriftung wechselt, Breite bleibt (beide Texte liegen übereinander). */
.wechsel { display: inline-grid; }
.wechsel > span { grid-area: 1 / 1; text-align: left; }
.wechsel > span.aus { visibility: hidden; }
.l-bild { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--flaeche2); object-fit: cover; display: block; }
.l-titel { margin-top: 6px; font-size: 30px; line-height: 1.25; font-weight: 800; overflow-wrap: anywhere; }
.l-meta { font-size: 14px; color: var(--neben); overflow-wrap: anywhere; }
.l-kopf { font-size: 15px; font-weight: 800; color: var(--gruen); margin-top: 10px; }
.l-text { font-size: 16px; line-height: 1.6; color: rgba(237, 237, 237, .92); overflow-wrap: anywhere; }
.l-text + .l-text { margin-top: -4px; }
.l-vorschau { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.7; color: rgba(237, 237, 237, .92); margin-top: 4px; overflow-wrap: anywhere; }
.l-hinweis { font-size: 15px; line-height: 22px; color: var(--neben); }
.l-schritte { display: flex; flex-direction: column; gap: 6px; counter-reset: s; }
.l-schritte li { display: grid; grid-template-columns: 28px minmax(0, 1fr); font-size: 16px; line-height: 1.6; color: rgba(237, 237, 237, .92); overflow-wrap: anywhere; }
.l-schritte li::before { counter-increment: s; content: counter(s) "."; color: var(--gruen); font-weight: 800; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--flaeche2); color: var(--text); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.l-beitraege { display: flex; flex-direction: column; margin-top: 4px; }
.l-beitraege a { display: block; padding: 10px 0; font-size: 14px; color: rgba(237, 237, 237, .8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-beitraege a:hover { color: var(--text); }
.l-leer { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--neben); font-size: 15px; line-height: 22px; padding: 32px; }

/* Firmenseite */
.f-name { font-size: 26px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.f-sym { font-size: 14px; color: var(--neben); overflow-wrap: anywhere; }
.f-preis { display: flex; align-items: flex-end; gap: 10px; margin-top: 4px; }
.f-preis b { font-size: 28px; font-weight: 800; line-height: 1.2; }
.f-preis span { font-size: 16px; font-weight: 700; padding-bottom: 3px; }
.f-linie { width: 100%; height: auto; display: block; margin-top: 6px; }
.f-achse { display: flex; justify-content: space-between; font-size: 12px; color: var(--neben); }
.f-hoch { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-top: 2px; }
.f-hoch span:last-child { color: var(--neben); }
.f-stand { font-size: 12px; color: var(--neben); }
.f-meldungen { margin: 0 -40px; }
.f-meldungen .zeile { padding-left: 37px; padding-right: 40px; }

/* ---------------------------------------------------------------- Hinweis (unten, kurz) */
.hinweis { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20; max-width: min(560px, calc(100vw - 32px)); display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--flaeche2); border: 1px solid var(--linie); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); font-size: 14px; line-height: 20px; }
.hinweis-knopf { flex: none; color: var(--gruen); font-weight: 800; font-size: 14px; padding: 4px 2px; }

/* ---------------------------------------------------------------- Mittlere Breite: Menü + (Liste oder Lesen) */
@media (max-width: 1079px) {
  .app { grid-template-columns: 240px minmax(0, 1fr); }
  .liste, .lesen { grid-column: 2; grid-row: 1; border-right: 0; }
  .liste { max-width: 720px; }
  .lesen { display: none; }
  .app.lesen-aktiv .liste { display: none; }
  .app.lesen-aktiv .lesen { display: block; }
  .zurueck { display: inline-flex; }
}

/* ---------------------------------------------------------------- Handy */
@media (max-width: 719px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .liste, .lesen { grid-column: 1; grid-row: 1; max-width: none; }
  .menue { grid-column: 1; grid-row: 2; border-right: 0; border-top: 1px solid var(--linie); padding: 0 4px env(safe-area-inset-bottom, 0); flex-direction: row; justify-content: space-around; gap: 0; overflow: visible; background: var(--schwarz); }
  .app.lesen-aktiv .menue { display: none; }
  .tab { flex: 1 1 0; min-width: 0; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--neben); position: relative; }
  .tab[aria-current="page"] { color: var(--gruen); font-weight: 700; }
  .tab .badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 16px; padding: 0 5px; border-radius: 8px; background: var(--gruen); color: var(--schwarz); font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; }
  .liste-kopf { padding: 12px 16px 2px; }
  .kopfzeile { flex-wrap: wrap; margin-bottom: 8px; row-gap: 8px; }
  .suchfeld { order: 5; flex: 1 1 100%; width: auto; }
  .kopfzeile .kopf-aktion + .suchfeld { order: 5; }
  .titel { font-size: 22px; }
  .nur-schmal { display: flex; }
  .symbol-knopf.nur-schmal { margin-left: -8px; }
  .abschnitt, .unterzeile, .erklaerung, .notiz { padding-left: 16px; padding-right: 16px; }
  .zeile { padding-left: 13px; padding-right: 16px; gap: 12px; }
  .k-zeile { padding-left: 13px; padding-right: 16px; grid-template-columns: minmax(0, 1fr) 48px 82px 48px; gap: 6px; }
  .k-linie { width: 48px; }
  .q-zeile { padding-left: 16px; padding-right: 16px; }
  .chips { gap: 6px; }
  .chip { padding: 0 12px; }
  .pille { padding: 0 12px; font-size: 13px; gap: 6px; }
  .lesen-inhalt { padding: 10px 16px 40px; gap: 12px; }
  .l-titel { font-size: 24px; }
  .f-meldungen { margin: 0 -16px; }
  .f-meldungen .zeile { padding-left: 13px; padding-right: 16px; }
  .hinweis { bottom: calc(72px + env(safe-area-inset-bottom, 0)); }
  .app.lesen-aktiv ~ .hinweis { bottom: 24px; }
  .l-leiste { flex-wrap: wrap; row-gap: 8px; }
  .zurueck { max-width: 100%; }
  .l-aktionen { margin-left: 0; justify-content: flex-start; flex: 1 1 100%; flex-wrap: nowrap; }
}

/* Ergänzungen */
.k-wrap { position: relative; }
.k-linie-box { display: block; height: 26px; min-width: 0; }
.k-linie-box .k-linie { width: 100%; height: 26px; display: block; }

/* Niedrige Fenster: Menü enger, damit „Angemeldet als …“ sichtbar bleibt */
@media (min-width: 720px) and (max-height: 900px) {
  .menue { padding-top: 16px; }
  .logo { padding-bottom: 8px; }
  .m-punkt { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
  .m-punkt.unter { min-height: 26px; padding-top: 3px; padding-bottom: 3px; }
  .m-kopf { padding-top: 10px; padding-bottom: 4px; }
}
