:root {
    --background: #f2f5f8;
    --surface: #ffffff;
    --surface-muted: #f7f9fb;
    --text: #17212b;
    --muted: #6c7a87;
    --border: #dce5ec;

    --primary: #47a1dd;
    --primary-dark: #287fb9;

    --success: #279768;
    --warning: #d39b12;
    --danger: #d64b52;
    --neutral: #7c8994;

    --sidebar: #101923;
    --sidebar-hover: #1a2937;
    --sidebar-text: #afbdc9;

    --radius: 16px;
    --shadow:
        0 14px 38px rgba(20, 40, 58, .08);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input {
    font: inherit;
}

.material-symbols-rounded {
    font-variation-settings:
        "FILL" 0,
        "wght" 500,
        "GRAD" 0,
        "opsz" 24;
}

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

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    padding: 19px 15px;
    color: #ffffff;
    background: var(--sidebar);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 20px;
    border-bottom:
        1px solid rgba(255, 255, 255, .09);
}

.brand-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: var(--primary);
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-size: 1.04rem;
}

.brand > div:last-child > span {
    margin-top: 3px;
    color: var(--sidebar-text);
    font-size: .76rem;
}

.navigation {
    flex: 1;
    padding-top: 17px;
}

.nav-section {
    margin-top: 7px;
}

.nav-toggle,
.nav-link,
.logout-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 43px;
    gap: 10px;
    padding: 9px 11px;
    border: 0;
    border-radius: 11px;
    color: var(--sidebar-text);
    background: transparent;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.nav-toggle:hover,
.nav-link:hover,
.logout-link:hover {
    color: #ffffff;
    background: var(--sidebar-hover);
}

.nav-toggle > span:nth-child(2),
.nav-link > span:last-child,
.logout-link > span:last-child {
    flex: 1;
}

.nav-chevron {
    transition: transform .18s ease;
}

.nav-toggle[aria-expanded="true"]
.nav-chevron {
    transform: rotate(180deg);
}

.nav-content {
    padding: 4px 0 5px 20px;
}

.nav-content .nav-link {
    min-height: 38px;
    font-size: .89rem;
}

.nav-link.is-active {
    color: #ffffff;
    background:
        rgba(71, 161, 221, .22);
}

.nav-link.is-disabled {
    cursor: default;
    opacity: .55;
}

.sidebar-footer {
    padding-top: 15px;
    border-top:
        1px solid rgba(255, 255, 255, .09);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px 13px;
}

.sidebar-user strong,
.sidebar-user span {
    display: block;
}

.sidebar-user span {
    margin-top: 2px;
    color: var(--sidebar-text);
    font-size: .75rem;
}

.avatar,
.topbar-avatar {
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 800;
}

.avatar {
    width: 40px;
    height: 40px;
}

.topbar-avatar {
    width: 42px;
    height: 42px;
}

.portal-main {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    min-height: 76px;
    gap: 15px;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    background:
        rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}

.topbar-heading {
    flex: 1;
}

.topbar-heading strong,
.topbar-heading span {
    display: block;
}

.topbar-heading span {
    margin-top: 2px;
    color: var(--muted);
    font-size: .76rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-actions button,
.mobile-menu {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: var(--surface);
}

.topbar-actions button:disabled {
    opacity: .55;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.content {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 34px;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.page-heading h1 {
    margin: 4px 0 8px;
    font-size:
        clamp(1.85rem, 3vw, 2.65rem);
    line-height: 1.1;
}

.page-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.eyebrow {
    color: var(--primary-dark);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.build-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border:
        1px solid rgba(71, 161, 221, .28);
    border-radius: 12px;
    color: var(--primary-dark);
    background:
        rgba(71, 161, 221, .11);
    font-weight: 800;
    white-space: nowrap;
}

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

.status-card {
    display: flex;
    align-items: center;
    min-height: 112px;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--border);
    border-left:
        5px solid var(--neutral);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.status-card >
.material-symbols-rounded {
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border-radius: 14px;
    background: var(--surface-muted);
    font-size: 27px;
}

.status-card span,
.status-card strong {
    display: block;
}

.status-card div > span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .79rem;
}

.status-card strong {
    font-size: 1.12rem;
}

.status-success {
    border-left-color: var(--success);
}

.status-info {
    border-left-color: var(--primary);
}

.status-warning {
    border-left-color: var(--warning);
}

.status-danger {
    border-left-color: var(--danger);
}

.status-neutral {
    border-left-color: var(--neutral);
}

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

.panel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--border);
}

.panel-header h2 {
    margin: 4px 0 0;
    font-size: 1.28rem;
}

.panel-header >
.material-symbols-rounded {
    color: var(--primary);
    font-size: 30px;
}

.group-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
}

.group-row:last-child {
    border-bottom: 0;
}

.group-row strong,
.group-row div > span {
    display: block;
}

.group-row div > span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .82rem;
}

.state {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
}

.state-success {
    color: #17764f;
    background: #e4f6ed;
}

.state-info {
    color: #196e9f;
    background: #e1f2fc;
}

.protection-row {
    display: flex;
    gap: 11px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.protection-row:last-child {
    border-bottom: 0;
}

.protection-row >
.material-symbols-rounded {
    color: var(--success);
}

.protection-row strong,
.protection-row span {
    display: block;
}

.protection-row span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}

.data-list {
    margin: 0;
}

.data-list > div {
    display: grid;
    grid-template-columns:
        minmax(170px, 240px) 1fr;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.data-list > div:last-child {
    border-bottom: 0;
}

.data-list dt {
    color: var(--muted);
}

.data-list dd {
    margin: 0;
    font-weight: 700;
}

.panel-text {
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.changelog-entry {
    margin-bottom: 18px;
}

.changelog-entry h2 {
    margin-bottom: 8px;
}

.changelog-entry p {
    color: var(--muted);
    line-height: 1.65;
}

.changelog-entry time {
    color: var(--muted);
    font-size: .78rem;
}

.login-body {
    background:
        radial-gradient(
            circle at top left,
            rgba(71, 161, 221, .19),
            transparent 38%
        ),
        var(--background);
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px 18px;
}

.login-card {
    width: min(100%, 470px);
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow:
        0 24px 70px rgba(22, 45, 65, .14);
}

.login-header {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 28px;
}

.login-logo {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 17px;
    color: #ffffff;
    background: var(--primary);
}

.login-logo
.material-symbols-rounded {
    font-size: 29px;
}

.login-header h1 {
    margin: 4px 0 7px;
    font-size: 1.65rem;
}

.login-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.login-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 14px;
    border-radius: 12px;
    line-height: 1.45;
}

.login-error {
    color: #bd3945;
    background: #fff0f1;
}

.login-success {
    color: #237d59;
    background: #eaf8f1;
}

.login-field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    font-size: .87rem;
    font-weight: 700;
}

.login-input {
    display: flex;
    align-items: center;
    min-height: 52px;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fbfcfd;
}

.login-input:focus-within {
    border-color: var(--primary);
    box-shadow:
        0 0 0 4px rgba(71, 161, 221, .13);
}

.login-input
.material-symbols-rounded {
    color: var(--muted);
}

.login-input input {
    width: 100%;
    min-width: 0;
    padding: 14px 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    gap: 9px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 800;
    cursor: pointer;
}

.primary-button:hover {
    background: var(--primary-dark);
}

.login-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.45;
}

.sidebar-backdrop {
    display: none;
}

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .portal-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        z-index: 60;
        width: min(88vw, 320px);
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .sidebar.is-mobile-open {
        transform: translateX(0);
    }

    .mobile-menu {
        display: grid;
    }

    .content {
        padding: 24px 18px;
    }

    .page-heading {
        display: block;
    }

    .build-badge {
        margin-top: 18px;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 50;
        background: rgba(9, 18, 26, .55);
    }

    body.sidebar-open
    .sidebar-backdrop {
        display: block;
    }
}

@media (max-width: 560px) {
    .topbar {
        padding-inline: 14px;
    }

    .topbar-heading span {
        display: none;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .data-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .login-card {
        padding: 26px 21px;
        border-radius: 17px;
    }

    .login-header {
        display: block;
    }

    .login-logo {
        margin-bottom: 15px;
    }
}


/* Alpha 0.2.0 – Mein Konto */

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

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

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

.form-field {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: .87rem;
    font-weight: 700;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field input,
.form-field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: 0;
    color: var(--text);
    background: #fbfcfd;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 4px rgba(71, 161, 221, .12);
}

.form-field input:disabled {
    color: var(--muted);
    background: #eef2f5;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.form-actions-split {
    justify-content: space-between;
}

.account-button {
    width: auto;
    min-width: 210px;
    padding-inline: 20px;
}

.secondary-button,
.danger-button,
.danger-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 11px;
    font-weight: 750;
    cursor: pointer;
}

.secondary-button {
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--surface);
}

.danger-button {
    border: 1px solid #efc7ca;
    color: #b8323b;
    background: #fff3f4;
}

.danger-icon-button {
    width: 44px;
    padding: 0;
    border: 1px solid #efc7ca;
    color: #b8323b;
    background: #fff3f4;
}

.form-hint {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.55;
}

.account-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-left: 5px solid;
    border-radius: 12px;
}

.account-success {
    border-left-color: var(--success);
    color: #1f7655;
    background: #eaf8f1;
}

.account-error {
    border-left-color: var(--danger);
    color: #b8323b;
    background: #fff0f1;
}

.security-state {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-left: 5px solid;
    border-radius: 12px;
}

.security-state strong,
.security-state span {
    display: block;
}

.security-state div > span {
    margin-top: 5px;
    font-size: .83rem;
    line-height: 1.5;
}

.security-enabled {
    border-left-color: var(--success);
    color: #1f7655;
    background: #eaf8f1;
}

.security-warning {
    border-left-color: var(--warning);
    color: #805d08;
    background: #fff8e4;
}

.setup-box {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-muted);
}

.setup-box p {
    color: var(--muted);
    line-height: 1.55;
}

.secret-code {
    display: block;
    overflow-wrap: anywhere;
    margin: 14px 0;
    padding: 13px;
    border-radius: 9px;
    background: #e6edf2;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.text-link {
    color: var(--primary-dark);
    font-weight: 750;
}

.session-list {
    display: grid;
    gap: 15px;
}

.session-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.session-icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 15px;
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .12);
}

.session-details {
    flex: 1;
    min-width: 0;
}

.session-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.session-data {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin: 13px 0 0;
}

.session-data div {
    display: grid;
    gap: 3px;
}

.session-data dt {
    color: var(--muted);
    font-size: .72rem;
}

.session-data dd {
    margin: 0;
    font-size: .83rem;
    font-weight: 700;
}

.state-neutral {
    color: #586571;
    background: #e9eef2;
}

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

.notification-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.notification-description {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.notification-description >
.material-symbols-rounded {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .12);
}

.notification-description strong,
.notification-description div > span {
    display: block;
}

.notification-description div > span {
    max-width: 650px;
    margin-top: 5px;
    color: var(--muted);
    font-size: .83rem;
    line-height: 1.5;
}

.notification-channels {
    display: flex;
    gap: 24px;
}

.switch-field {
    display: flex;
    align-items: center;
    min-width: 120px;
    gap: 9px;
    cursor: pointer;
}

.switch-field input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-control {
    position: relative;
    width: 43px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5dc;
    transition: background .18s ease;
}

.switch-control::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
    transition: transform .18s ease;
    content: "";
}

.switch-field input:checked +
.switch-control {
    background: var(--primary);
}

.switch-field input:checked +
.switch-control::after {
    transform: translateX(19px);
}

.switch-field input:disabled +
.switch-control {
    opacity: .65;
}

.switch-field > span:last-child {
    font-size: .82rem;
    font-weight: 700;
}

.switch-field small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .67rem;
}

.notification-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

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

@media (max-width: 1000px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .notification-card {
        display: grid;
    }
}

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

    .form-field-wide {
        grid-column: auto;
    }

    .session-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .session-details {
        width: calc(100% - 70px);
    }

    .notification-channels {
        display: grid;
        gap: 12px;
    }

    .account-button {
        width: 100%;
    }
}


/* Alpha 0.2.1 – Zwei-Faktor-QR-Code */

.two-factor-qr {
    display: grid;
    width: min(100%, 320px);
    margin: 18px auto;
    padding: 18px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 10px 28px rgba(20, 40, 58, .08);
}

.two-factor-qr img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.setup-fallback {
    margin-top: 22px;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.55;
}

@media (max-width: 520px) {
    .two-factor-qr {
        width: 100%;
        padding: 14px;
    }
}


/* Alpha 0.2.2 – Kompaktes Sicherheitslayout */

.security-page-heading {
    width: min(100%, 1080px);
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 18px;
}

.security-page-heading h1 {
    font-size: clamp(1.7rem, 2.5vw, 2.15rem);
}

.security-page-heading p {
    max-width: 660px;
    font-size: .92rem;
}

.security-account-grid {
    width: min(100%, 1080px);
    margin-right: auto;
    margin-left: auto;
    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.1fr);
    gap: 18px;
    align-items: start;
}

.security-panel {
    gap: 15px;
    padding: 19px;
}

.security-panel .panel-header {
    padding-bottom: 13px;
}

.security-panel .panel-header h2 {
    font-size: 1.12rem;
}

.security-panel .panel-header >
.material-symbols-rounded {
    font-size: 27px;
}

.security-panel .form-field {
    gap: 6px;
    font-size: .81rem;
}

.security-panel .form-field input {
    min-height: 43px;
    padding: 9px 11px;
    border-radius: 10px;
}

.security-panel .form-hint {
    font-size: .75rem;
    line-height: 1.45;
}

.security-panel .form-actions {
    padding-top: 13px;
}

.security-panel .account-button {
    min-width: 175px;
    min-height: 43px;
    padding: 9px 15px;
    font-size: .84rem;
}

.security-panel .secondary-button,
.security-panel .danger-button {
    min-height: 41px;
    padding: 8px 13px;
    font-size: .8rem;
}

.security-state {
    padding: 13px;
    gap: 10px;
}

.security-state >
.material-symbols-rounded {
    font-size: 22px;
}

.security-state strong {
    font-size: .9rem;
}

.security-state div > span {
    margin-top: 3px;
    font-size: .76rem;
}

.setup-box {
    padding: 14px;
}

.setup-box > strong {
    font-size: .92rem;
}

.setup-box p {
    margin: 8px 0;
    font-size: .78rem;
}

.two-factor-qr {
    width: min(100%, 220px);
    margin: 13px auto;
    padding: 11px;
    border-radius: 13px;
}

.two-factor-qr img {
    max-width: 198px;
}

.setup-fallback {
    margin-top: 14px;
    font-size: .75rem;
}

.secret-code {
    margin: 10px 0;
    padding: 10px;
    font-size: .82rem;
    letter-spacing: .06em;
}

.security-two-factor-panel .text-link {
    font-size: .78rem;
}

.security-password-panel {
    position: sticky;
    top: 94px;
}

@media (max-width: 1050px) {
    .security-account-grid {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .security-password-panel {
        position: static;
    }
}

@media (max-width: 680px) {
    .security-page-heading,
    .security-account-grid {
        width: 100%;
    }

    .security-panel {
        padding: 16px;
    }

    .security-panel .account-button,
    .security-panel .danger-button,
    .security-panel .secondary-button {
        width: 100%;
    }

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

    .two-factor-qr img {
        max-width: 176px;
    }
}


/* Alpha 0.2.3 – Profilbild */

.avatar,
.topbar-avatar {
    overflow: hidden;
}

.avatar img,
.topbar-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-layout {
    display: grid;
    grid-template-columns:
        minmax(260px, 340px)
        minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.profile-avatar-panel {
    display: grid;
    gap: 18px;
}

.profile-avatar-preview {
    position: relative;
    display: grid;
    width: 190px;
    height: 190px;
    margin: 4px auto 0;
    place-items: center;
    overflow: hidden;
    border: 5px solid #ffffff;
    border-radius: 50%;
    background:
        rgba(71, 161, 221, .14);
    box-shadow:
        0 0 0 1px var(--border),
        0 12px 30px rgba(20, 40, 58, .12);
}

.profile-avatar-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #ffffff;
    background: var(--primary);
    font-size: 4rem;
    font-weight: 800;
}

.profile-avatar-name {
    text-align: center;
}

.profile-avatar-name strong,
.profile-avatar-name span {
    display: block;
}

.profile-avatar-name span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .82rem;
}

.avatar-upload-form {
    display: grid;
    gap: 12px;
}

.avatar-file-field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 68px;
    gap: 12px;
    padding: 12px 14px;
    overflow: hidden;
    border: 1px dashed #afc6d5;
    border-radius: 12px;
    background: var(--surface-muted);
    cursor: pointer;
}

.avatar-file-field:hover {
    border-color: var(--primary);
    background:
        rgba(71, 161, 221, .08);
}

.avatar-file-field >
.material-symbols-rounded {
    color: var(--primary-dark);
    font-size: 28px;
}

.avatar-file-field strong,
.avatar-file-field small {
    display: block;
}

.avatar-file-field small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .72rem;
}

.avatar-file-field input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.profile-avatar-panel .account-button,
.profile-avatar-remove {
    width: 100%;
}

.profile-data-panel {
    min-width: 0;
}

@media (max-width: 960px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-avatar-panel {
        width: min(100%, 520px);
        margin: 0 auto;
    }
}

@media (max-width: 520px) {
    .profile-avatar-preview {
        width: 160px;
        height: 160px;
    }

    .profile-avatar-fallback {
        font-size: 3.25rem;
    }
}


/* Alpha 0.3.0 – Benutzerverwaltung */

.page-action-button {
    width: auto;
    min-width: 190px;
    padding-inline: 18px;
    text-decoration: none;
}

.user-statistics {
    margin-bottom: 18px;
}

.user-filter-form {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        minmax(160px, 220px)
        minmax(190px, 240px)
        auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
    padding: 18px;
}

.user-filter-button {
    min-height: 48px;
}

.user-table-panel {
    padding: 0;
    overflow: hidden;
}

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

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

.user-table th,
.user-table td {
    padding: 15px 17px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.user-table th {
    color: var(--muted);
    background: var(--surface-muted);
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.user-table tbody tr:hover {
    background: #f8fbfd;
}

.user-table tbody tr:last-child td {
    border-bottom: 0;
}

.user-table-person {
    display: flex;
    align-items: center;
    min-width: 280px;
    gap: 12px;
}

.user-table-person strong,
.user-table-person span,
.user-table-person small {
    display: block;
}

.user-table-person span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .8rem;
}

.user-table-person small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .68rem;
}

.user-table-avatar {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 800;
}

.user-table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-extra-state {
    margin-top: 5px;
}

.table-action {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface);
    text-decoration: none;
}

.table-action:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.empty-table {
    padding: 40px !important;
    color: var(--muted);
    text-align: center !important;
}

.user-admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.user-admin-tab {
    display: inline-flex;
    align-items: center;
    min-height: 43px;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--muted);
    background: var(--surface);
    text-decoration: none;
    white-space: nowrap;
}

.user-admin-tab.is-active {
    color: var(--primary-dark);
    border-color: rgba(71, 161, 221, .4);
    background: rgba(71, 161, 221, .11);
    font-weight: 750;
}

.user-admin-grid,
.user-security-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(300px, .75fr);
    gap: 20px;
    align-items: start;
}

.user-role-panel {
    position: sticky;
    top: 94px;
}

.role-selection {
    display: grid;
    gap: 10px;
}

.role-selection-title {
    font-size: .87rem;
    font-weight: 800;
}

.role-option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-muted);
    cursor: pointer;
}

.role-option input {
    margin-top: 3px;
}

.role-option strong,
.role-option small {
    display: block;
}

.role-option small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.group-admin-list {
    display: grid;
    gap: 15px;
}

.group-admin-card {
    padding: 20px;
}

.group-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.group-enable-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.group-enable-option >
.material-symbols-rounded {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .12);
}

.group-enable-option strong,
.group-enable-option small {
    display: block;
}

.group-enable-option small {
    margin-top: 3px;
    color: var(--muted);
}

.group-admin-options {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(180px, .7fr)
        minmax(220px, .8fr);
    gap: 16px;
    padding-top: 16px;
}

.group-radio-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.group-radio-option input {
    margin-top: 3px;
}

.group-radio-option strong,
.group-radio-option small {
    display: block;
}

.group-radio-option small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.4;
}

.sticky-form-actions {
    position: sticky;
    bottom: 16px;
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.user-session-panel {
    margin-top: 20px;
}

.admin-session-list {
    display: grid;
}

.admin-session-row {
    display: grid;
    grid-template-columns:
        auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.admin-session-row:last-child {
    border-bottom: 0;
}

.admin-session-row > div strong,
.admin-session-row > div span {
    display: block;
}

.admin-session-row > div strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-session-row > div span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .76rem;
}

.activity-list {
    display: grid;
    gap: 13px;
}

.activity-entry {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px;
}

.activity-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .12);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.activity-event {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: .78rem;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
    color: var(--muted);
    font-size: .72rem;
}

.empty-state-panel {
    padding: 25px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 1120px) {
    .user-filter-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .user-admin-grid,
    .user-security-grid {
        grid-template-columns: 1fr;
    }

    .user-role-panel {
        position: static;
    }

    .group-admin-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .page-action-button {
        width: 100%;
        margin-top: 16px;
    }

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

    .user-admin-tabs {
        margin-right: -18px;
        padding-right: 18px;
    }

    .group-admin-header {
        align-items: flex-start;
    }

    .admin-session-row {
        grid-template-columns:
            auto minmax(0, 1fr) auto;
    }

    .admin-session-row > .state {
        grid-column: 2;
    }
}


/* Alpha 0.3.1 – Portal-Gruppenverwaltung */

.form-field textarea {
    width: 100%;
    padding: 12px 13px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: 0;
    color: var(--text);
    background: #fbfcfd;
    font: inherit;
    line-height: 1.55;
}

.form-field textarea:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 4px rgba(71, 161, 221, .12);
}

.group-filter-form {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        minmax(180px, 240px)
        auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
    padding: 18px;
}

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

.group-overview-card {
    padding: 0;
    overflow: hidden;
}

.group-card-banner {
    height: 145px;
    overflow: hidden;
    background: #dce9f1;
}

.group-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-card-banner-fallback {
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    background:
        linear-gradient(
            135deg,
            rgba(71, 161, 221, .12),
            rgba(71, 161, 221, .3)
        );
}

.group-card-banner-fallback
.material-symbols-rounded {
    font-size: 44px;
}

.group-card-body {
    padding: 20px;
}

.group-card-heading {
    display: grid;
    grid-template-columns:
        auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
}

.group-card-logo {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    border: 4px solid #ffffff;
    border-radius: 16px;
    color: #ffffff;
    background: var(--primary);
    box-shadow:
        0 0 0 1px var(--border);
    font-size: 1.05rem;
    font-weight: 800;
}

.group-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-card-heading strong,
.group-card-heading div > span {
    display: block;
}

.group-card-heading div > span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .76rem;
}

.group-card-body > p {
    min-height: 46px;
    margin: 17px 0;
    color: var(--muted);
    font-size: .83rem;
    line-height: 1.55;
}

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

.group-card-statistics div {
    padding: 11px;
    border-radius: 10px;
    background: var(--surface-muted);
}

.group-card-statistics span,
.group-card-statistics strong {
    display: block;
}

.group-card-statistics span {
    color: var(--muted);
    font-size: .68rem;
}

.group-card-statistics strong {
    margin-top: 4px;
    font-size: 1.1rem;
}

.group-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 17px;
}

.group-card-actions .secondary-button {
    flex: 1;
    text-decoration: none;
}

.group-edit-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 390px);
    gap: 20px;
    align-items: start;
}

.group-media-column {
    display: grid;
    gap: 20px;
}

.group-media-panel {
    display: grid;
    gap: 15px;
}

.group-logo-preview {
    display: grid;
    width: 155px;
    height: 155px;
    margin: 0 auto;
    place-items: center;
    overflow: hidden;
    border: 4px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary);
    box-shadow:
        0 0 0 1px var(--border);
    font-size: 2.2rem;
    font-weight: 800;
}

.group-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-banner-preview {
    display: grid;
    height: 145px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--primary-dark);
    background:
        linear-gradient(
            135deg,
            rgba(71, 161, 221, .1),
            rgba(71, 161, 221, .25)
        );
}

.group-banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-banner-preview
.material-symbols-rounded {
    font-size: 42px;
}

.group-media-form {
    display: grid;
    gap: 11px;
}

.group-media-form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: var(--surface-muted);
}

.group-media-panel .account-button,
.group-media-remove {
    width: 100%;
}

.group-member-add-form {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(190px, .6fr)
        minmax(190px, .7fr)
        minmax(190px, .7fr)
        auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
}

.group-member-add-form
.panel-header {
    grid-column: 1 / -1;
}

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

.group-member-card {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        minmax(180px, .55fr)
        minmax(170px, .5fr)
        minmax(170px, .5fr)
        auto;
    gap: 14px;
    align-items: center;
    padding: 17px;
}

.group-member-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.group-member-person strong,
.group-member-person span,
.group-member-person small {
    display: block;
}

.group-member-person span {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-member-person small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .67rem;
}

.group-member-actions {
    display: grid;
    gap: 7px;
}

.group-member-actions
.primary-button,
.group-member-actions
.danger-button {
    min-height: 40px;
    padding: 8px 12px;
    font-size: .78rem;
}

@media (max-width: 1180px) {
    .group-member-add-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .group-member-card {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .group-member-person {
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {
    .group-overview-grid,
    .group-edit-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .group-filter-form,
    .group-member-add-form,
    .group-member-card {
        grid-template-columns: 1fr;
    }

    .group-card-heading {
        grid-template-columns:
            auto minmax(0, 1fr);
    }

    .group-card-heading > .state {
        grid-column: 2;
        justify-self: start;
    }

    .group-card-actions {
        display: grid;
    }

    .group-card-statistics {
        grid-template-columns: 1fr;
    }

    .group-member-person,
    .group-member-add-form
    .panel-header {
        grid-column: auto;
    }
}


/* Alpha 0.3.2 – Benutzerverwaltung korrigiert */

.account-warning {
    border-left-color: var(--warning);
    color: #805d08;
    background: #fff8e4;
}


/* Alpha 0.3.4 – Dashboard, Navigation und Rechte */

.dashboard-main-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(300px, .75fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.dashboard-account-button {
    width: 100%;
    margin-top: 18px;
    text-decoration: none;
}

.dashboard-changelog-panel {
    margin-top: 20px;
}

.dashboard-changelog-list {
    display: grid;
}

.dashboard-changelog-entry {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.dashboard-changelog-entry:first-child {
    padding-top: 4px;
}

.dashboard-changelog-entry:last-child {
    padding-bottom: 4px;
    border-bottom: 0;
}

.dashboard-changelog-version {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
}

.dashboard-current-version {
    color: var(--primary-dark);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dashboard-changelog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-changelog-heading h3 {
    margin: 0;
    font-size: 1rem;
}

.dashboard-changelog-heading time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: .72rem;
}

.dashboard-changelog-content p {
    max-height: 155px;
    margin: 10px 0 0;
    overflow: auto;
    color: var(--muted);
    font-size: .81rem;
    line-height: 1.6;
}

.dashboard-empty-state {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 22px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
    background: var(--surface-muted);
}

.dashboard-empty-state strong,
.dashboard-empty-state span {
    display: block;
}

.dashboard-empty-state div > span {
    margin-top: 4px;
    font-size: .78rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .dashboard-changelog-entry {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-changelog-version {
        flex-direction: row;
        align-items: center;
    }

    .dashboard-changelog-heading {
        display: block;
    }

    .dashboard-changelog-heading time {
        display: block;
        margin-top: 6px;
    }
}

/* Alpha 0.3.6 – Interner Betreuer-Alarm */

.care-alarm-group-nav-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #a22424;
    background: rgba(198, 40, 40, .08);
    font-size: .86rem;
    font-weight: 750;
    text-decoration: none;
}

.care-alarm-group-nav-link:hover,
.care-alarm-group-nav-link.is-active {
    color: #fff;
    background: #c62828;
}

.care-alarm-settings-panel {
    display: grid;
    gap: 16px;
}

.care-alarm-setting-state {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-left: 5px solid #85919d;
    border-radius: 11px;
    background: var(--surface-muted);
}

.care-alarm-setting-state.is-enabled {
    border-left-color: #2e8b57;
}

.care-alarm-setting-state strong,
.care-alarm-setting-state span {
    display: block;
}

.care-alarm-setting-state span {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.care-alarm-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.care-alarm-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.care-alarm-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.care-alarm-switch span {
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #aeb7c0;
    cursor: pointer;
    transition: .2s ease;
}

.care-alarm-switch span::after {
    display: block;
    width: 22px;
    height: 22px;
    margin: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .25);
    content: "";
    transition: .2s ease;
}

.care-alarm-switch input:checked + span {
    background: #2e8b57;
}

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

.care-alarm-public-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding: 17px 19px;
    border: 2px solid #efb3b3;
    border-left: 6px solid #c62828;
    border-radius: 13px;
    color: #751c1c;
    background: #fff2f2;
}

.care-alarm-public-warning > .material-symbols-rounded {
    font-size: 32px;
}

.care-alarm-public-warning p {
    margin: 5px 0 0;
    line-height: 1.55;
}

.care-alarm-disabled-panel,
.care-alarm-empty {
    display: flex;
    align-items: center;
    gap: 14px;
}

.care-alarm-disabled-panel strong,
.care-alarm-disabled-panel span,
.care-alarm-empty strong,
.care-alarm-empty span {
    display: block;
}

.care-alarm-disabled-panel div > span,
.care-alarm-empty div > span {
    margin-top: 4px;
    color: var(--muted);
}

.care-alarm-confirmation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 20px;
    border-left: 6px solid #2e8b57;
}

.care-alarm-confirmation-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #2e8b57;
}

.care-alarm-confirmation-icon .material-symbols-rounded {
    font-size: 30px;
}

.care-alarm-confirmation h2 {
    margin: 4px 0 8px;
}

.care-alarm-confirmation-data {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.care-alarm-confirmation-data div {
    padding: 12px;
    border-radius: 10px;
    background: var(--surface-muted);
}

.care-alarm-confirmation-data dt {
    color: var(--muted);
    font-size: .72rem;
}

.care-alarm-confirmation-data dd {
    margin: 4px 0 0;
    font-weight: 750;
}

.care-alarm-confirmation-emergency {
    color: #9a2020;
    font-weight: 800;
}

.care-alarm-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 22px;
}

.care-alarm-form {
    display: grid;
    gap: 16px;
}

.care-alarm-type-fieldset {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.care-alarm-type-fieldset legend {
    margin-bottom: 7px;
    font-weight: 750;
}

.care-alarm-type-option {
    position: relative;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}

.care-alarm-type-option:has(input:checked) {
    border-color: #c62828;
    background: #fff3f3;
}

.care-alarm-type-option input {
    width: 18px;
    height: 18px;
    accent-color: #c62828;
}

.care-alarm-type-option > .material-symbols-rounded {
    color: #c62828;
    font-size: 29px;
}

.care-alarm-type-option strong,
.care-alarm-type-option small {
    display: block;
}

.care-alarm-type-option small {
    margin-top: 3px;
    color: var(--muted);
}

.care-alarm-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    gap: 9px;
    padding: 14px 18px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #c62828;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.care-alarm-submit:hover {
    background: #a51e1e;
}

.care-alarm-step {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.care-alarm-step:last-child {
    border-bottom: 0;
}

.care-alarm-step strong,
.care-alarm-step span {
    display: block;
}

.care-alarm-step span {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.5;
}

.care-alarm-list {
    display: grid;
    gap: 16px;
}

.care-alarm-card {
    position: relative;
    overflow: hidden;
}

.care-alarm-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    content: "";
}

.care-alarm-card-open::before { background: #c62828; }
.care-alarm-card-assigned::before { background: #ef8f00; }
.care-alarm-card-resolved::before { background: #2e8b57; }
.care-alarm-card-cancelled::before { background: #87929d; }

.care-alarm-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.care-alarm-card-header h2 {
    margin: 9px 0 0;
    font-size: 1.05rem;
}

.care-alarm-card-header time {
    color: var(--muted);
    font-size: .75rem;
}

.care-alarm-card-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 17px;
}

.care-alarm-card-data div,
.care-alarm-card-description {
    padding: 12px;
    border-radius: 10px;
    background: var(--surface-muted);
}

.care-alarm-card-data span,
.care-alarm-card-data strong {
    display: block;
}

.care-alarm-card-data span {
    color: var(--muted);
    font-size: .72rem;
}

.care-alarm-card-data strong {
    margin-top: 4px;
}

.care-alarm-card-description {
    margin-top: 12px;
}

.care-alarm-card-description p {
    margin: 6px 0 0;
    line-height: 1.55;
}

.care-alarm-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}


.care-alarm-web-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    width: min(720px, calc(100% - 28px));
    max-height: calc(100vh - 36px);
    margin: auto;
    padding: 24px;
    overflow-y: auto;
    border: 3px solid #fff;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, #8d0808, #d32020);
    box-shadow: 0 0 0 100vmax rgba(20, 0, 0, .78), 0 24px 80px rgba(0, 0, 0, .48);
    animation: careAlarmPulse 1.2s infinite;
}

.care-alarm-web-overlay[hidden] {
    display: none;
}

.care-alarm-web-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.care-alarm-web-header > .material-symbols-rounded {
    font-size: 58px;
}

.care-alarm-web-header span,
.care-alarm-web-header strong {
    display: block;
}

.care-alarm-web-header h2 {
    margin: 3px 0;
    font-size: 1.65rem;
}

.care-alarm-web-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.care-alarm-web-grid div,
.care-alarm-web-description {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
}

.care-alarm-web-grid span,
.care-alarm-web-grid strong {
    display: block;
}

.care-alarm-web-grid span {
    font-size: .72rem;
    opacity: .82;
}

.care-alarm-web-grid strong {
    margin-top: 4px;
}

.care-alarm-web-description {
    margin-top: 10px;
}

.care-alarm-web-description p {
    margin: 6px 0 0;
    line-height: 1.55;
}

.care-alarm-web-warning {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #751717;
    background: #fff;
    font-weight: 800;
}

.care-alarm-web-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.care-alarm-web-primary,
.care-alarm-web-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: 8px;
    padding: 11px 15px;
    border-radius: 11px;
    font: inherit;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.care-alarm-web-primary {
    border: 0;
    color: #971515;
    background: #fff;
}

.care-alarm-web-secondary {
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

@keyframes careAlarmPulse {
    0%, 100% { border-color: #ffb9b9; }
    50% { border-color: #fff; }
}

@media (max-width: 820px) {
    .care-alarm-page-grid,
    .care-alarm-confirmation-data {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .care-alarm-card-data,
    .care-alarm-web-grid,
    .care-alarm-web-actions {
        grid-template-columns: 1fr;
    }

    .care-alarm-card-header {
        display: block;
    }

    .care-alarm-card-header time {
        display: block;
        margin-top: 8px;
    }

    .care-alarm-web-overlay {
        width: calc(100% - 18px);
        max-height: calc(100vh - 18px);
        padding: 18px;
    }

    
}
/* Alpha 0.3.9 – Support-Center */
.support-heading {
    align-items: flex-start;
}

.support-home-grid,
.support-detail-layout,
.support-admin-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 22px;
    align-items: start;
}

.support-ticket-column,
.support-thread,
.support-sidebar,
.support-ticket-list,
.support-notification-list,
.support-event-list {
    display: grid;
    gap: 14px;
}

.support-create-form,
.support-reply-form,
.support-note-form,
.support-admin-control {
    display: grid;
    gap: 16px;
}

.support-filter-form,
.support-admin-filter-form {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(150px, .8fr)) auto;
    gap: 12px;
    align-items: end;
}

.support-admin-filter-form {
    grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(145px, .75fr)) auto;
    margin-bottom: 18px;
}

.support-filter-button {
    min-height: 44px;
    white-space: nowrap;
}

.support-ticket-card,
.support-summary,
.support-admin-control,
.support-admin-table tbody tr {
    position: relative;
}

.support-ticket-card {
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.support-ticket-card:hover {
    transform: translateY(-2px);
    border-color: rgba(71, 161, 221, .6);
    box-shadow: 0 16px 34px rgba(15, 37, 57, .12);
}

.support-ticket-card::before,
.support-summary::before,
.support-admin-control::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    content: "";
}

.support-status-open::before,
.support-admin-table tr.support-status-open td:first-child {
    border-left-color: #d83b3b;
}

.support-status-progress::before,
.support-admin-table tr.support-status-progress td:first-child {
    border-left-color: #ef8f00;
}

.support-status-waiting::before,
.support-admin-table tr.support-status-waiting td:first-child {
    border-left-color: #8a59c8;
}

.support-status-answered::before,
.support-admin-table tr.support-status-answered td:first-child {
    border-left-color: #2f86c7;
}

.support-status-closed::before,
.support-admin-table tr.support-status-closed td:first-child {
    border-left-color: #2e8b57;
}

.support-status-neutral::before {
    background: #87929d;
}

.support-status-open::before { background: #d83b3b; }
.support-status-progress::before { background: #ef8f00; }
.support-status-waiting::before { background: #8a59c8; }
.support-status-answered::before { background: #2f86c7; }
.support-status-closed::before { background: #2e8b57; }

.support-ticket-card header,
.support-message-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.support-ticket-card h2,
.support-message-header strong,
.support-table-ticket strong {
    display: block;
}

.support-ticket-card h2 {
    margin: 6px 0 0;
    font-size: 1.05rem;
}

.support-ticket-number,
.support-message-header span,
.support-table-ticket span {
    color: var(--muted);
    font-size: .78rem;
}

.support-status-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    background: var(--surface-muted);
    font-size: .75rem;
    font-weight: 750;
    white-space: nowrap;
}

.support-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    color: var(--muted);
    font-size: .78rem;
}

.support-ticket-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.support-ticket-meta .material-symbols-rounded {
    font-size: 18px;
}

.support-password-warning,
.support-security-note,
.support-closed-panel {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-left: 5px solid #d39c1e;
    border-radius: 11px;
    background: #fff8e7;
    color: #684a08;
}

.support-password-warning > .material-symbols-rounded,
.support-security-note > .material-symbols-rounded,
.support-closed-panel > .material-symbols-rounded {
    font-size: 28px;
}

.support-security-note strong,
.support-security-note span,
.support-closed-panel strong,
.support-closed-panel span {
    display: block;
}

.support-security-note span,
.support-closed-panel span {
    margin-top: 4px;
    line-height: 1.45;
}

.support-message {
    overflow: hidden;
    border-left: 6px solid #8a98a6;
}

.support-message-user {
    border-left-color: #47a1dd;
}

.support-message-staff {
    border-left-color: #2e8b57;
}

.support-message-internal {
    border-left-color: #8a59c8;
    background: linear-gradient(180deg, rgba(138, 89, 200, .08), transparent 60%);
}

.support-message-header time {
    color: var(--muted);
    font-size: .76rem;
    white-space: nowrap;
}

.support-message-body {
    margin-top: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.support-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 15px;
}

.support-attachment {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: inherit;
    background: var(--surface-muted);
    text-decoration: none;
}

.support-attachment:hover {
    border-color: #47a1dd;
}

.support-attachment strong,
.support-attachment small {
    display: block;
}

.support-attachment small {
    margin-top: 2px;
    color: var(--muted);
}

.support-form-actions {
    margin-top: 0;
}

.support-full-button {
    width: 100%;
    justify-content: center;
}

.support-ticket-actions {
    display: grid;
    gap: 10px;
}

.support-data-list div {
    align-items: flex-start;
}

.support-notification {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-left: 5px solid #47a1dd;
    color: inherit;
    text-decoration: none;
}

.support-notification > .material-symbols-rounded {
    color: #47a1dd;
    font-size: 30px;
}

.support-notification strong,
.support-notification small {
    display: block;
}

.support-notification small {
    margin-top: 3px;
    color: var(--muted);
}

.support-notification time {
    color: var(--muted);
    font-size: .75rem;
    white-space: nowrap;
}

.support-statistics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.support-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-stat-card > .material-symbols-rounded {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    color: #17689d;
    background: rgba(71, 161, 221, .14);
}

.support-stat-card strong,
.support-stat-card span {
    display: block;
}

.support-stat-card strong {
    font-size: 1.35rem;
}

.support-stat-card span {
    color: var(--muted);
    font-size: .78rem;
}

.support-admin-table tbody td:first-child {
    border-left: 5px solid #87929d;
}

.support-table-ticket span {
    margin-top: 4px;
}

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

.support-event-list > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.support-event-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.support-event-dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: #47a1dd;
    box-shadow: 0 0 0 4px rgba(71, 161, 221, .13);
}

.support-event-list strong,
.support-event-list small {
    display: block;
}

.support-event-list small {
    margin-top: 3px;
    color: var(--muted);
    line-height: 1.4;
}

.support-empty-state {
    min-height: 140px;
}

@media (max-width: 1180px) {
    .support-statistics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .support-admin-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .support-home-grid,
    .support-detail-layout,
    .support-admin-detail-layout {
        grid-template-columns: 1fr;
    }

    .support-create-form {
        order: -1;
    }

    .support-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .support-statistics-grid,
    .support-admin-compose-grid,
    .support-filter-form,
    .support-admin-filter-form {
        grid-template-columns: 1fr;
    }

    .support-ticket-card header,
    .support-message-header,
    .support-notification {
        display: grid;
        grid-template-columns: 1fr;
    }

    .support-message-header time,
    .support-notification time {
        white-space: normal;
    }
}

/* Alpha 0.3.12 – Private und geschützte Gruppenräume */

.group-module-nav-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 42px;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.group-module-nav-link:hover {
    background: var(--surface-muted);
}

.group-module-nav-link.is-active {
    color: #fff;
    background: var(--accent);
}

.group-module-nav-link > .material-symbols-rounded {
    font-size: 21px;
}

.group-module-nav-link.is-active .nav-badge {
    color: var(--accent);
    background: #fff;
}
.nav-badge {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #d64040;
    font-size: .72rem;
    font-weight: 800;
}

.group-content-editor {
    margin-bottom: 22px;
}

.group-content-list {
    display: grid;
    gap: 16px;
}

.group-content-card,
.rule-card {
    position: relative;
    overflow: hidden;
}

.group-content-card::before,
.rule-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    content: "";
}

.group-content-card.is-published::before { background: #2e8b57; }
.group-content-card.is-draft::before { background: #ef8f00; }
.group-content-card.is-archived::before { background: #87929d; }
.rule-card.is-rule::before { background: #47a1dd; }
.rule-card.is-information::before { background: #6b7c93; }
.rule-card.is-warning::before { background: #d64040; }

.group-content-card-header,
.rule-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.group-content-card-header h2,
.rule-card-header h2 {
    margin: 8px 0 4px;
}

.group-content-card-header > .material-symbols-rounded,
.rule-card-header > .material-symbols-rounded {
    color: var(--accent);
    font-size: 34px;
}

.rule-card-header {
    justify-content: flex-start;
}

.rule-card.is-warning .rule-card-header > .material-symbols-rounded {
    color: #d64040;
}

.group-content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.content-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-muted);
    font-size: .72rem;
    font-weight: 750;
}

.content-chip .material-symbols-rounded {
    font-size: 16px;
}

.content-chip.is-pinned {
    color: #175d8d;
    background: rgba(71, 161, 221, .14);
}

.content-chip.is-required {
    color: #8b2626;
    background: rgba(214, 64, 64, .12);
}

.group-content-body {
    margin-top: 16px;
    line-height: 1.65;
    white-space: normal;
}

.content-expiry,
.rule-acknowledged,
.chat-room-notice,
.private-chat-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 13px;
    border-left: 4px solid #47a1dd;
    border-radius: 9px;
    color: var(--muted);
    background: var(--surface-muted);
}

.rule-acknowledged {
    border-left-color: #2e8b57;
    color: #245f42;
}

.rule-ack-form {
    margin-top: 16px;
}

.group-content-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.group-content-actions form {
    margin: 0;
}

.group-chat-layout {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    min-height: 680px;
}

.chat-room-sidebar,
.chat-panel {
    min-height: 680px;
}

.chat-room-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-room-list {
    display: grid;
    gap: 8px;
}

.chat-room-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
    transition: .18s ease;
}

.chat-room-link:hover,
.chat-room-link.is-active {
    border-color: rgba(71, 161, 221, .65);
    background: rgba(71, 161, 221, .1);
}

.chat-room-link > .material-symbols-rounded {
    color: var(--accent);
}

.chat-room-link strong,
.chat-room-link small {
    display: block;
}

.chat-room-link small {
    margin-top: 3px;
    color: var(--muted);
}

.chat-unread-badge {
    display: inline-grid;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #d64040;
    font-size: .72rem;
    font-weight: 850;
}

.chat-room-avatar,
.chat-message-avatar {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    background: #47a1dd;
    font-weight: 800;
}

.chat-room-avatar.is-large {
    width: 52px;
    height: 52px;
}

.chat-room-avatar img,
.chat-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-room-create {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.chat-room-create summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 750;
}

.chat-room-create-form {
    display: grid;
    gap: 11px;
    margin-top: 14px;
}

.chat-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

.chat-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.chat-panel-header h2 {
    margin: 4px 0;
}

.chat-panel-header p {
    margin: 0;
    color: var(--muted);
}

.private-chat-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.private-chat-notice {
    max-width: 280px;
    margin-top: 0;
    font-size: .78rem;
}

.chat-room-notice {
    margin: 14px 20px 0;
    border-left-color: #ef8f00;
}

.group-messaging-root {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

.chat-message-list {
    display: flex;
    flex: 1;
    min-height: 420px;
    max-height: 620px;
    flex-direction: column;
    gap: 13px;
    padding: 20px;
    overflow-y: auto;
    background: var(--surface-muted);
}

.chat-empty {
    display: grid;
    min-height: 300px;
    place-items: center;
    align-content: center;
    gap: 7px;
    color: var(--muted);
    text-align: center;
}

.chat-empty .material-symbols-rounded {
    font-size: 44px;
}

.chat-message {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    max-width: min(760px, 88%);
}

.chat-message.is-own {
    align-self: flex-end;
    grid-template-columns: minmax(0, 1fr) auto;
}

.chat-message.is-own .chat-message-avatar {
    grid-column: 2;
    grid-row: 1;
}

.chat-message.is-own .chat-message-content {
    grid-column: 1;
    grid-row: 1;
    border-color: rgba(71, 161, 221, .35);
    background: rgba(71, 161, 221, .13);
}

.chat-message-content {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
}

.chat-message-content header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chat-message-content time {
    color: var(--muted);
    font-size: .7rem;
    white-space: nowrap;
}

.chat-message-content p {
    margin: 8px 0 0;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-message-deleted {
    color: var(--muted);
    font-style: italic;
}

.chat-attachments {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.chat-attachments a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: inherit;
    background: var(--surface-muted);
    text-decoration: none;
}

.chat-attachments strong,
.chat-attachments small {
    display: block;
}

.chat-attachments small {
    color: var(--muted);
}

.chat-delete-button {
    margin-top: 8px;
    padding: 0;
    border: 0;
    color: #a33030;
    background: transparent;
    font: inherit;
    font-size: .72rem;
    cursor: pointer;
}

.chat-compose {
    display: grid;
    gap: 10px;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.chat-compose textarea {
    width: 100%;
    resize: vertical;
}

.chat-compose-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-attachment-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
}

.chat-attachment-button input {
    display: none;
}

.chat-file-name {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-error {
    padding: 10px 12px;
    border-left: 4px solid #d64040;
    border-radius: 8px;
    color: #8e2525;
    background: rgba(214, 64, 64, .1);
}

@media (max-width: 980px) {
    .group-chat-layout {
        grid-template-columns: 1fr;
    }

    .chat-room-sidebar,
    .chat-panel {
        min-height: auto;
    }

    .chat-room-sidebar {
        max-height: none;
    }

    .chat-message-list {
        max-height: 58vh;
    }
}

@media (max-width: 620px) {
    .chat-panel-header,
    .group-content-card-header {
        display: block;
    }

    .chat-panel-header form {
        margin-top: 12px;
    }

    .private-chat-notice {
        max-width: none;
        margin-top: 12px;
    }

    .chat-message {
        max-width: 96%;
    }

    .chat-compose-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .chat-compose-actions .primary-button,
    .chat-attachment-button {
        justify-content: center;
        width: 100%;
    }
}


/* Geschützte Gruppenräume */
.chat-room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 9px 0 0;
}

.chat-room-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
}

.chat-room-meta .material-symbols-rounded {
    font-size: 17px;
}

.chat-room-management {
    margin: 14px 20px 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
}

.chat-room-management > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 800;
}

.chat-room-management-form {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.chat-member-picker select[multiple] {
    min-height: 150px;
    padding: 8px;
}

.chat-member-picker option {
    padding: 7px 8px;
    border-radius: 6px;
}

.chat-member-picker small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 620px) {
    .chat-room-management {
        margin: 12px 14px 0;
    }
}

/* Alpha 0.3.13 – Messenger-Ansicht für Gruppen- und Privat-Chat */
.wa-page-heading {
    margin-bottom: 18px;
}

.wa-chat-shell {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    min-height: 680px;
    height: calc(100vh - 190px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(20, 31, 45, .12);
}

.wa-conversation-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: var(--surface);
}

.wa-sidebar-header,
.wa-chat-header {
    display: flex;
    align-items: center;
    min-height: 72px;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.wa-sidebar-header {
    justify-content: space-between;
}

.wa-sidebar-header strong,
.wa-sidebar-header span {
    display: block;
}

.wa-sidebar-header strong {
    margin-top: 3px;
    font-size: 1.05rem;
}

.wa-icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.wa-icon-button:hover {
    background: var(--surface-muted);
}

.wa-icon-button .material-symbols-rounded {
    font-size: 25px;
}

.wa-search,
.wa-member-search {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 10px 12px;
    padding: 9px 12px;
    border-radius: 11px;
    background: var(--surface-muted);
}

.wa-search .material-symbols-rounded,
.wa-member-search .material-symbols-rounded {
    color: var(--muted);
    font-size: 21px;
}

.wa-search input,
.wa-member-search input {
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
    font: inherit;
}

.wa-conversation-list {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
}

.wa-conversation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    color: inherit;
    text-decoration: none;
    transition: background .16s ease;
}

.wa-conversation:hover,
.wa-conversation.is-active {
    background: var(--surface-muted);
}

.wa-conversation-avatar,
.wa-person-avatar {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #73808d;
    font-weight: 800;
    text-transform: uppercase;
}

.wa-conversation-avatar {
    width: 48px;
    height: 48px;
}

.wa-conversation-avatar.is-large {
    width: 50px;
    height: 50px;
}

.wa-conversation-avatar.is-room {
    color: #17669b;
    background: rgba(71, 161, 221, .18);
}

.wa-conversation-avatar.is-room .material-symbols-rounded {
    font-size: 26px;
}

.wa-conversation-avatar.is-room.is-large {
    width: 88px;
    height: 88px;
}

.wa-conversation-avatar.is-room.is-large .material-symbols-rounded {
    font-size: 42px;
}

.wa-person-avatar {
    width: 42px;
    height: 42px;
    font-size: .95rem;
}

.wa-conversation-body {
    min-width: 0;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--border);
}

.wa-conversation:last-child .wa-conversation-body {
    border-bottom: 0;
}

.wa-conversation-topline,
.wa-conversation-bottomline {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wa-conversation-topline strong {
    min-width: 0;
    overflow: hidden;
    font-size: .95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-conversation-topline time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: .7rem;
}

.wa-conversation-bottomline {
    margin-top: 5px;
}

.wa-conversation-bottomline small {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-unread-badge {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    flex: 0 0 auto;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: #2e8b57;
    font-size: .67rem;
    font-weight: 850;
}

.wa-list-empty {
    display: flex;
    min-height: 170px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border: 0;
    color: var(--muted);
    background: transparent;
    text-align: center;
}

.wa-list-empty.is-button {
    width: 100%;
    cursor: pointer;
    font: inherit;
}

.wa-list-empty .material-symbols-rounded {
    font-size: 38px;
}

.wa-chat-main {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--surface-muted);
}

.wa-chat-placeholder {
    display: grid;
    height: 100%;
    align-content: center;
    justify-items: center;
    padding: 32px;
    color: var(--muted);
    text-align: center;
}

.wa-chat-placeholder > .material-symbols-rounded {
    font-size: 64px;
}

.wa-chat-placeholder h2 {
    margin: 16px 0 5px;
    color: var(--text);
}

.wa-chat-placeholder p {
    margin: 0;
}

.wa-chat-header {
    position: relative;
    z-index: 4;
}

.wa-chat-title {
    min-width: 0;
    flex: 1;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.wa-chat-title.is-static {
    cursor: default;
}

.wa-chat-title strong,
.wa-chat-title span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-chat-title strong {
    font-size: 1rem;
}

.wa-chat-title span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .75rem;
}

.wa-private-lock {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    color: var(--muted);
    background: var(--surface-muted);
}

.wa-messaging-root {
    display: flex;
    height: calc(100% - 72px);
    min-height: 0;
    flex-direction: column;
}

.wa-message-list {
    position: relative;
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 18px 5.5%;
    overflow-y: auto;
    background:
        radial-gradient(circle at 25px 25px, rgba(71, 161, 221, .06) 2px, transparent 2.5px) 0 0 / 42px 42px,
        var(--surface-muted);
}

.wa-chat-empty {
    display: grid;
    min-height: 100%;
    align-content: center;
    justify-items: center;
    gap: 7px;
    color: var(--muted);
    text-align: center;
}

.wa-chat-empty .material-symbols-rounded {
    font-size: 46px;
}

.wa-chat-empty strong {
    color: var(--text);
}

.wa-date-separator {
    display: flex;
    justify-content: center;
    margin: 9px 0;
}

.wa-date-separator span {
    padding: 6px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(20, 31, 45, .08);
    font-size: .7rem;
    font-weight: 750;
}

.wa-message-row {
    display: flex;
    justify-content: flex-start;
}

.wa-message-row.is-own {
    justify-content: flex-end;
}

.wa-message-bubble {
    position: relative;
    min-width: 96px;
    max-width: min(76%, 680px);
    padding: 8px 10px 6px;
    border: 1px solid var(--border);
    border-radius: 4px 12px 12px 12px;
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(20, 31, 45, .1);
}

.wa-message-row.is-own .wa-message-bubble {
    border-color: rgba(71, 161, 221, .38);
    border-radius: 12px 4px 12px 12px;
    background: rgba(71, 161, 221, .16);
}

.wa-message-author {
    display: block;
    margin-bottom: 4px;
    color: #17669b;
    font-size: .76rem;
}

.wa-message-text {
    margin: 0;
    line-height: 1.48;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.wa-message-deleted {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--muted);
    font-style: italic;
}

.wa-message-deleted .material-symbols-rounded {
    font-size: 18px;
}

.wa-message-meta {
    display: flex;
    min-height: 18px;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin-top: 3px;
    color: var(--muted);
}

.wa-message-meta time {
    font-size: .63rem;
}

.wa-message-check {
    color: #2781bd;
    font-size: 16px;
}

.wa-message-meta button {
    display: inline-grid;
    width: 22px;
    height: 22px;
    margin-left: 2px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.wa-message-meta button:hover {
    color: #b52b2b;
    background: rgba(181, 43, 43, .09);
}

.wa-message-meta button .material-symbols-rounded {
    font-size: 16px;
}

.wa-attachments {
    display: grid;
    gap: 7px;
    margin-top: 7px;
}

.wa-image-attachment {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.wa-image-attachment img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: contain;
}

.wa-file-attachment {
    display: flex;
    min-width: 210px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 9px;
    color: inherit;
    background: rgba(255, 255, 255, .5);
    text-decoration: none;
}

.wa-file-attachment > .material-symbols-rounded {
    color: #17669b;
    font-size: 28px;
}

.wa-file-attachment strong,
.wa-file-attachment small {
    display: block;
}

.wa-file-attachment strong {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-file-attachment small {
    margin-top: 2px;
    color: var(--muted);
}

.wa-compose {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 9px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.wa-compose-attach,
.wa-send-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.wa-compose-attach {
    color: var(--muted);
    background: transparent;
}

.wa-compose-attach:hover {
    background: var(--surface-muted);
}

.wa-compose-attach input {
    display: none;
}

.wa-send-button {
    color: #fff;
    background: #47a1dd;
}

.wa-send-button:hover {
    background: #318cc8;
}

.wa-send-button:disabled {
    cursor: wait;
    opacity: .55;
}

.wa-compose-field {
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-muted);
}

.wa-compose-field textarea {
    display: block;
    width: 100%;
    min-height: 22px;
    max-height: 132px;
    padding: 0;
    overflow-y: auto;
    resize: none;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    line-height: 1.4;
}

.wa-selected-file {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: .7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-selected-file:empty {
    display: none;
}

.wa-chat-error {
    grid-column: 1 / -1;
    padding: 8px 10px;
    border-left: 4px solid #c62828;
    border-radius: 7px;
    color: #8f2222;
    background: rgba(198, 40, 40, .1);
    font-size: .78rem;
}

.wa-readonly-compose {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 64px;
    padding: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface);
    text-align: center;
}

.wa-room-info {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 8;
    width: min(410px, 100%);
    overflow-y: auto;
    border-left: 1px solid var(--border);
    background: var(--surface);
    box-shadow: -18px 0 46px rgba(20, 31, 45, .2);
}

.wa-room-info[hidden] {
    display: none;
}

.wa-room-info > header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.wa-room-info-hero {
    display: grid;
    justify-items: center;
    padding: 28px 18px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.wa-room-info-hero h2 {
    margin: 14px 0 4px;
}

.wa-room-info-hero > span:last-child {
    color: var(--muted);
}

.wa-info-section {
    padding: 17px;
    border-bottom: 1px solid var(--border);
}

.wa-info-section p {
    margin: 8px 0 0;
    line-height: 1.5;
}

.wa-info-label {
    display: block;
    margin-bottom: 10px;
    color: #17669b;
    font-size: .77rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wa-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.wa-info-row .material-symbols-rounded {
    color: var(--muted);
}

.wa-participant-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wa-text-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    color: #17669b;
    background: rgba(71, 161, 221, .12);
    cursor: pointer;
    font: inherit;
    font-size: .75rem;
    font-weight: 800;
}

.wa-text-button .material-symbols-rounded {
    font-size: 18px;
}

.wa-participant-list {
    display: grid;
}

.wa-participant {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    border-bottom: 1px solid var(--border);
}

.wa-participant:last-child {
    border-bottom: 0;
}

.wa-participant-name {
    min-width: 0;
}

.wa-participant-name strong,
.wa-participant-name small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-participant-name small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .7rem;
}

.wa-role-chip {
    padding: 5px 7px;
    border-radius: 999px;
    color: #17669b;
    background: rgba(71, 161, 221, .13);
    font-size: .63rem;
    font-weight: 800;
    white-space: nowrap;
}

.wa-participant-menu {
    position: relative;
}

.wa-participant-menu > summary {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    list-style: none;
}

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

.wa-participant-menu > summary:hover {
    background: var(--surface-muted);
}

.wa-participant-menu > div {
    position: absolute;
    top: 38px;
    right: 0;
    z-index: 10;
    width: 250px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(20, 31, 45, .2);
}

.wa-participant-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: .76rem;
    text-align: left;
}

.wa-participant-menu button:hover {
    background: var(--surface-muted);
}

.wa-participant-menu button.is-danger {
    color: #ad2b2b;
}

.wa-participant-menu .material-symbols-rounded {
    font-size: 19px;
}

.wa-info-hint {
    color: var(--muted);
    font-size: .74rem;
}

.wa-room-settings > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 800;
}

.wa-settings-form {
    display: grid;
    gap: 12px;
    margin-top: 15px;
}

.wa-danger-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px;
    border: 1px solid rgba(198, 40, 40, .35);
    border-radius: 9px;
    color: #a22525;
    background: rgba(198, 40, 40, .06);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.wa-dialog {
    width: min(620px, calc(100% - 24px));
    max-height: calc(100vh - 28px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 28px 90px rgba(10, 20, 32, .38);
}

.wa-dialog::backdrop {
    background: rgba(9, 18, 29, .62);
    backdrop-filter: blur(3px);
}

.wa-dialog-card {
    display: flex;
    max-height: calc(100vh - 28px);
    flex-direction: column;
}

.wa-dialog-card > header,
.wa-dialog-card > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
}

.wa-dialog-card > header {
    border-bottom: 1px solid var(--border);
}

.wa-dialog-card > header h2 {
    margin: 4px 0 0;
}

.wa-dialog-card > footer {
    justify-content: flex-end;
    border-top: 1px solid var(--border);
}

.wa-dialog-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    overflow-y: auto;
}

.wa-dialog-content > .wa-member-search,
.wa-dialog-content > .wa-member-checklist,
.wa-dialog-content > .wa-list-empty {
    grid-column: 1 / -1;
}

.wa-member-checklist {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.wa-member-checklist legend {
    margin-bottom: 8px;
    font-weight: 800;
}

.wa-member-checklist .wa-member-search {
    margin: 0 0 10px;
}

.wa-member-options {
    display: grid;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.wa-member-options label {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.wa-member-options label:last-child {
    border-bottom: 0;
}

.wa-member-options label:hover {
    background: var(--surface-muted);
}

.wa-member-options input {
    width: 18px;
    height: 18px;
    accent-color: #47a1dd;
}

.wa-member-options strong,
.wa-member-options small {
    display: block;
}

.wa-member-options small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .7rem;
}

.wa-mobile-back {
    display: none;
}

@media (max-width: 980px) {
    .wa-chat-shell {
        grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
        height: calc(100vh - 165px);
        min-height: 620px;
    }

    .wa-message-bubble {
        max-width: 84%;
    }
}

@media (max-width: 760px) {
    .wa-page-heading {
        display: none;
    }

    .wa-chat-shell {
        position: relative;
        display: block;
        height: calc(100vh - 90px);
        min-height: 540px;
        border-radius: 12px;
    }

    .wa-conversation-sidebar,
    .wa-chat-main {
        position: absolute;
        inset: 0;
    }

    .wa-conversation-sidebar {
        z-index: 2;
        transform: translateX(-100%);
        border-right: 0;
        transition: transform .2s ease;
    }

    .wa-chat-main {
        z-index: 1;
    }

    .wa-chat-shell:not(.is-list-visible) .wa-conversation-sidebar {
        transform: translateX(-100%);
    }

    .wa-chat-shell.is-list-visible .wa-conversation-sidebar,
    .wa-chat-shell:not(:has(.wa-chat-main.has-room)) .wa-conversation-sidebar {
        transform: translateX(0);
    }

    .wa-chat-shell.is-list-visible .wa-chat-main {
        visibility: hidden;
    }

    .wa-mobile-back {
        display: inline-grid;
    }

    .wa-message-list {
        padding: 14px 10px;
    }

    .wa-message-bubble {
        max-width: 90%;
    }

    .wa-room-info {
        width: 100%;
        border-left: 0;
    }

    .wa-dialog-content {
        grid-template-columns: 1fr;
    }

    .wa-participant {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .wa-role-chip {
        display: none;
    }
}

@media (max-width: 520px) {
    .wa-compose {
        gap: 5px;
        padding: 8px;
    }

    .wa-compose-attach,
    .wa-send-button {
        width: 41px;
        height: 41px;
    }

    .wa-compose-field {
        padding: 9px 12px;
    }

    .wa-message-bubble {
        max-width: 94%;
    }

    .wa-dialog {
        width: calc(100% - 12px);
        max-height: calc(100vh - 12px);
    }

    .wa-dialog-card {
        max-height: calc(100vh - 12px);
    }

    .wa-dialog-card > footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .wa-dialog-card > footer .primary-button,
    .wa-dialog-card > footer .secondary-button {
        justify-content: center;
        width: 100%;
    }
}

/* Alpha 0.3.14 – Ablauf und ausgewählte Schreibrechte */

.wa-readonly-compose {
    align-items: center;
}

.wa-readonly-compose > span:last-child {
    display: grid;
    gap: 2px;
}

.wa-readonly-compose strong,
.wa-readonly-compose small {
    display: block;
}

.wa-readonly-compose small {
    color: var(--muted);
    line-height: 1.35;
}

.wa-readonly-compose.is-expired {
    border-left: 5px solid #c47a00;
    background: rgba(196, 122, 0, .09);
}

.wa-info-row.is-expired {
    color: #a45f00;
    font-weight: 750;
}

.wa-member-options.is-compact {
    max-height: 310px;
    overflow-y: auto;
}

.wa-member-checklist > .wa-info-hint {
    margin: 0 0 10px;
}

.wa-conversation.is-expired {
    opacity: .82;
}

.wa-conversation.is-expired .wa-conversation-avatar {
    color: #a45f00;
    background: rgba(196, 122, 0, .12);
}


/* Alpha 0.3.15 – Chat 2.0: Zustellstatus und Lesebestätigungen */
.wa-message-receipt {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}
.wa-message-receipt small { font-size: .64rem; font-weight: 750; }
.wa-message-check.is-read,
.wa-message-receipt.is-read { color: #1687d9; }
.wa-message-receipt.is-delivered { color: var(--muted); }
.wa-message-acknowledgement {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding: 8px 10px;
    border-left: 4px solid #ef8f00;
    border-radius: 8px;
    background: rgba(239, 143, 0, .12);
    font-size: .78rem;
}
.wa-message-acknowledgement button {
    margin-left: auto;
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #ef8f00;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.wa-message-acknowledgement.is-confirmed {
    border-left-color: #2e8b57;
    background: rgba(46, 139, 87, .12);
}
.wa-compose-ack {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--muted);
    cursor: pointer;
}
.wa-compose-ack input { position: absolute; opacity: 0; }
.wa-compose-ack:has(input:checked) { color: #fff; background: #ef8f00; }
.wa-room-receipt-settings { display: grid; gap: 10px; margin: 12px 0; }
.wa-receipt-person { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.wa-receipt-person:last-child { border-bottom: 0; }
.wa-receipt-person strong, .wa-receipt-person small { display: block; }
.wa-receipt-person small { margin-top: 3px; color: var(--muted); }

/* Alpha 0.3.16 – Projektleitung und Chat-Aufsicht */
.sidebar-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 3px 11px 10px;
}

.sidebar-legal-links a {
    color: var(--sidebar-text);
    font-size: .7rem;
    text-decoration: none;
}

.sidebar-legal-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.project-lead-notice {
    margin-bottom: 20px;
}

.project-lead-stat-grid {
    margin-bottom: 22px;
}

.project-lead-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.project-lead-module-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    color: inherit;
    text-decoration: none;
}

.project-lead-module-card > .material-symbols-rounded:first-child {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: var(--primary);
    font-size: 29px;
}

.project-lead-module-card h2 {
    margin: 4px 0 7px;
}

.project-lead-module-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.project-lead-module-card:not(.is-disabled):hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.project-lead-module-card.is-disabled {
    opacity: .65;
}

.project-lead-chat-filter {
    display: grid;
    grid-template-columns: minmax(280px, 1.8fr) repeat(3, minmax(150px, .8fr));
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
}

.project-lead-chat-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    grid-column: 1 / -1;
}

.project-lead-chat-shell {
    display: grid;
    grid-template-columns: minmax(330px, .72fr) minmax(0, 1.28fr);
    gap: 18px;
    align-items: start;
}

.project-lead-chat-room-list,
.project-lead-chat-view {
    padding: 0;
    overflow: hidden;
}

.project-lead-chat-room-list > .panel-header,
.project-lead-chat-view-header {
    padding: 19px 20px;
    border-bottom: 1px solid var(--border);
}

.project-lead-chat-room-items {
    max-height: 760px;
    overflow-y: auto;
}

.project-lead-chat-room-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}

.project-lead-chat-room-item:hover,
.project-lead-chat-room-item.is-active {
    background: rgba(71, 161, 221, .1);
}

.project-lead-chat-room-item.is-active {
    box-shadow: inset 5px 0 0 var(--primary);
}

.project-lead-chat-room-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary);
}

.project-lead-chat-room-copy,
.project-lead-chat-room-copy strong,
.project-lead-chat-room-copy small,
.project-lead-chat-room-meta {
    display: block;
    min-width: 0;
}

.project-lead-chat-room-copy strong,
.project-lead-chat-room-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-lead-chat-room-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .73rem;
}

.project-lead-chat-room-meta {
    text-align: right;
}

.project-lead-chat-room-meta time {
    display: block;
    color: var(--muted);
    font-size: .68rem;
    white-space: nowrap;
}

.project-lead-chat-tag {
    display: inline-flex;
    margin-top: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
}

.project-lead-chat-tag.is-neutral {
    color: #4e5963;
    background: #e8edf1;
}

.project-lead-chat-tag.is-warning {
    color: #795500;
    background: #fff0bf;
}

.project-lead-chat-placeholder {
    display: grid;
    min-height: 520px;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 32px;
    color: var(--muted);
    text-align: center;
}

.project-lead-chat-placeholder > .material-symbols-rounded {
    font-size: 54px;
}

.project-lead-chat-placeholder strong {
    color: var(--text);
    font-size: 1.05rem;
}

.project-lead-chat-placeholder.is-compact {
    min-height: 180px;
}

.project-lead-chat-view-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.project-lead-chat-view-header h2 {
    margin: 5px 0 6px;
}

.project-lead-chat-view-header p {
    margin: 0;
    color: var(--muted);
}

.project-lead-readonly-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #1f6f9f;
    background: #e8f5fd;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}

.project-lead-chat-room-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-muted);
}

.project-lead-chat-room-details div {
    padding: 10px;
    border-radius: 10px;
    background: var(--surface);
}

.project-lead-chat-room-details span,
.project-lead-chat-room-details strong {
    display: block;
}

.project-lead-chat-room-details span {
    color: var(--muted);
    font-size: .7rem;
}

.project-lead-chat-room-details strong {
    margin-top: 4px;
    font-size: .84rem;
}

.project-lead-chat-participants {
    border-bottom: 1px solid var(--border);
}

.project-lead-chat-participants summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    cursor: pointer;
    font-weight: 750;
}

.project-lead-chat-participants summary > span:last-child {
    margin-left: auto;
}

.project-lead-chat-participant-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 20px 16px;
}

.project-lead-chat-participant-list > div {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border-radius: 10px;
    background: var(--surface-muted);
}

.project-lead-chat-participant-list strong,
.project-lead-chat-participant-list small {
    display: block;
}

.project-lead-chat-participant-list small {
    margin-top: 3px;
    color: var(--muted);
}

.project-lead-chat-messages {
    display: grid;
    gap: 11px;
    max-height: 760px;
    padding: 20px;
    overflow-y: auto;
    background:
        linear-gradient(rgba(242, 245, 248, .92), rgba(242, 245, 248, .92)),
        radial-gradient(circle at 20% 20%, rgba(71, 161, 221, .12), transparent 35%);
}

.project-lead-message {
    width: min(82%, 720px);
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 4px 14px 14px 14px;
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(20, 40, 58, .06);
}

.project-lead-message header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.project-lead-message header strong {
    color: var(--primary-dark);
}

.project-lead-message header time {
    color: var(--muted);
    font-size: .68rem;
}

.project-lead-message p {
    margin: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.project-lead-message.is-deleted {
    color: var(--muted);
    background: #f0f2f4;
}

.project-lead-message-deleted {
    display: flex;
    align-items: center;
    gap: 8px;
    font-style: italic;
}

.project-lead-message-attachments {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.project-lead-message-attachments a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: inherit;
    background: var(--surface-muted);
    text-decoration: none;
}

.project-lead-message-attachments strong,
.project-lead-message-attachments small {
    display: block;
}

.project-lead-message-attachments small {
    color: var(--muted);
}

.project-lead-message-ack {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 9px;
    color: #795500;
    font-size: .7rem;
    font-weight: 800;
}

.project-lead-audit-panel {
    margin-top: 20px;
}

.legal-consent-form {
    display: grid;
    gap: 18px;
}

.legal-document-card {
    display: grid;
    gap: 17px;
}

.legal-document-text,
.legal-document-full {
    line-height: 1.7;
    white-space: normal;
}

.legal-document-text {
    max-height: 420px;
    padding: 17px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
}

.legal-acceptance-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border-left: 5px solid var(--primary);
    border-radius: 10px;
    background: #edf7fd;
    cursor: pointer;
}

.legal-acceptance-check input {
    width: 19px;
    height: 19px;
    margin-top: 1px;
    accent-color: var(--primary);
}

.legal-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-document-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.legal-document-tabs a {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: inherit;
    background: var(--surface);
    text-decoration: none;
}

.legal-document-tabs a.is-active {
    border-color: var(--primary);
    color: #ffffff;
    background: var(--primary);
}

@media (max-width: 1120px) {
    .project-lead-chat-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-lead-chat-shell {
        grid-template-columns: 1fr;
    }

    .project-lead-chat-room-items,
    .project-lead-chat-messages {
        max-height: 560px;
    }
}

@media (max-width: 760px) {
    .project-lead-module-grid,
    .project-lead-chat-filter,
    .project-lead-chat-room-details,
    .project-lead-chat-participant-list {
        grid-template-columns: 1fr;
    }

    .project-lead-chat-view-header,
    .project-lead-chat-heading {
        display: block;
    }

    .project-lead-readonly-badge {
        margin-top: 12px;
    }

    .project-lead-message {
        width: 100%;
    }

    .project-lead-chat-room-meta {
        display: none;
    }

    .project-lead-chat-room-item {
        grid-template-columns: auto minmax(0, 1fr);
    }
}

/* Alpha 0.3.18 – Gruppen-Mediathek */

.page-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    gap: 9px;
    padding: 10px 18px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 800;
    cursor: pointer;
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.page-action-button:hover {
    color: #ffffff;
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.page-action-button.is-secondary {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
}

.page-action-button.is-secondary:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
    background: #f4faff;
}

.group-nav-subheading {
    margin: 12px 11px 4px;
    color: rgba(255, 255, 255, .52);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.media-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.media-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.media-page-actions .page-action-button {
    min-width: 0;
}

.media-action-badge {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--danger);
    font-size: .72rem;
}

.media-upload-layout,
.media-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, .8fr);
    gap: 22px;
    align-items: start;
}

.media-upload-panel,
.media-workflow-panel,
.media-settings-panel,
.media-settings-summary {
    min-width: 0;
}

.media-upload-form,
.media-settings-form {
    display: grid;
    gap: 22px;
    margin-top: 20px;
}

.media-file-picker {
    position: relative;
    display: grid;
    min-height: 230px;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 28px;
    overflow: hidden;
    border: 2px dashed #b9d7e9;
    border-radius: 16px;
    color: var(--text);
    background:
        linear-gradient(
            145deg,
            rgba(71, 161, 221, .08),
            rgba(71, 161, 221, .02)
        );
    text-align: center;
    cursor: pointer;
}

.media-file-picker:hover {
    border-color: var(--primary);
    background: rgba(71, 161, 221, .09);
}

.media-file-picker > .material-symbols-rounded {
    color: var(--primary);
    font-size: 52px;
}

.media-file-picker strong {
    font-size: 1.05rem;
}

.media-file-picker > span:not(.material-symbols-rounded) {
    color: var(--muted);
    font-size: .82rem;
}

.media-file-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.media-upload-limits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-upload-limits > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #326c8e;
    background: #eaf6fd;
    font-size: .78rem;
    font-weight: 750;
}

.media-upload-limits .material-symbols-rounded {
    font-size: 18px;
}

.media-disabled-state {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-muted);
}

.media-disabled-state > .material-symbols-rounded {
    color: var(--muted);
    font-size: 30px;
}

.media-disabled-state strong,
.media-disabled-state p {
    display: block;
}

.media-disabled-state p {
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.media-workflow-list {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.media-workflow-list li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.media-workflow-list li:last-child {
    border-bottom: 0;
}

.media-workflow-list li > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 850;
}

.media-workflow-list strong,
.media-workflow-list p {
    display: block;
}

.media-workflow-list p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .83rem;
    line-height: 1.55;
}

.media-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
}

.media-filter-bar a {
    display: inline-flex;
    align-items: center;
    min-height: 39px;
    padding: 8px 13px;
    border-radius: 9px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.media-filter-bar a:hover,
.media-filter-bar a.is-active {
    color: var(--primary-dark);
    background: #eaf6fd;
}

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

.media-card {
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

.media-card.status-pending {
    border-left: 5px solid var(--warning);
}

.media-card.status-rejected {
    border-left: 5px solid var(--danger);
}

.media-card.status-approved {
    border-left: 5px solid var(--success);
}

.media-card-preview {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dfe8ef;
}

.media-card-preview img,
.media-review-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-video-play {
    position: absolute;
    inset: 50% auto auto 50%;
    color: rgba(255, 255, 255, .95);
    font-size: 58px;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .32));
    transform: translate(-50%, -50%);
}

.media-status-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 850;
    white-space: nowrap;
}

.media-card-preview .media-status-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .16);
}

.media-status-chip.is-approved {
    color: #176c4b;
    background: #dcf4e8;
}

.media-status-chip.is-pending {
    color: #805b00;
    background: #fff0bd;
}

.media-status-chip.is-rejected {
    color: #a42d36;
    background: #ffe1e4;
}

.media-card-body {
    display: grid;
    gap: 15px;
    padding: 18px;
}

.media-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.media-card-heading h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.04rem;
}

.media-card-heading span:not(.material-symbols-rounded) {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.4;
}

.media-card-heading > .material-symbols-rounded {
    color: var(--primary);
}

.media-card-description,
.media-review-description {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.6;
}

.media-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.media-card-meta > div {
    min-width: 0;
    padding: 10px;
    border-radius: 10px;
    background: var(--surface-muted);
}

.media-card-meta dt {
    color: var(--muted);
    font-size: .68rem;
    text-transform: uppercase;
}

.media-card-meta dd {
    margin: 4px 0 0;
    overflow: hidden;
    font-size: .78rem;
    font-weight: 800;
    text-overflow: ellipsis;
}

.media-card-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px;
    border-radius: 10px;
    font-size: .77rem;
    line-height: 1.45;
}

.media-card-notice .material-symbols-rounded {
    flex: 0 0 auto;
    font-size: 19px;
}

.media-card-notice.is-pending {
    color: #765900;
    background: #fff6d9;
}

.media-card-notice.is-rejected {
    color: #9a3038;
    background: #fff0f1;
}

.media-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
}

.media-card-actions a,
.media-review-open a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    background: var(--surface);
    font-size: .76rem;
    font-weight: 800;
    text-decoration: none;
}

.media-card-actions a:hover,
.media-review-open a:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.media-card-actions .material-symbols-rounded,
.media-review-open .material-symbols-rounded {
    font-size: 18px;
}

.media-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 310px;
    gap: 22px;
    text-align: left;
}

.media-empty-state > .material-symbols-rounded {
    color: var(--primary);
    font-size: 58px;
}

.media-empty-state h2 {
    margin: 0;
}

.media-empty-state p {
    margin: 7px 0 18px;
    color: var(--muted);
}

.media-review-list {
    display: grid;
    gap: 20px;
}

.media-review-card {
    display: grid;
    grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.media-review-preview {
    position: relative;
    min-height: 310px;
    background: #dfe8ef;
}

.media-review-content {
    display: grid;
    align-content: start;
    gap: 17px;
    padding: 22px;
}

.media-review-content > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.media-review-content h2 {
    margin: 4px 0 0;
    font-size: 1.25rem;
}

.media-review-content header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .8rem;
}

.media-review-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-review-open {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.media-review-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: end;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.media-review-actions form:first-child {
    align-self: end;
}

.media-reject-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 9px;
    align-items: end;
}

.media-reject-form label {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-size: .75rem;
    font-weight: 800;
}

.media-reject-form input,
.media-project-filter select {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: 0;
    color: var(--text);
    background: #fbfcfd;
}

.media-reject-form input:focus,
.media-project-filter select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(71, 161, 221, .12);
}

.media-settings-form {
    gap: 12px;
}

.media-toggle-card {
    position: relative;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-muted);
    cursor: pointer;
}

.media-toggle-card:hover {
    border-color: #b8d9ee;
}

.media-toggle-card.is-important {
    border-left: 5px solid var(--warning);
}

.media-toggle-card > input {
    position: absolute;
    opacity: 0;
}

.media-toggle-control {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #bdc8d0;
    transition: background .18s ease;
}

.media-toggle-control::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
    content: "";
    transition: transform .18s ease;
}

.media-toggle-card > input:checked + .media-toggle-control {
    background: var(--primary);
}

.media-toggle-card > input:checked + .media-toggle-control::after {
    transform: translateX(20px);
}

.media-toggle-card > .material-symbols-rounded {
    color: var(--primary);
}

.media-toggle-card strong,
.media-toggle-card small {
    display: block;
}

.media-toggle-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.45;
}

.media-setting-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.media-settings-summary dl {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
}

.media-settings-summary dl > div {
    display: grid;
    grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.media-settings-summary dl > div:last-child {
    border-bottom: 0;
}

.media-settings-summary dt {
    color: var(--muted);
}

.media-settings-summary dd {
    margin: 0;
    font-weight: 800;
}

.media-settings-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 16px;
    padding: 13px;
    border-radius: 11px;
    color: #326c8e;
    background: #eaf6fd;
}

.media-settings-note p {
    margin: 0;
    font-size: .78rem;
    line-height: 1.5;
}

.media-project-filter {
    margin-bottom: 20px;
    padding: 18px;
}

.media-project-filter form {
    display: grid;
    grid-template-columns: minmax(240px, 420px) auto;
    gap: 12px;
    align-items: end;
}

.media-project-filter .page-action-button {
    min-width: 130px;
}

.media-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

    .media-review-card {
        grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
    }

    .media-review-actions {
        grid-template-columns: 1fr;
    }

    .media-review-actions form:first-child {
        justify-self: start;
    }
}

@media (max-width: 960px) {
    .media-upload-layout,
    .media-settings-layout,
    .media-review-card {
        grid-template-columns: 1fr;
    }

    .media-review-preview {
        min-height: 280px;
        aspect-ratio: 16 / 9;
    }

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

@media (max-width: 720px) {
    .media-page-heading,
    .media-review-content > header {
        display: grid;
    }

    .media-page-actions {
        justify-content: flex-start;
    }

    .media-gallery-grid,
    .media-setting-split,
    .media-review-meta,
    .media-project-filter form {
        grid-template-columns: 1fr;
    }

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

    .media-empty-state {
        display: grid;
        text-align: center;
    }

    .media-empty-state > .material-symbols-rounded {
        margin: 0 auto;
    }
}

@media (max-width: 520px) {
    .media-stat-grid {
        grid-template-columns: 1fr;
    }

    .media-card-meta {
        grid-template-columns: 1fr;
    }
}


/* Alpha 0.3.19 – Gruppen-Mediathek und Alben */
.media-library-heading {
    margin-bottom: 18px;
}

.media-library-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.media-library-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    background: var(--surface);
    font-size: .82rem;
}

.media-library-summary .material-symbols-rounded {
    color: var(--primary);
    font-size: 20px;
}

.media-library-summary strong {
    color: var(--text);
    font-size: 1rem;
}

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

.media-library-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 9px 28px rgba(20, 43, 60, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.media-library-card:hover {
    border-color: rgba(71, 161, 221, .55);
    box-shadow: 0 16px 36px rgba(20, 43, 60, .14);
    transform: translateY(-3px);
}

.media-library-card-preview {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dce6ed;
}

.media-library-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.media-library-card:hover .media-library-card-preview img {
    transform: scale(1.035);
}

.media-library-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(5, 15, 24, .72));
}

.media-library-play,
.album-content-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(8, 21, 31, .55);
    backdrop-filter: blur(9px);
    font-size: 36px;
    transform: translate(-50%, -50%);
}

.media-library-duration {
    position: absolute;
    right: 11px;
    bottom: 11px;
    padding: 5px 8px;
    border-radius: 7px;
    color: #ffffff;
    background: rgba(5, 15, 24, .78);
    font-size: .68rem;
    font-weight: 800;
}

.media-library-card-preview .media-status-chip {
    position: absolute;
    top: 11px;
    left: 11px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}

.media-library-open {
    position: absolute;
    left: 13px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: .75rem;
    font-weight: 850;
}

.media-library-open .material-symbols-rounded {
    font-size: 18px;
}

.media-library-card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px 15px;
}

.media-library-card-body h2 {
    margin: 0;
    overflow: hidden;
    font-size: .93rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-library-card-body h2 a {
    color: var(--text);
    text-decoration: none;
}

.media-library-card-body p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: .7rem;
}

.media-library-download,
.album-card-edit {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface-muted);
    text-decoration: none;
}

.media-library-download:hover,
.album-card-edit:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.media-library-download .material-symbols-rounded,
.album-card-edit .material-symbols-rounded {
    font-size: 19px;
}

.media-library-state {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    font-size: .72rem;
    line-height: 1.4;
}

.media-library-state .material-symbols-rounded {
    font-size: 18px;
}

.media-library-state.is-pending {
    color: #795c00;
    background: #fff8df;
}

.media-library-state.is-rejected {
    color: #9a3038;
    background: #fff0f1;
}

.media-view-page {
    min-height: calc(100vh - 126px);
    margin: -28px -30px -32px;
    color: #f4f8fb;
    background: #07131d;
}

.media-view-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(7, 19, 29, .94);
}

.media-view-back {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    color: inherit;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}

.media-view-back .material-symbols-rounded {
    font-size: 20px;
}

.media-view-position {
    color: rgba(244, 248, 251, .7);
    font-size: .76rem;
    font-weight: 750;
}

.media-view-top-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.media-view-icon-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    text-decoration: none;
}

.media-view-icon-button:hover {
    border-color: rgba(71, 161, 221, .85);
    background: rgba(71, 161, 221, .16);
}

.media-view-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
    min-height: calc(100vh - 190px);
}

.media-view-stage {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 560px;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(48, 73, 90, .32), transparent 55%),
        #030a10;
}

.media-view-stage:fullscreen {
    width: 100vw;
    height: 100vh;
    background: #000000;
}

.media-view-image,
.media-view-video {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
}

.media-view-stage:fullscreen .media-view-image,
.media-view-stage:fullscreen .media-view-video {
    max-height: 100vh;
}

.media-view-video {
    width: 100%;
    height: 100%;
}

.media-view-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 48px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 13px;
    color: #ffffff;
    background: rgba(5, 15, 24, .58);
    backdrop-filter: blur(10px);
    text-decoration: none;
    transform: translateY(-50%);
}

.media-view-nav:hover {
    background: rgba(71, 161, 221, .42);
}

.media-view-nav.is-previous {
    left: 16px;
}

.media-view-nav.is-next {
    right: 16px;
}

.media-view-nav .material-symbols-rounded {
    font-size: 34px;
}

.media-view-details {
    display: grid;
    align-content: start;
    gap: 20px;
    padding: 28px;
    border-left: 1px solid rgba(255, 255, 255, .08);
    background: #0c1a25;
}

.media-view-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.media-view-title-row .eyebrow {
    color: #8fc9ed;
}

.media-view-title-row h1 {
    margin: 7px 0 0;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 1.65rem;
    line-height: 1.2;
}

.media-view-description {
    margin: 0;
    color: rgba(244, 248, 251, .72);
    font-size: .86rem;
    line-height: 1.65;
}

.media-view-meta {
    display: grid;
    gap: 0;
    margin: 0;
}

.media-view-meta > div {
    display: grid;
    grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.media-view-meta dt {
    color: rgba(244, 248, 251, .5);
    font-size: .72rem;
}

.media-view-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: .76rem;
    font-weight: 750;
}

.media-view-album-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid rgba(143, 201, 237, .24);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(71, 161, 221, .1);
    text-decoration: none;
}

.media-view-album-link > .material-symbols-rounded {
    color: #8fc9ed;
}

.media-view-album-link small,
.media-view-album-link strong {
    display: block;
}

.media-view-album-link small {
    color: rgba(244, 248, 251, .52);
    font-size: .66rem;
}

.media-view-album-link strong {
    margin-top: 3px;
    font-size: .8rem;
}

.media-view-actions .page-action-button {
    width: 100%;
}

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

.album-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(20, 43, 60, .08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.album-card:hover {
    box-shadow: 0 17px 38px rgba(20, 43, 60, .14);
    transform: translateY(-3px);
}

.album-card-cover {
    position: relative;
    display: grid;
    aspect-ratio: 16 / 10;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #d9e9f3, #eff6fa);
}

.album-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.album-card:hover .album-card-cover img {
    transform: scale(1.035);
}

.album-card-placeholder {
    color: var(--primary);
    font-size: 64px;
}

.album-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(4, 14, 22, .7));
}

.album-card-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 9px;
    color: #ffffff;
    background: rgba(5, 15, 24, .72);
    font-size: .7rem;
    font-weight: 800;
}

.album-card-count .material-symbols-rounded {
    font-size: 17px;
}

.album-status-chip {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 850;
}

.album-card-cover .album-status-chip {
    position: absolute;
    top: 12px;
    left: 12px;
}

.album-status-chip.is-published {
    color: #176c4b;
    background: #dcf4e8;
}

.album-status-chip.is-draft {
    color: #805b00;
    background: #fff0bd;
}

.album-status-chip.is-archived {
    color: #4f5f69;
    background: #e9eef2;
}

.album-card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 17px;
}

.album-card-body h2 {
    margin: 0;
    font-size: 1.04rem;
}

.album-card-body h2 a {
    color: var(--text);
    text-decoration: none;
}

.album-card-body p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .72rem;
}

.album-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .6fr);
    gap: 20px;
    align-items: start;
}

.album-editor-form {
    display: grid;
    gap: 22px;
}

.album-editor-fields {
    margin-top: 20px;
}

.album-editor-fields select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: #fbfcfd;
}

.album-editor-summary {
    position: sticky;
    top: 20px;
}

.album-selection-counter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 18px 0 8px;
}

.album-selection-counter strong {
    color: var(--primary-dark);
    font-size: 2.25rem;
    line-height: 1;
}

.album-selection-counter span,
.album-editor-summary > p {
    color: var(--muted);
    font-size: .78rem;
}

.album-editor-summary .page-action-button {
    width: 100%;
    margin-top: 18px;
}

.album-media-picker {
    padding: 22px;
}

.album-media-picker-header {
    align-items: end;
}

.album-media-search {
    display: flex;
    align-items: center;
    min-width: min(330px, 100%);
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fbfcfd;
}

.album-media-search .material-symbols-rounded {
    color: var(--muted);
    font-size: 20px;
}

.album-media-search input {
    width: 100%;
    min-height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
}

.album-media-selection-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.album-media-option {
    position: relative;
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 13px;
    background: var(--surface-muted);
    cursor: pointer;
    transition: border-color .16s ease, transform .16s ease;
}

.album-media-option:hover {
    transform: translateY(-2px);
}

.album-media-option.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(71, 161, 221, .11);
}

.album-media-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.album-media-option-preview {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dfe8ef;
}

.album-media-option-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-media-option-preview > .material-symbols-rounded:not(.album-media-option-check) {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #ffffff;
    font-size: 40px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
    transform: translate(-50%, -50%);
}

.album-media-option-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #ffffff;
    opacity: 0;
    filter: drop-shadow(0 2px 7px rgba(0, 0, 0, .4));
    transition: opacity .16s ease;
}

.album-media-option.is-selected .album-media-option-check {
    opacity: 1;
}

.album-media-option-title {
    display: block;
    min-width: 0;
    padding: 10px;
}

.album-media-option-title strong,
.album-media-option-title small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-media-option-title strong {
    font-size: .77rem;
}

.album-media-option-title small {
    margin-top: 4px;
    color: var(--muted);
    font-size: .65rem;
}

.album-view-hero {
    position: relative;
    display: grid;
    min-height: 360px;
    overflow: hidden;
    border-radius: 20px;
    color: #ffffff;
    background: #0a1924;
}

.album-view-cover,
.album-view-cover > img,
.album-view-cover > span:not(.material-symbols-rounded) {
    position: absolute;
    inset: 0;
}

.album-view-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-view-cover > .material-symbols-rounded {
    position: absolute;
    top: 50%;
    left: 50%;
    color: rgba(255, 255, 255, .22);
    font-size: 120px;
    transform: translate(-50%, -50%);
}

.album-view-cover > span:not(.material-symbols-rounded) {
    background:
        linear-gradient(90deg, rgba(3, 11, 17, .94) 0%, rgba(3, 11, 17, .73) 45%, rgba(3, 11, 17, .32) 100%),
        linear-gradient(0deg, rgba(3, 11, 17, .65), transparent 60%);
}

.album-view-heading {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(720px, 100%);
    align-content: center;
    justify-items: start;
    gap: 13px;
    padding: 38px;
}

.album-view-heading .eyebrow {
    color: #9bd2f4;
}

.album-view-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
}

.album-view-heading > p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
}

.album-view-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.album-view-meta > span:not(.album-status-chip) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .72);
    font-size: .75rem;
}

.album-view-meta .material-symbols-rounded {
    font-size: 18px;
}

.album-view-heading .page-action-button {
    margin-top: 6px;
}

.album-content-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.album-content-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #dfe8ef;
    box-shadow: 0 8px 24px rgba(20, 43, 60, .08);
}

.album-content-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.album-content-item:hover img {
    transform: scale(1.04);
}

.album-content-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(4, 14, 22, .76));
}

.album-content-title {
    position: absolute;
    right: 12px;
    bottom: 11px;
    left: 12px;
    color: #ffffff;
}

.album-content-title strong,
.album-content-title small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-content-title strong {
    font-size: .82rem;
}

.album-content-title small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .68);
    font-size: .65rem;
}

@media (max-width: 1280px) {
    .media-library-grid,
    .album-content-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .album-media-selection-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1040px) {
    .media-view-layout {
        grid-template-columns: 1fr;
    }

    .media-view-details {
        border-top: 1px solid rgba(255, 255, 255, .08);
        border-left: 0;
    }

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

    .album-media-selection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .media-library-toolbar,
    .album-media-picker-header {
        display: grid;
    }

    .media-library-grid,
    .album-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-editor-layout {
        grid-template-columns: 1fr;
    }

    .album-editor-summary {
        position: static;
    }

    .album-media-selection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .media-view-page {
        margin: -20px -16px -24px;
    }

    .media-view-topbar {
        grid-template-columns: 1fr auto;
    }

    .media-view-position {
        display: none;
    }

    .media-view-stage {
        min-height: 420px;
    }

    .media-view-details {
        padding: 21px 17px;
    }

    .media-view-nav {
        width: 40px;
        height: 54px;
    }

    .media-view-nav.is-previous {
        left: 8px;
    }

    .media-view-nav.is-next {
        right: 8px;
    }

    .album-grid,
    .media-library-grid,
    .album-content-grid,
    .album-media-selection-grid {
        grid-template-columns: 1fr;
    }

    .album-view-heading {
        padding: 28px 20px;
    }

    .album-view-hero {
        min-height: 430px;
    }
}

/* Alpha 0.3.19.1 – Multi-Upload und Medien-Performance */
.media-multi-upload-layout {
    align-items: flex-start;
}

.media-multi-upload-panel {
    min-width: 0;
}

.media-multi-upload {
    display: grid;
    gap: 20px;
}

.media-multi-dropzone {
    min-height: 220px;
    border: 1px dashed rgba(71, 161, 221, 0.5);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.media-multi-dropzone.is-dragging {
    border-color: #47a1dd;
    background: rgba(71, 161, 221, 0.1);
    transform: translateY(-2px);
}

.media-multi-dropzone small {
    color: var(--text-muted, #8da0b5);
}

.media-upload-overall {
    padding: 18px;
    border: 1px solid rgba(71, 161, 221, 0.22);
    border-radius: 18px;
    background: rgba(10, 20, 32, 0.58);
}

.media-upload-overall-head,
.media-upload-overall-meta,
.media-upload-item-head,
.media-upload-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.media-upload-overall-head > div {
    display: grid;
    gap: 3px;
}

.media-upload-overall-head span,
.media-upload-overall-meta,
.media-upload-item-head span,
.media-upload-item-meta {
    color: var(--text-muted, #8da0b5);
    font-size: 0.82rem;
}

.media-progress-track {
    position: relative;
    height: 8px;
    margin: 14px 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.media-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #47a1dd, #70c2f2);
    transition: width 120ms linear;
}

.media-upload-queue {
    display: grid;
    gap: 12px;
}

.media-upload-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(8, 17, 28, 0.72);
}

.media-upload-item.is-uploading {
    border-color: rgba(71, 161, 221, 0.46);
}

.media-upload-item.is-processing {
    border-color: rgba(245, 181, 66, 0.42);
}

.media-upload-item.is-ready {
    border-color: rgba(77, 196, 122, 0.38);
}

.media-upload-item.is-failed {
    border-color: rgba(232, 90, 90, 0.46);
}

.media-upload-item-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: #8fd0f7;
    background: rgba(71, 161, 221, 0.12);
}

.media-upload-item-content {
    min-width: 0;
}

.media-upload-title-input {
    width: min(100%, 520px);
    padding: 0;
    border: 0;
    color: var(--text-primary, #f5f8fc);
    background: transparent;
    font: inherit;
    font-weight: 700;
    outline: none;
}

.media-upload-title-input:focus {
    color: #8fd0f7;
}

.media-upload-item-head > div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.media-upload-item-head span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-upload-item-meta {
    justify-content: flex-start;
    min-height: 20px;
}

.media-upload-item-meta [data-upload-status] {
    color: var(--text-secondary, #cbd6e2);
}

.media-upload-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.media-upload-small-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    color: var(--text-secondary, #cbd6e2);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    text-decoration: none;
}

.media-upload-small-button:hover {
    color: #ffffff;
    border-color: rgba(71, 161, 221, 0.42);
    background: rgba(71, 161, 221, 0.12);
}

.media-upload-actions {
    position: sticky;
    bottom: 14px;
    z-index: 4;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    background: rgba(9, 18, 29, 0.88);
}

.media-library-state.is-processing {
    color: #f5c56b;
    background: rgba(245, 181, 66, 0.1);
}

.media-library-card img {
    content-visibility: auto;
}

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

.media-pagination-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    color: var(--text-primary, #f5f8fc);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.media-pagination-button:hover {
    border-color: rgba(71, 161, 221, 0.42);
    background: rgba(71, 161, 221, 0.1);
}

.media-pagination-button.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.media-pagination-status {
    color: var(--text-muted, #8da0b5);
    font-size: 0.9rem;
}

@media (max-width: 760px) {
    .media-upload-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .media-upload-item-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .media-upload-overall-head,
    .media-upload-overall-meta,
    .media-upload-item-head,
    .media-upload-item-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .media-pagination {
        gap: 10px;
    }

    .media-pagination-button {
        padding: 0 12px;
    }
}


/* Alpha 0.3.19.2: Auswahl und endgültiges Löschen in der Mediathek */
.media-library-selection-form {
    display: grid;
    gap: 18px;
}

.media-selection-bar {
    position: sticky;
    top: 14px;
    z-index: 18;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(71, 161, 221, 0.34);
    border-radius: 16px;
    background: rgba(8, 18, 30, 0.94);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.media-selection-bar[hidden] {
    display: none;
}

.media-selection-summary,
.media-selection-actions,
.media-selection-button,
.media-selection-delete {
    display: inline-flex;
    align-items: center;
}

.media-selection-summary {
    gap: 10px;
    color: var(--text-primary, #f5f8fc);
}

.media-selection-summary .material-symbols-rounded {
    color: #8fd0f7;
}

.media-selection-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.media-selection-button {
    min-height: 40px;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    color: var(--text-secondary, #cbd6e2);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.media-selection-button:hover {
    color: #ffffff;
    border-color: rgba(71, 161, 221, 0.42);
    background: rgba(71, 161, 221, 0.12);
}

.media-selection-delete {
    gap: 7px;
}

.media-selection-delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.media-library-card {
    position: relative;
}

.media-library-selector {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 12;
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    color: transparent;
    background: rgba(7, 15, 25, 0.86);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.media-library-selector input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.media-library-selection-form.is-selection-mode .media-library-selector {
    display: grid;
}

.media-library-selection-form.is-selection-mode .media-library-card {
    cursor: pointer;
}

.media-library-selection-form.is-selection-mode .media-library-card:hover {
    border-color: rgba(71, 161, 221, 0.58);
}

.media-library-card.is-selected {
    border-color: rgba(71, 161, 221, 0.92);
    box-shadow: 0 0 0 2px rgba(71, 161, 221, 0.22),
        0 18px 34px rgba(0, 0, 0, 0.26);
}

.media-library-card.is-selected .media-library-selector {
    color: #ffffff;
    border-color: #47a1dd;
    background: #47a1dd;
}

.media-library-card.is-selected .media-library-card-preview img {
    transform: scale(1.025);
    filter: brightness(0.78);
}

.page-action-button[data-media-selection-toggle].is-active {
    border-color: rgba(71, 161, 221, 0.7);
    color: #ffffff;
    background: rgba(71, 161, 221, 0.18);
}

@media (max-width: 820px) {
    .media-selection-bar {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .media-selection-actions {
        justify-content: stretch;
    }

    .media-selection-button,
    .media-selection-delete {
        justify-content: center;
        flex: 1 1 180px;
    }
}

/* Alpha 0.3.19.4: Löschaufträge im Hintergrund */
.account-message.account-info {
    border-color: rgba(71, 161, 221, 0.34);
    color: #dceffc;
    background: rgba(71, 161, 221, 0.12);
}

.media-delete-job-message {
    margin: 0;
}

.media-delete-job-message[hidden] {
    display: none;
}

.media-delete-job-message .material-symbols-rounded {
    flex: 0 0 auto;
}

.media-delete-job-message.account-info .material-symbols-rounded,
.media-selection-delete.is-loading .material-symbols-rounded {
    animation: media-delete-spin 0.9s linear infinite;
}

.media-library-card.is-delete-pending {
    pointer-events: none;
    opacity: 0.56;
    filter: saturate(0.55);
}

.media-library-card.is-delete-pending::after {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    content: "Löschauftrag wird erstellt";
    padding: 18px;
    border-radius: inherit;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    background: rgba(7, 15, 25, 0.76);
    backdrop-filter: blur(6px);
}

.media-library-card.is-deleting {
    pointer-events: none;
    opacity: 0;
    transform: scale(0.94);
    transition:
        opacity 180ms ease,
        transform 220ms ease;
}

.media-selection-delete.is-loading {
    pointer-events: none;
}

@keyframes media-delete-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alpha 0.3.19.5 – Albumverwaltung */
.album-card-chip-stack {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    max-width: calc(100% - 24px);
    flex-wrap: wrap;
    gap: 7px;
}

.album-card-cover .album-card-chip-stack .album-status-chip {
    position: static;
}

.album-visibility-chip {
    display: inline-flex;
    width: fit-content;
    min-height: 27px;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 850;
}

.album-visibility-chip .material-symbols-rounded {
    font-size: 15px;
}

.album-visibility-chip.is-group {
    color: #155a79;
    background: #dff2fd;
}

.album-visibility-chip.is-private {
    color: #663f00;
    background: #ffe8ad;
}

.album-card-cover .album-visibility-chip {
    color: #ffffff;
    background: rgba(5, 15, 24, .76);
    backdrop-filter: blur(8px);
}

.album-view-meta > .album-visibility-chip {
    color: #ffffff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
}

.album-readonly-field {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fbfcfd;
}

.album-readonly-field > span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
}

.album-readonly-field strong {
    font-size: .88rem;
}

.album-readonly-field small,
.album-editor-fields .form-field small {
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.45;
}

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

.album-view-actions form {
    margin: 0;
}

.page-action-button.is-danger {
    color: #ffffff;
    border-color: #c83c48;
    background: #c83c48;
}

.page-action-button.is-danger:hover {
    border-color: #a92532;
    background: #a92532;
}

.album-danger-zone {
    display: grid;
    gap: 15px;
    margin-top: 22px;
    border-color: rgba(200, 60, 72, .34);
    background: #fff9fa;
}

.album-danger-zone > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.album-danger-zone form {
    margin: 0;
}

@media (max-width: 680px) {
    .album-view-actions,
    .album-view-actions form,
    .album-view-actions .page-action-button,
    .album-danger-zone form,
    .album-danger-zone .page-action-button {
        width: 100%;
    }
}

/* Alpha 0.3.19.6 – vollständige Albumverwaltung und Gruppenfreigaben */
.album-page-heading,
.album-editor-heading {
    align-items: flex-end;
}

.album-overview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 28px;
}

.album-overview-stats article {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 13px;
    padding: 17px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(20, 40, 58, .045);
}

.album-overview-stats article > .material-symbols-rounded {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .12);
}

.album-overview-stats strong,
.album-overview-stats span {
    display: block;
}

.album-overview-stats strong {
    font-size: 1.4rem;
    line-height: 1;
}

.album-overview-stats article div > span {
    margin-top: 5px;
    color: var(--muted);
    font-size: .8rem;
}

.album-library-section + .album-library-section {
    margin-top: 38px;
}

.album-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 15px;
}

.album-section-heading h2 {
    margin: 3px 0 0;
    font-size: 1.34rem;
}

.album-section-heading > span {
    color: var(--muted);
    font-size: .82rem;
}

.album-empty-state.is-compact {
    min-height: 150px;
}

.album-card {
    overflow: hidden;
    border-radius: 18px;
}

.album-card.is-shared {
    border-color: rgba(71, 161, 221, .35);
    box-shadow: 0 12px 30px rgba(38, 110, 158, .09);
}

.album-card-body {
    align-items: flex-start;
    padding: 15px 16px 16px;
}

.album-card-copy {
    min-width: 0;
}

.album-card-body h3 {
    margin: 0 0 7px;
    font-size: 1rem;
}

.album-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.album-card-body h3 a:hover {
    color: var(--primary-dark);
}

.album-card-body p {
    margin: 4px 0 0;
}

.album-card-origin,
.album-card-shared-out {
    display: flex;
    align-items: center;
    gap: 6px;
}

.album-card-origin {
    color: var(--primary-dark) !important;
    font-weight: 650;
}

.album-card-shared-out {
    color: #526878 !important;
}

.album-card-origin .material-symbols-rounded,
.album-card-shared-out .material-symbols-rounded {
    font-size: 17px;
}

.album-share-chip {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 116, 169, .92);
    box-shadow: 0 5px 14px rgba(19, 70, 105, .18);
    font-size: .72rem;
    font-weight: 750;
    line-height: 1;
}

.album-share-chip .material-symbols-rounded {
    font-size: 16px;
}

.album-card-readonly {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--muted);
    background: var(--surface-muted);
}

.album-editor-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
}

.album-editor-summary {
    position: sticky;
    top: 20px;
}

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

.album-editor-summary-grid .album-selection-counter {
    min-width: 0;
    padding: 14px 10px;
    border: 1px solid rgba(71, 161, 221, .2);
    border-radius: 14px;
    background: rgba(71, 161, 221, .07);
    text-align: center;
}

.album-editor-summary-grid .album-selection-counter strong {
    font-size: 1.55rem;
}

.album-share-manager {
    display: grid;
    gap: 18px;
}

.album-share-manager-header {
    align-items: flex-end;
}

.album-share-manager-header p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

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

.album-share-option {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 25px;
    align-items: center;
    min-height: 78px;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    cursor: pointer;
    transition:
        border-color .16s ease,
        background .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}

.album-share-option:hover {
    transform: translateY(-1px);
    border-color: rgba(71, 161, 221, .48);
    box-shadow: 0 9px 22px rgba(20, 58, 84, .07);
}

.album-share-option.is-selected {
    border-color: var(--primary);
    background: rgba(71, 161, 221, .08);
    box-shadow: inset 0 0 0 1px rgba(71, 161, 221, .12);
}

.album-share-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.album-share-option-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .11);
}

.album-share-option-copy {
    min-width: 0;
}

.album-share-option-copy strong,
.album-share-option-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-share-option-copy strong {
    font-size: .9rem;
}

.album-share-option-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: .75rem;
}

.album-share-option-check {
    color: var(--border);
    font-size: 23px;
    transition: color .16s ease;
}

.album-share-option.is-selected .album-share-option-check {
    color: var(--primary-dark);
    font-variation-settings:
        "FILL" 1,
        "wght" 600,
        "GRAD" 0,
        "opsz" 24;
}

.album-share-notice,
.album-shared-readonly-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    border: 1px solid rgba(71, 161, 221, .22);
    border-radius: 14px;
    color: #36566d;
    background: rgba(71, 161, 221, .065);
}

.album-share-notice > .material-symbols-rounded,
.album-shared-readonly-notice > .material-symbols-rounded {
    flex: 0 0 auto;
    color: var(--primary-dark);
}

.album-share-notice p,
.album-shared-readonly-notice p {
    margin: 0;
    line-height: 1.5;
}

.album-shared-readonly-notice strong {
    display: block;
    margin-bottom: 4px;
}

.album-share-manager.is-readonly > p {
    margin: 0;
    color: var(--muted);
}

.album-shared-group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.album-shared-group-tags > span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(71, 161, 221, .22);
    border-radius: 999px;
    color: #315f7f;
    background: rgba(71, 161, 221, .08);
    font-size: .78rem;
    font-weight: 650;
}

.album-shared-group-tags .material-symbols-rounded {
    font-size: 17px;
}

.album-view-source-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.album-view-source-row .eyebrow {
    margin: 0;
}

.album-view-hero.is-shared-view {
    border: 1px solid rgba(71, 161, 221, .23);
    border-radius: 21px;
    background:
        linear-gradient(135deg, rgba(71, 161, 221, .055), transparent 45%),
        var(--surface);
    box-shadow: var(--shadow);
}

.album-view-shared-groups {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.album-view-shared-groups-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.album-view-shared-groups-label .material-symbols-rounded {
    font-size: 18px;
}

@media (max-width: 1180px) {
    .album-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {
    .album-editor-summary {
        position: static;
    }

    .album-share-manager-header {
        align-items: stretch;
    }

    .album-share-manager-header .album-media-search {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .album-overview-stats,
    .album-share-grid {
        grid-template-columns: 1fr;
    }

    .album-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .album-editor-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-view-hero.is-shared-view {
        border-radius: 16px;
    }
}

/* Alpha 0.3.19.7 – direkter Album-Upload und Hauptgruppe im Dashboard */

.album-direct-upload-panel {
    scroll-margin-top: 24px;
    margin-top: 22px;
    overflow: hidden;
    border-color: rgba(71, 161, 221, .22);
    background:
        linear-gradient(135deg, rgba(71, 161, 221, .055), transparent 42%),
        var(--surface);
}

.album-direct-upload-heading {
    align-items: flex-start;
}

.album-direct-upload-heading p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.album-direct-upload-grid {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
    gap: 18px;
    align-items: stretch;
}

.album-upload-dropzone {
    min-height: 210px;
    margin: 0;
}

.album-upload-options {
    display: grid;
    align-content: start;
    gap: 14px;
}

.album-upload-options .form-field {
    margin: 0;
}

.album-upload-limits {
    margin: 0;
}

.album-upload-review-note {
    margin: 0 0 18px;
}

.album-upload-actions {
    align-items: center;
}

.album-media-uploader [data-media-album-open][hidden] {
    display: none;
}

.dashboard-page-heading {
    margin-bottom: 18px;
}

.dashboard-main-group-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid rgba(71, 161, 221, .2);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.dashboard-main-group-banner {
    position: relative;
    min-height: 245px;
    max-height: 350px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 28%, rgba(71, 161, 221, .46), transparent 32%),
        linear-gradient(135deg, #17344a, #285f82 54%, #47a1dd);
}

.dashboard-main-group-banner > img,
.dashboard-main-group-banner-fallback {
    width: 100%;
    height: 100%;
    min-height: 245px;
    object-fit: cover;
}

.dashboard-main-group-banner-fallback {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .7);
}

.dashboard-main-group-banner-fallback .material-symbols-rounded {
    font-size: 74px;
}

.dashboard-main-group-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(8, 18, 27, .04), rgba(8, 18, 27, .82)),
        linear-gradient(90deg, rgba(8, 18, 27, .55), transparent 68%);
}

.dashboard-main-group-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 22px;
    align-items: end;
    margin-top: -92px;
    padding: 0 28px 24px;
    color: #fff;
}

.dashboard-main-group-logo {
    display: grid;
    width: 128px;
    height: 128px;
    place-items: center;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, .95);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(71, 161, 221, .96), rgba(30, 92, 134, .98));
    box-shadow: 0 18px 45px rgba(5, 18, 29, .28);
    color: #fff;
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: .04em;
}

.dashboard-main-group-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-main-group-copy {
    min-width: 0;
    padding-bottom: 4px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .32);
}

.dashboard-main-group-kicker,
.dashboard-main-group-role {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.dashboard-main-group-kicker > span:not(.state),
.dashboard-main-group-role {
    color: rgba(255, 255, 255, .86);
    font-size: .84rem;
    font-weight: 700;
}

.dashboard-main-group-copy h2 {
    margin: 8px 0 8px;
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.08;
}

.dashboard-main-group-copy p {
    max-width: 860px;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .86);
    line-height: 1.55;
}

.dashboard-main-group-role .material-symbols-rounded {
    font-size: 19px;
}

.dashboard-main-group-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 22px 22px;
    background: var(--surface);
}

.dashboard-main-group-actions a {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface-raised, rgba(255, 255, 255, .72));
    font-size: .86rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.dashboard-main-group-actions a:hover {
    transform: translateY(-2px);
    border-color: rgba(71, 161, 221, .45);
    background: rgba(71, 161, 221, .08);
}

.dashboard-main-group-actions a .material-symbols-rounded {
    color: var(--primary, #47a1dd);
    font-size: 23px;
}

.dashboard-main-group-actions a.is-alarm {
    border-color: rgba(213, 64, 72, .26);
    background: rgba(213, 64, 72, .055);
}

.dashboard-main-group-actions a.is-alarm .material-symbols-rounded {
    color: #c93642;
}

.dashboard-main-group-empty {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
    padding: 28px;
}

.dashboard-main-group-empty > .material-symbols-rounded {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 18px;
    color: var(--primary, #47a1dd);
    background: rgba(71, 161, 221, .1);
    font-size: 34px;
}

.dashboard-main-group-empty h2,
.dashboard-main-group-empty p {
    margin: 0;
}

.dashboard-main-group-empty p {
    margin-top: 7px;
    color: var(--muted);
}

.dashboard-status-grid {
    margin-top: 0;
}

.dashboard-overview-grid {
    align-items: stretch;
}

.dashboard-additional-groups {
    display: grid;
    gap: 10px;
}

.dashboard-additional-group {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: rgba(71, 161, 221, .025);
    text-decoration: none;
    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.dashboard-additional-group:hover {
    transform: translateX(2px);
    border-color: rgba(71, 161, 221, .4);
    background: rgba(71, 161, 221, .075);
}

.dashboard-additional-group-logo {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #47a1dd, #2c6f9c);
    font-size: .8rem;
    font-weight: 850;
}

.dashboard-additional-group-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-additional-group > span:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.dashboard-additional-group strong,
.dashboard-additional-group small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-additional-group small {
    color: var(--muted);
}

.dashboard-additional-group > .material-symbols-rounded {
    color: var(--muted);
    font-size: 21px;
}

@media (max-width: 1080px) {
    .dashboard-main-group-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .album-direct-upload-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard-main-group-banner,
    .dashboard-main-group-banner > img,
    .dashboard-main-group-banner-fallback {
        min-height: 205px;
    }

    .dashboard-main-group-content {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 16px;
        margin-top: -68px;
        padding: 0 18px 18px;
    }

    .dashboard-main-group-logo {
        width: 92px;
        height: 92px;
        border-width: 4px;
        border-radius: 20px;
        font-size: 1.45rem;
    }

    .dashboard-main-group-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px 16px 18px;
    }

    .dashboard-main-group-copy p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 520px) {
    .dashboard-main-group-card {
        border-radius: 18px;
    }

    .dashboard-main-group-content {
        grid-template-columns: 70px minmax(0, 1fr);
        margin-top: -48px;
        padding: 0 14px 15px;
    }

    .dashboard-main-group-logo {
        width: 70px;
        height: 70px;
        border-width: 3px;
        border-radius: 17px;
        font-size: 1.05rem;
    }

    .dashboard-main-group-copy h2 {
        margin-top: 5px;
        font-size: 1.45rem;
    }

    .dashboard-main-group-copy p {
        display: none;
    }

    .dashboard-main-group-role {
        font-size: .76rem;
    }

    .dashboard-main-group-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px;
    }

    .dashboard-main-group-actions a {
        min-height: 52px;
        padding: 10px;
        font-size: .78rem;
    }

    .album-direct-upload-panel {
        padding: 16px;
    }

    .album-upload-dropzone {
        min-height: 180px;
    }

    .album-upload-actions {
        align-items: stretch;
    }

    .album-upload-actions .page-action-button {
        width: 100%;
        justify-content: center;
    }
}


/* Alpha 0.3.20 – Gruppenmodule und Gruppenauftritt */
.group-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    gap: 22px;
    align-items: start;
}

.group-branding-panel,
.group-module-settings-panel {
    display: grid;
    gap: 22px;
}

.group-asset-editor {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-muted);
}

.group-asset-editor-heading strong,
.group-asset-editor-heading span {
    display: block;
}

.group-asset-editor-heading span,
.group-settings-intro,
.group-module-switch-copy small {
    color: var(--muted);
}

.group-brand-preview {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .09);
    background: #111827;
    cursor: grab;
    touch-action: none;
}

.group-brand-preview.is-dragging {
    cursor: grabbing;
}

.group-brand-preview-banner {
    aspect-ratio: 16 / 5;
    min-height: 210px;
    border-radius: 18px;
}

.group-brand-preview-logo {
    width: min(260px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 28px;
    background: var(--logo-background, #111827);
}

.group-brand-preview img,
.dashboard-main-group-banner img,
.dashboard-main-group-logo img,
.dashboard-additional-group-logo img {
    position: absolute;
    left: calc(var(--asset-x, 50) * 1%);
    top: calc(var(--asset-y, 50) * 1%);
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(var(--asset-zoom, 1));
    transform-origin: center;
}

.group-brand-preview-banner img,
.dashboard-main-group-banner img {
    object-fit: cover;
}

.group-brand-preview-logo img,
.dashboard-main-group-logo img,
.dashboard-additional-group-logo img {
    object-fit: contain;
}

.group-brand-preview-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
}

.group-brand-preview-empty .material-symbols-rounded {
    font-size: 46px;
}

.group-asset-upload-form,
.group-remove-asset-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.group-asset-file-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    font-weight: 750;
    cursor: pointer;
}

.group-asset-file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.danger-text-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    color: #ef7777;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.group-appearance-form {
    display: grid;
    gap: 20px;
}

.group-adjustment-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.group-adjustment-section h3 {
    margin: 0;
}

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

.group-adjustment-grid label {
    display: grid;
    gap: 8px;
}

.group-adjustment-grid label > span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: .86rem;
}

.group-adjustment-grid output {
    color: var(--text);
    font-weight: 750;
}

.group-adjustment-grid input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.logo-background-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.logo-background-options legend {
    padding: 0 7px;
    font-weight: 750;
}

.logo-background-options > label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--surface-muted);
}

.logo-custom-color input {
    width: 42px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
}

.group-module-switches {
    display: grid;
    gap: 12px;
}

.group-module-switch-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-muted);
}

.group-module-switch-icon {
    color: var(--accent);
}

.group-module-switch-copy strong,
.group-module-switch-copy small {
    display: block;
}

.group-module-switch-copy small {
    margin-top: 3px;
    line-height: 1.4;
}

.group-module-switch-control {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 28px;
}

.group-module-switch-control input {
    position: absolute;
    opacity: 0;
}

.group-module-switch-control span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #4b5563;
    transition: .18s ease;
}

.group-module-switch-control span::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: .18s ease;
}

.group-module-switch-control input:checked + span {
    background: var(--accent);
}

.group-module-switch-control input:checked + span::after {
    transform: translateX(20px);
}

.dashboard-main-group-banner,
.dashboard-main-group-logo,
.dashboard-additional-group-logo {
    position: relative;
    overflow: hidden;
}

.dashboard-main-group-logo,
.dashboard-additional-group-logo {
    background: var(--logo-background, #111827);
}

.dashboard-group-settings-button {
    width: max-content;
    margin-top: 14px;
}

@media (max-width: 1050px) {
    .group-settings-grid {
        grid-template-columns: 1fr;
    }
}

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

    .group-brand-preview-banner {
        min-height: 160px;
        aspect-ratio: 16 / 7;
    }

    .group-asset-upload-form,
    .group-asset-upload-form .primary-button,
    .group-asset-file-button {
        width: 100%;
        justify-content: center;
    }
}

/* Alpha 0.3.20.1 – vereinfachte Gruppenbearbeitung */
.group-settings-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.group-settings-page-heading {
    align-items: flex-start;
    gap: 24px;
}

.group-settings-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.group-settings-lead-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(71, 161, 221, 0.24);
    border-radius: 14px;
    background: rgba(71, 161, 221, 0.09);
    color: #267bb4;
    font-size: 0.88rem;
    font-weight: 750;
}

.group-settings-lead-badge .material-symbols-rounded {
    font-size: 20px;
}

.group-settings-tabs {
    display: flex;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 24px 0 18px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--border-color, #dbe5ee);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 32px rgba(15, 35, 52, 0.06);
}

.group-settings-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #607080;
    font: inherit;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.group-settings-tab:hover {
    background: rgba(71, 161, 221, 0.08);
    color: #1b74ad;
}

.group-settings-tab.is-active {
    background: #47a1dd;
    color: #fff;
    box-shadow: 0 8px 20px rgba(71, 161, 221, 0.25);
}

.group-settings-tab .material-symbols-rounded {
    font-size: 21px;
}

.group-settings-tab-count {
    min-width: 38px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    text-align: center;
}

.group-settings-tab:not(.is-active) .group-settings-tab-count {
    background: #edf3f7;
    color: #61717f;
}

.group-settings-tab-panel[hidden] {
    display: none !important;
}

.group-settings-section-panel {
    padding: clamp(22px, 3vw, 34px);
    overflow: visible;
}

.group-settings-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-color, #dbe5ee);
}

.group-settings-section-header h2 {
    margin: 3px 0 6px;
}

.group-settings-section-header p {
    max-width: 680px;
    margin: 0;
    color: #6c7b89;
}

.group-settings-section-header > .material-symbols-rounded {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 16px;
    background: rgba(71, 161, 221, 0.1);
    color: #47a1dd;
    font-size: 26px;
}

.group-brand-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 20px;
    margin-top: 24px;
}

.group-brand-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border: 1px solid #dbe5ee;
    border-radius: 22px;
    background: #f8fafc;
}

.group-brand-card-copy {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.group-brand-card-copy h3 {
    margin: 4px 0 0;
    font-size: 1.12rem;
}

.group-brand-card-label {
    color: #2785c2;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.group-brand-card-status {
    padding: 5px 10px;
    border-radius: 999px;
    background: #edf2f6;
    color: #74818c;
    font-size: 0.75rem;
    font-weight: 750;
    white-space: nowrap;
}

.group-brand-card-status.is-ready {
    background: rgba(35, 174, 104, 0.11);
    color: #16804b;
}

.group-brand-card-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(21, 42, 58, 0.1);
    background: #eaf0f4;
}

.group-brand-card-preview img,
.group-dialog-preview img {
    width: calc(100% * var(--asset-zoom, 1));
    height: calc(100% * var(--asset-zoom, 1));
    max-width: none;
    object-fit: cover;
    object-position: calc(var(--asset-x, 50) * 1%) calc(var(--asset-y, 50) * 1%);
    pointer-events: none;
    user-select: none;
}

.group-brand-card-preview-banner {
    aspect-ratio: 16 / 6;
    border-radius: 18px;
}

.group-brand-card-preview-logo {
    width: 150px;
    height: 150px;
    flex: 0 0 auto;
    border-radius: 30px;
    background: var(--logo-background, #111827);
}

.group-brand-card-preview-logo img,
.group-dialog-preview-logo img {
    object-fit: contain;
}

.group-brand-card-placeholder {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    width: 100%;
    height: 100%;
    color: #84929e;
    text-align: center;
}

.group-brand-card-placeholder .material-symbols-rounded {
    font-size: 36px;
}

.group-logo-showcase {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 154px;
}

.group-logo-showcase-copy {
    display: grid;
    gap: 5px;
    color: #697987;
    font-size: 0.88rem;
}

.group-logo-showcase-copy strong {
    color: #1f2b35;
}

.group-brand-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.group-brand-card-actions .primary-button {
    width: auto;
    min-width: 190px;
}

.group-brand-dialog {
    width: min(920px, calc(100vw - 32px));
    max-width: none;
    max-height: min(860px, calc(100vh - 32px));
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 26px;
    background: #fff;
    color: #1c2832;
    box-shadow: 0 30px 90px rgba(12, 27, 40, 0.28);
}

.group-brand-dialog::backdrop {
    background: rgba(15, 28, 40, 0.62);
    backdrop-filter: blur(4px);
}

.group-brand-dialog-shell {
    display: flex;
    max-height: min(860px, calc(100vh - 32px));
    flex-direction: column;
}

.group-brand-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid #e1e8ee;
}

.group-brand-dialog-header h2 {
    margin: 3px 0 4px;
}

.group-brand-dialog-header p {
    margin: 0;
    color: #6e7d89;
}

.group-brand-dialog-content {
    padding: 24px 26px 26px;
    overflow-y: auto;
}

.group-dialog-editor {
    display: grid;
    gap: 14px;
}

.group-dialog-preview {
    position: relative;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
    border: 1px solid #d9e4ec;
    background: #edf2f6;
}

.group-dialog-preview.is-dragging {
    cursor: grabbing;
}

.group-dialog-preview-banner {
    width: 100%;
    aspect-ratio: 16 / 6;
    border-radius: 20px;
}

.group-dialog-logo-stage {
    display: grid;
    min-height: 280px;
    place-items: center;
    border-radius: 22px;
    background:
        linear-gradient(45deg, rgba(23, 40, 54, 0.035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(23, 40, 54, 0.035) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(23, 40, 54, 0.035) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(23, 40, 54, 0.035) 75%);
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-size: 24px 24px;
}

.group-dialog-preview-logo {
    width: 230px;
    height: 230px;
    border-radius: 42px;
    background: var(--logo-background, #111827);
    box-shadow: 0 18px 40px rgba(17, 31, 43, 0.16);
}

.group-dialog-drag-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    color: #71808d;
    font-size: 0.84rem;
}

.group-dialog-drag-hint .material-symbols-rounded {
    font-size: 18px;
}

.group-dialog-upload-form {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dbe5ed;
    border-radius: 17px;
    background: #f8fafc;
}

.group-dialog-file-button {
    cursor: pointer;
}

.group-dialog-file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.group-dialog-file-name {
    min-width: 0;
    overflow: hidden;
    color: #6d7c88;
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-dialog-upload-form button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.group-dialog-settings-form {
    display: grid;
    gap: 20px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e1e8ee;
}

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

.group-dialog-controls label {
    display: grid;
    gap: 9px;
}

.group-dialog-controls label > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #596975;
    font-weight: 700;
}

.group-dialog-controls output {
    color: #1f2c35;
    font-weight: 800;
}

.group-dialog-background-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.group-dialog-background-options legend {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    color: #27343d;
    font-weight: 800;
}

.group-dialog-background-options > label:not(.group-dialog-custom-color) {
    position: relative;
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    border: 1px solid #d9e4ec;
    border-radius: 16px;
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
}

.group-dialog-background-options input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.group-dialog-background-options > label:has(input[type="radio"]:checked) {
    border-color: #47a1dd;
    background: rgba(71, 161, 221, 0.09);
    color: #237eb8;
    box-shadow: inset 0 0 0 1px #47a1dd;
}

.group-dialog-custom-color {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid #d9e4ec;
    border-radius: 14px;
    background: #f8fafc;
    font-weight: 750;
}

.group-dialog-custom-color input[type="color"] {
    width: 52px;
    height: 34px;
    padding: 2px;
    border: 0;
    border-radius: 9px;
    background: transparent;
}

.group-brand-dialog-footer,
.group-settings-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.group-module-compact-form {
    display: grid;
    gap: 20px;
    margin-top: 22px;
}

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

.group-module-compact-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 15px;
    min-height: 82px;
    padding: 14px 16px;
    border: 1px solid #dce6ed;
    border-radius: 17px;
    background: #f9fbfc;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.group-module-compact-row:hover {
    transform: translateY(-1px);
    border-color: rgba(71, 161, 221, 0.52);
}

.group-module-compact-row.is-enabled {
    border-color: rgba(71, 161, 221, 0.34);
    background: rgba(71, 161, 221, 0.055);
}

.group-module-compact-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #edf2f6;
    color: #71808d;
    font-size: 23px;
}

.group-module-compact-row.is-enabled .group-module-compact-icon {
    background: rgba(71, 161, 221, 0.13);
    color: #2787c5;
}

.group-module-compact-copy {
    display: grid;
    gap: 3px;
}

.group-module-compact-copy strong {
    color: #1f2b34;
    font-size: 1rem;
}

.group-module-compact-copy small {
    color: #71808d;
    font-size: 0.86rem;
    line-height: 1.35;
}

.group-module-compact-state {
    min-width: 48px;
    color: #81909b;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: right;
}

.group-module-compact-row.is-enabled .group-module-compact-state {
    color: #2184c3;
}

.group-settings-form-footer {
    padding-top: 18px;
    border-top: 1px solid #e1e8ee;
}

.group-settings-form-footer > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #71808d;
    font-size: 0.84rem;
}

.group-settings-form-footer > span .material-symbols-rounded {
    font-size: 18px;
}

@media (max-width: 900px) {
    .group-brand-overview {
        grid-template-columns: 1fr;
    }

    .group-brand-card-preview-logo {
        width: 132px;
        height: 132px;
    }

    .group-dialog-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .group-settings-page-heading,
    .group-settings-section-header,
    .group-settings-heading-actions,
    .group-brand-dialog-footer,
    .group-settings-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .group-settings-heading-actions > *,
    .group-brand-dialog-footer > *,
    .group-settings-form-footer > * {
        width: 100%;
    }

    .group-settings-tabs {
        width: 100%;
    }

    .group-settings-tab {
        flex: 1 0 auto;
    }

    .group-settings-section-panel {
        padding: 18px;
    }

    .group-settings-section-header > .material-symbols-rounded {
        display: none;
    }

    .group-logo-showcase {
        align-items: flex-start;
        flex-direction: column;
    }

    .group-brand-card-actions .primary-button {
        width: 100%;
    }

    .group-brand-dialog {
        width: 100vw;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }

    .group-brand-dialog-shell {
        max-height: 100dvh;
    }

    .group-brand-dialog-header,
    .group-brand-dialog-content {
        padding-right: 18px;
        padding-left: 18px;
    }

    .group-dialog-upload-form {
        grid-template-columns: 1fr;
    }

    .group-dialog-upload-form > * {
        width: 100%;
    }

    .group-dialog-file-name {
        white-space: normal;
    }

    .group-dialog-preview-banner {
        aspect-ratio: 16 / 8;
    }

    .group-dialog-background-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .group-module-compact-row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .group-module-compact-state {
        display: none;
    }
}

/* Alpha 0.3.20.2 – Gruppenkalender */
.calendar-page-heading,
.calendar-editor-heading {
    align-items: center;
}

.calendar-shell {
    overflow: hidden;
    padding: 0;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
}

.calendar-month-navigation,
.calendar-view-switch,
.calendar-event-badges,
.calendar-event-meta,
.calendar-response-summary,
.calendar-response-actions,
.calendar-editor-status-actions {
    display: flex;
    align-items: center;
}

.calendar-month-navigation {
    gap: 12px;
}

.calendar-month-navigation h2,
.calendar-list-heading h2,
.calendar-event-title-row h3,
.calendar-editor-status-card h2,
.calendar-editor-info h2 {
    margin: 0;
}

.calendar-month-navigation .eyebrow {
    margin-bottom: 3px;
}

.calendar-view-switch {
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-muted);
}

.calendar-view-switch a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.calendar-view-switch a.is-active {
    color: #ffffff;
    background: var(--primary);
}

.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
}

.calendar-weekday {
    padding: 12px 10px;
    border-right: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface-muted);
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.calendar-weekday:nth-child(7) {
    border-right: 0;
}

.calendar-day {
    min-height: 138px;
    padding: 10px;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--surface);
}

.calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-day.is-outside {
    background: #f8fafc;
    color: var(--muted);
}

.calendar-day.is-today {
    box-shadow: inset 0 0 0 2px rgba(71, 161, 221, .48);
}

.calendar-day-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.calendar-day-number > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
}

.calendar-day.is-today .calendar-day-number > span {
    color: #ffffff;
    background: var(--primary);
}

.calendar-day-number small {
    color: var(--primary-dark);
    font-size: .7rem;
    font-weight: 800;
}

.calendar-day-events {
    display: grid;
    gap: 5px;
}

.calendar-event-chip {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
    padding: 6px 8px;
    border-left: 3px solid var(--primary);
    border-radius: 7px;
    color: var(--text);
    background: rgba(71, 161, 221, .11);
    font-size: .78rem;
    text-decoration: none;
}

.calendar-event-chip time {
    flex: 0 0 auto;
    font-weight: 800;
}

.calendar-event-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-chip.is-team {
    border-left-color: #7c5ce7;
    background: rgba(124, 92, 231, .1);
}

.calendar-event-chip.is-cancelled {
    border-left-color: var(--danger);
    background: rgba(214, 75, 82, .09);
    text-decoration: line-through;
    opacity: .75;
}

.calendar-more-events {
    padding-left: 8px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
}

.calendar-event-list {
    padding: 24px;
}

.calendar-event-list.is-primary {
    padding-top: 28px;
}

.calendar-list-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-event-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 18px;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 15px;
    background: var(--surface);
}

.calendar-event-card.is-cancelled {
    border-left-color: var(--danger);
    background: #fffafb;
}

.calendar-event-date-block {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 92px;
    border-radius: 13px;
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .1);
}

.calendar-event-date-block strong {
    font-size: 1.9rem;
    line-height: 1;
}

.calendar-event-date-block span {
    margin-top: 4px;
    font-weight: 800;
    text-transform: uppercase;
}

.calendar-event-date-block small {
    margin-top: 2px;
    color: var(--muted);
}

.calendar-event-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.calendar-event-title-row h3 {
    margin-top: 8px;
    font-size: 1.18rem;
}

.calendar-event-badges {
    flex-wrap: wrap;
    gap: 7px;
}

.state-neutral {
    color: #55616c;
    background: #edf1f4;
}

.calendar-event-meta {
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 12px;
    color: var(--muted);
    font-size: .87rem;
}

.calendar-event-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.calendar-event-meta .material-symbols-rounded {
    font-size: 19px;
}

.calendar-event-description {
    margin: 15px 0 0;
    color: #42515e;
    line-height: 1.55;
}

.calendar-response-summary {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.calendar-response-summary span {
    padding: 6px 9px;
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface-muted);
    font-size: .8rem;
}

.calendar-response-actions {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.calendar-response-actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
}

.calendar-response-actions button.is-selected {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .1);
    font-weight: 800;
}

.calendar-response-actions .material-symbols-rounded {
    font-size: 19px;
}

.calendar-empty-state {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--muted);
    background: var(--surface-muted);
}

.calendar-empty-state > .material-symbols-rounded {
    color: var(--primary);
    font-size: 38px;
}

.calendar-empty-state strong,
.calendar-empty-state span {
    display: block;
}

.calendar-empty-state strong {
    color: var(--text);
}

.calendar-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.calendar-editor-form {
    padding: 24px;
}

.calendar-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.calendar-form-field {
    display: grid;
    gap: 7px;
}

.calendar-form-field > span {
    font-size: .86rem;
    font-weight: 800;
}

.calendar-form-field input,
.calendar-form-field textarea,
.calendar-form-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface);
    font: inherit;
}

.calendar-form-field textarea {
    resize: vertical;
}

.calendar-form-field small {
    color: var(--muted);
    font-size: .75rem;
}

.calendar-form-field-wide {
    grid-column: 1 / -1;
}

.calendar-check-card {
    display: grid;
    grid-template-columns: auto 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
    cursor: pointer;
}

.calendar-check-card input {
    width: 20px;
    height: 20px;
}

.calendar-check-card strong,
.calendar-check-card small {
    display: block;
}

.calendar-check-card small {
    margin-top: 3px;
    color: var(--muted);
}

.calendar-time-fields,
.calendar-recurrence-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.calendar-time-fields[hidden] {
    display: none;
}

.calendar-recurrence-fields {
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-muted);
}

.calendar-recurrence-fields.is-disabled {
    opacity: .55;
}

.calendar-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.calendar-editor-footer > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: .84rem;
}

.calendar-editor-sidebar {
    display: grid;
    gap: 16px;
}

.calendar-editor-info,
.calendar-editor-status-card {
    padding: 20px;
}

.calendar-editor-info {
    display: flex;
    gap: 12px;
}

.calendar-editor-info > .material-symbols-rounded {
    color: var(--primary);
    font-size: 30px;
}

.calendar-editor-info p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.calendar-editor-status-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    margin-top: 16px;
}

.calendar-editor-status-actions form,
.calendar-editor-status-actions button {
    width: 100%;
}

.dashboard-calendar-panel {
    margin-top: 22px;
}

.dashboard-calendar-list {
    display: grid;
    gap: 9px;
}

.dashboard-calendar-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.dashboard-calendar-item:hover {
    border-color: rgba(71, 161, 221, .65);
    transform: translateY(-1px);
}

.dashboard-calendar-date {
    display: grid;
    justify-items: center;
    padding: 7px;
    border-radius: 10px;
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .1);
}

.dashboard-calendar-date strong {
    font-size: 1.25rem;
    line-height: 1;
}

.dashboard-calendar-date small {
    margin-top: 3px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-calendar-copy,
.dashboard-calendar-copy strong,
.dashboard-calendar-copy small {
    display: block;
    min-width: 0;
}

.dashboard-calendar-copy small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .calendar-month-grid {
        min-width: 920px;
    }

    .calendar-shell {
        overflow-x: auto;
    }

    .calendar-event-list {
        min-width: 0;
    }

    .calendar-editor-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .calendar-toolbar,
    .calendar-month-navigation,
    .calendar-editor-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-toolbar {
        padding: 18px;
    }

    .calendar-view-switch,
    .calendar-view-switch a,
    .calendar-today-button {
        width: 100%;
    }

    .calendar-view-switch a {
        justify-content: center;
    }

    .calendar-month-navigation {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .calendar-today-button {
        grid-column: 1 / -1;
    }

    .calendar-event-list {
        padding: 18px;
    }

    .calendar-event-card {
        grid-template-columns: 1fr;
    }

    .calendar-event-date-block {
        grid-template-columns: auto auto auto;
        justify-content: start;
        align-items: baseline;
        min-height: 0;
        gap: 6px;
        padding: 10px 12px;
    }

    .calendar-event-date-block strong {
        font-size: 1.25rem;
    }

    .calendar-form-grid,
    .calendar-time-fields,
    .calendar-recurrence-fields {
        grid-template-columns: 1fr;
    }

    .calendar-editor-form {
        padding: 18px;
    }

    .dashboard-calendar-item {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .dashboard-calendar-item > .material-symbols-rounded {
        display: none;
    }
}

/* Alpha 0.4.5 – Interner Notruf als Gruppenmodul */
.group-internal-emergency-block {
    display: grid;
    gap: 10px;
}

.group-internal-emergency-row {
    border-color: rgba(205, 54, 73, 0.28);
    background: rgba(205, 54, 73, 0.035);
}

.group-internal-emergency-row.is-enabled {
    border-color: rgba(205, 54, 73, 0.42);
    background: rgba(205, 54, 73, 0.075);
}

.group-internal-emergency-row .group-module-compact-icon,
.group-internal-emergency-row.is-enabled .group-module-compact-icon {
    background: rgba(205, 54, 73, 0.12);
    color: #b52d42;
}

.group-internal-emergency-row.is-enabled .group-module-compact-state {
    color: #b52d42;
}

.group-module-compact-row.is-disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none;
}

.group-emergency-recipient-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dce6ed;
    border-radius: 17px;
    background: #ffffff;
    transition: opacity 160ms ease, border-color 160ms ease;
}

.group-emergency-recipient-panel > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.group-emergency-recipient-panel > header > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.group-emergency-recipient-panel > header .material-symbols-rounded {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(205, 54, 73, 0.1);
    color: #b52d42;
}

.group-emergency-recipient-panel > header strong,
.group-emergency-recipient-panel > header small {
    display: block;
}

.group-emergency-recipient-panel > header strong {
    color: #1f2b34;
}

.group-emergency-recipient-panel > header small {
    margin-top: 3px;
    color: #71808d;
    line-height: 1.45;
}

.group-emergency-recipient-count {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf2f6;
    color: #63727e;
    font-size: 0.78rem;
    font-weight: 800;
}

.group-emergency-recipient-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.group-emergency-recipient-option {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid #dce6ed;
    border-radius: 13px;
    background: #f9fbfc;
    cursor: pointer;
}

.group-emergency-recipient-option:has(input:checked) {
    border-color: rgba(205, 54, 73, 0.35);
    background: rgba(205, 54, 73, 0.055);
}

.group-emergency-recipient-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.group-emergency-recipient-check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid #cbd7df;
    border-radius: 9px;
    background: #ffffff;
    color: transparent;
    font-size: 18px;
}

.group-emergency-recipient-option input:checked + .group-emergency-recipient-check {
    border-color: #b52d42;
    background: #b52d42;
    color: #ffffff;
}

.group-emergency-recipient-person {
    min-width: 0;
}

.group-emergency-recipient-person strong,
.group-emergency-recipient-person small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-emergency-recipient-person strong {
    color: #1f2b34;
    font-size: 0.9rem;
}

.group-emergency-recipient-person small {
    margin-top: 2px;
    color: #71808d;
    font-size: 0.76rem;
}

.group-emergency-recipient-empty,
.group-emergency-dependency-note {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #71808d;
    background: #f3f6f8;
    font-size: 0.84rem;
}

.group-emergency-dependency-note {
    display: none;
    color: #8c5c24;
    background: #fff7e9;
}

.group-internal-emergency-block.is-phone-disabled .group-emergency-recipient-panel {
    opacity: 0.7;
}

.group-internal-emergency-block.is-phone-disabled .group-emergency-recipient-list {
    pointer-events: none;
}

.group-internal-emergency-block.is-phone-disabled .group-emergency-dependency-note {
    display: flex;
}

@media (max-width: 760px) {
    .group-emergency-recipient-panel > header {
        flex-direction: column;
    }

    .group-emergency-recipient-list {
        grid-template-columns: 1fr;
    }
}


/* Alpha 0.5.9: Gruppeninhaber und schreibgeschützte Module */
.group-module-readonly-notice {
    margin-bottom: 16px;
}

.group-module-compact-form.is-readonly .group-module-compact-row,
.group-module-compact-form.is-readonly .group-emergency-recipient-option {
    cursor: default;
}

.group-module-compact-row.is-readonly {
    opacity: 0.92;
}

.group-module-compact-row.is-readonly .group-module-switch-control {
    opacity: 0.7;
}

.group-module-compact-form.is-readonly .group-emergency-recipient-panel {
    opacity: 0.92;
}


/* Alpha 0.6.0 – Portal-Branding */
.brand-icon.has-project-logo,
.login-logo.has-project-logo {
    overflow: hidden;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: #ffffff;
}

.brand-icon.has-project-logo {
    border-radius: 14px;
}

.login-logo.has-project-logo {
    border-color: var(--border);
    border-radius: 17px;
}

.portal-branding-logo,
.portal-branding-login-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-branding-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    gap: 22px;
}

.portal-branding-panel {
    display: grid;
    align-content: start;
    gap: 22px;
}

.portal-branding-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.portal-branding-panel-header h2 {
    margin: 4px 0 0;
}

.portal-branding-status {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-soft, #f5f8fa);
    font-size: .78rem;
    font-weight: 700;
}

.portal-branding-status.is-active {
    color: #17683f;
    border-color: rgba(36, 154, 94, .24);
    background: rgba(36, 154, 94, .1);
}

.portal-branding-preview {
    display: grid;
    min-height: 330px;
    place-items: center;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(45deg, rgba(40, 64, 82, .035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(40, 64, 82, .035) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(40, 64, 82, .035) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(40, 64, 82, .035) 75%),
        #ffffff;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-size: 24px 24px;
}

.portal-branding-preview > img {
    display: block;
    width: min(100%, 300px);
    max-height: 300px;
    object-fit: contain;
}

.portal-branding-empty {
    display: grid;
    max-width: 320px;
    justify-items: center;
    gap: 8px;
    color: var(--muted);
    text-align: center;
}

.portal-branding-empty .material-symbols-rounded {
    font-size: 44px;
}

.portal-branding-empty strong {
    color: var(--text);
}

.portal-branding-usage-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.portal-branding-usage-preview > div {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.portal-branding-mini-logo {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: #ffffff;
}

.portal-branding-mini-logo.is-sidebar {
    border-color: rgba(255, 255, 255, .16);
    background: var(--sidebar);
}

.portal-branding-mini-logo.is-favicon {
    width: 42px;
    height: 42px;
    padding: 4px;
    border-radius: 10px;
}

.portal-branding-mini-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-branding-form {
    display: grid;
    gap: 18px;
}

.portal-branding-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 20px;
    border: 1.5px dashed rgba(71, 161, 221, .52);
    border-radius: 18px;
    color: var(--text);
    background: rgba(71, 161, 221, .06);
    cursor: pointer;
}

.portal-branding-upload:hover {
    border-color: var(--primary);
    background: rgba(71, 161, 221, .1);
}

.portal-branding-upload > .material-symbols-rounded {
    font-size: 36px;
    color: var(--primary);
}

.portal-branding-upload span,
.portal-branding-upload strong,
.portal-branding-upload small {
    display: block;
}

.portal-branding-upload small {
    margin-top: 4px;
    color: var(--muted);
}

.portal-branding-upload input {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.portal-branding-help {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-radius: 15px;
    color: var(--muted);
    background: var(--surface-soft, #f5f8fa);
}

.portal-branding-help strong {
    color: var(--text);
}

.portal-branding-help p {
    margin: 4px 0 0;
    line-height: 1.55;
}

.portal-branding-remove-form {
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.portal-branding-remove {
    color: #a12929;
}

@media (max-width: 980px) {
    .portal-branding-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .portal-branding-preview {
        min-height: 245px;
        padding: 24px;
    }

    .portal-branding-usage-preview {
        grid-template-columns: 1fr;
    }
}


/* Alpha 0.6.2 – Portal-Branding Logo-Größenfix */
.login-logo.has-project-logo {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    height: 54px;
    min-height: 54px;
    max-height: 54px;
    place-items: center;
    overflow: hidden;
    padding: 6px;
    box-sizing: border-box;
}

.login-logo.has-project-logo > img.portal-branding-login-logo {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 42px !important;
    min-width: 0 !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 0 !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

.brand-icon.has-project-logo {
    display: grid;
    overflow: hidden;
    place-items: center;
    box-sizing: border-box;
}

.brand-icon.has-project-logo > img.portal-branding-logo {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}


/* Alpha 0.7.0 – Navigation für Einzelgruppen und erweiterte Benutzerfilter */
.nav-section-static.single-group-nav {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.nav-static-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 11px 6px;
    color: #ffffff;
}

.nav-static-heading > .material-symbols-rounded {
    flex: 0 0 auto;
    color: var(--primary);
}

.nav-static-heading-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.nav-static-heading-copy strong,
.nav-static-heading-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-static-heading-copy strong {
    font-size: .9rem;
}

.nav-static-heading-copy small {
    color: rgba(255, 255, 255, .52);
    font-size: .68rem;
}

.single-group-nav .nav-content-static {
    padding: 3px 0 7px;
}

.sidebar .single-group-nav .group-module-nav-link {
    color: var(--sidebar-text);
}

.sidebar .single-group-nav .group-module-nav-link:hover {
    color: #ffffff;
    background: var(--sidebar-hover);
}

.sidebar .single-group-nav .group-module-nav-link.is-active {
    color: #ffffff;
    background: rgba(71, 161, 221, .22);
}

.user-filter-form {
    grid-template-columns:
        minmax(250px, 1.35fr)
        minmax(135px, .7fr)
        minmax(165px, .85fr)
        minmax(185px, 1fr)
        minmax(175px, .9fr)
        auto;
}

.user-filter-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.user-filter-actions .secondary-button {
    min-height: 48px;
    white-space: nowrap;
}

.user-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 14px;
    text-decoration: none;
}

.user-group-memberships {
    display: flex;
    min-width: 230px;
    flex-wrap: wrap;
    gap: 6px;
}

.user-group-chip {
    display: inline-flex;
    max-width: 300px;
    flex-direction: column;
    gap: 1px;
    padding: 6px 9px;
    border: 1px solid #dbe5ec;
    border-radius: 10px;
    background: #f7fafc;
    line-height: 1.2;
}

.user-group-chip strong {
    overflow: hidden;
    color: var(--text);
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-group-chip small,
.user-no-group {
    color: var(--muted);
    font-size: .68rem;
}

@media (max-width: 1500px) {
    .user-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .user-filter-form {
        grid-template-columns: 1fr;
    }

    .user-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* Alpha 0.7.1 – Portalweites Abstands- und Layoutsystem */
:root {
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;

    --layout-content-padding: var(--space-7);
    --layout-section-gap: var(--space-6);
    --layout-grid-gap: var(--space-5);
    --layout-panel-padding: var(--space-6);
    --layout-card-padding: var(--space-5);
    --layout-field-gap: var(--space-2);
}

/* Seitenrahmen und Überschriften */
.content {
    padding: var(--layout-content-padding);
}

.page-heading,
.media-page-heading,
.group-settings-page-heading {
    gap: var(--layout-section-gap);
    margin-bottom: var(--layout-section-gap);
}

.page-heading h1 {
    margin: var(--space-1) 0 var(--space-2);
}

/* Haupt-Panels folgen überall derselben Innenkante. */
.panel {
    padding: var(--layout-panel-padding);
}

.panel-header {
    gap: var(--space-4);
    padding-bottom: var(--space-4);
}

/* Große Layout-Grids */
.status-grid,
.dashboard-grid,
.dashboard-main-grid,
.account-grid,
.user-admin-grid,
.user-security-grid,
.group-overview-grid,
.group-settings-grid,
.care-alarm-page-grid,
.support-home-grid,
.support-detail-layout,
.support-admin-detail-layout,
.project-lead-module-grid,
.media-gallery-grid,
.media-review-list,
.media-library-grid,
.album-grid,
.portal-branding-grid {
    gap: var(--layout-grid-gap);
}

.status-grid,
.dashboard-main-grid {
    margin-bottom: var(--layout-section-gap);
}

.status-card,
.group-admin-card,
.group-brand-card,
.media-toggle-card,
.calendar-editor-info,
.calendar-editor-status-card,
.portal-branding-preview {
    padding: var(--layout-card-padding);
}

/* Formulare */
.account-form,
.group-appearance-form,
.calendar-editor-form,
.album-editor-form,
.media-upload-form,
.portal-branding-form {
    gap: var(--space-5);
}

.form-grid,
.calendar-form-grid,
.group-adjustment-grid,
.support-admin-compose-grid,
.album-direct-upload-grid {
    gap: var(--space-4);
}

.form-field,
.calendar-form-field,
.group-adjustment-grid label {
    gap: var(--layout-field-gap);
}

.form-actions {
    padding-top: var(--space-5);
}

/* Filterbereiche in Verwaltung und Gruppenverwaltung */
.user-filter-form,
.group-filter-form {
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding: var(--space-5);
}

.user-filter-actions,
.group-card-actions,
.media-card-actions,
.album-view-actions,
.calendar-response-actions,
.calendar-editor-status-actions,
.group-settings-heading-actions,
.group-brand-dialog-footer,
.group-settings-form-footer {
    gap: var(--space-2);
}

/* Tabs / Bereichsnavigation */
.user-admin-tabs,
.group-settings-tabs,
.legal-document-tabs {
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.group-settings-tabs {
    margin-top: 0;
}

/* Gruppenverwaltung */
.group-card-body {
    padding: var(--layout-card-padding);
}

.group-card-body > p {
    margin: var(--space-4) 0;
}

.group-card-actions {
    margin-top: var(--space-4);
}

.group-settings-section-panel {
    padding: var(--layout-panel-padding);
}

.group-branding-panel,
.group-module-settings-panel {
    gap: var(--space-5);
}

.group-module-compact-form {
    gap: var(--space-5);
    margin-top: var(--space-5);
}

.group-member-add-form {
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.group-member-list {
    gap: var(--space-3);
}

.group-member-card {
    gap: var(--space-3);
    padding: var(--space-4);
}

/* Mediathek und Alben */
.media-library-toolbar {
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.media-card-body {
    gap: var(--space-3);
    padding: var(--space-4);
}

.media-review-actions {
    gap: var(--space-3);
    padding-top: var(--space-4);
}

.album-card-body {
    gap: var(--space-3);
    padding: var(--space-4);
}

.album-content-grid {
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.album-view-heading {
    gap: var(--space-3);
    padding: var(--layout-panel-padding);
}

.album-section-heading {
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

/* Kalender */
.calendar-toolbar {
    gap: var(--space-5);
    padding: var(--space-5) var(--space-6);
}

.calendar-event-list,
.calendar-editor-form {
    padding: var(--layout-panel-padding);
}

.calendar-event-card {
    gap: var(--space-4);
    margin-top: var(--space-3);
    padding: var(--space-4);
}

.calendar-form-grid {
    margin-top: var(--space-5);
}

/* Support und Inhaltsmodule */
.support-ticket-column,
.support-thread,
.support-sidebar,
.support-ticket-list,
.support-notification-list,
.support-event-list,
.group-content-list,
.care-alarm-list {
    gap: var(--space-4);
}

.group-content-card-header,
.rule-card-header,
.care-alarm-card-header {
    gap: var(--space-4);
}

.group-content-actions {
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
}

/* Einstellungen / Branding */
.portal-branding-panel {
    gap: var(--space-5);
}

.portal-branding-panel-header {
    gap: var(--space-4);
}

.portal-branding-help {
    gap: var(--space-3);
    padding: var(--space-4);
}

.portal-branding-remove-form {
    padding-top: var(--space-5);
}

/* Meldungen haben überall dieselbe Außenkante. */
.account-message,
.login-message {
    margin-bottom: var(--space-5);
}

/* Tablet */
@media (max-width: 820px) {
    :root {
        --layout-content-padding: 24px 18px;
        --layout-panel-padding: 20px;
        --layout-card-padding: 18px;
    }

    .page-heading,
    .media-page-heading,
    .group-settings-page-heading {
        margin-bottom: var(--space-5);
    }

    .group-settings-tabs {
        margin-bottom: var(--space-4);
    }
}

/* Smartphone */
@media (max-width: 560px) {
    :root {
        --layout-content-padding: 20px 14px;
        --layout-panel-padding: 18px;
        --layout-card-padding: 16px;
        --layout-grid-gap: 16px;
    }

    .page-heading,
    .media-page-heading,
    .group-settings-page-heading {
        gap: var(--space-4);
        margin-bottom: var(--space-4);
    }

    .status-grid,
    .dashboard-main-grid {
        margin-bottom: var(--space-4);
    }

    .user-filter-form,
    .group-filter-form {
        margin-bottom: var(--space-4);
        padding: var(--space-4);
    }

    .calendar-toolbar,
    .calendar-event-list,
    .calendar-editor-form,
    .album-view-heading,
    .group-settings-section-panel {
        padding: var(--layout-panel-padding);
    }
}


/* Alpha 0.7.2 – Dashboard-Abstände konsistent */
.dashboard-page-heading {
    margin-bottom: 24px;
}

.dashboard-main-group-card,
.dashboard-main-group-empty {
    margin-bottom: 24px;
}

.dashboard-calendar-panel {
    margin-top: 0;
    margin-bottom: 24px;
}

.dashboard-calendar-panel .panel-header {
    margin-bottom: 20px;
}

.dashboard-calendar-panel .dashboard-empty-state,
.dashboard-calendar-panel .dashboard-calendar-list {
    margin-top: 0;
}

.dashboard-status-grid {
    margin-top: 0;
    margin-bottom: 24px;
}

.dashboard-main-grid {
    margin-bottom: 24px;
}

.dashboard-changelog-panel {
    margin-top: 0;
}

@media (max-width: 760px) {
    .dashboard-page-heading,
    .dashboard-main-group-card,
    .dashboard-main-group-empty,
    .dashboard-calendar-panel,
    .dashboard-status-grid,
    .dashboard-main-grid {
        margin-bottom: 20px;
    }

    .dashboard-calendar-panel .panel-header {
        margin-bottom: 16px;
    }
}

/* Alpha 0.7.8 – App-Update-Einstellungen */
.app-update-heading {
    margin-top: 24px;
}

.app-update-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
    gap: 24px;
    align-items: start;
}

.app-update-panel,
.app-update-form {
    display: grid;
    gap: 20px;
    align-content: start;
}

.app-update-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.app-update-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 18px;
    border: 1px solid var(--line, #d9e1e8);
    border-radius: 14px;
}

.app-update-switch-row > span {
    display: grid;
    gap: 4px;
}

.app-update-switch-row small {
    color: var(--muted, #6c7a87);
}

.app-update-switch-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary, #47a1dd);
}

@media (max-width: 900px) {
    .app-update-grid,
    .app-update-columns {
        grid-template-columns: 1fr;
    }
}

/* Alpha 0.7.8 – Systemstatus */
.system-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.system-health-wide {
    grid-column: 1 / -1;
}

.system-health-limits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-health-note {
    margin: 16px 0 0;
    color: var(--muted, #6c7a87);
}

@media (max-width: 900px) {
    .system-health-grid,
    .system-health-limits {
        grid-template-columns: 1fr;
    }

    .system-health-wide {
        grid-column: auto;
    }
}

/* Alpha 0.7.9 – Seitenmenü 2.0 mit globaler Gruppenfläche */
.sidebar {
    padding: 16px 14px;
}

.brand {
    gap: 11px;
    padding: 3px 7px 12px;
    border-bottom: 0;
}

.brand > div:last-child {
    min-width: 0;
}

.brand strong {
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-group-switcher {
    padding: 4px 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.portal-group-switcher-label,
.navigation-section-label {
    padding: 0 9px 6px;
    color: rgba(175, 189, 201, .72);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-group-switcher-form {
    margin: 0;
}

.portal-group-switcher-card {
    --group-logo-background: #172431;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 64px;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.portal-group-switcher-form:hover .portal-group-switcher-card {
    border-color: rgba(71, 161, 221, .32);
    background: rgba(255, 255, 255, .065);
}

.portal-group-switcher-logo {
    display: grid;
    width: 42px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    color: #fff;
    background: var(--group-logo-background);
    font-size: .75rem;
    font-weight: 900;
}

.portal-group-switcher-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portal-group-switcher-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.portal-group-switcher-copy strong,
.portal-group-switcher-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-group-switcher-copy strong {
    color: #fff;
    font-size: .88rem;
    font-weight: 750;
}

.portal-group-switcher-copy small {
    color: rgba(175, 189, 201, .78);
    font-size: .69rem;
}

.portal-group-switcher-copy select {
    width: 100%;
    min-width: 0;
    padding: 0 22px 0 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font: inherit;
    font-size: .88rem;
    font-weight: 750;
    cursor: pointer;
    appearance: none;
}

.portal-group-switcher-copy select option {
    color: #172431;
    background: #fff;
}

.portal-group-switcher-icon {
    color: var(--primary);
    font-size: 20px;
    pointer-events: none;
}

.portal-group-switch-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.portal-group-switcher-form.is-switching {
    opacity: .7;
    pointer-events: none;
}

.navigation {
    padding-top: 12px;
}

.selected-group-navigation {
    margin: 12px 0 7px;
    padding: 11px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.selected-group-navigation-links {
    display: grid;
    gap: 2px;
}

.sidebar .selected-group-navigation .group-module-nav-link,
.sidebar .selected-group-navigation .nav-link {
    min-height: 40px;
    gap: 10px;
    padding: 8px 11px;
    border-radius: 11px;
    color: var(--sidebar-text);
    font-size: .89rem;
}

.sidebar .selected-group-navigation .group-module-nav-link:hover,
.sidebar .selected-group-navigation .nav-link:hover {
    color: #fff;
    background: var(--sidebar-hover);
}

.sidebar .selected-group-navigation .group-module-nav-link.is-active,
.sidebar .selected-group-navigation .nav-link.is-active {
    color: #fff;
    background: rgba(71, 161, 221, .22);
    box-shadow: inset 3px 0 0 var(--primary);
}

.sidebar .selected-group-navigation .group-module-nav-link > .material-symbols-rounded,
.sidebar .selected-group-navigation .nav-link > .material-symbols-rounded {
    color: currentColor;
}

.selected-group-navigation .group-nav-subheading {
    margin: 10px 9px 3px;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: rgba(175, 189, 201, .66);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
}

/* Alte Mehrgruppen-Blöcke werden in 0.7.9 nicht mehr verwendet. */
.nav-section-static.single-group-nav {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

@media (max-width: 760px) {
    .sidebar {
        padding: 14px 12px;
    }

    .portal-group-switcher-card {
        min-height: 68px;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        padding: 10px;
    }

    .portal-group-switcher-logo {
        width: 44px;
        height: 44px;
    }
}

/* ======================================================================
   Alpha 0.8.0 – Portal Einfach + Dashboard 2.0
   Ruhige, große und verständliche Oberfläche für Kinder, Senioren und
   ungeübte Nutzer. Bestehende Detailmodule bleiben kompatibel.
   ====================================================================== */

.portal-simple-shell {
    grid-template-columns: 280px minmax(0, 1fr);
}

.simple-sidebar {
    padding: 18px 14px;
}

.simple-brand {
    position: relative;
    min-height: 64px;
    padding: 4px 6px 16px;
}

.simple-brand > div:last-of-type {
    min-width: 0;
}

.simple-brand strong {
    font-size: 1.04rem;
}

.simple-brand > div:last-of-type > span {
    overflow: hidden;
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.simple-sidebar-close {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.simple-group-switcher {
    padding-top: 12px;
    padding-bottom: 14px;
}

.simple-group-switcher .portal-group-switcher-label {
    padding-bottom: 8px;
    font-size: .7rem;
}

.simple-group-switcher .portal-group-switcher-card {
    min-height: 70px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 11px;
    border-radius: 15px;
}

.simple-group-switcher .portal-group-switcher-logo {
    width: 46px;
    height: 46px;
}

.simple-group-switcher .portal-group-switcher-copy strong,
.simple-group-switcher .portal-group-switcher-copy select {
    font-size: .94rem;
}

.simple-group-switcher .portal-group-switcher-copy small {
    font-size: .75rem;
}

.portal-group-switch-submit-noscript {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--primary-dark);
    font-weight: 800;
}

.simple-navigation {
    display: grid;
    align-content: start;
    gap: 5px;
    padding-top: 14px;
}

.simple-navigation .simple-nav-link {
    min-height: 50px;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 13px;
    color: #c4d0da;
    font-size: .98rem;
    font-weight: 700;
}

.simple-navigation .simple-nav-link > .material-symbols-rounded {
    width: 26px;
    flex: 0 0 26px;
    font-size: 25px;
    text-align: center;
}

.simple-navigation .simple-nav-link.is-active {
    color: #fff;
    background: rgba(71, 161, 221, .22);
    box-shadow: inset 4px 0 0 var(--primary);
}

.simple-navigation .simple-nav-link:hover {
    color: #fff;
    background: var(--sidebar-hover);
}

.simple-nav-divider {
    height: 1px;
    margin: 10px 8px;
    background: rgba(255, 255, 255, .09);
}

.simple-navigation .simple-nav-emergency {
    margin-top: 5px;
    color: #ffd5d7;
    background: rgba(214, 75, 82, .12);
}

.simple-navigation .simple-nav-emergency:hover,
.simple-navigation .simple-nav-emergency.is-active {
    color: #fff;
    background: rgba(214, 75, 82, .28);
    box-shadow: inset 4px 0 0 var(--danger);
}

.simple-sidebar-footer {
    margin-top: 16px;
}

.simple-sidebar-footer .sidebar-user {
    padding: 10px 8px 12px;
}

.simple-sidebar-footer .logout-link {
    min-height: 48px;
    font-weight: 700;
}

.simple-topbar {
    min-height: 72px;
    padding: 0 28px;
}

.simple-topbar .topbar-heading strong {
    font-size: 1.05rem;
}

.simple-topbar .topbar-heading span {
    font-size: .8rem;
}

.topbar-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    text-decoration: none;
}

.topbar-account-link:focus-visible {
    outline: 3px solid rgba(71, 161, 221, .35);
    outline-offset: 3px;
}

.simple-content {
    width: min(1180px, 100%);
    padding: 34px;
}

/* Seitenköpfe der neuen Sammelbereiche */
.simple-page-heading,
.simple-dashboard-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.simple-page-heading h1,
.simple-dashboard-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.simple-page-heading p,
.simple-dashboard-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.6;
}

.simple-page-icon {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    place-items: center;
    border-radius: 18px;
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .13);
    font-size: 34px;
}

.simple-dashboard-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Sammelseiten */
.simple-hub-section {
    margin-top: 34px;
}

.simple-hub-section > h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

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

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

.simple-hub-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 112px;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 9px 28px rgba(20, 40, 58, .06);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.simple-hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(71, 161, 221, .42);
    box-shadow: 0 14px 34px rgba(20, 40, 58, .10);
}

.simple-hub-card:focus-visible {
    outline: 3px solid rgba(71, 161, 221, .28);
    outline-offset: 3px;
}

.simple-hub-card > .material-symbols-rounded:first-child {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 15px;
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .12);
    font-size: 29px;
}

.simple-hub-card > .material-symbols-rounded:last-child {
    color: var(--muted);
    font-size: 26px;
}

.simple-hub-card strong,
.simple-hub-card small {
    display: block;
}

.simple-hub-card strong {
    margin-bottom: 6px;
    font-size: 1.04rem;
    line-height: 1.3;
}

.simple-hub-card small {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}

.simple-hub-card.is-primary {
    border-color: rgba(71, 161, 221, .35);
    background: linear-gradient(135deg, rgba(71, 161, 221, .12), #fff 62%);
}

.simple-group-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.simple-group-summary-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: var(--primary-dark);
    font-weight: 900;
}

.simple-group-summary strong,
.simple-group-summary span {
    display: block;
}

.simple-group-summary strong {
    font-size: 1.05rem;
}

.simple-group-summary span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .9rem;
}

.simple-empty-state {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
    border: 1px dashed var(--border);
    border-radius: 16px;
    color: var(--muted);
    background: var(--surface-muted);
}

.simple-empty-state > .material-symbols-rounded {
    font-size: 32px;
}

.simple-empty-state strong,
.simple-empty-state span {
    display: block;
}

.simple-empty-state strong {
    color: var(--text);
    margin-bottom: 4px;
}

/* Dashboard 2.0 – keine Schnellaktionen, keine Versions-/Statuskarten */
.simple-dashboard-section {
    margin-top: 30px;
}

.simple-dashboard-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.simple-dashboard-section-title > .material-symbols-rounded {
    color: var(--primary-dark);
    font-size: 27px;
}

.simple-dashboard-section-title h2 {
    margin: 0;
    font-size: 1.25rem;
}

.simple-dashboard-card {
    border: 1px solid var(--border);
    border-radius: 19px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(20, 40, 58, .065);
}

.simple-next-event {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 24px;
}

.simple-event-date {
    display: grid;
    min-height: 78px;
    place-items: center;
    align-content: center;
    border-radius: 17px;
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .12);
}

.simple-event-date strong {
    font-size: 2rem;
    line-height: 1;
}

.simple-event-date span {
    margin-top: 4px;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.simple-event-copy h3,
.simple-announcement-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.simple-event-copy p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 5px 0;
    color: var(--muted);
    line-height: 1.5;
}

.simple-event-copy p .material-symbols-rounded {
    font-size: 19px;
}

.simple-event-time {
    color: var(--text) !important;
    font-weight: 700;
}

.simple-response-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
    color: var(--muted);
    font-size: .9rem;
}

.simple-response-summary strong {
    color: var(--text);
}

.simple-dashboard-action {
    min-height: 48px;
    white-space: nowrap;
}

.simple-announcement-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 24px;
}

.simple-announcement-card p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.65;
}

.simple-news-list {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.simple-news-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 88px;
    gap: 14px;
    padding: 18px 20px;
    color: var(--text);
    text-decoration: none;
}

.simple-news-row:hover:not(.is-done) {
    background: var(--surface-muted);
}

.simple-news-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: var(--primary-dark);
    background: rgba(71, 161, 221, .12);
}

.simple-news-row.is-done .simple-news-icon {
    color: var(--success);
    background: rgba(39, 151, 104, .10);
}

.simple-news-copy strong,
.simple-news-copy small {
    display: block;
}

.simple-news-copy strong {
    margin-bottom: 4px;
    font-size: 1rem;
}

.simple-news-copy small {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.45;
}

.simple-task-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 20px;
    color: var(--text);
    text-decoration: none;
}

.simple-task-count {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: var(--warning);
    font-size: 1.35rem;
    font-weight: 900;
}

.simple-task-copy strong,
.simple-task-copy small {
    display: block;
}

.simple-task-copy strong {
    margin-bottom: 4px;
}

.simple-task-copy small {
    color: var(--muted);
}

.simple-dashboard-empty-inline,
.simple-dashboard-empty-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
}

.simple-dashboard-empty-inline > .material-symbols-rounded,
.simple-dashboard-empty-card > .material-symbols-rounded {
    color: var(--primary-dark);
    font-size: 34px;
}

.simple-dashboard-empty-inline strong,
.simple-dashboard-empty-inline span,
.simple-dashboard-empty-card strong,
.simple-dashboard-empty-card span {
    display: block;
}

.simple-dashboard-empty-inline span,
.simple-dashboard-empty-card p {
    margin: 4px 0 0;
    color: var(--muted);
}

/* Grundsätzlich größere, freundlichere Bedienelemente. */
.simple-content button,
.simple-content .primary-button,
.simple-content .secondary-button {
    min-height: 46px;
}

.simple-content input:not([type="checkbox"]):not([type="radio"]),
.simple-content select,
.simple-content textarea {
    min-height: 46px;
    font-size: 1rem;
}

@media (max-width: 980px) {
    .portal-simple-shell {
        display: block;
    }

    .simple-sidebar {
        position: fixed;
        z-index: 80;
        top: 0;
        left: 0;
        width: min(330px, calc(100vw - 34px));
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 18px 0 46px rgba(0, 0, 0, .25);
    }

    .simple-sidebar.is-mobile-open {
        transform: translateX(0);
    }

    .simple-sidebar-close {
        display: grid;
    }

    .mobile-menu {
        display: grid;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        z-index: 70;
        inset: 0;
        background: rgba(5, 12, 19, .56);
    }
}

@media (max-width: 760px) {
    .simple-content {
        padding: 22px 16px 34px;
    }

    .simple-topbar {
        min-height: 66px;
        padding: 0 15px;
    }

    .simple-page-heading,
    .simple-dashboard-heading {
        align-items: flex-start;
        margin-bottom: 22px;
    }

    .simple-page-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 16px;
        font-size: 30px;
    }

    .simple-page-heading h1,
    .simple-dashboard-heading h1 {
        font-size: 2rem;
    }

    .simple-hub-grid,
    .simple-hub-grid-compact {
        grid-template-columns: 1fr;
    }

    .simple-hub-card {
        min-height: 104px;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        padding: 17px;
    }

    .simple-next-event {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 16px;
        padding: 19px;
    }

    .simple-event-date {
        min-height: 68px;
    }

    .simple-dashboard-action {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .simple-announcement-card {
        grid-template-columns: 1fr;
        padding: 19px;
    }

    .simple-news-row {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        min-height: 84px;
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .simple-hub-card,
    .simple-sidebar {
        transition: none;
    }
}

/* Alpha 0.8.3 – Dashboard Termine */

.simple-dashboard-event-list {
    display: grid;
    gap: 14px;
}

.simple-my-response {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: .84rem;
}

.simple-my-response .material-symbols-rounded {
    font-size: 18px;
}

.simple-my-response.is-yes {
    background: rgba(76, 175, 80, .12);
}

.simple-my-response.is-no {
    background: rgba(244, 67, 54, .12);
}

.simple-my-response.is-open {
    background: rgba(255, 255, 255, .06);
}



/* ==========================================================
   Alpha 0.8.3
   Dashboard – größere Terminbuttons + Neu gelesen
   ========================================================== */


/*
 * Termin ansehen
 */
.simple-next-event .simple-dashboard-action {
    min-width: 190px;
    min-height: 54px;
    padding: 14px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    border-radius: 14px;
    white-space: nowrap;
}


/*
 * Neu für dich – Album mit Aktion
 */
.simple-news-row-with-action {
    display: flex;
    align-items: center;
    gap: 14px;
}

.simple-news-open {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;

    color: inherit;
    text-decoration: none;
}

.simple-news-open .simple-news-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.simple-news-chevron {
    flex: 0 0 auto;
}

.simple-news-read-form {
    flex: 0 0 auto;
    margin: 0;
}

.simple-news-read-button {
    min-height: 42px;
    padding: 9px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border: 1px solid
        rgba(35, 132, 199, .24);
    border-radius: 12px;

    background:
        rgba(35, 132, 199, .08);

    color: inherit;

    font: inherit;
    font-size: .84rem;
    font-weight: 750;

    cursor: pointer;
}

.simple-news-read-button:hover {
    background:
        rgba(35, 132, 199, .15);
}

.simple-news-read-button
.material-symbols-rounded {
    font-size: 19px;
}


/*
 * Mobile
 */
@media (max-width: 720px) {

    .simple-next-event
    .simple-dashboard-action {
        width: 100%;
        min-width: 0;
        min-height: 52px;
    }

    .simple-news-row-with-action {
        align-items: stretch;
        flex-direction: column;
    }

    .simple-news-read-form {
        width: 100%;
    }

    .simple-news-read-button {
        width: 100%;
    }
}

/* Sihu21TV Datei Arbeitstage 0.8.6 */
.gf-breadcrumbs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 14px}.gf-breadcrumbs a,.gf-back{display:inline-flex;align-items:center;gap:5px;color:inherit;text-decoration:none}.gf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.gf-search{display:flex;align-items:center;gap:8px;flex:1;min-width:240px}.gf-search input{width:100%}.gf-actions{display:flex;gap:8px;flex-wrap:wrap}.gf-list{display:grid;gap:9px}.gf-row{display:flex;align-items:center;min-height:72px;border:1px solid #d9e2e9;border-radius:15px;background:#fff}.gf-main{display:flex;align-items:center;gap:13px;flex:1;min-width:0;padding:13px 15px;color:inherit;text-decoration:none}.gf-icon{display:grid;place-items:center;width:45px;height:45px;flex:0 0 45px;border-radius:12px;background:#eaf5fc;color:#2588c6}.gf-copy{display:grid;gap:3px;min-width:0}.gf-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gf-copy small{color:#66788a}.gf-download{display:grid;place-items:center;width:45px;height:45px;color:inherit;text-decoration:none}.gf-menu{position:relative;margin-right:7px}.gf-menu>summary{display:grid;place-items:center;width:44px;height:44px;cursor:pointer;list-style:none}.gf-menu>summary::-webkit-details-marker{display:none}.gf-menu-card{position:absolute;right:0;z-index:30;width:min(320px,calc(100vw - 30px));padding:14px;background:#fff;border:1px solid #d9e2e9;border-radius:15px;box-shadow:0 18px 45px rgba(30,55,75,.17)}.gf-menu-card form,.wd-form{display:grid;gap:10px;margin:6px 0}.gf-menu-card label,.gf-dialog label,.wd-form label{display:grid;gap:5px}.gf-empty,.wd-empty{padding:42px;text-align:center}.gf-empty>.material-symbols-rounded,.wd-empty>.material-symbols-rounded{font-size:52px;color:#7d91a2}.gf-dialog{width:min(560px,calc(100% - 26px));border:1px solid #d9e2e9;border-radius:20px;background:#fff;color:#17212b;padding:0}.gf-dialog::backdrop{background:rgba(17,29,39,.55)}.gf-dialog>form{padding:22px;display:grid;gap:14px}.gf-dialog footer{display:flex;justify-content:flex-end;gap:8px}.gf-editor{display:grid;gap:16px}.gf-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.gf-editor-head h1{margin:7px 0 2px}.gf-editor-head p{margin:0;color:#66788a}.gf-presence{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.gf-person{padding:7px 10px;border-radius:999px;background:#eaf5fc;font-size:.8rem}.gf-editor-tools{display:flex;gap:5px;flex-wrap:wrap;padding:8px;border:1px solid #d9e2e9;border-radius:13px;background:#fff}.gf-editor-tools button{min-width:40px;min-height:38px;border:1px solid #d9e2e9;border-radius:8px;background:#f7fafc;cursor:pointer}.gf-text-editor{min-height:600px;padding:45px clamp(22px,7vw,82px);border:1px solid #d9e2e9;border-radius:16px;background:#fff;color:#17212b;line-height:1.65;outline:none}.gf-text-editor table{width:100%;border-collapse:collapse}.gf-text-editor td,.gf-text-editor th{border:1px solid #aeb8c0;padding:8px}.gf-sheet{overflow:auto;border:1px solid #d9e2e9;border-radius:14px;background:#fff}.gf-sheet-table{border-collapse:collapse;min-width:100%}.gf-sheet-table td{min-width:150px;border:1px solid #d9e2e9;padding:0}.gf-sheet-table input{width:100%;min-height:42px;border:0;border-radius:0;padding:7px 9px;background:#fff}.gf-history summary{display:flex;align-items:center;gap:6px;cursor:pointer;font-weight:700}.gf-history details>div{display:grid;gap:7px;margin-top:12px}.gf-history article{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #e4ebf0}.gf-history article>span{display:grid}.gf-history small{color:#66788a}.gf-conflict{position:fixed;right:18px;bottom:18px;z-index:100;width:min(420px,calc(100% - 36px));padding:17px;border-radius:14px;background:#fff4df;border:1px solid #e8c47d;box-shadow:0 18px 45px rgba(30,55,75,.2)}.gf-conflict strong,.gf-conflict span{display:block;margin-bottom:8px}
.wd-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}.wd-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 18px}.wd-tabs a{padding:10px 14px;border-radius:11px;color:inherit;text-decoration:none;background:#fff;border:1px solid #d9e2e9;font-weight:700}.wd-tabs a.is-active{background:#2588c6;color:#fff;border-color:#2588c6}.wd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:14px}.wd-event-card header,.wd-open-event>header,.wd-plan>header,.wd-planner>header,.wd-plan-position>header,.wd-planning-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.wd-event-card h2,.wd-open-event h2{margin:5px 0}.wd-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eaf5fc;color:#217db8;font-size:.78rem;font-weight:800}.wd-progress{display:flex;gap:14px;flex-wrap:wrap;margin:14px 0}.wd-event-card footer{display:flex;gap:8px;justify-content:flex-end}.wd-list{display:grid;gap:12px}.wd-myday{display:flex;gap:18px;align-items:center}.wd-date{display:grid;place-items:center;width:72px;height:72px;border-radius:15px;background:#eaf5fc;color:#2588c6}.wd-date strong{font-size:1.7rem}.wd-date small{font-weight:800}.wd-confirmed{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:#eaf7ef;color:#257a48;font-weight:700;font-size:.84rem}.wd-open-event{margin-bottom:14px}.wd-position-list{display:grid;gap:8px}.wd-position-list>article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid #e0e8ee;border-radius:13px}.wd-position-list h3{margin:0 0 4px}.wd-position-list p{margin:0 0 3px}.wd-plans{display:grid;gap:14px}.wd-plan-person{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #e6edf2}.wd-plan-select{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.wd-plan-select>span:nth-child(2){display:grid;flex:1}.wd-management-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}.wd-planning-head{margin:6px 0 14px}.wd-plan-position{padding:15px 0;border-top:1px solid #e0e8ee}.wd-assigned{display:grid;gap:7px;margin:10px 0}.wd-assigned>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 11px;background:#f6f9fb;border-radius:10px}.wd-assigned>div>span{display:grid}.wd-assigned small{color:#66788a}.wd-assign{display:flex;gap:8px;margin:10px 0}.wd-assign select{flex:1}.wd-signups{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.wd-signups span{padding:6px 9px;border-radius:999px;background:#eef3f6}.wd-form textarea{min-height:90px}
@media(max-width:760px){.gf-toolbar,.gf-editor-head,.wd-heading,.wd-position-list>article,.wd-plan-person{align-items:stretch;flex-direction:column}.gf-actions>*{flex:1}.gf-presence{justify-content:flex-start}.gf-text-editor{min-height:480px;padding:22px 16px}.wd-management-grid{grid-template-columns:1fr}.wd-assign{flex-direction:column}.wd-myday{align-items:flex-start}}
