
/* ===== 01-base.css ===== */
/**
 * NotenWeb - Stylesheet
 * Design: Midnight Amber — deep navy authority meets warm amber precision
 * Schrift: Lexend lokal (CSP font-src 'self', keine Google Fonts)
 */

@font-face {
    font-family: 'Lexend';
    src: url('/fonts/lexend/Lexend.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core palette */
    --primary: #1845c8;
    --primary-dark: #1236a0;
    --primary-light: #6a9de8;
    --secondary: #3558c4;
    --secondary-light: #8aaae6;

    /* Amber accent — the signature color */
    --accent: #f5a623;
    --accent-dark: #d88b10;
    --accent-light: #fde8b8;

    /* Semantic colors */
    --success: #1a9e6e;
    --success-light: #d1f5e8;
    --danger: #e5483a;
    --danger-light: #fde8e6;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --info: #0891b2;
    --info-light: #d0f0f9;

    /* Neutrals */
    --light: #e6eff9;
    --light-bg: #edf4fc;
    --warm-white: #ffffff;
    --dark: #080f24;
    --dark-text: #0e1829;
    --text: #0e1829;
    --text-muted: #5a6b8a;
    --text-secondary: #7d90b0;

    /* Surfaces */
    --card-bg: #ffffff;
    --nav-bg: #ffffff;
    --page-bg: #c8d8ee;
    --bg-surface: #f7fafd;

    /* Borders */
    --border: #cdd9ee;
    --border-light: #dce8f5;
    --border-dark: #1845c8;

    /* Header */
    --header-bg: #080f24;
    --header-gradient: linear-gradient(105deg, #080f24 0%, #0d1e50 55%, #162d78 100%);

    /* Formularfelder — pastellgelb (niedrige Spezifität via :where, überschreibbar) */
    --form-field-bg: #fff9e6;
    --form-field-bg-focus: #fffef8;
    --form-field-bg-disabled: #f3ead8;
}

/* Pastellgelber Standard für textähnliche Eingaben (:where = Spezifität 0) */
:where(textarea, select, input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="image"]):not([type="range"]):not([type="color"])) {
    background-color: var(--form-field-bg);
}

body {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--page-bg);
    background-image: radial-gradient(circle, rgba(8,15,36,0.11) 1px, transparent 1px);
    background-size: 22px 22px;
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}


/* ===== 02-layout.css ===== */
/* === Header === */
.main-header {
    background: var(--header-gradient);
    color: white;
    padding: 0.9rem 2rem;
    box-shadow: 0 2px 20px rgba(8,15,36,0.5);
    border-bottom: 2px solid rgba(245,166,35,0.4);
    position: relative;
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #f5a623 0%, #1845c8 60%, transparent 100%);
    opacity: 0.6;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '◆';
    color: #f5a623;
    font-size: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.01em;
}

.nav-toggle {
    display: none;
    position: relative;
    z-index: 140;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: white;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(245,166,35,0.45);
    transform: translateY(-1px);
}

.nav-toggle.is-active {
    background: rgba(245,166,35,0.18);
    border-color: rgba(245,166,35,0.6);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* === Navigation === */
.main-nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 8px rgba(8,15,36,0.06);
    position: relative;
}

.nav-overlay,
.nav-mobile-head {
    display: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    align-items: stretch;
    min-width: 0;
    overflow-x: auto;
}

.nav-link {
    padding: 0.9rem 1.4rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-link--icon {
    min-width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.1rem;
}

.nav-link-icon {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 700;
}

.nav-link-icon__svg {
    display: block;
}

.context-switcher {
    display: inline-flex;
    align-items: center;
    margin-right: 0.75rem;
}

.context-switcher select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: inherit;
    font: inherit;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-link:hover {
    background: #fff9f0;
    border-bottom-color: var(--accent-light);
    color: var(--accent-dark);
}

.nav-link.active {
    color: var(--accent-dark);
    border-bottom-color: var(--accent);
    background: #fff9f0;
    font-weight: 700;
}

/* === Container & Layout === */
.container {
    max-width: 1400px;
    margin: 1.75rem auto;
    padding: 0 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--dark);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* === Cards === */
.card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.6rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(8,15,36,0.04), 0 4px 16px rgba(8,15,36,0.06);
}

.card h2, .card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.4rem;
    font-family: 'Lexend', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ── Primary: Amber capsule — the signature action button ── */
.btn-primary {
    background: linear-gradient(135deg, #f5a623 0%, #e8920c 100%);
    color: #1a0f00;
    font-weight: 700;
    border: 1px solid rgba(232,146,12,0.3);
    box-shadow: 0 2px 8px rgba(245,166,35,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fbb534 0%, #f5a020 100%);
    box-shadow: 0 4px 16px rgba(245,166,35,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #e8920c 0%, #d8830a 100%);
    box-shadow: 0 1px 4px rgba(245,166,35,0.3);
}

/* ── Secondary: Royal blue solid ── */
.btn-secondary {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary-dark);
    box-shadow: 0 2px 8px rgba(24,69,200,0.25);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(24,69,200,0.4);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(24,69,200,0.2);
}

/* ── Success: Emerald ── */
.btn-success {
    background: linear-gradient(135deg, #1db980 0%, #15976a 100%);
    color: white;
    border: 1px solid rgba(21,151,106,0.3);
    box-shadow: 0 2px 8px rgba(26,158,110,0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #22cc8e 0%, #1aaa78 100%);
    box-shadow: 0 4px 14px rgba(26,158,110,0.45);
    transform: translateY(-1px);
}

.btn-success:active {
    transform: translateY(0);
}

/* ── Danger: Bold red ── */
.btn-danger {
    background: linear-gradient(135deg, #e5483a 0%, #c73428 100%);
    color: white;
    border: 1px solid rgba(199,52,40,0.3);
    box-shadow: 0 2px 8px rgba(229,72,58,0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f05a4b 0%, #d94035 100%);
    box-shadow: 0 4px 14px rgba(229,72,58,0.45);
    transform: translateY(-1px);
}

.btn-danger:active {
    transform: translateY(0);
}

/* ── Outline: Ghost with amber border ── */
.btn-outline {
    background: #ffffff;
    border: 1.5px solid var(--accent);
    color: var(--accent-dark);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent-light);
    border-color: var(--accent-dark);
    color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(245,166,35,0.2);
}

.btn-outline:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-block {
    display: flex;
    width: 100%;
}


/* ===== 03-forms.css ===== */
/* === Forms === */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #c8d9f0;
    border-radius: 6px;
    background-color: var(--form-field-bg);
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.form-control:focus {
    outline: none;
    border-color: #6aabec;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
    background-color: var(--form-field-bg-focus);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* === Tables === */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(8,15,36,0.04), 0 4px 16px rgba(8,15,36,0.06);
    border: 1px solid var(--border-light);
}

.data-table thead {
    background: var(--dark);
    color: white;
}

.data-table th {
    padding: 0.9rem 1.1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(200,215,240,0.9);
}

.data-table th:first-child {
    border-left: 3px solid var(--accent);
}

.data-table td {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid #edf3fb;
    color: var(--dark-text);
    font-weight: 400;
    font-size: 0.9rem;
}

.data-table tbody tr:nth-child(even) {
    background: #f7fafd;
}

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

.data-table .actions {
    display: flex;
    gap: 0.5rem;
}

/* === Alerts === */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid;
    border-left: 4px solid;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: var(--success-light);
    border-color: #a7dfc9;
    border-left-color: var(--success);
    color: #0e5c3a;
}

.alert-error, .alert-danger {
    background: var(--danger-light);
    border-color: #f5c0bb;
    border-left-color: var(--danger);
    color: #7c1c14;
}

.alert-warning {
    background: var(--warning-light);
    border-color: #fcd89e;
    border-left-color: var(--warning);
    color: #7a4208;
}

.alert-info {
    background: var(--info-light);
    border-color: #a0d8ea;
    border-left-color: var(--info);
    color: #054a60;
}

/* === Text Utilities === */
.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}


/* ===== 05-dashboard.css ===== */
/* === Dashboard Cards === */
.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.8rem 1.6rem;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(8,15,36,0.04), 0 4px 14px rgba(8,15,36,0.05);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.dashboard-card:hover {
    border-color: var(--border);
    box-shadow: 0 4px 20px rgba(8,15,36,0.1), 0 0 0 2px rgba(245,166,35,0.15);
    transform: translateY(-3px);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.9rem;
    display: block;
}

.dashboard-card h3 {
    color: var(--dark);
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 1rem;
}

.dashboard-plusminus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 240px));
    gap: 1.1rem;
    margin-bottom: 1.6rem;
}

.dashboard-plusminus-link {
    text-decoration: none;
}

.dashboard-plusminus-card {
    min-height: 210px;
    aspect-ratio: 1 / 1;
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(24,69,200,0.12);
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    box-shadow: 0 1px 3px rgba(8,15,36,0.04), 0 10px 24px rgba(8,15,36,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
}

.dashboard-plusminus-card:hover {
    transform: translateY(-3px);
    border-color: rgba(24,69,200,0.24);
    box-shadow: 0 10px 24px rgba(8,15,36,0.1);
}

.dashboard-plusminus-card__type {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 0.04em;
}

.dashboard-plusminus-card__class {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

.dashboard-plusminus-card h2 {
    margin: 0;
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 1.25;
    word-break: break-word;
}

.dashboard-stats-card {
    margin-top: 1.6rem;
}

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

/* === Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    font-family: 'Lexend', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--primary);
    color: white;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-warning {
    background: var(--accent-light);
    color: var(--accent-dark);
}

/* === Grade Display === */
.grade-display {
    font-size: 1.4rem;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    display: inline-block;
    letter-spacing: -0.02em;
}

.grade-1 { background: #d0f5e6; color: #0a5c35; border: 1px solid #9de4c0; }
.grade-2 { background: #d0edf5; color: #0a4a5c; border: 1px solid #9dd4e4; }
.grade-3 { background: #fef3c7; color: #7a4208; border: 1px solid #fcd899; }
.grade-4 { background: #fde8e6; color: #7c1c14; border: 1px solid #f5b8b2; }
.grade-5 { background: #fbd4d0; color: #7c1c14; border: 1px solid #f5a09a; }
.grade-6 { background: #e5483a; color: white; border: 1px solid #c73428; }


/* ===== 13-responsive.css ===== */
/* Tablet (600–1200 px) */
@media (min-width:600px) and (max-width:1200px){
    .schueler-page{padding:1.35rem 1rem 2.5rem}
    .schueler-search-input{font-size:16px;min-height:48px}
    .schueler-result-item{min-height:52px;font-size:0.95rem}
    .schueler-result-avatar{width:2.5rem;height:2.5rem;border-radius:10px;font-size:.8rem}
}

/* Mobil (< 600 px) */
@media (max-width:599px){
    .schueler-page{padding:1rem .75rem 2rem}
    .schueler-search-card{padding:1.1rem 1rem}
    .schueler-search-input{font-size:16px;min-height:48px}
    .schueler-profile-bar{padding:.9rem 1rem;gap:.75rem}
    .schueler-subject-header{padding:.75rem .9rem}
    .schueler-canvas{height:auto}
}

/* ═══════════════════════════════════════════════════════════════════════════
   HANDY-STYLES (< 600 px) — Gesamte App Mobile-optimiert
   Ergänzt die bestehenden Tablet-Breakpoints (600–1200 px), die unberührt bleiben.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width:599px){
    /* Basis */
    html,body{overflow-x:hidden}
    body{font-size:14px}
    .container{margin:.75rem auto;padding:0 .75rem 1rem}

    /* Header + Navigation */
    .main-header{padding:.55rem .65rem}
    .header-content{gap:.4rem;align-items:center}
    .header-brand{gap:.45rem;min-width:0}
    .logo{font-size:.95rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
    .logo::before{font-size:.85rem}
    .nav-toggle{width:38px;height:38px;border-radius:10px;margin-left:.2rem}
    .nav-toggle span{width:16px}
    .user-info{gap:.35rem}
    .user-info .btn-sm{padding:.3rem .55rem;font-size:.7rem;min-height:34px;border-radius:7px}
    .user-info .btn-gear{width:34px;height:34px}
    .main-nav.is-open .nav-container{padding:.7rem .75rem .85rem;max-height:82vh}
    .nav-link{padding:.8rem .85rem;font-size:.9rem;border-radius:10px}

    /* Seitenkopf */
    .page-header{margin-bottom:1.2rem;gap:.65rem}
    .page-header h1{font-size:1.3rem}
    .page-header > div{gap:.4rem}
    .page-header > div .btn,
    .page-header > div a.btn{flex:1 1 100%;min-height:44px}

    /* Karten + Grids */
    .card{padding:.9rem;border-radius:11px;margin-bottom:1rem}
    .card-grid{grid-template-columns:1fr;gap:1rem}
    .dashboard-card{padding:1.2rem 1rem}
    .dashboard-card .icon{font-size:2.1rem;margin-bottom:.6rem}
    .dashboard-card h3{font-size:.95rem}
    .dashboard-plusminus-grid{grid-template-columns:1fr;gap:.9rem}
    .dashboard-plusminus-card{min-height:170px;aspect-ratio:auto;padding:1.1rem}
    .dashboard-stats-grid{grid-template-columns:repeat(2,1fr);gap:.6rem}
    .stat-box{padding:.85rem}
    .stat-box .stat-number{font-size:1.65rem}
    .stat-box .stat-label{font-size:.7rem}

    /* Buttons */
    .btn{min-height:42px;padding:.55rem 1rem;font-size:.88rem}
    .btn-sm{min-height:34px;padding:.32rem .7rem;font-size:.78rem}
    .btn-xl{min-height:48px;padding:.7rem 1.3rem;font-size:.98rem}

    /* Formulare */
    .form-row{grid-template-columns:1fr;gap:.8rem}
    .form-control{font-size:16px;padding:.65rem .75rem;min-height:44px}
    select.form-control{min-height:44px}
    textarea.form-control{min-height:90px}

    /* Tabellen */
    .data-table{font-size:.82rem;display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
    .data-table th,
    .data-table td{padding:.55rem .55rem}
    .data-table .actions{flex-wrap:wrap;gap:.35rem}

    /* Alerts */
    .alert{padding:.7rem .9rem;font-size:.85rem}

    /* === Klassen-Overview === */
    .archiv-cards{gap:.75rem}
    .archiv-card{min-width:0;max-width:100%;width:100%;padding:1rem 1.1rem}
    .archiv-intro{padding:1.1rem;gap:.85rem;flex-direction:column;text-align:center}
    .archiv-intro-icon{font-size:2.4rem}
    .archiv-detail-header{flex-direction:column;gap:.75rem}
    .archiv-class-title{font-size:1.15rem}
    .archiv-tabs{gap:.3rem;padding-bottom:.35rem;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
    .archiv-tab{padding:.45rem .8rem;font-size:.82rem;white-space:nowrap;flex-shrink:0}

    /* === Noteneingabe === */
    .grades-entry-container{padding:.75rem 0 4rem}
    .grades-header{flex-direction:column;align-items:stretch;padding:.85rem;gap:.75rem}
    .grades-selectors{flex-direction:column;align-items:stretch;gap:.6rem;width:100%}
    .grades-select,.grades-select--topic{min-width:100%;max-width:100%;font-size:16px;min-height:44px;padding:.55rem .7rem}
    .grades-nav-arrows{flex-direction:row;width:100%;gap:.4rem}
    .grades-nav-arrows .btn-icon{flex:1 1 0;min-height:40px;width:auto;height:auto}
    .grades-actions{width:100%;justify-content:stretch;flex-wrap:wrap;gap:.35rem}
    .grades-actions .btn-icon{flex:1 1 calc(50% - .18rem);min-height:40px;width:auto;height:auto}
    .grades-main{grid-template-columns:1fr;gap:.85rem;min-height:0}
    .grades-exams-panel,.grades-students-panel{padding:.85rem}
    .exams-table th,.exams-table td{padding:.5rem .45rem;font-size:.78rem}
    .exam-row.new-exam .exam-topic-input{font-size:16px;min-height:44px}
    .exam-date-display{min-height:2.4rem;font-size:.78rem;padding:.4rem .55rem}
    .students-grid{grid-template-columns:1fr;gap:.5rem}
    .student-grade-row{padding:.4rem .55rem;gap:.45rem}
    .student-name{font-size:.92rem}
    .grade-input{width:68px;padding:.5rem .45rem;font-size:1rem}
    .grade-input-wrapper{gap:.3rem}
    .final-grade-display{padding:1rem .9rem .85rem}
    .final-grade-value{font-size:1.85rem}
    .final-grade-student-name{font-size:1.1rem}

    /* Bewertungen */
    .interactive-grading-widget{padding:.55rem .7rem}
    .criterion-header{flex-direction:column;align-items:flex-start;gap:.25rem}
    .criterion-name{font-size:.95rem}
    .point-btn{width:40px;height:40px;min-width:40px;min-height:40px;font-size:.92rem}
    .point-buttons{gap:.32rem;padding:.45rem}
    .grading-controls{gap:.4rem;flex-wrap:wrap}
    .override-input-wrapper{width:66px}
    .na-btn{min-height:38px;padding:.4rem .55rem;font-size:.82rem}
    #criteria-container.criteria-grid-view{grid-template-columns:1fr;gap:.5rem}

    /* Plus/Minus */
    .plusminus-active-header{flex-direction:column;gap:.75rem}
    .plusminus-active-actions{justify-content:flex-start;width:100%}
    .plusminus-active-actions .btn{flex:1 1 auto}
    .rating-cell{width:44px;height:32px;font-size:.78rem}

    /* === Tools: Startseite === */
    .tools-page{padding:1rem .75rem 1.5rem;max-width:100%}
    .tools-page-header{margin-bottom:1.15rem}
    .tools-page-title{font-size:1.35rem}
    .tools-page-sub{font-size:.85rem}
    .tools-grid{grid-template-columns:repeat(2,1fr);gap:.7rem}
    .tool-card{padding:1.2rem .6rem 1.1rem;border-radius:14px;gap:.3rem;min-height:122px;-webkit-tap-highlight-color:rgba(24,69,200,.12)}
    .tool-card:active{transform:scale(.97)}
    .tool-icon{font-size:2.2rem}
    .tool-label{font-size:.9rem;line-height:1.2}
    .tool-desc{font-size:.7rem;line-height:1.25}

    /* === Tools: Vollbild-Rahmen === */
    .tool-fs-bar{
        padding:.55rem max(.6rem,env(safe-area-inset-right)) .55rem max(.6rem,env(safe-area-inset-left));
        padding-top:max(.55rem,env(safe-area-inset-top));
        gap:.6rem;
        min-height:48px
    }
    .tool-back{padding:.4rem .75rem;font-size:.82rem;min-height:38px;border-radius:8px}
    .tool-fs-title{font-size:.98rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
    .tool-fs-body{
        padding:1rem max(.75rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-left));
        max-width:100%
    }
    .tool-fs-centered{padding-top:1.25rem;gap:1.1rem}
    .tool-fs .form-control,.tool-fs select{font-size:16px;min-height:44px}
    .tool-fs .btn-xl{min-height:48px;padding:.7rem 1.25rem;font-size:.98rem}
    .settings-bar{gap:.75rem;margin-bottom:1rem}
    .btn-row{gap:.45rem}
    .row-gap{gap:.75rem}

    /* QR-Generator */
    .tool-fs-body--qr{padding-top:.75rem}
    .qr-tool-header{margin-bottom:1rem}
    .qr-tool-lead{font-size:.88rem;line-height:1.5}
    .qr-tool-grid{grid-template-columns:1fr;gap:.9rem}
    .qr-panel,.qr-preview{padding:1rem .95rem;gap:.75rem}
    .qr-panel-title{font-size:.95rem}
    .qr-options{grid-template-columns:1fr;gap:.6rem}
    .qr-textarea{min-height:6rem;font-size:16px}
    .qr-color-input{max-width:78px;height:40px}
    .qr-actions{gap:.45rem}
    .qr-actions .btn{min-width:0;flex:1 1 auto;min-height:44px;font-size:.85rem;padding:.55rem .75rem}
    .qr-placeholder{min-height:220px}
    .qr-placeholder-svg{width:90px;height:90px}
    .qr-placeholder-title{font-size:.98rem}
    .qr-placeholder-text{font-size:.82rem}
    .qr-link-display{font-size:.76rem;padding:.55rem .75rem}

    /* Timer */
    .timer-display{font-size:3.5rem}
    .timer-digit-input{width:5rem;font-size:1.7rem;min-height:46px;padding:.35rem;border-radius:10px}
    .timer-colon{font-size:2rem;padding-bottom:.45rem}
    .timer-presets{gap:.35rem}
    .timer-presets .btn{min-height:40px;padding:.4rem .7rem;font-size:.8rem;min-width:48px}
    .timer-bar-wrap{max-width:100%;height:11px}
    #tool-timer .tool-timer-wrap{gap:1rem;max-width:100%}
    #tool-timer .timer-settings-panel{padding:.8rem .9rem .95rem;border-radius:14px}
    #tool-timer .timer-digit-input{width:4.5rem;font-size:1.6rem;border-radius:10px}
    #tool-timer .timer-colon{font-size:1.8rem;padding-bottom:.45rem}
    #tool-timer .timer-focus-card{padding:1.25rem .95rem 1.15rem;border-radius:18px}
    #tool-timer .timer-display-stack{min-height:5rem}
    #tool-timer .timer-display-ring{width:min(14rem,72vw);height:min(14rem,72vw);max-width:210px;max-height:210px}
    #tool-timer .timer-display{font-size:clamp(2.6rem,13vw,3.8rem)}
    #tool-timer .timer-bar-wrap--tool{height:11px}

    /* Glücksrad */
    .wheel-layout{flex-direction:column;gap:1rem}
    .wheel-sidebar{width:100%;gap:.75rem}
    .wheel-student-list{max-height:min(30vh,260px)}
    .wheel-check{min-height:42px;padding:.35rem .55rem;font-size:.88rem;border-radius:7px}
    .wheel-check input{width:18px;height:18px}
    .wheel-stage{width:100%}
    .wheel-canvas-wrap{width:100%;display:flex;justify-content:center}
    #wheelCanvas{width:min(88vw,380px)!important;height:min(88vw,380px)!important;max-width:100%}
    .wheel-pointer-right{right:-16px;font-size:1.75rem}
    .winner-box{padding:2rem 2.25rem;max-width:88vw}
    .winner-name{font-size:1.85rem}

    /* Würfel */
    .dice-count-row{gap:.65rem}
    .dice-count-btns{gap:.28rem;flex-wrap:wrap;justify-content:center}
    .dice-count-btns .btn{min-width:40px;min-height:40px;padding:.35rem .55rem;font-size:.85rem}
    .dice-face{font-size:3.6rem}
    .dice-result{gap:.7rem;min-height:70px}
    .dice-sum{font-size:1.25rem}

    /* Zufallsgruppen + Partnertool — auf Handy durchgehender Seiten-Scroll,
       nicht zwei verschachtelte Scroller. Sonst drueckt die linke Spalte
       das Ergebnis-Panel auf 0 Hoehe und die Gruppen sind unsichtbar. */
    #tool-groups.tool-fs.is-active,
    #tool-partner.tool-fs.is-active{overflow-y:auto;max-height:none}
    #tool-groups.is-active>.tool-fs-body.grp-layout,
    #tool-partner.is-active>.tool-fs-body.grp-layout{flex:0 0 auto;min-height:0;overflow:visible;padding:.5rem .65rem 1rem}
    .grp-layout{flex-direction:column;min-height:0;height:auto}
    .grp-pane-left{width:100%;border-right:none;border-bottom:1px solid var(--border);padding:.85rem .9rem;gap:.8rem;overflow-y:visible;flex-shrink:1}
    .grp-pane-right{padding:.75rem .85rem;overflow:visible;min-height:0}
    .grp-pane-right-inner{flex:0 0 auto;min-height:0}
    .grp-results-panel{min-height:0;overflow:visible}
    .grp-results-grid-wrap{flex:0 0 auto;min-height:0;overflow:visible;padding-right:0}
    .grp-intro-title{font-size:1rem}
    .grp-intro-text{font-size:.82rem}
    .grp-card-panel{padding:.85rem .9rem;border-radius:12px;gap:.7rem}
    .grp-count-btn{width:42px;height:42px;border-radius:10px;font-size:1.15rem}
    .grp-count-input{width:64px;font-size:1.05rem;min-height:42px}
    .grp-mode-tab{min-height:42px;padding:.45rem .7rem;font-size:.82rem}
    .grp-student-list{max-height:min(28vh,220px)}
    .grp-student-row{min-height:42px;padding:.4rem .55rem}
    .grp-student-name{font-size:.85rem}
    .grp-absent-btn{min-height:36px;padding:.3rem .65rem;font-size:.74rem}
    .grp-settings-btn{min-height:44px;padding:.6rem .95rem;font-size:.88rem}
    .grp-actions{gap:.5rem}
    .grp-actions .btn{min-height:46px;font-size:.92rem}
    .grp-result--cols-3{grid-template-columns:1fr;gap:.6rem}
    .grp-result-toolbar{padding:.65rem .8rem;gap:.5rem}
    .grp-result-title{font-size:.85rem}
    .grp-result-toolbar-actions{width:100%;justify-content:flex-start}
    .grp-result-toolbar-actions .btn{flex:1 1 auto;min-height:38px;padding:.35rem .6rem;font-size:.78rem}
    .grp-card-head{padding:.65rem .75rem .5rem}
    .grp-card-num{min-width:1.8rem;height:1.8rem;font-size:.78rem}
    .grp-card-label{font-size:.95rem}
    .grp-card-members{padding:0 .75rem .75rem}
    .grp-member-chip{padding:.4rem .55rem;font-size:.82rem}
    .grp-member-initial{width:1.45rem;height:1.45rem;font-size:.65rem}
    .grp-placeholder{min-height:min(40vh,300px);padding:1.25rem 1rem}
    .grp-placeholder-svg{width:80px;height:80px}
    .grp-placeholder-title{font-size:1rem}
    .grp-placeholder-text{font-size:.82rem}
    .grp-placeholder-tips{font-size:.76rem}
    .ptn-card{padding:.8rem .9rem;gap:.65rem;flex-direction:column;align-items:stretch}
    .ptn-card-badge{width:24px;height:24px;font-size:.72rem}
    .ptn-members{flex-direction:column;align-items:stretch;gap:.25rem}
    .ptn-link{display:none}
    .ptn-member{font-size:.85rem}

    /* Einstellungs-Modal (Exklusionen / Paare) */
    .excl-modal-backdrop{padding:.5rem}
    .excl-modal{max-height:94vh;border-radius:12px}
    .excl-modal-header{padding:.85rem 1rem;gap:.65rem}
    .excl-modal-title{font-size:1rem}
    .excl-modal-rule-summary{font-size:.74rem}
    .excl-modal-x{width:40px;height:40px;font-size:1.2rem}
    .excl-modal-lead{padding:.7rem 1rem;font-size:.8rem}
    .excl-modal-legend{padding:.5rem 1rem;gap:.5rem}
    .excl-modal-legend-item{font-size:.72rem}
    .excl-modal-columns{grid-template-columns:1fr;max-height:none}
    .excl-modal-col{border-right:none;border-bottom:1px solid var(--border-light)}
    .excl-modal-col--right{border-bottom:none}
    .excl-modal-col-head{padding:.5rem .8rem;font-size:.68rem}
    .excl-modal-left-list,
    .excl-modal-right-list{padding:.45rem .55rem;max-height:min(38vh,320px);min-height:140px}
    .excl-modal-pick{padding:.5rem .6rem;font-size:.84rem;min-height:44px;border-radius:9px}
    .excl-modal-pick-initial{width:1.8rem;height:1.8rem;font-size:.64rem}
    .excl-modal-footer{padding:.7rem 1rem}
    .pair-row{padding:.5rem .65rem;min-height:44px;gap:.45rem}
    .pair-btn{width:40px;height:40px;min-width:40px;min-height:40px;font-size:1.05rem;border-radius:9px}
    .pair-btns{gap:.35rem}

    /* Zufallsreihenfolge */
    .tool-fs-body--order{max-width:100%}
    .order-lead{font-size:.85rem}
    .order-list{columns:1;gap:.5rem}
    .order-list li{padding:.45rem .55rem;font-size:.88rem}
    .order-num{width:26px;height:26px;font-size:.72rem}
    .order-panel{gap:1rem}
    .order-current-card{min-height:8rem;padding:1.25rem .9rem;border-radius:16px}
    .order-current-name{font-size:clamp(1.15rem,5.5vw,1.55rem)}
    .order-actions{gap:.5rem}
    .order-actions .btn{flex:1 1 auto;min-height:44px;font-size:.88rem}
    .order-past-list{max-height:min(32vh,240px)}

    /* Stoppuhr */
    .sw-laps{max-height:min(35vh,240px)}
    .sw-lap{padding:.45rem .75rem;font-size:.85rem}

    /* Zufallszahl */
    .random-range{flex-direction:column;align-items:stretch;gap:.55rem}
    .random-range .form-control{font-size:16px;min-height:44px}
    .random-result{font-size:4.5rem}
    .random-history{gap:.35rem;max-width:100%}
    .rn-hist{padding:.2rem .55rem;font-size:.9rem}

    /* Punktetafel */
    .score-add-row{flex-direction:column;align-items:stretch;gap:.5rem}
    .score-add-row .form-control{font-size:16px;min-height:44px}
    .score-add-row .btn{min-height:44px}
    .score-board{max-width:100%;gap:.55rem}
    .score-card{padding:.75rem .85rem;gap:.55rem;border-radius:12px}
    .score-rank{font-size:1.25rem;width:32px}
    .score-name{font-size:.98rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .score-controls{gap:.4rem}
    .score-val{font-size:1.45rem;min-width:2.4rem}
    .score-btn{width:36px;height:36px;font-size:1rem;border-radius:8px}
    .score-del{font-size:.78rem}

    /* Lautstärke-Ampel */
    .noise-ampel{padding:1.1rem;gap:.75rem;border-radius:16px}
    .ampel-light{width:64px;height:64px}
    .noise-bar-wrap{width:min(100%,320px);height:14px}
    .noise-label{font-size:1.1rem}
    .noise-thresholds{font-size:.8rem}
    .noise-thresholds input,
    .noise-thresholds select{font-size:16px;min-height:40px}

    /* Zufallsfrage */
    .question-layout{flex-direction:column;gap:1rem}
    .question-left,.question-right{min-width:0;width:100%}
    .question-card{min-height:180px;padding:1.25rem;border-radius:14px}
    .question-card-text{font-size:1.05rem}
    .question-card-hint{font-size:.88rem}
    .question-card-meta{font-size:.76rem;margin-top:.85rem}
    .question-left textarea{font-size:16px;min-height:8rem}

    /* Pomodoro */
    .pom-mode-tabs{flex-wrap:wrap;border-radius:8px}
    .pom-tab{flex:1 1 50%;min-height:42px;padding:.5rem .75rem;font-size:.82rem}
    .pom-rounds{font-size:.95rem}
    .pom-settings{gap:1rem}

    /* Archiv-Kopieren Modal */
    .versetz-modal,.bulk-modal{border-radius:14px}
    .versetz-modal-header,.bulk-modal-header{padding:1rem 1.1rem .75rem}
    .versetz-modal-body,.bulk-modal-body{padding:1rem 1.1rem}
    .versetz-modal-footer,.bulk-modal-footer{padding:.75rem 1.1rem;flex-direction:column-reverse;gap:.5rem}
    .versetz-modal-footer .btn,.bulk-modal-footer .btn{width:100%}
    .bulk-class-row{padding:.8rem .9rem}
    .bulk-radio-group label{font-size:.78rem;padding:.3rem .6rem}

    /* Passwort-Modal */
    .pw-modal{max-width:calc(100vw - 1rem)}
    .pw-modal-header{padding:.9rem 1rem}
    .pw-modal-body{padding:1.1rem}
    .pw-modal-footer{padding:.85rem 1rem;flex-direction:column-reverse;gap:.45rem}
    .pw-modal-footer .btn{width:100%}

    /* Listen-Hub */
    .listen-hub__tabs{flex-direction:column;align-items:stretch;width:100%}
    .listen-hub__tab{width:100%;padding:.7rem .95rem;font-size:.9rem}

    /* Touch-Feedback */
    .btn:active,
    .tool-card:active,
    .nav-link:active{transform:scale(.98)}
}

/* Sehr schmale Handys (< 380 px) — zusätzliche Feinjustierung */
@media (max-width:379px){
    .tools-grid{grid-template-columns:1fr;gap:.65rem}
    .tool-card{min-height:100px;padding:1rem .7rem .9rem;flex-direction:row;justify-content:flex-start;text-align:left;gap:.75rem}
    .tool-icon{font-size:1.85rem}
    .tool-label{font-size:.92rem}
    .tool-desc{font-size:.72rem;flex:1}
    .dashboard-stats-grid{grid-template-columns:1fr}
    .user-name{display:none}
    .random-result{font-size:3.8rem}
    .dice-face{font-size:3rem}
    .timer-display{font-size:3rem}
    .qr-actions .btn{flex:1 1 100%}
}

/* ===== 14-sunshine.css ===== */
.sunshine-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(8, 15, 36, 0.96) 0%, rgba(16, 44, 119, 0.94) 62%, rgba(245, 166, 35, 0.88) 160%),
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.28) 0%, transparent 38%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 38px rgba(8, 15, 36, 0.18);
}

.sunshine-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -45% auto;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.38) 0%, rgba(245, 166, 35, 0) 72%);
    pointer-events: none;
}

.sunshine-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    align-items: end;
}

.sunshine-hero__eyebrow {
    display: inline-flex;
    margin-bottom: 0.85rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffe2a6;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sunshine-hero h1,
.sunshine-hero h2,
.sunshine-hero p,
.sunshine-hero li {
    color: inherit;
}

.sunshine-hero h1 {
    max-width: 10ch;
    margin-bottom: 0.75rem;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 0.94;
}

.sunshine-hero__lead {
    max-width: 58ch;
    margin-bottom: 1.35rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
}

.sunshine-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sunshine-hero__actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.sunshine-hero__meta {
    display: grid;
    gap: 0.8rem;
}

.sunshine-metric {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.sunshine-metric__label {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sunshine-metric__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.sunshine-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
}

.sunshine-module-grid,
.sunshine-snapshot-grid,
.sunshine-settings-grid,
.sunshine-users-grid {
    display: grid;
    gap: 1rem;
}

.sunshine-module-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sunshine-snapshot-grid,
.sunshine-settings-grid,
.sunshine-users-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sunshine-module-card {
    display: grid;
    gap: 0.8rem;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(237,244,252,0.96) 100%);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sunshine-module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(24, 69, 200, 0.24);
    box-shadow: 0 14px 28px rgba(8, 15, 36, 0.1);
}

.sunshine-module-card__icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(24, 69, 200, 0.12) 0%, rgba(245, 166, 35, 0.2) 100%);
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 800;
}

.sunshine-module-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.sunshine-module-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.sunshine-module-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
}

.sunshine-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.sunshine-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #edf3fb;
}

.sunshine-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sunshine-list__label {
    font-weight: 700;
    color: var(--dark);
}

.sunshine-list__meta {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sunshine-panel-note {
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.sunshine-kicker {
    display: inline-flex;
    margin-bottom: 0.7rem;
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sunshine-stat-card {
    padding: 1rem;
    border-radius: 14px;
    background: #f7fafd;
    border: 1px solid var(--border-light);
}

.sunshine-stat-card strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.35rem;
    color: var(--dark);
    letter-spacing: -0.03em;
}

.sunshine-roadmap {
    display: grid;
    gap: 0.85rem;
}

.sunshine-roadmap__item {
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    background: #fff9f0;
}

.sunshine-roadmap__item strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--accent-dark);
}

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

/* ===== 15-login.css ===== */
/* ============================================================================
   Zeus – Login-Seite (Vorbild: eule2.lehrerland.de eule-login.css)
   Split-Card: Formular links, atmosphaerische Brand-Szene rechts.
   ============================================================================ */

.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lexend', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: #ffffff;
    background:
        radial-gradient(ellipse 100% 80% at 8% 110%, rgba(24, 69, 200, 0.22) 0%, transparent 48%),
        radial-gradient(ellipse 70% 50% at 92% -5%,  rgba(245, 166, 35, 0.10) 0%, transparent 42%),
        linear-gradient(168deg, #030916 0%, #080f24 38%, #0b1535 70%, #060d1c 100%);
    position: relative;
    overflow-x: hidden;
    padding: 1.5rem;
    box-sizing: border-box;
}

/* Sternenschicht */
.auth-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1.3px 1.3px at  8% 12%, rgba(255,255,255,0.70) 0%, transparent 100%),
        radial-gradient(0.8px 0.8px at 22%  5%, rgba(255,255,255,0.50) 0%, transparent 100%),
        radial-gradient(1.6px 1.6px at 38% 15%, rgba(255,255,255,0.80) 0%, transparent 100%),
        radial-gradient(0.9px 0.9px at 52%  7%, rgba(255,255,255,0.55) 0%, transparent 100%),
        radial-gradient(1.1px 1.1px at 67% 18%, rgba(255,255,255,0.60) 0%, transparent 100%),
        radial-gradient(0.8px 0.8px at 83% 10%, rgba(255,255,255,0.45) 0%, transparent 100%),
        radial-gradient(1.4px 1.4px at 94% 22%, rgba(255,255,255,0.65) 0%, transparent 100%),
        radial-gradient(0.9px 0.9px at  4% 35%, rgba(255,255,255,0.50) 0%, transparent 100%),
        radial-gradient(1.2px 1.2px at 18% 48%, rgba(255,255,255,0.60) 0%, transparent 100%),
        radial-gradient(1.0px 1.0px at 75% 40%, rgba(255,255,255,0.45) 0%, transparent 100%),
        radial-gradient(0.8px 0.8px at 88% 55%, rgba(255,255,255,0.40) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 12% 78%, rgba(255,255,255,0.55) 0%, transparent 100%),
        radial-gradient(1.1px 1.1px at 60% 70%, rgba(255,255,255,0.45) 0%, transparent 100%),
        radial-gradient(0.8px 0.8px at 95% 75%, rgba(255,255,255,0.35) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Container */
.zs-login {
    width: 100%;
    max-width: 980px;
    z-index: 2;
    position: relative;
}

.zs-login__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.07),
        0 0 80px rgba(24, 69, 200, 0.12) inset;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Formular-Spalte (links) */
.zs-login__form-pane {
    padding: 3.5rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(9, 14, 32, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.zs-login__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 2rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.zs-login__brand-gem {
    color: #f59e0b;
    font-size: 1.1em;
    line-height: 0;
}

.zs-login__headline {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 1.18;
    margin: 0 0 0.45rem;
}

.zs-login__headline-accent {
    color: #f59e0b;
}

.zs-login__tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.42);
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 2rem;
}

/* Notices */
.zs-login__notice {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 0.9rem;
}

.zs-login__notice--error {
    background: rgba(229, 72, 58, 0.10);
    border: 1px solid rgba(229, 72, 58, 0.28);
    color: #fca5a5;
}

.zs-login__notice--success {
    background: rgba(26, 158, 110, 0.10);
    border: 1px solid rgba(26, 158, 110, 0.28);
    color: #6ee7b7;
}

.zs-login__notice--warning {
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.22);
    color: #fde68a;
}

/* Formularfelder */
.zs-login__form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.zs-login__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.zs-login__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.zs-login__input-wrap {
    position: relative;
}

.zs-login__input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: rgba(245, 166, 35, 0.65);
    pointer-events: none;
}

.zs-login__input {
    width: 100%;
    padding: 0.92rem 1rem 0.92rem 2.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.zs-login__input::placeholder {
    color: rgba(255, 255, 255, 0.20);
}

.zs-login__input:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
}

.zs-login__input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 166, 35, 0.52);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.09);
}

/* Submit */
.zs-login__submit {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f5a623 0%, #e8920c 100%);
    color: #1a0f00;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    box-shadow: 0 4px 24px rgba(245, 166, 35, 0.28), 0 0 0 1px rgba(255, 200, 80, 0.18) inset;
    margin-top: 0.4rem;
    letter-spacing: -0.01em;
    -webkit-appearance: none;
}

.zs-login__submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #fbb534 0%, #f5a020 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(245, 166, 35, 0.42), 0 0 0 1px rgba(255, 200, 80, 0.28) inset;
}

.zs-login__submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 14px rgba(245, 166, 35, 0.3);
}

.zs-login__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.zs-login__submit-arrow {
    width: 17px;
    height: 17px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.zs-login__submit:hover:not(:disabled) .zs-login__submit-arrow {
    transform: translateX(3px);
}

/* Visual-Spalte (rechts) — eigene Brand-Szene ohne externes Bild */
.zs-login__visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(168deg, #040d22 0%, #0c1a3e 45%, #0f2250 80%, #0a1735 100%);
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    text-align: center;
}

.zs-login__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(4,  13, 34, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 100% 35% at 50% 100%, rgba(4,  13, 34, 0.72) 0%, transparent 100%),
        radial-gradient(ellipse 60% 50% at 0% 50%,   rgba(4,  13, 34, 0.45) 0%, transparent 60%),
        radial-gradient(circle at 50% 38%, rgba(245, 166, 35, 0.18) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

.zs-login__visual-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.zs-login__visual-mark {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f5a623 0%, #d97706 100%);
    color: #1a0f00;
    font-weight: 800;
    font-size: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.35);
}

.zs-login__visual-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0;
}

.zs-login__visual-lead {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
    max-width: 22rem;
    margin: 0;
}

.zs-login__visual-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.10);
    border: 1px solid rgba(245, 166, 35, 0.30);
    color: #fbbf24;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

/* Footer-Caption */
.zs-login__footer {
    position: fixed;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.18);
    z-index: 2;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.02em;
}

/* Responsive: ab Tablet visual-Spalte unsichtbar, Formular zentriert */
@media (max-width: 860px) {
    .auth-body {
        align-items: flex-start;
        padding: 1.5rem 1.25rem 4rem;
    }

    .zs-login__card {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .zs-login__visual {
        display: none;
    }

    .zs-login__form-pane {
        padding: 2.75rem 2.25rem 2.5rem;
    }

    .zs-login {
        max-width: 520px;
    }
}

@media (max-width: 520px) {
    .auth-body {
        padding: 1rem 0.75rem 3rem;
    }

    .zs-login__form-pane {
        padding: 2.25rem 1.5rem 2rem;
    }

    .zs-login__headline {
        font-size: 1.7rem;
    }
}

/* ===== 16-sidebar.css ===== */
/* ============================================================================
   Zeus – Sidebar-Layout (Vorbild: eule2.lehrerland.de superadmin/header.css)
   ============================================================================ */

:root {
    /* Sidebar */
    --zs-sb-width:        236px;
    --zs-sb-bg:           #0e1b2e;
    --zs-sb-bg-end:       #132238;
    --zs-sb-hover:        rgba(255, 255, 255, 0.07);
    --zs-sb-active-bg:    rgba(245, 158, 11, 0.16);
    --zs-sb-active-color: #fbbf24;
    --zs-sb-text:         rgba(255, 255, 255, 0.58);
    --zs-sb-label:        rgba(255, 255, 255, 0.26);
    --zs-sb-border:       rgba(255, 255, 255, 0.08);

    /* Akzent (Amber) */
    --zs-accent:          #f59e0b;
    --zs-accent-hover:    #d97706;

    /* App-Hintergrund + Typo (matched eule2) */
    --zs-app-bg:          #edf0f4;
    --zs-app-font:        'Lexend', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    /* Content-Token */
    --zs-c-text:          #17253b;
    --zs-c-text-soft:     #637188;
    --zs-c-text-muted:    #94a3b8;
    --zs-c-surface:       #ffffff;
    --zs-c-border:        #e2eaf4;
    --zs-c-border-soft:   #edf1f8;
    --zs-c-radius:        8px;
    --zs-c-radius-lg:     12px;
}

/* ── Shell ──────────────────────────────────────────────────────────────── */
.app-shell {
    display: flex;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    font-family: var(--zs-app-font);
    background: var(--zs-app-bg);
    color: var(--zs-c-text);
}

body:has(.app-shell) {
    margin: 0;
    background: var(--zs-app-bg);
    font-family: var(--zs-app-font);
    color: var(--zs-c-text);
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.app-sidebar {
    width: var(--zs-sb-width);
    min-width: var(--zs-sb-width);
    background: linear-gradient(180deg, var(--zs-sb-bg) 0%, var(--zs-sb-bg-end) 100%);
    border-top: 3px solid var(--zs-accent);
    border-right: 1px solid rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 200;
    flex-shrink: 0;
    scrollbar-width: none;
}

.app-sidebar::-webkit-scrollbar {
    display: none;
}

/* ── Brand (oben) ───────────────────────────────────────────────────────── */
.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 14px 15px;
    border-bottom: 1px solid var(--zs-sb-border);
    flex-shrink: 0;
    text-decoration: none;
}

.app-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--zs-accent);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.app-brand-name {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-brand-role {
    font-size: 10px;
    color: var(--zs-sb-label);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.app-nav {
    flex: 1;
    padding: 8px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-height: 0;
    list-style: none;
    margin: 0;
}

.app-nav-section {
    padding: 6px 0 2px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.app-nav-section + .app-nav-section {
    border-top: 1px solid var(--zs-sb-border);
    margin-top: 6px;
    padding-top: 12px;
}

.app-nav-label {
    display: block;
    padding: 0 14px 6px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zs-sb-label);
    user-select: none;
}

.app-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    margin: 0 6px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 450;
    color: var(--zs-sb-text);
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    line-height: 1.3;
    border-left: 2.5px solid transparent;
    cursor: pointer;
    background: none;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    width: auto;
    text-align: left;
    font-family: inherit;
    white-space: nowrap;
}

.app-nav-item:hover {
    background: var(--zs-sb-hover);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.app-nav-item.is-active {
    background: var(--zs-sb-active-bg);
    color: var(--zs-sb-active-color);
    border-left-color: var(--zs-sb-active-color);
    font-weight: 600;
}

.app-nav-item--child {
    padding-left: 32px;
    font-size: 12px;
    margin-top: 0;
}

.app-nav-item--danger {
    color: rgba(248, 113, 113, 0.7);
}

.app-nav-item--danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.app-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.75;
}

.app-nav-item:hover .app-nav-icon {
    opacity: 0.9;
}

.app-nav-item.is-active .app-nav-icon {
    opacity: 1;
}

/* Logout-Form rendert ein <form> drumherum — Reset hier nochmal */
.app-nav-logout {
    margin: 0;
    padding: 0;
    display: block;
}

/* ── User-Box (unten) ───────────────────────────────────────────────────── */
.app-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border-top: 1px solid var(--zs-sb-border);
    margin-top: auto;
    flex-shrink: 0;
}

.app-user-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e3a5f;
    color: rgba(255, 255, 255, 0.90);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.03em;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.app-user-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -1px;
    width: 8px;
    height: 8px;
    background: var(--zs-accent);
    border-radius: 50%;
    border: 2px solid var(--zs-sb-bg-end);
}

.app-user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-user-info strong {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.app-user-info span {
    font-size: 10.5px;
    color: var(--zs-sb-label);
    display: block;
}

/* Logout-Icon-Button in der User-Box */
.app-user-logout {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.app-user-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(248, 113, 113, 0.75);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.app-user-logout-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}

.app-user-logout-btn:focus-visible {
    outline: 2px solid rgba(245, 158, 11, 0.6);
    outline-offset: 2px;
}

.app-user-logout-btn svg {
    width: 14px;
    height: 14px;
}

/* ── Hauptbereich ───────────────────────────────────────────────────────── */
.app-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--zs-app-bg);
    display: flex;
    flex-direction: column;
}

/* Topbar im Hauptbereich (Schul-/Schuljahres-Switcher) */
.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    background: #fff;
    border-bottom: 1px solid var(--zs-c-border);
    flex-shrink: 0;
}

.app-topbar__title {
    font-size: 14px;
    color: var(--zs-c-text-soft);
    margin: 0;
    font-weight: 500;
}

.app-topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-topbar__switcher select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--zs-c-border);
    background: #fff;
    color: var(--zs-c-text);
    font-size: 13px;
    font-family: inherit;
    min-width: 160px;
    cursor: pointer;
}

.app-topbar__switcher select:hover {
    border-color: var(--zs-c-text-muted);
}

.app-topbar__user {
    font-size: 13px;
    color: var(--zs-c-text-soft);
}

/* Workspace innerhalb des Hauptbereichs */
.app-workspace {
    padding: 24px 28px 48px;
}

/* Reset: alte container/main-Wrapper sollen in der Sidebar-Welt nichts mehr machen */
.app-main .container {
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100%;
}

/* Flash-Messages innerhalb der Workspace */
.app-flash {
    margin: 14px 0 0;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px;
    background: #fff;
    border: 1px solid var(--zs-c-border);
    border-left-width: 4px;
}

.app-flash--success { border-left-color: #16a34a; background: #f0fdf4; }
.app-flash--error   { border-left-color: #dc2626; background: #fff5f5; }
.app-flash--warning { border-left-color: #d97706; background: #fffbeb; }
.app-flash--info    { border-left-color: #2563eb; background: #eff6ff; }

/* ── Schul-Anlage-Seite ─────────────────────────────────────────────────── */
/* Erkennt die Seite an der Existenz des Formulars (CSS :has()),
   damit keine separate Page-Klasse im HTML noetig ist. Alle direkten
   Kinder des <main> bekommen die gleiche Lese-Breite. */
.app-main main:has(.zs-school-form) > .page-header,
.app-main main:has(.zs-school-form) > .app-flash,
.app-main main:has(.zs-school-form) > .card {
    max-width: 920px;
}

.app-main main:has(.zs-school-form) > .page-header {
    margin-bottom: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.app-main main:has(.zs-school-form) > .page-header > p {
    margin: 0;
    color: var(--zs-c-text-soft);
    font-size: 0.92rem;
    line-height: 1.4;
}

.app-main main:has(.zs-school-form) > .card {
    padding: 1.25rem 1.5rem 1.4rem;
}

.app-main main:has(.zs-school-form) > .card .data-table {
    font-size: 0.9rem;
}

.zs-school-form {
    --zs-form-gap: 0.85rem;
}

.zs-school-form .form-group {
    margin-bottom: var(--zs-form-gap);
}

.zs-school-form .form-group label {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--zs-c-text-soft);
}

.zs-school-form .form-control {
    padding: 0.5rem 0.65rem;
    font-size: 0.92rem;
    border-radius: 7px;
}

.zs-school-form .form-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--zs-form-gap) 1rem;
}

.zs-school-form .text-muted {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--zs-c-text-muted);
}

.zs-form-section-title {
    margin: 1.1rem 0 0.55rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--zs-c-border-soft);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--zs-c-text-soft);
}

.zs-school-form .zs-form-section-title:first-of-type {
    margin-top: 0.25rem;
}

.zs-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-top: 0.1rem;
}

.zs-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--zs-c-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.86rem;
    color: var(--zs-c-text);
    background: #fff;
    user-select: none;
    transition: border-color .15s, background .15s;
}

.zs-radio:hover {
    border-color: var(--zs-c-text-muted);
}

.zs-radio:has(input[type="radio"]:checked) {
    border-color: var(--zs-accent);
    background: #fff8eb;
    color: var(--zs-c-text);
}

.zs-radio input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: var(--zs-accent);
    cursor: pointer;
}

.zs-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--zs-c-text);
    user-select: none;
    font-weight: 500;
}

.zs-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--zs-accent);
    cursor: pointer;
}

/* SBBZ-Eingabefeld nur anzeigen, wenn SBBZ ausgewählt ist (CSS :has()) */
.zs-school-form .zs-sbbz-wrap {
    margin-top: 0.5rem;
    display: none;
}

.zs-school-form:has(input[name="school_type"][value="SBBZ"]:checked) .zs-sbbz-wrap {
    display: block;
}

.zs-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--zs-c-border-soft);
}

@media (max-width: 640px) {
    .app-main main:has(.zs-school-form) > .card {
        padding: 1rem;
    }
    .zs-school-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    :root { --zs-sb-width: 210px; }

    .app-nav-item { font-size: 11.5px; padding: 5px 8px; }
    .app-nav-label { font-size: 8.5px; padding-bottom: 4px; }
    .app-nav-section { padding: 4px 0 1px; }
    .app-nav-section + .app-nav-section { margin-top: 4px; padding-top: 8px; }
    .app-nav { padding: 6px 0 2px; gap: 0; }
    .app-brand { padding: 12px 12px 11px; }
    .app-user { padding: 9px 11px; gap: 7px; }
    .app-user-avatar { width: 28px; height: 28px; font-size: 10px; }
    .app-user-info strong { font-size: 11.5px; }
    .app-user-info span { font-size: 9.5px; }
    .app-workspace { padding: 18px 18px 36px; }
    .app-topbar { padding: 12px 18px; }
}

@media (max-width: 720px) {
    .app-shell {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .app-sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: auto;
        border-top: none;
        border-bottom: 3px solid var(--zs-accent);
    }

    .app-brand {
        flex-basis: 100%;
        border-bottom: 1px solid var(--zs-sb-border);
    }

    .app-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 4px 8px;
        width: 100%;
    }

    .app-nav-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 2px;
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .app-nav-label {
        display: none;
    }

    .app-nav-item {
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 10px;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 4px;
        margin: 2px 0;
    }

    .app-nav-item--child {
        padding-left: 10px;
    }

    .app-nav-item.is-active {
        border-left-color: transparent;
        border-bottom-color: var(--zs-sb-active-color);
    }

    .app-user {
        margin-left: auto;
        border-top: none;
        border-left: 1px solid var(--zs-sb-border);
    }

    .app-user-avatar::after { display: none; }
    .app-brand-role { display: none; }

    .app-main {
        min-height: 0;
        overflow: visible;
    }

    .app-topbar {
        flex-wrap: wrap;
    }

    .app-workspace {
        padding: 16px 14px 32px;
    }
}
