@import url("dropdown-pfeile.css?v=20261019-plan-arrow");

/* Short and long pages share the same content width during navigation. */
html { scrollbar-gutter: stable; }

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #171717;
    background: #f7f7f7;
}

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

.login {
    width: min(320px, calc(100% - 48px));
}

.login h1 {
    margin: 0 0 32px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.login form {
    display: grid;
    gap: 12px;
}

.login input {
    width: 100%;
    height: 48px;
    padding: 0 14px;

    border: 1px solid #ccc;
    border-radius: 8px;

    background: #fff;
    font: inherit;
    font-size: 18px;
}

.login input:focus {
    outline: 2px solid #222;
    outline-offset: 1px;
}

.login button {
    height: 48px;

    border: 0;
    border-radius: 8px;

    background: #8B0801;
    color: #fff;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
}

.login-error {
    margin: 8px 0 0;
    font-size: 14px;
    color: #b42318;
}

.app-header {
    height: 64px;
    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #ddd;
    background: #fff;
}

.app-header a {
    color: inherit;
}

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    gap: 16px;
    margin-top: 32px;
}

.action-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.action-card:hover {
    border-color: #999;
}

.action-card-title {
    font-weight: 650;
}

.action-card-text {
    color: #666;
    font-size: 14px;
}

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

.page-heading h1 {
    margin: 10px 0 4px;
}

.page-heading p {
    margin: 0;
    color: #666;
}

.back-link {
    color: #555;
    font-size: 14px;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.data-table th,
.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.data-table th {
    background: #fafafa;
    font-size: 13px;
    font-weight: 650;
}

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

.notice {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.notice-error {
    border-color: #e2b8b5;
    color: #8f1f17;
}

@media (max-width: 640px) {
    .app-header {
        padding: 0 20px;
    }

    .dashboard {
        padding: 32px 20px;
    }

    .header-nav {
        gap: 12px;
        font-size: 14px;
    }
}

.brand { font-weight: 700; text-decoration: none; }
.header-nav a { text-decoration: none; color: #555; }
.header-nav a:hover, .header-nav a.active { color: #171717; }
.header-nav a.active { font-weight: 650; }
.sort-link { color: inherit; text-decoration: none; display: block; }
.sort-link:hover { text-decoration: underline; }
.actions-col { text-align: right !important; }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; }
.icon-button { border: 1px solid #d8d8d8; background: #fff; border-radius: 7px; padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.icon-button:hover { background: #f3f3f3; }
.icon-button.danger { color: #a52219; }
.empty-cell { color: #666; text-align: center !important; padding: 32px !important; }
.notice { margin-bottom: 20px; }
.notice-success { border-color: #b9d6c2; color: #226536; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; font-size: 14px; }
.pagination a { color: inherit; }
.modal { border: 0; padding: 0; border-radius: 14px; width: min(620px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.modal::backdrop { background: rgba(0,0,0,.42); backdrop-filter: blur(2px); }
.modal-card { padding: 24px; }
.modal-card-small { max-width: 460px; }
.modal-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.modal-head h2 { margin: 0 0 5px; font-size: 21px; }
.modal-head p { margin: 0; color: #666; font-size: 14px; }
.close-button { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: #666; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.form-grid input { width: 100%; height: 42px; border: 1px solid #ccc; border-radius: 8px; padding: 0 11px; font: inherit; font-weight: 400; }
.form-grid input:focus { outline: 2px solid #222; outline-offset: 1px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.button { border: 0; border-radius: 8px; padding: 10px 15px; background: #8B0801; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.button.secondary { background: #ededed; color: #171717; }
/* Als Buttons gestaltete Links bleiben in allen Zuständen ohne Unterstreichung. */
:is(.button, .icon-button, .close-button, .wa-btn),
:is(.button, .icon-button, .close-button, .wa-btn):is(:link, :visited, :hover, :focus, :active) { text-decoration: none; }
.button.danger-button { background: #a52219; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .row-actions { flex-direction: column; } }

/* Seitennavigation der Tabellen */
.pagination { gap: 6px; }
.page-link { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ddd; border-radius: 8px; background: #fff; color: #333 !important; text-decoration: none; }
.page-link:hover { background: #f3f3f3; text-decoration: none; }
.page-link.active { background: #8B0801; border-color: #8B0801; color: #fff !important; }
.page-ellipsis { min-width: 28px; text-align: center; color: #777; }

/* GG next Farbwelt */
:root {
    --gg-primary: #8B0801;
    --gg-primary-hover: #8B0801;
    --gg-primary-soft: #f6eeee;
    --gg-primary-soft-alt: #fbf8f8;
    --gg-primary-border: #ddc9c8;
}

/* Hauptfarbe der App */
.login input:focus,
.form-grid input:focus {
    outline-color: var(--gg-primary);
}

.login button,
.button,
.page-link.active {
    background: var(--gg-primary);
    border-color: var(--gg-primary);
}

.login button:hover,
.button:hover {
    background: var(--gg-primary-hover);
}

.brand,
.header-nav a:hover,
.header-nav a.active,
.back-link:hover,
.sort-link:hover {
    color: var(--gg-primary);
}

.action-card:hover {
    border-color: var(--gg-primary);
}

/* Kompaktere Lehrertabelle */
.data-table th,
.data-table td {
    padding: 8px 14px;
}

.data-table tbody tr:nth-child(odd) td {
    background: var(--gg-primary-soft-alt);
}

.data-table tbody tr:nth-child(even) td {
    background: var(--gg-primary-soft);
}

.data-table tbody tr:hover td {
    background: #efe3e2;
}

.data-table th {
    background: #f1e8e7;
    border-bottom-color: var(--gg-primary-border);
}

.icon-button {
    padding: 5px 9px;
}

.page-link:hover {
    background: var(--gg-primary-soft);
    border-color: var(--gg-primary-border);
}

/* Werkzeugleiste oberhalb der Lehrertabelle */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.table-toolbar .pagination { margin-top: 0; justify-content: flex-start; }
.readonly-input { background: var(--gg-primary-soft); color: #615352; }
@media (max-width: 640px) {
    .table-toolbar { align-items: flex-start; flex-direction: column-reverse; }
    .top-pagination-slot { width: 100%; overflow-x: auto; }
}

.password-cell,

/* Login-Inszenierung */
.login-page {
    background: #f8f4f4;
    overflow: hidden;
}

.login-stage {
    width: min(720px, calc(100vw - 40px));
}

.login-shell {
    position: relative;
    width: 100%;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border-radius: 24px;
    object-fit: cover;
    transition: transform .85s cubic-bezier(.22, .8, .25, 1);
    will-change: transform;
}

.login-content {
    position: absolute;
    left: calc(50% - 205px);
    width: 410px;
    height: 52px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.login-stage.is-shifted .login-logo,
.login-stage-ready .login-logo {
    transform: translateX(-266px);
}

.login-stage.is-shifted .login-content,
.login-stage-ready .login-content {
    opacity: 1;
}

.login-wordmark,
.login-form {
    position: absolute;
    inset: 0;
}

.login-wordmark {
    display: flex;
    align-items: center;
    font-size: 31px;
    font-weight: 650;
    letter-spacing: -0.035em;
    color: #211817;
    opacity: 1;
    transition: opacity .4s ease, transform .5s ease;
}

.login-cursor {
    width: 2px;
    height: 34px;
    margin-left: 4px;
    background: var(--gg-primary);
    opacity: 0;
}

.login-stage.is-typing .login-cursor {
    opacity: 1;
    animation: gg-cursor .72s steps(1, end) infinite;
}

.login-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px;
    align-items: center;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .55s ease, transform .55s ease;
}

.login-input-wrap,
.login-form input {
    width: 100%;
}

.login-form input {
    height: 48px;
    padding: 0 15px;
    border: 1px solid var(--gg-primary-border);
    border-radius: 12px;
    background: #fff;
    color: #211817;
    font: inherit;
    font-size: 16px;
    box-shadow: 0 7px 20px rgba(139,8,1, .06);
}

.login-form input::placeholder {
    color: #796665;
    opacity: 1;
}

.login-form input:focus {
    outline: 2px solid var(--gg-primary);
    outline-offset: 2px;
}

.login-form button {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--gg-primary);
    color: #fff;
    font: inherit;
    font-size: 21px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.login-form button:hover {
    background: var(--gg-primary-hover);
    transform: translateX(2px);
}

.login-stage.is-form .login-wordmark,
.login-stage-ready .login-wordmark {
    opacity: 0;
    transform: translateY(-8px);
}

.login-stage.is-form .login-form,
.login-stage-ready .login-form {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.login-stage.is-form .login-cursor,
.login-stage-ready .login-cursor {
    animation: none;
    opacity: 0;
}

.login-error {
    position: absolute;
    top: 60px;
    left: 0;
    margin: 0;
    color: #a52219;
    font-size: 14px;
}

@keyframes gg-cursor {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

@media (max-width: 680px) {
    .login-stage {
        width: calc(100vw - 32px);
    }

    .login-stage.is-shifted .login-logo,
    .login-stage-ready .login-logo {
        transform: translate(-1px, -76px);
    }

    .login-content {
        left: 0;
        top: 106px;
        width: 100%;
    }

    .login-wordmark {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-logo,
    .login-content,
    .login-wordmark,
    .login-form,
    .login-form button {
        transition: none !important;
        animation: none !important;
    }
}

/* Login v12 – zarter und näher an der Referenz */
.login-stage {
    width: min(590px, calc(100vw - 40px));
}

.login-shell {
    min-height: 76px;
}

.login-logo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 20px;
}

.login-content {
    left: calc(50% - 154px);
    width: 308px;
    height: 44px;
}

.login-stage.is-shifted .login-logo,
.login-stage-ready .login-logo {
    transform: translateX(-204px);
}

.login-wordmark {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.login-cursor {
    height: 29px;
    margin-left: 3px;
}

.login-form {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
}

.login-form input {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #cfbab9;
    border-radius: 11px;
    font-size: 15px;
    box-shadow: 0 5px 14px rgba(139,8,1, .035);
    outline: none;
}

.login-form input:focus {
    border-color: var(--gg-primary);
    outline: none;
    box-shadow: 0 0 0 1px rgba(139,8,1, .10);
}

.login-form button {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    font-size: 18px;
    font-weight: 400;
}

.login-error {
    top: 54px;
    font-size: 13px;
}

@media (max-width: 680px) {
    .login-stage.is-shifted .login-logo,
    .login-stage-ready .login-logo {
        transform: translate(-1px, -66px);
    }

    .login-content {
        top: 94px;
        width: min(308px, 100%);
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Login v13 – Wortmarke bleibt stehen, Formular fadet darunter ein */
.login-shell {
    min-height: 104px;
}

.login-logo {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    border-radius: 21px;
}

.login-content {
    left: calc(50% - 154px);
    width: 308px;
    height: 94px;
}

.login-stage.is-shifted .login-logo,
.login-stage-ready .login-logo {
    transform: translateX(-207px);
}

.login-wordmark {
    inset: 0 auto auto 0;
    height: 44px;
    opacity: 1;
    transform: translateY(0);
    transition: transform .9s cubic-bezier(.22,.8,.25,1), opacity .5s ease;
}

.login-form {
    inset: 0;
    top: 50px;
    height: 44px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.35s ease, transform 1.35s cubic-bezier(.22,.8,.25,1);
}

.login-stage.is-form .login-wordmark,
.login-stage-ready .login-wordmark {
    opacity: 1;
    transform: translateY(-50px);
}

.login-stage.is-form .login-form,
.login-stage-ready .login-form {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.login-stage.is-form .login-cursor,
.login-stage-ready .login-cursor {
    animation: none;
    opacity: 0;
}

.login-error {
    top: 100px;
}

@media (max-width: 680px) {
    .login-shell { min-height: 180px; }

    .login-stage.is-shifted .login-logo,
    .login-stage-ready .login-logo {
        transform: translate(-1px, -72px);
    }

    .login-content {
        top: 104px;
        height: 94px;
    }

    .login-stage.is-form .login-wordmark,
    .login-stage-ready .login-wordmark {
        transform: translateY(-50px);
    }
}

/* Login v14 – Wortmarke bleibt sichtbar, ruhiger Übergang */
.login-shell {
    min-height: 126px;
}

.login-content {
    top: 50%;
    height: 100px;
    transform: translateY(-22px);
}

.login-wordmark {
    top: 0;
    bottom: auto;
    height: 44px;
    transform: translateY(0);
    transition: transform 1.25s cubic-bezier(.22,.8,.25,1), opacity .5s ease;
}

.login-form {
    top: 0;
    bottom: auto;
    height: 44px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 2.8s ease .35s, transform 2.4s cubic-bezier(.22,.8,.25,1) .2s;
}

.login-stage.is-form .login-wordmark,
.login-stage-ready .login-wordmark {
    opacity: 1;
    transform: translateY(-38px);
}

.login-stage.is-form .login-form,
.login-stage-ready .login-form {
    opacity: 1;
    transform: translateY(20px);
    pointer-events: auto;
}

@media (max-width: 680px) {
    .login-shell { min-height: 210px; }

    .login-content {
        top: 112px;
        height: 100px;
        transform: translateX(-50%);
    }

    .login-stage.is-form .login-wordmark,
    .login-stage-ready .login-wordmark {
        opacity: 1;
        transform: translateY(-34px);
    }

    .login-stage.is-form .login-form,
    .login-stage-ready .login-form {
        transform: translateY(20px);
    }
}

/* Login v15 – Desktop: Logo rahmt Wortmarke + Eingabe vertikal ein */
@media (min-width: 681px) {
    .login-shell {
        min-height: 82px;
    }

    .login-logo {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
        border-radius: 22px;
    }

    .login-content {
        top: 50%;
        left: calc(50% - 154px);
        width: 308px;
        height: 82px;
        transform: translateY(-50%);
    }

    .login-stage.is-shifted .login-logo,
    .login-stage-ready .login-logo {
        transform: translateX(-211px);
    }

    .login-wordmark {
        top: 0;
        height: 32px;
        align-items: flex-start;
    }

    .login-form {
        top: auto;
        bottom: 0;
        height: 44px;
        transform: translateY(8px);
    }

    .login-stage.is-form .login-wordmark,
    .login-stage-ready .login-wordmark {
        opacity: 1;
        transform: translateY(0);
    }

    .login-stage.is-form .login-form,
    .login-stage-ready .login-form {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .login-error {
        top: 90px;
    }
}

/* Passwort sichtbar/unsichtbar */
.login-input-wrap {
    position: relative;
}

.login-form input {
    padding-right: 46px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    padding: 0 !important;
    border: 0;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--gg-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%) !important;
    box-shadow: none !important;
}

.login-password-toggle:hover {
    background: rgba(139,8,1, .07) !important;
    transform: translateY(-50%) !important;
}

.login-password-toggle svg {
    width: 19px;
    height: 19px;
    display: block;
}

.login-submit-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.login-submit-arrow span {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

/* Login v16 – Wortmarke startet mittig und Mobile sauber geordnet */
@media (min-width: 681px) {
    .login-wordmark {
        top: 19px;
        height: 44px;
        align-items: center;
        font-size: 25px;
        font-weight: 600;
        transform: translateY(0);
    }

    .login-cursor {
        height: 26px;
    }

    .login-stage.is-form .login-wordmark,
    .login-stage-ready .login-wordmark {
        transform: translateY(-19px);
    }
}

@media (max-width: 680px) {
    .login-stage {
        width: min(360px, calc(100vw - 28px));
    }

    .login-shell {
        min-height: 224px;
        display: block;
    }

    .login-logo {
        position: absolute;
        top: 0;
        left: 50%;
        width: 78px;
        height: 78px;
        transform: translateX(-50%);
    }

    .login-stage.is-shifted .login-logo,
    .login-stage-ready .login-logo {
        transform: translateX(-50%);
    }

    .login-content {
        top: 96px;
        left: 50%;
        width: 100%;
        height: 112px;
        transform: translateX(-50%);
        opacity: 0;
    }

    .login-stage.is-shifted .login-content,
    .login-stage-ready .login-content {
        opacity: 1;
    }

    .login-wordmark {
        top: 20px;
        left: 0;
        width: 100%;
        height: 44px;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        font-weight: 600;
        transform: translateY(0);
    }

    .login-cursor {
        height: 25px;
    }

    .login-form {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 44px;
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 9px;
        transform: translateY(8px);
    }

    .login-stage.is-form .login-wordmark,
    .login-stage-ready .login-wordmark {
        transform: translateY(-20px);
    }

    .login-stage.is-form .login-form,
    .login-stage-ready .login-form {
        transform: translateY(0);
    }

    .login-error {
        top: 118px;
        width: 100%;
        text-align: center;
    }
}

/* Login v17 – optische Zentrierung + rahmenloses Eingabefeld */
.login-form input {
    border: 0;
    outline: none;
    background: #fff;
    box-shadow: 0 3px 12px rgba(139,8,1, .075);
}

.login-form input:focus {
    border: 0;
    outline: none;
    box-shadow: 0 4px 15px rgba(139,8,1, .12);
}

@media (min-width: 681px) {
    /* Wortmarke + Eingabe als Einheit optisch etwas höher zum Logo ausrichten. */
    .login-content {
        transform: translateY(calc(-50% - 3px));
    }
}

/* Login v18 – feinere Proportionen */
@media (min-width: 681px) {
    .login-shell {
        min-height: 88px;
    }

    .login-logo {
        width: 88px;
        height: 88px;
        flex-basis: 88px;
        border-radius: 23px;
    }

    .login-wordmark {
        font-size: 23px;
    }

    /* Endposition nur einen Tick höher als in v17. */
    .login-content {
        transform: translateY(calc(-50% - 5px));
    }
}

@media (max-width: 680px) {
    .login-logo {
        width: 82px;
        height: 82px;
        border-radius: 22px;
    }

    .login-wordmark {
        font-size: 22px;
    }
}


/* Login v19 – ohne Placeholder, kompakteres Kennwortfeld */
@media (min-width: 681px) {
    .login-form {
        width: 276px;
    }
}

@media (max-width: 680px) {
    .login-form {
        width: calc(100% - 28px);
        left: 14px;
    }
}

/* Schüler & Kurse */
.students-courses-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; align-items:start; }
.management-panel { min-width:0; }
.panel-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 0 10px; }
.panel-head h2 { margin:0; font-size:19px; }
.panel-count { color:#706868; font-size:13px; }
.compact-table th,.compact-table td { padding:9px 11px; font-size:13px; }
.import-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 24px; padding:14px 16px; border:1px solid var(--gg-primary-border); border-radius:10px; background:var(--gg-primary-soft-alt); }
.import-bar form { display:flex; align-items:end; gap:10px; flex-wrap:wrap; }
.import-bar label { display:grid; gap:5px; font-size:12px; font-weight:650; }
.import-bar input[type="text"],.import-bar input[type="file"] { max-width:260px; min-height:38px; padding:7px 9px; border:1px solid #d5cccc; border-radius:8px; background:#fff; font:inherit; }
.import-help { max-width:430px; margin:0; color:#706868; font-size:13px; line-height:1.45; }
@media (max-width:900px) { .students-courses-grid { grid-template-columns:1fr; } .import-bar { align-items:flex-start; flex-direction:column; } }

/* Schüler & Kurse v21 */
.import-bar select,.period-filter select { min-height:38px; padding:7px 30px 7px 9px; border:1px solid #d5cccc; border-radius:8px; background:#fff; font:inherit; }
.period-filter { display:flex; align-items:end; gap:10px; margin:0 0 18px; flex-wrap:wrap; }
.period-filter label { display:grid; gap:5px; font-size:12px; font-weight:650; }
.table-search { display:flex; align-items:center; gap:7px; margin:0 0 9px; min-height:38px; }
.table-search input[type="search"] { width:min(260px,100%); min-width:0; height:36px; padding:7px 10px; border:1px solid #ddd4d3; border-radius:8px; background:#fff; font:inherit; }
.table-search button { height:36px; padding:0 11px; border:0; border-radius:8px; background:var(--gg-primary); color:#fff; cursor:pointer; }
.table-search a { color:var(--gg-primary); font-size:12px; text-decoration:none; }
.sort-link { color:inherit; text-decoration:none; display:block; }
.sort-link:hover { color:var(--gg-primary); }
.mini-pagination { display:flex; align-items:center; gap:4px; min-height:31px; margin:5px 0 9px; flex-wrap:wrap; }
.mini-pagination a,.mini-pagination span { min-width:27px; height:27px; display:inline-flex; align-items:center; justify-content:center; padding:0 6px; border-radius:7px; color:#605352; text-decoration:none; font-size:12px; }
.mini-pagination a:hover,.mini-pagination .active { background:var(--gg-primary); color:#fff; }
@media (max-width:680px){ .table-search { flex-wrap:wrap; } .table-search input[type="search"] { flex:1 1 180px; } }

/* KL/TUT-Zuordnung nach LUSD-Import */
.assignment-backdrop { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:20px; background:rgba(139,8,1,.34); backdrop-filter:blur(2px); }
.assignment-dialog { width:min(680px,100%); max-height:min(760px,90vh); overflow:auto; background:#fff; border-radius:16px; box-shadow:0 22px 70px rgba(139,8,1,.20); padding:20px; }
.assignment-dialog-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:14px; }
.assignment-dialog-head h2 { margin:0 0 4px; font-size:21px; }
.assignment-dialog-head p { margin:0; color:#706868; font-size:13px; }
.dialog-close { border:0; background:transparent; color:#706766; font-size:27px; line-height:1; cursor:pointer; padding:0 4px; }
.assignment-list { display:grid; gap:8px; }
.assignment-row { display:grid; grid-template-columns:minmax(150px,.8fr) minmax(260px,1.2fr); align-items:center; gap:14px; padding:10px 12px; border-radius:10px; background:var(--gg-primary-soft-alt); }
.assignment-row span { display:grid; gap:2px; }
.assignment-row small { color:#706868; font-weight:400; }
.assignment-row select { width:100%; min-height:39px; padding:7px 30px 7px 9px; border:1px solid #d5cccc; border-radius:8px; background:#fff; font:inherit; }
.assignment-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:16px; }
.button-secondary { background:#f2eded; color:#423635; }
@media (max-width:620px){ .assignment-row { grid-template-columns:1fr; gap:7px; } .assignment-actions { flex-direction:column-reverse; } .assignment-actions .button { width:100%; } }

/* Unterricht & Stundenplan */
.schedule-import-card { display:grid; grid-template-columns:minmax(240px,.75fr) minmax(520px,1.25fr); gap:28px; align-items:start; margin:0 0 30px; padding:20px; border:1px solid var(--gg-primary-border); border-radius:12px; background:var(--gg-primary-soft-alt); }
.schedule-import-card h2 { margin:0 0 7px; font-size:19px; }
.schedule-import-card p { margin:0; color:#706868; font-size:13px; line-height:1.5; }
.schedule-import-form { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.schedule-import-form label { display:grid; gap:5px; font-size:12px; font-weight:650; }
.schedule-import-form input,.schedule-import-form select { width:100%; min-height:40px; padding:7px 9px; border:1px solid #d5cccc; border-radius:8px; background:#fff; font:inherit; }
.schedule-import-form label:last-of-type { grid-column:1 / -1; }
.schedule-import-form .button { grid-column:1 / -1; justify-self:start; }
.schedule-import-form .button:disabled { opacity:.45; cursor:not-allowed; }
.schedule-history { margin-top:10px; }
@media (max-width:900px){ .schedule-import-card { grid-template-columns:1fr; } }
@media (max-width:620px){ .schedule-import-form { grid-template-columns:1fr; } .schedule-import-form label:last-of-type,.schedule-import-form .button { grid-column:auto; } }

/* Lehrerbereich v23.9 */
.teacher-dashboard-actions { max-width:420px; }
.teacher-schedule-wrap { overflow-x:auto; margin-top:18px; border:1px solid #c4b9b8; border-radius:3px; background:#fff; }
.teacher-schedule { width:100%; min-width:760px; border-collapse:collapse; table-layout:fixed; }
.teacher-schedule th,.teacher-schedule td { border-right:1px solid #8B0801; border-bottom:1px solid #e9e7e7; padding:0; vertical-align:middle; }
.teacher-schedule thead th { height:36px; background:var(--gg-primary); color:#fff; font-size:14px; font-weight:700; text-align:center; }
.teacher-schedule th:first-child { width:62px; text-align:center; }
.teacher-schedule tbody th { background:#fff; color:#8d1717; font-size:15px; font-weight:500; }
.teacher-schedule tbody tr:nth-child(even) th,.teacher-schedule tbody tr:nth-child(even) td { background:#f0f1f1; }
.teacher-schedule tbody td { height:34px; padding:4px 8px; }
.teacher-schedule tbody>tr:last-child>* { border-bottom:0; }
.teacher-schedule tr>*:last-child { border-right:0; }
.schedule-lesson { display:flex; align-items:baseline; gap:5px; min-height:24px; padding:1px 0; background:transparent; font-size:14px; line-height:1.25; white-space:nowrap; }
.schedule-lesson + .schedule-lesson { margin-top:2px; }
.schedule-lesson .lesson-main { color:#8d1717; font-weight:500; }
.schedule-lesson .lesson-room { color:#222; font-size:13px; }
@media (max-width:680px){ .teacher-schedule { min-width:690px; } .teacher-schedule tbody td { padding:4px 6px; } .schedule-lesson { font-size:13px; } }

/* Lehrer-Stundenplan v23.10 */
.teacher-schedule-wrap { overflow-x:auto; margin-top:18px; border:1px solid #ddd5d5; border-radius:12px; background:#fff; box-shadow:0 8px 24px rgba(139,8,1,.06); }
.teacher-schedule { width:100%; min-width:780px; border-collapse:separate; border-spacing:0; table-layout:fixed; }
.teacher-schedule th,.teacher-schedule td { border:0; border-right:1px solid #e5dfdf; border-bottom:1px solid #ece8e8; vertical-align:middle; }
.teacher-schedule thead th { height:42px; padding:0 10px; background:#8B0801; color:#fff; font-size:14px; font-weight:700; text-align:center; }
.teacher-schedule thead th:first-child { border-top-left-radius:11px; }
.teacher-schedule thead th:last-child { border-top-right-radius:11px; }
.teacher-schedule th:first-child { width:58px; text-align:center; }
.teacher-schedule tbody th { height:48px; padding:0 8px; background:#faf8f8; color:#413534; font-size:14px; font-weight:700; }
.teacher-schedule tbody td { height:48px; padding:5px 9px; background:#fff; }
.teacher-schedule tbody tr:nth-child(even) th,.teacher-schedule tbody tr:nth-child(even) td { background:#f7f5f5; }
.teacher-schedule tr>*:last-child { border-right:0; }
.teacher-schedule tbody>tr:last-child>* { border-bottom:0; }
.schedule-lesson { display:flex; align-items:baseline; justify-content:center; gap:5px; min-height:24px; padding:1px 2px; font-size:14px; line-height:1.25; white-space:nowrap; }
.schedule-lesson + .schedule-lesson { margin-top:2px; padding-top:3px; border-top:1px dashed #dfd7d7; }
.schedule-lesson .lesson-main { color:#8B0801; font-weight:700; }
.schedule-lesson .lesson-room { color:#726766; font-size:12px; font-weight:500; }
@media (max-width:680px){ .teacher-schedule { min-width:700px; } .teacher-schedule tbody td { padding:4px 6px; } .schedule-lesson { font-size:13px; } }

/* Lehrer-Stundenplan v23.11 – Wochenraster nach Referenz */
.teacher-schedule-wrap{overflow-x:auto;margin-top:18px;padding:8px;background:#f2eeee;border:1px solid #e3dbdb;border-radius:12px;box-shadow:none;-webkit-overflow-scrolling:touch}
.teacher-schedule{width:100%;min-width:760px;border-collapse:separate;border-spacing:7px 6px;table-layout:fixed;background:transparent}
.teacher-schedule th,.teacher-schedule td{border:0!important}
.teacher-schedule thead th{height:42px;padding:0 12px;background:#fff;color:#8B0801;border-radius:8px!important;text-align:left;font-size:12px;white-space:nowrap}
.teacher-schedule thead th:not(:first-child){box-shadow:0 0 0 1px #e6e1e1 inset}
.teacher-schedule .schedule-week{width:52px;background:transparent;color:#afa3a2;font-size:10px;text-align:center;padding:0}
.teacher-schedule .day-short{font-size:11px;font-weight:800;text-transform:uppercase;margin-right:7px;color:#615352}
.teacher-schedule .day-date{font-size:18px;font-weight:800;margin-right:5px;color:#8B0801}
.teacher-schedule .day-month{font-size:11px;font-weight:500;color:#938887}
.teacher-schedule tbody th{width:52px;height:auto;padding:0;background:transparent!important;color:#8B0801;text-align:left;vertical-align:top}
.teacher-schedule .lesson-time{padding-top:10px}
.teacher-schedule .lesson-time strong{display:block;font-size:16px;line-height:1.1}
.teacher-schedule .lesson-time span,.pause-row th span{display:block;font-size:9px;font-weight:500;line-height:1.25;color:#705958}
.teacher-schedule tbody td{position:relative;height:68px;padding:9px 11px;background:#fbf9f9!important;border:1px dashed #dfd6d5!important;border-radius:8px;vertical-align:top}
.teacher-schedule tbody td:has(.schedule-lesson){background:#e8dddc!important;border:1px solid #b78986!important}
.schedule-lesson{display:grid;grid-template-columns:7px minmax(0,1fr) auto;align-items:center;justify-content:stretch;gap:5px;min-height:18px;padding:0;font-size:12px;line-height:1.2;white-space:normal}
.schedule-lesson+.schedule-lesson{margin-top:4px;padding-top:4px;border-top:1px solid rgba(139,8,1,.14)}
.schedule-lesson .lesson-dot{width:7px;height:7px;border-radius:50%;background:#8B0801}
.schedule-lesson .lesson-main{overflow:hidden;color:#8B0801;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.schedule-lesson .lesson-room{padding:1px 5px;border-radius:4px;background:rgba(255,255,255,.75);color:#635251;font-size:9px;font-weight:600;white-space:nowrap}
.free-lesson{color:#b2a8a7;font-size:10px}
.pause-row th{height:22px;padding-top:1px;vertical-align:top}
.pause-row th strong{display:block;font-size:9px;line-height:1.1}
.teacher-schedule .pause-row td{height:20px;padding:0;background:transparent!important;border:1px solid #e4dcdc!important;border-radius:6px}
@media(max-width:680px){
 .dashboard{padding-left:10px;padding-right:10px}
 .teacher-schedule-wrap{margin-left:-4px;margin-right:-4px;padding:4px;border-radius:9px}
 .teacher-schedule{min-width:0;border-spacing:3px 4px}
 .teacher-schedule .schedule-week{width:35px}
 .teacher-schedule thead th{height:38px;padding:4px;text-align:center}
 .teacher-schedule .day-short{display:block;margin:0;font-size:10px}
 .teacher-schedule .day-date{font-size:13px;margin:0}
 .teacher-schedule .day-month{display:none}
 .teacher-schedule tbody th{width:35px}
 .teacher-schedule .lesson-time{padding-top:7px}
 .teacher-schedule .lesson-time strong{font-size:13px}
 .teacher-schedule .lesson-time span{font-size:7px}
 .teacher-schedule tbody td{height:58px;padding:5px 4px}
 .schedule-lesson{grid-template-columns:5px minmax(0,1fr);gap:3px;font-size:10px}
 .schedule-lesson .lesson-dot{width:5px;height:5px}
 .schedule-lesson .lesson-room{grid-column:2;padding:0;background:transparent;font-size:8px}
 .free-lesson{font-size:8px}
 .pause-row th strong{font-size:7px}.pause-row th span{font-size:7px}
 .teacher-schedule .pause-row td{height:14px}
}

/* v23.12 – kompakter statischer Lehrer-Stundenplan */
.teacher-schedule .schedule-week{width:34px!important}
.teacher-schedule .day-name{display:block;font-size:13px;font-weight:800;color:#8B0801;text-align:center}
.teacher-schedule .lesson-time{padding-top:10px!important;text-align:center!important}
.teacher-schedule .lesson-time strong{font-size:15px!important}
.teacher-schedule .pause-row th{height:14px!important;padding:0!important}
.teacher-schedule .pause-row td{height:14px!important}
@media (max-width:680px){
 .teacher-schedule-wrap{overflow-x:hidden!important}
 .teacher-schedule{width:100%!important;min-width:0!important;border-spacing:2px 4px!important}
 .teacher-schedule .schedule-week{width:24px!important}
 .teacher-schedule thead th{height:34px!important;padding:2px!important}
 .teacher-schedule .day-name{font-size:10px!important;letter-spacing:-.2px}
 .teacher-schedule tbody th{width:24px!important}
 .teacher-schedule .lesson-time{padding-top:6px!important}
 .teacher-schedule .lesson-time strong{font-size:12px!important}
 .teacher-schedule tbody td{height:54px!important;padding:4px 3px!important}
 .teacher-schedule .pause-row th,.teacher-schedule .pause-row td{height:10px!important}
}
@media (max-width:430px){
 .teacher-schedule .day-name{font-size:9px!important;letter-spacing:-.45px}
 .teacher-schedule .schedule-week{width:20px!important}
 .teacher-schedule tbody th{width:20px!important}
 .teacher-schedule .lesson-time strong{font-size:11px!important}
 .teacher-schedule tbody td{padding:3px 2px!important}
}


/* v23.13 – kompakter Lehrer-Stundenplan */
.teacher-schedule tbody td{height:46px!important;padding:5px 8px!important}
.schedule-lesson{min-height:16px!important}
.schedule-lesson .lesson-main{font-weight:400!important}
.free-lesson{display:none!important}
@media (max-width:680px){
 .teacher-schedule tbody td{height:42px!important;padding:3px 2px!important}
 .schedule-lesson{min-height:14px!important;font-size:9.5px!important}
 .schedule-lesson .lesson-main{font-weight:400!important}
 .schedule-lesson .lesson-room{font-size:7.5px!important}
}
@media (max-width:430px){
 .teacher-schedule tbody td{height:39px!important;padding:2px 1px!important}
}

/* v23.14 – noch flacherer Lehrer-Stundenplan */
.teacher-schedule tbody td{height:38px!important;padding:3px 6px!important}
.schedule-lesson{min-height:13px!important;line-height:1.1!important}
.schedule-lesson+.schedule-lesson{margin-top:2px!important;padding-top:2px!important}
@media (max-width:680px){
 .teacher-schedule tbody td{height:34px!important;padding:2px 2px!important}
 .schedule-lesson{min-height:12px!important;line-height:1.05!important}
}
@media (max-width:430px){
 .teacher-schedule tbody td{height:32px!important;padding:1px!important}
}

/* v23.15 – Unterrichtsblöcke eng am Inhalt */
.teacher-schedule tbody td{height:24px!important;min-height:0!important;padding:3px 6px!important}
.schedule-lesson{min-height:0!important;line-height:1.05!important}
.schedule-lesson+.schedule-lesson{margin-top:2px!important;padding-top:2px!important}
@media (max-width:680px){
 .teacher-schedule tbody td{height:22px!important;min-height:0!important;padding:2px 2px!important}
 .schedule-lesson{min-height:0!important;line-height:1!important}
}
@media (max-width:430px){
 .teacher-schedule tbody td{height:20px!important;padding:2px 1px!important}
}


/* v23.16 – ausgewogene Blockhöhe, ohne Punkt, normale Schrift */
.teacher-schedule tbody td{height:32px!important;min-height:0!important;padding:4px 7px!important}
.schedule-lesson{grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important;min-height:0!important;line-height:1.15!important}
.schedule-lesson .lesson-main{font-weight:400!important}
.schedule-lesson .lesson-room{font-weight:400!important}
.schedule-lesson .lesson-dot{display:none!important}
@media (max-width:680px){
 .teacher-schedule tbody td{height:30px!important;padding:3px 3px!important}
 .schedule-lesson{grid-template-columns:minmax(0,1fr) auto!important;gap:3px!important;line-height:1.1!important}
 .schedule-lesson .lesson-main{font-weight:400!important}
}
@media (max-width:430px){
 .teacher-schedule tbody td{height:28px!important;padding:3px 2px!important}
}

/* v23.19 – Admin: Kollegen-Stundenpläne durchblättern */
.colleague-browser{margin-top:22px}
.preview-meta{margin:3px 0 0;color:#786766;font-size:13px}
.colleague-nav{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;align-items:center;gap:12px;margin:14px 0 8px}
.colleague-nav .button{min-width:42px;padding:8px 12px;text-align:center;text-decoration:none}
.colleague-nav .disabled{opacity:.35;pointer-events:none}
.colleague-name{text-align:center;display:flex;flex-direction:column;gap:2px}
.colleague-name strong{font-size:16px;font-weight:600;color:#8B0801}
.colleague-name span{font-size:12px;color:#817271}
.admin-preview{margin-top:8px}
@media(max-width:680px){
 .colleague-nav{grid-template-columns:38px minmax(0,1fr) 38px;gap:6px}
 .colleague-nav .button{min-width:38px;padding:7px 8px}
 .colleague-name strong{font-size:14px}
}

/* v23.20 – Unterlängen vollständig sichtbar, ohne die Blöcke zu vergrößern */
.schedule-lesson{line-height:1.3!important;overflow:visible!important}
.schedule-lesson .lesson-main{line-height:1.3!important;overflow:visible!important;text-overflow:clip!important}
@media(max-width:680px){.schedule-lesson,.schedule-lesson .lesson-main{line-height:1.25!important}}

/* v23.21 – Lehrersuche in der Admin-Stundenplannavigation */
.colleague-search{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:12px 0 2px}
.colleague-search label{font-size:12px;color:#786766}
.colleague-search input{width:min(260px,100%);padding:7px 10px;border:1px solid #dfd5d4;border-radius:8px;background:#fff;color:#8B0801;font:inherit;font-size:13px}
@media(max-width:680px){.colleague-search{justify-content:stretch}.colleague-search label{display:none}.colleague-search input{width:100%}}


/* v23.23 – Stundenzeilen ungefähr zweizeilig */
.teacher-schedule tbody td{height:46px!important;min-height:46px!important;padding:5px 7px!important}
.schedule-lesson{min-height:16px!important;line-height:1.3!important}
.schedule-lesson+.schedule-lesson{margin-top:2px!important;padding-top:2px!important}
@media(max-width:680px){
 .teacher-schedule tbody td{height:42px!important;min-height:42px!important;padding:4px 3px!important}
 .schedule-lesson{min-height:15px!important;line-height:1.25!important}
}
@media(max-width:430px){
 .teacher-schedule tbody td{height:40px!important;min-height:40px!important;padding:3px 2px!important}
}

/* v23.26 – Diagnose */
.diag-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 12px}.diag-summary>div{padding:14px 16px;background:#fff;border:1px solid #e5dcdc;border-radius:10px}.diag-summary strong{display:block;font-size:24px;color:#8B0801}.diag-summary span{font-size:12px;color:#796968}.diag-period{margin:8px 0 16px;color:#685453}.diag-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-bottom:16px}.diag-card{padding:13px 14px;border:1px solid #e5dcdc;border-radius:10px;background:#fff}.diag-card.is-ok{background:#faf5f5}.diag-card.is-error{background:#fff8f5;border-color:#ead8cf}.diag-head{display:flex;align-items:center;gap:8px}.diag-state{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#efe3e2;color:#8B0801;font-weight:700}.is-error .diag-state{background:#f4dfd5;color:#8b4a2f}.diag-card p{margin:7px 0 0;color:#796968;font-size:13px}.diag-details{margin:10px 0;background:#fff;border:1px solid #e5dcdc;border-radius:10px;overflow:hidden}.diag-details summary{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer}.diag-details summary span{color:#796968;font-size:12px}.diag-details>p{padding:0 14px 12px}.diag-details .table-wrap{margin:0;border:0;border-top:1px solid #f1eded;border-radius:0}.diag-note{margin-top:16px;padding:12px 14px;background:#f5eeee;border-radius:9px;color:#685453;font-size:12px}@media(max-width:680px){.diag-summary{grid-template-columns:1fr 1fr 1fr;gap:5px}.diag-summary>div{padding:10px}.diag-summary strong{font-size:20px}.diag-grid{grid-template-columns:1fr}.diag-details summary{padding:10px}}

/* Diagnose v23.31 – konkrete Fehlerdetails */
.diag-card.is-error{cursor:pointer}.diag-card.is-error:hover{border-color:#d8b9aa}.diag-card.is-error a{color:#8b4a2f;text-decoration:underline}.diag-error-details{border-color:#ead8cf}.diag-conflict{display:flex;flex-direction:column;gap:4px;padding:10px 14px;border-top:1px solid #f1eded}.diag-conflict strong{font-size:13px}.diag-conflict span{font-size:12px;color:#796968}@media(max-width:680px){.diag-conflict{padding:9px 10px}}
/* Diagnose v23.35 – Hinweise sichtbar und eindeutig */
.diag-card.is-hint{background:#fffaf1;border-color:#ead8b8;cursor:pointer}
.diag-card.is-hint .diag-state{background:#f4e7cf;color:#8a5b16}
.diag-hint-grid{margin-top:12px}

/* v24.8 – zentrale Hamburger-Navigation */
.app-header-menu{justify-content:space-between;position:relative;z-index:50}
.app-header-left{display:flex;align-items:center;gap:14px}
.hamburger-menu{position:relative}
.hamburger-menu summary{list-style:none}
.hamburger-menu summary::-webkit-details-marker{display:none}
.hamburger-button{width:40px;height:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #e2d9d8;border-radius:9px;background:#fff;cursor:pointer}
.hamburger-button span{display:block;width:19px;height:2px;border-radius:2px;background:#8B0801}
.hamburger-menu[open] .hamburger-button{background:#f5eeee;border-color:#d5bab9}
.hamburger-panel{position:absolute;top:48px;left:0;width:245px;padding:9px;background:#fff;border:1px solid #e2d9d8;border-radius:12px;box-shadow:0 14px 34px rgba(139,8,1,.14);display:flex;flex-direction:column;gap:2px}
.hamburger-panel a{padding:10px 12px;border-radius:8px;text-decoration:none;color:#312524;font-size:15px}
.hamburger-panel a:hover,.hamburger-panel a.active{background:#f6eded;color:#6D0601}
.hamburger-panel a.active{font-weight:700}
.hamburger-separator{height:1px;background:#ece5e5;margin:7px 5px}
.hamburger-caption{padding:2px 12px 5px;color:#817675;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em}
@media(max-width:640px){.hamburger-panel{position:fixed;top:58px;left:12px;right:12px;width:auto}}

/* v24.9 – Dashboard-Schnellzugriff */
.header-dashboard-link{margin-left:auto;text-decoration:none;font-weight:650;color:#312524;padding:9px 12px;border-radius:8px}
.header-dashboard-link:hover{background:#f6eded;color:#6D0601}


/* v25.1 – Header: Version und schneller Logout */
.app-header-right{margin-left:auto;display:flex;align-items:center;gap:5px}
.app-header-right .header-dashboard-link{margin-left:0}
.header-version{font-size:10px;font-weight:650;line-height:1;color:#908281;white-space:nowrap;padding:4px 2px}
.header-logout-button{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;color:#635453;text-decoration:none}
.header-logout-button:hover{background:#f6eded;color:#6D0601}
.header-logout-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:480px){.app-header-left{gap:8px}.app-header-right{gap:1px}.header-dashboard-link{padding:8px 6px;font-size:13px}.header-version{font-size:9px}.header-logout-button{width:32px;height:32px}}

/* v25.12 – Vertretungsveröffentlichungen */
.publication-table tr.is-selected td{background:#f6eeee}.publication-link{display:flex;flex-direction:column;gap:2px;color:#6D0601;text-decoration:none}.publication-link strong{font-weight:700}.publication-link span{font-size:11px;color:#817372}.publication-link:hover strong{text-decoration:underline}.substitution-preview{margin-top:24px;padding-top:4px}.substitution-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.substitution-preview-head h2{margin:2px 0 3px;color:#8B0801}.substitution-preview-head p{margin:0;color:#817271;font-size:13px}.eyebrow{font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.08em;color:#8B0801}.publication-badge{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#f6eded;color:#8B0801;font-size:12px;font-weight:700}.substitution-tabs{display:flex;gap:4px;padding:4px;background:#f2eded;border-radius:11px;width:max-content;max-width:100%;margin:10px 0}.substitution-tabs a{display:flex;align-items:center;gap:7px;padding:8px 13px;border-radius:8px;color:#635352;text-decoration:none;font-size:13px;font-weight:700}.substitution-tabs a span{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#e8dfdf;font-size:11px}.substitution-tabs a.active{background:#fff;color:#6D0601;box-shadow:0 1px 2px rgba(139,8,1,.08)}.substitution-tabs a.active span{background:#ecdddc;color:#6D0601}.substitution-explainer{margin:10px 0 15px;color:#796968;font-size:13px}.substitution-groups{display:flex;flex-direction:column;gap:18px}.substitution-group{background:#fff;border:1px solid #e5dcdc;border-radius:11px;overflow:hidden}.substitution-group>header{display:flex;align-items:baseline;gap:8px;padding:11px 14px 8px;background:#faf8f8;border-bottom:1px solid #ece5e5}.substitution-group>header h3{margin:0;color:#8B0801;font-size:17px}.substitution-group>header span{font-size:11px;color:#897c7b}.substitution-list{display:flex;flex-direction:column}.substitution-row{display:grid;grid-template-columns:112px 72px minmax(0,1fr);min-height:40px;border-top:1px solid #f1eded}.substitution-row:first-child{border-top:0}.substitution-row>div{padding:9px 11px}.sub-date,.sub-hour{display:flex;align-items:center;color:#796968;font-size:12px;border-right:1px solid #f1eded}.sub-hour{justify-content:center}.sub-main{display:flex;align-items:center;gap:5px;flex-wrap:wrap;color:#8B0801;font-size:13px}.sub-main strong{color:#6D0601}.sub-teacher,.sub-subject{color:#685453}.sub-origin{font-weight:650;color:#513736}.sub-arrow{color:#ab9b9a}.sub-note{margin-left:5px;padding:2px 7px;border-radius:999px;background:#f5eee2;color:#79581d;font-size:11px;font-weight:700}.sub-cancelled{color:#9a493d!important}.substitution-empty{padding:24px;text-align:center;border:1px dashed #dad0cf;border-radius:10px;color:#817271}.schedule-history+.substitution-preview{margin-top:28px}
@media(max-width:680px){.substitution-preview-head{flex-direction:column;gap:7px}.substitution-tabs{width:100%}.substitution-tabs a{flex:1;justify-content:center;padding:8px 6px}.substitution-row{grid-template-columns:86px 58px minmax(0,1fr)}.substitution-row>div{padding:8px 7px}.sub-main{font-size:12px}.sub-date,.sub-hour{font-size:11px}.publication-table th:nth-child(2),.publication-table td:nth-child(2){display:none}}
@media(max-width:430px){.substitution-row{grid-template-columns:1fr 58px}.sub-date{grid-column:1}.sub-hour{grid-column:2}.sub-main{grid-column:1/-1;border-top:1px solid #f3f0f0}.sub-date,.sub-hour{border-right:0}.sub-hour{border-left:1px solid #f1eded}}

/* v25.12 – Statt-Stunden / technische UNTIS-Verlegungen */
.sub-note-statt{font-weight:700}

/* v25.14 – persönliche und alle Lehrer-Vertretungen */
.personal-substitutions{max-width:1000px}.personal-substitution-list{overflow:hidden;background:#fff;border:1px solid #e5dcdc;border-radius:11px}.personal-substitution-row{display:grid;grid-template-columns:112px 72px 155px minmax(0,1fr);min-height:44px;border-top:1px solid #f1eded}.personal-substitution-row:first-child{border-top:0}.personal-substitution-row>div{padding:10px 11px;display:flex;align-items:center}.personal-substitution-row .sub-date,.personal-substitution-row .sub-hour,.personal-sub-role{border-right:1px solid #f1eded}.personal-sub-role{font-size:12px;font-weight:750}.personal-sub-role.is-cover{color:#8B0801}.personal-sub-role.is-absent{color:#9a493d}.personal-sub-main{gap:5px;flex-wrap:wrap;color:#8B0801;font-size:13px}.personal-sub-main strong{color:#6D0601}.personal-sub-main .sub-note{margin-left:5px}@media(max-width:720px){.personal-substitution-row{grid-template-columns:86px 58px minmax(120px,1fr)}.personal-sub-role{border-right:0}.personal-sub-main{grid-column:1/-1;border-top:1px solid #f3f0f0}.personal-substitution-row>div{padding:8px 7px}}@media(max-width:430px){.personal-substitution-row{grid-template-columns:1fr 58px}.personal-sub-role{grid-column:1/-1;border-top:1px solid #f3f0f0}.personal-sub-main{grid-column:1/-1}}

.personal-sub-heading{margin:28px 0 14px}.personal-sub-heading h2{margin:0;font-size:1.35rem;line-height:1.2}.personal-sub-heading p{margin:6px 0 0;color:var(--muted,#64748b)}.all-sub-heading{margin-top:34px;margin-bottom:14px}

/* v25.17 – einklappbare Gesamtvertretungen und Vertretungsmaterial */
.sub-material-link{display:inline-flex;align-items:center;margin-left:6px;padding:3px 8px;border-radius:7px;background:#f6eded;color:#6D0601;text-decoration:none;font-size:11px;font-weight:750}.sub-material-link:hover{background:#ecdddc}.material-card{max-width:900px;margin:20px auto;padding:26px 28px;background:#fff;border:1px solid #e5dcdc;border-radius:12px}.material-card h1{margin:0 0 6px}.material-meta{margin:0 0 24px;color:#796968}.material-form{display:flex;flex-direction:column;gap:18px}.material-form label{display:flex;flex-direction:column;gap:7px;font-weight:700}.material-form textarea{width:100%;min-height:145px;padding:10px;border:1px solid #c9bebd;border-radius:8px;font:inherit;resize:vertical}.material-form input[type=file]{font-weight:400}.material-form small{color:#796968;font-weight:400}.material-files{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:13px 15px;background:#faf8f8;border-radius:9px}.material-files a{color:#6D0601}.material-files span{color:#685453}.material-hint{padding:15px;background:#faf8f8;border-radius:9px;margin-bottom:16px}.material-hint p{margin:8px 0 0;white-space:normal}.material-actions{display:flex;gap:10px;flex-wrap:wrap}.button-secondary{background:#716868!important;color:#fff!important;text-decoration:none}@media(max-width:600px){.material-card{padding:18px 16px}.material-actions{flex-direction:column}.material-actions .button{width:100%;text-align:center}}

/* v25.17 – Materialaktionen */
.material-file-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid var(--border,#e8e2e2)}
.material-file-row:last-child{border-bottom:0}
.material-delete-button{border:0;background:transparent;color:#a22b20;font:inherit;font-weight:700;cursor:pointer;padding:4px 6px}
.material-delete-button:hover{text-decoration:underline}

/* v26.5 – Materialverwaltung */
.danger-action-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d8a29d;border-radius:8px;background:#fff5f4;color:#9f261c;padding:9px 13px;font:inherit;font-size:13px;font-weight:750;line-height:1.2;cursor:pointer;transition:background .15s,border-color .15s,transform .15s;text-decoration:none}.danger-action-button:hover{background:#fce5e2;border-color:#c96f66}.danger-action-button:active{transform:translateY(1px)}.danger-action-button-small{padding:6px 10px;font-size:12px}.admin-material-card{margin-top:24px;background:#fff;border:1px solid #e5dcdc;border-radius:12px;overflow:hidden}.admin-material-card>.panel-head{padding:18px 20px}.admin-material-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.admin-material-head h2{margin:0}.admin-material-head p{margin:4px 0 0;color:#796968}.material-admin-table form{margin:0}.material-admin-sub{display:block;margin-top:2px;color:#817473;font-size:11px}.material-admin-table td:last-child,.material-admin-table th:last-child{text-align:right}@media(max-width:700px){.admin-material-head{align-items:flex-start;flex-direction:column}.admin-material-head form,.admin-material-head .danger-action-button{width:100%}.material-admin-table td:last-child,.material-admin-table th:last-child{text-align:left}}

/* v26.5 – Aufsichtsvertretungen: offene Abwesenheiten werden in der Verwaltung markiert. */


/* v27.0 – kompakte Aufsichten im persönlichen Lehrerplan */
.teacher-schedule .supervision-row th,.teacher-schedule .supervision-row td{background:#f8f3f3;border-top:1px solid #e4d8d7;border-bottom:1px solid #e4d8d7;height:34px}.teacher-schedule .supervision-time{font-size:.78rem;color:#705452;font-weight:650}.schedule-supervision{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#8B0801;font-size:.86rem}.schedule-supervision .lesson-main{font-weight:700}.supervision-substitution-row .supervision-sub-time{font-size:.82rem;line-height:1.15}

.teacher-schedule .supervision-strip th,.teacher-schedule .supervision-strip td{height:14px;min-height:14px;padding-top:0;padding-bottom:0;line-height:14px;font-size:.72rem;color:#8B0801;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}


/* v27.0 – Kennzeichnung der letzten Raumstunde Mo/Mi/Fr */
.room-last-marker{font-weight:700;margin-left:1px}
.schedule-room-last-hint{margin:6px 0 0;font-size:.78rem;color:var(--muted,#6f605f)}

/* Persönliches Dashboard v27.1 */
.dashboard-home{max-width:1120px;padding-top:34px;padding-bottom:56px}
.dashboard-welcome{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.dashboard-welcome h1{margin:0;font-size:clamp(27px,4vw,38px);letter-spacing:-.035em}.dashboard-welcome p{margin:7px 0 0;color:#706868;font-size:15px}.dashboard-settings-link{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #dfd7d7;border-radius:10px;background:#fff;color:#423635;text-decoration:none;font-size:13px;font-weight:650;white-space:nowrap}.dashboard-settings-link:hover{background:#f6f1f1}.dashboard-settings-link svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dashboard-info{overflow:hidden;margin-bottom:34px;border:1px solid #d4bab9;border-radius:16px;background:#fff;box-shadow:0 8px 28px rgba(139,8,1,.06)}.dashboard-info-head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border:0;background:#f5ebea;color:#8B0801;text-align:left;cursor:pointer}.dashboard-info-head>span{display:grid;gap:2px}.dashboard-info-kicker{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8B0801}.dashboard-info-head strong{font-size:18px}.dashboard-info-head svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .2s}.dashboard-info-body{display:grid;padding:4px 20px 10px}.dashboard-info.is-collapsed .dashboard-info-body{display:none}.dashboard-info.is-collapsed .dashboard-info-head svg{transform:rotate(-90deg)}
.dashboard-news-item{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 2px;border-bottom:1px solid #f0eded;color:inherit;text-decoration:none}.dashboard-news-item:last-child{border-bottom:0}.dashboard-news-item strong,.dashboard-news-item small{display:block}.dashboard-news-item strong{font-size:14px;margin-bottom:3px}.dashboard-news-item small{color:#6d7473;font-size:12.5px;line-height:1.35}.news-dot{width:8px;height:8px;border-radius:50%;background:#8B0801}.news-dot-chat{background:#7d62a8}.news-dot-board{background:#bd7b2b}.news-arrow{font-size:24px;color:#908382}
.dashboard-section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 14px}.dashboard-section-head h2{margin:0;font-size:19px}.dashboard-section-head span{color:#7a8280;font-size:12px;text-align:right}.dashboard-tile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.dashboard-tile{min-height:128px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:13px;padding:18px;border:1px solid #e3dcdc;border-radius:14px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 4px 16px rgba(139,8,1,.035);transition:transform .15s,border-color .15s,box-shadow .15s}.dashboard-tile:hover{transform:translateY(-1px);border-color:#bfafae;box-shadow:0 8px 22px rgba(139,8,1,.07)}.dashboard-tile[hidden]{display:none}.dashboard-tile-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:#f6eded;color:#8B0801}.dashboard-tile-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.dashboard-tile-copy{min-width:0;display:grid;gap:5px}.dashboard-tile-copy strong{font-size:15px}.dashboard-tile-copy small{color:#6d7473;font-size:12.5px;line-height:1.4}.dashboard-tile-arrow{align-self:center;color:#a39a9a;font-size:24px}
.dashboard-settings{max-width:900px;padding-top:34px}.settings-top{margin-bottom:22px}.settings-back{display:inline-flex;gap:5px;margin-bottom:20px;color:#614645;text-decoration:none;font-size:13px;font-weight:650}.settings-top h1{margin:0;font-size:30px;letter-spacing:-.03em}.settings-top p{margin:7px 0 0;color:#706868}.settings-card{border:1px solid #e3dcdc;border-radius:16px;background:#fff;overflow:hidden}.settings-card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #ede8e8}.settings-card-head h2{margin:0 0 3px;font-size:17px}.settings-card-head p{margin:0;color:#737b79;font-size:12px}.settings-reset{border:0;background:transparent;color:#8B0801;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.tile-settings-list{padding:4px 16px}.tile-setting{display:grid;grid-template-columns:24px 38px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:13px 4px;border-bottom:1px solid #f0eded;background:#fff}.tile-setting:last-child{border-bottom:0}.tile-setting.is-dragging{opacity:.45}.tile-drag{color:#a39a9a;font-size:22px;cursor:grab;line-height:1}.tile-setting-copy{display:grid;gap:2px}.tile-setting-copy strong{font-size:14px}.tile-setting-copy small{color:#737b79;font-size:12px}.tile-order-buttons{display:flex;gap:3px}.tile-order-buttons button{width:30px;height:30px;border:1px solid #e3dcdc;border-radius:8px;background:#fff;color:#615150;cursor:pointer}.gg-switch{display:flex;align-items:center;gap:7px;cursor:pointer}.gg-switch input{position:absolute;opacity:0;pointer-events:none}.gg-switch span{width:38px;height:22px;padding:2px;border-radius:20px;background:#d3cbcb;transition:.15s}.gg-switch span:after{content:"";display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.15s}.gg-switch input:checked+span{background:#8B0801}.gg-switch input:checked+span:after{transform:translateX(16px)}.gg-switch em{font-style:normal;font-size:11px;color:#706868}.settings-hint{margin:12px 4px;color:#7b8381;font-size:11px}
@media(max-width:820px){.dashboard-home{padding:28px 22px 48px}.dashboard-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-settings{padding:28px 22px 48px}}
@media(max-width:560px){.dashboard-home,.dashboard-settings{padding:22px 14px 42px}.dashboard-welcome{align-items:center;margin-bottom:18px}.dashboard-welcome h1{font-size:28px}.dashboard-welcome p{font-size:13px}.dashboard-settings-link{width:40px;height:40px;padding:0;justify-content:center;border-radius:11px}.dashboard-settings-link span{display:none}.dashboard-info{margin-bottom:27px;border-radius:14px}.dashboard-info-head{padding:15px 16px}.dashboard-info-head strong{font-size:16px}.dashboard-info-body{padding:2px 15px 7px}.dashboard-news-item{padding:12px 1px;gap:10px}.dashboard-news-item small{font-size:11.5px}.dashboard-section-head{align-items:center}.dashboard-section-head span{display:none}.dashboard-tile-grid{grid-template-columns:1fr;gap:9px}.dashboard-tile{min-height:0;align-items:center;padding:14px;border-radius:12px}.dashboard-tile-copy small{font-size:11.5px}.settings-top h1{font-size:26px}.settings-card-head{padding:15px}.settings-card-head p{display:none}.tile-settings-list{padding:2px 10px}.tile-setting{grid-template-columns:20px 34px minmax(0,1fr) auto;gap:9px;padding:12px 2px}.tile-setting .dashboard-tile-icon{width:34px;height:34px}.tile-setting-copy small{display:none}.tile-order-buttons{display:none}.gg-switch em{display:none}.gg-switch span{width:36px}.gg-switch input:checked+span:after{transform:translateX(14px)}}

/* Dashboard/Header Feinjustierung */
.header-settings-link{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:inherit;text-decoration:none}.header-settings-link:hover{background:rgba(0,0,0,.055)}.header-settings-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dashboard-welcome{margin-bottom:24px}
.dashboard-info-kicker{font-size:15px;letter-spacing:0;text-transform:none}

/* v27.5 – Snapshot */
.snapshot-page{max-width:1120px}.snapshot-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;align-items:start}.snapshot-sidebar,.snapshot-content{background:#fff;border:1px solid #e5dcdc;border-radius:14px}.snapshot-sidebar{overflow:hidden}.snapshot-sidebar-title{padding:15px 16px 10px;color:#817574;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.snapshot-sidebar nav{padding:0 8px 9px}.snapshot-area-link{display:flex;flex-direction:column;gap:2px;padding:10px 11px;border-radius:9px;color:#8B0801;text-decoration:none}.snapshot-area-link:hover{background:#f7f3f3}.snapshot-area-link.active{background:#f5ebea;color:#6D0601}.snapshot-area-link strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.snapshot-area-link small{font-size:11px;color:#817473}.snapshot-content{padding:20px}.snapshot-content-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.snapshot-content-head h2{margin:3px 0 2px;font-size:22px}.snapshot-content-head p{margin:0;color:#817271;font-size:12px}.snapshot-upload{flex:0 0 auto}.snapshot-upload-button{display:inline-flex;cursor:pointer}.snapshot-upload-button input{display:none}.snapshot-permission-hint{padding:10px 12px;margin:0 0 16px;border-radius:9px;background:#f9f7f7;color:#796968;font-size:12px}.snapshot-empty{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px dashed #dad0cf;border-radius:11px;color:#817473;text-align:center}.snapshot-empty strong{color:#514140;font-size:14px}.snapshot-empty span{font-size:12px}.snapshot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.snapshot-file{position:relative;min-width:0;overflow:hidden;border:1px solid #e7e0e0;border-radius:11px;background:#fff}.snapshot-preview{height:145px;display:block;background:#f4f1f1;overflow:hidden}.snapshot-preview img{width:100%;height:100%;object-fit:cover;display:block}.snapshot-pdf{display:grid;place-items:center;text-decoration:none}.snapshot-pdf span{display:grid;place-items:center;width:58px;height:72px;border:1px solid #dfd6d6;border-radius:6px;background:#fff;color:#9a493d;font-size:13px;font-weight:800}.snapshot-file-meta{min-width:0;padding:10px 11px}.snapshot-file-meta>a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8B0801;text-decoration:none;font-size:12px;font-weight:700}.snapshot-file-meta small{display:block;margin-top:3px;color:#877c7b;font-size:10px}.snapshot-delete{position:absolute;top:7px;right:7px;width:29px;height:29px;border:0;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 2px 7px rgba(0,0,0,.12);color:#8f3028;font-size:21px;line-height:1;cursor:pointer}.snapshot-delete:hover{background:#fff1ef}
@media(max-width:820px){.snapshot-layout{grid-template-columns:190px minmax(0,1fr)}.snapshot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.snapshot-page{padding-left:14px;padding-right:14px}.snapshot-layout{display:block}.snapshot-sidebar{margin-bottom:12px}.snapshot-sidebar-title{padding-bottom:7px}.snapshot-sidebar nav{display:flex;gap:6px;overflow-x:auto;padding:0 10px 10px;scrollbar-width:none}.snapshot-sidebar nav::-webkit-scrollbar{display:none}.snapshot-area-link{min-width:max-content;padding:8px 10px;border:1px solid #eae4e4}.snapshot-area-link small{display:none}.snapshot-content{padding:14px}.snapshot-content-head{align-items:center}.snapshot-content-head h2{font-size:19px}.snapshot-upload-button{padding:8px 10px;font-size:12px}.snapshot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.snapshot-preview{height:118px}.snapshot-file-meta{padding:8px}.snapshot-file-meta small{font-size:9px}}
@media(max-width:390px){.snapshot-grid{grid-template-columns:1fr}.snapshot-preview{height:180px}}
/* v27.5 – Snapshot Bereichsauswahl + Uploadstatus */
.snapshot-area-picker{display:flex;align-items:center;gap:10px;margin:0 0 14px}.snapshot-own-button{flex:0 0 auto;text-decoration:none}.snapshot-own-button.active{box-shadow:inset 0 0 0 2px rgba(139,8,1,.18)}.snapshot-course-select-wrap{min-width:0;flex:1;max-width:440px}.snapshot-course-select{width:100%;height:40px;padding:0 38px 0 12px;border:1px solid #d9cdcc;border-radius:9px;background:#fff;color:#8B0801;font:inherit;font-size:13px}.snapshot-layout{display:block}.snapshot-sidebar{display:none}.snapshot-content{width:100%}.snapshot-upload-spinner{display:none;width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:snapshotSpin .7s linear infinite}.snapshot-upload-button.is-uploading{pointer-events:none;opacity:.8;gap:7px}.snapshot-upload-button.is-uploading .snapshot-upload-spinner{display:inline-block}.snapshot-upload-button.is-uploading .snapshot-upload-label{font-size:0}.snapshot-upload-button.is-uploading .snapshot-upload-label:after{content:'Wird hochgeladen …';font-size:12px}@keyframes snapshotSpin{to{transform:rotate(360deg)}}
@media(max-width:620px){.snapshot-area-picker{gap:8px}.snapshot-own-button{padding:9px 10px;font-size:12px}.snapshot-course-select-wrap{max-width:none}.snapshot-course-select{height:38px;font-size:12px;padding-left:9px}.snapshot-content{padding:14px}}
/* Snapshot 27.7 */
.snapshot-course-select-wrap{flex:0 1 280px;max-width:280px}.snapshot-course-select{width:100%}.snapshot-image-open{width:100%;padding:0;border:0;cursor:pointer}.snapshot-file-meta>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8B0801;font-size:12px;font-weight:700}.snapshot-editor{display:none;position:fixed;inset:0;z-index:20000;padding:18px;background:rgba(0,0,0,.6);align-items:center;justify-content:center}.snapshot-editor.open{display:flex}.snapshot-editor-dialog{width:min(1000px,100%);max-height:94vh;display:flex;flex-direction:column;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.35)}.snapshot-editor-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border-bottom:1px solid #e8e1e1}.snapshot-editor-top strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.snapshot-editor-close{width:34px;height:34px;border:0;border-radius:50%;background:#f5f1f1;font-size:24px;cursor:pointer}.snapshot-canvas-wrap{position:relative;min-height:220px;flex:1;display:flex;align-items:center;justify-content:center;overflow:auto;padding:14px;background:#251e1e}.snapshot-canvas-wrap canvas{display:block;max-width:100%;max-height:68vh;object-fit:contain;touch-action:none}.snapshot-canvas-wrap.is-cropping canvas{cursor:crosshair}.snapshot-crop-box{position:absolute;border:2px solid #fff;background:rgba(255,255,255,.08);box-shadow:0 0 0 9999px rgba(0,0,0,.32);pointer-events:none}.snapshot-editor-tools{display:flex;flex-wrap:wrap;gap:8px;padding:12px 15px;border-top:1px solid #e8e1e1}.snapshot-editor-tools button{min-height:38px;padding:7px 12px;border:1px solid #d6cbca;border-radius:8px;background:#fff;color:#8B0801;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.snapshot-editor-tools button.active{background:#f4e9e8;border-color:#aa7a77}.snapshot-editor-tools .button{margin-left:auto;background:#8B0801;color:#fff;border-color:#8B0801}.snapshot-editor-hint{margin:0;padding:0 15px 13px;color:#817574;font-size:11px}.snapshot-editor-open{overflow:hidden}
@media(max-width:620px){.snapshot-course-select-wrap{flex:0 1 190px;max-width:190px}.snapshot-area-picker{align-items:center}.snapshot-editor{padding:0}.snapshot-editor-dialog{height:100%;max-height:none;border-radius:0}.snapshot-canvas-wrap{padding:8px}.snapshot-canvas-wrap canvas{max-height:calc(100vh - 190px)}.snapshot-editor-tools{gap:6px;padding:9px}.snapshot-editor-tools button{flex:1 1 auto;padding:7px 8px}.snapshot-editor-tools .button{margin-left:0}.snapshot-editor-hint{padding:0 10px 9px}}
/* Snapshot 27.9 */
.snapshot-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.snapshot-release-form{display:flex;align-items:center;gap:8px;color:#695453;font-size:12px;font-weight:700}.snapshot-switch{position:relative;width:42px;height:24px;padding:0;border:0;border-radius:999px;background:#c5bab9;cursor:pointer;transition:background .18s ease}.snapshot-switch span{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.22);transition:transform .18s ease}.snapshot-switch.is-on{background:#8B0801}.snapshot-switch.is-on span{transform:translateX(18px)}
@media(max-width:620px){.snapshot-content-head{align-items:flex-start}.snapshot-head-actions{width:100%;justify-content:space-between;gap:10px}.snapshot-release-form{order:2}.snapshot-upload{order:1}}

/* Snapshot 27.9 – kompaktere Kursansicht */
.snapshot-content-head{padding-bottom:16px;border-bottom:1px solid #f1eded;margin-bottom:16px}
.snapshot-head-actions{align-self:center}
.snapshot-empty{width:100%;min-height:150px;background:#fafcfb}
@media(max-width:620px){.snapshot-content-head{flex-direction:column;gap:12px}.snapshot-head-actions{align-self:stretch;width:100%;justify-content:flex-start}.snapshot-release-form{order:1}.snapshot-upload{order:2}.snapshot-empty{min-height:130px}}

/* Snapshot v27.12 */
.snapshot-own-button{height:40px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding-top:0;padding-bottom:0}
@media(max-width:620px){.snapshot-own-button{height:38px;padding-top:0;padding-bottom:0}}

/* Einheitlicher Löschdialog v27.13 */
.gg-delete-dialog{border:0;padding:0;background:transparent;width:min(420px,calc(100vw - 32px));max-width:none}.gg-delete-dialog::backdrop{background:rgba(0,0,0,.35);backdrop-filter:blur(3px)}.gg-delete-card{margin:0;background:#fff;border:1px solid #e9e3e3;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.18);padding:24px}.gg-delete-icon{width:50px;height:50px;display:grid;place-items:center;margin-bottom:16px;border-radius:14px;background:#fff0ee;color:#a33127}.gg-delete-icon svg{width:25px;height:25px}.gg-delete-card h2{margin:0;color:#8B0801;font-size:20px;line-height:1.25}.gg-delete-card p{margin:8px 0 0;color:#796968;font-size:13px;line-height:1.5}.gg-delete-detail{display:block;margin-top:12px;padding:10px 12px;border-radius:9px;background:#f8f5f5;color:#514140;font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gg-delete-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.gg-delete-actions button{min-height:40px;padding:0 15px;border-radius:9px;font:inherit;font-size:13px;font-weight:750;cursor:pointer}.gg-delete-cancel{border:1px solid #dfd6d6;background:#fff;color:#514140}.gg-delete-confirm{border:1px solid #a33127;background:#a33127;color:#fff}.gg-delete-confirm:hover{background:#8e281f}.gg-delete-cancel:hover{background:#f8f5f5}@media(max-width:520px){.gg-delete-card{padding:20px}.gg-delete-actions{display:grid;grid-template-columns:1fr 1fr}.gg-delete-actions button{width:100%}}

/* Snapshot Bildeditor v27.15 */
.snapshot-editor-dialog{overflow:hidden}
.snapshot-editor-tools{align-items:center;justify-content:space-between}
.snapshot-editor-edit-tools,.snapshot-editor-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.snapshot-editor-tools .snapshot-editor-actions .button{margin-left:0}
.snapshot-editor-actions .button-secondary{background:#fff;color:#8B0801;border-color:#d6cbca}
@media(max-width:620px){.snapshot-editor-tools{align-items:stretch}.snapshot-editor-edit-tools{width:100%}.snapshot-editor-edit-tools button{flex:1 1 auto}.snapshot-editor-actions{width:100%;justify-content:flex-end}.snapshot-editor-actions .button{flex:0 0 auto}}

/* Snapshot uploader info v28.0 */
.snapshot-file{position:relative}
.snapshot-uploader{position:absolute;top:8px;left:8px;z-index:3;width:25px;height:25px;padding:0;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(139,8,1,.78);color:#fff;font-size:12px;font-weight:700;line-height:23px;text-align:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.14)}
.snapshot-uploader span{position:absolute;left:0;top:32px;width:max-content;max-width:220px;padding:6px 9px;border-radius:7px;background:#8B0801;color:#fff;font-size:11px;font-weight:600;line-height:1.25;white-space:nowrap;opacity:0;visibility:hidden;transform:translateY(-3px);transition:.14s ease;pointer-events:none;box-shadow:0 5px 16px rgba(0,0,0,.2)}
.snapshot-uploader:hover span,.snapshot-uploader:focus-visible span,.snapshot-uploader.show span{opacity:1;visibility:visible;transform:translateY(0)}
@media(max-width:620px){.snapshot-uploader{top:7px;left:7px;width:28px;height:28px;line-height:26px}.snapshot-uploader span{top:34px}}

/* Elternzugang + Login-Info v28.1 */
.login-info-button{position:fixed;top:18px;right:20px;width:28px;height:28px;border:1px solid #cfbab9;border-radius:50%;background:rgba(255,255,255,.72);color:#6b5352;font:600 15px/1 system-ui;cursor:pointer;z-index:20}.login-info-button:hover{background:#fff;color:var(--gg-primary)}
.login-info-dialog{width:min(390px,calc(100vw - 32px));border:1px solid #e1d7d6;border-radius:16px;padding:25px 28px;background:#fff;color:#211817;box-shadow:0 18px 55px rgba(139,8,1,.16)}.login-info-dialog::backdrop{background:rgba(139,8,1,.18)}.login-info-close{position:absolute;right:12px;top:9px;border:0;background:transparent;color:#7c6c6b;font-size:24px;cursor:pointer}.login-info-text{font-size:14px;line-height:1.55}.login-info-text p{margin:0 0 14px}.login-info-text p:last-child{margin-bottom:0}.login-info-text span{color:#817675}.login-info-text a{color:var(--gg-primary);text-underline-offset:3px}
.parent-page{min-height:100vh;background:#f8f4f4;padding:16px;overflow:auto;display:flex;justify-content:center;align-items:flex-start}.parent-card{width:min(480px,100%);margin:0 auto;padding:34px 38px 28px;border:1px solid #e2d9d8;border-radius:16px;background:#fff;box-shadow:0 10px 34px rgba(139,8,1,.07)}.parent-card.compact{margin-top:8vh}.parent-card h1{text-align:center;margin:2px 0 4px;font-size:27px;letter-spacing:-.025em}.parent-subtitle{text-align:center;color:#796665;font-size:13px;margin:0 0 28px}.parent-section{margin:0 0 28px}.parent-section h2{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#796665;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid #e2d9d8}.parent-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#615352;margin-bottom:10px}.parent-card input,.parent-card select{width:100%;min-height:42px;border:1px solid #d9cdcc;border-radius:10px;background:#faf8f8;padding:0 12px;font:inherit;color:#211817}.parent-card input:focus,.parent-card select:focus{outline:none;border-color:var(--gg-primary);box-shadow:0 0 0 2px rgba(139,8,1,.10)}.parent-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.parent-child{background:#f8f6f6;border:1px solid #e2d9d8;border-radius:11px;padding:14px;margin-bottom:12px}.parent-child-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:14px}.parent-child-head button{border:0;background:none;font-size:20px;color:#827574;cursor:pointer}.parent-child p{font-size:12px;line-height:1.45;color:#796665;margin:-2px 0 0}.parent-small{border:1px solid #d9cdcc;border-radius:9px;background:#fff;padding:6px 10px;color:#564140;cursor:pointer}.parent-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:42px;border-radius:10px;text-decoration:none;font-size:13px;font-weight:600;margin-top:10px;cursor:pointer}.parent-button.primary{border:0;background:var(--gg-primary);color:#fff}.parent-button.ghost{border:1px solid #d9cdcc;background:#fff;color:#615352}.parent-alert{padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.45;margin:0 0 18px}.parent-alert.success{background:#f7eeed;border:1px solid #d6bcbb;color:#8B0801}.parent-alert.error{background:#fff1ef;border:1px solid #e5b7b1;color:#8f1f17}@media(max-width:520px){.parent-card{padding:28px 20px}.parent-two{grid-template-columns:1fr}.parent-page{padding:0}.parent-card{border-radius:0;min-height:100vh}}

.parent-button.primary:disabled{opacity:.42;cursor:not-allowed}.child-key-state{display:block;min-height:16px;margin-top:2px;font-size:12px;color:#796665}.child-key-state.valid{color:#8B0801}.child-key-state.invalid{color:#a32920}.remove-child[hidden]{display:none}

/* Eltern-Dashboard v28.4 */
.parent-dashboard{max-width:900px}.parent-dashboard-grid{display:grid;gap:12px}.parent-dashboard-child{border:1px solid #e2d9d8;border-radius:12px;background:#fff;padding:16px}.parent-dashboard-child-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.parent-dashboard-child-head>div{display:flex;flex-direction:column;gap:3px}.parent-dashboard-child-head strong{font-size:15px}.parent-dashboard-child-head span{font-size:12px;color:#796665}.parent-link-danger{border:0;background:transparent;color:#9b342c;font:inherit;font-size:12px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.parent-link-box{margin-top:14px;padding-top:13px;border-top:1px solid #e9e3e3}.parent-link-box p,.parent-help{margin:0 0 9px;color:#796665;font-size:12px;line-height:1.45}.parent-link-form{display:flex;gap:8px}.parent-link-form input,.parent-add-panel input,.parent-add-panel select{min-height:40px;border:1px solid #d9cdcc;border-radius:9px;background:#faf8f8;padding:0 11px;font:inherit}.parent-link-form input{flex:1;min-width:0}.parent-link-form button{border:0;border-radius:9px;background:var(--gg-primary);color:#fff;padding:0 15px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.parent-add-panel{margin-top:18px;border:1px solid #e2d9d8;border-radius:12px;background:#fff;padding:0 16px}.parent-add-panel summary{padding:14px 0;cursor:pointer;font-size:13px;font-weight:700;color:#564140}.parent-add-panel[open] summary{border-bottom:1px solid #e9e3e3}.parent-add-panel form{padding:15px 0}.parent-add-panel label{display:flex;flex-direction:column;gap:6px;margin-bottom:11px;color:#615352;font-size:12px}.parent-add-panel .parent-button{max-width:220px}@media(max-width:620px){.parent-dashboard-child-head{flex-direction:column}.parent-link-form{flex-direction:column}.parent-link-form button{min-height:40px}.parent-add-panel .parent-button{max-width:none}}

/* Elternbereich v28.5 */
.parent-header-nav .header-settings-link{display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:9px;color:#615352}.parent-header-nav .header-settings-link:hover{background:#f6f1f1}.parent-header-nav .header-settings-link svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.parent-child-tile{display:flex;align-items:center;gap:14px;min-height:92px}.parent-child-tile-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;background:#f6eded;color:#8B0801}.parent-child-tile-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.parent-child-tile>div:last-child{display:grid;gap:3px}.parent-child-tile strong{font-size:16px}.parent-child-tile span,.parent-child-tile small{font-size:12px;color:#796665}.parent-settings-section{margin-top:24px}.parent-settings-section>h2{margin:0 0 12px;font-size:18px}.parent-danger-zone{margin-top:38px;padding-top:24px;border-top:1px solid #e2d9d8}.parent-danger-zone>p{max-width:680px;color:#796665;font-size:13px;line-height:1.5}.parent-danger-zone details{margin-top:12px;max-width:520px;border:1px solid #ead0cd;border-radius:12px;background:#fff;padding:0 16px}.parent-danger-zone summary{padding:14px 0;color:#9b342c;font-size:13px;font-weight:700;cursor:pointer}.parent-danger-zone form{display:grid;gap:12px;padding:0 0 16px}.parent-danger-zone label{display:grid;gap:6px;color:#615352;font-size:12px}.parent-danger-zone input{min-height:40px;border:1px solid #d9c9c7;border-radius:9px;background:#fff;padding:0 11px;font:inherit}.parent-delete-account{min-height:40px;border:0;border-radius:9px;background:#a72d25;color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer}@media(max-width:620px){.parent-header-nav>span{display:none}.parent-header-nav{gap:10px}}


/* Elternbereich v28.6 – einheitliche Kopfleiste und modale Bestätigungen */
.app-header-right .header-settings-link{display:grid;place-items:center;width:34px;height:34px;padding:0;border-radius:8px;color:#635453;text-decoration:none}
.app-header-right .header-settings-link:hover,.app-header-right .header-settings-link.is-active{background:#f6eded;color:#6D0601}
.app-header-right .header-settings-link svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.gg-confirm-dialog{width:min(430px,calc(100vw - 28px));padding:0;border:0;border-radius:15px;background:transparent;color:#312524;box-shadow:0 18px 55px rgba(139,8,1,.2)}
.gg-confirm-dialog::backdrop{background:rgba(139,8,1,.28);backdrop-filter:blur(1.5px)}
.gg-confirm-card{position:relative;padding:26px 26px 22px;background:#fff;border:1px solid #e2d9d8;border-radius:15px}
.gg-confirm-close{position:absolute;right:12px;top:10px;width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:#817271;font:300 25px/1 system-ui;cursor:pointer}.gg-confirm-close:hover{background:#f6f3f3}
.gg-confirm-icon{width:38px;height:38px;display:grid;place-items:center;margin-bottom:14px;border-radius:50%;background:#fff0ee;color:#a33127;font-weight:800;font-size:19px}
.gg-confirm-card h3{margin:0 38px 8px 0;font-size:19px}.gg-confirm-card p{margin:0;color:#796665;font-size:13px;line-height:1.55}.gg-confirm-card p strong{color:#473534}
.gg-confirm-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.gg-confirm-actions button{min-height:40px;padding:0 15px;border-radius:9px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.gg-confirm-cancel{border:1px solid #dfd6d6;background:#fff;color:#514140}.gg-confirm-cancel:hover{background:#f8f5f5}.gg-confirm-danger{border:1px solid #a33127;background:#a33127;color:#fff}.gg-confirm-danger:hover{background:#8e281f}
@media(max-width:520px){.gg-confirm-card{padding:22px 20px 18px}.gg-confirm-actions{display:grid;grid-template-columns:1fr 1fr}.gg-confirm-actions button{width:100%}}
/* 28.7 – persönlicher Zugang */
.access-settings-card{margin-top:22px}.access-settings-body{padding:18px 20px}.access-password-form{display:grid;gap:12px;max-width:520px}.access-password-form label,.access-parent-panel label{display:grid;gap:6px;color:#615352;font-size:12px;font-weight:650}.access-password-form input,.access-parent-panel input{min-height:42px;border:1px solid #dfd7d7;border-radius:10px;background:#fff;padding:0 12px;font:inherit}.access-password-form p{margin:0;color:#706868;font-size:12px;line-height:1.5}.access-password-form button{justify-self:start;min-height:40px;border:0;border-radius:9px;background:#8B0801;color:#fff;padding:0 16px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.access-parent-panel{max-width:620px}.access-parent-panel form{display:grid;gap:12px;padding:16px}.access-parent-panel .parent-button{justify-self:start}

/* 28.9 – persönlicher Zugang für Schüler bis zur E-Mail-Bestätigung klar deaktiviert */
.access-settings-card.access-is-disabled{background:#f2f4f3;border-color:#e2dddd;box-shadow:none}
.access-settings-card.access-is-disabled .settings-card-head,.access-settings-card.access-is-disabled .access-settings-body{opacity:.55}
.access-settings-card.access-is-disabled .access-password-form input{background:#ebe8e8;color:#948b8a;cursor:not-allowed}
.access-settings-card.access-is-disabled .access-password-form button{background:#b7aeae;color:#f6f5f5;cursor:not-allowed;box-shadow:none}

/* v30.0 – Passwort vergessen im Login-Infodialog */
.login-info-divider{height:1px;background:#e6dddc;margin:18px 0 14px}.forgot-password{font-size:13px}.forgot-password summary{cursor:pointer;color:#817271;font-weight:500;list-style:none;user-select:none}.forgot-password summary::-webkit-details-marker{display:none}.forgot-password summary:hover{color:var(--gg-primary)}.forgot-password-hint{margin:10px 0 8px!important;color:#958a89;font-size:12px}.forgot-password-message{margin:8px 0!important;padding:8px 10px;border-radius:8px;background:#f6f0f0;color:#634745;font-size:12px}.forgot-password-form{display:flex;gap:7px;margin-top:9px}.forgot-password-form input{min-width:0;flex:1;border:1px solid #d9cdcc;border-radius:8px;padding:9px 10px;font:inherit;outline:none}.forgot-password-form input:focus{border-color:var(--gg-primary)}.forgot-password-form button{border:0;border-radius:8px;padding:9px 11px;background:var(--gg-primary);color:#fff;font:600 12px/1 system-ui;cursor:pointer;white-space:nowrap}
.reset-page{min-height:100vh;display:grid;place-items:center;padding:24px}.reset-card{width:min(420px,100%);background:#fff;border:1px solid #e6dddc;border-radius:18px;padding:30px;box-shadow:0 18px 55px rgba(139,8,1,.10)}.reset-logo{width:54px;height:54px;object-fit:contain;margin-bottom:12px}.reset-card h1{margin:0 0 10px;font-size:24px}.reset-card p{color:#736564;line-height:1.55}.reset-form{display:grid;gap:14px;margin-top:20px}.reset-form label{display:grid;gap:6px;font-size:13px;font-weight:600;color:#615453}.reset-form input{border:1px solid #d9cdcc;border-radius:9px;padding:11px;font:inherit}.reset-form button,.reset-primary-link{display:inline-block;border:0;border-radius:9px;padding:11px 14px;background:var(--gg-primary);color:#fff;text-decoration:none;font:600 14px/1.2 system-ui;cursor:pointer}.reset-primary-link{margin-top:10px}.reset-error{padding:10px 12px;border-radius:9px;background:#fff0f0;color:#9a3e3e;font-size:13px}

/* v30.0 – Elternverwaltung: Aktionen-Zelle bleibt echte Tabellenzelle */
.parent-admin-search{display:flex;gap:8px;margin:0 0 16px}.parent-admin-search input[type=search]{flex:1;min-width:180px;max-width:520px;min-height:40px;border:1px solid #d9cdcc;border-radius:9px;padding:0 12px;font:inherit}.parent-admin-table td{vertical-align:middle}.parent-admin-table code{white-space:nowrap}.parent-admin-state{display:inline-block;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.parent-admin-state.ok{background:#f7eeed;color:#8B0801}.parent-admin-state.pending{background:#f5f3ed;color:#756642}.parent-admin-actions{vertical-align:middle;white-space:nowrap}.parent-admin-actions form{display:inline-block;margin:0 7px 0 0}.parent-kids{display:inline-block;cursor:help;border-bottom:1px dotted #8b7b7a;white-space:nowrap}.parent-kids-popover{display:none}.parent-kids:focus+.parent-kids-popover{display:block;position:absolute;z-index:30;max-width:300px;margin-top:6px;padding:8px 10px;border:1px solid #e2d9d8;border-radius:8px;background:#fff;box-shadow:0 8px 24px rgba(139,8,1,.14);font-size:12px}.parent-admin-table td:nth-child(6){position:relative}@media(max-width:620px){.parent-admin-search{flex-wrap:wrap}.parent-admin-search input[type=search]{width:100%;max-width:none;flex-basis:100%}.parent-admin-table{min-width:900px}}

/* v30.0 – vollständigen Zugang nach Passwort-Reset deutlich anzeigen */
.reset-login-clear{margin:14px 0;padding:14px 16px;border:1px solid rgba(139,8,1,.28);border-radius:12px;background:rgba(139,8,1,.07);font-size:1.15rem;letter-spacing:.02em;overflow-wrap:anywhere}

/* v30.0 – Push-System */
.gg-push-settings .settings-card-head{align-items:center}.push-device-status{font-weight:600}.push-admin-form{display:grid;gap:14px;max-width:720px}.push-admin-form label{display:grid;gap:6px}.push-admin-form input,.push-admin-form select,.push-admin-form textarea{font:inherit;padding:11px 12px;border:1px solid #d7cdcc;border-radius:9px}.push-admin-form button,[data-push-action]{width:max-content;padding:10px 16px;border:0;border-radius:9px;background:#8B0801;color:#fff;font-weight:700;cursor:pointer}.push-admin-form button:disabled,[data-push-action]:disabled{opacity:.55;cursor:not-allowed}.push-table-wrap{overflow:auto}.push-table{width:100%;border-collapse:collapse}.push-table th,.push-table td{text-align:left;padding:10px;border-bottom:1px solid #e5dddd;font-size:.92rem}.push-table th{background:#f1e8e7}@media(max-width:650px){.gg-push-settings .settings-card-head{align-items:flex-start;gap:14px;flex-direction:column}}

/* Push-System 30.2 */
.push-role-card{margin-top:18px}.push-role-card h2{margin-bottom:4px}.push-table{width:100%;border-collapse:collapse}.push-table th,.push-table td{padding:10px 9px;border-bottom:1px solid #e5e5e5;text-align:left;vertical-align:middle}.push-table th{background:#f2e9e8;white-space:nowrap}.push-table tbody tr:nth-child(even){background:#faf7f7}.push-table-wrap{overflow-x:auto}.push-ok{color:#16723b;font-weight:700}.push-off{color:#777}.push-delete{width:34px;height:34px;padding:0;border:1px solid #b42318;border-radius:8px;background:#fff;color:#b42318;font-size:23px;line-height:28px;cursor:pointer}.push-delete:hover{background:#fff3f2}.push-target-detail[hidden]{display:none}.push-target-detail{margin-top:10px}.push-admin-form select{width:100%}


/* Push-System 32.0 – Abstände und vollständige Nachrichtenhistorie */
.push-system-page{max-width:1320px;padding-left:32px;padding-right:32px}
.push-system-page>.settings-card{margin-bottom:20px;padding:22px 24px}
.push-system-page>.settings-card>h2{margin:0 0 14px}
.push-system-page .push-role-card{margin-top:0;padding:0;overflow:hidden}
.push-system-page .push-role-card>h2{margin:0;padding:22px 24px 4px}
.push-system-page .push-role-card>p{margin:0;padding:0 24px 18px}
.push-system-page .push-role-card .push-table-wrap{border-top:1px solid #e9e2e2}
.push-system-page .push-table th:first-child,.push-system-page .push-table td:first-child{padding-left:18px}
.push-system-page .push-table th:last-child,.push-system-page .push-table td:last-child{padding-right:18px}
.push-history-card{padding:0!important;overflow:hidden}.push-history-card>h2{margin:0!important;padding:22px 24px 16px}
.push-history-wrap{overflow-x:auto}.push-history-table{width:100%;border-collapse:collapse;min-width:850px}.push-history-table th,.push-history-table td{padding:14px 12px;border-top:1px solid #ece6e6;text-align:left;vertical-align:top}.push-history-table th{background:#f2e9e8;font-weight:700}.push-history-table th:first-child,.push-history-table td:first-child{padding-left:24px}.push-history-table th:last-child,.push-history-table td:last-child{padding-right:24px}.push-history-table tbody tr:nth-child(even){background:#faf8f8}.push-history-time{white-space:nowrap}.push-history-body{margin:4px 0;line-height:1.4;white-space:normal;overflow-wrap:anywhere}.push-history-table td:nth-child(2){min-width:340px}.push-history-table small{display:block;margin-top:3px;color:#7c706f}.push-history-actions{width:132px}.push-history-actions form{margin-top:8px}.push-template,.push-history-delete{min-width:104px;min-height:36px;padding:7px 11px;border-radius:8px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.push-template{border:0;background:#8B0801;color:#fff}.push-history-delete{border:1px solid #b42318;background:#fff;color:#b42318}.push-delivery-details{margin-top:8px}.push-delivery-details summary{display:inline-block;padding:6px 9px;border-radius:8px;background:#f2eeee;font-size:12px;font-weight:700;cursor:pointer}.push-delivery-details>div{margin-top:7px;max-height:220px;overflow:auto}.push-delivery-details p{margin:0;padding:5px 0;border-bottom:1px solid #f0eded;font-size:12px}.push-delivery-details p small{margin-left:18px;color:#9b4139}
@media(max-width:650px){.push-system-page{padding-left:14px;padding-right:14px}.push-system-page>.settings-card{padding:18px 16px}.push-system-page .push-role-card{padding:0}.push-system-page .push-role-card>h2{padding:18px 16px 4px}.push-system-page .push-role-card>p{padding:0 16px 14px}.push-history-card{padding:0!important}.push-history-card>h2{padding:18px 16px 14px}}

/* Gruppen 32.0 */
.groups-page{max-width:1180px}.groups-page .settings-top{align-items:center}.groups-page .settings-top>div{flex:1}.group-primary,.group-secondary,.group-add-person{font:inherit;border-radius:10px;padding:10px 16px;cursor:pointer}.group-primary{border:1px solid #8B0801;background:#8B0801;color:#fff;font-weight:700}.group-secondary{border:1px solid #d7cfcc;background:#fff;color:#594d49}.group-list{display:grid;gap:18px}.group-card{background:#fff;border:1px solid #ded9d7;border-radius:18px;overflow:hidden}.group-card-head{display:flex;justify-content:space-between;gap:18px;padding:24px 28px}.group-card-head h2{margin:0 0 7px;font-size:28px}.group-card-head p{margin:0 0 10px;color:#655b58}.group-badges{display:flex;gap:7px}.group-badges span{font-size:12px;padding:4px 9px;border-radius:999px;background:#eee}.group-badges .active{background:#e7f7ea;color:#247a35;border:1px solid #b7e2bf}.group-actions form,.group-chip form{display:inline}.group-members{border-top:1px solid #e5dfdc;padding:8px 28px 24px}.group-members section{padding:18px 0;border-bottom:1px solid #e4ddda}.group-members section:last-child{border-bottom:0}.group-members h3{font-size:13px;font-weight:500;color:#725e57;margin:0 0 10px}.group-member-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.group-chip{display:inline-flex;align-items:center;gap:6px;background:#f4f1f0;border-radius:999px;padding:6px 10px}.group-chip button{border:0;background:transparent;color:#a32920;font-size:18px;cursor:pointer;line-height:1}.group-none{color:#8b817e;font-size:14px}.group-add-person{padding:6px 11px;border:1px dashed #cfc4c0;background:#fff;color:#695853}.group-empty{text-align:center;padding:42px}.group-dialog{width:min(650px,calc(100% - 28px));border:1px solid #d8d0cd;border-radius:20px;padding:0;box-shadow:0 18px 60px #0005}.group-dialog::backdrop{background:#0009}.group-dialog-form{padding:28px;display:grid;gap:18px}.group-dialog-title{display:flex;align-items:center;justify-content:space-between}.group-dialog-title h2{margin:0}.group-dialog-title button{border:0;background:none;font-size:28px;color:#766863;cursor:pointer}.group-dialog-form>label{display:grid;gap:7px;font-weight:600;color:#6f5e58}.group-dialog input:not([type=checkbox]),.group-dialog textarea{font:inherit;border:1px solid #d8cfcc;border-radius:12px;background:#f4f1f0;padding:13px 15px}.group-dialog textarea{min-height:90px;resize:vertical}.group-dialog fieldset{border:0;padding:0;margin:0;display:flex;gap:20px}.group-dialog legend{font-weight:600;color:#6f5e58;margin-bottom:10px}.group-dialog fieldset label{display:flex;gap:7px;align-items:center}.group-dialog-buttons{display:flex;justify-content:flex-end;gap:10px}.person-dialog .group-dialog-form{padding:0;gap:0}.person-dialog .group-dialog-title{padding:26px 28px 16px}.person-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #ddd}.person-tabs button{padding:14px;border:0;background:#fff;cursor:pointer;color:#735f58}.person-tabs button.active{color:#8B0801;border-bottom:2px solid #8B0801;font-weight:700}.person-search{margin:18px 28px}.person-list{max-height:430px;overflow:auto;border-top:1px solid #eee;padding:6px 0 18px}.person-row{width:100%;display:flex;justify-content:space-between;gap:15px;border:0;background:#fff;padding:9px 28px;text-align:left;cursor:pointer}.person-row:hover{background:#f5f2f1}.person-row span{color:#7d706c}.parent-dashboard-groups{margin-top:24px;max-width:560px}.parent-dashboard-groups .dashboard-tile{background:#fff}.parent-dashboard-groups .dashboard-tile-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7}
@media(max-width:700px){.groups-page .settings-top{align-items:flex-start;flex-wrap:wrap}.groups-page .settings-top .group-primary{width:100%}.group-card-head{padding:20px;flex-direction:column}.group-members{padding:6px 20px 20px}.group-dialog-form{padding:22px}.group-dialog fieldset{flex-wrap:wrap}}

/* Gruppen 32.0 – Rollenfilter in der Personenauswahl */
.person-dialog .person-row[hidden]{display:none !important;}
/* Gruppen 32.0 – kompakte Listenansicht */
.groups-compact .settings-top{align-items:flex-start}.groups-compact .group-new-button{margin-top:18px}.compact-group-list{display:grid;gap:8px}.compact-group{background:#fff;border:1px solid #ded9d7;border-radius:12px;overflow:hidden}.compact-group>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;min-height:48px}.compact-group>summary::-webkit-details-marker{display:none}.compact-group>summary:hover{background:#faf8f7}.compact-group-name{font-weight:700;min-width:180px}.compact-group-status{font-size:11px;text-transform:uppercase;padding:3px 8px;border-radius:999px}.compact-group-status.active{background:#e7f7ea;color:#247a35;border:1px solid #b7e2bf}.compact-group-status.closed{background:#f2eeee;color:#766863;border:1px solid #ddd2ce}.compact-group-count,.compact-group-manager{font-size:13px;color:#756966}.compact-group-manager{background:#f1efee;padding:3px 8px;border-radius:999px}.compact-group-chevron{margin-left:auto;font-size:24px;color:#817570;transition:.15s}.compact-group[open] .compact-group-chevron{transform:rotate(90deg)}.compact-group-body{border-top:1px solid #ebe5e2;padding:16px}.group-edit-form{display:grid;gap:12px;margin-bottom:12px}.group-edit-grid{display:grid;grid-template-columns:minmax(180px,1fr) 2fr;gap:12px}.group-edit-grid label{display:grid;gap:5px;font-size:13px;color:#6f5e58}.group-edit-grid input,.group-edit-grid textarea{font:inherit;border:1px solid #d8cfcc;border-radius:9px;background:#f7f5f4;padding:9px 11px}.group-edit-grid textarea{min-height:42px;max-height:90px;resize:vertical}.group-options{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;font-size:13px;color:#665955}.group-options label{display:flex;align-items:center;gap:6px}.option-sep{font-weight:600}.wide-option{margin-left:4px}.group-primary.small,.group-secondary.small{padding:7px 11px;font-size:13px;width:max-content}.compact-group-actions{display:flex;gap:8px;align-items:center;margin:8px 0}.compact-members{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.compact-members .group-chip{font-size:13px;padding:4px 8px}.compact-members .group-chip small{font-weight:700;color:#8B0801}.members-hidden-note,.group-description{font-size:13px;color:#756966;margin:8px 0}.group-checkline{display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px!important;font-weight:500!important}.person-row[hidden]{display:none!important}
@media(max-width:700px){.compact-group>summary{gap:7px;padding:11px 12px;flex-wrap:wrap}.compact-group-name{min-width:0;flex:1 1 45%}.compact-group-count{order:4;width:100%}.compact-group-chevron{position:absolute;right:20px}.group-edit-grid{grid-template-columns:1fr}.group-options{align-items:flex-start;flex-direction:column}.option-sep{margin-top:4px}}

/* v32.0 – Aktuelles */
.dashboard-current-box{background:#fff;border:1px solid #ddd8d5;border-radius:14px;margin:18px 0 24px;overflow:hidden}
.dashboard-current-title{font-weight:700;padding:14px 18px 10px}
.dashboard-current-body{border-top:1px solid #eee9e6}
.dashboard-current-empty{padding:18px;color:#8a8582;font-style:italic;font-size:.95rem}
.dashboard-current-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;text-decoration:none;color:inherit}
.dashboard-current-item+.dashboard-current-item{border-top:1px solid #eee9e6}
.dashboard-current-item strong,.dashboard-current-item small{display:block}
.dashboard-current-item small{margin-top:3px;color:#777}

/* v32.0 – Kopfzeile beim Scrollen sichtbar halten */
.app-header{
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* v32.0 – Aktuelles wieder einklappbar */
details.dashboard-current-box>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px}
details.dashboard-current-box>summary::-webkit-details-marker{display:none}
.dashboard-current-chevron{font-size:1.2rem;line-height:1;color:#6f7775;transition:transform .15s ease}
details.dashboard-current-box:not([open]) .dashboard-current-chevron{transform:rotate(-90deg)}
details.dashboard-current-box:not([open]) .dashboard-current-title{padding-bottom:14px}

/* v32.0 – persönliche Vertretungen mobil als lesbare Karten */
@media(max-width:600px){
  .personal-sub-heading{margin:20px 0 10px}
  .personal-sub-heading h2{font-size:1.12rem}
  .personal-sub-heading p{font-size:.82rem;margin-top:4px}
  .personal-substitution-list{border:0;background:transparent;border-radius:0;display:flex;flex-direction:column;gap:9px;overflow:visible}
  .personal-substitution-row,
  .personal-substitution-row.supervision-substitution-row{
    display:grid;
    grid-template-columns:1fr auto;
    grid-template-areas:
      "date hour"
      "role role"
      "main main";
    min-height:0;
    background:#fff;
    border:1px solid #e5dcdc!important;
    border-radius:10px;
    overflow:hidden;
  }
  .personal-substitution-row>div{padding:8px 10px!important;border:0!important}
  .personal-substitution-row .sub-date{grid-area:date;font-size:.72rem;color:#796968}
  .personal-substitution-row .sub-hour{grid-area:hour;font-size:.72rem;color:#796968;text-align:right;justify-content:flex-end;white-space:normal;max-width:110px}
  .personal-sub-role{grid-area:role;padding-top:5px!important;padding-bottom:5px!important;border-top:1px solid #f1eded!important;font-size:.72rem}
  .personal-sub-main{grid-area:main;border-top:1px solid #f1eded!important;font-size:.82rem;line-height:1.35;gap:4px 5px}
  .personal-sub-main .sub-note{margin-left:0;width:100%}
  .sub-material-link{margin-left:0}
}

/* v32.0 – kompakte Kopfzeile */
.header-home-link{display:inline-flex;align-items:center;justify-content:center;color:inherit;text-decoration:none}
.header-home-link svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.header-user-badge{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:28px;padding:0 8px;border-radius:7px;background:#8B0801;color:#fff;font-size:13px;font-weight:800;line-height:1;letter-spacing:.02em}
@media(max-width:600px){.app-header-right{gap:8px}.header-user-badge{min-width:31px;height:26px;padding:0 7px;font-size:12px}.header-home-link svg{width:20px;height:20px}}
/* v32.0 – Schwarzes Brett */
.blackboard-compose{padding:0;margin-bottom:20px}.blackboard-compose>summary,.bb-review>summary{list-style:none;cursor:pointer;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px}.blackboard-compose>summary::-webkit-details-marker,.bb-review>summary::-webkit-details-marker{display:none}.blackboard-form{padding:18px 20px;display:grid;gap:14px;border-top:1px solid #e7e3e0}.blackboard-form label{display:grid;gap:6px;font-weight:600}.blackboard-form input[type=text],.blackboard-form input:not([type]),.blackboard-form input[type=date]{border:1px solid #d9d5d2;border-radius:9px;padding:10px 12px;font:inherit}.bb-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:7px;background:#f5f2f2;border:1px solid #e0d8d8;border-bottom:0;border-radius:9px 9px 0 0}.bb-toolbar button{border:0;background:#fff;border-radius:5px;padding:7px 10px;cursor:pointer}.bb-editor{min-height:220px;border:1px solid #e0d8d8;border-radius:0 0 9px 9px;padding:16px;background:#fff;outline:none}.bb-dates{display:flex;gap:14px;flex-wrap:wrap}.bb-dates label{flex:1;min-width:180px}.bb-list{display:grid;gap:16px}.bb-entry{background:#fff;border:1px solid #ddd8d5;border-radius:14px;overflow:hidden}.bb-entry header{padding:17px 20px;border-bottom:1px solid #eee9e6}.bb-entry h2{margin:0 0 3px}.bb-entry header small{color:#74706d}.bb-content{padding:20px;line-height:1.55}.bb-content h2,.bb-content h3{margin-top:1em}.bb-files{display:flex;flex-wrap:wrap;gap:10px;padding:0 20px 20px}.bb-files img{display:block;max-width:280px;max-height:220px;border-radius:9px;border:1px solid #ddd;object-fit:cover}.bb-files a span{display:block;padding:10px 12px;border:1px solid #d9d5d2;border-radius:8px;background:#f7f5f4}.bb-pending{margin:0 0 18px;color:#6f6a67;font-size:.92rem}.bb-review-list{display:grid;gap:12px}.bb-review{padding:0}.bb-review summary small{display:block;color:#777;margin-top:3px}.bb-status{font-size:.78rem;border-radius:999px;padding:5px 9px}.bb-status.pending{background:#fff1c7}.bb-status.approved{background:#dff4e4}.bb-status.rejected{background:#f5dddd}.bb-admin-actions{display:flex;gap:8px;flex-wrap:wrap}.bb-admin-actions button{padding:9px 13px;border:1px solid #d6d0cc;border-radius:8px;background:#fff;cursor:pointer}.bb-admin-actions .primary-button{background:#8B0801;color:#fff;border-color:#8B0801}@media(max-width:600px){.bb-editor{min-height:170px}.blackboard-form{padding:14px}.bb-files img{max-width:100%;height:auto}}
/* v32.0 – Schwarzes Brett Editor */
.bb-toolbar select,.bb-toolbar input[type=color]{height:34px;border:1px solid #e0d8d8;border-radius:5px;background:#fff;padding:4px 7px;font:inherit}.bb-toolbar input[type=color]{width:42px;padding:3px}.bb-submit-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto;gap:14px;align-items:end}.bb-submit-row .primary-button{height:43px;white-space:nowrap}.bb-inline-image,.bb-content .bb-inline-image{display:block;max-width:min(100%,720px);height:auto;margin:10px 0;border-radius:8px}.bb-editor .bb-inline-image{max-height:420px;object-fit:contain}
@media(max-width:700px){.bb-submit-row{grid-template-columns:1fr}.bb-submit-row .primary-button{width:100%}}

/* v32.0 – Schwarzes Brett: einheitliche Aktionsbuttons */
.bb-submit-row .primary-button,.blackboard-form>.primary-button{appearance:none;border:0;border-radius:9px;background:#8B0801;color:#fff;font:inherit;font-weight:700;padding:0 18px;min-height:43px;cursor:pointer;box-shadow:0 1px 2px rgba(139,8,1,.08);transition:background .15s ease,transform .05s ease}
.bb-submit-row .primary-button:hover,.blackboard-form>.primary-button:hover{background:#6D0601}.bb-submit-row .primary-button:active,.blackboard-form>.primary-button:active{transform:translateY(1px)}

/* v32.0 – Schwarzes Brett Editor */
.bb-editor table,.bb-content table{border-collapse:collapse;max-width:100%;margin:12px 0}.bb-editor td,.bb-editor th,.bb-content td,.bb-content th{border:1px solid #d9d0cf;padding:7px 9px;min-width:48px}.bb-editor img.bb-image-selected{outline:3px solid rgba(139,8,1,.35);outline-offset:2px}.bb-summary-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.bb-overview-delete{width:30px;height:30px;border:1px solid #e2c2be;border-radius:8px;background:#fff;color:#a33127;font-size:22px;line-height:1;cursor:pointer}.bb-overview-delete:hover{background:#fff0ee}.bb-overview-delete-form{display:none}.bb-toolbar [data-image-size]{min-width:105px}

/* v32.0 – Schwarzes Brett: Editor-Feinschliff */
.blackboard-form{position:relative}
.bb-icon-button{width:36px;height:34px;padding:7px!important;display:inline-flex;align-items:center;justify-content:center}
.bb-align-icon{width:18px;height:16px;display:flex;flex-direction:column;gap:2px;align-items:flex-start;justify-content:center}
.bb-align-icon i{display:block;height:2px;background:currentColor;border-radius:2px;width:18px}
.bb-align-icon i:nth-child(2),.bb-align-icon i:nth-child(4){width:12px}
.bb-align-icon.center{align-items:center}.bb-align-icon.right{align-items:flex-end}
.bb-image-resize-handle{position:absolute;z-index:12;width:15px;height:15px;border:2px solid #fff;border-radius:4px;background:#8B0801;box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:nwse-resize;touch-action:none}
.bb-editor img.bb-image-selected{outline:2px solid #8B0801;outline-offset:3px}
.bb-dialog-backdrop{position:fixed;inset:0;z-index:3000;background:rgba(139,8,1,.38);display:flex;align-items:center;justify-content:center;padding:20px}
.bb-dialog{width:min(420px,100%);background:#fff;border-radius:16px;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.22)}
.bb-dialog h3{margin:0 0 5px;font-size:1.2rem}.bb-dialog p{margin:0 0 18px;color:#6f6a67}
.bb-dialog-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bb-dialog-fields label{display:grid;gap:6px;font-weight:650}.bb-dialog-fields input{width:100%;box-sizing:border-box;border:1px solid #d9d5d2;border-radius:9px;padding:10px 12px;font:inherit}
.bb-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.bb-dialog-actions button{border:1px solid #d6d0cc;border-radius:9px;background:#fff;padding:9px 14px;font:inherit;cursor:pointer}.bb-dialog-actions .primary-button{background:#8B0801;color:#fff;border-color:#8B0801}
@media(max-width:600px){.bb-dialog-fields{grid-template-columns:1fr}.bb-image-resize-handle{width:18px;height:18px}}

/* v32.0 – Schwarzes Brett: Linkdialog */
.bb-dialog-fields-single{grid-template-columns:1fr}.bb-dialog-fields input[type=url]{width:100%;box-sizing:border-box;border:1px solid #d9d5d2;border-radius:9px;padding:11px 12px;font:inherit;outline:none}.bb-dialog-fields input[type=url]:focus{border-color:#8B0801;box-shadow:0 0 0 3px rgba(139,8,1,.12)}

/* v32.0 – Schwarzes Brett: Monitor-Standard und mobile Lesbarkeit */
.bb-editor{font-size:36pt;line-height:1.25}
.bb-content{font-size:36pt;line-height:1.3}
/* Auf kleinen Displays wird die Monitor-Typografie bewusst auf eine lesbare
   Mobilgröße normalisiert. Inhalt, Farben, Ausrichtung und Tabellen bleiben erhalten. */
@media(max-width:680px){
  .bb-content{font-size:18px!important;line-height:1.45}
  .bb-content p,.bb-content div,.bb-content span,.bb-content font,.bb-content li,.bb-content td,.bb-content th,.bb-content blockquote,.bb-content a{font-size:inherit!important}
  .bb-content h2{font-size:26px!important;line-height:1.25}
  .bb-content h3{font-size:22px!important;line-height:1.3}
  .bb-content table{font-size:16px!important;display:block;max-width:100%;overflow-x:auto}
  .bb-editor{font-size:24px;line-height:1.4}
}

/* v32.0 – Zielgruppen Schwarzes Brett */
.bb-audience{border:1px solid #e0d8d8;border-radius:10px;padding:12px 14px;display:flex;flex-wrap:wrap;gap:10px 18px;background:#faf8f8}.bb-audience legend{font-weight:700;padding:0 5px}.bb-audience-main{display:flex!important;grid-template-columns:none!important;align-items:center;gap:7px}.bb-grade-options{display:flex;gap:7px;flex-wrap:wrap;width:100%;padding-left:4px}.bb-grade-options label{display:flex!important;grid-template-columns:none!important;align-items:center;gap:5px;font-weight:600;background:#fff;border:1px solid #e0d8d8;border-radius:999px;padding:6px 10px}.bb-audience-note{font-size:.78rem;color:#736766;background:#f4eeee;border-radius:999px;padding:4px 8px;width:max-content;margin:10px 20px -8px}.bb-review-meta{display:flex;align-items:center;gap:8px}.bb-review-meta .bb-audience-note{margin:0}.blackboard>.blackboard-compose{margin-top:22px;margin-bottom:0}

/* v32.0 – Newsboard */
.nb-access{margin-bottom:22px}.nb-access-list{display:grid;gap:9px}.nb-access-row{display:grid;grid-template-columns:minmax(170px,1.4fr) minmax(130px,.7fr) auto auto auto;gap:9px;align-items:center}.nb-access-row input:not([type=checkbox]){min-height:40px;border:1px solid #dfd8d8;border-radius:9px;padding:0 11px;font:inherit;background:#fff}.nb-access-row button{min-height:38px;border:1px solid #dcd4d4;border-radius:9px;background:#fff;padding:0 12px;font:inherit;cursor:pointer}.nb-access-row .primary-button{border-color:#8B0801;background:#8B0801;color:#fff;font-weight:700}.nb-active{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#695a59;font-size:13px}.nb-access-new{padding-top:10px;border-top:1px solid #ece7e7}.nb-institution-name{color:#736564;font-size:13px}.newsboard-access-dashboard{max-width:760px}.newsboard-access-dashboard .dashboard-grid{grid-template-columns:minmax(0,360px)}
@media(max-width:760px){.nb-access-row{grid-template-columns:1fr 1fr}.nb-access-row .nb-active{grid-column:1}.nb-access-row button{width:100%}.nb-access-row .bb-overview-delete{width:40px}.nb-access-new{grid-template-columns:1fr}}

/* v32.0 – Newsboard-Zugänge */
.nb-access-list{display:grid;gap:14px;padding:18px 22px 22px}
.nb-access-row{display:grid;grid-template-columns:minmax(220px,2fr) minmax(190px,1fr) auto auto auto;gap:12px;align-items:center}
.nb-access-new{margin-top:8px;padding-top:18px;border-top:1px solid var(--border,#e0d8d8)}
.nb-code-auto{min-height:46px;display:flex;align-items:center;padding:0 14px;border:1px dashed #d5cac9;border-radius:10px;color:#736766;background:#faf8f8;font-size:.92rem}
@media(max-width:760px){.nb-access-list{padding:16px}.nb-access-row{grid-template-columns:1fr}.nb-access-row button{width:100%}}

/* v32.1 – bestätigte Aktionen */
.gg-delete-icon{font-size:24px;font-weight:800}

/* v32.2 – aktuelle Meldungen und Vertretungen einzeilig */
.dashboard-current-item{padding:9px 18px}
.dashboard-current-item>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.personal-substitution-row,.personal-substitution-row.supervision-substitution-row{display:flex;align-items:center;gap:7px;overflow-x:auto;white-space:nowrap;padding:8px 10px}
.personal-substitution-row>div{padding:0!important;border:0!important;flex:0 0 auto}
.personal-substitution-row .sub-hour{max-width:none}
.personal-sub-main{flex-wrap:nowrap}
.personal-sub-main .sub-note{width:auto}
@media(max-width:600px){.personal-substitution-list{gap:6px}}
/* Gruppen: Löschaktion für Manager */
.group-delete-form{margin:4px 0 12px}.group-delete-button{font:inherit;font-size:13px;font-weight:650;color:#9d352e;background:#fff;border:1px solid #e1b9b3;border-radius:8px;padding:7px 11px;cursor:pointer}.group-delete-button:hover,.group-delete-button:focus-visible{background:#fff0ed}


/* Telli – Schüleransicht */
.telli-student-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:28px}
.telli-project{display:flex;flex-direction:column;align-items:flex-start;min-height:150px;padding:24px 26px;background:#fff;border:1px solid #ddd8d5;border-radius:14px;box-shadow:0 2px 8px rgba(139,8,1,.04)}
.telli-project h2{margin:0 0 24px;font-size:1.25rem;line-height:1.3;overflow-wrap:anywhere}
.telli-project .button{margin-top:auto;text-decoration:none!important}
.telli-project .button:hover,.telli-project .button:focus,.telli-project .button:visited{text-decoration:none!important;color:#fff}
.telli-empty{margin-top:28px;padding:28px;background:#fff;border:1px solid #ddd8d5;border-radius:14px}
@media(min-width:1080px){.telli-student-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.telli-student-grid{grid-template-columns:1fr}.telli-project{min-height:0}}

/* Telli Schüler – v32.52 */
.telli-student-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;gap:22px!important;margin-top:28px!important}
.telli-student-grid .telli-project{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-height:160px!important;padding:26px!important;background:#fff!important;border:1px solid #ddd8d5!important;border-radius:16px!important;box-shadow:none!important}
.telli-student-grid .telli-project h2{margin:0 0 26px!important}
.telli-student-grid .telli-project a.button{margin-top:auto!important;text-decoration:none!important}
.telli-student-grid .telli-project a.button:hover,.telli-student-grid .telli-project a.button:focus,.telli-student-grid .telli-project a.button:visited{text-decoration:none!important}

/* GG next v33.3 – gemeinsames Farbmodell */
:root{--gg-primary:#8B0801;--gg-primary-hover:#6D0601;--gg-primary-soft:#f9eeed;--gg-primary-line:#e5c4c2;--mu-red:#8B0801;accent-color:var(--gg-primary)}
.app-header{background:var(--gg-primary);color:#fff;border-bottom-color:var(--gg-primary-hover)}
.app-header .brand,.app-header .header-version,.app-header .header-user-badge{color:#fff}
.app-header .hamburger-button{border-color:#ffffff70;background:#ffffff16}
.app-header .hamburger-button span{background:#fff}
.app-header .header-home-link,.app-header .header-settings-link,.app-header .header-logout-button{color:#fff}
.app-header .header-home-link svg,.app-header .header-settings-link svg,.app-header .header-logout-button svg{stroke:#fff}
.app-header .hamburger-panel a{color:#352a29}
.app-header .hamburger-panel a:hover,.app-header .hamburger-panel a.active{background:var(--gg-primary-soft);color:var(--gg-primary)}
.login button{background:var(--gg-primary)}
.login button:hover{background:var(--gg-primary-hover)}
.login input:focus{outline-color:var(--gg-primary)}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--gg-primary)}

/* v33.4 */
.app-header .header-user-badge{background:#fff;color:#8B0801}

/* Einheitliche sekundäre Aktion in Formularen und Dialogen. */
body .gg-cancel-button.gg-cancel-button{background:#f0f0f0!important;color:#333!important;border:1px solid #d0d0d0!important;box-shadow:none!important;text-decoration:none!important}
body .gg-cancel-button.gg-cancel-button:hover{background:#e4e4e4!important;color:#222!important;border-color:#b8b8b8!important}
body .gg-cancel-button.gg-cancel-button:focus-visible{outline:2px solid #888!important;outline-offset:2px}

/* Use the header gear consistently in every settings control. */
html body svg.gg-settings-icon,.dashboard-settings .tile-setting .dashboard-tile-icon svg.gg-settings-icon,.parent-dashboard-groups .dashboard-tile-icon svg.gg-settings-icon{display:inline-block;flex:none;width:19px;height:19px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
