:root {
    --farbe-hintergrund: #f3f5f8;
    --farbe-flaeche: #ffffff;
    --farbe-text: #17324d;
    --farbe-text-weich: #5d7085;
    --farbe-akzent: #0e7490;
    --farbe-akzent-dunkel: #155e75;
    --farbe-linie: #d6dee8;
    --farbe-tabellenkopf: #e2e8f0;
    --farbe-warnung: #b45309;
    --schatten-klein: 0 4px 14px rgba(23, 50, 77, 0.06);
    --radius: 8px;
    --max-breite: 1880px;
    --sidebar-breite: 232px;
}

.detailkopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.75rem;
    flex-wrap: nowrap;
}

.detailkopf > .detail-abschnitt__titel {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
}

.detailkopf__aktionen {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.detailkopf__aktionen--gestapelt {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    white-space: normal;
}

.detailkopf__hinweis {
    margin: 0;
    max-width: 24rem;
    text-align: right;
}

@media (max-width: 700px) {
    .detailkopf {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .detailkopf__aktionen {
        margin-left: 0;
        justify-content: flex-start;
        white-space: normal;
    }

    .detailkopf__aktionen--gestapelt {
        align-items: flex-start;
    }

    .detailkopf__hinweis {
        max-width: none;
        text-align: left;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--farbe-hintergrund);
    color: var(--farbe-text);
    font-size: 0.94rem;
    line-height: 1.45;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

a {
    color: #82006a;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 0.18em;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
    color: #650052;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
}

a:focus-visible {
    outline: 2px solid rgba(130, 0, 106, 0.35);
    outline-offset: 3px;
}

.seitenleiste {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-breite);
    border-right: 1px solid var(--farbe-linie);
    background: #102f47;
    color: #fff;
}

.seitenleiste__kopf {
    padding: 0.9rem 0.8rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.seitenleiste__titel {
    margin-bottom: 0.45rem;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
}

.seitenleiste__fuss {
    margin-top: auto;
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    padding: 0.7rem 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    text-align: center;
}

.seitenleiste__version {
    display: grid;
    gap: 0.18rem;
    justify-items: center;
}

.seitenleiste__copyright {
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.72rem;
}

.benutzer-menue {
    position: relative;
    margin-bottom: 0.65rem;
}

.benutzer-menue summary {
    list-style: none;
}

.benutzer-menue summary::-webkit-details-marker {
    display: none;
}

.benutzer-menue__schalter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.benutzer-menue__schalter:hover .benutzer-menue__avatar,
.benutzer-menue[open] .benutzer-menue__avatar {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.2);
}

.benutzer-menue__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 2.8rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.benutzer-menue__avatar--klein {
    width: 2.2rem;
    height: 2.2rem;
    flex-basis: 2.2rem;
    font-size: 0.8rem;
}

.benutzer-menue__popup {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.7rem);
    transform: translateX(-50%);
    z-index: 20;
    display: grid;
    gap: 0.2rem;
    width: min(16rem, calc(100vw - 2rem));
    padding: 0.55rem;
    border: 1px solid rgba(214, 222, 232, 0.95);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(12, 23, 37, 0.28);
}

.benutzer-menue--mobil .benutzer-menue__popup {
    top: calc(100% + 0.7rem);
    bottom: auto;
    left: 0;
    transform: none;
}

.benutzer-menue__kopf {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.2rem 0.1rem 0.45rem;
    border-bottom: 1px solid var(--farbe-linie);
    color: var(--farbe-text);
}

.benutzer-menue__kopf strong {
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.benutzer-menue__link {
    display: block;
    padding: 0.5rem 0.45rem;
    border-radius: 6px;
    color: var(--farbe-text);
    font-size: 0.83rem;
    font-weight: 650;
    text-decoration: none;
}

.benutzer-menue__link:hover,
.benutzer-menue__link:focus-visible {
    background: #f3f6fa;
    color: var(--farbe-text);
    text-decoration: none;
}

.benutzer-menue__formular {
    margin: 0;
}

.benutzer-menue__logout {
    width: 100%;
    justify-content: center;
    border-color: rgba(14, 116, 144, 0.2);
    background: #f8fafc;
    color: var(--farbe-akzent-dunkel);
}

.totp-anleitung {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--farbe-text-weich);
}

.totp-anleitung li + li {
    margin-top: 0.3rem;
}

.totp-einrichtung {
    display: grid;
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    align-items: start;
}

.totp-qr-panel,
.totp-detail-panel {
    display: grid;
    gap: 0.75rem;
}

.totp-qr-frame {
    display: grid;
    place-items: center;
    width: 17.25rem;
    min-width: 17.25rem;
    min-height: 17.25rem;
    padding: 0.85rem;
    border: 1px solid var(--farbe-linie);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.totp-qr-target {
    display: grid;
    place-items: center;
    width: 256px;
    height: 256px;
    background: #fff;
}

.totp-qr-target canvas,
.totp-qr-target img {
    display: block;
    width: 256px;
    height: 256px;
    image-rendering: pixelated;
    background: #fff;
}

.totp-secret,
.totp-uri-code {
    display: block;
    margin-top: 0.35rem;
    overflow-wrap: anywhere;
}

.totp-secret {
    font-size: 1rem;
    font-weight: 700;
}

.totp-uri-details {
    padding-top: 0.2rem;
}

.totp-uri-details summary {
    cursor: pointer;
    color: var(--farbe-text-weich);
    font-weight: 600;
}

.totp-uri-code {
    width: 100%;
    min-height: 5.25rem;
    resize: vertical;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 820px) {
    .totp-einrichtung {
        grid-template-columns: minmax(0, 1fr);
    }

    .totp-qr-frame {
        width: 17.25rem;
        max-width: 100%;
        justify-self: start;
    }
}

.arbeitsbereich {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-breite);
}

.mobile-navigation {
    display: none;
}

.seitenkopf,
.seiteninhalt {
    max-width: var(--max-breite);
    margin: 0 auto;
}

.seitenkopf {
    display: flex;
    gap: 0.6rem 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.72rem 1rem 0.6rem;
    border-bottom: 1px solid var(--farbe-linie);
    background: rgba(255, 255, 255, 0.84);
}

.seitenkopf__titel {
    margin: 0;
    color: var(--farbe-text);
    font-size: 1.18rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.seitenkopf__titel--kompakt {
    font-size: 1.12rem;
}

.seitenkopf__meta {
    margin: 0.12rem 0 0;
    color: var(--farbe-text-weich);
    font-size: 0.78rem;
    font-weight: 600;
}

.seitenkopf__text {
    max-width: 46rem;
    margin: 0.08rem 0 0;
    color: var(--farbe-text-weich);
    font-size: 0.78rem;
    line-height: 1.32;
    text-align: right;
}

.hauptnavigation {
    padding: 0.55rem;
}

.hauptnavigation__liste {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    list-style: none;
}

.hauptnavigation__link {
    display: flex;
    align-items: center;
    min-height: 2.1rem;
    padding: 0.42rem 0.55rem;
    border-radius: 6px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 650;
    transition: background-color 160ms ease, color 160ms ease;
}

.hauptnavigation__link:hover,
.hauptnavigation__link:focus-visible,
.hauptnavigation__link.aktiv {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}

.hauptnavigation__link.aktiv {
    box-shadow: none;
}

.hauptnavigation__unterliste {
    margin: 0.16rem 0 0.28rem;
    padding: 0 0 0 0.72rem;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    list-style: none;
}

.hauptnavigation__unterlink {
    display: block;
    padding: 0.22rem 0.45rem;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.hauptnavigation__unterlink:hover,
.hauptnavigation__unterlink:focus-visible,
.hauptnavigation__unterlink.aktiv {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.hauptnavigation__unterlink--deaktiviert {
    cursor: default;
    opacity: 0.62;
}

.hauptnavigation__unterlink--deaktiviert:hover,
.hauptnavigation__unterlink--deaktiviert:focus-visible {
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
}

.hauptnavigation__unterhinweis {
    display: inline-flex;
    margin-left: 0.28rem;
    padding: 0.04rem 0.25rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
    font-weight: 700;
}

.seiteninhalt {
    padding: 0.85rem 1rem 1.5rem;
}

.detail-block {
    scroll-margin-top: 0.85rem;
}

.detail-abschnitt {
    scroll-margin-top: 0.85rem;
}

.raster {
    display: grid;
    gap: 0.85rem;
}

.raster--zwei {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.formularfeld--breit {
    grid-column: 1 / -1;
}

.formular-aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-top: 1rem;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(14, 116, 144, 0.35);
    border-radius: 5px;
    background: rgba(14, 116, 144, 0.1);
    color: var(--farbe-akzent-dunkel);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.button-link:hover,
.button-link:focus-visible {
    background: rgba(14, 116, 144, 0.16);
    color: var(--farbe-akzent-dunkel);
    text-decoration: none;
}

.button-link--sekundaer {
    border-color: rgba(148, 163, 184, 0.55);
    background: #f8fafc;
    color: var(--farbe-text-weich);
}

.button-link--sekundaer:hover,
.button-link--sekundaer:focus-visible {
    background: #eef2f7;
    color: var(--farbe-text);
}

.button-link.is-disabled,
.button-link[aria-disabled="true"] {
    opacity: 0.62;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.38);
    color: rgba(51, 65, 85, 0.88);
    box-shadow: none;
}

.detail-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.detail-block {
    margin-top: 0.62rem;
}

.seiteninhalt > .detail-block:first-child {
    margin-top: 0;
}

.detailkarte {
    padding: 0.75rem 0.85rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.16rem 0.45rem;
    max-width: 100%;
    border: 1px solid rgba(14, 116, 144, 0.28);
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.1);
    color: var(--farbe-akzent-dunkel);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    vertical-align: middle;
}

.status-badge--bewilligung-bewilligt {
    border-color: rgba(22, 101, 52, 0.22);
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.status-badge--bewilligung-ausstehend {
    border-color: rgba(202, 138, 4, 0.34);
    background: rgba(250, 204, 21, 0.24);
    color: #a16207;
}

.status-badge--bewilligung-zukuenftig {
    border-color: rgba(37, 99, 235, 0.24);
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.status-badge--bewilligung-historisch {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(226, 232, 240, 0.48);
    color: #475569;
}

.status-badge--bewilligung-massgeblich {
    border-color: rgba(14, 116, 144, 0.24);
    background: rgba(14, 116, 144, 0.1);
    color: var(--farbe-akzent-dunkel);
}

.status-badge--pool {
    border-color: rgba(29, 78, 216, 0.24);
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    text-decoration: none;
}

.paperless-status-badge {
    gap: 0.4rem;
}

.paperless-status-badge__punkt {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.paperless-status-badge--success {
    border-color: rgba(22, 101, 52, 0.22);
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.paperless-status-badge--running {
    border-color: rgba(202, 138, 4, 0.34);
    background: rgba(250, 204, 21, 0.24);
    color: #a16207;
}

.paperless-status-badge--failure,
.paperless-status-badge--revoked {
    border-color: rgba(185, 28, 28, 0.22);
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.paperless-status-badge--unknown {
    border-color: rgba(71, 85, 105, 0.2);
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
}

.status-legende {
    margin-top: 0.45rem;
    padding: 0.48rem 0.55rem;
    border: 1px solid var(--farbe-linie);
    border-radius: 4px;
    background: #f7fafc;
}

.status-legende p {
    margin: 0.18rem 0;
}

.detail-klappbar summary,
.detail-abschnitt__titel {
    font-weight: 700;
    list-style: none;
    font-size: 0.95rem;
}

.detail-klappbar[open] summary,
.detail-abschnitt__titel {
    margin-bottom: 0.45rem;
}

.detail-abschnitt__titel {
    margin-top: 0;
    line-height: 1.25;
}

.detail-klappbar summary::-webkit-details-marker {
    display: none;
}

.detail-klappbar summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 0.38rem;
    color: var(--farbe-akzent-dunkel);
    transition: transform 160ms ease;
}

.detail-klappbar[open] summary::before {
    transform: rotate(90deg);
}

.detail-klappbar--leise summary {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-bottom: 0;
    color: var(--farbe-akzent-dunkel);
}

.detail-klappbar--leise[open] summary {
    margin-bottom: 0.45rem;
}

.detail-aktionen {
    margin-bottom: 0.48rem;
}

.detailkarte .icon-action {
    min-height: 1.82rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.82rem;
    border-radius: 4px;
}

.detailkarte .icon-action-label {
    font-size: 0.8rem;
}

.listenkarte {
    padding: 0.75rem 0.85rem;
}

.listenkarte + .listenkarte {
    margin-top: 0.7rem;
}

.listenkarte--intro {
    padding-bottom: 0.65rem;
}

.listenkarte h2 {
    margin-bottom: 0.35rem;
    font-size: 1.02rem;
}

.listenkarte .beschreibung {
    margin-top: 0;
    margin-bottom: 0.45rem;
    font-size: 0.84rem;
}

.listenkopf {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    align-items: flex-start;
    justify-content: space-between;
}

.listenkopf__text {
    min-width: min(100%, 24rem);
    flex: 1 1 34rem;
}

.listenkopf__aktionen {
    margin-bottom: 0;
    justify-content: flex-end;
}

.listenkopf--unterabschnitt {
    margin-top: 1rem;
}

.listenkarte__untertitel {
    margin: 0;
    font-size: 1rem;
}

.listenkarte__pool-block {
    margin-top: 1rem;
}

.listenkarte__pool-fallbadges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.listenkarte__pool-falllink {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    text-decoration: none;
}

.listenkarte__pool-zelle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    vertical-align: middle;
}

.listenkarte__pool-spalte {
    width: 1%;
    white-space: nowrap;
}

.listenkarte__pool-spalte--kopf {
    width: 4.75rem;
}

.listenkarte__pool-sortlink {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
}

.listenfilter,
.listensuche,
.listensuche-ergebnis {
    margin: 0.45rem 0 0.55rem;
}

.listenfilter {
    gap: 0.28rem;
    font-size: 0.84rem;
}

.listensuche label {
    display: block;
    margin-bottom: 0.22rem;
    color: var(--farbe-text-weich);
    font-size: 0.78rem;
    font-weight: 700;
}

.listensuche__zeile {
    margin-top: 0;
    gap: 0.28rem;
}

.listensuche__feld {
    flex: 1 1 24rem;
    min-width: min(100%, 18rem);
    max-width: 44rem;
}

.listensuche__filterreihe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.45rem 0.75rem;
    margin-top: 0.55rem;
}

.listensuche__filterfeld {
    min-width: 0;
}

.listensuche__auswahl {
    width: 100%;
    min-height: 2.1rem;
    padding: 0.3rem 0.45rem;
    border: 1px solid var(--farbe-linie);
    border-radius: 5px;
    background: #fff;
    color: var(--farbe-text);
    font: inherit;
}

.listensuche__auswahl:focus {
    outline: 2px solid rgba(14, 116, 144, 0.18);
    outline-offset: 1px;
    border-color: rgba(14, 116, 144, 0.42);
}

.listen-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--farbe-linie);
}

.listen-pagination__status {
    color: var(--farbe-text-weich);
    font-size: 0.84rem;
    font-weight: 600;
}

.listen-pagination__aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.listen-pagination__seite {
    min-width: 2rem;
    justify-content: center;
}

.listen-pagination .listen-pagination__seite--aktiv {
    background: var(--farbe-akzent-dunkel);
    border-color: var(--farbe-akzent-dunkel);
    color: #fff;
    font-weight: 800;
    cursor: default;
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(14, 116, 144, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.listen-pagination__luecke {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    color: var(--farbe-text-weich);
    font-size: 0.9rem;
    font-weight: 700;
}

.listentabelle {
    font-size: 0.84rem;
}

.listentabelle th,
.listentabelle td {
    padding: 0.42rem 0.46rem;
    font-size: 0.84rem;
    line-height: 1.38;
}

.listentabelle th {
    font-size: 0.78rem;
    background: var(--farbe-tabellenkopf);
}

.listentabelle a {
    font-weight: 600;
}

.listentabelle .beschreibung {
    font-size: 0.78rem;
}

.icon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.icon-action {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--farbe-linie);
    border-radius: 5px;
    background: #fff;
    color: var(--farbe-akzent-dunkel);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.88rem;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.icon-action__symbol {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 0.95rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.listenkarte .icon-action,
.documents-table__actions .icon-action {
    min-height: 1.75rem;
    padding: 0.18rem 0.42rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.listenkarte .icon-action-label {
    font-size: 0.78rem;
}

.icon-action:hover,
.icon-action:focus-visible {
    background: rgba(14, 116, 144, 0.14);
    border-color: rgba(14, 116, 144, 0.35);
    color: var(--farbe-akzent-dunkel);
    text-decoration: none;
    transform: translateY(-1px);
}

.icon-action--primary {
    background: rgba(14, 116, 144, 0.12);
}

.icon-action--success {
    background: rgba(21, 128, 61, 0.1);
    color: #166534;
}

.icon-action--danger {
    background: rgba(180, 83, 9, 0.1);
    color: var(--farbe-warnung);
}

.icon-action-label {
    font-size: 0.86rem;
}

.icon-action--nur-icon {
    min-width: 1.9rem;
    justify-content: center;
}

.icon-action--nur-icon .icon-action-label {
    display: none;
}

.icon-action--deaktiviert {
    opacity: 0.45;
    background: #f8fafc;
    color: var(--farbe-text-weich);
    border-color: rgba(148, 163, 184, 0.45);
    transform: none;
    pointer-events: none;
}

.wiedervorlage-bezugsauswahl + .wiedervorlage-bezugsauswahl {
    margin-top: 0.75rem;
}

.wiedervorlage-bezugsauswahl--versteckt {
    display: none;
}

.wiedervorlage-bezug {
    display: grid;
    gap: 0.18rem;
}

.wiedervorlage-bezug__typ {
    color: var(--farbe-text-weich);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.wiedervorlage-dokumentauswahl {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.wiedervorlage-zustaendigkeit {
    display: grid;
    gap: 0.45rem;
    max-height: min(18rem, 34vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    border: 1px solid var(--farbe-linie);
    border-radius: 4px;
    background: #f8fafc;
}

.wiedervorlage-zustaendigkeit__eintrag {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    padding: 0.45rem 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    background: #fff;
}

.wiedervorlage-zustaendigkeit__eintrag input {
    margin-top: 0.18rem;
}

.wiedervorlage-zustaendigkeit__text {
    min-width: 0;
    word-break: break-word;
}

.wiedervorlage-dokumentauswahl__eintrag {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
}

.wiedervorlage-dokumentauswahl__eintrag input {
    margin-top: 0.18rem;
}

.wiedervorlage-dokumentauswahl__text {
    min-width: 0;
}

.wiedervorlage-dokumentauswahl__text a {
    word-break: break-word;
}

.wiedervorlage-faelligkeit {
    display: grid;
    gap: 0.14rem;
}

.wiedervorlage-zeile--ueberfaellig td {
    background: rgba(254, 226, 226, 0.78);
}

.wiedervorlage-zeile--heute-oder-morgen td {
    background: rgba(255, 247, 237, 0.9);
}

.wiedervorlage-zeile--in-2-bis-7-tagen td {
    background: rgba(254, 252, 232, 0.95);
}

.wiedervorlage-status-badge--offen {
    border-color: rgba(14, 116, 144, 0.28);
    background: rgba(14, 116, 144, 0.1);
    color: var(--farbe-akzent-dunkel);
}

.wiedervorlage-status-badge--erledigt {
    border-color: rgba(22, 101, 52, 0.22);
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.wiedervorlage-status-badge--verworfen {
    border-color: rgba(107, 114, 128, 0.22);
    background: rgba(243, 244, 246, 0.9);
    color: #4b5563;
}

.wiedervorlage-dringlichkeit-badge--ueberfaellig {
    border-color: rgba(185, 28, 28, 0.28);
    background: rgba(254, 226, 226, 0.92);
    color: #991b1b;
}

.wiedervorlage-dringlichkeit-badge--heute {
    border-color: rgba(154, 52, 18, 0.24);
    background: rgba(255, 237, 213, 0.96);
    color: #9a3412;
}

.wiedervorlage-dringlichkeit-badge--morgen {
    border-color: rgba(180, 83, 9, 0.22);
    background: rgba(255, 237, 213, 0.84);
    color: #b45309;
}

.wiedervorlage-dringlichkeit-badge--in-2-bis-7-tagen {
    border-color: rgba(202, 138, 4, 0.22);
    background: rgba(254, 249, 195, 0.92);
    color: #a16207;
}

.wiedervorlage-dringlichkeit-badge--in-8-bis-30-tagen {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(241, 245, 249, 0.92);
    color: #475569;
}

.wiedervorlage-dringlichkeit-badge--keine {
    border-color: rgba(209, 213, 219, 0.7);
    background: rgba(255, 255, 255, 0.94);
    color: #6b7280;
}

.icon-action--info {
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.28);
    opacity: 0.88;
    pointer-events: auto;
    cursor: help;
}

.bewilligung-datumwert {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.bewilligung-fortschreibung-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    color: #334155;
}

.bewilligung-fortschreibung-icon svg {
    width: 0.72rem;
    height: 0.72rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-gruppe + .admin-gruppe {
    margin-top: 1rem;
}

.admin-gruppe h3 {
    margin-bottom: 0.45rem;
}

.admin-uebersicht {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.admin-uebersicht__eintrag {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.72rem 0;
    border-top: 1px solid var(--farbe-linie);
}

.admin-uebersicht__eintrag:first-child {
    border-top: 0;
}

.admin-uebersicht__eintrag--geplant {
    opacity: 0.76;
}

.admin-uebersicht__text {
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
}

.admin-uebersicht__text h3 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.25rem;
}

.admin-uebersicht__text .beschreibung {
    margin: 0;
}

.admin-uebersicht__platzhalter {
    cursor: default;
    opacity: 0.72;
    pointer-events: none;
}

.audit-log-tabelle {
    min-width: 980px;
}

.audit-log-tabelle th {
    white-space: nowrap;
}

.audit-log-tabelle td {
    vertical-align: middle;
    padding-top: 0.56rem;
    padding-bottom: 0.56rem;
}

.audit-sortlink {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.audit-sortlink:hover,
.audit-sortlink:focus-visible {
    text-decoration: underline;
}

.audit-sortlink--nowrap,
.audit-log-tabelle__kopf--aktion-status,
.audit-log-tabelle__kopf--aktion {
    white-space: nowrap;
}

.audit-log-tabelle__kopf--aktion-status {
    min-width: 9rem;
}

.audit-akteur {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 12rem;
    line-height: 1.3;
}

.audit-akteur__initialen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 6px;
    background: #e6f4f1;
    color: #0f5f61;
    font-size: 0.76rem;
    font-weight: 800;
}

.audit-akteur__name {
    display: block;
    min-width: 0;
    font-weight: 600;
}

.audit-akteur__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 0.08rem;
}

.audit-akteur__kennung {
    display: block;
    min-width: 0;
    color: var(--farbe-text-weich);
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audit-aktionszeile {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2rem;
    line-height: 1.2;
    flex-wrap: wrap;
}

.audit-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    padding: 0.12rem 0.42rem;
    border: 1px solid rgba(14, 116, 144, 0.24);
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.1);
    color: var(--farbe-akzent-dunkel);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

.audit-status--erstellt {
    border-color: rgba(22, 101, 52, 0.24);
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.audit-status--aktualisiert {
    border-color: rgba(14, 116, 144, 0.24);
    background: rgba(14, 116, 144, 0.1);
    color: var(--farbe-akzent-dunkel);
}

.audit-status--geloescht {
    border-color: rgba(180, 83, 9, 0.26);
    background: rgba(180, 83, 9, 0.1);
    color: var(--farbe-warnung);
}

.audit-status--sicherheit {
    border-color: rgba(130, 0, 106, 0.22);
    background: rgba(130, 0, 106, 0.09);
    color: #650052;
}

.audit-aktion {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    color: var(--farbe-text-weich);
    font-size: 0.78rem;
    font-weight: 650;
    white-space: nowrap;
}

.audit-log-tabelle__aktionen {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.audit-detail-kopfzeile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.audit-detail-akteur {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.audit-detail-akteur__initialen {
    width: 2.4rem;
    height: 2.4rem;
    flex-basis: 2.4rem;
    font-size: 0.82rem;
}

.audit-detail-akteur__text {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    line-height: 1.35;
}

.audit-detail-tabelle th,
.audit-detail-tabelle td {
    vertical-align: top;
}

.audit-detail-tabelle__wert {
    white-space: normal;
    word-break: break-word;
}

.audit-detail-zusatz {
    margin-top: 0.75rem;
}

.audit-detail-user-agent {
    white-space: normal;
    word-break: break-word;
    color: var(--farbe-text-weich);
    font-size: 0.82rem;
}

.karte {
    background: var(--farbe-flaeche);
    border: 1px solid rgba(214, 222, 232, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--schatten-klein);
    padding: 0.95rem 1rem;
}

.karte h2,
.karte h3 {
    margin-top: 0;
    margin-bottom: 0.65rem;
}

h2 {
    font-size: 1.12rem;
}

h3 {
    font-size: 1rem;
}

.hinweis {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(180, 83, 9, 0.1);
    color: var(--farbe-warnung);
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.hinweis--dezent {
    padding: 0.14rem 0.38rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    justify-content: center;
}

.beschreibung {
    color: var(--farbe-text-weich);
    line-height: 1.45;
}

.dashboard-einstieg {
    padding-bottom: 0.8rem;
}

.dashboard-einstieg .beschreibung {
    margin: 0;
    max-width: 52rem;
}

.dashboard-kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.dashboard-kachel {
    padding: 0.85rem 0.95rem;
}

.dashboard-kachel__label {
    margin: 0 0 0.35rem;
    color: var(--farbe-text-weich);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dashboard-kachel__wert {
    margin: 0;
    color: var(--farbe-text);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
}

.dashboard-bereiche {
    margin-top: 1.2rem;
}

.dashboard-kacheln + .dashboard-bereiche,
.dashboard-kacheln + .dashboard-handlungsbedarf,
.dashboard-kacheln + .dashboard-wiedervorlagen {
    margin-top: 1.2rem;
}

.dashboard-wiedervorlagen {
    margin-top: 1.2rem;
}

.dashboard-kacheln--kompakt {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.dashboard-wiedervorlagen__kennzahl--kritisch {
    border-color: rgba(185, 28, 28, 0.2);
    background: rgba(239, 68, 68, 0.06);
}

.dashboard-wiedervorlagen__kennzahl--frist {
    border-color: rgba(180, 83, 9, 0.2);
    background: rgba(245, 158, 11, 0.08);
}

.dashboard-wiedervorlagen__kennzahl--nah {
    border-color: rgba(180, 83, 9, 0.2);
    background: rgba(245, 158, 11, 0.08);
}

.dashboard-wiedervorlagen__kennzahl--spaeter {
    border-color: rgba(14, 116, 144, 0.16);
    background: rgba(14, 116, 144, 0.05);
}

.dashboard-wiedervorlagen__leer {
    margin: 0.95rem 0 0;
}

.dashboard-wiedervorlagen__tabelle {
    margin-top: 0.6rem;
}

.dashboard-wiedervorlagen__tabelle table {
    min-width: 100%;
}

.dashboard-wiedervorlagen__tabelle th,
.dashboard-wiedervorlagen__tabelle td {
    white-space: nowrap;
    vertical-align: top;
}

.dashboard-wiedervorlagen__tabelle td:first-child,
.dashboard-wiedervorlagen__tabelle td:nth-child(6),
.dashboard-wiedervorlagen__tabelle td:nth-child(7) {
    white-space: normal;
}

.dashboard-wiedervorlagen__typ--frist {
    border-color: rgba(180, 83, 9, 0.24);
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

.dashboard-wiedervorlagen__typ--wiedervorlage {
    border-color: rgba(14, 116, 144, 0.28);
    background: rgba(14, 116, 144, 0.1);
    color: var(--farbe-akzent-dunkel);
}

.dashboard-wiedervorlagen__bezug {
    display: grid;
    gap: 0.14rem;
}

.dashboard-wiedervorlagen__bezug-typ {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #6b7280;
    text-transform: uppercase;
}

.dashboard-schnellzugriffe-bereich {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.35rem;
}

.dashboard-schnellzugriffe-karte {
    width: fit-content;
    max-width: 100%;
    padding: 0.95rem 1rem;
}

.dashboard-liste {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-liste__eintrag {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(214, 222, 232, 0.8);
}

.dashboard-liste__eintrag:first-child {
    padding-top: 0;
    border-top: 0;
}

.dashboard-liste__eintrag strong {
    margin-right: 0.35rem;
}

.dashboard-schnellzugriffe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.dashboard-schnellzugriffe .button-link {
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
}

.dashboard-handlungsbedarf {
    margin-top: 1.2rem;
}

.dashboard-handlungsbedarf__tabelle {
    margin-top: 0.45rem;
}

.dashboard-handlungsbedarf__tabelle table {
    min-width: 100%;
}

.dashboard-handlungsbedarf__tabelle th,
.dashboard-handlungsbedarf__tabelle td {
    white-space: nowrap;
}

.dashboard-handlungsbedarf__tabelle td:nth-child(2),
.dashboard-handlungsbedarf__tabelle td:nth-child(4) {
    white-space: normal;
}

.dashboard-handlungsbedarf__aktionen {
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.dashboard-handlungsbedarf__aktionen .icon-action {
    min-height: 2rem;
    padding: 0.35rem 0.55rem;
}

.dashboard-urheberrecht {
    margin: 1.5rem 0 0;
    font-size: 0.76rem;
}

.document-section {
    margin-top: 0.75rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--farbe-linie);
}

.document-section:first-of-type {
    margin-top: 0.45rem;
}

.document-section__title {
    margin-bottom: 0.45rem;
    padding-bottom: 0.22rem;
    border-bottom: 2px solid rgba(14, 116, 144, 0.18);
    color: var(--farbe-text);
}

.document-subject-card {
    margin-top: 0.5rem;
    padding: 0.52rem 0.58rem 0.05rem;
    border: 1px solid rgba(214, 222, 232, 0.95);
    border-left: 4px solid rgba(14, 116, 144, 0.55);
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}

.document-subject-card--alt {
    background: #f8fafc;
}

.document-subject-card__header {
    margin-bottom: 0.35rem;
}

.document-subject-card__title {
    margin-bottom: 0.12rem;
}

.document-subject-card__meta {
    margin: 0;
}

.dokument-upload-modal {
    width: min(46rem, calc(100vw - 2rem));
    max-height: min(86vh, 46rem);
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 8px;
    background: #fff;
    color: var(--farbe-text);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.34);
    overflow: auto;
}

.dokument-upload-modal::backdrop {
    background: rgba(15, 23, 42, 0.58);
}

.dokument-upload-modal form {
    padding: 0.9rem 1rem 1rem;
}

.dokument-upload-modal--formular {
    overflow: hidden;
}

.dokument-upload-modal--pool-bewilligung {
    width: min(46rem, calc(100vw - 2rem));
    max-height: min(92vh, 58rem);
    overflow: hidden;
}

.dokument-upload-modal--formular[open] {
    display: flex;
    flex-direction: column;
}

.dokument-upload-modal--formular form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-top: 0;
}

.dokument-upload-modal--sozialbehoerde-form {
    width: min(58rem, calc(100vw - 2rem));
    max-height: min(90vh, 54rem);
    overflow: hidden;
}

.dokument-upload-modal--sozialbehoerde-form[open] {
    display: flex;
    flex-direction: column;
}

.dokument-upload-modal--sozialbehoerde-form form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.sozialbehoerde-formular__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.9rem 1rem 0.85rem;
}

.sozialbehoerde-formular__aktionen {
    margin-top: 0;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: #fff;
}

.dokument-bestaetigung-modal {
    width: min(32rem, calc(100vw - 2rem));
    max-height: min(80vh, 34rem);
}

.dokument-bestaetigung-modal form {
    padding: 0;
}

.dokument-bestaetigung-modal__inhalt {
    padding: 0.95rem 1rem 1rem;
}

.dokument-bestaetigung-modal__inhalt > p:first-child {
    margin-top: 0;
}

.dokument-bestaetigung-modal__inhalt > p:last-of-type {
    margin-bottom: 0;
}

.dokument-bestaetigung-modal__tabelle {
    margin: 0.8rem 0;
}

.dokument-bestaetigung-modal__tabelle th {
    width: 9rem;
}

.modal-aktionen--bestaetigung {
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 0.3rem;
}

.modal-aktionen--bestaetigung form {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 0;
}

.modal-kopf {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0.95rem;
    border-bottom: 1px solid var(--farbe-linie);
    background: #f8fafc;
}

.modal-kopf h3 {
    margin: 0;
    font-size: 1rem;
}

.modal-schliessen {
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.1rem 0.45rem;
    border-color: transparent;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
}

.dokument-upload-modal--rollen-bearbeiten {
    width: min(54rem, calc(100vw - 2rem));
    max-height: min(92vh, 56rem);
    overflow: hidden;
}

.dokument-upload-modal--rollen-bearbeiten[open] {
    display: flex;
    flex-direction: column;
}

.dokument-upload-modal--rollen-bearbeiten form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-top: 0;
}

.rollen-modal-form__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0.9rem 1rem 0.85rem;
}

.modal-form__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0.9rem 1rem 0.85rem;
}

.rollen-modal-form__footer {
    flex-shrink: 0;
    margin-top: 0;
    padding: 0.85rem 1rem 0.95rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    background: #fff;
}

.modal-form__footer {
    flex-shrink: 0;
    margin-top: 0;
    padding: 0.85rem 1rem 0.95rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    background: #fff;
}

.modal-form__footer--uploadstatus {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-form__footer-aktionen {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.upload-status-hinweis {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(14, 116, 144, 0.24);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.98) 0%, rgba(236, 253, 245, 0.82) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.upload-status-hinweis[hidden] {
    display: none;
}

.upload-status-hinweis__spinner[hidden],
.upload-status-hinweis__spinner--button[hidden] {
    display: none;
}

.upload-status-hinweis__spinner {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.08rem;
    border: 2px solid rgba(14, 116, 144, 0.18);
    border-top-color: #0f766e;
    border-radius: 999px;
    animation: upload-status-drehen 0.85s linear infinite;
}

.upload-status-hinweis__spinner--button {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0;
    margin-right: 0.35rem;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.42);
    border-top-color: currentColor;
    vertical-align: -0.1rem;
}

.upload-status-hinweis__text {
    min-width: 0;
}

.upload-status-hinweis__titel {
    margin: 0;
    font-weight: 600;
    color: var(--farbe-text);
}

.upload-status-hinweis__beschreibung {
    margin: 0.2rem 0 0;
    color: var(--farbe-text-weich);
}

.dokument-bearbeiten-kontext {
    display: grid;
    gap: 0.18rem;
    margin: 0;
    padding: 0.65rem 1rem 0.35rem;
    justify-items: start;
    text-align: left;
}

.dokument-bearbeiten-kontext__label {
    color: var(--farbe-text-weich);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.dokument-bearbeiten-kontext__wert {
    color: var(--farbe-text);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}

.dokument-upload-modal--formular .modal-form__body {
    padding-top: 0.35rem;
    text-align: left;
}

.dokument-upload-modal--formular {
    text-align: left;
    font-size: 0.94rem;
    line-height: 1.45;
}

.dokument-upload-modal--formular form {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    margin-top: 0;
    padding: 0;
    text-align: left;
    font-size: inherit;
    line-height: inherit;
}

.dokument-upload-modal--formular .dokument-form,
.dokument-upload-modal--formular .dokument-form label,
.dokument-upload-modal--formular .dokument-form input,
.dokument-upload-modal--formular .dokument-form select,
.dokument-upload-modal--formular .dokument-form textarea,
.dokument-upload-modal--formular .dokument-form button,
.dokument-upload-modal--formular .dokument-form .button-link,
.dokument-upload-modal--formular .dokument-form .beschreibung,
.dokument-upload-modal--formular .dokument-bearbeiten-kontext,
.dokument-upload-modal--formular .dokument-bearbeiten-kontext__label,
.dokument-upload-modal--formular .dokument-bearbeiten-kontext__wert,
.dokument-upload-modal--formular .modal-form__footer,
.dokument-upload-modal--formular .modal-form__footer-aktionen {
    font-size: inherit;
}

.dokument-upload-modal--formular .dokument-form__raster {
    width: 100%;
    align-items: start;
}

.dokument-upload-modal--formular .dokument-form__feld,
.dokument-upload-modal--formular .dokument-form__bereich,
.dokument-upload-modal--formular .dokument-form__feld--vollbreit {
    min-width: 0;
}

.dokument-upload-modal--formular .dokument-form textarea,
.dokument-upload-modal--formular .dokument-form select,
.dokument-upload-modal--formular .dokument-form input {
    max-width: 100%;
}

.dokument-upload-modal--formular .formular-aktionen,
.dokument-upload-modal--formular .modal-form__footer-aktionen {
    justify-content: flex-start;
}

.wiedervorlage-modal {
    width: min(50rem, calc(100vw - 2rem));
    max-height: min(90vh, 50rem);
}

.wiedervorlage-modal .modal-kopf {
    padding: 0.78rem 1rem;
}

.wiedervorlage-modal .modal-form__body {
    padding: 0.75rem 1.05rem 0.95rem;
}

.wiedervorlage-modal .modal-form__footer {
    padding: 0.85rem 1.05rem 1rem;
}

.hinweisbox--warnung {
    margin-bottom: 1rem;
    border-color: rgba(180, 83, 9, 0.24);
    background: rgba(245, 158, 11, 0.08);
}

.wiedervorlagen-erinnerung-modal {
    width: min(32rem, calc(100vw - 2rem));
    max-height: min(84vh, 30rem);
}

.wiedervorlagen-erinnerung {
    display: grid;
    gap: 0.9rem;
}

.wiedervorlagen-erinnerung__text {
    margin: 0;
}

.wiedervorlagen-erinnerung__liste {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wiedervorlagen-erinnerung__eintrag {
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(214, 222, 232, 0.9);
    border-radius: 8px;
    background: #f8fafc;
    font-weight: 600;
}

.wiedervorlagen-erinnerung__eintrag--ueberfaellig {
    border-color: rgba(185, 28, 28, 0.18);
    background: rgba(254, 242, 242, 0.98);
    color: #991b1b;
}

.wiedervorlagen-erinnerung__eintrag--heute {
    border-color: rgba(180, 83, 9, 0.22);
    background: rgba(255, 247, 237, 0.98);
    color: #9a3412;
}

.wiedervorlagen-erinnerung__eintrag--bald {
    border-color: rgba(14, 116, 144, 0.18);
    background: rgba(240, 249, 255, 0.98);
    color: #155e75;
}

.wiedervorlage-formular h2 {
    margin-top: 0;
    margin-bottom: 0.3rem;
}

.wiedervorlage-formular__kopf {
    margin-bottom: 0.9rem;
}

.wiedervorlage-formular__kopf .beschreibung {
    margin-bottom: 0;
}

.wiedervorlage-formular__hinweis {
    margin-bottom: 0;
    padding-left: 0.02rem;
}

.pool-bewilligung-form__auswahl {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.pool-bewilligung-form--modal {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}

.pool-bewilligung-form__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0.9rem 1rem 0.85rem;
}

.pool-bewilligung-form__fallliste {
    display: grid;
    gap: 0.45rem;
    max-height: min(23rem, 48vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    border: 1px solid var(--farbe-linie);
    border-radius: 4px;
    background: #f8fafc;
    scroll-padding-block-end: 0.5rem;
}

.pool-bewilligung-form__falloption {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    padding: 0.45rem 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    background: #fff;
}

.pool-bewilligung-form__falloption--statisch {
    grid-template-columns: minmax(0, 1fr);
}

.pool-bewilligung-form__falloption input {
    margin-top: 0.18rem;
}

.pool-bewilligung-form__falltext {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.dokument-loeschen-einleitung {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1rem;
    text-align: left;
}

.dokument-loeschen-einleitung__text {
    margin: 0;
}

.dokument-loeschen-hinweis {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: #f8fafc;
    text-align: left;
}

.dokument-loeschen-hinweis__text {
    margin: 0;
}

.dokument-loeschen-hinweis--warnung {
    border-color: #f3d7b3;
    background: #fffaf2;
}

.dokument-loeschen-hinweis--erfolg {
    border-color: #c9e3d2;
    background: #f4fbf6;
}

.dokument-detail-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(27rem, 36rem) minmax(0, 1fr);
    align-items: stretch;
}

.dokument-detail-layout__aside,
.dokument-detail-layout__viewer {
    min-width: 0;
}

.dokument-detail-layout__viewer {
    align-self: stretch;
}

.dokument-detail-karte,
.dokument-vorschau-karte {
    padding: 0.85rem 1rem 0.95rem;
}

.dokument-detail-karte__abschnitt + .dokument-detail-karte__abschnitt {
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.dokument-detail-aktionsleiste {
    margin: 0 0 0.7rem;
    align-items: stretch;
}

.dokument-detail-karte__abschnitt--system {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.dokument-detail-karte__titel {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    line-height: 1.25;
}

.dokument-detail-tabelle {
    width: 100%;
    border-collapse: collapse;
}

.dokument-detail-tabelle th,
.dokument-detail-tabelle td {
    padding: 0.42rem 0.1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    text-align: left;
    vertical-align: top;
}

.dokument-detail-tabelle tbody tr:last-child th,
.dokument-detail-tabelle tbody tr:last-child td {
    border-bottom: 0;
}

.dokument-detail-tabelle th {
    width: 8.2rem;
    color: var(--farbe-text-weich);
    font-size: 0.79rem;
    font-weight: 700;
}

.dokument-detail-tabelle td {
    padding-left: 0.7rem;
    color: var(--farbe-text);
}

.dokument-detail-tabelle__wert--titel {
    font-weight: 700;
    color: var(--farbe-text);
    line-height: 1.4;
}

.dokument-tag-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.dokument-tag-chip {
    --tag-accent: #94a3b8;
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.46rem;
    border: 1px solid color-mix(in srgb, var(--tag-accent) 34%, white);
    border-radius: 999px;
    background: color-mix(in srgb, var(--tag-accent) 14%, white);
    color: color-mix(in srgb, var(--tag-accent) 62%, #334155);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
}

.dokument-vorschau-rahmen--ohne-titel {
    margin-top: 0;
}

.dokument-vorschau-flaeche {
    margin: 0;
    height: 100%;
}

.dokument-vorschau-flaeche__inhalt {
    padding: 0;
    height: 100%;
}

.dokument-vorschau-rahmen {
    margin-top: 0.75rem;
    min-height: clamp(40rem, calc(100vh - 12rem), 90rem);
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.dokument-vorschau-flaeche .dokument-vorschau-rahmen {
    height: 100%;
}

.dokument-vorschau-rahmen--bild {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background: #f8fafc;
}

.dokument-vorschau-rahmen__viewer {
    display: block;
    width: 100%;
    min-height: clamp(40rem, calc(100vh - 12rem), 90rem);
    height: 100%;
    border: 0;
}

.dokument-vorschau-rahmen__bild {
    display: block;
    max-width: 100%;
    max-height: clamp(40rem, 88vh, 90rem);
    object-fit: contain;
}

@keyframes upload-status-drehen {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.formular-meta {
    margin-bottom: 1rem;
}

.formular-abschnitt + .formular-abschnitt {
    margin-top: 1rem;
}

.formular-abschnitt__titel {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.formular-abschnitt__untertitel {
    margin: 0 0 0.45rem;
    font-weight: 600;
    color: var(--farbe-text);
}

.rollen-rechte-block {
    margin-top: 1rem;
}

.rollen-rechte-block--kompakt {
    margin-top: 0.85rem;
}

.rollen-rechte-block--kompakt .beschreibung {
    margin-bottom: 0.4rem;
}

.rollen-rechte-grid {
    gap: 0.8rem;
    grid-template-columns: 1fr;
}

.rollen-rechte-gruppe {
    padding: 0.75rem 0.85rem;
}

.rollen-rechte-liste {
    gap: 0.6rem;
}

.rollen-rechte-eintrag {
    gap: 0.55rem;
}

@media (max-width: 720px) {
    .dokument-upload-modal--rollen-bearbeiten {
        width: min(100vw - 1rem, 54rem);
        max-height: min(94vh, 56rem);
    }

    .rollen-modal-form__body {
        padding: 0.8rem 0.85rem 0.75rem;
    }

    .modal-form__body {
        padding: 0.8rem 0.85rem 0.75rem;
    }

    .rollen-modal-form__footer {
        padding: 0.8rem 0.85rem 0.9rem;
    }

    .modal-form__footer {
        padding: 0.8rem 0.85rem 0.9rem;
    }

    .wiedervorlage-modal {
        width: min(100vw - 1rem, 50rem);
        max-height: min(92vh, 50rem);
    }

    .wiedervorlage-modal .modal-form__body {
        padding: 0.8rem 0.9rem 0.85rem;
    }

    .wiedervorlage-modal .modal-form__footer {
        padding: 0.8rem 0.9rem 0.95rem;
    }

    .wiedervorlagen-erinnerung-modal {
        width: min(100vw - 1rem, 32rem);
        max-height: min(90vh, 30rem);
    }

    .upload-status-hinweis {
        padding: 0.8rem 0.85rem;
    }
}

.document-category-group {
    margin-top: 0.42rem;
}

.document-category-group__title {
    margin-bottom: 0.25rem;
    color: var(--farbe-text-weich);
    font-size: 0.84rem;
}

.documents-table {
    table-layout: fixed;
    min-width: 980px;
}

.fall-detail-table {
    table-layout: fixed;
    min-width: 1040px;
}

.fall-detail-table--bewilligungen .fall-detail-table__date {
    width: 11%;
}

.fall-detail-table--bewilligungen .fall-detail-table__hours {
    width: 13%;
}

.fall-detail-table--bewilligungen .fall-detail-table__rate {
    width: 9%;
}

.fall-detail-table--bewilligungen .fall-detail-table__status {
    width: 12%;
}

.fall-detail-table--bewilligungen .fall-detail-table__remark {
    width: 22%;
}

.fall-detail-table--bewilligungen .fall-detail-table__actions {
    width: 9%;
}

.fall-detail-table--bewilligungen td:last-child .icon-actions {
    gap: 0.25rem;
}

.fall-detail-table--zuordnungen .fall-detail-table__person {
    width: 18%;
}

.fall-detail-table--zuordnungen .fall-detail-table__period {
    width: 15%;
}

.fall-detail-table--zuordnungen .fall-detail-table__status {
    width: 8%;
}

.fall-detail-table--zuordnungen .fall-detail-table__role {
    width: 12%;
}

.fall-detail-table--zuordnungen .fall-detail-table__hours {
    width: 12%;
}

.fall-detail-table--zuordnungen .fall-detail-table__contact {
    width: 22%;
}

.fall-detail-table--zuordnungen .fall-detail-table__actions {
    width: 13%;
}

.schulbegleiter-detail-table--beschaeftigungen .fall-detail-table__period {
    width: 15%;
}

.schulbegleiter-detail-table--beschaeftigungen .fall-detail-table__status {
    width: 11%;
}

.schulbegleiter-detail-table--beschaeftigungen .fall-detail-table__type {
    width: 11%;
}

.schulbegleiter-detail-table--beschaeftigungen .fall-detail-table__rate {
    width: 14%;
}

.schulbegleiter-detail-table--beschaeftigungen .fall-detail-table__hours {
    width: 13%;
}

.schulbegleiter-detail-table--beschaeftigungen .fall-detail-table__u1 {
    width: 10%;
    white-space: nowrap;
}

.schulbegleiter-detail-table--beschaeftigungen .fall-detail-table__remark {
    width: 16%;
}

.schulbegleiter-detail-table--beschaeftigungen .fall-detail-table__actions {
    width: 10%;
}

.schulbegleiter-detail-table--fallzuordnungen .fall-detail-table__person {
    width: 15%;
}

.schulbegleiter-detail-table--fallzuordnungen .fall-detail-table__school {
    width: 13%;
}

.schulbegleiter-detail-table--fallzuordnungen .fall-detail-table__agency {
    width: 14%;
}

.schulbegleiter-detail-table--fallzuordnungen .fall-detail-table__period {
    width: 12%;
}

.schulbegleiter-detail-table--fallzuordnungen .fall-detail-table__status {
    width: 8%;
}

.schulbegleiter-detail-table--fallzuordnungen .fall-detail-table__hours {
    width: 9%;
}

.schulbegleiter-detail-table--fallzuordnungen .fall-detail-table__role {
    width: 8%;
    white-space: normal;
}

.schulbegleiter-detail-table--fallzuordnungen .fall-detail-table__actions {
    width: 13%;
    min-width: 9.5rem;
}

.schulbegleiter-detail-table--fallzuordnungen td:last-child .icon-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem;
}

.schulbegleiter-detail-table--fallzuordnungen td:last-child .icon-action {
    min-height: 1.75rem;
    padding: 0.18rem 0.42rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.schulbegleiter-detail-table--fallzuordnungen td:last-child .icon-action-label {
    font-size: 0.78rem;
}

.fall-detail-table__actions {
    text-align: right;
}

.fall-detail-table td:last-child .icon-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.documents-table__status {
    width: 2.3rem;
    min-width: 2.3rem;
    max-width: 2.3rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    text-align: center;
}

.documents-table__document {
    width: 30%;
}

.documents-table__category {
    width: 18%;
}

.documents-table__date {
    width: 14%;
}

.documents-table__type {
    width: 13%;
}

.documents-table__size {
    width: 10%;
}

.documents-table__actions {
    width: 11%;
    text-align: right;
}

.documents-table--overview .documents-table__status {
    width: 2.3rem;
    min-width: 2.3rem;
    max-width: 2.3rem;
}

.documents-table--overview .documents-table__document {
    width: 35%;
}

.documents-table--overview .documents-table__category {
    width: 14%;
}

.documents-table--overview .documents-table__date {
    width: 14%;
}

.documents-table--overview .documents-table__type {
    width: 12%;
}

.documents-table--overview .documents-table__size {
    width: 9%;
}

.documents-table--overview .documents-table__actions {
    width: 11.5%;
}

.documents-table__document a {
    overflow-wrap: anywhere;
}

.documents-table__badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.45rem;
    padding: 0.08rem 0.38rem;
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
}

.documents-table__status-indikator {
    display: inline-flex;
    align-items: center;
    margin-left: 0.45rem;
    padding: 0.16rem 0.28rem;
    vertical-align: middle;
    white-space: nowrap;
}

.documents-table__status .documents-table__status-indikator {
    margin-left: 0;
}

.documents-table--statuslayout {
    table-layout: fixed;
}

.documents-table--statuslayout .documents-table__col-status {
    width: 1.95rem;
}

.documents-table--statuslayout .documents-table__col-category {
    width: 11rem;
}

.documents-table--statuslayout .documents-table__col-date {
    width: 8.5rem;
}

.documents-table--statuslayout .documents-table__col-type {
    width: 7.5rem;
}

.documents-table--statuslayout .documents-table__col-size {
    width: 6rem;
}

.documents-table--statuslayout .documents-table__col-actions {
    width: 8.5rem;
}

.documents-table--statuslayout .documents-table__document {
    width: auto;
}

.listentabelle td,
.documents-table td,
.detailkarte table td {
    vertical-align: top;
}

.documents-table__actions .icon-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.liste {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.5;
}

.eingabe-mit-suffix {
    display: flex;
    align-items: center;
    margin-top: 0.35rem;
    width: 100%;
    border: 1px solid var(--farbe-linie);
    border-radius: 0.35rem;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.eingabe-mit-suffix input {
    flex: 1;
    min-width: 0;
    margin-top: 0;
    border: 0;
    background: transparent;
}

.eingabe-mit-suffix input:focus {
    outline: 0;
}

.eingabe-mit-suffix:focus-within {
    border-color: rgba(130, 0, 106, 0.55);
    box-shadow: 0 0 0 3px rgba(130, 0, 106, 0.12);
}

.eingabe-mit-suffix__suffix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 0.85rem 0 0.5rem;
    color: var(--farbe-text-weich);
    font-weight: 700;
    pointer-events: none;
}

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

input,
select,
textarea {
    border: 1px solid var(--farbe-linie);
    border-radius: 5px;
    padding: 0.34rem 0.45rem;
}

button {
    border: 1px solid rgba(14, 116, 144, 0.35);
    border-radius: 5px;
    background: rgba(14, 116, 144, 0.1);
    color: var(--farbe-akzent-dunkel);
    cursor: pointer;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
}

button:hover,
button:focus-visible {
    background: rgba(14, 116, 144, 0.16);
}

button:disabled,
button[disabled] {
    opacity: 0.62;
    cursor: not-allowed;
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.38);
    color: rgba(51, 65, 85, 0.88);
    box-shadow: none;
}

button:disabled:hover,
button:disabled:focus-visible,
button[disabled]:hover,
button[disabled]:focus-visible {
    background: rgba(148, 163, 184, 0.2);
}

.tabellenbox {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.48rem 0.55rem;
    text-align: left;
    border-bottom: 1px solid var(--farbe-linie);
    vertical-align: top;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

th {
    background: var(--farbe-tabellenkopf);
    color: var(--farbe-text-weich);
    border-bottom-color: #c7d3e0;
    font-size: 0.84rem;
    font-weight: 800;
}

tbody th {
    width: 10.5rem;
    overflow-wrap: normal;
    word-break: normal;
}

@media (max-width: 980px) {
    body {
        overflow-x: hidden;
    }

    .app-shell {
        display: block;
    }

    .seitenleiste {
        display: none;
    }

    .arbeitsbereich {
        margin-left: 0;
    }

    .mobile-navigation {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        background: #102f47;
        color: #fff;
    }

    .mobile-navigation__schalter {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        min-height: 2.9rem;
        padding: 0.58rem 0.82rem;
        cursor: pointer;
        font-weight: 800;
        list-style: none;
    }

    .mobile-navigation__schalter span:first-child {
        font-size: 1.28rem;
        line-height: 1;
    }

    .mobile-navigation__schalter::-webkit-details-marker {
        display: none;
    }

    .mobile-navigation__menue {
        padding: 0 0.55rem 0.6rem;
    }

    .mobile-navigation[open] .mobile-navigation__menue {
        max-height: calc(100vh - 3.2rem);
        overflow-y: auto;
    }

    .mobile-navigation .hauptnavigation__liste {
        flex-direction: column;
        gap: 0.18rem;
    }

    .mobile-navigation .hauptnavigation__link {
        min-height: 1.85rem;
        padding: 0.34rem 0.5rem;
        font-size: 0.82rem;
    }

    .mobile-navigation .hauptnavigation__unterlink {
        font-size: 0.82rem;
    }

    .mobile-navigation .hauptnavigation__link.aktiv {
        box-shadow: none;
    }

    .mobile-navigation__konto {
        margin-top: 0.7rem;
        padding-top: 0.7rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .benutzer-menue--mobil {
        margin-bottom: 0;
    }

    .benutzer-menue--mobil .benutzer-menue__schalter {
        padding: 0.1rem 0;
    }

    .benutzer-menue--mobil .benutzer-menue__popup {
        width: min(18rem, calc(100vw - 2rem));
    }

    .seitenkopf {
        display: block;
        padding: 0.62rem 0.8rem 0.52rem;
    }

    .seitenkopf__text {
        max-width: none;
        margin-top: 0.18rem;
        text-align: left;
    }

    .raster--zwei {
        grid-template-columns: 1fr;
    }

    .admin-uebersicht__eintrag {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-uebersicht__text {
        max-width: min(100%, 18rem);
    }

    .seiteninhalt {
        padding: 0.75rem 0.8rem 1.3rem;
    }

    .tabellenbox {
        margin-right: -0.8rem;
        padding-right: 0.8rem;
    }

    .tabellenbox > table {
        min-width: 760px;
    }

    .tabellenbox > .listentabelle {
        min-width: 840px;
    }

    .tabellenbox > .documents-table {
        min-width: 900px;
    }

    .tabellenbox > .fall-detail-table {
        min-width: 980px;
    }

    .detailkarte {
        overflow-x: hidden;
    }

    .detailkarte > table,
    .detailkarte .detail-klappbar > table {
        table-layout: fixed;
    }

    .detailkarte > table tbody tr,
    .detailkarte .detail-klappbar > table:not(.listentabelle):not(.documents-table) tbody tr {
        display: grid;
        grid-template-columns: 7rem minmax(0, 1fr);
    }

    .detailkarte > table tbody th,
    .detailkarte .detail-klappbar > table tbody th {
        width: 7rem;
        min-width: 7rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .detailkarte > table tbody th,
    .detailkarte > table tbody td,
    .detailkarte .detail-klappbar > table tbody th,
    .detailkarte .detail-klappbar > table tbody td {
        padding-right: 0.4rem;
        padding-left: 0.4rem;
    }

    .detailkarte > table tbody td,
    .detailkarte .detail-klappbar > table tbody td {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .dokument-detail-layout {
        grid-template-columns: 1fr;
    }

    .dokument-vorschau-rahmen,
    .dokument-vorschau-rahmen__viewer,
    .dokument-vorschau-rahmen__bild {
        min-height: min(70vh, 34rem);
        max-height: min(70vh, 34rem);
    }
}
