﻿:root {
    color-scheme: light;
    --bg: #f4f6fb;
    --panel: #ffffff;
    --ink: #172033;
    --muted: #647084;
    --line: #d9e0ea;
    --brand: #3152b7;
    --brand-strong: #253f8d;
    --brand-soft: #eef2ff;
    --brand-line: #c8d3ff;
    --danger: #b42318;
    --ok: #1f7a4d;
    --app-header-height: 72px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(49, 82, 183, 0.08), rgba(244, 246, 251, 0) 320px),
        var(--bg);
}

.offline-banner {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 80;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    color: #b42318;
    background: #fff1f2;
    box-shadow: 0 10px 26px rgba(180, 35, 24, .2);
}

.offline-banner[hidden] {
    display: none;
}

.offline-banner-icon {
    position: relative;
    width: 22px;
    height: 16px;
}

.offline-banner-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid currentColor;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 72% 60%, 72% 100%, 28% 100%, 28% 60%, 0 60%);
}

.offline-banner-icon::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 10px;
    width: 3px;
    height: 23px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-45deg);
    transform-origin: center;
}

.is-offline [data-offline-unavailable],
.is-offline .sidebar a[href*="/kalender/oeffentlich"] {
    display: none !important;
}

[data-offline-only] {
    display: none !important;
}

.is-offline [data-offline-only] {
    display: block !important;
}

.sidebar-offline-status {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 2px 0 8px;
    padding: 9px 10px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    background: #fff1f2;
    font-size: .88rem;
}

.is-offline .sidebar-offline-status {
    display: flex;
}

.sidebar-offline-status span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
    flex: 0 0 auto;
}

.sidebar-offline-status strong {
    font-size: .9rem;
}

.sidebar-offline-status small {
    color: #b91c1c;
    font-size: .78rem;
}

a {
    color: var(--brand);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 28px;
}

.auth-main {
    flex: 1 0 auto;
    display: grid;
    place-items: center;
    width: 100%;
}

.login-panel {
    width: min(100%, 420px);
    background: var(--panel);
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(49, 82, 183, 0.14);
}

.two-factor-panel {
    width: min(100%, 500px);
}

.two-factor-qr {
    display: grid;
    place-items: center;
    margin: 20px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.two-factor-qr svg {
    width: min(240px, 70vw);
    height: auto;
}

.hint-box {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    background: var(--brand-soft);
    color: #263b7a;
}

.hint-box p {
    margin: 8px 0;
    color: #263b7a;
}

.hint-box code,
.recovery-code-list code {
    display: block;
    overflow-wrap: anywhere;
    font-family: Consolas, Monaco, monospace;
}

.recovery-code-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0;
}

.recovery-code-list code {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
    font-weight: 700;
}

.auth-secondary-form {
    margin-top: 10px;
}

.pwa-install-card {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.pwa-install-card[hidden] {
    display: none;
}

.app-pwa-install-card {
    width: min(1320px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 16px;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    background: #fbfcff;
    box-shadow: 0 10px 26px rgba(49, 82, 183, 0.08);
}

.pwa-install-card h2 {
    margin: 0 0 4px;
    font-size: 16px;
}

.pwa-install-card p {
    margin: 0;
}

.pwa-install-card .button {
    width: 100%;
}

.pwa-install-hint {
    font-size: 13px;
    line-height: 1.45;
}

.auth-pwa-install-card {
    width: min(100%, 420px);
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(49, 82, 183, 0.1);
}

.public-page {
    width: min(1040px, calc(100% - 32px));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 28px 0 28px;
}

.public-main {
    flex: 1 0 auto;
}

.app-shell {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    color: #fff;
    background: #172033;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-head {
    height: var(--app-header-height);
    flex: 0 0 var(--app-header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand) 100%);
}

.sidebar-brand {
    font-weight: 700;
    font-size: 18px;
}

.sidebar-school {
    color: rgba(255, 255, 255, 0.72);
}

.sidebar-nav {
    display: grid;
    gap: 4px;
    padding: 16px 12px;
}

.sidebar-label {
    margin: 16px 8px 6px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-sublabel {
    margin: 12px 10px 2px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border-radius: 6px;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-link.active {
    box-shadow: inset 3px 0 0 var(--brand);
}

.nav-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    opacity: 0.9;
}

.sidebar-group {
    display: grid;
    gap: 4px;
}

.sidebar-group summary {
    list-style: none;
    cursor: pointer;
}

.sidebar-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-subnav {
    display: grid;
    gap: 2px;
    margin: 2px 0 8px 34px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    min-height: 34px;
    border-radius: 6px;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 14px;
}

.sidebar-sublink:hover,
.sidebar-sublink.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-caret {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.58);
    transition: transform 160ms ease;
}

.sidebar-group[open] .sidebar-caret {
    transform: rotate(90deg);
}

.app-content {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    height: var(--app-header-height);
    flex: 0 0 var(--app-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
    border-bottom: 0;
    box-shadow: 0 10px 28px rgba(49, 82, 183, 0.22);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-title {
    min-width: 0;
}

.header-title .brand,
.header-title .muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 6px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.sidebar-toggle-icon {
    position: relative;
    display: none;
    width: 18px;
    height: 14px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.sidebar-toggle-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 100%;
    border-top: 2px solid currentColor;
}

.mobile-label {
    display: none;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.24);
}

.user-menu {
    position: relative;
    flex: 0 0 auto;
}

.notification-menu {
    position: relative;
    flex: 0 0 auto;
}

.notification-menu summary {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    list-style: none;
    font-weight: 900;
}

.notification-menu summary::-webkit-details-marker {
    display: none;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    color: #fff;
    background: var(--danger);
    font-size: 0.72rem;
    font-weight: 800;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 25;
    width: min(360px, 88vw);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 18px 45px rgba(23, 32, 51, 0.16);
}

.notification-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.notification-panel-head form {
    margin: 0;
}

.notification-panel-head button,
.notification-panel-footer a {
    border: 0;
    color: var(--brand);
    background: transparent;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.notification-panel-head button {
    padding: 0;
}

.notification-panel-head button:hover,
.notification-panel-footer a:hover {
    color: var(--brand-strong);
    text-decoration: underline;
}

.notification-panel-head button:disabled {
    color: var(--muted);
    cursor: wait;
    text-decoration: none;
}

.notification-item {
    display: grid;
    gap: 5px;
    padding: 12px 16px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.notification-item:hover {
    background: var(--brand-soft);
}

.notification-item small,
.notification-empty {
    color: var(--muted);
}

.notification-empty {
    margin: 0;
    padding: 14px 16px;
}

.notification-panel-footer {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    padding: 10px 16px;
    background: #f8fbff;
}

.notification-list {
    display: grid;
    gap: 10px;
}

.notification-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
}

.notification-row:hover {
    border-color: var(--brand-line);
    background: var(--brand-soft);
}

.notification-row.unread {
    border-color: var(--brand-line);
    box-shadow: inset 3px 0 0 var(--brand);
}

.notification-row-main {
    display: grid;
    gap: 4px;
}

.notification-row-main span,
.notification-row-meta {
    color: var(--muted);
}

.notification-row-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.notification-settings-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.notification-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.notification-setting-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.notification-setting-row strong {
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.notification-setting-row .muted {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
}

.notification-setting-row .switch {
    flex: 0 0 48px;
}

.notification-mail-hint {
    margin: 4px 0 0;
}

.push-settings-panel [data-push-status] {
    margin: 0;
}

.push-settings-panel [data-push-status]:not(:empty) {
    margin-top: 10px;
}

.push-quiet-hours-form {
    margin-top: 14px;
}

.push-important-setting {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    grid-column: 1 / -1;
    min-height: 100%;
    margin: 0;
}

.push-important-setting .notification-setting-copy {
    min-width: 0;
}

.push-important-setting .switch {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 28px;
}

.push-important-setting .switch-track {
    width: 48px;
    height: 28px;
}

.push-important-setting .switch-track::after {
    width: 20px;
    height: 20px;
}

.message-thread-list {
    display: grid;
    gap: 10px;
}

.messenger-message-field {
    margin-top: 12px;
}

.message-thread-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
}

.message-thread-row:hover {
    border-color: var(--brand-line);
    background: var(--brand-soft);
}

.message-thread-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.message-thread-main strong,
.message-thread-main small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.message-thread-meta {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.message-reply-indicator {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.message-reply-indicator.has-reply {
    border-color: #9ed8b3;
    background: #eaf8ef;
    color: #21723d;
}

.message-index-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.message-index-hero > .button {
    justify-self: end;
}

.messenger-reply-setting {
    margin-top: 18px;
}

.messenger-create-actions .button {
    height: 42px;
    line-height: 1;
}

.messenger-recipient-field {
    display: grid;
    gap: 0;
    margin-bottom: 16px;
}

.messenger-recipient-field .field {
    margin-bottom: 0;
}

.messenger-recipient-field .person-picker {
    margin-top: 6px;
    margin-bottom: 8px;
}

.messenger-recipient-field .selected-people {
    margin-top: 6px;
    margin-bottom: 16px;
}

.messenger-subject-field {
    margin-bottom: 16px;
}

.messenger-page > .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.messenger-page > .hero .messenger-back-button {
    justify-self: end;
}

.message-list {
    display: grid;
    align-content: end;
    gap: 12px;
    max-height: 56vh;
    overflow: auto;
    overflow-anchor: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #f8fbff;
}

.messenger-can-reply > .message-list {
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.message-bubble {
    width: min(76%, 720px);
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    overflow-wrap: anywhere;
}

.message-bubble.own {
    justify-self: end;
    border-color: var(--brand-line);
    background: var(--brand-soft);
}

.message-bubble-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    min-width: 0;
}

.message-bubble-head strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.message-bubble-head span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 13px;
}

.message-bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.message-attachment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    min-height: 34px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--brand);
    background: #fff;
    text-decoration: none;
    font-weight: 600;
}

.message-attachment span {
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 700;
}

.message-attachment strong {
    min-width: 0;
    color: var(--brand);
    font-size: inherit;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.message-report-form {
    margin-top: 10px;
}

.message-report-form button {
    border: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.message-report-form button:hover {
    color: var(--danger);
}

.message-own-actions {
    margin-top: 10px;
}

.message-own-actions[hidden] {
    display: none;
}

.message-own-actions button {
    border: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.message-own-actions button:hover {
    color: var(--brand);
}

.message-inline-edit {
    display: grid;
    gap: 8px;
    margin-top: 2px;
}

.message-inline-edit textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
}

.message-inline-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.message-inline-edit > .muted:empty {
    display: none;
}

.message-reply-form {
    display: grid;
    gap: 7px;
    margin-top: 0;
}

.message-composer {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 7px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    background: #fff;
}

.message-composer textarea {
    width: 100%;
    min-height: 42px;
    max-height: 144px;
    resize: none;
    overflow-y: auto;
    border: 0;
    padding: 9px 4px;
    background: transparent;
    box-shadow: none;
    line-height: 24px;
}

.message-composer textarea:focus {
    outline: 0;
    box-shadow: none;
}

.message-composer-attachment,
.message-composer-send {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.message-composer-attachment {
    color: var(--brand);
    background: #eaf0ff;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
    font-size: 20px;
    font-variant-emoji: text;
    line-height: 1;
}

.message-composer-attachment:hover {
    background: #dfe8ff;
}

.message-composer-send {
    color: #fff;
    background: var(--brand);
    font: inherit;
    font-size: 22px;
    font-weight: 700;
}

.message-composer-send:hover {
    background: var(--brand-strong);
}

.message-composer-attachment:focus-visible,
.message-composer-send:focus-visible {
    outline: 3px solid rgba(49, 82, 183, .22);
    outline-offset: 2px;
}

.message-composer-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--brand-line);
    border-radius: 7px;
    padding: 8px 10px;
    color: var(--brand-strong);
    background: var(--brand-soft);
    font-size: 13px;
}

.message-composer-file[hidden] {
    display: none;
}

.message-composer-file span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-composer-file button {
    flex: 0 0 auto;
    border: 0;
    padding: 0 3px;
    color: var(--brand-strong);
    background: transparent;
    font: inherit;
    font-size: 19px;
    cursor: pointer;
}

.message-composer-status {
    position: absolute;
    left: 16px;
    bottom: calc(100% + 4px);
    min-height: 0;
    padding: 4px 8px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(23, 32, 51, .1);
    font-size: 12px;
}

.message-composer-status:empty {
    display: none;
}

@media (min-width: 761px) {
    .messenger-page {
        padding-bottom: 28px;
    }

    .messenger-page .message-list {
        max-height: none;
        overflow: visible;
    }

    .messenger-page > .message-reply-form {
        position: static;
        margin-top: 14px;
    }
}

.user-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 6px;
    padding: 0 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.menu-avatar {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--brand);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.menu-caret {
    font-size: 12px;
    opacity: 0.82;
}

.menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: 240px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 18px 45px rgba(23, 32, 51, 0.16);
}

.menu-panel a,
.menu-panel button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 14px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.menu-panel a:hover,
.menu-panel button:hover {
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.menu-panel form:last-child button {
    border-bottom: 0;
}

.export-menu {
    position: relative;
}

.export-menu > summary {
    list-style: none;
    cursor: pointer;
}

.export-menu > summary::-webkit-details-marker {
    display: none;
}

.export-menu-panel {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 15;
    width: 190px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 14px 32px rgba(23, 32, 51, 0.15);
}

.export-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 42px;
    border-bottom: 1px solid var(--line);
    padding: 0 13px;
    color: var(--ink);
    text-decoration: none;
}

.export-menu-panel a:last-child {
    border-bottom: 0;
}

.export-menu-panel a:hover {
    color: var(--brand-strong);
    background: var(--brand-soft);
}

.app-main {
    flex: 1 0 auto;
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 28px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    color: var(--ink);
    background: var(--panel);
    text-decoration: none;
}

.quick-action:hover {
    border-color: var(--brand-line);
    background: #fbfcff;
    box-shadow: 0 10px 26px rgba(49, 82, 183, 0.12);
}

.quick-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 8px;
    color: #fff;
    background: var(--brand);
    font-weight: 700;
}

.quick-action strong,
.quick-action small {
    display: block;
}

.quick-action strong {
    margin-bottom: 4px;
}

.quick-action small {
    color: var(--muted);
    line-height: 1.35;
}

.dashboard-main {
    display: grid;
    align-content: start;
    align-items: start;
    gap: 16px;
}

.dashboard-main > .panel,
.dashboard-main > .dashboard-layout,
.dashboard-main > .panel + .panel {
    margin-block: 0;
}

.dashboard-main > .panel,
.dashboard-main .panel {
    padding: 20px;
}

.app-main.dashboard-main > .panel + .panel,
.app-main.dashboard-main > .panel + .dashboard-layout,
.app-main.dashboard-main > .dashboard-layout + .panel {
    margin-top: 0;
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-hero h1,
.dashboard-hero p {
    margin-bottom: 2px;
}

.dashboard-context {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    padding: 0 12px;
    color: var(--brand-strong);
    background: var(--brand-soft);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
}

.dashboard-layout-single {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-focus,
.dashboard-side,
.dashboard-areas {
    min-width: 0;
}

.dashboard-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0;
}

.dashboard-actions .quick-action {
    min-height: 64px;
}

.is-soft-hidden {
    display: none;
}

.dashboard-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.dashboard-secondary a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-secondary a:hover {
    border-color: var(--brand-line);
    color: var(--brand-strong);
    background: var(--brand-soft);
}

.dashboard-todos-panel {
    display: grid;
    gap: 6px;
}

.compact-head {
    gap: 8px;
    margin-bottom: 0;
}

.section-divider {
    border-top: 1px solid var(--line);
    margin: 12px 0 10px;
}

.dashboard-todo-list {
    display: grid;
    gap: 4px;
}

.dashboard-ticket-list {
    display: grid;
    gap: 6px;
}

.dashboard-ticket {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
}

.dashboard-ticket:hover {
    border-color: var(--brand-line);
    background: var(--brand-soft);
    text-decoration: none;
}

.dashboard-ticket strong {
    display: block;
    margin-top: 4px;
}

.dashboard-ticket p {
    margin: 2px 0 0;
}

.dashboard-ticket-date {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-todo-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

.dashboard-todo-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.dashboard-arrow-action {
    color: var(--ink);
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
}

.dashboard-arrow-action:hover {
    color: var(--brand-strong);
    text-decoration: none;
    background: var(--brand-soft);
    border-color: var(--brand-line);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

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

.uv-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: var(--panel);
}

.metric-card span,
.term-stats span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin-top: 6px;
    margin-bottom: 8px;
    color: var(--brand-strong);
    font-size: 28px;
    line-height: 1;
}

.dashboard-side-panel {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.dashboard-stat-list {
    display: grid;
    gap: 4px;
}

.dashboard-stat-row {
    display: grid;
    gap: 2px;
    border-top: 1px solid var(--line);
    padding-top: 6px;
}

.dashboard-stat-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-stat-row strong {
    color: var(--ink);
}

.dashboard-stat-row small {
    color: var(--muted);
}

.nachschreiber-term-panel {
    margin-top: 16px;
}

.term-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.term-head h2 {
    margin-bottom: 4px;
}

.term-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(82px, auto));
    justify-content: flex-end;
    gap: 8px;
}

.term-actions {
    margin-left: auto;
}

.term-stats span {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    background: #fbfcff;
}

.term-stats strong {
    color: var(--brand-strong);
    font-size: 18px;
    line-height: 1;
}

.term-stats small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.mini-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.mini-metrics span {
    display: grid;
    align-content: center;
    justify-items: center;
    min-width: 82px;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    background: #fbfcff;
}

.mini-metrics strong {
    color: var(--brand-strong);
    font-size: 18px;
    line-height: 1;
}

.mini-metrics small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.mini-metrics span.success {
    border-color: #b7e3c8;
    background: #effaf3;
}

.mini-metrics span.success strong,
.mini-metrics span.success small {
    color: var(--ok);
}

.subsection {
    margin-top: 22px;
}

.subsection + .subsection {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.section-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title-row h3 {
    margin: 0;
    font-size: 17px;
}

.klausur-group-list {
    display: grid;
    gap: 14px;
}

.klausur-group {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.klausur-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.klausur-group h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.klausur-group-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.klausur-note {
    margin-top: 10px;
}

.nachschreiber-student-list,
.status-stack {
    display: grid;
    gap: 8px;
}

.nachschreiber-student-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nachschreiber-student-row form {
    margin: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--brand-strong);
    background: var(--brand-soft);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill.done {
    border-color: #bfe6cf;
    color: #18733a;
    background: #eaf8ef;
}

.status-pill.neutral {
    border-color: var(--line);
    color: var(--muted);
    background: #f6f8fb;
}

.compact-table {
    margin-top: 12px;
}

.compact-table table th,
.compact-table table td {
    padding-top: 9px;
    padding-bottom: 9px;
}

.table-input {
    max-width: 120px;
}

.bulk-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.bulk-action-bar label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin: 0;
    font-weight: 700;
    line-height: 1;
}

.bulk-action-bar input[type="checkbox"],
.select-column input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--brand);
}

.bulk-action-bar [data-bulk-count] {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.bulk-action-bar [data-bulk-submit] {
    margin-left: auto;
}

.account-delete-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 820px;
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff7f7;
}

.account-delete-confirmation input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--danger);
}

.account-delete-confirmation label {
    margin: 0;
    color: #7f1d1d;
    font-weight: 700;
    line-height: 1.35;
}

.select-column {
    width: 38px;
    text-align: center;
}

.dashboard-side {
    display: grid;
    align-content: start;
    gap: 16px;
}

.dashboard-side h2 {
    margin-bottom: -6px;
}

.compact-meta div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
}

.compact-meta dd {
    overflow-wrap: anywhere;
    text-align: right;
}

.wichteln-partner-card {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.wichteln-partner-person {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    background: #fff;
}

.wichteln-partner-person strong {
    color: var(--ink);
    font-size: 20px;
    line-height: 1.25;
}

.wichteln-partner-person span:last-child {
    color: var(--muted);
}

.wichteln-wish-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.wichteln-wish-list div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.wichteln-wish-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.wichteln-wish-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    line-height: 1.45;
}

.wichteln-visibility-grid {
    grid-template-columns: minmax(0, 1fr);
}

.wichteln-mail-text-field {
    margin-bottom: 0;
}

.wichteln-mail-text-field textarea {
    min-height: 150px;
}

.empty-state {
    grid-column: 1 / -1;
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fbfcff;
}

.empty-state strong + .muted {
    margin-top: 8px;
}

.app-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: min(1320px, calc(100% - 32px));
    margin: auto auto 24px;
    padding-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.auth-shell .app-footer,
.public-page .app-footer {
    width: 100%;
    flex: 0 0 auto;
    margin-bottom: 0;
    padding-bottom: 8px;
}

.app-footer a {
    color: var(--muted);
    text-decoration: none;
}

.app-footer a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.sidebar-backdrop {
    display: none;
}

.sidebar-impersonation-status {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid rgba(241, 211, 122, 0.45);
    border-radius: 8px;
    padding: 7px 9px;
    color: #fff5c2;
    background: rgba(255, 246, 216, 0.12);
    text-decoration: none;
}

.sidebar-impersonation-status span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    color: #172033;
    background: #f8d96f;
    font-size: 13px;
    font-weight: 900;
}

.sidebar-impersonation-status strong,
.sidebar-impersonation-status small {
    line-height: 1.1;
}

.sidebar-impersonation-status strong {
    color: #fff;
    font-size: 13px;
}

.sidebar-impersonation-status small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.sidebar-impersonation-status:hover {
    background: rgba(255, 246, 216, 0.18);
}

.impersonation-search-form {
    align-items: end;
}

.impersonation-search-form .field {
    min-width: min(100%, 360px);
}

.impersonation-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brand {
    font-weight: 700;
    letter-spacing: 0;
    color: var(--brand);
}

.auth-brand-logo {
    display: block;
    width: min(210px, 72%);
    height: auto;
    margin: 0 auto 18px;
}

.auth-login-head {
    text-align: center;
}

.muted {
    color: var(--muted);
}

.hint {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border: 1px solid var(--brand-line);
    border-radius: 50%;
    color: var(--brand);
    background: var(--brand-soft);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

button.tooltip {
    padding: 0;
    font-family: inherit;
}

.tooltip[aria-expanded="true"] {
    color: #fff;
    background: var(--brand);
}

.inline-help {
    margin: 4px 0 8px;
    padding: 8px 10px;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    line-height: 1.35;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-form-grid {
    grid-template-columns: 1fr;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid > .form-row {
    grid-column: 1 / -1;
}

.form-span-2 {
    grid-column: 1 / -1;
}

.full-span {
    grid-column: 1 / -1;
}

.textarea-field {
    display: grid;
    gap: 8px;
}

.ag-year-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(64px, 1fr));
    gap: 10px;
}

.form-grid > .ag-year-field.form-span-2 .ag-year-row {
    max-width: 260px;
}

.ag-year-row label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.ag-grade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 8px;
}

.ag-grade-grid .check-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    background: #fff;
}

.ag-grade-grid .check-row:has(input:checked) {
    border-color: var(--brand-line);
    background: var(--brand-soft);
}

.ag-offer-row {
    align-items: flex-end;
    gap: 14px;
}

.ag-offer-edit-form {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 0.6fr) minmax(220px, 1.5fr) auto;
    gap: 14px;
    align-items: flex-end;
    width: 100%;
}

.ag-offer-edit-form.is-stacked {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.ag-offer-edit-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.ag-offer-edit-form .field {
    margin-bottom: 0;
}

.ag-offer-edit-form textarea {
    min-height: 42px;
    resize: vertical;
}

.ag-offer-edit-form.is-stacked textarea {
    min-height: 82px;
}

.ag-offer-actions {
    display: grid;
    gap: 6px;
    justify-items: start;
    min-width: 120px;
}

.ag-offer-delete-form {
    align-self: flex-end;
}

.ag-offer-list {
    display: grid;
    gap: 16px;
}

.ag-inline-offer-list {
    display: grid;
    gap: 12px;
}

.ag-inline-offer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
}

.ag-inline-offer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 30px;
    margin-bottom: -4px;
}

.ag-inline-offer-remove {
    min-height: 30px;
    padding-inline: 10px;
}

.ag-inline-offer-actions {
    margin-top: 18px;
    margin-bottom: 12px;
}

.ag-election-submit-actions {
    margin-top: 28px;
}

.ag-offer-card {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.ag-offer-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.ag-offer-card-head strong,
.ag-offer-card-head span {
    display: block;
}

.ag-offer-card-head strong {
    margin-bottom: 4px;
    font-size: 16px;
}

.ag-offer-card-head span {
    color: var(--muted);
    font-size: 13px;
}

.ag-offer-card-head small {
    white-space: nowrap;
}

.ag-offer-edit-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
    gap: 16px;
    align-items: start;
}

.ag-offer-name-field,
.ag-offer-description-field {
    min-width: 0;
}

.ag-offer-description-field {
    grid-column: 1 / -1;
}

.ag-offer-card textarea {
    min-height: 96px;
    resize: vertical;
}

.ag-offer-card .field {
    margin-bottom: 0;
}

.ag-offer-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.ag-offer-card-actions form {
    margin: 0;
}

.ag-public-shell {
    justify-content: flex-start;
    padding-top: 42px;
    background:
        linear-gradient(160deg, rgba(49, 82, 183, 0.11), rgba(31, 122, 77, 0.06) 58%, rgba(244, 246, 251, 0) 100%),
        var(--bg);
}

.ag-public-main {
    align-items: start;
    place-items: start center;
}

.ag-public-panel {
    width: min(100%, 760px);
    padding: 0;
    overflow: hidden;
}

.ag-public-header {
    padding: 30px 32px 28px;
    color: #fff;
    background:
        linear-gradient(135deg, var(--brand-strong), var(--brand) 62%, #1f7a4d);
}

.ag-public-header .brand,
.ag-public-header .muted {
    color: #fff;
}

.ag-public-header .muted {
    max-width: 620px;
    margin-bottom: 0;
    opacity: .86;
}

.ag-public-header h1 {
    max-width: 680px;
    margin-bottom: 10px;
    font-size: 30px;
}

.ag-public-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ag-public-kicker .brand {
    margin: 0;
}

.ag-public-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: 0 12px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    font-size: 13px;
    font-weight: 700;
}

.ag-public-status.is-saved {
    color: #e9fff2;
    background: rgba(31, 122, 77, .34);
}

.ag-public-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.ag-public-meta div {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .12);
}

.ag-public-meta span,
.ag-public-meta strong {
    display: block;
}

.ag-public-meta span {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 700;
}

.ag-public-meta strong {
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ag-public-content {
    padding: 28px 32px 32px;
}

.ag-public-notice {
    margin-bottom: 20px;
    border: 1px solid #dce8f6;
    border-radius: 8px;
    padding: 16px 18px;
    background: #f8fbff;
}

.ag-public-notice strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-strong);
}

.ag-public-notice p {
    margin: 0;
    color: var(--ink);
    line-height: 1.55;
}

.ag-choice-form {
    display: grid;
    gap: 22px;
}

.ag-choice-list {
    display: grid;
    gap: 14px;
}

.ag-choice-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.ag-choice-card:focus-within {
    border-color: var(--brand-line);
    box-shadow: 0 0 0 3px rgba(49, 82, 183, 0.10);
}

.ag-choice-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--brand);
    background: var(--brand-soft);
    font-size: 18px;
    font-weight: 800;
}

.ag-choice-card .field {
    margin-bottom: 0;
}

.ag-choice-hint {
    min-height: 18px;
    margin-top: 7px;
    font-size: 13px;
}

.ag-public-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.ag-public-actions .muted {
    margin: 0;
    font-size: 14px;
}

.form-spaced {
    margin-top: 16px;
}

.info-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 14px 16px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.compact-list {
    display: grid;
    gap: 10px;
}

.compact-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
}

.compact-list-item > div {
    display: grid;
    gap: 4px;
}

.cleanup-selection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cleanup-selection-head .option-check {
    width: max-content;
}

.cleanup-table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.cleanup-table {
    min-width: 760px;
}

.cleanup-table th {
    background: #fff8e8;
}

.cleanup-table .cleanup-check-column {
    width: 76px;
    text-align: center;
}

.cleanup-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--danger);
    cursor: pointer;
}

[data-async-list] {
    transition: opacity 120ms ease;
}

[data-async-list].is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.pagination-status {
    display: grid;
    min-width: 150px;
    color: var(--ink);
    text-align: center;
    font-weight: 700;
}

.pagination-status small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.pagination .disabled {
    opacity: 0.45;
    pointer-events: none;
}

.timetable-grid-head {
    align-items: flex-start;
}

.timetable-edit-form {
    display: grid;
    gap: 20px;
}

.segmented-control {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.segmented-control[hidden] {
    display: none;
}

.segmented-control button {
    min-height: 40px;
    border: 0;
    border-right: 1px solid var(--line);
    padding: 0 16px;
    color: var(--muted);
    background: transparent;
    font-weight: 700;
    cursor: pointer;
}

.segmented-control button:last-child {
    border-right: 0;
}

.segmented-control button.active {
    color: #fff;
    background: var(--brand);
}

.timetable-week {
    display: grid;
    gap: 14px;
}

.timetable-week[hidden] {
    display: none;
}

.timetable-week-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.timetable-copy-status {
    min-height: 20px;
}

.timetable-days {
    display: grid;
    gap: 14px;
}

.timetable-day {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.timetable-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
    background: #edf3ff;
}

.timetable-day-head h3 {
    margin: 0 0 2px;
    color: var(--ink);
    font-size: 16px;
}

.timetable-slots {
    display: grid;
}

.timetable-slot {
    display: grid;
    grid-template-columns: minmax(140px, 0.8fr) minmax(220px, 1.6fr) minmax(125px, 0.7fr) minmax(125px, 0.7fr) 40px;
    align-items: end;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
    background: #fff;
}

.timetable-slot:last-child {
    border-bottom: 0;
}

.timetable-slot .field {
    margin: 0;
}

.timetable-slot .icon-button {
    margin-bottom: 1px;
}

.timetable-empty {
    padding: 15px 14px;
    background: #fff;
}

.timetable-inherit-option {
    margin-left: auto;
}

.timetable-inherited-note {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 15px 14px;
    background: #fff;
}

.timetable-inherited-note[hidden],
.timetable-day [data-day-content][hidden],
.timetable-day [data-add-slot][hidden] {
    display: none;
}

.timetable-day.is-inherited {
    border-color: #b9c9eb;
}

.timetable-day.is-inherited .timetable-day-head {
    border-bottom: 0;
}

.timetable-weekday-selection {
    margin: 0;
    border: 0;
    padding: 0;
}

.timetable-start-week[hidden] {
    display: none;
}

.timetable-weekday-selection legend {
    margin-bottom: 4px;
    color: var(--ink);
    font-weight: 700;
}

.timetable-weekday-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 12px;
}

.timetable-assignments {
    display: grid;
    gap: 10px;
    min-width: 260px;
}

.timetable-assignment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.form-actions.timetable-save-actions {
    margin-top: 30px;
}

@media (max-width: 900px) {
    .timetable-slot {
        grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr) 40px;
    }

    .timetable-slot-name {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .timetable-slot .field:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }

    .timetable-slot .field:nth-child(4) {
        grid-column: 2;
        grid-row: 3;
    }

    .timetable-slot .icon-button {
        grid-column: 3;
        grid-row: 3;
        justify-self: end;
    }

    .timetable-day-head {
        flex-wrap: wrap;
    }

    .timetable-inherit-option {
        margin-left: 0;
    }
}

@media (max-width: 620px) {
    .timetable-grid-head,
    .timetable-day-head {
        align-items: stretch;
        flex-direction: column;
    }

    .segmented-control {
        width: 100%;
    }

    .timetable-week-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .timetable-week-actions .button,
    .timetable-day-head .button {
        justify-content: center;
        width: 100%;
    }

    .timetable-slot {
        grid-template-columns: 1fr 1fr 40px;
    }

    .timetable-slot .field:first-child,
    .timetable-slot-name {
        grid-column: 1 / -1;
    }

    .timetable-slot .field:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }

    .timetable-slot .field:nth-child(4) {
        grid-column: 2;
        grid-row: 3;
    }

    .timetable-slot .icon-button {
        grid-column: 3;
        grid-row: 3;
    }
}

.device-history-panel {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
    padding: 16px;
}

.device-entry-grid {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.device-entry-grid[hidden] {
    display: none;
}

.device-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.device-history-head h2 {
    margin: 0;
    font-size: 18px;
}

.device-history-head p {
    margin: 9px 0 0;
}

.device-history-panel strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
    color: var(--brand);
}

.device-history-panel ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

.device-selected-wrap {
    margin-bottom: 18px;
}

.device-student-search > .field,
.beurlaubung-person-search > .field {
    margin-bottom: 0;
}

.device-student-search > .person-picker,
.beurlaubung-person-search > .person-picker {
    margin-top: 6px;
    margin-bottom: 8px;
}

.device-student-search > .selected-people,
.beurlaubung-person-search > .selected-people {
    margin-top: 6px;
}

.device-entry-grid .field {
    margin-bottom: 0;
}

.device-parent-notify {
    margin-top: 0;
}

.sso-settings-list {
    display: grid;
    gap: 16px;
}

.sso-callback-note {
    margin: 14px 0 0;
    overflow-wrap: anywhere;
}

.sso-provider-panel {
    display: grid;
    gap: 16px;
}

.sso-provider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sso-provider-head h2 {
    margin-bottom: 0;
}

.child-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.child-choice-card {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    background: #fff;
}

.child-choice-card:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.child-choice-card-static {
    cursor: default;
    border-color: var(--brand);
    background: var(--brand-soft);
}

.choice-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 4px solid var(--brand);
    border-radius: 50%;
    background: #fff;
}

.child-choice-card strong {
    display: block;
    color: var(--ink);
    line-height: 1.25;
}

.child-choice-card small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.sport-registration-head {
    align-items: end;
}

.eyebrow {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.compact-head {
    margin-bottom: 12px;
}

.sport-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.school-team-choice-head {
    margin-bottom: 18px;
}

.sport-choice-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.sport-choice-card.is-selected {
    border-color: var(--brand);
    background: #f8fbff;
    box-shadow: 0 10px 24px rgba(49, 82, 183, .10);
}

.sport-choice-main,
.sport-club-toggle {
    cursor: pointer;
}

.sport-choice-main {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.sport-choice-main input,
.sport-club-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sport-choice-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 5px #fff;
}

.sport-choice-card.is-selected .sport-choice-check {
    border-color: var(--brand);
    background: var(--brand);
}

.sport-choice-main strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.25;
}

.sport-choice-main small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.sport-club-toggle {
    width: 100%;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    background: #f8fafc;
}

.sport-club-toggle input {
    position: static;
    opacity: 1;
    pointer-events: auto;
}

.sport-club-toggle:has(input:checked) {
    border-color: var(--brand);
    color: var(--brand-strong);
    background: var(--brand-soft);
}

.sport-club-toggle:has(input:disabled) {
    cursor: not-allowed;
    opacity: .55;
}

.sport-competition-hint {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    color: var(--muted);
    background: #fbfcff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.sport-form-actions {
    margin-top: 22px;
}

.school-teams-main {
    display: grid;
    gap: 16px;
}

.school-teams-main > .panel + .panel,
.school-teams-main > .panel + .school-team-list {
    margin-top: 0;
}

.school-teams-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
    padding: 14px 16px;
}

.school-teams-hero h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

.school-teams-hero p {
    margin-bottom: 0;
}

.school-teams-export-head {
    padding: 14px 16px;
}

.school-teams-export-head h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

.school-teams-export-head p {
    margin-bottom: 0;
}

.school-team-metrics {
    flex: 0 0 auto;
}

.school-team-create-form {
    max-width: 720px;
}

.school-team-create-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.school-team-create-field {
    margin-bottom: 0;
}

.school-team-create-button {
    width: auto;
    min-width: 112px;
    padding-inline: 18px;
}

.school-team-management-actions {
    display: flex;
    justify-content: flex-end;
    padding: 14px 0 0;
}

.school-team-management-actions form {
    margin: 0;
}

.school-team-management-actions .muted {
    margin: 0;
    text-align: right;
}

.school-team-filter-panel .panel-head {
    align-items: flex-start;
}

.school-team-result-summary {
    margin: 0;
    flex: 0 0 auto;
}

.school-team-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: 12px;
}

.school-team-filters .field {
    margin-bottom: 0;
}

.school-team-list {
    display: grid;
    gap: 12px;
}

.school-team-section {
    padding: 0;
    overflow: hidden;
}

.school-team-section[hidden] {
    display: none;
}

.school-team-section summary {
    list-style: none;
    cursor: pointer;
}

.school-team-section summary::-webkit-details-marker {
    display: none;
}

.school-team-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
    padding: 14px 18px;
}

.school-team-summary:hover {
    background: #fbfcff;
}

.school-team-summary strong,
.school-team-summary small {
    display: block;
}

.school-team-summary strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
}

.school-team-summary small,
.school-team-summary-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.school-team-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.school-team-caret {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: var(--brand);
    background: var(--brand-soft);
    font-size: 18px;
    transition: transform 160ms ease;
}

.school-team-section[open] .school-team-caret {
    transform: rotate(90deg);
}

.school-team-section-body {
    border-top: 1px solid var(--line);
    padding: 18px 18px 18px;
}

.school-team-delete-form {
    display: flex;
    justify-content: flex-end;
    padding: 12px 0;
}

.school-team-competition-box {
    display: grid;
    gap: 12px;
    margin: 14px 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fbfcff;
}

.school-team-competition-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.school-team-competition-list .pill {
    gap: 8px;
    padding-right: 6px;
}

.school-team-competition-list form {
    display: inline-flex;
    margin: 0;
}

.school-team-competition-list button {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    color: var(--brand);
    background: transparent;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.school-team-competition-list button:hover {
    color: #fff;
    background: var(--brand);
}

.school-team-competition-form {
    display: grid;
    grid-template-columns: minmax(84px, .6fr) repeat(3, minmax(116px, 1fr)) auto;
    align-items: end;
    gap: 10px;
}

.school-team-competition-form .field {
    margin-bottom: 0;
}

.school-team-table {
    min-width: 860px;
}

.school-team-table td strong {
    color: var(--ink);
}

.school-team-no-match td {
    color: var(--muted);
    background: #fbfcff;
}

.import-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.import-fields .password-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.module-card {
    display: grid;
    grid-template-rows: minmax(116px, 1fr) auto auto;
    gap: 16px;
    min-height: 220px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.module-card:hover {
    border-color: var(--brand-line);
    box-shadow: 0 10px 24px rgba(49, 82, 183, 0.08);
}

.module-card.is-disabled {
    background: #fafbfe;
}

.module-card.is-disabled .module-icon {
    color: var(--muted);
    background: #f1f4f9;
}

.module-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
}

.module-copy,
.module-copy p {
    display: block;
}

.module-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.module-title > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.module-title h2 {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: 0;
}

.module-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.module-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.module-control label:first-child {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.module-audience {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.module-audience > span {
    flex: 1 0 100%;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.module-audience .check-row {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.module-audience .check-row:has(input:checked) {
    border-color: var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.switch {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 28px;
    cursor: pointer;
}

.switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d8deea;
    transition: background 0.15s ease;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(27, 38, 69, 0.18);
    transition: transform 0.15s ease;
}

.switch input:checked + .switch-track {
    background: var(--brand);
}

.switch input:checked + .switch-track::after {
    transform: translateX(20px);
}

.switch input:focus-visible + .switch-track {
    outline: 3px solid rgba(49, 82, 183, 0.22);
    outline-offset: 3px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.readonly-field {
    min-height: 42px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    color: var(--ink);
    font-weight: 700;
}

.app-main > .panel + .panel {
    margin-top: 16px;
}

.app-main > .panel + .grid,
.app-main > .grid + .panel {
    margin-top: 16px;
}

.app-main > .panel.hero + .panel,
.app-main > .panel.hero + .grid {
    margin-top: 0;
}

.school-year-archive-main > .compact-info-panel + .metric-grid,
.school-year-archive-main > .metric-grid + .panel,
.school-year-archive-main > .panel + .metric-grid {
    margin-top: 22px;
}

.school-year-archive-main > .metric-grid {
    margin-bottom: 2px;
}

.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    border-color: #ffd5d1;
    background: #fffafa;
}

.danger-zone h2 {
    color: var(--danger);
}

.account-password-reset-action {
    margin-left: auto;
}

.panel-spaced {
    margin-top: 16px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
}

.section-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    background: var(--brand-soft);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.section-tabs a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.section-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.active-period-panel .panel-head {
    margin-bottom: 8px;
}

.period-help {
    margin-bottom: 16px;
}

.compact-info-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.compact-info-panel h2,
.compact-info-panel p {
    margin-bottom: 4px;
}

.compact-info-panel p:last-child {
    margin-bottom: 0;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.table-icon-column {
    width: 44px;
    text-align: center;
}

.table-icon-column form {
    margin: 0;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.wrap-actions {
    flex-wrap: wrap;
    align-items: flex-start;
    white-space: normal;
}

.compact-form-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 10px;
}

.table-inline-edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.table-inline-edit input {
    width: 88px;
    min-height: 34px;
    padding: 6px 8px;
}

@media (max-width: 720px) {
    .compact-form-grid {
        grid-template-columns: 1fr;
    }
}

.visibility-action-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.absence-list {
    display: grid;
    gap: 12px;
}

.absence-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fbfcff;
}

.absence-card-main {
    min-width: 0;
}

.absence-card-top,
.absence-card-actions,
.archive-panel summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.absence-card-top {
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.absence-card h3 {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.3;
}

.absence-card-meta {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.absence-card .time-range {
    margin: 0;
}

.absence-card .time-range-row {
    padding: 0;
}

.absence-card-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.archive-panel {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.archive-panel summary {
    position: relative;
    justify-content: space-between;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--ink);
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.archive-panel summary::-webkit-details-marker {
    display: none;
}

.archive-panel summary::after {
    content: "+";
    color: var(--brand);
    font-size: 20px;
    line-height: 1;
}

.archive-panel[open] summary::after {
    content: "-";
}

.archive-list {
    margin-top: 12px;
}

.ics-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.ics-link:hover {
    border-color: var(--brand-line);
    color: var(--brand);
    background: var(--brand-soft);
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--brand);
    background: #ffffff;
    font: inherit;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.icon-button:hover {
    border-color: var(--brand-line);
    background: var(--brand-soft);
}

.icon-button.success {
    color: var(--ok);
    border-color: #b7e3c8;
    background: #effaf3;
}

.icon-button.success:hover {
    background: #dff4e7;
}

.icon-button.danger {
    color: var(--danger);
    border-color: #ffd5d1;
    background: #fff1f0;
}

.icon-button.danger:hover {
    color: #ffffff;
    border-color: var(--danger);
    background: var(--danger);
}

.search-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 14px 16px;
    align-items: end;
    margin: 4px 0 18px;
    padding: 16px;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.search-bar.archive-filter {
    grid-template-columns: minmax(280px, 2fr) minmax(160px, 0.9fr) minmax(160px, 0.9fr);
}

.search-bar.archive-filter .filter-span-2 {
    grid-column: span 2;
}

.search-bar.beurlaubung-filter .filter-date-start {
    grid-column: 1 / 2;
}

.search-bar.beurlaubung-filter .filter-date-end {
    grid-column: 2 / 4;
}

.search-bar .field {
    margin-bottom: 0;
}

.search-bar label {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0;
}

.search-actions {
    display: flex;
    gap: 10px;
    align-self: end;
}

.search-actions .button {
    min-height: 40px;
    min-width: 118px;
}

.sort-link {
    color: inherit;
    text-decoration: none;
}

.sort-link:hover {
    color: var(--brand);
}

.import-report {
    margin-bottom: 16px;
    border-color: #f2cf8f;
    background: #fff9ed;
}

.warning-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    border-color: #f2cf8f;
    background: #fff9ed;
    box-shadow: inset 4px 0 0 #d99816;
}

.warning-panel h2 {
    color: #8a5d00;
}

.warning-panel p:last-child {
    margin-bottom: 0;
}

.warning-panel .option-check {
    flex: 0 0 auto;
    margin: 0;
    border-color: #e7bd62;
    background: #ffffff;
}

.import-report ul {
    margin: 0;
    padding-left: 20px;
}

.code-sample {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    color: var(--ink);
    background: #f8fafc;
    font: 14px/1.5 Consolas, Monaco, monospace;
}

.import-preview[hidden] {
    display: none;
}

.preview-table {
    min-width: 760px;
}

.legal-text {
    line-height: 1.65;
}

.legal-hero {
    padding: 28px;
}

.legal-hero h1 {
    max-width: 760px;
    font-size: 34px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.legal-card,
.legal-section {
    line-height: 1.65;
}

.legal-card h2,
.legal-section h2 {
    margin-bottom: 8px;
}

.legal-card p,
.legal-section p {
    margin-bottom: 10px;
}

.legal-card p:last-child,
.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section {
    margin-bottom: 16px;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 10px;
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--brand-strong);
    background: var(--brand-soft);
    font-size: 13px;
    font-weight: 700;
}

.placeholder {
    color: #8a5d00;
    background: #fff8df;
    border-radius: 4px;
    padding: 1px 4px;
}

.legal-list {
    display: grid;
    gap: 10px;
}

.ticket-list {
    display: grid;
    gap: 18px;
    margin: 18px 0 24px;
}

.message-report-list {
    display: grid;
    gap: 18px;
}

.message-card {
    display: grid;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fbfcff;
}

.message-card p {
    margin: 0;
    line-height: 1.55;
}

.message-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 18px;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-list div {
    display: grid;
    gap: 3px;
}

.detail-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-list dd {
    margin: 0;
}

.detail-list.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ticket-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 20px;
}

.ticket-status-form {
    display: grid;
    align-content: start;
    gap: 12px;
}

.ticket-workflow {
    display: grid;
    gap: 18px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.ticket-card .pill-list,
.message-card .pill-list {
    margin-bottom: 18px;
}

.ticket-card h2,
.message-card h3 {
    margin-top: 0;
}

.own-ticket-list {
    margin-bottom: 0;
}

.own-ticket-list h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.ticket-response {
    display: grid;
    gap: 6px;
    border-left: 3px solid var(--brand);
    padding: 10px 12px;
    background: #f8fbff;
}

.ticket-response p {
    margin: 0;
}

.ticket-form textarea {
    min-height: 90px;
}

.ticket-note-form,
.ticket-feedback-form {
    display: grid;
    align-content: start;
    gap: 12px;
}

.ticket-last-feedback {
    margin: 0 0 8px;
    border-left: 3px solid var(--brand);
    padding: 8px 10px;
    background: #f8fbff;
}

.problem-report-description-field {
    margin-top: 10px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

tr:last-child td {
    border-bottom: 0;
}

.table-meta-list {
    display: grid;
    gap: 8px;
    min-width: 280px;
    margin: 0;
}

.table-meta-list div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.table-meta-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.table-meta-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
}

.hero {
    margin-bottom: 16px;
    border-color: var(--brand-line);
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-soft) 100%);
}

h1, h2, p {
    margin-top: 0;
}

h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
}

h2 {
    font-size: 16px;
    margin-bottom: 12px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="search"],
input[type="file"],
textarea,
select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="search"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(49, 82, 183, 0.16);
    outline: 0;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.field {
    margin-bottom: 24px;
}

.field-hint {
    display: block;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.45;
}

.password-strength {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.password-strength .field-hint {
    margin-top: 0;
}

.password-strength-meter {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.password-strength-meter span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #d97706;
    transition: width 0.18s ease, background-color 0.18s ease;
}

.password-strength[data-score="-1"] .password-strength-meter span {
    background: #cbd5e1;
}

.password-strength[data-score="0"] .password-strength-meter span,
.password-strength[data-score="1"] .password-strength-meter span {
    background: #dc2626;
}

.password-strength[data-score="2"] .password-strength-meter span {
    background: #d97706;
}

.password-strength[data-score="3"] .password-strength-meter span {
    background: #15803d;
}

.password-strength-label {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.course-class-field .field-hint {
    display: block;
    margin-top: 14px;
}

.course-name-field .field-hint {
    display: block;
    margin-top: 14px;
}

.room-subject-field .field-hint {
    display: block;
    margin-top: 14px;
}

.course-class-field select.is-multiple {
    min-height: 156px;
}

.result-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--muted);
    background: #fbfcff;
    font-size: 14px;
}

.result-summary strong {
    color: var(--brand-strong);
    font-size: 18px;
    line-height: 1;
}

.result-summary-note {
    margin-left: auto;
    color: var(--brand-strong);
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.table-detail-row td {
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.detail-separator {
    color: var(--border-strong);
    margin: 0 8px;
}

.entry-detail-notes {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.entry-followup-form {
    display: grid;
    gap: 10px;
    max-width: 760px;
}

.entry-followup-form textarea {
    min-height: 82px;
}

.entry-followup-form .button {
    justify-self: start;
}

.todo-list {
    display: grid;
    gap: 12px;
}

.offline-todo-item {
    border-color: #facc15;
    background: #fffbeb;
}

.todo-overview-panel {
    margin-top: 24px;
}

.quick-task-form {
    display: grid;
    gap: 14px;
    max-width: 760px;
}

.quick-task-form textarea {
    min-height: 110px;
}

.elternsprechtag-pause-fields {
    margin-top: 0.85rem;
}

.elternsprechtag-time-fields,
.beurlaubung-end-fields,
.todo-create-detail-fields {
    margin-top: 1.5rem;
}

.beurlaubung-time-mode-field {
    margin-top: 1.5rem;
}

.elternsprechtag-pause-fields[hidden] {
    display: none;
}

.elternsprechtag-booking-fields {
    margin-top: 1rem;
}

.elternsprechtag-suggestion-fields {
    margin-top: 1rem;
}

.elternsprechtag-suggestion-actions {
    margin-top: 1.35rem;
}

.elternsprechtag-create-actions {
    margin-top: 2.6rem;
}

.elternsprechtag-overview {
    display: grid;
    gap: 12px;
}

.elternsprechtag-overview-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.elternsprechtag-overview-check {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid #dbe8f5;
    border-radius: 8px;
    background: #f8fbff;
}

.elternsprechtag-overview-check span,
.elternsprechtag-overview-check small {
    color: #64748b;
    font-size: 13px;
}

.elternsprechtag-overview-check strong {
    color: #152033;
    font-size: 22px;
    line-height: 1.1;
}

.elternsprechtag-overview-notices {
    display: grid;
    gap: 8px;
    border: 1px solid #f2cf8f;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff9ed;
    box-shadow: inset 4px 0 0 #d99816;
}

.elternsprechtag-overview-notices p {
    margin: 0;
    color: #684600;
    font-weight: 700;
}

@media (max-width: 760px) {
    .elternsprechtag-overview-checks {
        grid-template-columns: 1fr;
    }
}

.elternsprechtag-slot-actions {
    justify-content: flex-end;
    margin-top: 0;
    margin-bottom: 1rem;
}

.elternsprechtag-slot-actions .inline-save-state {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-top: 0;
    padding: 0 8px;
    border-radius: 999px;
    color: #64748b;
    font-weight: 700;
}

.elternsprechtag-slot-actions .inline-save-state:not(:empty) {
    background: #f8fafc;
}

.elternsprechtag-field-save-state {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    margin-left: 8px;
    margin-top: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.elternsprechtag-field-save-state:empty {
    display: none;
}

.elternsprechtag-planning-table tr:last-child th,
.elternsprechtag-planning-table tr:last-child td {
    border-bottom: 0;
}

.elternsprechtag-planning-form > .panel + .panel {
    margin-top: 28px;
}

.elternsprechtag-note-open {
    margin-top: 6px;
}

.inline-actions .elternsprechtag-note-open {
    margin-top: 0;
}

.inline-actions form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.inline-select-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inline-select-action select {
    min-height: 32px;
    max-width: 190px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 13px;
}

.termin-colleague-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.termin-colleague-list .pill {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.termin-invite-note {
    margin-top: 4px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

.elternsprechtag-note-modal-backdrop[hidden] {
    display: none;
}

.elternsprechtag-note-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.28);
}

.elternsprechtag-note-modal {
    position: relative;
    display: grid;
    gap: 12px;
    width: min(560px, 100%);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
}

.elternsprechtag-note-modal h2 {
    margin: 0;
}

.elternsprechtag-note-modal .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid #dbe5f4;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
}

.elternsprechtag-note-modal .modal-close:hover,
.elternsprechtag-note-modal .modal-close:focus-visible {
    border-color: #c8d3ff;
    background: #eef3ff;
    color: #3152b7;
}

.elternsprechtag-note-modal form {
    display: grid;
    gap: 12px;
}

.elternsprechtag-note-modal textarea {
    min-height: 180px;
    resize: vertical;
}

.elternsprechtag-decline-details {
    position: relative;
}

.elternsprechtag-decline-details summary {
    list-style: none;
    cursor: pointer;
}

.elternsprechtag-decline-details summary::-webkit-details-marker {
    display: none;
}

.elternsprechtag-decline-form {
    display: grid;
    gap: 8px;
    width: min(320px, 76vw);
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.elternsprechtag-decline-form label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.elternsprechtag-decline-form textarea {
    resize: vertical;
}

.elternsprechtag-slot-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.elternsprechtag-slot {
    min-height: 44px;
}

@media (max-width: 1180px) {
    .elternsprechtag-slot-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .elternsprechtag-slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    .elternsprechtag-slot-grid {
        grid-template-columns: 1fr;
    }
}

.todo-selected-people {
    margin-bottom: 18px;
}

.todo-group-picker {
    display: grid;
    gap: 10px;
}

.todo-group-picker h2 {
    margin: 0;
}

.todo-person-picker {
    margin-top: 6px;
    margin-bottom: 8px;
}

.todo-selected-people {
    margin-top: 6px;
}

.todo-selected-person {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    padding-right: 42px;
}

.todo-selected-person > button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
}

.todo-person-picker .person-picker-results {
    position: relative;
    z-index: 2;
}

.todo-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
    gap: 16px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.todo-item.is-done {
    background: #f8fafc;
}

.todo-main p {
    margin: 8px 0 0;
    color: var(--text);
}

.todo-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.todo-title-row h3 {
    margin: 0;
    font-size: 16px;
}

.todo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.todo-status-form {
    margin: 0;
}

.todo-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.todo-check-form {
    margin: 0;
}

.icon-action {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand-strong);
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1;
}

.icon-action.success {
    color: #137333;
    border-color: #bfe3ca;
    background: #f0fbf4;
}

.icon-action.success:hover {
    color: #fff;
    background: #137333;
    border-color: #137333;
}

.button.disabled,
.button.disabled:hover {
    color: var(--muted);
    background: #f4f6fb;
    border-color: var(--line);
    cursor: default;
}

.form-section {
    margin-top: 8px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.form-section.no-divider {
    border-top: 0;
    padding-top: 0;
}

.info-list {
    display: grid;
    gap: 10px;
}

.info-list > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.info-list strong {
    display: block;
    margin-bottom: 4px;
}

.info-list p {
    margin: 0;
}

.demo-credentials-panel {
    border-color: var(--brand-line);
    background: #f8fbff;
}

.demo-credentials-details {
    margin-top: 14px;
}

.demo-credentials-details summary {
    cursor: pointer;
    color: var(--brand);
    font-weight: 700;
}

.demo-credentials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 12px;
}

.demo-credentials-grid > div {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.demo-credentials-list {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.demo-credentials-list li {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 13px;
}

.inline-create-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(100%, 460px);
}

.inline-create-form input {
    min-width: 220px;
    flex: 1 1 260px;
}

.demo-school-form {
    align-items: flex-end;
    flex-wrap: wrap;
}

.demo-school-form .field {
    flex: 1 1 240px;
    margin-bottom: 0;
}

.demo-school-form .field input {
    width: 100%;
    min-width: 0;
}

.demo-school-form button[type="submit"] {
    align-self: flex-end;
    min-height: 42px;
}

.demo-school-loading {
    flex: 1 1 100%;
    margin: 2px 0 0;
    font-weight: 600;
}

.demo-school-form.is-submitting {
    opacity: 0.82;
}

.demo-school-form.is-submitting button[type="submit"] {
    cursor: wait;
}

.school-delete-form {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.school-delete-loading {
    margin: 0;
    font-weight: 600;
}

.school-delete-form.is-submitting {
    opacity: 0.82;
}

.school-delete-form.is-submitting button[type="submit"] {
    cursor: wait;
}

.school-logo-field {
    gap: 12px;
}

.school-logo-preview {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 12px;
    border: 1px solid #dbe4f3;
    border-radius: 8px;
    background: #f8fbff;
}

.school-logo-preview-image {
    display: grid;
    place-items: center;
    width: min(100%, 240px);
    min-height: 92px;
    padding: 12px;
    border: 1px solid #e6edf8;
    border-radius: 8px;
    background: #fff;
}

.school-logo-preview img {
    max-width: 100%;
    max-height: 92px;
    object-fit: contain;
}

.school-logo-preview .option-check {
    margin: 0;
}

.school-logo-field input[type="file"] {
    margin-top: 4px;
}

.school-color-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.school-color-input input[type="color"] {
    width: 52px;
    min-width: 52px;
    height: 42px;
    padding: 2px;
    border: 1px solid #cfd8ea;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.school-color-input span {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    font-weight: 700;
}

.school-color-reset {
    min-height: 36px;
    border: 1px solid var(--brand-line);
    padding: 7px 12px;
    color: var(--brand);
    background: var(--brand-soft);
}

.school-settings-form {
    display: grid;
    gap: 28px;
}

.school-settings-form > .panel-head {
    margin-bottom: 0;
}

.school-settings-form .form-section {
    margin-top: 0;
    padding-top: 28px;
}

.school-settings-form .form-section + .form-section {
    padding-top: 30px;
}

.school-settings-form .panel-head {
    margin-bottom: 4px;
}

.school-settings-form .panel-head h2 {
    margin-bottom: 4px;
}

.school-settings-form .school-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
}

.school-settings-form .school-settings-grid-main {
    align-items: end;
}

.school-settings-name-field,
.school-settings-form .school-settings-grid > .form-span-2 {
    grid-column: 1 / -1;
}

.school-settings-form .school-login-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.school-settings-form .school-login-options .option-check {
    min-height: 46px;
    margin: 0;
}

.school-settings-form .school-impressum-grid {
    align-items: start;
}

@media (max-width: 700px) {
    .school-settings-form {
        gap: 24px;
    }

    .school-settings-form .school-settings-grid,
    .school-settings-form .school-login-options {
        grid-template-columns: 1fr;
    }

    .school-settings-form .form-section,
    .school-settings-form .form-section + .form-section {
        padding-top: 24px;
    }

    .school-logo-preview {
        align-items: flex-start;
    }

    .school-logo-preview-image {
        width: 100%;
    }

    .school-logo-preview img {
        max-width: min(100%, 220px);
    }
}

.student-id-main {
    align-items: center;
    justify-content: center;
    width: min(1320px, calc(100% - 20px));
    min-height: calc(100dvh - var(--app-header-height));
    gap: 0;
}

.student-id-card {
    position: relative;
    --student-id-color: #3152b7;
    width: min(100%, 720px);
    margin: 0 auto;
    border: 1px solid #cfd8ea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 34px rgba(25, 42, 86, 0.12);
}

.student-id-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    color: #fff;
    background: var(--student-id-color);
    background: linear-gradient(100deg, color-mix(in srgb, var(--student-id-color) 72%, #000) 0%, var(--student-id-color) 50%, color-mix(in srgb, var(--student-id-color) 8%, #fff) 70%, #fff 78%, #fff 100%);
    border-bottom: 1px solid #d7e0f2;
}

.student-id-topline.has-no-school-logo {
    background: var(--student-id-color);
}

.student-id-topline span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff;
    color: var(--student-id-color);
    font-weight: 800;
}

.student-id-topline strong {
    flex: 1;
    text-align: left;
    font-size: 22px;
}

.student-id-topline.has-no-school-logo strong {
    flex: initial;
}

.student-id-school-logo {
    width: auto;
    max-width: 112px;
    max-height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.student-id-card.is-blocked .student-id-topline {
    background: #9b1c1c;
}

.student-id-card.is-blocked .student-id-topline span {
    color: #9b1c1c;
}

.student-id-blocked-notice {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 34px 22px;
    color: #9b1c1c;
    text-align: center;
}

.student-id-blocked-notice span {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: #fff;
    background: #9b1c1c;
    font-size: 30px;
    font-weight: 900;
}

.student-id-blocked-notice h1 {
    margin: 4px 0 0;
    font-size: clamp(26px, 6vw, 38px);
    line-height: 1.05;
}

.student-id-blocked-notice strong {
    color: #7f1d1d;
    font-size: 18px;
}

.student-id-blocked-notice p {
    max-width: 34rem;
    margin: 0;
    color: #7f1d1d;
    line-height: 1.45;
}

.student-id-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 158px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px 24px 12px;
}

.student-id-photo {
    display: grid;
    place-items: center;
    width: 158px;
    height: 194px;
    border: 1px dashed #9fb0cf;
    border-radius: 8px;
    background: #f4f7fd;
    color: var(--student-id-color);
    font-size: 24px;
    font-weight: 800;
}

.student-id-photo img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.student-id-person {
    display: grid;
    gap: 5px;
}

.student-id-person > span,
.student-id-facts dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.student-id-person strong {
    color: var(--ink);
    font-size: clamp(24px, 4.2vw, 34px);
    line-height: 1.08;
}

.student-id-name {
    display: grid;
    gap: 2px;
}

.student-id-name span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.student-id-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.student-id-status.is-valid {
    border: 1px solid #8fcfa9;
    color: #116235;
    background: #e9f8ef;
}

.student-id-status.is-blocked {
    border: 1px solid #f0a6a6;
    color: #9b1c1c;
    background: #fff0f0;
}

.student-id-facts {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px 24px 16px;
}

.student-id-facts div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-top: 1px solid #e4e9f3;
}

.student-id-facts dt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.student-id-fact-icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--student-id-color);
    color: color-mix(in srgb, var(--student-id-color) 78%, #000);
    background: #edf4ff;
    background: color-mix(in srgb, var(--student-id-color) 10%, #fff);
}

.student-id-fact-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.student-id-facts dd {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.student-id-qr {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 0 24px 22px;
    border: 1px solid #d9e3f5;
    border-radius: 8px;
    padding: 14px 16px 16px;
    background: rgba(248, 251, 255, 0.92);
}

.student-id-qr svg {
    width: min(208px, 100%);
    height: auto;
    border-radius: 8px;
}

.student-id-qr p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.student-id-qr p span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
}

.student-id-photo-request {
    width: 100%;
    margin-top: 8px;
    text-align: center;
}

.student-id-photo-request summary {
    color: var(--brand);
    font-weight: 700;
    cursor: pointer;
}

.student-id-photo-request form {
    display: grid;
    gap: 7px;
    margin-top: 8px;
}

.student-id-photo-request input[type="file"],
.student-id-photo-upload-form input[type="file"] {
    font-size: 12px;
}

.student-id-photo-settings-form {
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) auto;
    align-items: end;
}

.student-id-photo-settings-form .field {
    margin-bottom: 0;
}

.student-id-photo-settings-form .form-actions {
    align-self: end;
    margin-top: 0;
    padding-bottom: 0;
}

.student-id-photo-settings-form .form-save-status {
    flex-basis: 100%;
}

.student-id-photo-request-list {
    display: grid;
    gap: 12px;
}

.student-id-photo-request-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #f8fbff;
}

.student-id-photo-request-card img {
    width: 86px;
    height: 106px;
    border-radius: 8px;
    object-fit: cover;
}

.student-id-photo-request-card strong {
    display: block;
    margin-bottom: 5px;
}

.student-id-photo-request-card .muted {
    margin: 0 0 12px;
}

.student-id-photo-request-card .inline-actions {
    justify-content: flex-start;
    gap: 10px;
}

.student-id-photo-reject-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.student-id-photo-reject-form input {
    width: min(260px, 100%);
    min-height: 36px;
}

.student-id-photo-current {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.student-id-photo-current span {
    font-weight: 700;
}

.student-id-photo-upload-form {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

@media (max-width: 760px) {
    .student-id-main {
        flex: 1 1 auto;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        height: auto;
        min-height: calc(100dvh - var(--app-header-height));
        padding: 8px 8px max(12px, env(safe-area-inset-bottom));
        overflow-x: hidden;
    }

    .student-id-card {
        display: grid;
        grid-template-rows: auto auto auto minmax(0, 1fr);
        width: min(100%, 100%);
        border-radius: 8px;
        overflow: hidden;
    }

    .student-id-topline {
        padding: 10px 13px;
        background: var(--student-id-color);
        background: linear-gradient(100deg, color-mix(in srgb, var(--student-id-color) 72%, #000) 0%, var(--student-id-color) 42%, color-mix(in srgb, var(--student-id-color) 8%, #fff) 58%, #fff 66%, #fff 100%);
    }

    .student-id-topline.has-no-school-logo {
        background: var(--student-id-color);
    }

    .student-id-topline span {
        width: 41px;
        height: 41px;
        font-size: 15px;
    }

    .student-id-topline strong {
        font-size: 19px;
    }

    .student-id-school-logo {
        max-width: 86px;
        max-height: 42px;
        padding: 3px;
    }

    .student-id-body {
        grid-template-columns: 138px minmax(0, 1fr);
        gap: 15px;
        padding: 14px 15px 6px;
    }

    .student-id-person {
        gap: 5px;
    }

    .student-id-photo {
        width: 138px;
        height: 169px;
        font-size: 34px;
    }

    .student-id-person > span,
    .student-id-facts dt {
        font-size: 11px;
    }

    .student-id-person strong {
        font-size: clamp(30px, 8.6vw, 42px);
    }

    .student-id-status {
        min-height: 27px;
        padding: 4px 11px;
        font-size: 13px;
    }

    .student-id-facts {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 2px 15px 8px;
    }

    .student-id-facts div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 0;
    }

    .student-id-facts dt {
        gap: 8px;
    }

    .student-id-fact-icon {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }

    .student-id-fact-icon svg {
        width: 15px;
        height: 15px;
    }

    .student-id-facts dd {
        font-size: 15px;
        text-align: right;
    }

    .student-id-qr {
        align-content: center;
        gap: 0;
        min-height: 0;
        margin: 0 12px 10px;
        padding: 8px 12px 10px;
    }

    .student-id-qr svg {
        width: min(224px, 34dvh, 100%);
        max-height: 100%;
    }

    .student-id-qr p {
        display: none;
    }

    .student-id-photo-request {
        margin-top: 4px;
    }

    .student-id-photo-request summary,
    .student-id-photo-request p,
    .student-id-photo-request input[type="file"] {
        font-size: 11px;
    }

    .student-id-photo-request form {
        gap: 4px;
        margin-top: 5px;
    }
}

@media (max-width: 640px) {
    .student-id-photo-request-card {
        grid-template-columns: 1fr;
    }

    .student-id-photo-request-card img {
        width: 112px;
        height: 138px;
    }

    .student-id-photo-request-card .inline-actions,
    .student-id-photo-reject-form {
        align-items: stretch;
        flex-direction: column;
    }

    .student-id-photo-reject-form input,
    .student-id-photo-reject-form .button {
        width: 100%;
    }

    .student-id-photo-settings-form {
        grid-template-columns: 1fr;
    }

    .student-id-photo-settings-form .form-actions,
    .student-id-photo-settings-form .button {
        width: 100%;
    }

    .student-id-photo-settings-form .button {
        justify-content: center;
    }
}

@media (max-width: 760px) and (max-height: 700px) {
    .student-id-main {
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .student-id-topline {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .student-id-body {
        padding-top: 10px;
    }

    .student-id-facts {
        gap: 0;
        padding-bottom: 7px;
    }

    .student-id-facts div {
        padding: 6px 0;
    }

    .student-id-qr {
        padding-top: 5px;
        padding-bottom: 6px;
    }

    .student-id-qr svg {
        width: min(190px, 31dvh, 100%);
    }
}

@media (max-width: 760px) and (max-height: 660px) {
    .student-id-main {
        padding-top: 2px;
        padding-bottom: max(4px, env(safe-area-inset-bottom));
    }

    .student-id-topline {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .student-id-topline span {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .student-id-body {
        grid-template-columns: 106px minmax(0, 1fr);
        padding-top: 9px;
        padding-bottom: 3px;
    }

    .student-id-photo {
        width: 106px;
        height: 130px;
    }

    .student-id-facts {
        gap: 0;
        padding-bottom: 5px;
    }

    .student-id-facts div {
        padding: 5px 0;
    }

    .student-id-qr {
        padding-top: 5px;
        padding-bottom: 6px;
    }

    .student-id-qr svg {
        width: min(168px, 26dvh, 100%);
    }

    .student-id-qr p {
        display: none;
    }
}

.student-id-verify-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(180deg, #f5f8ff 0%, #eef3fb 100%);
}

.student-id-verify-card {
    width: min(100%, 520px);
    border: 1px solid #d6deef;
    border-radius: 8px;
    padding: 26px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(25, 42, 86, 0.14);
}

.student-id-verify-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 10px;
}

.student-id-verify-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    color: #fff;
    background: #3152b7;
    font-weight: 900;
}

.student-id-verify-school-logo {
    width: auto;
    max-width: 130px;
    max-height: 54px;
    object-fit: contain;
    border: 1px solid #e2e8f4;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
}

.student-id-verify-kicker {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.student-id-verify-state {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 18px;
    text-align: center;
}

.student-id-verify-state span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-weight: 900;
}

.student-id-verify-card.is-valid .student-id-verify-state span {
    color: #116235;
    background: #e9f8ef;
}

.student-id-verify-card.is-invalid .student-id-verify-state span {
    color: #9b1c1c;
    background: #fff0f0;
}

.student-id-verify-state h1 {
    margin: 0;
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.08;
}

.student-id-verify-state h1 small {
    color: var(--muted);
    font-size: 0.55em;
    font-weight: 800;
}

.student-id-verify-confirmation {
    display: grid;
    gap: 4px;
    margin: 0 0 18px;
    border: 1px solid #d8efe2;
    border-radius: 8px;
    padding: 12px;
    background: #f3fbf6;
    color: #116235;
    line-height: 1.35;
    text-align: center;
}

.student-id-verify-card.is-invalid .student-id-verify-confirmation {
    border-color: #ffd5d1;
    background: #fff7f7;
    color: #9b1c1c;
}

.student-id-verify-confirmation strong {
    font-size: 17px;
}

.student-id-verify-confirmation span,
.student-id-verify-confirmation p {
    margin: 0;
    font-weight: 700;
}

.student-id-verify-confirmation p span {
    display: block;
}

.student-id-verify-facts {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.student-id-verify-facts div {
    padding: 12px;
    background: #fff;
}

.student-id-verify-facts div + div {
    border-top: 1px solid var(--line);
}

.student-id-verify-facts dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.student-id-verify-facts dd {
    margin: 2px 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.student-id-verify-note {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.45;
    text-align: center;
}

.student-id-verify-time {
    margin-bottom: 0;
    font-weight: 700;
    text-align: center;
}

.student-parent-panel {
    display: grid;
    gap: 18px;
}

.student-parent-assignment-form {
    display: grid;
    gap: 22px;
}

.student-parent-table-wrap {
    margin-top: 4px;
}

.student-parent-table th,
.student-parent-table td {
    padding: 14px 16px;
    vertical-align: middle;
}

.student-parent-table th:first-child,
.student-parent-table td:first-child {
    width: 92px;
    text-align: center;
}

.student-parent-table select {
    min-width: 170px;
}

.student-parent-contact {
    display: block;
    margin-bottom: 4px;
}

.student-parent-contact strong {
    overflow-wrap: anywhere;
}

.student-parent-table .check-row {
    min-height: 40px;
}

.student-parent-add-section {
    padding-top: 26px;
}

.student-parent-add-section h2 {
    margin-bottom: 4px;
}

.student-parent-add-grid {
    grid-template-columns: minmax(280px, 1.5fr) minmax(180px, 0.8fr) minmax(170px, 0.7fr);
    align-items: end;
    gap: 18px 22px;
}

.student-parent-add-grid .field {
    margin-bottom: 0;
}

.student-parent-add-account select {
    width: 100%;
}

@media (max-width: 760px) {
    .student-parent-table th,
    .student-parent-table td {
        padding: 12px;
    }

    .student-parent-table select {
        min-width: 150px;
    }

    .student-parent-add-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .student-id-verify-page {
        align-items: start;
        padding: 16px;
        min-height: 100dvh;
    }

    .student-id-verify-card {
        margin-top: 22px;
        padding: 20px;
    }

    .student-id-verify-brand {
        gap: 8px;
    }

    .student-id-verify-school-logo {
        max-width: 112px;
        max-height: 48px;
    }

    .student-id-verify-state {
        justify-content: center;
        text-align: center;
    }

    .student-id-verify-facts {
        text-align: left;
    }
}

.profile-student-id-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-student-id-panel h2 {
    margin: 0 0 4px;
}

.profile-student-id-panel p {
    margin: 0;
}

.emphasized-section {
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    padding: 18px;
    background: #f8fbff;
}

.emphasized-section h2 {
    color: var(--brand-strong);
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.option-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
    font-weight: 700;
}

.option-check input {
    flex: 0 0 auto;
}

.plain-check {
    min-height: 0;
    border: 0;
    padding: 0;
    background: transparent;
}

.person-picker {
    position: relative;
    margin-top: 6px;
    margin-bottom: 8px;
}

.calendar-entry-form .person-picker {
    margin-top: 6px;
    margin-bottom: 8px;
}

.calendar-entry-form .selected-people {
    margin-top: 6px;
    margin-bottom: 16px;
}

.calendar-invite-groups {
    margin: -4px 0 14px;
}

.calendar-group-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calendar-group-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    padding: 6px 11px;
    color: var(--ink);
    background: var(--brand-soft);
    font: inherit;
    cursor: pointer;
}

.calendar-group-chip:hover,
.calendar-group-chip:focus {
    border-color: var(--brand);
    background: #eef5ff;
    outline: 0;
}

.calendar-group-chip small {
    color: var(--muted);
    font-size: 12px;
}

.calendar-group-save {
    margin: -8px 0 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    background: #fbfcff;
}

.calendar-group-save summary {
    color: var(--brand);
    font-weight: 700;
    cursor: pointer;
}

.calendar-group-save-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-top: 12px;
}

.compact-field {
    margin-bottom: 0;
}

.compact-help {
    margin: 8px 0 0;
}

@media (max-width: 720px) {
    .calendar-group-save-row {
        grid-template-columns: 1fr;
    }
}

.person-picker-results {
    display: grid;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.person-picker-results[hidden] {
    display: none;
}

.person-result {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    min-height: 52px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.person-result[hidden],
.person-empty[hidden] {
    display: none;
}

.person-result:hover,
.person-result:focus {
    border-color: var(--brand-line);
    background: var(--brand-soft);
    outline: 0;
}

.calendar-group-result {
    border-color: #dbe7ff;
    background: #f8fbff;
}

.person-result:disabled {
    color: var(--muted);
    background: #f4f6fb;
    cursor: default;
    opacity: 0.7;
}

.person-result span {
    color: var(--muted);
    font-size: 13px;
}

.person-empty {
    padding: 10px;
}

.selected-people {
    display: grid;
    gap: 8px;
    min-height: 36px;
    margin-bottom: 24px;
}

.selected-people[hidden] {
    display: none;
}

.form-actions.faecher-form-actions {
    margin-top: 24px;
}

.file-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.file-picker input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.file-picker > label {
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}

.file-picker [data-file-picker-name] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-picker input[type="file"]:focus-visible + label {
    outline: 3px solid rgba(49, 82, 183, .22);
    outline-offset: 2px;
}

.selected-person {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(92px, 120px) minmax(92px, 120px) 28px;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    padding: 8px 8px 8px 12px;
    color: var(--brand-strong);
    background: var(--brand-soft);
    font-weight: 700;
}

.selected-student {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    padding-right: 40px;
}

.selected-student > button {
    position: absolute;
    top: 10px;
    right: 8px;
}

.beurlaubung-selected-person {
    position: relative;
    grid-template-columns: minmax(180px, 1fr) minmax(92px, 120px) minmax(92px, 120px);
    padding-right: 40px;
}

.beurlaubung-selected-person > button {
    position: absolute;
    top: 10px;
    right: 8px;
}

.selected-person-name {
    min-width: 0;
}

.selected-person label {
    display: grid;
    gap: 4px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.selected-person input[type="number"] {
    min-height: 34px;
    padding: 6px 8px;
}

.selected-person button {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    color: var(--brand);
    background: transparent;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.selected-person button:hover {
    color: #fff;
    background: var(--brand);
}

.calendar-invitations {
    border-color: #dbe7ff;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.calendar-card-list {
    display: grid;
    gap: 14px;
}

.calendar-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.calendar-hero > div:first-child {
    min-width: 0;
}

.calendar-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: auto;
    margin-top: 0;
}

.calendar-export-button {
    margin-left: auto;
}

.calendar-month-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.calendar-month-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.calendar-mobile-view-switch {
    display: none;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    background: #f8fafc;
}

.calendar-mobile-view-switch button {
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    padding: 5px 12px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.calendar-mobile-view-switch button.active {
    background: #3152b7;
    color: #fff;
    box-shadow: 0 2px 7px rgba(49, 82, 183, .22);
}

.calendar-filter-panel {
    padding-top: 16px;
    padding-bottom: 16px;
}

.calendar-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.calendar-switch-control {
    --calendar-switch-color: var(--brand);
    --calendar-switch-soft: var(--brand-soft);
    --calendar-switch-focus: rgba(49, 82, 183, .24);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px 6px 8px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.calendar-switch-control::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--calendar-switch-color);
    box-shadow: 0 0 0 4px var(--calendar-switch-soft);
}

.calendar-switch-public {
    --calendar-switch-color: #1f7a4d;
    --calendar-switch-soft: #e8f7f1;
    --calendar-switch-focus: rgba(31, 122, 77, .22);
}

.calendar-switch-staff {
    --calendar-switch-color: #b7791f;
    --calendar-switch-soft: #fff7e6;
    --calendar-switch-focus: rgba(183, 121, 31, .24);
}

.calendar-switch-holidays {
    --calendar-switch-color: #0f6f8f;
    --calendar-switch-soft: #e7f7fb;
    --calendar-switch-focus: rgba(15, 111, 143, .22);
}

.calendar-switch-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calendar-switch-slider {
    position: relative;
    width: 42px;
    height: 22px;
    flex: 0 0 auto;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #e8edf5;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.calendar-switch-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .24);
    transition: transform 160ms ease;
}

.calendar-switch-control input:checked + .calendar-switch-slider {
    border-color: var(--calendar-switch-color);
    background: var(--calendar-switch-color);
}

.calendar-switch-control input:checked + .calendar-switch-slider::after {
    transform: translateX(20px);
}

.calendar-switch-control input:focus-visible + .calendar-switch-slider {
    outline: 3px solid var(--calendar-switch-focus);
    outline-offset: 2px;
}

.calendar-feed-panel {
    display: grid;
    gap: 14px;
}

.calendar-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.calendar-feed-card {
    display: grid;
    gap: 7px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.calendar-feed-card strong {
    color: var(--ink);
}

.calendar-feed-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.calendar-feed-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.calendar-feed-link-row a {
    min-width: 0;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-feed-link-row small {
    grid-column: 1 / -1;
    min-height: 16px;
    font-size: 12px;
}

.profile-calendar-feed-panel details {
    display: grid;
    gap: 12px;
}

.profile-calendar-feed-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    list-style: none;
}

.profile-calendar-feed-panel summary::-webkit-details-marker {
    display: none;
}

.profile-calendar-feed-panel summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand-strong);
    background: var(--brand-soft);
    font-weight: 800;
}

.profile-calendar-feed-panel details[open] summary::after {
    content: "-";
}

.profile-calendar-feed-panel summary span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.profile-calendar-feed-hint {
    margin: 12px 0 0;
}

.calendar-end-fields {
    margin-top: 14px;
}

.calendar-start-fields {
    margin-top: 14px;
}

.calendar-mode-field {
    margin-top: 14px;
}

.calendar-entry-form {
    display: grid;
    gap: 14px;
}

.calendar-entry-form .field {
    margin-bottom: 0;
}

.calendar-entry-form .form-grid,
.calendar-entry-form .form-row {
    gap: 14px;
}

.calendar-entry-date-fields {
    margin-top: 8px;
}

.calendar-entry-mode-field,
.calendar-entry-location-field {
    margin-top: 0;
}

.calendar-entry-time-fields[hidden],
.calendar-entry-time-fields.is-hidden {
    display: none;
}

.calendar-school-event-form {
    display: grid;
    gap: 14px;
}

.calendar-school-event-form .field {
    margin-bottom: 0;
}

.calendar-school-event-form .form-grid,
.calendar-school-event-form .form-row {
    gap: 14px;
}

.calendar-school-event-date-fields {
    margin-top: 8px;
}

.calendar-school-event-mode-field {
    margin-top: 0;
}

.calendar-school-event-time-fields[hidden],
.calendar-school-event-time-fields.is-hidden {
    display: none;
}

.calendar-location-field {
    margin-top: 14px;
}

.inline-select-form {
    margin: 0;
}

.inline-select-form select {
    min-height: 34px;
    padding-block: 5px;
    font-size: 13px;
}

.school-events-list-panel {
    margin-top: 24px;
}

.school-events-export-form {
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}

.school-events-year-select {
    display: inline-flex;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: flex-end;
    text-align: right;
    width: 100%;
}

.school-events-export-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.school-events-export-form label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.school-events-export-form select {
    width: 100%;
    min-width: 150px;
}

.metric-grid.school-events-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.school-events-table th:nth-child(3),
.school-events-table td:nth-child(3) {
    width: 260px;
}

.school-events-table th:nth-child(4),
.school-events-table td:nth-child(4) {
    width: 88px;
}

.visibility-toggle-form {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
}

.school-event-standard-note {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .metric-grid.school-events-metrics {
        grid-template-columns: 1fr;
    }

    .school-events-export-form {
        width: 100%;
        align-items: stretch;
        justify-content: flex-start;
    }

    .school-events-year-select {
        flex: 1 1 auto;
        text-align: left;
    }

    .school-events-export-actions {
        justify-content: flex-start;
    }

    .school-events-export-form select {
        min-width: 0;
        flex: 1 1 140px;
    }
}

.table-month-row th {
    padding: 18px 12px 10px;
    background: #eef5ff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    text-align: left;
    letter-spacing: 0;
}

.school-term-row-public td {
    background: #ecfdf5;
}

.school-term-row-vacation td {
    background: #eaf8f2;
}

.school-term-row-holiday td {
    background: #eaf8f2;
}

.school-term-row-movable td {
    background: #fff7ed;
}

.timetable-profile-actions {
    margin-top: 24px;
}

.calendar-event-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 16px;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    background: #fff;
}

button.calendar-event-card {
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.calendar-list-entry {
    grid-template-columns: auto minmax(0, 1fr);
}

.panel > .compact-list-item + .compact-list-item {
    margin-top: 14px;
}

.calendar-event-card.pending {
    grid-template-columns: minmax(0, 1fr) auto;
    border-color: #c8d8fb;
}

.calendar-event-card.leave {
    border-color: #d6e2f7;
    background: #f8fbff;
}

.calendar-date-chip {
    display: grid;
    place-items: center;
    width: 54px;
    min-height: 54px;
    border-radius: 8px;
    background: #3152b7;
    color: #fff;
}

.calendar-date-chip strong {
    font-size: 1.25rem;
    line-height: 1;
}

.calendar-date-chip span {
    font-size: .75rem;
    text-transform: uppercase;
}

.calendar-event-main {
    min-width: 0;
}

.calendar-event-main h3,
.calendar-event-card h3 {
    margin: 4px 0 6px;
    font-size: 1.02rem;
}

.calendar-event-main h3 a {
    color: inherit;
    text-decoration: none;
}

.calendar-event-main h3 a:hover {
    color: #3152b7;
}

.calendar-event-main p,
.calendar-event-card p {
    margin: 0;
}

.calendar-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #64748b;
    font-size: .88rem;
}

.spaced-block {
    margin-top: 24px;
}

.calendar-panel {
    overflow: hidden;
}

[data-calendar-month-content] {
    transition: opacity 140ms ease;
}

[data-calendar-month-content].is-loading {
    opacity: 0.52;
    pointer-events: none;
}

[data-calendar-month-link].is-loading {
    pointer-events: none;
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    overflow: hidden;
    background: #e6eaf0;
    gap: 1px;
}

.calendar-mobile-month-list {
    display: none;
}

.calendar-day {
    --calendar-day-dot-color: #3152b7;
}

.calendar-weekday {
    padding: 10px;
    background: #f8fafc;
    color: #56647a;
    font-size: .76rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.calendar-day {
    min-height: 112px;
    padding: 9px;
    background: #fff;
    outline: 0;
    cursor: pointer;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.calendar-day:hover {
    background: #f7f9ff;
}

.calendar-day.is-selected {
    background: #eef3ff;
    box-shadow: inset 0 0 0 2px #3152b7;
}

.calendar-day.muted-month {
    background: #fafbfc;
}

.calendar-day.muted-month:hover {
    background: #f4f6fb;
}

.calendar-day.muted-month.is-selected {
    background: #eef3ff;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 1px #3152b7;
}

.calendar-day.today.is-selected {
    box-shadow: inset 0 0 0 2px #3152b7;
}

.calendar-day-number {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-bottom: 6px;
    border-radius: 999px;
    color: #27344c;
    font-size: .88rem;
    font-weight: 600;
}

.calendar-day.today .calendar-day-number {
    background: #3152b7;
    color: #fff;
}

.muted-month .calendar-day-number {
    color: #94a3b8;
}

.muted-month .calendar-day-entries {
    opacity: .58;
}

.calendar-day-entries {
    display: grid;
    gap: 5px;
}

.calendar-pill {
    --calendar-pill-bg: #f8fafc;
    --calendar-pill-border: #d7dee9;
    --calendar-pill-color: #26344c;
    position: relative;
    width: 100%;
    display: grid;
    gap: 1px;
    padding: 6px 7px;
    border-radius: 6px;
    border: 1px solid var(--calendar-pill-border);
    background: var(--calendar-pill-bg);
    color: var(--calendar-pill-color);
    text-decoration: none;
    text-align: left;
    font: inherit;
    font-size: .75rem;
    line-height: 1.25;
    cursor: pointer;
    appearance: none;
    --calendar-connector-bg: var(--calendar-pill-bg);
    --calendar-connector-border: var(--calendar-pill-border);
}

.calendar-pill-placeholder {
    display: block;
    min-height: 30px;
    visibility: hidden;
    pointer-events: none;
}

.calendar-pill.is-calendar-filtered,
.calendar-pill-placeholder.is-calendar-filtered {
    display: none !important;
}

.calendar-pill:focus-visible {
    outline: 3px solid rgba(49, 82, 183, .22);
    outline-offset: 2px;
}

@media (pointer: coarse) {
    .calendar-pill:focus-visible {
        outline: none;
    }
}

.calendar-pill span {
    color: #69778d;
    font-size: .72rem;
}

.calendar-pill strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.calendar-pill.multi-day:not(.shows-title) strong {
    visibility: hidden;
}

.calendar-pill.multi-day::before,
.calendar-pill.multi-day::after {
    content: "";
    position: absolute;
    top: -1px;
    bottom: -1px;
    z-index: 1;
    width: 10px;
    border-top: 1px solid var(--calendar-connector-border);
    border-bottom: 1px solid var(--calendar-connector-border);
    background: var(--calendar-connector-bg);
    pointer-events: none;
}

.calendar-pill.multi-day::before {
    left: -10px;
}

.calendar-pill.multi-day::after {
    right: -10px;
}

.calendar-pill.multi-day.segment-start::before,
.calendar-pill.multi-day.segment-end::after {
    display: none;
}

.calendar-pill.multi-day.segment-start:not(.segment-end) {
    border-right-color: var(--calendar-pill-border);
    border-radius: 6px 0 0 6px;
}

.calendar-pill.multi-day:not(.segment-start):not(.segment-end) {
    border-right-color: var(--calendar-pill-border);
    border-left-color: var(--calendar-pill-border);
    border-radius: 0;
}

.calendar-pill.multi-day.segment-end:not(.segment-start) {
    border-left-color: var(--calendar-pill-border);
    border-radius: 0 6px 6px 0;
}

.calendar-pill.termin {
    --calendar-pill-bg: #eef3ff;
    --calendar-pill-border: #b8c9ff;
    --calendar-pill-color: #183894;
}

.calendar-pill.offline-calendar-pill {
    border-style: dashed;
}

.calendar-pill.leave {
    --calendar-pill-bg: #effaf4;
    --calendar-pill-border: #cfe7dc;
    --calendar-pill-color: #176139;
}

.calendar-pill.exam {
    --calendar-pill-bg: #fff7ed;
    --calendar-pill-border: #f3d5aa;
    --calendar-pill-color: #8a4b0b;
}

.calendar-pill.school {
    --calendar-pill-bg: #e8f7f1;
    --calendar-pill-border: #a9ddc9;
    --calendar-pill-color: #176247;
}

.calendar-pill.school.visibility-staff {
    --calendar-pill-bg: #fff7e6;
    --calendar-pill-border: #f0c978;
    --calendar-pill-color: #7a4b12;
}

.calendar-pill.school.visibility-public {
    --calendar-pill-bg: #e8f7f1;
    --calendar-pill-border: #a9ddc9;
    --calendar-pill-color: #176247;
}

.calendar-pill.holiday {
    --calendar-pill-bg: #e7f7fb;
    --calendar-pill-border: #9ed8e5;
    --calendar-pill-color: #0f5f79;
}

.calendar-pill.vacation {
    --calendar-pill-bg: #e7f7fb;
    --calendar-pill-border: #9ed8e5;
    --calendar-pill-color: #0f5f79;
}

.calendar-pill.duty {
    --calendar-pill-bg: #eefcff;
    --calendar-pill-border: #c7e8ef;
    --calendar-pill-color: #0f6674;
}

.calendar-pill.todo {
    --calendar-pill-bg: #f5fbef;
    --calendar-pill-border: #d7e3cf;
    --calendar-pill-color: #3f6212;
}

.calendar-mobile-agenda {
    display: block;
    margin-top: 18px;
    padding: 17px 18px 18px;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    background: #f8fafc;
    scroll-margin-top: 82px;
}

.calendar-mobile-agenda-head {
    margin-bottom: 11px;
}

.calendar-mobile-agenda-head span {
    display: block;
    margin-bottom: 2px;
    font-size: .74rem;
}

.calendar-mobile-agenda-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.calendar-mobile-agenda-list {
    display: grid;
    gap: 7px;
}

.calendar-mobile-agenda-entry {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 9px 10px;
    border-radius: 6px !important;
    font-size: .81rem;
}

.calendar-mobile-agenda-entry::before,
.calendar-mobile-agenda-entry::after {
    display: none !important;
}

.calendar-mobile-agenda-entry strong {
    visibility: visible !important;
}

.calendar-mobile-agenda-entry small {
    color: #64748b;
    font-size: .76rem;
    line-height: 1.35;
}

.calendar-mobile-empty {
    margin: 0;
    padding: 4px 0 1px;
}

.calendar-modal-backdrop[hidden] {
    display: none;
}

.calendar-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .46);
}

.calendar-modal {
    position: relative;
    width: min(520px, 100%);
    padding: 28px;
    border: 1px solid #dbe5f4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.school-event-edit-modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
}

.school-event-edit-modal .school-event-edit-form {
    margin-top: 4px;
}

.calendar-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #dbe5f4;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.calendar-modal-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #3152b7;
    font-size: .78rem;
    font-weight: 700;
}

.calendar-modal h2 {
    margin: 14px 42px 18px 0;
    color: #16213f;
}

.calendar-modal-details {
    display: grid;
    gap: 10px;
    margin: 0;
}

.calendar-modal-details div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #edf2f7;
}

.calendar-modal-details dt {
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
}

.calendar-modal-details dd {
    margin: 0;
    color: #1f2937;
    white-space: pre-line;
}

.calendar-modal-description {
    margin: 18px 0 0;
    padding: 14px 16px;
    border: 1px solid #e4ebf5;
    border-radius: 10px;
    background: #f8fbff;
    color: #334155;
    white-space: pre-line;
}

.calendar-modal-status {
    min-height: 18px;
    margin: 12px 0 0;
    color: var(--success);
    font-size: 13px;
    font-weight: 700;
}

.calendar-modal-status:empty {
    margin-top: 0;
}

.calendar-modal-status.error {
    color: var(--danger);
}

.calendar-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

body.modal-open {
    overflow: hidden;
}

.public-calendar-page {
    min-height: 100vh;
    padding: 32px 18px;
    background: #eef2f7;
}

.public-calendar-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.public-calendar-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 26px 28px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(22, 33, 63, .07);
}

.public-calendar-hero h1 {
    margin: 4px 0 6px;
    color: #16213f;
    font-size: clamp(1.9rem, 3.2vw, 2.75rem);
    font-weight: 600;
    line-height: 1.05;
}

.public-calendar-hero p:not(.eyebrow) {
    margin: 0;
    color: #64748b;
}

.public-calendar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.public-calendar-board {
    padding: 20px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(22, 33, 63, .06);
}

.public-calendar-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 16px;
}

.public-calendar-title h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.public-calendar-title span {
    color: #64748b;
}

.public-calendar-grid {
    box-shadow: none;
}

.public-calendar-view-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: -4px 0 18px;
}

.public-calendar-view-links a {
    color: #3152b7;
    font-weight: 700;
    text-decoration: none;
}

.public-calendar-view-links a:hover,
.public-calendar-view-links a:focus {
    text-decoration: underline;
}

.public-calendar-list {
    display: grid;
}

.public-calendar-list-item {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
}

.public-calendar-list-item:first-child {
    border-top: 0;
}

.public-calendar-list-item.school {
    border-left: 4px solid var(--calendar-public-border);
    padding-left: 12px;
}

.public-calendar-list-item.vacation,
.public-calendar-list-item.holiday {
    border-left: 4px solid var(--calendar-holiday-border);
    padding-left: 12px;
}

.public-calendar-list-date {
    display: grid;
    gap: 4px;
}

.public-calendar-list-date strong {
    color: #3152b7;
}

.public-calendar-list-date span {
    color: #64748b;
    font-weight: 700;
}

.public-calendar-list-text h2 {
    margin: 0;
    color: #16213f;
    font-size: 1rem;
    line-height: 1.35;
}

.public-calendar-list-text p {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.4;
}

.public-calendar-list-text small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.public-calendar-list-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.calendar-public-overview {
    gap: 24px;
}

.calendar-public-link-panel {
    margin-top: 10px;
}

.calendar-public-link-list {
    display: grid;
    gap: 10px;
}

.calendar-public-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #e2e8f0;
    color: inherit;
    text-decoration: none;
}

.calendar-public-link:first-child {
    border-top: 0;
}

.calendar-public-link strong {
    display: block;
    color: var(--ink);
}

.calendar-public-link small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.35;
}

.public-upcoming-list {
    display: grid;
}

.public-upcoming-item {
    display: grid;
    grid-template-columns: 150px 70px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px 0;
    border-top: 1px solid #e2e8f0;
}

.public-upcoming-item:first-child {
    border-top: 0;
    padding-top: 4px;
}

.public-upcoming-date {
    color: #3152b7;
    font-weight: 700;
}

.public-upcoming-time {
    color: #64748b;
    font-weight: 700;
}

.public-upcoming-title {
    display: block;
    min-width: 0;
    color: #16213f;
    line-height: 1.3;
}

.public-upcoming-description {
    display: block;
    margin-top: 4px;
    color: #64748b;
    line-height: 1.35;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.form-actions.spacious-actions {
    margin-top: 30px;
}

.form-save-status {
    min-height: 18px;
    font-size: 13px;
}

.form-save-status.error {
    color: var(--danger);
}

.inline-save-state {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    font-size: 12px;
}

.inline-save-state.error {
    color: var(--danger);
}

.compact-summary-table {
    width: 100%;
}

.compact-summary-table th,
.compact-summary-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.profile-actions {
    margin-top: 28px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.compact-create-form .form-row {
    align-items: flex-end;
}

.compact-create-form .field {
    margin-bottom: 0;
}

.sso-login-list {
    display: grid;
    gap: 10px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
}

.check-row.compact {
    margin-bottom: 0;
}

.check-row label {
    margin: 0;
    font-weight: 400;
}

.check-row .inline-check {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 0 16px;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
    cursor: pointer;
    text-decoration: none;
}

.button:hover {
    background: var(--brand-strong);
}

.button.secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.button.light {
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
}

.button.compact {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.button.danger {
    color: var(--danger);
    background: #fff1f0;
    border: 1px solid #ffd5d1;
}

.button.danger:hover {
    color: #fff;
    background: var(--danger);
}

.button.success {
    color: var(--ok);
    background: #effaf3;
    border: 1px solid #b7e3c8;
}

.button.success:hover {
    color: #fff;
    background: var(--ok);
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.24);
}

.app-header .brand,
.app-header .muted {
    color: #fff;
}

.app-header .muted {
    opacity: 0.82;
}

.error {
    margin-top: 8px;
    color: var(--danger);
    font-size: 14px;
}

.meta-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.meta-list dt {
    flex: 0 0 auto;
}

.meta-list dd {
    min-width: 0;
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.meta-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-list.compact {
    gap: 6px;
}

.spaced-pill-list {
    margin-top: 10px;
}

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

.compact-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
}

.compact-check input {
    width: 18px;
    height: 18px;
}

.school-team-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.school-team-export-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.school-team-export-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: #f8fbff;
}

.school-team-export-row strong,
.school-team-export-row .muted {
    display: block;
}

.school-team-table tr.is-selected-row td {
    background: #f0fbf4;
}

.school-team-table tr.is-selected-row td:first-child {
    border-left: 3px solid var(--ok);
}

.sport-form-actions {
    margin-top: 28px;
}

.jahresagenda-main {
    display: grid;
    gap: 12px;
}

.jahresagenda-main > .panel.hero {
    margin-bottom: 0;
}

.jahresagenda-head-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

.jahresagenda-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: -2px 0 12px;
}

.jahresagenda-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.jahresagenda-legend-item span {
    width: 18px;
    height: 4px;
    border-radius: 999px;
    background: var(--brand);
}

.jahresagenda-legend-item.is-unterricht span {
    background: #3b82f6;
}

.jahresagenda-legend-item.is-organisation span {
    background: #64748b;
}

.jahresagenda-legend-item.is-pruefungen span {
    background: #f97316;
}

.jahresagenda-legend-item.is-fortbildung span {
    background: #8b5cf6;
}

.jahresagenda-legend-item.is-schulentwicklung span {
    background: #16a34a;
}

.jahresagenda-inline-form {
    margin-top: 12px;
}

.jahresagenda-inline-form .form-grid {
    align-items: start;
}

.jahresagenda-week-field select {
    width: 100%;
}

.jahresagenda-week-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.jahresagenda-template-panel {
    display: grid;
    gap: 12px;
}

.jahresagenda-template-panel h2,
.jahresagenda-template-panel p {
    margin: 0;
}

.jahresagenda-template-heading {
    display: grid;
    gap: 6px;
}

.jahresagenda-date-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.jahresagenda-time-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.jahresagenda-assign-form {
    margin-top: 10px;
}

.ticket-status-save {
    min-height: 18px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.ticket-status-save.error {
    color: var(--danger);
}

.jahresagenda-month-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.jahresagenda-month-card {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 160px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.jahresagenda-month-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
}

.jahresagenda-month-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    border-left: 4px solid var(--brand);
    border-radius: 6px;
    padding: 8px 9px;
    color: var(--ink);
    text-decoration: none;
    background: #f8fbff;
}

.jahresagenda-month-entry-content {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.jahresagenda-entry-actions {
    display: grid;
    justify-items: end;
    gap: 6px;
    margin-top: 0;
}

.jahresagenda-entry-actions form,
.jahresagenda-card-meta form {
    margin: 0;
}

.jahresagenda-month-entry strong,
.jahresagenda-month-entry span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.jahresagenda-month-entry span {
    color: var(--muted);
    font-size: 12px;
}

.jahresagenda-month-entry small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.success-text {
    color: #15803d;
    font-weight: 700;
}

.warning-text {
    color: #b45309;
    font-weight: 700;
}

.jahresagenda-list {
    display: grid;
    gap: 12px;
}

.jahresagenda-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    border: 1px solid var(--line);
    border-left: 6px solid var(--brand);
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
}

.jahresagenda-card h3 {
    margin: 0 0 6px;
}

.jahresagenda-card p {
    margin-bottom: 6px;
}

.jahresagenda-worklist-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.jahresagenda-worklist-head span + span::before {
    content: "·";
    margin-right: 8px;
    color: var(--muted);
}

.jahresagenda-card-meta {
    display: grid;
    align-content: start;
    justify-items: end;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.jahresagenda-checklist,
.jahresagenda-attachment-list {
    display: grid;
    gap: 10px;
}

.jahresagenda-check-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.jahresagenda-attachment-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fbfcff;
}

.is-unterricht {
    border-color: #3b82f6;
}

.is-organisation {
    border-color: #64748b;
}

.is-pruefungen {
    border-color: #f97316;
}

.is-fortbildung {
    border-color: #8b5cf6;
}

.is-schulentwicklung {
    border-color: #16a34a;
}

.danger-zone-form {
    margin-top: 26px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.school-team-selection-status {
    margin-top: 7px;
}

.selection-panel {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.selection-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
    background: #f8fafd;
}

.selection-panel summary::-webkit-details-marker {
    display: none;
}

.selection-panel summary strong {
    display: block;
    color: var(--text);
}

.selection-panel summary small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.compact-tabs {
    margin-top: 16px;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-weight: 650;
}

.tab-button small {
    color: var(--muted);
    font-weight: 600;
}

.tab-button:hover,
.tab-button.active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-strong);
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    max-height: 330px;
    overflow: auto;
    padding: 16px 18px;
    border-top: 1px solid var(--line);
}

.role-selection-grid {
    max-height: none;
    overflow: visible;
}

.subject-selection-grid {
    max-height: none;
    overflow: visible;
}

.selection-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    cursor: pointer;
}

.selection-option:has(input:checked) {
    border-color: var(--brand-line);
    background: var(--brand-soft);
}

.selection-option.is-school-admin-option:has(input:checked) {
    border-color: #f0c875;
    background: #fff7e6;
}

.selection-option input {
    margin-top: 3px;
}

.selection-option strong,
.selection-option small {
    display: block;
}

.selection-option strong {
    font-size: 14px;
    font-weight: 400;
}

.selection-option small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.traveler-student-list {
    margin-top: 16px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    color: var(--brand-strong);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    font-size: 14px;
    font-weight: 500;
}

.pill-list .pill {
    min-height: 26px;
    padding-inline: 9px;
    font-size: 13px;
    font-weight: 400;
}

.pill.success {
    color: var(--ok);
    background: #effaf3;
    border-color: #b7e3c8;
}

.pill.warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.pill.muted-pill {
    color: var(--muted);
    background: #f4f6fb;
    border-color: #dde3ef;
}

.pill.subtle {
    min-height: 24px;
    padding-inline: 8px;
    color: var(--muted);
    background: #f8fafc;
    border-color: var(--line);
    font-size: 12px;
    font-weight: 500;
}

.pill.account-type-pill {
    color: #455163;
    background: #f7f8fb;
    border-color: #d8dee8;
}

.pill.school-admin-pill {
    color: #6d3b00;
    background: #fff5df;
    border-color: #f0c875;
}

.pill.danger-pill {
    color: var(--danger);
    background: #fff1f0;
    border-color: #ffc9c4;
}

.setup-checklist {
    display: grid;
    gap: 10px;
}

.setup-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.setup-step.done {
    border-color: #ccebd8;
    background: #fbfffd;
}

.setup-step.optional {
    background: #fbfcfe;
}

.setup-step-index {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--muted);
    background: #eef2f7;
    font-weight: 700;
}

.setup-step-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.setup-step-title h3 {
    margin: 0;
    font-size: 16px;
}

.setup-step-body p {
    margin: 4px 0 0;
}

.setup-step-meta {
    margin-top: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 640px) {
    .setup-step {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .setup-step .button {
        grid-column: 2;
        justify-self: start;
    }
}

.stacked-list {
    display: grid;
    gap: 10px;
}

.inline-list-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.inline-list-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.bulk-cancel-menu {
    position: relative;
}

.bulk-cancel-menu summary {
    list-style: none;
    cursor: pointer;
}

.bulk-cancel-menu summary::-webkit-details-marker {
    display: none;
}

.bulk-cancel-menu form {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    gap: 9px;
    width: min(360px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.bulk-cancel-menu form p {
    margin: 0;
}

.bulk-cancel-menu label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.bulk-cancel-menu textarea {
    resize: vertical;
}

.elternsprechtag-booking-flow {
    display: grid;
    gap: 18px;
}

.elternsprechtag-teacher-filter {
    display: grid;
    gap: 10px;
}

.elternsprechtag-teacher-filter h3 {
    margin: 0;
    font-size: 15px;
}

.elternsprechtag-teacher-filter h3 span {
    margin-left: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.elternsprechtag-booking-child-row {
    margin-top: 16px;
    margin-bottom: 0;
}

.elternsprechtag-booking-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.elternsprechtag-summary-label {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
}

.elternsprechtag-summary-note {
    max-width: 260px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.elternsprechtag-teacher-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.elternsprechtag-teacher-grid .option-check {
    align-items: flex-start;
    min-height: 58px;
    padding: 12px 12px 10px;
}

.elternsprechtag-teacher-grid .option-check input {
    margin-top: 3px;
}

.elternsprechtag-teacher-grid .option-check > span {
    min-width: 0;
    width: 100%;
}

.elternsprechtag-teacher-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, auto) minmax(150px, auto);
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}

.elternsprechtag-teacher-line > span:first-child {
    min-width: 0;
}

.elternsprechtag-teacher-middle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.elternsprechtag-invitation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 700;
}

.elternsprechtag-teacher-mode,
.elternsprechtag-teacher-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    margin-top: 0;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    justify-self: end;
    text-align: center;
}

.elternsprechtag-teacher-status {
    justify-self: center;
}

.elternsprechtag-teacher-status.is-hidden {
    display: none;
}

.elternsprechtag-teacher-status.is-requested {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.elternsprechtag-teacher-status.is-booked {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

@media (max-width: 760px) {
    .elternsprechtag-booking-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .elternsprechtag-summary-note {
        max-width: none;
        border-radius: 8px;
        text-align: left;
    }

    .elternsprechtag-teacher-line {
        grid-template-columns: minmax(0, 1fr);
    }

    .elternsprechtag-teacher-mode {
        justify-self: start;
        text-align: left;
    }
}

.elternsprechtag-booking-table {
    min-width: 860px;
}

.elternsprechtag-booking-table th:first-child,
.elternsprechtag-booking-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 132px;
    background: #fff;
}

.elternsprechtag-booking-table thead th {
    white-space: nowrap;
}

.elternsprechtag-booking-table td {
    min-width: 150px;
}

.elternsprechtag-booking-button {
    width: 100%;
    justify-content: center;
    min-height: 32px;
    white-space: normal;
    line-height: 1.25;
}

.elternsprechtag-booking-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    color: #94a3b8;
    font-weight: 700;
}

.elternsprechtag-booking-actions {
    display: grid;
    gap: 6px;
}

.elternsprechtag-withdraw-button {
    width: 100%;
    justify-content: center;
    min-height: 32px;
    white-space: nowrap;
    border-color: #e5e7eb;
    background: #ffffff;
    color: #4b5563;
}

.elternsprechtag-withdraw-button:hover {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #b91c1c;
}

.elternsprechtag-booking-button.is-open {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.elternsprechtag-booking-button.is-requested {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.elternsprechtag-booking-button.is-unavailable {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.elternsprechtag-booking-button.is-booked {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.elternsprechtag-booking-button.is-blocked {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.invite-picker {
    width: 100%;
}

.invite-search-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
    background: #fff;
    padding: 0 12px;
}

.invite-search-control:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49, 82, 183, 0.12);
}

.invite-search-control input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    min-height: 42px;
}

.invite-search-control input:focus {
    outline: 0;
    box-shadow: none;
}

.invite-search-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border: 2px solid #64748b;
    border-radius: 999px;
}

.invite-search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: #64748b;
    transform: rotate(45deg);
}

.invite-results {
    display: grid;
    gap: 6px;
    max-height: 260px;
    overflow: auto;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
    padding: 6px;
}

.invite-results-head {
    padding: 5px 8px 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.invite-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    padding: 7px 10px;
    text-align: left;
    cursor: pointer;
}

.invite-result[hidden],
.invite-empty[hidden] {
    display: none;
}

.invite-result input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.invite-result:hover,
.invite-result.selected {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.invite-child-line {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.invite-child-line > span {
    font-weight: 500;
}

.invite-child-line small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.invite-parent-count {
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.invite-empty {
    margin: 8px;
}

.form-row-spaced {
    margin-top: 12px;
}

.klassenarbeit-date-fields {
    margin-top: 14px;
}

.switch-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.switch-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-slider {
    position: relative;
    width: 44px;
    height: 24px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #e8edf5;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.switch-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
    transition: transform 160ms ease;
}

.switch-control input:checked + .switch-slider {
    border-color: #f2a6a0;
    background: #d94d42;
}

.switch-control input:checked + .switch-slider::after {
    transform: translateX(20px);
}

.switch-control input:focus-visible + .switch-slider {
    outline: 3px solid rgba(49, 82, 183, 0.24);
    outline-offset: 2px;
}

.switch-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.file-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-upload-form {
    margin-top: 8px;
}

.inline-upload-form .button {
    cursor: pointer;
}

.file-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid var(--brand-line);
    border-radius: 6px;
    padding: 0 10px;
    color: var(--brand);
    background: var(--brand-soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.file-link:hover {
    color: #fff;
    background: var(--brand);
}

.stat-stack,
.action-stack {
    display: grid;
    gap: 8px;
}

.time-range {
    display: grid;
    gap: 6px;
    min-width: 170px;
}

.time-range > div,
.time-range-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.time-range-structured {
    min-width: 220px;
}

.time-range-label {
    flex: 0 0 54px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.time-range-time {
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.stat-stack {
    color: var(--muted);
    font-size: 14px;
}

.action-stack {
    justify-items: stretch;
}

.action-stack form {
    width: 100%;
}

.action-stack .button {
    width: 100%;
}

.status {
    color: var(--ok);
    font-weight: 700;
}

.flash {
    margin-bottom: 16px;
    border: 1px solid #b7e3c8;
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ok);
    background: #effaf3;
    font-weight: 700;
}

.flash.warning {
    border-color: #fde68a;
    color: #92400e;
    background: #fffbeb;
}

.flash.danger {
    border-color: #fecaca;
    color: var(--danger);
    background: #fef2f2;
}

@media (max-width: 1100px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .term-head {
        flex-direction: column;
    }

    .term-stats {
        grid-template-columns: repeat(4, minmax(82px, 1fr));
        justify-content: flex-start;
    }

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

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

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

    .search-bar.archive-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-bar.beurlaubung-filter .filter-date-start,
    .search-bar.beurlaubung-filter .filter-date-end {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .public-calendar-page {
        padding: 16px;
    }

    .public-calendar-hero,
    .public-calendar-board {
        padding: 16px;
        border-radius: 8px;
    }

    .public-calendar-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .public-calendar-nav {
        justify-content: flex-start;
    }

    .public-calendar-title {
        align-items: baseline;
        flex-direction: row;
        gap: 10px;
        margin: 6px 0 14px;
    }

    .public-calendar-title span {
        font-size: .78rem;
    }

    .calendar-public-link,
    .public-upcoming-item,
    .public-calendar-list-item {
        grid-template-columns: 1fr;
    }

    .public-calendar-list-label {
        justify-self: start;
    }

    .calendar-modal-backdrop {
        align-items: center;
        padding: 12px;
    }

    .dashboard-calendar-modal-backdrop {
        align-items: center;
    }

    .calendar-modal {
        padding: 22px;
        border-radius: 14px;
    }

    .calendar-modal h2 {
        margin-right: 36px;
    }

    .calendar-modal-details div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .calendar-hero {
        display: grid;
        gap: 10px;
    }

    .calendar-hero-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .calendar-panel .section-title-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 14px;
    }

    .calendar-month-title {
        order: 2;
        width: 100%;
    }

    .calendar-month-title h2 {
        margin: 0;
        text-align: center;
    }

    .calendar-month-actions {
        display: contents;
        width: 100%;
    }

    .calendar-month-nav {
        order: 3;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 10px;
        width: 100%;
    }

    .calendar-month-nav .calendar-nav-button {
        width: 100%;
        justify-content: center;
    }

    .calendar-mobile-view-switch {
        display: inline-flex;
        order: 1;
        width: 100%;
        margin-bottom: 2px;
    }

    .calendar-mobile-view-switch button {
        flex: 1 1 0;
    }

    .calendar-mobile-month-list {
        display: grid;
        gap: 14px;
    }

    .calendar-view-list .calendar-month-grid,
    .calendar-view-list .calendar-mobile-agenda {
        display: none;
    }

    .calendar-view-month .calendar-mobile-month-list {
        display: none;
    }

    .calendar-view-month .calendar-month-grid {
        display: grid;
    }

    .calendar-mobile-list-day {
        display: grid;
        gap: 8px;
    }

    .calendar-mobile-list-day[hidden] {
        display: none;
    }

    .calendar-mobile-list-day h3 {
        margin: 0;
        color: var(--ink);
        font-size: .92rem;
        font-weight: 800;
    }

    .calendar-mobile-list-day-entries {
        display: grid;
        gap: 7px;
    }

    .calendar-mobile-list-entry {
        width: 100% !important;
        grid-template-columns: minmax(0, 1fr);
        margin-left: 0 !important;
        padding: 10px 11px;
        border-radius: 6px !important;
        font-size: .82rem;
    }

    .calendar-mobile-list-entry::before,
    .calendar-mobile-list-entry::after {
        display: none !important;
    }

    .calendar-mobile-list-main {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    .calendar-mobile-list-main strong {
        overflow: hidden;
        color: inherit;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .calendar-mobile-list-main small {
        overflow: hidden;
        color: #64748b;
        font-size: .76rem;
        font-weight: 650;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .calendar-month-grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        border: 1px solid #dfe5ed;
        background: #e6eaf0;
        overflow: hidden;
    }

    .calendar-weekday {
        display: block;
        min-width: 0;
        padding: 8px 2px;
        overflow: hidden;
        color: transparent;
        font-size: 0;
        text-align: center;
    }

    .calendar-weekday::after {
        content: attr(data-short-label);
        color: #68758a;
        font-size: .68rem;
        font-weight: 600;
    }

    .calendar-day {
        position: relative;
        min-height: 48px;
        margin: 0;
        padding: 5px 2px 12px;
        border: 0;
        border-radius: 0;
        cursor: pointer;
        text-align: center;
    }

    .calendar-day:hover,
    .calendar-day.is-selected {
        background: #eef3ff;
    }

    .calendar-day.is-selected {
        box-shadow: inset 0 0 0 1px #3152b7;
    }

    .calendar-day.today {
        box-shadow: none;
    }

    .calendar-day.today.is-selected {
        box-shadow: inset 0 0 0 1px #3152b7;
    }

    .calendar-day-number {
        min-width: 24px;
        height: 24px;
        margin: 0;
        font-size: .78rem;
    }

    .calendar-day-entries {
        display: none;
    }

    .calendar-day:has(.calendar-pill.holiday:not([hidden]):not(.is-calendar-filtered)),
    .calendar-day:has(.calendar-pill.vacation:not([hidden]):not(.is-calendar-filtered)) {
        --calendar-day-dot-color: #0f6f8f;
    }

    .calendar-day:has(.calendar-pill.school.visibility-public:not([hidden]):not(.is-calendar-filtered)) {
        --calendar-day-dot-color: #1f7a4d;
    }

    .calendar-day:has(.calendar-pill.school.visibility-staff:not([hidden]):not(.is-calendar-filtered)) {
        --calendar-day-dot-color: #b7791f;
    }

    .calendar-day:has(.calendar-pill.termin:not([hidden]):not(.is-calendar-filtered)) {
        --calendar-day-dot-color: #3152b7;
    }

    .calendar-day:has(.calendar-pill.exam:not([hidden]):not(.is-calendar-filtered)) {
        --calendar-day-dot-color: #b45309;
    }

    .calendar-day:has(.calendar-pill.leave:not([hidden]):not(.is-calendar-filtered)) {
        --calendar-day-dot-color: #15803d;
    }

    .calendar-day:has(.calendar-pill.todo:not([hidden]):not(.is-calendar-filtered)) {
        --calendar-day-dot-color: #65a30d;
    }

    .calendar-day:has([data-calendar-entry]:not([hidden]):not(.is-calendar-filtered))::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 6px;
        width: 4px;
        height: 4px;
        border-radius: 999px;
        background: var(--calendar-day-dot-color);
        transform: translateX(-50%);
    }

    .calendar-day.muted-month {
        opacity: .52;
    }

    .calendar-mobile-agenda {
        margin-top: 14px;
        padding: 14px;
    }

    .calendar-mobile-agenda-head {
        margin-bottom: 10px;
    }

    .calendar-mobile-agenda-head span {
        display: block;
        margin-bottom: 2px;
        font-size: .72rem;
    }

    .calendar-mobile-agenda-head h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
    }

    .calendar-mobile-agenda-list {
        display: grid;
        gap: 7px;
    }

    .calendar-mobile-agenda-entry {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 10px 11px;
        border-radius: 6px !important;
        font-size: .82rem;
    }

    .calendar-mobile-agenda-entry strong {
        visibility: visible !important;
    }

    .calendar-mobile-empty {
        margin: 0;
        padding: 12px 0 2px;
    }

    .calendar-event-card,
    .calendar-event-card.pending {
        grid-template-columns: 1fr;
    }

    .calendar-date-chip {
        width: 100%;
        min-height: 42px;
        grid-template-columns: auto auto;
        justify-content: start;
        gap: 6px;
        padding: 0 12px;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 40;
        width: min(86vw, 320px);
        transform: translateX(-100%);
        transition: transform 160ms ease;
        box-shadow: 18px 0 40px rgba(23, 32, 51, 0.28);
    }

    .app-shell.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 30;
        display: block;
        opacity: 0;
        pointer-events: none;
        background: rgba(23, 32, 51, 0.48);
        transition: opacity 160ms ease;
    }

    .app-shell.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .app-header {
        position: sticky;
        top: 0;
        z-index: 20;
        height: auto;
        min-height: 78px;
        align-items: center;
        gap: 12px;
        padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
    }

    .header-left {
        flex: 1 1 auto;
        gap: 12px;
        min-width: 0;
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 8px;
    }

    .header-title .brand {
        font-size: 15px;
        line-height: 1.2;
    }

    .header-title .muted {
        font-size: 12px;
        line-height: 1.25;
    }

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

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .term-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .klausur-group-head {
        flex-direction: column;
    }

    .klausur-group-actions {
        justify-content: space-between;
        width: 100%;
    }

    .dashboard-hero {
        flex-direction: column;
        gap: 8px;
    }

    .dashboard-main {
        gap: 16px;
        padding-top: 24px;
    }

    .dashboard-main > .panel {
        padding: 20px;
    }

    .dashboard-todos-panel {
        gap: 4px;
    }

    .dashboard-todo-list {
        gap: 3px;
    }

    .dashboard-focus,
    .dashboard-side,
    .dashboard-actions,
    .dashboard-today-link {
        display: none;
    }

    .module-list {
        grid-template-columns: 1fr;
    }

    .module-card {
        min-height: auto;
    }

    .selected-person {
        grid-template-columns: 1fr;
    }

    .beurlaubung-selected-person {
        grid-template-columns: 1fr;
        padding-right: 40px;
    }

    .selected-person button {
        justify-self: start;
    }

    .selected-student > button {
        justify-self: auto;
    }

    .todo-selected-person {
        grid-template-columns: minmax(0, 1fr);
        padding-right: 42px;
    }

    .todo-selected-person > button {
        position: absolute;
        top: 50%;
        right: 8px;
        justify-self: auto;
        transform: translateY(-50%);
    }

    .module-title {
        align-items: flex-start;
    }

    .module-title > div:first-child {
        align-items: flex-start;
    }

    .module-control {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .option-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .jahresagenda-month-grid,
    .jahresagenda-month-entry,
    .jahresagenda-card,
    .jahresagenda-week-range,
    .jahresagenda-date-range,
    .jahresagenda-time-range,
    .jahresagenda-check-row {
        grid-template-columns: 1fr;
    }

    .jahresagenda-card-meta {
        justify-items: start;
    }

    .jahresagenda-head-actions {
        justify-content: stretch;
        width: 100%;
        margin-left: 0;
    }

    .jahresagenda-head-actions .button {
        flex: 1 1 160px;
        justify-content: center;
    }

    .jahresagenda-attachment-list div {
        flex-direction: column;
        align-items: flex-start;
    }

    .ag-offer-row,
    .ag-offer-edit-form {
        grid-template-columns: 1fr;
    }

    .ag-inline-offer-remove {
        width: fit-content;
        margin-top: 0;
    }

    .ag-offer-actions {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
    }

    .ag-offer-delete-form {
        align-self: flex-start;
    }

    .ag-offer-card-head,
    .ag-offer-card-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .ag-offer-card-head small {
        white-space: normal;
    }

    .ag-offer-edit-grid {
        grid-template-columns: 1fr;
    }

    .ag-offer-card-actions .button,
    .ag-offer-card-actions form {
        width: 100%;
    }

    .device-entry-grid {
        grid-template-columns: 1fr;
    }

    .device-history-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .sport-registration-head,
    .sport-registration-fields,
    .child-choice-grid,
    .sport-choice-grid,
    .school-team-filters {
        grid-template-columns: 1fr;
    }

    .school-teams-hero,
    .school-team-filter-panel .panel-head,
    .school-team-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .school-team-metrics,
    .school-team-result-summary {
        width: 100%;
    }

    .todo-item {
        grid-template-columns: 1fr;
    }

    .school-team-summary-meta {
        justify-content: space-between;
        width: 100%;
    }

    .school-team-create-form {
        max-width: none;
    }

    .school-team-create-row {
        grid-template-columns: 1fr;
    }

    .school-team-create-button {
        width: fit-content;
    }

    .school-team-competition-form {
        grid-template-columns: 1fr;
    }

    .search-bar {
        grid-template-columns: 1fr;
    }

    .search-bar.archive-filter {
        grid-template-columns: 1fr;
    }

    .search-bar.archive-filter .filter-span-2 {
        grid-column: auto;
    }

    .search-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .compact-info-panel,
    .warning-panel,
    .danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .account-password-reset-action {
        margin-left: 0;
        width: 100%;
    }

    .account-password-reset-action .button {
        width: 100%;
    }

    .absence-card {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .absence-card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        justify-content: stretch;
        width: 100%;
    }

    .absence-card-actions .button,
    .absence-card-actions .ics-link {
        width: 100%;
    }

    .archive-panel summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        padding: 10px 42px 10px 14px;
    }

    .archive-panel summary::after {
        position: absolute;
        right: 16px;
        margin-top: 2px;
    }

    .user-menu summary {
        justify-content: center;
        width: 42px;
        min-height: 42px;
        max-width: none;
        padding: 0;
    }

    .user-menu summary > span:not(.menu-avatar) {
        display: none;
    }

    .menu-avatar {
        width: 30px;
        height: 30px;
    }

    .notification-panel {
        position: fixed;
        top: 86px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100vh - 104px);
        overflow-y: auto;
        border-radius: 10px;
    }

    .notification-panel-head {
        gap: 10px;
        padding: 13px 14px;
    }

    .notification-item {
        padding: 13px 14px;
    }

    .notification-item span,
    .notification-item small {
        overflow-wrap: anywhere;
    }

    .notification-settings-main .hero,
    .notification-settings-main .panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-settings-main .hero h1 {
        max-width: 100%;
        font-size: 1.55rem;
        overflow-wrap: anywhere;
        hyphens: auto;
        line-height: 1.12;
    }

    .notification-settings-main .hero-actions,
    .notification-settings-main .hero-actions .button,
    .notification-settings-main .panel-head .button {
        width: 100%;
    }

    .notification-settings-main .notification-setting-row {
        align-items: flex-start;
        gap: 12px;
    }

    .notification-settings-main .push-important-setting .switch {
        flex: 0 0 48px;
        width: 48px;
        min-width: 48px;
        height: 28px;
        align-self: flex-start;
        margin-top: 2px;
    }

    .notification-settings-main .push-important-setting .switch-track {
        width: 48px;
        height: 28px;
    }

    .profile-student-id-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-student-id-panel .button {
        justify-content: center;
        width: 100%;
    }

    .message-list {
        padding: 12px;
    }

    .message-bubble {
        width: 100%;
    }

    .message-bubble-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .message-attachment {
        display: flex;
        width: 100%;
    }

    .detail-list.compact {
        grid-template-columns: 1fr;
    }

    .menu-panel {
        right: 0;
        width: min(240px, calc(100vw - 32px));
    }

    .ag-public-shell {
        padding: 18px 12px 24px;
    }

    .ag-public-panel {
        padding: 0;
    }

    .ag-public-header,
    .ag-public-content {
        padding-inline: 20px;
    }

    .ag-public-header {
        padding-top: 24px;
        padding-bottom: 22px;
    }

    .ag-public-header h1 {
        font-size: 24px;
    }

    .ag-public-kicker {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .ag-public-meta {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .ag-choice-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    .ag-choice-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .ag-public-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ag-public-actions .button {
        width: 100%;
    }

    .login-panel {
        padding: 22px;
    }

    .login-panel.ag-public-panel {
        padding: 0;
    }

    .panel-head,
    .ticket-main,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .message-index-hero {
        grid-template-columns: 1fr;
    }

    .message-index-hero > .button {
        width: 100%;
        justify-self: stretch;
    }

    .app-content:has(.messenger-page) {
        min-height: 100vh;
        overflow: visible;
    }

    .messenger-page {
        width: calc(100% - 20px);
        min-height: calc(100dvh - var(--app-header-height));
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        align-content: start;
        padding: 0 0 12px;
        overflow: visible;
    }

    .messenger-page > .hero {
        position: sticky;
        top: calc(78px + env(safe-area-inset-top, 0px));
        z-index: 22;
        flex: 0 0 auto;
        width: calc(100% + 20px);
        margin-right: -10px;
        margin-left: -10px;
        margin-bottom: 10px;
        padding: 12px 14px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 6px 16px rgba(23, 32, 51, .08);
    }

    .messenger-page > .hero h1 {
        margin-bottom: 3px;
        font-size: 18px;
    }

    .messenger-page > .hero p {
        margin: 0;
        font-size: 12px;
    }

    .messenger-page > .hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .messenger-back-button {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
    }

    .messenger-back-icon {
        font-size: 21px;
        line-height: 1;
    }

    .messenger-page > .message-list {
        margin-top: 0 !important;
        margin-bottom: 0;
        overflow: visible;
    }

    .messenger-page .message-list {
        min-height: 0;
        max-height: none;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .messenger-page .message-bubble {
        font-size: 14px;
        line-height: 1.45;
    }

    .messenger-page .message-bubble-head strong {
        font-size: 13px;
    }

    .messenger-page .message-bubble-head span {
        font-size: 11px;
    }

    .messenger-page .message-attachment,
    .messenger-page .message-report-form button,
    .messenger-page .message-own-actions button {
        font-size: 12px;
    }

    .messenger-page > .message-reply-form {
        position: sticky;
        z-index: 28;
        left: auto;
        right: auto;
        bottom: 0;
        width: 100%;
        min-height: auto;
        margin: 0;
        gap: 0;
        padding: 0 0 max(7px, env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: 0 -6px 18px rgba(23, 32, 51, .08);
    }

    .messenger-page .message-composer textarea {
        padding: 13px 4px 5px;
    }

    .auth-shell {
        min-height: 100dvh;
        justify-content: space-between;
        padding: max(22px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
    }

    .auth-main {
        flex: 1 0 auto;
        place-items: center;
        align-content: center;
    }

    .auth-brand-logo {
        width: min(190px, 70%);
        margin-bottom: 14px;
    }

    .login-panel {
        width: min(100%, 440px);
        padding: 24px 20px;
        border-radius: 10px;
    }

    .auth-pwa-install-card {
        padding: 14px;
    }

    .auth-shell .app-footer {
        margin-top: 18px;
    }

    .sidebar-toggle {
        min-width: 42px;
        padding: 0;
    }

    .sidebar-toggle-icon {
        display: block;
    }

    .sidebar-toggle-text {
        display: none;
    }

    .calendar-hero-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .calendar-export-button {
        margin-left: 0;
    }

    .calendar-nav-button {
        min-width: 0;
        height: 36px;
        padding: 0 8px;
        font-size: 14px;
        white-space: nowrap;
    }

    .calendar-feed-grid {
        grid-template-columns: 1fr;
    }

    .desktop-label {
        display: none;
    }

    .mobile-label {
        display: inline;
    }

    .menu-panel {
        position: fixed;
        top: 86px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100vh - 104px);
        overflow-y: auto;
        border-radius: 10px;
    }

    .notification-menu[open],
    .user-menu[open] {
        z-index: 60;
    }
}

@media (max-width: 420px) {
    .auth-shell {
        padding-top: max(16px, env(safe-area-inset-top));
    }

    .auth-brand-logo {
        width: min(172px, 66%);
        margin-bottom: 12px;
    }

    .login-panel {
        padding: 22px 18px;
    }

    .calendar-hero-actions {
        gap: 5px;
    }

    .calendar-nav-button {
        height: 34px;
        padding-inline: 6px;
        font-size: 13px;
    }
}

.public-family-page {
    width: auto;
    min-height: 100vh;
    margin: 0;
    padding: 34px 18px;
    background: transparent;
}

.public-family-page,
.public-family-page * {
    box-sizing: border-box;
}

.public-family-page .public-shell {
    width: min(100%, 1160px);
    margin: 0 auto;
}

.public-family-page .public-header {
    width: 100%;
    margin: 0 0 18px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 8px;
    padding: 22px 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-strong), var(--brand) 62%, #1f7a4d);
    box-shadow: 0 10px 30px rgba(49, 82, 183, .14);
}

.public-family-page .public-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.public-family-page .public-kicker strong {
    color: #fff;
    font-size: 20px;
}

.public-family-page .public-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.public-family-page .public-header h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
    line-height: 1.12;
}

.public-family-page .public-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 10px;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
    font-weight: 700;
}

.public-family-page .public-meta-line span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .58);
    vertical-align: middle;
}

.public-family-page .app-main {
    display: grid;
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 32px;
}

.public-family-page .app-main > * {
    min-width: 0;
}

.public-family-page .app-main > .panel,
.public-family-page .app-main > .elternsprechtag-booking-flow {
    margin: 0;
}

.public-family-page .panel {
    border-color: #dfe5ed;
    box-shadow: 0 8px 28px rgba(22, 33, 63, .06);
}

.public-family-page .app-footer {
    margin: 2px 0 0;
    padding: 6px 0 0;
}

.public-family-page .app-footer a {
    color: #5d6b84;
}

.public-family-page .hero {
    display: none;
}

.stacked-form {
    display: grid;
    gap: 22px;
}

.neuanmeldung-settings-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
}

.neuanmeldung-title-field {
    margin-bottom: 0;
}

.neuanmeldung-title-field input {
    min-height: 48px;
    font-size: 18px;
    font-weight: 700;
}

.neuanmeldung-active-toggle {
    min-height: 48px;
    margin: 0;
    padding-inline: 14px;
    white-space: nowrap;
}

.neuanmeldung-active-field {
    display: grid;
    gap: 6px;
}

.neuanmeldung-active-toggle.is-disabled {
    cursor: not-allowed;
    opacity: .64;
}

.neuanmeldung-active-toggle.is-disabled input {
    cursor: not-allowed;
}

.neuanmeldung-search {
    align-items: end;
    grid-template-columns: minmax(280px, 1fr) auto;
    margin-top: 0;
}

.neuanmeldung-search .field {
    margin-bottom: 0;
    max-width: none;
}

.neuanmeldung-search .field span {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.neuanmeldung-search input[type="search"] {
    width: 100%;
    min-height: 44px;
    border-color: var(--line);
    background: #fff;
}

.neuanmeldung-search .button {
    min-height: 44px;
    min-width: 118px;
}

.neuanmeldung-table-wrap {
    margin-top: 8px;
}

.neuanmeldung-table-wrap td {
    vertical-align: middle;
}

.table-primary {
    display: block;
    margin-bottom: 3px;
}

.pill.info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.pill.warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.pill.danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.form-section {
    display: grid;
    gap: 14px;
    padding-top: 14px;
}

.form-section + .form-section {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.form-section h2 {
    margin: 0;
    font-size: 1.05rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px 18px;
}

.form-grid > .field,
.settings-field-row .field,
.neuanmeldung-public-main .field {
    margin-bottom: 0;
}

.stacked-form .field label,
.settings-field-row .field label {
    color: var(--ink);
    font-size: 13px;
    line-height: 1.25;
}

.stacked-form input[type="email"],
.stacked-form input[type="text"],
.stacked-form input[type="number"],
.stacked-form input[type="date"],
.stacked-form input[type="search"],
.stacked-form textarea,
.stacked-form select {
    width: 100%;
    border-color: var(--line);
    background: #fff;
}

.required,
.field-error {
    color: #b3261e;
}

.field-error {
    margin: 6px 0 0;
    font-size: 13px;
}

.validation-summary-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.validation-summary-list li + li {
    margin-top: 4px;
}

.compact-field {
    max-width: 320px;
}

.inline-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-search input {
    min-width: min(320px, 50vw);
}

.compact-stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.neuanmeldung-index-main {
    display: grid;
    gap: 14px;
}

.neuanmeldung-index-main > .panel,
.neuanmeldung-index-main > .metric-grid {
    margin-top: 0;
}

.neuanmeldung-index-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.neuanmeldung-hero-actions {
    justify-content: flex-end;
    max-width: 560px;
}

.neuanmeldung-metrics {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.settings-field-list {
    display: grid;
    gap: 10px;
}

.settings-field-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 130px 110px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.settings-field-row-dependent {
    margin-left: 22px;
    border-color: #dbe7f3;
    background: #f8fbff;
}

.settings-field-row-dependent strong::before {
    content: "> ";
    color: var(--muted);
    font-weight: 700;
}

.settings-field-row .option-check {
    min-height: 42px;
    margin: 0;
    justify-content: flex-start;
}

.settings-field-row strong,
.settings-field-row .muted {
    display: block;
}

.settings-field-row .muted {
    margin-top: 3px;
    font-size: 12px;
}

.school-data-list {
    display: grid;
    gap: 10px;
}

.school-login-settings .panel-head,
.school-login-settings > h2 {
    margin-bottom: 0.75rem;
}

.school-login-settings .option-grid {
    margin-top: 1.15rem;
}

.school-data-create {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(260px, 1fr) auto;
    align-items: end;
    gap: 14px 18px;
}

.school-data-create .field {
    margin-bottom: 0;
}

.school-data-create-button {
    min-height: 44px;
    align-self: end;
}

.school-data-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.school-data-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr);
    align-items: end;
    gap: 10px;
}

.school-data-row .field,
.school-data-delete-form {
    margin-bottom: 0;
}

.school-data-row .option-check {
    min-height: 42px;
    margin: 0;
}

.neuanmeldung-review-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

.neuanmeldung-review-box {
    min-height: 100%;
    border: 1px solid #dbe7f3;
    border-radius: 8px;
    padding: 14px 16px;
    background: #f8fbff;
}

.neuanmeldung-review-box strong {
    display: block;
    margin-bottom: 8px;
}

.neuanmeldung-review-box ul {
    margin: 0;
    padding-left: 18px;
}

.neuanmeldung-review-box li + li {
    margin-top: 5px;
}

.neuanmeldung-status-save {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.neuanmeldung-status-save:empty {
    visibility: hidden;
}

.neuanmeldung-status-save.error {
    color: var(--danger);
}

.school-data-delete-form {
    justify-self: end;
}

.neuanmeldung-document-item {
    align-items: center;
}

.neuanmeldung-document-summary {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.neuanmeldung-document-summary strong {
    color: var(--ink);
}

.neuanmeldung-document-summary span,
.neuanmeldung-document-summary small {
    color: var(--muted);
    line-height: 1.35;
}

.neuanmeldung-document-summary small {
    font-size: 13px;
}

.neuanmeldung-public-main {
    max-width: 980px;
}

.neuanmeldung-public-main > .panel {
    padding: 26px;
}

.neuanmeldung-public-section {
    gap: 16px;
}

.neuanmeldung-public-section[hidden] {
    display: none;
}

.neuanmeldung-public-section > h2 {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--brand-line);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--brand-strong);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94) 0%, rgba(238, 242, 255, .96) 56%, rgba(232, 248, 240, .9) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.2;
}

.neuanmeldung-public-subsections {
    display: grid;
    gap: 18px;
}

.neuanmeldung-public-subsection {
    display: grid;
    gap: 12px;
}

.neuanmeldung-public-subsection h3 {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
    text-transform: uppercase;
}

.neuanmeldung-public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.neuanmeldung-public-grid .field:has(textarea),
.neuanmeldung-public-grid .field:has(select[multiple]) {
    grid-column: 1 / -1;
}

.neuanmeldung-public-grid [data-field-key="geschwister_an_schule"],
.neuanmeldung-public-grid [data-field-key="sorgerecht"] {
    grid-column: 1 / -1;
}

.neuanmeldung-public-grid [data-field-key="geschwister_an_schule"] select,
.neuanmeldung-public-grid [data-field-key="sorgerecht"] select {
    max-width: calc((100% - 18px) / 2);
}

.neuanmeldung-swim-warning,
.neuanmeldung-proof-warning {
    grid-column: 1 / -1;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fffbeb;
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.neuanmeldung-swim-warning[hidden],
.neuanmeldung-proof-warning[hidden] {
    display: none;
}

@media (max-width: 720px) {
    .public-family-page {
        padding: 16px;
    }

    .public-family-page .public-header {
        padding: 20px;
    }

    .public-family-page .public-kicker {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .inline-search,
    .neuanmeldung-index-hero,
    .neuanmeldung-settings-head,
    .neuanmeldung-public-grid,
    .settings-field-row,
    .school-data-create,
    .school-data-item {
        grid-template-columns: 1fr;
    }

    .school-data-delete-form {
        justify-self: stretch;
    }

    .neuanmeldung-review-grid {
        grid-template-columns: 1fr;
    }

    .inline-search {
        align-items: stretch;
    }

    .neuanmeldung-hero-actions {
        justify-content: flex-start;
        max-width: none;
    }

    .neuanmeldung-public-grid [data-field-key="geschwister_an_schule"] select,
    .neuanmeldung-public-grid [data-field-key="sorgerecht"] select {
        max-width: none;
    }

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

    .inline-search input {
        min-width: 0;
    }

    .neuanmeldung-search input[type="search"] {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .neuanmeldung-metrics {
        grid-template-columns: 1fr;
    }
}

