:root {
    --gelb: #F7C600;
    --schwarz: #1A1A1A;
    --rot: #D4161C;
    --grund: #EEF0EC;
    --flaeche: #FFFFFF;

    --grau-flaeche: #E3E5DF;
    --grau-linie: #C9CCC3;
    --grau-kontur: #B5B8AF;
    --grau-pfosten: #8D9087;
    --text: #1A1A1A;
    --text-leise: #55584F;
    --text-platzhalter: #6B6E64;
    --text-auf-schwarz: #D9DBD3;

    --ok: #1D5B26;
    --ok-flaeche: #E2F1E0;
    --ok-text: #1D5B26;
    --achtung: #8A6500;
    --achtung-flaeche: #FFF3C4;
    --achtung-text: #5C4400;
    --gefahr: #D4161C;
    --gefahr-flaeche: #FBE4E4;
    --gefahr-text: #9B0F14;
    --info: #1F5FBF;
    --info-flaeche: #E1ECFA;
    --info-text: #174A99;

    --schrift-text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --schrift-schild: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;

    --t-klein: 0.8rem;
    --t-hilfe: 0.89rem;
    --t-text: 1rem;
    --t-betont: 1.17rem;
    --t-knopf: 1.12rem;
    --t-h3: 1.28rem;
    --t-h2: 1.56rem;
    --t-h1: 2.22rem;
    --t-zahl: 3.1rem;

    --a1: 4px;
    --a2: 8px;
    --a3: 12px;
    --a4: 16px;
    --a5: 24px;
    --a6: 32px;
    --a7: 48px;
    --a8: 64px;

    --radius: 6px;
    --radius-gross: 8px;
    --kontur: 2px solid var(--schwarz);
    --linie: 1px solid var(--grau-linie);

    --kopf-hoehe: 72px;
    --leiste-hoehe: 0px;
    --seitenrand: 32px;
    --inhalt-breite: 1600px;
    --spitze: 42px;
    --bewegung: 150ms ease-out;
    --pfeil-unten: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 18px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--kopf-hoehe) + var(--a4));
}

body {
    margin: 0;
    background: var(--grund);
    color: var(--text);
    font-family: var(--schrift-text);
    font-size: var(--t-text);
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

::selection { background: var(--gelb); color: var(--schwarz); }

a { color: var(--schwarz); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--rot); }

:focus { outline: none; }
:focus-visible {
    outline: 3px solid var(--schwarz);
    outline-offset: 3px;
    border-radius: var(--radius);
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
    font-family: var(--schrift-schild);
    font-weight: 800;
    line-height: 1.3;
    text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 700; }

button, input, select, textarea { font: inherit; color: inherit; }

img, svg { max-width: 100%; }

.icon {
    width: 1.35rem;
    height: 1.35rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-klein { width: 1.05rem; height: 1.05rem; }
.icon-gross { width: 1.8rem; height: 1.8rem; }

.nur-lesen {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.leise { color: var(--text-leise); }
.rechts { margin-left: auto; }
.klein { font-size: var(--t-hilfe); }

.sprungmarke {
    position: absolute;
    left: var(--a4);
    top: -200px;
    z-index: 100;
    background: var(--schwarz);
    color: var(--gelb);
    font-family: var(--schrift-schild);
    font-weight: 700;
    padding: var(--a3) var(--a4);
    border-radius: var(--radius);
}
.sprungmarke:focus { top: var(--a4); outline-color: var(--flaeche); }

.kopfzeile {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--kopf-hoehe);
    display: flex;
    align-items: center;
    gap: var(--a6);
    padding: 0 max(var(--seitenrand), calc((100% - var(--inhalt-breite)) / 2 + var(--seitenrand)));
    background: var(--gelb);
    border-bottom: 4px solid var(--schwarz);
}

.marke-kopf {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--schwarz);
    text-decoration: none;
    flex: none;
}
.praxisname {
    font-family: var(--schrift-schild);
    font-weight: 800;
    font-size: 1.56rem;
    letter-spacing: 0.01em;
    line-height: 1;
}

.blaze {
    display: block;
    flex: none;
    width: 34px;
    height: 26px;
    border-radius: 3px;
    border: 1.5px solid var(--schwarz);
    background: linear-gradient(var(--rot) 0 33%, var(--flaeche) 33% 67%, var(--rot) 67%);
}

.hauptnavigation ul { display: flex; gap: 6px; }

.navpunkt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: var(--radius);
    font-family: var(--schrift-schild);
    font-weight: 700;
    font-size: 1.17rem;
    color: var(--schwarz);
    text-decoration: none;
    line-height: 1.1;
    white-space: nowrap;
}
.navpunkt:hover { background: rgba(26, 26, 26, 0.12); }
.navpunkt[aria-current="page"] { background: var(--schwarz); color: var(--gelb); }
.navpunkt .icon { display: none; }
.navtext-kurz { display: none; }

.suche {
    position: relative;
    margin-left: auto;
    width: 360px;
    flex: 0 1 360px;
    min-width: 0;
}
.suche .eingabe {
    min-height: 46px;
    padding-right: 52px;
    font-size: 0.95rem;
}
.suche-knopf {
    position: absolute;
    right: 2px;
    top: 2px;
    bottom: 2px;
    width: 46px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--schwarz);
}
.suche-knopf:hover { background: var(--grau-flaeche); }

.kopf-abmelden { flex: none; }
.kopf-abmelden .knopf { min-height: 46px; padding: 0 var(--a3); border-color: var(--schwarz); background: transparent; }
.kopf-abmelden .knopf:hover { background: rgba(26, 26, 26, 0.12); }

.meldungen:empty { display: none; }
.meldungen {
    max-width: var(--inhalt-breite);
    width: 100%;
    margin: 0 auto;
    padding: var(--a4) var(--seitenrand) 0;
}
.meldung {
    display: flex;
    align-items: center;
    gap: var(--a4);
    padding: var(--a3) var(--a4);
    background: var(--flaeche);
    border: var(--kontur);
    border-radius: var(--radius-gross);
}
.meldung-symbol {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background: var(--ok);
    color: var(--flaeche);
}
.meldung-text { flex: 1; font-weight: 600; }
.rueckgaengig[hidden] { display: none; }

.patientenband {
    position: sticky;
    top: var(--kopf-hoehe);
    z-index: 30;
    background: var(--flaeche);
    border-bottom: var(--kontur);
}
.patientenband-statisch { position: static; border: var(--kontur); border-radius: var(--radius-gross); }
.patientenband-innen {
    max-width: var(--inhalt-breite);
    margin: 0 auto;
    padding: 0 var(--seitenrand);
}
.patientenband-kopf {
    display: flex;
    align-items: center;
    gap: var(--a4);
    padding: var(--a3) 0;
}

.person { display: flex; align-items: center; gap: var(--a4); min-width: 0; }
.initialen {
    display: grid;
    place-items: center;
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--schwarz);
    color: var(--gelb);
    font-family: var(--schrift-schild);
    font-weight: 800;
    font-size: 1.56rem;
    line-height: 1;
}
.person-name {
    font-family: var(--schrift-schild);
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
}
.person-meta { font-size: var(--t-hilfe); color: var(--text-leise); }
.patientenname { font-family: var(--schrift-schild); font-weight: 800; font-size: 1.9rem; line-height: 1.05; }
.patientenalter { font-size: var(--t-hilfe); color: var(--text-leise); }

.hinweise { position: relative; margin-left: auto; flex: none; }
.hinweise-titel {
    display: inline-flex;
    align-items: center;
    gap: var(--a2);
    min-height: 48px;
    padding: 0 var(--a4);
    background: var(--achtung-flaeche);
    color: var(--achtung-text);
    border: var(--kontur);
    border-radius: var(--radius);
    font-family: var(--schrift-schild);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
}
.hinweise-titel::-webkit-details-marker { display: none; }
.hinweise-titel::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
}
.hinweise[open] .hinweise-titel::after { transform: rotate(-135deg) translate(-2px, -2px); }
.hinweise-text {
    position: absolute;
    right: 0;
    top: calc(100% + var(--a2));
    z-index: 35;
    width: min(26rem, 80vw);
    padding: var(--a4);
    background: var(--achtung-flaeche);
    color: var(--achtung-text);
    border: var(--kontur);
    border-radius: var(--radius-gross);
}
.hinweise-text p + p { margin-top: var(--a2); }

.reiter ul {
    display: flex;
    gap: var(--a1);
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(var(--a2) * -1);
    padding: 0 var(--a2);
}
.reiter ul::-webkit-scrollbar { display: none; }
.reiter-punkt {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 var(--a4);
    border-bottom: 4px solid transparent;
    font-family: var(--schrift-schild);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-leise);
    text-decoration: none;
    white-space: nowrap;
}
.reiter-punkt:hover { color: var(--schwarz); border-bottom-color: var(--grau-kontur); }
.reiter-punkt[aria-current="page"] { color: var(--schwarz); border-bottom-color: var(--schwarz); }

.inhalt {
    flex: 1;
    width: 100%;
    max-width: var(--inhalt-breite);
    margin: 0 auto;
    padding: var(--a6) var(--seitenrand) var(--a7);
}
body.mit-patient .inhalt { padding-bottom: 140px; }

.fussleiste {
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: var(--a4);
    padding: var(--a4) var(--a4) var(--a5);
    color: var(--text-leise);
    font-size: var(--t-hilfe);
}

.mikrofon {
    position: fixed;
    right: var(--a5);
    bottom: var(--a5);
    z-index: 45;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--rot);
    border: 3px solid var(--schwarz);
    color: var(--flaeche);
    transition: transform var(--bewegung);
}
.mikrofon:hover { transform: scale(1.05); }
.mikrofon:active { transform: scale(0.97); }
.mikrofon:focus-visible { outline-offset: 4px; border-radius: 50%; }
.mikrofon .icon { width: 36px; height: 36px; stroke-width: 2.2; }
.mikrofon-gross { position: static; }
body.seite-chat_seite .mikrofon, body.seite-diktat_aufnahme .mikrofon { display: none; }

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--a2);
    min-height: 48px;
    padding: 0 22px;
    border: var(--kontur);
    border-radius: var(--radius);
    background: var(--flaeche);
    color: var(--schwarz);
    font-family: var(--schrift-schild);
    font-weight: 700;
    font-size: var(--t-knopf);
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--bewegung);
}
.knopf:active { transform: translateY(1px); }
.knopf-haupt { background: var(--schwarz); color: var(--gelb); }
.knopf-haupt:hover { background: #3A3A38; }
.knopf-zweit { background: var(--flaeche); color: var(--schwarz); }
.knopf-zweit:hover { background: var(--grund); }
.knopf-gefahr { background: var(--flaeche); color: var(--gefahr-text); border-color: var(--gefahr); }
.knopf-gefahr:hover { background: var(--gefahr-flaeche); }
.knopf-leise { background: transparent; border-color: transparent; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.knopf-leise:hover { background: rgba(26, 26, 26, 0.08); text-decoration-color: var(--rot); }
.knopf-klein { min-height: 48px; padding: 0 var(--a4); font-size: 1rem; }
.knopf-voll { width: 100%; }
.knopf[disabled], .knopf[aria-disabled="true"] {
    background: var(--grau-flaeche);
    color: var(--text-platzhalter);
    border: 2px dashed var(--grau-kontur);
    cursor: not-allowed;
    text-decoration: none;
}
.knopf[disabled]:active { transform: none; }

.eingabe {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: var(--a2) var(--a4);
    background: var(--flaeche);
    color: var(--text);
    border: var(--kontur);
    border-radius: var(--radius);
    font-size: var(--t-text);
    line-height: 1.35;
}
.eingabe::placeholder { color: var(--text-platzhalter); opacity: 1; }
.eingabe:focus-visible { outline-offset: 2px; }
.eingabe[disabled], .eingabe[readonly] { background: var(--grau-flaeche); color: var(--text-leise); border-style: dashed; }
.eingabe-mehrzeilig { min-height: 8rem; resize: vertical; }
.eingabe { caret-color: var(--rot); }
select.eingabe,
.feld-fehler select.eingabe,
select.eingabe[disabled] {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 48px;
    background-image: var(--pfeil-unten);
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px 20px;
    cursor: pointer;
}
input[type="search"].eingabe { -webkit-appearance: none; appearance: none; }
input[type="text"].eingabe, input[type="search"].eingabe, textarea.eingabe { caret-color: var(--rot); }
input[type="search"]::-webkit-search-cancel-button { display: none; }

.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld-label { font-weight: 600; font-size: var(--t-text); }
.feld-pflicht { font-weight: 400; color: var(--text-leise); font-size: var(--t-hilfe); }
.feld-hilfe { font-size: var(--t-hilfe); color: var(--text-leise); }
.feld-meldung {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: var(--t-hilfe);
    font-weight: 600;
    color: var(--gefahr-text);
}
.feld-meldung .icon { margin-top: 2px; }
.feld-fehler .eingabe { border-color: var(--gefahr); background: var(--gefahr-flaeche); }
.feld-fehler .feld-label { color: var(--gefahr-text); }

.eingabe-mit-einheit { display: flex; align-items: stretch; }
.eingabe-mit-einheit .eingabe { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.eingabe-einheit {
    display: flex;
    align-items: center;
    padding: 0 var(--a4);
    background: var(--grau-flaeche);
    border: var(--kontur);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--schrift-schild);
    font-weight: 700;
}

.feld-gruppe { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.feld-gruppe legend { padding: 0; font-weight: 600; margin-bottom: 6px; }
.wahl-liste { display: flex; flex-direction: column; gap: var(--a1); }
.wahl-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: var(--a2); }
.wahl-raster .wahl { min-width: 0; }
.wahl-raster .wahl-text { overflow-wrap: anywhere; }
.wahl {
    display: flex;
    align-items: center;
    gap: var(--a3);
    min-height: 48px;
    padding: 0 var(--a3);
    background: var(--flaeche);
    border: 2px solid var(--grau-kontur);
    border-radius: var(--radius);
    cursor: pointer;
}
.wahl:hover { border-color: var(--schwarz); }
.wahl:has(input:checked) { border-color: var(--schwarz); background: var(--achtung-flaeche); }
.wahl input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--schwarz); cursor: pointer; }
.wahl:has(input:focus-visible) { outline: 3px solid var(--schwarz); outline-offset: 2px; }
.wahl-text { font-weight: 500; }
.wahl-hilfe { display: block; font-size: var(--t-hilfe); color: var(--text-leise); font-weight: 400; }

.datei-feld {
    padding: var(--a3);
    background: var(--flaeche);
    border: 2px dashed var(--schwarz);
    border-radius: var(--radius);
    width: 100%;
}
.datei-feld::file-selector-button {
    min-height: 44px;
    margin-right: var(--a4);
    padding: 0 var(--a4);
    background: var(--flaeche);
    color: var(--schwarz);
    border: var(--kontur);
    border-radius: var(--radius);
    font-family: var(--schrift-schild);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}
.datei-feld::file-selector-button:hover { background: var(--grund); }
.feld-fehler .datei-feld { border-color: var(--gefahr); }

.formular-raster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--a5) var(--a5);
    align-items: start;
}
.feld-breit, .formular-raster > .feld-gruppe.feld-breit { grid-column: 1 / -1; }
.formular-stapel { display: flex; flex-direction: column; gap: var(--a5); }
.formular-aktionen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--a3);
    margin-top: var(--a5);
    padding-top: var(--a5);
    border-top: var(--linie);
}
.formular-aktionen .rechts { margin-left: auto; }
.formular-aktionen-fest {
    position: sticky;
    bottom: var(--leiste-hoehe);
    z-index: 20;
    margin-top: 0;
    padding: var(--a3) 0;
    background: var(--grund);
    border-top: var(--kontur);
}
.formularfehler {
    display: flex;
    gap: var(--a2);
    margin-bottom: var(--a4);
    padding: var(--a3) var(--a4);
    background: var(--gefahr-flaeche);
    color: var(--gefahr-text);
    border: 2px solid var(--gefahr);
    border-radius: var(--radius);
    font-weight: 600;
}

.seitenkopf { margin-bottom: var(--a5); }
.seitentitel { font-size: var(--t-h1); line-height: 1.3; }
.seitenuntertitel { margin-top: var(--a1); color: var(--text-leise); }

.tafel, .karte {
    background: var(--flaeche);
    border: var(--kontur);
    border-radius: var(--radius-gross);
    padding: var(--a5);
}
.karte + .karte, .tafel + .tafel { margin-top: var(--a5); }
.tafel-offen { padding: 0; }
.tafel-kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--a3);
    padding: var(--a4) var(--a5);
    border-bottom: var(--kontur);
}
.tafel-kopf h2, .tafel-kopf h3 { margin-right: auto; }
.tafel-innen { padding: var(--a5); }
.tafel-innen > * + *, .tafel-abschnitt > :not(.tafel-label) + * { margin-top: var(--a3); }
.tafel-abschnitt { padding: var(--a4) var(--a5); border-top: var(--linie); }
.tafel-abschnitt:first-child, .tafel-kopf + .tafel-abschnitt { border-top: 0; }
.tafel-reihe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: var(--linie);
}
.tafel-reihe > * + * { border-left: var(--linie); }
.tafel-reihe > .tafel-abschnitt { border-top: 0; }
.tafel-label {
    margin-bottom: 6px;
    font-family: var(--schrift-text);
    font-size: var(--t-klein);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-leise);
    line-height: 1.3;
}
.tafel-abschnitt p + p { margin-top: var(--a2); }
.stapel > * + * { margin-top: var(--a4); }
.stapel-gross > * + * { margin-top: var(--a5); }
.reihe { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a3); }

.werkzeugleiste {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--a3);
    margin-bottom: var(--a5);
}
.werkzeugleiste-rechts { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--a3); }

.tabelle { width: 100%; border-collapse: collapse; background: var(--flaeche); border: var(--kontur); border-radius: var(--radius-gross); }
.tabelle th {
    padding: var(--a3) var(--a4);
    text-align: left;
    font-size: var(--t-klein);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-leise);
    background: var(--grund);
    border-bottom: var(--kontur);
}
.tabelle td { padding: var(--a3) var(--a4); border-top: var(--linie); vertical-align: middle; }
.tabelle tbody tr:first-child td { border-top: 0; }
.tabelle tbody tr:hover td { background: #F7F8F5; }
.tabelle .zahl-spalte { text-align: right; font-family: var(--schrift-schild); font-weight: 700; white-space: nowrap; }
.tabelle .aktion-spalte { text-align: right; white-space: nowrap; width: 1%; }
.tabelle-name { font-family: var(--schrift-schild); font-weight: 700; font-size: var(--t-betont); }

.zeilen { border: var(--kontur); border-radius: var(--radius-gross); background: var(--flaeche); }
.zeile {
    display: grid;
    grid-template-columns: 5.2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--a4);
    min-height: 64px;
    padding: var(--a3) var(--a4);
    color: inherit;
    text-decoration: none;
}
.zeilen > li + li, .zeilen > .zeile + .zeile { border-top: var(--linie); }
a.zeile:hover { background: #F7F8F5; }
.zeile-zeit { font-family: var(--schrift-schild); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.zeile-titel { display: block; font-family: var(--schrift-schild); font-weight: 700; font-size: var(--t-betont); line-height: 1.15; }
.zeile-meta { display: block; font-size: var(--t-hilfe); color: var(--text-leise); }
.zeile-aktion { display: flex; align-items: center; gap: var(--a2); }
.zeile-ohne-zeit { grid-template-columns: minmax(0, 1fr) auto; }
.zeile-offen { border: 2px solid var(--gefahr); border-radius: var(--radius); background: var(--flaeche); }
.zeile-offen + .zeile-offen { margin-top: var(--a2); border-top: 2px solid var(--gefahr); }

.pfosten { position: relative; padding-left: 26px; }
.pfosten::before {
    content: "";
    position: absolute;
    left: 6px;
    top: -6px;
    bottom: -30px;
    width: 12px;
    background: var(--grau-pfosten);
    border-radius: 3px;
}
.pfosten > .schild { margin-bottom: var(--a3); }

.schild {
    --schildflaeche: var(--flaeche);
    --zeit-breite: 104px;
    position: relative;
    display: grid;
    grid-template-columns: var(--zeit-breite) minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--a2);
    min-height: 84px;
    margin-right: var(--spitze);
    padding: var(--a2) var(--a2) var(--a2) 18px;
    background: var(--schildflaeche);
    color: var(--schwarz);
    border: var(--kontur);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    text-decoration: none;
    transition: transform var(--bewegung);
}
.schild::after, .schild::before {
    content: "";
    position: absolute;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.schild::after {
    right: calc(var(--spitze) * -1);
    top: -2px;
    bottom: -2px;
    width: var(--spitze);
    background: var(--schwarz);
}
.schild::before {
    right: calc(var(--spitze) * -1 + 4px);
    top: 1px;
    bottom: 1px;
    width: calc(var(--spitze) - 3px);
    background: var(--schildflaeche);
    z-index: 1;
}
a.schild:hover { transform: translateX(4px); }
.schild-zeit { font-family: var(--schrift-schild); font-weight: 800; font-size: 2.1rem; line-height: 1; }
.schild-text { display: block; min-width: 0; }
.schild-name { display: block; font-family: var(--schrift-schild); font-weight: 700; font-size: 1.4rem; line-height: 1.15; overflow-wrap: anywhere; }
.schild-status { display: block; margin-top: 2px; text-wrap: balance; font-size: var(--t-hilfe); line-height: 1.3; color: var(--text-leise); }
.schild-bis {
    position: relative;
    z-index: 2;
    padding-right: 6px;
    font-family: var(--schrift-schild);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
    white-space: nowrap;
}
.schild-ziel { --schildflaeche: var(--gelb); min-height: 104px; }
.schild-ziel .schild-zeit { font-size: 2.7rem; }
.schild-ziel .schild-name { font-size: 1.7rem; }
.schild-ziel .schild-status { color: var(--schwarz); }
.schild-war {
    --schildflaeche: var(--grau-flaeche);
    color: var(--text-leise);
    border: 2px dashed var(--schwarz);
    border-radius: var(--radius);
}
.schild-war::before, .schild-war::after { display: none; }
.schild-gewaehlt { --schildflaeche: var(--schwarz); color: var(--flaeche); }
.schild-gewaehlt .schild-zeit { color: var(--gelb); }
.schild-gewaehlt .schild-status { color: var(--text-auf-schwarz); }
.schild-gewaehlt.schild-war { border-style: solid; }
.schild-gewaehlt.schild-ziel { --schildflaeche: var(--gelb); color: var(--schwarz); }
.schild-gewaehlt.schild-ziel .schild-zeit { color: var(--schwarz); }
.schild-gewaehlt.schild-ziel .schild-status { color: var(--schwarz); }

.punkt {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border-radius: 50%;
    vertical-align: -1px;
    border: 2.5px solid var(--schwarz);
}
.punkt-rot { background: var(--rot); border-color: var(--rot); }
.punkt-blau { background: var(--info); border-color: var(--info); }
.punkt-hohl { background: transparent; }
.schild-gewaehlt .punkt-hohl { border-color: var(--flaeche); }

.marken { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a2); }
.einheit {
    display: block;
    width: 44px;
    height: 30px;
    border-radius: 3px;
    border: 1.5px solid var(--schwarz);
    background: linear-gradient(var(--rot) 0 33%, var(--flaeche) 33% 67%, var(--rot) 67%);
}
.einheit-dran { background: var(--flaeche); border: 2.5px dashed var(--rot); }
.einheit-offen { background: var(--grund); border: 1.5px solid var(--grau-kontur); }
.marken-text { font-family: var(--schrift-schild); font-weight: 700; font-size: 1.1rem; margin-left: var(--a2); }
.marken-block { display: flex; flex-direction: column; gap: var(--a3); }

.zahl {
    font-family: var(--schrift-schild);
    font-weight: 800;
    font-size: var(--t-zahl);
    line-height: 1;
}
.zahl-einheit { margin-left: 6px; font-size: 1.22rem; font-weight: 600; color: var(--text-leise); }
.zahl-leer { color: var(--text-platzhalter); }

.marke {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 2px 10px;
    border-radius: 14px;
    border: 2px solid var(--grau-kontur);
    background: var(--flaeche);
    color: var(--text);
    font-family: var(--schrift-schild);
    font-weight: 700;
    font-size: var(--t-klein);
    line-height: 1.2;
    white-space: nowrap;
}
.marke .icon { width: 0.95rem; height: 0.95rem; stroke-width: 2.6; }
.marke-neutral { background: var(--grund); }
.marke-ok { background: var(--ok); border-color: var(--ok); color: var(--flaeche); }
.marke-warnung { background: var(--achtung-flaeche); border: 2px solid var(--schwarz); color: var(--achtung-text); }
.marke-fehler { background: var(--gefahr-flaeche); border: 2px dashed var(--gefahr); color: var(--gefahr-text); }
.marke-info { background: var(--info-flaeche); border: 1px solid var(--info); color: var(--info-text); }

.ki-marke {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    background: var(--schwarz);
    color: var(--gelb);
    font-family: var(--schrift-schild);
    font-weight: 800;
    font-size: var(--t-klein);
    letter-spacing: 0.06em;
    line-height: 1;
}
.ki-hinweis {
    display: flex;
    align-items: flex-start;
    gap: var(--a3);
    padding: var(--a3) var(--a4);
    background: var(--flaeche);
    border: 2px dashed var(--schwarz);
    border-radius: var(--radius);
    font-size: var(--t-hilfe);
    line-height: 1.4;
}
.ki-hinweis .ki-marke { margin-top: 1px; }
.ki-hinweis-text { font-weight: 500; }

.hinweis {
    display: flex;
    gap: var(--a3);
    padding: var(--a3) var(--a4);
    border-radius: var(--radius);
    border: 2px solid var(--info);
    background: var(--info-flaeche);
    color: var(--info-text);
}
.hinweis + .hinweis { margin-top: var(--a3); }
.hinweis .icon { margin-top: 2px; }
.hinweis-inhalt { min-width: 0; }
.hinweis-titel { font-family: var(--schrift-schild); font-weight: 800; font-size: var(--t-betont); line-height: 1.2; }
.hinweis-text { color: inherit; }
.hinweis-warnung { border-color: var(--schwarz); background: var(--achtung-flaeche); color: var(--achtung-text); }
.hinweis-fehler { border-color: var(--gefahr); background: var(--gefahr-flaeche); color: var(--gefahr-text); }
.hinweis-ok { border-color: var(--ok); background: var(--ok-flaeche); color: var(--ok-text); }
.hinweis-text a { color: inherit; }

.leerzustand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--a3);
    padding: var(--a6);
    background: var(--flaeche);
    border: 2px dashed var(--schwarz);
    border-radius: var(--radius-gross);
}
.leerzustand-titel { font-family: var(--schrift-schild); font-weight: 800; font-size: var(--t-h2); line-height: 1.1; }
.leerzustand-text { color: var(--text-leise); max-width: 40ch; }
.leerzustand-aktionen { display: flex; flex-wrap: wrap; gap: var(--a3); margin-top: var(--a2); }

.bestaetigung { display: inline-block; max-width: 100%; }
.bestaetigung > summary { list-style: none; }
.bestaetigung > summary::-webkit-details-marker { display: none; }
.bestaetigung .auf-text { display: none; }
.bestaetigung[open] .auf-text { display: inline; }
.bestaetigung[open] .zu-text { display: none; }
.bestaetigung-formular {
    margin-top: var(--a3);
    padding: var(--a4);
    width: min(34rem, 100%);
    background: var(--gefahr-flaeche);
    color: var(--gefahr-text);
    border: 2px solid var(--gefahr);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: var(--a3);
}
.bestaetigung-frage { font-weight: 600; }
.bestaetigung-formular .eingabe { border-color: var(--gefahr); }

.mehr-laden {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--a2);
    min-height: 48px;
    margin-top: var(--a4);
    border: 2px dashed var(--schwarz);
    border-radius: var(--radius);
    font-family: var(--schrift-schild);
    font-weight: 700;
    font-size: var(--t-knopf);
    text-decoration: none;
}
.mehr-laden:hover { background: var(--flaeche); }

.spark { display: inline-block; vertical-align: middle; line-height: 1; font-family: var(--schrift-schild); font-weight: 700; font-size: var(--t-klein); color: var(--text-leise); }
.spark[data-groesse="24"] { min-width: 24px; min-height: 24px; }
.spark[data-groesse="32"] { min-width: 32px; min-height: 32px; }
.spark[data-groesse="48"] { min-width: 48px; min-height: 48px; }
.spark[data-groesse="64"] { min-width: 64px; min-height: 64px; }
.spark[data-groesse="96"] { min-width: 96px; min-height: 96px; }

.datenliste { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); }
.datenliste dt, .datenliste dd { padding: var(--a3) 0; border-top: var(--linie); }
.datenliste dt:first-of-type, .datenliste dt:first-of-type + dd { border-top: 0; }
.datenliste dt {
    font-size: var(--t-klein);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-leise);
    padding-top: 15px;
}
.datenliste dd { overflow-wrap: anywhere; }
.datenliste dd p + p { margin-top: var(--a2); }

.verlauf { display: flex; flex-direction: column; }
.verlauf-eintrag {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    grid-template-areas: "datum text" "datum pruefung";
    column-gap: var(--a5);
    row-gap: var(--a2);
    padding: var(--a4) 0;
    border-top: var(--linie);
}
.verlauf-eintrag:first-child { border-top: 0; }
.verlauf-datum { grid-area: datum; font-family: var(--schrift-schild); font-weight: 800; font-size: 1.28rem; line-height: 1.1; }
.verlauf-tag { display: block; font-family: var(--schrift-text); font-weight: 500; font-size: var(--t-hilfe); color: var(--text-leise); }
.verlauf-text { grid-area: text; min-width: 0; }
.verlauf-text p + p { margin-top: var(--a2); }
.verlauf-kopf { display: flex; flex-wrap: wrap; gap: var(--a2); margin-bottom: 6px; }
.verlauf-pruefung { grid-area: pruefung; display: flex; align-items: center; gap: 6px; font-size: var(--t-hilfe); color: var(--text-leise); }
.verlauf-pruefung .icon { color: var(--ok); }
.verlauf-pruefung-offen { color: var(--achtung-text); }
.verlauf-pruefung-offen .icon { color: var(--achtung-text); }

.chat {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--kopf-hoehe) - 260px);
}
.chat-kopf { margin-bottom: var(--a4); }
.chat-verlauf { flex: 1; display: flex; flex-direction: column; gap: var(--a5); padding-bottom: var(--a5); }
.chat-nutzer {
    align-self: flex-end;
    max-width: min(80%, 40rem);
    padding: var(--a3) var(--a4);
    background: var(--flaeche);
    border: var(--kontur);
    border-radius: var(--radius-gross) var(--radius-gross) 2px var(--radius-gross);
}
.chat-nutzer p + p { margin-top: var(--a2); }
.chat-spark { width: 100%; }
.chat-spark-kopf { display: flex; align-items: center; gap: var(--a2); margin-bottom: var(--a2); font-family: var(--schrift-schild); font-weight: 700; }
.chat-spark-text { max-width: 44rem; }
.chat-spark-text p + p, .chat-spark-text ol, .chat-spark-text ul { margin-top: var(--a2); }
.chat-spark-text ol { list-style: decimal; padding-left: 1.4rem; }
.chat-spark-text ul { list-style: disc; padding-left: 1.4rem; }
.chat-eingabe {
    position: sticky;
    bottom: var(--leiste-hoehe);
    z-index: 20;
    display: flex;
    align-items: flex-end;
    gap: var(--a3);
    padding: var(--a3) 0;
    background: var(--grund);
    border-top: var(--kontur);
}
.chat-eingabe .eingabe { min-height: 52px; max-height: 10rem; resize: none; }

.anmeldung-huelle { display: flex; justify-content: center; padding-top: var(--a6); }
.anmeldung { width: min(30rem, 100%); }
.anmeldung .seitentitel { margin-bottom: var(--a5); }
.schild-titel {
    --schildflaeche: var(--gelb);
    position: relative;
    display: inline-block;
    max-width: calc(100% - var(--spitze));
    margin: 0 var(--spitze) var(--a5) 0;
    padding: var(--a3) var(--a4) var(--a3) var(--a5);
    background: var(--gelb);
    border: var(--kontur);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
}
.schild-titel::after, .schild-titel::before {
    content: "";
    position: absolute;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.schild-titel::after { right: calc(var(--spitze) * -1); top: -2px; bottom: -2px; width: var(--spitze); background: var(--schwarz); }
.schild-titel::before { right: calc(var(--spitze) * -1 + 4px); top: 1px; bottom: 1px; width: calc(var(--spitze) - 3px); background: var(--gelb); z-index: 1; }
.schild-titel h1 { font-size: 2rem; }
.anmeldung .formular-stapel { gap: var(--a4); }

.fehlerseite { max-width: 40rem; display: flex; flex-direction: column; align-items: flex-start; gap: var(--a4); }
.fehlerseite .schild-titel { margin-bottom: var(--a2); }
.fehler-nummer { font-family: var(--schrift-schild); font-weight: 800; font-size: 2.7rem; line-height: 1; margin-right: var(--a4); }
.schild-titel-reihe { display: inline-flex; align-items: center; }
.fehlertext { max-width: 36rem; font-size: var(--t-betont); line-height: 1.5; }

.heute-baum {
    display: grid;
    grid-template-columns: 26px minmax(0, 534px) minmax(0, 1fr);
    align-items: start;
}
.heute-kopf { margin-bottom: var(--a4); }
.heute-baum > .heute-kopf { grid-column: 1 / 3; grid-row: 1; max-width: 560px; }
.heute-kopf .seitenuntertitel { margin-top: 4px; font-size: 1rem; }
.heute-kopf h1 { font-size: 2.22rem; }
.heute-zusammenfassung a { color: inherit; }
.heute-hinweis { margin-top: var(--a4); }
.heute-baum::before {
    content: "";
    grid-column: 1;
    grid-row: 2 / span 1000;
    align-self: stretch;
    width: 12px;
    margin: -6px 0 -6px 6px;
    background: var(--grau-pfosten);
    border-radius: 3px;
}
.heute-baum > .schild { grid-column: 2; margin-bottom: var(--a3); scroll-margin-top: calc(var(--kopf-hoehe) + var(--a4)); }
.heute-akte { grid-column: 3; grid-row: 1 / span 1000; align-self: start; margin-left: 28px; scroll-margin-top: calc(var(--kopf-hoehe) + var(--a4)); }
.heute-offen { max-width: 560px; margin-top: var(--a7); }
.heute-offen h2 { margin-bottom: var(--a3); font-size: var(--t-h3); }
.heute-leer { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; column-gap: 28px; }
.heute-leer .heute-kopf { grid-column: 1 / -1; }
.heute-leerzustand { grid-column: 1; grid-row: 2; }
.heute-leer .heute-offen { grid-column: 2; grid-row: 2; max-width: none; margin-top: 0; }

.kurzakte { display: flex; flex-direction: column; padding: 0; }
.kurzakte-kopf { display: flex; align-items: center; gap: var(--a4); padding: var(--a5); border-bottom: var(--kontur); }
.kurzakte-kopf .hinweise { margin-left: auto; }
.kurzakte-kopf .person { flex: 1; }
.kurzakte-kopf .initialen { width: 72px; height: 72px; font-size: 1.56rem; }
.kurzakte-kopf .person-name { font-size: 2rem; }
.kurzakte-zeile { padding: var(--a4) var(--a5); }
.kurzakte-aktionen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--a3);
    order: 9;
    margin-top: auto;
    padding: var(--a5);
}
.kurzakte-aktionen .mikrofon-gross { margin-left: auto; position: static; }
.kurzakte .tafel-abschnitt { padding: var(--a4) var(--a5); }
.kurzakte .tafel-reihe .tafel-abschnitt { padding: var(--a4) var(--a5); }
.kurzakte-bezeichnung { font-weight: 500; margin-bottom: var(--a2); }
.kurzakte-text { overflow-wrap: anywhere; }

@media (max-width: 1180px) {
    .praxisname { font-size: 1.3rem; }
    .navpunkt { padding: 0 12px; font-size: 1.05rem; }
    .kopfzeile { gap: var(--a4); }
    .suche { flex-basis: 220px; width: 220px; }
}

@media (max-width: 1000px) {
    .heute-baum { grid-template-columns: 22px minmax(0, 1fr); }
    .heute-baum > .heute-kopf { grid-column: 1 / -1; max-width: none; }
    .heute-baum > .schild { grid-column: 2; }
    .heute-akte { grid-column: 2; grid-row: auto; margin: 0 0 var(--a4); }
    .kurzakte-aktionen { order: -1; margin-top: 0; border-bottom: var(--kontur); }
    .heute-offen { max-width: none; margin-top: var(--a6); }
    .heute-leer { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .heute-leerzustand, .heute-leer .heute-offen { grid-column: 1; grid-row: auto; }
    .heute-leer .heute-offen { margin-top: var(--a6); }
    .praxisname { display: none; }
}

@media (max-width: 720px) {
    :root {
        --kopf-hoehe: 64px;
        --leiste-hoehe: calc(68px + env(safe-area-inset-bottom, 0px));
        --seitenrand: 16px;
        --spitze: 30px;
        --t-h1: 1.78rem;
        --t-h2: 1.4rem;
        --t-zahl: 2.7rem;
    }

    body { padding-bottom: var(--leiste-hoehe); }

    .kopfzeile { position: static; gap: var(--a3); padding: 0 var(--a4); border-bottom-width: 3px; }
    .praxisname { display: block; font-size: 1rem; }
    .marke-kopf { gap: 10px; }
    .blaze { width: 28px; height: 22px; }
    .suche { flex: 1 1 auto; width: auto; margin-left: 0; }
    .suche .eingabe { min-height: 48px; padding-left: var(--a3); padding-right: 48px; }
    .suche-knopf { width: 48px; }
    .kopf-abmelden { display: none; }

    .hauptnavigation {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--flaeche);
        border-top: 4px solid var(--schwarz);
    }
    .hauptnavigation ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 2px; }
    .navpunkt {
        flex-direction: column;
        gap: 2px;
        min-height: 60px;
        padding: 4px 0;
        font-size: 0.78rem;
        line-height: 1.3;
        text-align: center;
    }
    .navpunkt:has(.navtext-kurz) .navtext-lang { display: none; }
    .navpunkt:has(.navtext-kurz) .navtext-kurz { display: inline; }
    .hauptnavigation ul { padding: 2px 0; }
    .navpunkt .icon { display: block; width: 1.5rem; height: 1.5rem; }

    .marken { display: grid; grid-template-columns: repeat(var(--je, 6), minmax(0, 56px)); }
    .marken .einheit { width: auto; }
    .marken-je-1 { --je: 1; }
    .marken-je-2 { --je: 2; }
    .marken-je-3 { --je: 3; }
    .marken-je-4 { --je: 4; }
    .marken-je-5 { --je: 5; }
    .marken-text { grid-column: 1 / -1; margin-left: 0; }

    .fussleiste { display: flex; }
    .inhalt { padding-top: var(--a5); padding-bottom: var(--a5); }
    body.mit-patient .inhalt { padding-bottom: 170px; }

    .meldungen { padding-top: var(--a3); }

    .patientenband { position: static; }
    .patientenband-kopf { flex-wrap: wrap; padding: var(--a3) 0; }
    .initialen { width: 52px; height: 52px; font-size: 1.28rem; }
    .person-name, .patientenname { font-size: 1.5rem; }
    .hinweise { margin-left: 0; width: 100%; }
    .hinweise-titel { width: 100%; justify-content: space-between; }
    .hinweise-text { position: static; width: 100%; margin-top: var(--a2); }
    .reiter ul { margin: 0 calc(var(--a4) * -1); padding: 0 var(--a4); }

    .mikrofon { right: var(--a4); bottom: calc(var(--leiste-hoehe) + var(--a4)); }

    .tafel, .karte { padding: var(--a4); }
    .tafel-kopf { padding: var(--a3) var(--a4); }
    .tafel-innen { padding: var(--a4); }
    .tafel-abschnitt { padding: var(--a3) var(--a4); }
    .tafel-reihe { grid-template-columns: 1fr; }
    .tafel-reihe > * + * { border-left: 0; border-top: var(--linie); }

    .formular-raster { grid-template-columns: 1fr; gap: var(--a4); }
    .formular-aktionen { flex-direction: column-reverse; align-items: stretch; }
    .formular-aktionen .knopf { width: 100%; }
    .formular-aktionen .rechts { margin-left: 0; }
    .werkzeugleiste-rechts { margin-left: 0; width: 100%; }
    .werkzeugleiste .knopf { flex: 1 1 auto; }

    .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
    .tabelle { border: 0; background: transparent; }
    .tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .tabelle tbody tr {
        margin-bottom: var(--a3);
        background: var(--flaeche);
        border: var(--kontur);
        border-radius: var(--radius-gross);
        padding: var(--a2) var(--a4);
    }
    .tabelle td {
        display: grid;
        grid-template-columns: 7rem minmax(0, 1fr);
        gap: var(--a3);
        padding: var(--a2) 0;
        border-top: var(--linie);
        text-align: left;
    }
    .tabelle tbody tr:first-child td { border-top: var(--linie); }
    .tabelle tbody tr td:first-child { border-top: 0; }
    .tabelle td::before {
        content: attr(data-label);
        font-size: var(--t-klein);
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-leise);
        padding-top: 4px;
    }
    .tabelle td:not([data-label]) { grid-template-columns: 1fr; }
    .tabelle td:not([data-label])::before { display: none; }
    .tabelle .zahl-spalte, .tabelle .aktion-spalte { text-align: left; width: 100%; white-space: normal; }
    .tabelle tbody tr:hover td { background: transparent; }
    .tabelle td .marke { white-space: normal; max-width: 100%; min-width: 0; justify-self: start; border-radius: 14px; }

    .zeile { grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: var(--a3); padding: var(--a3); }
    .zeile-zeit { font-size: 1.28rem; }
    .zeile-ohne-zeit { grid-template-columns: minmax(0, 1fr) auto; }

    .schild { --zeit-breite: 76px; min-height: 76px; padding-left: var(--a3); column-gap: var(--a1); }
    .schild-zeit { font-size: 1.7rem; }
    .schild-name { font-size: 1.28rem; }
    .schild-ziel { min-height: 92px; }
    .schild-ziel .schild-zeit { font-size: 2rem; }
    .schild-ziel .schild-name { font-size: 1.4rem; }
    .schild-bis { font-size: 1rem; padding-right: 2px; }
    .pfosten { padding-left: 22px; }
    .pfosten::before { left: 4px; width: 10px; }
    .heute-baum::before { width: 10px; margin-left: 4px; }

    .datenliste { grid-template-columns: 1fr; }
    .datenliste dt { padding-bottom: 0; border-top: var(--linie); }
    .datenliste dd { padding-top: 2px; border-top: 0; }
    .datenliste dt:first-of-type { border-top: 0; }
    .verlauf-eintrag { grid-template-columns: 1fr; grid-template-areas: "datum" "text" "pruefung"; row-gap: 6px; }
    .verlauf-datum { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--a2); }

    .leerzustand { padding: var(--a5) var(--a4); }
    .leerzustand-aktionen .knopf { width: 100%; }

    .heute-kopf { margin-bottom: var(--a4); }
    .heute-kopf h1 { font-size: 1.78rem; }
    .kurzakte-kopf { flex-wrap: wrap; padding: var(--a4); }
    .kurzakte-kopf .initialen { width: 56px; height: 56px; font-size: 1.28rem; }
    .kurzakte-kopf .person-name { font-size: 1.6rem; }
    .kurzakte-kopf .person { flex: 1 1 14rem; }
    .kurzakte-zeile, .kurzakte .tafel-abschnitt, .kurzakte .tafel-reihe .tafel-abschnitt { padding: var(--a3) var(--a4); }
    .kurzakte-aktionen { padding: var(--a3) var(--a4); }
    .kurzakte-aktionen .knopf { flex: 1 1 100%; }
    .kurzakte-aktionen .mikrofon-gross {
        position: fixed;
        right: var(--a4);
        bottom: calc(var(--leiste-hoehe) + var(--a4));
        margin: 0;
    }
    .heute { padding-bottom: 96px; }
    .heute-baum > .schild { scroll-margin-top: var(--a3); }
    html { scroll-padding-top: var(--a3); }

    .anmeldung-huelle { padding-top: 0; }
    .schild-titel h1 { font-size: 1.6rem; }
    .fehler-nummer { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    a.schild:hover, .mikrofon:hover { transform: none; }
}

.doku-inhalt { display: flex; flex-direction: column; gap: var(--a6); }
.doku-inhalt h2 { margin-bottom: var(--a4); }
.doku-verzeichnis { display: flex; flex-wrap: wrap; gap: var(--a2); }
.beispiel { padding: var(--a4) 0; border-top: var(--linie); }
.beispiel:first-of-type { border-top: 0; padding-top: 0; }
.beispiel-name { font-family: var(--schrift-schild); font-weight: 800; font-size: var(--t-betont); }
.beispiel-code {
    margin: 2px 0 var(--a3);
    font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
    font-size: var(--t-klein);
    color: var(--text-leise);
    overflow-wrap: anywhere;
}
.beispiel-bild { max-width: 44rem; }
.beispiel-breit { max-width: none; }
.farbfelder { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--a3); }
.farbfeld { display: flex; flex-direction: column; justify-content: flex-end; min-height: 5.5rem; padding: var(--a2) var(--a3); border: var(--kontur); border-radius: var(--radius); font-size: var(--t-klein); font-weight: 600; line-height: 1.25; }
.farbfeld-gelb { background: var(--gelb); }
.farbfeld-schwarz { background: var(--schwarz); color: var(--gelb); }
.farbfeld-rot { background: var(--rot); color: var(--flaeche); }
.farbfeld-grund { background: var(--grund); }
.farbfeld-flaeche { background: var(--flaeche); }
.farbfeld-ok { background: var(--ok-flaeche); color: var(--ok-text); }
.farbfeld-achtung { background: var(--achtung-flaeche); color: var(--achtung-text); }
.farbfeld-gefahr { background: var(--gefahr-flaeche); color: var(--gefahr-text); }
.farbfeld-info { background: var(--info-flaeche); color: var(--info-text); }
.symbole { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: var(--a2); }
.symbol-eintrag { display: flex; align-items: center; gap: var(--a2); font-size: var(--t-hilfe); }
.chat-beispiel { border: var(--kontur); border-radius: var(--radius-gross); background: var(--grund); padding: var(--a4); }
.chat-beispiel .chat { min-height: 0; }
.chat-beispiel .chat-eingabe { position: static; padding-right: 0; }
.abstand-oben { margin-top: var(--a4); }

.inhalt .reiter { margin-bottom: var(--a4); }
.hinweis ~ .formular-stapel { margin-top: var(--a4); }
