/* ============================================================================
   MC — Anbindung der gemeinsamen Bausteine (Plan Grundregeln AP-10, MC 1.9.0)
   osp-kopf.v1 · osp-seitenleiste.v1 · osp-glocke.v1 · osp-ansicht.v1 · osp-tabelle.v1
   Diese Datei hält nur MC-Eigenes: Rahmen, Besonderheiten im Kopf, Zellen-Darstellung der Tabellen.
   Das Aussehen von Kopf, Seitenleiste, Glocke und Tabelle selbst steckt in /shared/osp-*.v1.css.
   Blau auf Weiß = #0070B0 (UI-Standard 1.2, B-19); #0080C9 nur für Linien und Flächen.
   ============================================================================ */

/* ── Rahmen: der Kopf und die Seitenleiste stehen, nur der Inhalt rollt (UX-Soll: keine Seitenscrollleiste) ── */
html, body { height: 100%; }
body { min-height: 0; height: 100vh; overflow-x: auto; overflow-y: hidden; }
#app { height: 100vh; min-width: 900px; display: flex; flex-direction: column; }
#app > header, #app > .rollensicht-banner, #app > .error-banner, #app > .mock-banner { flex: 0 0 auto; }
.app-body { flex: 1 1 auto; min-height: 0; display: flex; align-items: stretch; }
.content-col { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.main-content { flex: 1 1 auto; min-height: 0; overflow: auto; overflow-x: hidden; padding: 8px 20px 8px; }
.view:not(.view-fuell) { padding-bottom: 56px; }   /* Platz für den Assistenten-Knopf unten rechts */
#view-detail { max-width: 1840px; }

/* Kleben im Inhalt: der Rahmen rollt, nicht die Seite — die Oberkante ist 0, nicht die Kopfhöhe */
.zone-kopf { top: 0; }
.zone-akte, .zone-beistell { top: calc(var(--mc-kopf-h, 110px) + 4px); }

/* Überschrift-Abstand: Seiteneinleitung höchstens ein Satz, dicht unter dem Titel */
.view-head, .view-kopf { margin-bottom: 10px; }

/* ── Kopf (MC-Besonderheiten im osp-kopf.v1-Raster) ───────────────────────── */
#app-header .okopf-app { text-decoration: none; }
#app-header .okopf-app:hover { text-decoration: underline; text-underline-offset: 3px; }
#app-header .version-chip {
    background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .55); color: #fff; border-radius: 12px;
    height: 24px; padding: 0 10px; font-size: 11px; line-height: 22px; cursor: pointer; flex: 0 0 auto;
}
#app-header .version-chip:hover { background: rgba(0, 0, 0, .34); }
#app-header .header-actions { display: flex; align-items: center; gap: 10px; }
#app-header .hdr-action { width: 34px; height: 34px; }
#app-header .hdr-suche { height: 32px; flex: 0 0 auto; }
#app-header .hdr-suche input[type="search"] { width: 150px; }
#app-header .mail-ampel { background: #E6F2FA; border-color: #E6F2FA; padding: 0; min-width: 36px; }   /* heller Chip: grün/rot bleiben auf dem Kopf erkennbar (≥ 3 : 1) */
#app-header .lauf-anzeige-wrap { position: relative; display: inline-flex; align-items: center; }
#app-header .lauf-panel { right: 0; top: calc(100% + 10px); }
#app-header .icon-btn-badge { position: relative; }
.okopf-zahl {
    position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: #B53F0B; color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;   /* weiß auf #B53F0B 5,9 : 1 */
    pointer-events: none;
}
.okopf-zahl-hell { background: #fff; color: #0A4F7A; }
/* Im Mehr-Menü (heller Grund) behalten verschobene Chips ihre Lesbarkeit */
#app-header .okopf-mehr-panel .version-chip { background: var(--ok-chip-bg); color: var(--ok-chip-text); border-color: var(--ok-menue-rand); }
.okopf-mehr-panel .mail-ampel { border-color: var(--ok-menue-rand); }
#app-header .okopf-mehr-panel .hdr-suche { background: var(--ok-menue-bg); border-color: var(--ok-menue-rand); }
.okopf-mehr-panel .hdr-suche input[type="search"] { color: var(--ok-menue-text); }
.okopf-mehr-panel .hdr-suche svg { color: var(--ok-menue-text2); }
.okopf-mehr-panel .hdr-suche input[type="search"]::placeholder { color: var(--ok-menue-text2); }
/* Rollen-Chip: Stufen und Rollensicht */
.okopf-rolle.rolle-admin { background: #fff; color: #0A2F4D; }
.okopf-rolle.rolle-keine { background: #B53F0B; color: #fff; }
.okopf-rolle.chip-rollensicht { border: 2px dashed #0A2F4D; }
.okopf-benutzer { cursor: default; }
/* Rollensicht-Auswahl im Kopf: der Chip bleibt weiß lesbar (Kontrast wie bisher geprüft) */
#app-header .rollensicht-wrap { flex: 0 0 auto; }
/* Ansicht (Zahnrad) */
.okopf-ansicht-wrap { position: relative; display: inline-flex; }
.okopf-ansicht-panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 90; width: 272px; padding: 10px 12px 12px;
    background: var(--ok-menue-bg); color: var(--ok-menue-text); border: 1px solid var(--ok-menue-rand); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22); white-space: normal; text-align: left; font-size: 14px;
}
.okopf-ansicht-panel[hidden] { display: none; }
.okopf-ansicht-panel h2 { margin: 0 0 6px; font: 600 15px/1.2 'Montserrat', 'Open Sans', sans-serif; color: var(--ok-menue-text); }
.oa-gruppe { margin: 8px 0 0; padding: 0; border: 0; }
.oa-gruppe legend { padding: 0; font-size: 12px; font-weight: 600; color: var(--ok-menue-text2); }
.oa-wahl { display: flex; gap: 6px; margin-top: 4px; }
.oa-wahl button, .oa-zu {
    flex: 1 1 0; min-height: 32px; padding: 0 8px; font: inherit; font-size: 13px; cursor: pointer;
    color: var(--ok-menue-text); background: transparent; border: 1px solid var(--ok-menue-rand); border-radius: 8px;
}
.oa-wahl button:hover, .oa-zu:hover { background: var(--ok-menue-hover); }
.oa-wahl button[aria-pressed="true"] { background: var(--ok-sl-aktiv-bg); color: #fff; border-color: var(--ok-sl-aktiv-bg); font-weight: 600; }
.oa-wahl button:focus-visible, .oa-zu:focus-visible { outline: 3px solid var(--ok-fokus); outline-offset: 1px; }
.oa-zu { display: block; width: 100%; margin-top: 12px; }
.oa-hinweis { margin: 6px 0 0; font-size: 12px; color: var(--ok-menue-text2); }

/* ── Seitenleiste (MC-Besonderheiten) ─────────────────────────────────────── */
.app-sidebar .sb-nav-item .sb-zahl { background: #B53F0B; color: #fff; }   /* offene Dinge: Orange wie bisher, Kontrast 5,9 : 1 */
.app-sidebar .sb-nav-item[aria-current="page"] .sb-zahl { background: #fff; color: #0A2F4D; }
.app-sidebar .sb-nav-item .side-extern { margin-left: auto; width: 12px; height: 12px; opacity: .6; }
.app-sidebar .sb-nav-item .inx-dot { margin-left: auto; }
body.sidebar-closed .app-sidebar .sb-nav-item { position: relative; }
body.sidebar-closed .app-sidebar .sb-nav-item .sb-zahl,
body.sidebar-closed .app-sidebar .sb-nav-item .inx-dot,
body.sidebar-closed .app-sidebar .sb-nav-item .side-extern { display: none; }
body.sidebar-closed .app-sidebar .sb-nav-item[data-view="anforderungen"]::after,
body.sidebar-closed .app-sidebar .sb-nav-item[data-view="material"]::after { content: none; }
.app-sidebar { height: auto; }
/* Alle Punkte bleiben bei 650 px Fensterhöhe ohne Rollen der Leiste sichtbar (12 Punkte, 4 Gruppen) */
.app-sidebar .sb-nav { gap: 1px; padding: 6px 8px; }
.app-sidebar .sb-nav-item { min-height: 34px; padding: 5px 12px; }
.app-sidebar .sb-gruppe { margin: 7px 10px 1px; }

/* ── Haupt-Listen: füllen den Rahmen, die Tabelle rollt in sich ───────────── */
.view-fuell { height: 100%; min-height: 0; flex-direction: column; }
.view-fuell[style*="display: none"] { display: none; }
.view-fuell:not([style*="display: none"]) { display: flex; }
.mc-tab-host { flex: 1 1 auto; min-height: 0; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 46px; }   /* unten bleibt Platz für den Assistenten-Knopf */
.mc-tab-host .ot { --ot-schrift: var(--osp-schrift, 14px); height: 100%; }
.mc-tab-host .ot-tabelle td { font-size: var(--ot-schrift); }
.tabelle-kopf { flex: 0 0 auto; margin-bottom: 6px; }
.liste-nur-hinweis { flex: 0 0 auto; }
.mc-kopfzeile { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.mc-kopfzeile .view-kopf { margin: 0; }
.mc-kopf-aktionen { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mc-kopfzeile h2, .mc-kopfzeile .view-titel { margin: 0; font-size: 1.15rem; }
.mc-kopfzeile .view-sub { margin: 2px 0 0; }

/* Zellen der Tabellen (HTML-Zellen, die osp-tabelle nicht selbst kennt: Ampel, Links, Badges) */
.mc-tab-host .ot-tabelle tbody tr.ot-zeile { cursor: pointer; }
.mc-tab-host td[data-spalte="id"] .ot-z { font-weight: 700; color: var(--mc-link); font-family: inherit; }
.mc-tab-host .ot-z .ampel { display: inline-block; vertical-align: middle; }
.mc-tab-host td.mc-frist-rot .ot-z { color: var(--st-rot); font-weight: 700; }
.mc-tab-host .ot-z .frist-rel { display: inline; margin-left: 6px; font-size: .72rem; white-space: nowrap; }
.mc-tab-host td[data-spalte="kunde"] .ot-z { font-weight: 600; }
.mc-tab-host .ot-z a.kunde-link { color: inherit; display: inline-block; box-sizing: border-box; min-height: 24px; padding-block: 3px; margin-block: -3px; line-height: 1.2; vertical-align: top; }   /* Trefferfläche ≥ 24 px (WCAG 2.5.8), ohne die Zeile höher zu machen */
.mc-tab-host .ot-z .kunde-intern, .mc-tab-host .ot-z .ungeprueft-hinweis, .mc-tab-host .ot-z .ki-geprueft-hinweis, .mc-tab-host .ot-z .stempel-sonder { margin: 0; }
.mc-tab-host .ot-z .badge-outline { font-size: .7rem; }
.mc-zmenu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0;
    background: transparent; border: 0; border-radius: 6px; color: var(--color-text-muted); cursor: pointer;
}
.mc-zmenu-btn svg { width: 16px; height: 16px; }
.mc-zmenu-btn:hover, .mc-zmenu-btn:focus-visible { background: var(--color-bg-light); color: var(--mc-link); }
.mc-zmenu {
    position: fixed; z-index: 140; min-width: 190px; padding: 4px; background: var(--color-card); color: var(--color-text);
    border: 1px solid var(--color-border); border-radius: 10px; box-shadow: var(--shadow-modal);
}
.mc-zmenu button {
    display: block; width: 100%; min-height: 32px; padding: 4px 10px; text-align: left; font: inherit; font-size: .86rem;
    background: none; border: 0; border-radius: 6px; color: inherit; cursor: pointer;
}
.mc-zmenu button:hover, .mc-zmenu button:focus-visible { background: var(--color-bg-light); }
.mc-zmenu button.gefahr:hover, .mc-zmenu button.gefahr:focus-visible { background: var(--color-danger); color: #fff; }

/* ── Größe (osp-ansicht.v1): MC rechnet in rem — Stufe klein · mittel · groß verschiebt die Wurzelschrift.
   mittel = bisheriges Bild (16 px Wurzel, 15 px Fließtext). ────────────────────────────────────────────── */
html[data-osp-stufe] { font-size: calc(var(--osp-schrift, 14px) * 16 / 14); }
html[data-osp-stufe] body { font-size: calc(var(--osp-schrift, 14px) * 15 / 14); line-height: 1.5; }

/* Datenschutzhinweis: liegt jetzt unten links über dem Inhalt (die Fußzeile entfällt) */
.ds-hinweis-panel { position: fixed; left: 16px; bottom: 16px; z-index: 150; max-width: min(520px, calc(100vw - 32px)); }

/* Schmale Fenster (960 px, Snap): die Seitenleiste wird zur Überlagerung (osp-seitenleiste), der Kopf rückt zusammen */
@media (max-width: 1100px) {
    .main-content { padding: 10px 14px 14px; }
    #app-header .hdr-suche input[type="search"] { width: 110px; }
}
@media print {
    .main-content { overflow: visible; }
    body, #app { height: auto; overflow: visible; }
}

/* Compliance-Assistent: kleiner Knopf unten rechts, damit er die letzte Tabellenzeile nicht überdeckt */
.ca-fab { right: 22px; bottom: 8px; height: 44px; border-radius: 22px; }
@media (max-width: 1500px) { .ca-fab { width: 44px; } }
.view-fuell { margin-bottom: 0; }

/* Niedrige Fenster (150 % Skalierung ≈ 433 px hoch): Zeilen dichter (eine Zeile), Kopfleiste flacher, Reserve für den Assistenten-Knopf schmaler */
@media (max-height: 520px) {
    .mc-tab-host .ot { --ot-zf: 2.1; }
    .mc-tab-host .ot-kuerz { -webkit-line-clamp: 1; line-clamp: 1; }   /* eine Zeile, der volle Text steht im Tooltip */
    .mc-tab-host .ot-z a.kunde-link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .mc-tab-host { margin-bottom: 30px; }
    .main-content { padding: 4px 20px 4px; }
    .tabelle-kopf { margin-bottom: 2px; }
    .tabelle-kopf .btn, .tabelle-kopf .tab-btn { min-height: 26px; padding-top: 1px; padding-bottom: 1px; font-size: .8rem; }
    .ca-fab { width: 28px; height: 28px; bottom: 4px; right: 22px; padding: 0; justify-content: center; }
    .ca-fab > span:not(.ca-punkt) { display: none; }
    .ca-fab .ca-ic { width: 16px; height: 16px; }
}

/* Reiter „Stoffe & Materialien“: der Reiterinhalt füllt den Rest; Tabellenreiter rollen in der Tabelle, die übrigen im Inhalt */
#view-material, #view-eingang { min-height: 0; }
#material-reiter-inhalt, #eingang-inhalt { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
#material-reiter-inhalt > .card.mc-fuell, #eingang-inhalt > .card.mc-fuell { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 8px 12px 0; }
.card.mc-fuell .card-head { margin-bottom: 4px; flex: 0 0 auto; }
.card.mc-fuell .stoff-filter { margin: 0 0 6px; flex: 0 0 auto; align-items: center; }
.card.mc-fuell .mc-tab-host { margin-bottom: 6px; }
.card.mc-fuell .mc-tab-host:last-child { margin-bottom: 40px; }   /* Reserve für den Assistenten-Knopf */
.bl-mehr { margin: 0 0 34px; flex: 0 0 auto; }
.pruef-filterfeld { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.pruef-filterfeld + .pruef-filterfeld { margin-left: 0; }
.pruef-filterfeld select, .pruef-filterfeld input { height: 30px; padding-top: 0; padding-bottom: 0; }
.pruef-filterfeld input[type="search"] { width: 150px; }

/* Aktionszellen (Knöpfe mit Hinweistext) bleiben einzeilig, damit die Zeile nicht höher wird */
.mc-tab-host td[data-spalte="aktion"] .ot-z { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.mc-tab-host td[data-spalte="aktion"] .ot-z .btn { flex: 0 0 auto; }
/* 1.9.1 — Seitenkopf der Tabellenansichten verdichtet: Titel, Reiter und Einleitungssatz in einer Zeile; Titel, Filterknöpfe
   und Zahl in einer Zeile (Eingang, Stoffe & Materialien). */
.mc-kopf-titel { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; min-width: 0; }
.mc-kopf-titel .view-titel { margin: 0; }
.mc-kopf-titel .tab-leiste { margin: 0; }
.mc-kopf-titel .view-sub { margin: 0; }
#view-eingang .view-kopf, #view-material .view-kopf { margin: 0 0 6px; align-items: center; }
#view-eingang .view-kopf-klapp .mc-klapp-alle, #view-material .view-kopf-klapp .mc-klapp-alle { margin-top: 0; }
.card.mc-fuell .card-head.mc-kopf-chips { flex-wrap: wrap; justify-content: flex-start; gap: 4px 12px; margin: 0 0 6px; }
.mc-kopf-chips .card-title { margin: 0; flex: 0 0 auto; }
.mc-kopf-chips .stoff-filter { margin: 0; flex: 0 1 auto; gap: 4px; }
/* 1.9.2: „.card.mc-fuell .stoff-filter“ (flex 0 0 auto) gewann bisher — die Chip-Zeile brach nicht um und lief bei 1366/960 aus dem Kopf */
.card.mc-fuell .mc-kopf-chips .stoff-filter { flex: 0 1 auto; min-width: 0; }
.mc-kopf-chips .stoff-chip { padding: 2px 9px; }
.mc-kopf-chips .view-sub { margin-left: auto; white-space: nowrap; }
.mc-kopf-chips .pruef-filterfeld { margin-left: 0; }
/* kleines Fenster am Kopf („Beleg in den Eingang legen“) */
.mc-pop { position: relative; }
.mc-pop > summary { list-style: none; cursor: pointer; }
.mc-pop > summary::-webkit-details-marker { display: none; }
.mc-pop-panel {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: min(560px, 90vw); padding: 12px 14px;
    background: var(--color-card); color: var(--color-text); border: 1px solid var(--color-border); border-radius: 10px; box-shadow: var(--shadow-modal);
}
/* Symbolknöpfe in Tabellenzeilen (Stimmt, Zurücknehmen): 28 px, Tooltip nennt die Handlung */
.mc-ikn { width: 28px; min-width: 28px; height: 28px; padding: 0; justify-content: center; }
.mc-ikn svg { width: 16px; height: 16px; }
.mc-ikn-ja { color: var(--st-gruen); border-color: var(--st-gruen); }
/* 1.10.1: Zurücknehmen löscht Beleg, Konzentration und Status — Abstand zur Hauptaktion, rot bei Hover und Fokus */
.mc-ikn-gefahr { margin-left: 10px; }
@media (max-height: 520px) { .mc-ikn-gefahr { margin-left: 6px; } }
.mc-ikn-gefahr:hover, .mc-ikn-gefahr:focus-visible { color: var(--st-rot); border-color: var(--st-rot); }
/* 1.10.1: „Neuer Beleg“ mit Symbol und Wort (unter 1500 px) */
.mc-neu-beleg { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mc-neu-beleg svg { width: 15px; height: 15px; flex: 0 0 auto; }
/* N-5: statt des Knopfs die laufende Anforderung („Angefordert am TT.MM. · MCA-…“) */
.mc-angefordert { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; font-size: .8rem; }   /* bricht um, statt den Knopf daneben aus der Zelle zu schieben (Controller 1.11.2) */
.mc-tab-host td[data-spalte="aktion"] .ot-z { gap: 4px; }
.mc-tab-host .stoff-hinweis { font-size: .74rem; line-height: 1.15; white-space: normal; }
.mc-tab-host td[data-spalte="status"] .badge { white-space: nowrap; }
/* Hinweiszeile „Zurück zu den Kundenvorgängen“: definierter Grund statt hellem Rückfall (dunkel ≥ 4,5 : 1) */
.liste-nur-hinweis { background: var(--color-bg-light); }
.treffer-reset { display: inline-block; min-height: 24px; padding-block: 2px; }
@media (max-height: 760px) {
    .card.mc-fuell { padding-top: 4px; }
    .card.mc-fuell .card-head { margin-bottom: 2px; }
}
@media (max-height: 520px) {
    /* 150 % Skalierung: der Filterknopf-Streifen entfällt (Filter bleiben in der Filterzeile der Tabelle); Pfad und Titel stehen im Kopf */
    .card.mc-fuell .stoff-filter { display: none; }
    #view-eingang .mc-kopf-titel .view-sub, #view-material .mc-kopf-titel .view-sub { display: none; }
    #view-eingang .view-titel, #view-material .view-titel { display: none; }
    .mc-tab-host td[data-spalte="lieferant"] .text-dim { display: none; }
}
.mc-tab-host .ot-z .badge, .mc-tab-host .ot-z .bl-klein, .mc-tab-host .ot-z .stoff-hinweis, .mc-tab-host .ot-z .chip, .mc-tab-host .ot-z .text-dim { line-height: 1.25; }
.mc-tab-host .ot-z .bl-klein { display: block; font-size: .72rem; }

/* Platz im Seitenkopf für Knöpfe und (nur in niedrigen Fenstern) Auswahlfelder statt der Filterknöpfe */
.mc-kopf-extra { display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 12px; flex-wrap: wrap; justify-content: flex-end; }
.mc-kopf-extra:empty { display: none; }
.mc-extra-klein { display: none; }
.mc-extra-immer { display: inline-flex; }
.mc-extra-klein select, .mc-extra-klein input, .mc-extra-immer select, .mc-extra-immer input { height: 28px; font-size: .8rem; padding: 0 6px; max-width: 170px; }
@media (max-height: 520px) {
    .mc-extra-klein { display: inline-flex; }
    .card.mc-fuell .card-head.mc-kopf-chips { display: none; }
    .card.mc-fuell { padding-top: 0; }
    .card.mc-fuell .mc-tab-host:last-child { margin-bottom: 28px; }
    .mc-tab-host .ot-leiste { padding-block: 2px; }
}
@media (max-width: 1499px) { .mc-kopf-titel .view-sub { display: none; } }   /* der Einleitungssatz weicht in schmalen Fenstern dem Platz für Reiter und Knöpfe */
.card.mc-fuell { margin-bottom: 0; }
@media (max-height: 520px) { #material-reiter-inhalt > .card.mc-fuell, #eingang-inhalt > .card.mc-fuell { padding-top: 0; } }
@media (max-height: 760px) { #view-eingang .view-titel, #view-material .view-titel { display: none; } }   /* der Titel steht schon im Pfad des Kopfs */
.card-zahl { font-size: .78rem; font-weight: 400; color: var(--color-text-muted); margin-left: 6px; }
@media (max-height: 760px) { .card.mc-fuell .card-name { display: none; } }   /* der Reitername steht schon darüber */
@media (max-height: 520px) {
    .mc-kopf-extra { flex-wrap: nowrap; margin-right: 4px; gap: 4px; }
    .mc-extra-klein select, .mc-extra-immer select { max-width: 128px; }
    .mc-extra-immer input[type="search"] { width: 108px; }
    #view-material .mc-kopf-titel .tab-btn { padding-inline: 10px; }
}
/* Zielgrößen ≥ 24 px (WCAG 2.5.8): kleine Marken und Textknöpfe */
.mc-tab-host .ot-z .ungeprueft-hinweis, .mc-tab-host .ot-z .stempel-sonder, .mc-tab-host .ot-z .ki-geprueft-hinweis { display: inline-block; min-height: 24px; line-height: 24px; }
.mc-klapp-alle, .treffer-reset { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-height: 520px) {
    .mc-kopfzeile { margin-bottom: 2px; }
    .mc-kopfzeile .btn { min-height: 26px; padding-top: 1px; padding-bottom: 1px; }
    .mc-kopfzeile .view-titel { font-size: 1rem; }
    .ca-fab { width: 26px; height: 26px; bottom: 2px; }
    .mc-tab-host, .card.mc-fuell .mc-tab-host:last-child { margin-bottom: 24px; }
}
.mc-tab-host .ot-z a.osp-link { display: inline-block; min-height: 24px; line-height: 24px; vertical-align: middle; }   /* Trefferfläche ≥ 24 px */

/* 1.9.2 — Hinweis „Zurück zu den Kundenvorgängen“ steht als Chip in der Reiterzeile (keine eigene Zeile mehr) */
.tabelle-kopf-links .liste-nur-hinweis { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0 10px; min-height: 28px; border-radius: 14px; }
.tabelle-kopf-links .liste-nur-hinweis[style*="display: none"], .tabelle-kopf-links .liste-nur-hinweis[style*="display:none"] { display: none; }
/* Klickziele ≥ 24 px (WCAG 2.5.8) */
#app-header .okopf-app { display: inline-flex; align-items: center; min-height: 28px; }
.btn-link-klein, .ak-leise, .ak-kenntnis, .anhang-link, .portal-link, .schritt-verweis { display: inline-flex; align-items: center; min-height: 24px; }
details > summary { min-height: 24px; }
