/* Bereich Wiki (globale SOPs und Wiki je Praxis): Klassen mit Kürzel wk- */

.wk-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Rahmen: Seitenbaum links, Seite rechts ---------- */
.wk-seite { display: block; }
.wk-layout { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 16px; align-items: start; }
.wk-leiste { min-width: 0; }
.wk-haupt { min-width: 0; }

.wk-baumschalter { display: none; width: 100%; justify-content: space-between; margin-bottom: 8px; min-height: 44px; }
.wk-baumbox { background: #fff; border: 1px solid var(--km-rand); border-radius: 8px; box-shadow: var(--km-kachel-schatten); padding: 10px; }
.wk-baumkopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.wk-baumkopf h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.wk-baumbox .wk-zeilenfeld { margin: 2px 0 6px; }

.wk-baumliste { list-style: none; margin: 0; padding: 0; }
.wk-baumzeile { display: flex; align-items: center; gap: 2px; padding: 1px 4px 1px calc(4px + var(--wk-tiefe, 0) * 16px); border-radius: 6px; min-height: 32px; }
.wk-baumzeile:hover { background: rgba(225, 232, 235, .5); }
.wk-baumzeile.aktuell { background: var(--km-blau-hell); font-weight: 600; }
.wk-klappe { flex: 0 0 26px; width: 26px; height: 26px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 4px; color: var(--km-text-gedimmt); font-size: 13px; line-height: 1; }
.wk-klappe:hover { background: rgba(0, 0, 0, .06); }
.wk-klappe-leer { cursor: default; }
.wk-baumlink { flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; padding: 4px 4px; overflow-wrap: anywhere; }
.wk-baumlink:hover { text-decoration: underline; }
.wk-baumbadge { flex: 0 0 auto; font-size: 11px; padding: 0 5px; }
.wk-baum-leer { margin: 6px 4px; }
.wk-klappe:focus-visible, .wk-baumlink:focus-visible, .wk-wz:focus-visible, .wk-auswahl:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--km-fokus); }

/* ---------- Meldungen ---------- */
.wk-meldung { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; font-size: 14px; border: 1px solid #c7e4fb; background: #e8f3ff; color: #235b7e; }
.wk-meldung.ok { border-color: #bce7c6; background: #e7f7ec; color: #1c5f31; }
.wk-meldung.warn { border-color: #f5d9a8; background: #fdf1da; color: #7a4e05; }
.wk-meldung.fehler { border-color: #f0b8b8; background: #fdecec; color: #8a1f1f; }
.wk-meldung ul { margin: 6px 0 0; padding-left: 18px; }
.wk-meldung-zu { flex: 0 0 auto; border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; min-width: 32px; min-height: 32px; }
.wk-fehler { margin: 0; color: #8a1f1f; font-size: 13px; }
.wk-erfolg { margin: 0; color: #1c5f31; font-size: 13px; }
.wk-hinweisbox { margin: 0; padding: 8px 12px; border-radius: 6px; border: 1px solid #c7e4fb; background: #e8f3ff; color: #235b7e; font-size: 13px; }

/* ---------- Seitenansicht ---------- */
.wk-artikel { padding: 16px 20px; }
.wk-krumen { font-size: 13px; color: var(--km-text-gedimmt); margin-bottom: 6px; overflow-wrap: anywhere; }
.wk-krumen a { color: var(--km-text-gedimmt); text-decoration: none; }
.wk-krumen a:hover { color: var(--km-fokus); text-decoration: underline; }
.wk-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.wk-seitentitel { margin: 0; font-size: 24px; font-weight: 500; overflow-wrap: anywhere; }
.wk-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.wk-aktionen-leiste { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; align-items: center; }
.wk-aktionen-leiste .pf-btn { min-height: 36px; }
.wk-mehr { margin-left: 0; }
/* „Mehr“ (DxDropDownButton) wie die übrigen pf-btn der Leiste: gleiche Höhe, Schrift, Innenabstand, Rundung */
.wk-aktionen-leiste .wk-mehr.dxbl-btn { min-height: 36px; padding: 5px 12px; font-size: 14.08px; font-weight: 400; border-radius: 4px; background-color: #fff; }

.wk-inhaltsraster { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.wk-verz { position: sticky; top: 12px; font-size: 13px; border-left: 2px solid var(--km-rand); padding-left: 12px; }
.wk-verz h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--km-text-gedimmt); font-weight: 600; }
.wk-verz ul { list-style: none; margin: 0; padding: 0; }
.wk-verz li { padding: 2px 0 2px calc(var(--wk-ebene, 0) * 12px); overflow-wrap: anywhere; }
.wk-verz a { text-decoration: none; }
.wk-verz a:hover { text-decoration: underline; }
.wk-verz-schmal { position: static; border-left: 0; padding-left: 0; margin-bottom: 8px; }
.wk-verz-schmal summary { cursor: pointer; padding: 8px 0; min-height: 32px; font-weight: 600; }

.wk-abschnitt { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--km-rand); }
.wk-abschnitt h3 { margin: 0 0 6px; font-size: 14px; }
.wk-seitenliste { margin: 0; padding-left: 18px; }
.wk-seitenliste li { padding: 2px 0; }
.wk-meta { margin: 18px 0 0; }
.wk-leer h2 { margin-bottom: 8px; }
.wk-leer .pf-btn { margin-top: 8px; }

/* ---------- Gerenderter Seiteninhalt (aus Markdown, bereinigt) ---------- */
.wk-inhalt { min-width: 0; line-height: 1.55; overflow-wrap: anywhere; }
.wk-inhalt > :first-child { margin-top: 0; }
.wk-inhalt h1 { font-size: 22px; margin: 22px 0 8px; font-weight: 600; }
.wk-inhalt h2 { font-size: 19px; margin: 20px 0 8px; font-weight: 600; padding-bottom: 3px; border-bottom: 1px solid var(--km-rand); }
.wk-inhalt h3 { font-size: 16px; margin: 16px 0 6px; font-weight: 600; }
.wk-inhalt h4, .wk-inhalt h5, .wk-inhalt h6 { font-size: 14px; margin: 14px 0 4px; font-weight: 600; }
.wk-inhalt p { margin: 8px 0; }
.wk-inhalt ul, .wk-inhalt ol { margin: 8px 0; padding-left: 24px; }
.wk-inhalt li { margin: 2px 0; }
.wk-inhalt ul.contains-task-list { list-style: none; padding-left: 4px; }
.wk-inhalt li.task-list-item input { margin-right: 6px; }
.wk-inhalt blockquote { margin: 10px 0; padding: 4px 14px; border-left: 4px solid var(--km-gruen); background: #f4f9ee; color: #2c3332; }
.wk-inhalt blockquote p { margin: 4px 0; }
.wk-inhalt code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: #eef1f2; padding: 1px 5px; border-radius: 4px; }
.wk-inhalt pre { background: #1f2a2e; color: #eef3f5; padding: 10px 12px; border-radius: 6px; overflow-x: auto; margin: 10px 0; }
.wk-inhalt pre code { background: transparent; color: inherit; padding: 0; font-size: 13px; }
.wk-inhalt hr { border: 0; border-top: 1px solid var(--km-rand); margin: 16px 0; }
.wk-inhalt table { border-collapse: collapse; margin: 10px 0; display: block; max-width: 100%; overflow-x: auto; }
.wk-inhalt th, .wk-inhalt td { border: 1px solid #d3d3d2; padding: 5px 10px; text-align: left; vertical-align: top; }
.wk-inhalt th { background: #f0f4f5; font-weight: 600; }
.wk-inhalt tr:nth-child(even) td { background: rgba(225, 232, 235, .25); }
.wk-inhalt .wk-ausr-center { text-align: center; }
.wk-inhalt .wk-ausr-right { text-align: right; }
.wk-inhalt a { color: var(--km-fokus); }
.wk-inhalt a.wk-link { text-decoration: underline; }
.wk-inhalt .wk-link-fehlt { color: #a01b1b; text-decoration: underline dotted; cursor: help; }
.wk-inhalt .wk-link-gesperrt { color: var(--km-text-gedimmt); text-decoration: underline dotted; cursor: help; }
.wk-inhalt .wk-bild img { max-width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--km-rand); }
.wk-inhalt .wk-bild-fehlt { color: var(--km-text-gedimmt); font-style: italic; }
.wk-inhalt h1[id], .wk-inhalt h2[id], .wk-inhalt h3[id], .wk-inhalt h4[id] { scroll-margin-top: 16px; }
.wk-inhalt-version { border: 1px solid var(--km-rand); border-radius: 6px; padding: 8px 14px; background: #fff; }

/* ---------- Editor ---------- */
.wk-editor { background: #fff; border: 1px solid var(--km-rand); border-radius: 8px; box-shadow: var(--km-kachel-schatten); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.wk-editor h3 { margin: 0; font-size: 17px; }
.wk-feld { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; }
.wk-werkzeug { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wk-wz { min-width: 40px; min-height: 40px; padding: 4px 10px; font-size: 13px; }
.wk-wz-fett { font-weight: 800; }
.wk-wz-kursiv { font-style: italic; }
.wk-wz-durch { text-decoration: line-through; }
.wk-wz-trenner { width: 1px; align-self: stretch; background: var(--km-rand); margin: 0 4px; }
.wk-ansichten { display: flex; gap: 4px; }
.wk-ansichten .pf-btn[aria-pressed="true"] { background: var(--km-gruen); border-color: var(--km-gruen); font-weight: 600; }
.wk-flaeche { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.wk-textfeld { width: 100%; box-sizing: border-box; min-height: 320px; padding: 10px 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.5; border: 1px solid #c9d1d4; border-radius: 6px; resize: vertical; background: #fff; color: var(--km-text); }
.wk-textfeld:focus { outline: none; border-color: var(--km-fokus); box-shadow: 0 0 0 2px rgba(31, 127, 207, .25); }
.wk-vorschau { border: 1px solid var(--km-rand); border-radius: 6px; padding: 10px 14px; background: #fcfdfd; min-height: 120px; max-height: 70vh; overflow: auto; }
.wk-vorschau-neu { margin-top: 10px; min-height: 36px; }
.wk-ansicht-schreiben .wk-vorschau { display: none; }
.wk-ansicht-vorschau .wk-textfeld { display: none; }
.wk-hilfe { margin: 0; }
.wk-editor-fuss { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wk-editor-fuss .pf-btn { min-height: 40px; min-width: 100px; }
.wk-vorschlag { min-height: 40px; align-self: flex-end; }
.wk-vorschlag-hinweis { margin: 4px 0 0; }
.wk-vorschlag-chip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 0; padding: 6px 10px; border: 1px dashed #7fb2d6; border-radius: 6px; background: #f2f9ff; font-size: 13px; }
.wk-vorschlag-chip .pf-btn { min-height: 36px; }
.wk-fremd { border: 1px solid #f5d9a8; background: #fffaf0; border-radius: 6px; padding: 8px 12px; }
.wk-fremd summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.wk-fremdtext { min-height: 180px; background: #f8f9fa; }
.wk-kasten-zeile { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }

/* ---------- Dialoge ---------- */
.wk-dialog { display: flex; flex-direction: column; gap: 10px; }
.wk-dialog label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; }
.wk-dialog h4 { margin: 4px 0 0; font-size: 14px; }
.wk-fuss { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.wk-fuss-mehrere { justify-content: space-between; }
.wk-konflikt-diff { max-height: 40vh; overflow: auto; }
.wk-konflikt-wahl { margin: 0; padding-left: 18px; font-size: 13px; }
.wk-konflikt-wahl li { margin: 3px 0; }
.wk-auswahlfeld { min-height: 36px; padding: 4px 8px; border: 1px solid #c9d1d4; border-radius: 4px; font: inherit; background: #fff; max-width: 100%; }
.wk-auswahlliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; }
.wk-auswahl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 8px 10px; min-height: 44px; border: 1px solid var(--km-rand); border-radius: 6px; background: #fff; cursor: pointer; font: inherit; }
.wk-auswahl:hover { background: var(--km-blau-hell); }
.wk-auswahl-titel { font-weight: 600; }
.wk-auswahl-meta { font-size: 12px; color: var(--km-text-gedimmt); }
.wk-feldzeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.wk-feldzeile > label { flex: 1 1 160px; }
.wk-zeilenfeld { display: flex; flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 400 !important; }
.wk-klein { font-size: 12px; }
.wk-hinzufuegen { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--km-rand); }

/* ---------- Tabellen (Verlauf, Partnerzugriff) ---------- */
.wk-tabellenrahmen { overflow-x: auto; max-width: 100%; }
.wk-tabelle { border-collapse: collapse; width: 100%; font-size: 13px; }
.wk-tabelle th, .wk-tabelle td { padding: 6px 10px; border-bottom: 1px solid #eef1f2; text-align: left; vertical-align: top; }
.wk-tabelle thead th { background: #f0f4f5; font-weight: 600; white-space: nowrap; }
.wk-tabelle tr.aktiv td { background: var(--km-blau-hell); }
.wk-aktionen { white-space: nowrap; display: flex; gap: 4px; flex-wrap: wrap; }
.wk-aktionen .pf-btn { min-height: 30px; padding: 2px 8px; font-size: 12px; }
.wk-verlauf { background: #fff; border: 1px solid var(--km-rand); border-radius: 8px; box-shadow: var(--km-kachel-schatten); padding: 14px 16px; }
.wk-bereichskopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.wk-bereichskopf h3 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.wk-knoepfe { display: flex; gap: 6px; margin: 8px 0; }
.wk-verlauf-detail { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--km-rand); }
.wk-verlauf-detail h4 { margin: 0 0 4px; font-size: 15px; }

/* ---------- Vergleich ---------- */
.wk-diff { border-collapse: collapse; width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.wk-diff td { padding: 1px 6px; vertical-align: top; }
.wk-diff-nr { width: 1%; min-width: 28px; text-align: right; color: var(--km-text-gedimmt); user-select: none; border-right: 1px solid #e3e8ea; }
.wk-diff-zeichen { width: 1%; font-weight: 700; }
.wk-diff-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.wk-diff-neu td { background: #e7f7ec; }
.wk-diff-neu .wk-diff-zeichen { color: #1c7a3a; }
.wk-diff-weg td { background: #fbe9e6; }
.wk-diff-weg .wk-diff-zeichen { color: #a01b1b; }
.wk-diff-weg .wk-diff-text { text-decoration: line-through; text-decoration-color: rgba(160, 27, 27, .5); }
.wk-diff-pause td { text-align: center; color: var(--km-text-gedimmt); background: #f4f6f7; font-style: italic; padding: 3px; }

/* ---------- Suche ---------- */
.wk-suche { display: flex; flex-direction: column; gap: 12px; }
.wk-suchformular { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.wk-suchformular label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; }
.wk-suchformular label:first-child { flex: 1 1 280px; }
.wk-suchfeld { min-height: 36px; padding: 4px 10px; border: 1px solid #c9d1d4; border-radius: 4px; font: inherit; }
.wk-suchformular .pf-btn { min-height: 36px; }
.wk-treffer { list-style: none; margin: 0; padding: 0; }
.wk-treffer-zeile { padding: 10px 2px; border-bottom: 1px solid #eef1f2; }
.wk-treffer-zeile:last-child { border-bottom: 0; }
.wk-treffer-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.wk-treffer-titel { font-weight: 600; font-size: 15px; }
.wk-treffer-text { margin: 4px 0 0; font-size: 13px; color: #3b4248; overflow-wrap: anywhere; }

/* ---------- Bilder und Dateien im Text ---------- */
.wk-inhalt a.wk-bild { display: inline-block; cursor: zoom-in; text-decoration: none; }
.wk-inhalt a.wk-bild:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--km-fokus); border-radius: 4px; }
.wk-inhalt a.wk-datei::before { content: "\1F4CE\00a0"; }
.wk-inhalt .wk-datei-fehlt { color: var(--km-text-gedimmt); font-style: italic; text-decoration: underline dotted; cursor: help; }
.wk-textfeld.wk-ablegen { border-color: var(--km-fokus); box-shadow: 0 0 0 3px rgba(31, 127, 207, .3); background: #f3f9ff; }

/* ---------- Anhänge ---------- */
.wk-galerie { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.wk-anhang { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--km-rand); border-radius: 8px; padding: 8px; background: #fff; min-width: 0; }
.wk-anhang-bild, .wk-anhang-datei { display: flex; align-items: center; justify-content: center; width: 100%; height: 130px; padding: 0; border: 0; border-radius: 6px; background: #f0f4f5; cursor: zoom-in; overflow: hidden; text-decoration: none; }
.wk-anhang-datei { cursor: pointer; }
.wk-anhang-bild img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.wk-anhang-bild:focus-visible, .wk-anhang-datei:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--km-fokus); }
.wk-dateisymbol { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 76px; padding: 0 8px; border-radius: 6px; background: #fff; border: 2px solid var(--km-rand); color: #2c3a40; font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.wk-anhang-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wk-anhang-name { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.wk-anhang-aktionen { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.wk-anhang-aktionen .pf-btn { min-height: 32px; padding: 2px 8px; font-size: 12px; text-decoration: none; }
.wk-ablage { position: relative; margin-top: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; padding: 12px; border: 2px dashed #b7c3c8; border-radius: 8px; background: #fafcfc; text-align: center; }
.wk-ablage:hover, .wk-ablage.zieht, .wk-ablage:focus-within { border-color: var(--km-fokus); background: #f3f9ff; }
.wk-ablage-eingabe { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.wk-ablage-text { font-weight: 600; font-size: 14px; pointer-events: none; }
.wk-ablage-hinweis { pointer-events: none; }
.wk-anhang-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wk-datei-knopf { position: relative; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wk-datei-knopf:focus-within { box-shadow: 0 0 0 2px var(--km-fokus); }
.wk-kamera { min-height: 44px; }
.wk-entfernte { margin-top: 10px; font-size: 13px; }
.wk-entfernte summary { cursor: pointer; min-height: 32px; padding: 4px 0; }
.wk-uploads { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wk-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 5px 10px; border-radius: 6px; font-size: 13px; background: #f4f6f7; border: 1px solid var(--km-rand); }
.wk-upload.ok { background: #e7f7ec; border-color: #bce7c6; color: #1c5f31; }
.wk-upload.fehler { background: #fdecec; border-color: #f0b8b8; color: #8a1f1f; }
.wk-upload-name { font-weight: 600; overflow-wrap: anywhere; }
.wk-upload-stand { margin-left: auto; }
.wk-fortschritt { width: 90px; height: 8px; }
.wk-upload-zu { margin-top: 6px; min-height: 32px; font-size: 12px; }

/* ---------- Bildbetrachter (Vollbild) ---------- */
.wk-betr { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; background: rgba(8, 12, 14, .985); color: #fff; outline: none; }
.wk-betr-kopf { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 12px; background: rgba(0, 0, 0, .45); }
.wk-betr-zaehler { font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-betr-name { flex: 1 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.wk-betr-werkzeuge { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wk-betr-knopf { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.wk-betr-knopf:hover { background: rgba(255, 255, 255, .22); }
.wk-betr-knopf:focus-visible, .wk-betr-pfeil:focus-visible { outline: none; box-shadow: 0 0 0 3px #7cc0ff; }
.wk-betr-buehne { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.wk-betr-buehne[data-zoom="ja"] { cursor: grab; }
.wk-betr-buehne[data-zoom="ja"]:active { cursor: grabbing; }
.wk-betr-bild { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; transform-origin: center center; will-change: transform; -webkit-user-drag: none; }
.wk-betr-buehne[data-zustand="laedt"] .wk-betr-bild { opacity: .25; }
.wk-betr-buehne[data-zustand="fehler"] .wk-betr-bild { display: none; }
.wk-betr-meldung { display: none; position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content; max-width: 90%; padding: 10px 16px; border-radius: 8px; background: rgba(0, 0, 0, .6); text-align: center; }
.wk-betr-buehne[data-zustand="laedt"] .wk-betr-laedt { display: block; }
.wk-betr-buehne[data-zustand="fehler"] .wk-betr-fehler { display: block; }
.wk-betr-pfeil { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 52px; height: 72px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.wk-betr-pfeil:hover { background: rgba(255, 255, 255, .25); }
.wk-betr-zurueck { left: 10px; }
.wk-betr-vor { right: 10px; }

/* ---------- Umschalten nach Bildschirmbreite ---------- */
.wk-nur-schmal { display: none; }

@media (max-width: 900px) {
    .wk-layout { grid-template-columns: minmax(0, 1fr); }
    .wk-baumschalter { display: inline-flex; }
    .wk-baumbox { display: none; }
    .wk-baumbox.offen { display: block; }
    .wk-inhaltsraster { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .wk-nur-breit { display: none; }
    .wk-nur-schmal { display: block; }
    .wk-artikel { padding: 12px 12px; }
    .wk-seitentitel { font-size: 21px; }
    .wk-editor { padding: 10px; }
    .wk-textfeld { font-size: 16px; min-height: 360px; } /* 16 px: iOS zoomt beim Fokussieren sonst hinein */
    .wk-aktionen-leiste .pf-btn, .wk-aktionen-leiste .wk-mehr.dxbl-btn { min-height: 44px; }
    .wk-wz { min-height: 44px; min-width: 44px; }
    .wk-editor-fuss .pf-btn { min-height: 44px; flex: 1 1 140px; }
    .wk-vorschlag, .wk-vorschlag-chip .pf-btn { min-height: 44px; }
    .wk-tabelle { font-size: 12px; }
    .wk-galerie { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
    .wk-anhang-aktionen .pf-btn { min-height: 40px; }
    .wk-betr-kopf { padding: 6px 8px; }
    .wk-betr-name { flex-basis: 100%; order: 3; }
    .wk-betr-pfeil { width: 44px; height: 64px; font-size: 34px; }
    .wk-nur-schmal.wk-datei-knopf, .wk-nur-schmal.wk-kamera { display: inline-flex; }
}

@media (min-width: 1100px) {
    .wk-ansicht-geteilt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
    .wk-ansicht-geteilt .wk-textfeld, .wk-ansicht-geteilt .wk-vorschau { display: block; }
}

@media (max-width: 1099px) {
    .wk-nur-gross { display: none; }
    .wk-ansicht-geteilt .wk-vorschau { display: block; }
}
