﻿
@font-face {
    font-family: 'Saira';
    src: url('/fonts/saira/Saira-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html,
body {
    font-family: 'Saira', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
    font-family: inherit;
}



body {
    font-family: inherit;
        background: #eaf7ef;
    color: #244;
    margin: 0;
}

h1 {
    text-align: center;
    color: #0d7b83;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 2rem;
    letter-spacing: 0.04em;
}

p {
    text-align: center;
    font-size: 1.1rem;
    margin: 1.2rem 1rem;
    color: #556;
}

/* HOME */

.school-level-switch {
    text-align: center;
    margin-top: 0.75rem;
}

.school-level-current {
    font-size: 0.95rem;
    color: #556;
    margin-bottom: 0.35rem;
}

.school-level-change-button {
    background: none;
    border: none;
    color: #0d7b83;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
}

.home-page-primary {
    min-height: 100vh;
    background-image: url('/assets/backgrounds/hintergrund_grundschule_horizontal.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
}

.home-page-secondary {
    min-height: 100vh;
}

.home-page p {
    margin: 0.9rem 0.75rem;
}

.home-footer-links {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.55);
}

    .home-footer-links a {
        color: rgba(0, 0, 0, 0.65);
        text-decoration: none;
        cursor: pointer;
    }

        .home-footer-links a:hover {
            text-decoration: underline;
        }

.selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.selection-tile {
    position: relative;
    min-height: 90px;
    border: 2px solid #7fd0c5;
    background: linear-gradient(90deg, #12838a, #8ddbc3);
    color: white;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

    .selection-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

/*    .selection-tile.selected {
        background: linear-gradient(135deg, #087078, #0B7F86);
        color: #ffffff;
        border-color: #087078;
        box-shadow: 0 10px 24px rgba(8, 112, 120, 0.28);
        transform: translateY(-1px);
    }*/

    .selection-tile.selected {
        background: linear-gradient(135deg, #087078, #14979d);
        border-color: rgba(255, 255, 255, 0.35);
        box-shadow: 0 10px 24px rgba(8, 112, 120, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
        transform: translateY(-1px);
    }

/*        .selection-tile.selected::after {
           
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 0.55rem;
            font-weight: 800;
            font-size: 1rem;
        }*/

/* PRIMARY (Grundschule Look) */

.selection-tile-primary {
    background: linear-gradient(135deg, #2aa9a1, #86d8c8);
    border-radius: 24px;
    font-size: 1.2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

    .selection-tile-primary.selected {
        background: linear-gradient(135deg, #087078, #14979d);
        border-color: rgba(255, 255, 255, 0.35);
        box-shadow: 0 10px 24px rgba(8, 112, 120, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
        transform: scale(1.03);
    }

.school-select-title:focus,
.school-select-title:focus-visible,
.school-select-card:focus,
.school-select-card:focus-visible,
.school-select-page:focus,
.school-select-page:focus-visible {
    outline: none;
}

.school-select-hint {
    margin: -0.75rem 0 1.5rem 0;
    color: #6b7a7a;
    font-size: 0.95rem;
    text-align: center;
}

.start-button-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0 1rem;
}

.start-button {
    background: #0d7b83;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

    .start-button:hover {
        opacity: 0.92;
    }

.license-label {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.topbar {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

.topbar-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.topbar-button {
    border: 1px solid rgba(24, 66, 77, 0.18);
    background: rgba(255, 255, 255, 0.88);
    color: #18424d;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
}

    .topbar-button:hover {
        background: rgba(255, 255, 255, 0.96);
    }

.topbar-button-primary {
    background: rgba(19, 132, 145, 0.92);
    color: white;
    border-color: rgba(19, 132, 145, 0.92);
}

    .topbar-button-primary:hover {
        background: rgba(16, 117, 128, 0.96);
    }

.topbar-license {
    font-size: 0.8rem;
    color: rgba(24, 66, 77, 0.68);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    backdrop-filter: blur(4px);
}

.home-subtitle {
    margin-top: -0.35rem;
    margin-bottom: 1.3rem;
    color: #5f6f73;
}

.license-indicator {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.55);
}

.top-link {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    text-decoration: underline;
}

/* HOME (ältere / optionale Blöcke) */

.home-shell {
    max-width: 1150px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem 1rem;
}

.home-topbar {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.home-brand-block {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-title {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1;
}

.home-topbar-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.home-status-card {
    background: white;
    border-radius: 24px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
}

.home-status-label {
    font-size: 0.88rem;
    color: #6b7a7a;
}

.home-status-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #18424d;
    word-break: break-word;
}

.home-status-badge {
    display: inline-block;
    width: fit-content;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    background: #eaf7ef;
    border: 1px solid #7fd0c5;
    color: #245;
}

.home-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.home-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-quick-action {
    background: white;
    border: 1px solid #d9eee6;
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #18424d;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

    .home-quick-action:hover {
        background: #f9fcfa;
    }

.home-section-intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

.home-section-title {
    margin: 0 0 0.4rem 0;
    font-size: 1.5rem;
    color: #18424d;
}

.home-section-text {
    margin: 0;
    color: #5f6f73;
}

.home-filter-block {
    margin-bottom: 1.5rem;
}

.home-filter-label {
    margin: 0 0 0.8rem 0;
    font-weight: 700;
    color: #18424d;
}

/* SETTINGS */

.settings-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem 1rem;
}

.settings-header-row {
    margin-bottom: 1rem;
}

.settings-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.settings-title {
    margin: 0 0 0.35rem 0;
}

.settings-subtitle {
    margin: 0 0 1.5rem 0;
    color: #5f6f73;
}

.settings-section {
    margin-bottom: 1.5rem;
}

    .settings-section:last-child {
        margin-bottom: 0;
    }

.settings-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b7a7a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.settings-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #f9fcfa;
    border: 1px solid #d9eee6;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    text-align: left;
}

    .settings-item:last-child {
        margin-bottom: 0;
    }

    .settings-item:hover {
        background: #f3faf7;
    }

.settings-item-text {
    min-width: 0;
}

.settings-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #18424d;
    margin-bottom: 0.2rem;
}

.settings-item-description {
    font-size: 0.92rem;
    color: #5f6f73;
}

.settings-item-arrow {
    font-size: 1.1rem;
    color: #7a8a8f;
    flex-shrink: 0;
}

/* SCHOOL SELECT */

.school-select-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.school-select-card {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.school-select-title {
    margin: 0 0 1rem 0;
    color: #0d7b83;
    font-size: 2.3rem;
    letter-spacing: 0.02em;
}

.school-select-subtitle {
    margin: 0 0 2rem 0;
    color: #4f5f63;
    font-size: 1.15rem;
}

.school-select-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1.25rem;
}

.school-option-card {
    border: none;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    min-height: 170px;
    cursor: pointer;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    font: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

    .school-option-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
        opacity: 0.98;
    }

    .school-option-card.primary {
        background: linear-gradient(135deg, #149197 0%, #8edbc4 100%);
    }

    .school-option-card.secondary {
        background: linear-gradient(135deg, #0d7b83 0%, #58bdb5 100%);
    }

.school-option-label {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.school-option-detail {
    font-size: 1rem;
    opacity: 0.95;
}

/* LIST HEADER */


.active-filters {
    max-width: 880px;
    margin: 0 auto 0.75rem auto;
    padding: 0 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    box-sizing: border-box;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    background: white;
    border: 1px solid #7fd0c5;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.9rem;
    color: #245;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.list-page-header {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 0.75rem 0.75rem 0.75rem;
}

.list-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sort-select {
    border-radius: 999px;
    border: 1px solid #7fd0c5;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    background: white;
    color: #245;
    cursor: pointer;
}

.premium-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    color: #245;
    background: white;
    border: 1px solid #7fd0c5;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
}

    .premium-toggle input {
        margin: 0;
    }

.random-button {
    background: #0d7b83;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    margin-left: auto;
}

    .random-button:hover {
        opacity: 0.92;
    }


/* LISTEN-KACHELN */

.exercise-list {
    max-width: 880px;
    margin: 0 auto;
    padding: 0.75rem;
    display: grid;
    gap: 0.85rem;
}

.exercise-card-link,
.premium-card-button {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

    .exercise-card-link *,
    .premium-card-button * {
        text-decoration: none;
    }

.exercise-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    background: #f8f8f6;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

    .exercise-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    }

.exercise-card-image-wrapper {
    background: #ffffff;
    width: 128px;
    height: 118px;
    min-height: 118px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
}

.exercise-card-image {
    width: 128px;
    height: 118px;
    object-fit: contain;
    object-position: left center;
    padding: 0;
    margin: 0;
    display: block;
}

.exercise-card-content {
    background: #ffffff;
    padding: 0.8rem 0.95rem 0.8rem 0.55rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

    .exercise-card-content h3 {
        margin: 0 0 0.6rem 0;
        color: #0d7b83;
        font-size: 1rem;
        text-decoration: none;
    }

.exercise-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

    .exercise-title-row h3 {
        margin: 0;
        font-size: 1rem;
        line-height: 1.25;
        color: #0d7b83;
        text-decoration: none;
    }

.audience-icon {
    width: 30px;
    height: 30px;
}

.exercise-meta {
    margin-bottom: 0.35rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0;
}

.tag {
    font-size: 0.72rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: #eaf7ef;
    border: 1px solid #7fd0c5;
    color: #245;
    text-decoration: none;
}

.premium-locked-card {
    cursor: default;
}

.premium-locked {
    opacity: 0.72;
}

.premium-badge {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: 0.82rem;
    font-weight: bold;
    color: #7a5b00;
    background: #fff4cc;
    border: 1px solid #f0d69c;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.premium-card-button {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    font: inherit;
    color: inherit;
}

.premium-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(18, 39, 44, 0.45);
}

.premium-dialog-card {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.premium-dialog-badge {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #7a5b00;
    background: #fff4cc;
    border: 1px solid #f0d69c;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

.premium-dialog-title {
    margin: 0 0 0.8rem 0;
    color: #0d7b83;
    font-size: 1.35rem;
    text-align: left;
}

.premium-dialog-text {
    margin: 0 0 0.9rem 0;
    text-align: left;
    color: #445;
    font-size: 1rem;
    line-height: 1.5;
}

.premium-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.premium-dialog-note {
    font-size: 0.95rem;
    color: #5f6f73;
}


.premium-dialog-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2rem 2rem 1rem;
}

.premium-dialog-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 2.3rem;
    height: 2.3rem;
    border: 0;
    border-radius: 999px;
    background: #eaf8f3;
    color: #0b7f86;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}

    .premium-dialog-close:hover {
        background: #d8f1ea;
    }

.premium-dialog-actions-sticky {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
    padding: 1rem 2rem 1.25rem;
    border-top: 1px solid #d6eee7;
    background: #ffffff;
}

    .premium-dialog-actions-sticky .start-button,
    .premium-dialog-actions-sticky .school-level-change-button {
        flex: 1;
    }

@media (max-width: 640px) {
    .premium-dialog-backdrop {
        align-items: stretch;
        padding: 0.75rem;
    }

    .premium-dialog-card {
        width: 100%;
        max-height: calc(100dvh - 1.5rem);
        border-radius: 24px;
        padding: 0;
    }

    .premium-dialog-scroll {
        padding: 1.4rem 1.25rem 0.85rem;
    }

    .premium-dialog-title {
        padding-right: 2.6rem;
    }

    .premium-dialog-actions-sticky {
        padding: 0.85rem 1.25rem 1rem;
        flex-direction: column;
    }

        .premium-dialog-actions-sticky .start-button,
        .premium-dialog-actions-sticky .school-level-change-button {
            width: 100%;
        }
}

@media (max-width: 380px) {
    .premium-dialog-scroll {
        padding: 1.15rem 1rem 0.75rem;
    }

    .premium-dialog-actions-sticky {
        padding: 0.75rem 1rem 0.9rem;
    }
}

.login-shell {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.login-header {
    margin: 0 auto 0.75rem auto;
}

/* DETAIL */

.detail-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem 1rem;
}



.detail-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: -0.8rem 0 0.7rem 0;
}

.detail-header-text {
    min-width: 0;
}

.detail-title {
    text-align: left;
    margin: 0;
    color: #0d7b83;
    font-size: 2rem;
}


.detail-header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.audience-icon-large {
    height: 42px;
    width: auto;
    opacity: 0.9;
}

.favorite-button {
    font-size: 2.4rem;
    background: white;
    border: none;
    cursor: pointer;
    color: #c9c9c9;
    padding: 0.4rem 0.6rem;
    border-radius: 12px;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

    .favorite-button.active {
        color: #f5b301;
    }

    .favorite-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    .favorite-button:active {
        transform: scale(0.96);
    }

.detail-meta {
    margin-bottom: 1.25rem;
    color: #556;
    font-size: 1rem;
    text-align: left;
}

.detail-video-wrapper {
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.detail-video {
    width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    background: #000;
    display: block;
}

.detail-section {
    background: white;
    border-radius: 18px;
    padding: 1.25rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

    .detail-section h3 {
        margin-top: 0;
        margin-bottom: 0.9rem;
        color: #0d7b83;
        font-size: 1.2rem;
        text-align: left;
    }

.detail-html,
.detail-challenge-block {
    text-align: left;
    color: #244;
    line-height: 1.55;
    font-size: 1rem;
}

    .detail-html p,
    .detail-html li,
    .detail-challenge-block p,
    .detail-challenge-block li {
        text-align: left;
    }

    .detail-html ul,
    .detail-html ol,
    .detail-challenge-block ul,
    .detail-challenge-block ol {
        margin: 0.4rem 0;
        padding-left: 1.4rem;
    }

.detail-challenge-block {
    margin-bottom: 1rem;
}

    .detail-challenge-block:last-child {
        margin-bottom: 0;
    }

/* LOGIN */

.login-page {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 1rem 2rem 1rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.login-title {
    margin: 0 0 1.5rem 0;
    text-align: center;
    color: #0d7b83;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-label {
    font-size: 0.95rem;
    color: #245;
    font-weight: bold;
}

.login-input {
    border: 1px solid #b9ddd6;
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    font-size: 1rem;
}

.login-button {
    margin-top: 0.75rem;
    background: #0d7b83;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

    .login-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.login-error {
    background: #fff1f1;
    color: #a33;
    border: 1px solid #f2c5c5;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
}

/* ACCOUNT */

.account-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem 1rem;
}

.account-header-row {
    margin-bottom: 1rem;
}

.account-card {
    background: white;
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.account-title {
    margin: 0 0 1.25rem 0;
    text-align: left;
}

.account-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.account-status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.9rem;
    font-weight: bold;
}

    .account-status-badge.pro {
        background: #eaf7ef;
        border: 1px solid #7fd0c5;
        color: #245;
    }

    .account-status-badge.basic {
        background: #f5f5f5;
        border: 1px solid #d3d3d3;
        color: #555;
    }

    .account-status-badge.admin {
        background: #eef4ff;
        border: 1px solid #b9cbff;
        color: #294c9f;
    }

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.account-info-item {
    background: #f9fcfa;
    border: 1px solid #d9eee6;
    border-radius: 16px;
    padding: 1rem;
}

.account-info-label {
    font-size: 0.88rem;
    color: #6b7a7a;
    margin-bottom: 0.35rem;
}

.account-info-value {
    font-size: 1rem;
    color: #244;
    font-weight: 600;
    word-break: break-word;
}

.account-edit-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-subcard {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f9fcfa;
    border: 1px solid #d9eee6;
    border-radius: 18px;
}

.account-subtitle {
    margin: 0 0 0.75rem 0;
    color: #153f52;
    font-size: 1.1rem;
}

.account-helper-text {
    font-size: 0.92rem;
    color: #5f6f73;
    margin-bottom: 0.9rem;
}

.account-password-check {
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

    .account-password-check.valid {
        color: #2d6a38;
    }

    .account-password-check.invalid {
        color: #b23a3a;
    }

.account-inline-message {
    margin-top: 1rem;
}

.account-success-message {
    background: #eef9f0;
    color: #2d6a38;
    border: 1px solid #b9e0bf;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.account-sub-actions {
    margin-top: 1rem;
}

.account-actions .start-button,
.account-actions .school-level-change-button {
    min-width: 190px;
}

.account-logout-button {
    font-size: 1rem;
}

/* WHEEL */

.wheel-page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem 1rem;
}

.wheel-header {
    margin-bottom: 1.5rem;
}

    .wheel-header h1 {
        margin: 0;
        text-align: left;
    }

.wheel-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
    align-items: start;
}

.wheel-result-card {
    text-align: left;
}

    .wheel-result-card p {
        text-align: left;
        margin: 0;
        color: #5f6f73;
        line-height: 1.4;
    }

.wheel-card,
.wheel-result-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.wheel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-top-text {
    font-size: 1rem;
    color: #5f6f73;
    margin-bottom: 1rem;
    text-align: center;
}

.wheel-canvas-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 1.2rem;
    width: 100%;
}

.wheel-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 30px solid #222;
    z-index: 3;
}

.wheel-canvas {
    width: min(640px, 100%);
    aspect-ratio: 1 / 1;
    display: block;
}

.wheel-actions {
    margin-top: 1.5rem;
}

.wheel-result-card h3 {
    margin: 0 0 1rem 0;
    color: #0d7b83;
}

.wheel-result-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #18424d;
    margin: 0 0 0.75rem 0;
    line-height: 1.15;
}

.wheel-result-meta {
    font-size: 0.95rem;
    color: #5f6f73;
    margin-bottom: 1rem;
}

.wheel-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

/* RESPONSIVE */

@media (max-width: 950px) {
    .home-topbar {
        grid-template-columns: 1fr;
    }

    .home-topbar-right {
        grid-template-columns: 1fr;
    }

    .topbar {
        top: 12px;
        right: 12px;
        left: 12px;
        align-items: stretch;
    }

    .topbar-right {
        justify-content: flex-end;
    }

    .topbar-license {
        align-self: flex-end;
    }

    .wheel-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .account-page {
        padding: 1rem 0.75rem 2rem 0.75rem;
    }

    .account-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
    }

    .account-actions {
        flex-direction: column;
    }

        .account-actions .start-button,
        .account-actions .school-level-change-button {
            width: 100%;
            min-width: 0;
        }

    .school-select-card {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .school-select-title {
        font-size: 1.9rem;
    }

    .school-select-grid {
        grid-template-columns: 1fr;
    }

    .school-option-card {
        min-height: 140px;
    }

    .school-option-label {
        font-size: 1.3rem;
    }

    .detail-page {
        padding: 1rem 0.75rem 2rem 0.75rem;
    }

    .detail-title {
        font-size: 1.6rem;
    }

    .detail-video-wrapper,
    .detail-section {
        padding: 0.9rem;
        border-radius: 14px;
    }
}

@media (max-width: 640px) {
    .home-shell {
        padding: 0.75rem 0.75rem 1.25rem 0.75rem;
    }

    .home-title {
        font-size: 1.55rem;
        margin-bottom: 0.35rem;
    }

    .home-subtitle {
        margin-top: 0;
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .topbar {
        margin-top: 0.5rem;
        position: static;
        margin-bottom: 0.75rem;
        align-items: center;
    }

    .topbar-right {
        justify-content: center;
        gap: 0.5rem;
    }

    .topbar-button {
        padding: 0.45rem 0.8rem;
        font-size: 0.9rem;
    }

    .topbar-license {
        align-self: center;
        font-size: 0.74rem;
        text-align: center;
    }

    .selection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0;
        margin: 0 auto 1rem auto;
    }

    .selection-tile,
    .selection-tile-primary {
        min-height: 74px;
        font-size: 0.98rem;
        border-radius: 18px;
        padding: 0.35rem 0.45rem;
    }

        .selection-tile.selected,
        .selection-tile-primary.selected {
            transform: scale(1.01);
        }

    .start-button-wrapper {
        margin: 1rem 0 0.75rem;
    }

    .start-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }

    .license-label {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .home-footer-links {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        font-size: 0.74rem;
    }

    .home-page p {
        margin: 0.6rem 0.5rem;
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .home-page h1 {
        margin-top: 0.35rem;
        margin-bottom: 0.75rem;
    }

    /* LISTE – NUR MOBIL */
    .list-page-header {
        padding: 0.45rem 0.75rem 0.3rem 0.75rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.35rem;
        align-items: stretch;
    }

    .list-page-header-left {
        grid-column: 1;
        width: 100%;
        position: relative;
    }

    .list-page-header h1 {
        margin-top: 0.2rem;
        font-size: 1.45rem;
        line-height: 1.1;
        text-align: center;
    }



    .list-controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.35rem;
        align-items: stretch;
        width: 100%;
    }

    .sort-select,
    .premium-toggle,
    .random-button {
        width: 100%;
        box-sizing: border-box;
        font-size: 0.9rem;
        border-radius: 999px;
    }

    .sort-select {
        padding: 0.5rem 0.8rem;
        min-height: 44px;
    }



    .random-button {
        padding: 0.58rem 0.9rem;
        min-height: 44px;
        font-size: 0.92rem;
    }

    .exercise-list {
        padding-top: 0.45rem;
    }

    .tags {
        gap: 0.3rem;
    }

    .tag {
        font-size: 0.72rem;
        padding: 0.18rem 0.48rem;
    }

    .list-page-header h1:focus,
    .list-page-header h1:focus-visible {
        outline: none;
    }


    .wheel-page {
        padding: 1rem 0.75rem 2rem 0.75rem;
    }

    .wheel-card,
    .wheel-result-card {
        padding: 1rem;
        border-radius: 18px;
    }

    .settings-page,
    .login-page,
    .account-page,
    .detail-page,
    .wheel-page,
    .school-select-page {
        box-sizing: border-box;
    }
}

@media (max-width: 560px) {
    .topbar-right {
        gap: 0.5rem;
    }

    .topbar-button {
        padding: 0.5rem 0.85rem;
        font-size: 0.88rem;
    }

    .topbar-license {
        font-size: 0.75rem;
    }
}

@media (max-width: 520px) {
    .home-shell {
        padding: 1rem 0.75rem 2rem 0.75rem;
    }

    .home-brand-block,
    .home-status-card {
        border-radius: 18px;
        padding: 1rem;
    }

    .home-title {
        font-size: 1.85rem;
    }

    .home-quick-actions {
        flex-direction: column;
    }

    .home-quick-action {
        width: 100%;
    }
}

/* Blazor Reconnect – sauber als kleine Statusbox */

dialog#components-reconnect-modal {
    position: fixed !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    bottom: 18px !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    z-index: 99999 !important;
}

    dialog#components-reconnect-modal::backdrop {
        background: transparent !important;
    }

#components-reconnect-modal .components-reconnect-container {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: calc(100vw - 24px);
    background: rgba(13, 123, 131, 0.97);
    color: white;
    border-radius: 18px;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    font-size: 0.9rem;
    line-height: 1.25;
    text-align: left;
}

/* Alle Meldungen standardmäßig verstecken */
#components-reconnect-modal p,
#components-reconnect-modal button {
    display: none;
}

/* Nur die jeweils passende Blazor-Meldung anzeigen */
#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible {
    display: block;
}

#components-reconnect-modal p {
    margin: 0 !important;
    color: white !important;
    font-size: 0.9rem !important;
    text-align: left !important;
}

#components-reconnect-modal button {
    border: 1px solid rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.14);
    color: white;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

#components-reconnect-modal .components-rejoining-animation {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid rgba(255,255,255,0.45);
    border-top-color: white;
    border-radius: 50%;
    animation: activaroReconnectSpin 0.8s linear infinite;
}

    #components-reconnect-modal .components-rejoining-animation > div {
        display: none;
    }

@keyframes activaroReconnectSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 520px) {
    dialog#components-reconnect-modal {
        bottom: 14px !important;
        max-width: calc(100vw - 16px) !important;
    }

    #components-reconnect-modal .components-reconnect-container {
        max-width: calc(100vw - 16px);
        padding: 0.7rem 0.85rem;
        font-size: 0.84rem;
    }

    #components-reconnect-modal p {
        font-size: 0.84rem !important;
    }
}

/* LOGIN MOBILE FIX */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.login-page {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.login-shell {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.5rem;
}

.login-form,
.login-input,
.login-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 520px) {
    .login-page {
        padding: 0.75rem;
    }

    .login-card {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .login-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
}

.premium-dialog-price-box {
    background: #eaf7ef;
    border: 1px solid #7fd0c5;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    margin: 1rem 0;
}

.premium-dialog-price-title {
    color: #0d7b83;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.premium-dialog-price-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    background: #f4fbf8; /* heller */
    border: 1px solid #d9eee6; /* softer */
    border-radius: 14px;
    padding: 0.6rem 0.85rem;
    margin-right: 0.75rem;
    margin-top: 0.5rem;
    cursor: default; /* wichtig! */
}

    .premium-dialog-price-row strong {
        color: #0d7b83;
        font-size: 1.15rem;
    }

    .premium-dialog-price-row span {
        color: #244;
        font-size: 0.95rem;
    }


@media (max-width: 380px) {
    .premium-dialog-price-box {
        padding: 1rem;
    }

    .premium-dialog-price-row {
        font-size: 0.95rem;
    }
}



.pricing-box {
    background: #ffffff;
    border: 1px solid #7fd0c5;
    border-radius: 18px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    text-align: left;
}

    .pricing-box h3 {
        margin: 0 0 0.5rem 0;
        color: #0d7b83;
        margin-bottom: 0.5rem;
    }

    .pricing-box ul {
        margin: 0.75rem 0 1rem 0;
        padding-left: 1.25rem;
        list-style: disc;
    }

    .pricing-box li {
        margin-bottom: 0.3rem;
        line-height: 1.45;
    }

        .pricing-box li::marker {
            color: #0d7b83;
        }

    .pricing-box p {
        text-align: left;
        margin-bottom: 0.75rem;
    }

.pricing-note {
    margin-top: 0.9rem;
    color: #48616A;
    font-size: 0.95rem;
    line-height: 1.45;
}

.legal-checkbox-row {
    margin-top: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: #445;
    line-height: 1.35;
}

    .legal-checkbox-row input {
        margin-top: 0.15rem;
        flex-shrink: 0;
    }

    .legal-checkbox-row a {
        color: #0d7b83;
        font-weight: 700;
    }

.paypal-disabled {
    opacity: 0.5;
}

.settings-title:focus,
.settings-title:focus-visible {
    outline: none;
}

/* =========================================================
   Einheitlicher Seitenkopf / Zurück-Button
   Wird von PageHeader.razor genutzt
   ========================================================= */

.page-header {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 1rem 0.75rem 0.75rem 0.75rem;
    box-sizing: border-box;
}

.page-header-back,
.activaro-back-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    border: 1px solid rgba(13, 123, 131, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: #0d7b83;
    border-radius: 999px;
    padding: 0.62rem 1.05rem;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(36, 50, 63, 0.06);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .page-header-back:hover,
    .activaro-back-button:hover {
        transform: translateY(-1px);
        background: #ffffff;
        border-color: rgba(13, 123, 131, 0.34);
        box-shadow: 0 10px 26px rgba(36, 50, 63, 0.08);
        opacity: 1;
    }

    .page-header-back:focus-visible,
    .activaro-back-button:focus-visible {
        outline: 3px solid rgba(13, 123, 131, 0.22);
        outline-offset: 3px;
    }

.activaro-page-back-row {
    width: 100%;
    max-width: 880px;
    margin: 0 auto 0.35rem auto;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.page-header-title {
    margin: 0.7rem 0 1rem 0;
    color: #087f83;
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-align: center;
}

    .page-header-title:focus,
    .page-header-title:focus-visible {
        outline: none;
    }

.page-header-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.28rem;
    font-size: 1.45em;
    line-height: 0.8;
    font-weight: 900;
    transform: translateY(-0.02em);
}

@media (max-width: 640px) {
    .page-header {
        padding: 0.9rem 0.75rem 0.65rem 0.75rem;
    }

    .page-header-back,
    .activaro-back-button {
        padding: 0.58rem 0.95rem;
        font-size: 0.92rem;
    }

    .page-header-title {
        margin-top: 0.6rem;
        margin-bottom: 0.9rem;
    }

    .activaro-page-back-row {
        margin-bottom: 0.25rem;
    }
}
/* INFO & HILFE */

.info-page {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 0.75rem 3rem 0.75rem;
    box-sizing: border-box;
}

.info-card {
    background: white;
    border-radius: 22px;
    padding: 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

    .info-card h2 {
        margin: 0 0 0.8rem 0;
        color: #0d7b83;
        font-size: 1.35rem;
    }

    .info-card p {
        text-align: left;
        margin: 0 0 0.9rem 0;
        line-height: 1.55;
        color: #445;
        font-size: 1rem;
    }

        .info-card p:last-child {
            margin-bottom: 0;
        }

.info-benefit-grid {
    display: block;
}

.info-benefit {
    background: #f9fcfa;
    border: 1px solid #d9eee6;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

    .info-benefit:last-child {
        margin-bottom: 0;
    }

.info-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.info-category-card {
    background: #ffffff;
    border: 1px solid #e6f2ed;
    border-radius: 16px;
    padding: 1rem;
}

    .info-benefit strong,
    .info-category-card h3 {
        display: block;
        margin: 0 0 0.45rem 0;
        color: #18424d;
        font-size: 1rem;
    }

    .info-benefit span,
    .info-category-card p {
        color: #5f6f73;
        font-size: 0.95rem;
        line-height: 1.45;
    }

.info-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #445;
    line-height: 1.55;
}

    .info-list li {
        margin-bottom: 0.55rem;
    }

.info-video-placeholder {
    border: 1px dashed #7fd0c5;
    background: #f4fbf8;
    color: #0d7b83;
    border-radius: 18px;
    padding: 2rem 1rem;
    text-align: center;
    font-weight: 700;
}

.info-contact-card {
    text-align: left;
}

.info-mail-button {
    align-items: center;
    justify-content: center;
    background: #0d7b83;
    color: white;
    padding: 0.75rem 1.2rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 999px;
}

    .info-mail-button:hover {
        opacity: 0.92;
    }

@media (max-width: 640px) {
    .info-page {
        padding: 0 0.75rem 2rem 0.75rem;
    }

    .info-card {
        border-radius: 18px;
        padding: 1rem;
    }

    .info-benefit-grid,
    .info-category-grid {
        grid-template-columns: 1fr;
    }
}

.info-video {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: #000;
    object-fit: cover;
}

.info-video-wrapper {
    margin-top: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
}

.info-contact-alt {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #6b7c80;
}

    .info-contact-alt a {
        color: #0e7379;
        text-decoration: underline;
    }

.info-contact-card p {
    margin-bottom: 0.25rem;
}

.info-contact-box {
    margin-top: 0.75rem;
}

.info-contact-primary {
    font-weight: 500;
    margin-bottom: 0.25rem;
    margin-top: 0.25rem;
}

    .info-contact-primary span {
        color: #6b7c80;
        margin-right: 0.25rem;
    }

    .info-contact-primary a {
        color: #0e7379;
        font-weight: 600;
        text-decoration: none;
    }

.info-contact-secondary {
    font-size: 0.9rem;
    color: #6b7c80;
}

    .info-contact-secondary a {
        color: #0e7379;
        text-decoration: underline;
    }


.premium-dialog-trust-note {
    margin-top: 0.65rem;
    color: #0d7b83;
    font-size: 0.9rem;
    font-weight: 700;
}


.legal-before-payment-hint {
    color: #9a5b00;
    font-weight: 700;
}

.paypal-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.no-subscription-note {
    margin-top: 0.35rem;
    color: #0d7b83;
    font-weight: 700;
}

h1,
.page-title,
.settings-title,
.account-title,
.detail-title {
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--activaro-teal, #007c80);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

h2,
.account-subtitle,
.detail-html h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h3 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.audience-info {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.6rem 0 0.9rem;
    font-weight: 600;
    color: #0b3b4a;
}

    .audience-info .audience-icon {
        width: 26px;
        height: 26px;
        object-fit: contain;
    }

.home-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

.home-brand-logo {
    width: min(420px, 82vw);
    height: auto;
    display: block;
}

.home-brand-icon {
    width: clamp(48px, 5vw, 78px);
    height: auto;
    display: block;
}

.home-brand h1 {
    margin: 0;
}

.selection-tile,
.start-button,
.topbar-button,
.school-level-change-button,
button,
a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.monitoring-tile {
    background: #f4fbf9;
    border: 1px solid rgba(13, 123, 131, 0.15);
    border-radius: 16px;
    padding: 1rem;
}

    .monitoring-tile span {
        display: block;
        font-size: 0.85rem;
        color: #5f6f73;
        margin-bottom: 0.35rem;
    }

    .monitoring-tile strong {
        display: block;
        font-size: 1.45rem;
        color: #0d7b83;
    }

.monitoring-warning {
    margin-top: 1rem;
    color: #b00020;
    font-weight: 700;
}

@media (min-width: 641px) and (max-width: 950px) {
    .home-brand {
        margin-bottom: 2.4rem;
    }
}

/* FEEDBACK */

.feedback-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0.75rem 3rem 0.75rem;
    box-sizing: border-box;
}

.feedback-card {
    background: white;
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

    .feedback-card h2 {
        margin: 0 0 0.75rem 0;
        color: #0d7b83;
        font-size: 1.55rem;
    }

.feedback-intro {
    text-align: left;
    margin: 0 0 1.4rem 0;
    color: #5f6f73;
    font-size: 1rem;
    line-height: 1.45;
}

.feedback-section {
    margin-top: 1.25rem;
}

.feedback-label {
    display: block;
    margin-bottom: 0.55rem;
    font-weight: 700;
    color: #18424d;
}

    .feedback-label span {
        font-weight: 400;
        color: #7a8a8f;
        font-size: 0.9rem;
    }

.feedback-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.feedback-choice {
    border: 1px solid #d9eee6;
    background: #f9fcfa;
    border-radius: 18px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    font: inherit;
    color: #18424d;
    text-align: center;
}

    .feedback-choice span {
        display: block;
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .feedback-choice strong {
        display: block;
        font-size: 0.98rem;
    }

    .feedback-choice.selected,
    .feedback-chip.selected {
        border-color: #0d7b83;
        background: #eaf7ef;
        box-shadow: 0 0 0 3px rgba(13, 123, 131, 0.12);
    }

.feedback-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.feedback-chip {
    border: 1px solid #d9eee6;
    background: #f9fcfa;
    color: #18424d;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
}

.feedback-textarea,
.feedback-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #b9ddd6;
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    font: inherit;
    font-size: 1rem;
}

.feedback-textarea {
    resize: vertical;
    min-height: 130px;
}

.feedback-privacy-note {
    text-align: left;
    margin: 1.25rem 0 0 0;
    color: #5f6f73;
    font-size: 0.92rem;
    line-height: 1.45;
}

    .feedback-privacy-note a {
        color: #0d7b83;
        font-weight: 700;
    }

.feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.feedback-success-card p {
    text-align: left;
    margin: 0 0 1.25rem 0;
    color: #5f6f73;
}

@media (max-width: 640px) {
    .feedback-card {
        padding: 1rem;
        border-radius: 18px;
    }

    .feedback-choice-grid {
        grid-template-columns: 1fr;
    }

    .feedback-actions {
        flex-direction: column;
    }

        .feedback-actions .start-button,
        .feedback-actions .school-level-change-button {
            width: 100%;
        }
}

.feedback-submit-box {
    margin-top: 1.4rem;
    background: #f4fbf8;
    border: 1px solid #d9eee6;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    color: #18424d;
}

    .feedback-submit-box strong {
        display: block;
        margin-bottom: 0.25rem;
        color: #0d7b83;
    }

    .feedback-submit-box span {
        display: block;
        font-size: 0.92rem;
        color: #5f6f73;
        line-height: 1.35;
    }


.pricing-price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
/* =========================================================
   Schullizenz-Anfrage
   Seite: /schullizenz-anfrage
   ========================================================= */

.school-request-page {
    min-height: 100vh;
    background: #f7fbf9;
    color: #24323f;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.school-request-hero {
    background: #eaf8f3;
    padding: 56px 22px 52px 22px;
}

.school-request-hero-inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.school-request-kicker {
    color: #0b7f86;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 14px;
}

.school-request-hero h1 {
    margin: 0;
    font-size: clamp(2.15rem, 4.7vw, 3.7rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.045em;
    color: #24323f;
}

    .school-request-hero h1:focus,
    .school-request-hero h1:focus-visible {
        outline: none;
    }

.school-request-hero p {
    max-width: 760px;
    margin: 24px auto 0 auto;
    font-size: 1.08rem;
    line-height: 1.58;
    color: #66757f;
}

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */

.school-request-section {
    padding: 58px 22px 80px 22px;
}

.school-request-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 30px;
    align-items: start;
}

.school-request-info-card,
.school-request-form-card {
    min-width: 0;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 16px 42px rgba(36, 50, 63, 0.09);
}

.school-request-info-card {
    padding: 36px 34px;
    position: sticky;
    top: 100px;
}

.school-request-form-card {
    padding: 36px 34px;
}

    .school-request-info-card h2,
    .school-request-form-card h2,
    .school-request-success h2 {
        margin: 0 0 22px 0;
        color: #24323f;
        font-size: 1.8rem;
        line-height: 1.12;
        font-weight: 900;
        letter-spacing: -0.035em;
    }

/* ---------------------------------------------------------
   Linke Infokarte
   --------------------------------------------------------- */

.school-request-steps {
    display: grid;
    gap: 16px;
}

    .school-request-steps div {
        background: #eaf8f3;
        border-radius: 20px;
        padding: 20px 20px;
    }

    .school-request-steps strong {
        display: block;
        color: #0b7f86;
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .school-request-steps span {
        display: block;
        color: #66757f;
        line-height: 1.52;
        font-size: 0.96rem;
    }

.school-request-note {
    margin: 20px 0 0 0;
    color: #66757f;
    line-height: 1.55;
    text-align: left;
    font-size: 0.98rem;
}

/* ---------------------------------------------------------
   Formular-Blöcke
   --------------------------------------------------------- */

.school-request-form-block {
    margin-bottom: 8px;
}

    .school-request-form-block h3 {
        margin: 0 0 12px 0;
        color: #24323f;
        font-size: 1.22rem;
        line-height: 1.18;
        font-weight: 900;
        letter-spacing: -0.025em;
    }

.school-request-helptext {
    margin: 0 0 18px 0;
    color: #66757f;
    line-height: 1.55;
    text-align: left;
    font-size: 1rem;
}

.school-request-small-help {
    font-size: 0.94rem;
}

.school-request-form-card hr {
    border: 0;
    border-top: 1px solid rgba(11, 127, 134, 0.12);
    margin: 30px 0;
}

/* ---------------------------------------------------------
   Lizenz-Auswahl
   --------------------------------------------------------- */

.school-license-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.school-license-option {
    position: relative;
    appearance: none;
    width: 100%;
    min-width: 0;
    min-height: 0;
    border: 2px solid rgba(11, 127, 134, 0.14);
    background: #f7fbf9;
    border-radius: 20px;
    padding: 1.05rem 1.05rem 1rem 1.05rem;
    text-align: left;
    color: #24323f;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

    .school-license-option:hover {
        transform: translateY(-1px);
        border-color: rgba(11, 127, 134, 0.32);
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(36, 50, 63, 0.07);
    }

    .school-license-option.selected {
        background: linear-gradient(180deg, #eaf8f3 0%, #ffffff 100%);
        border-color: #0b7f86;
        box-shadow: 0 0 0 3px rgba(11, 127, 134, 0.10), 0 12px 28px rgba(11, 127, 134, 0.12);
    }

.school-license-selected-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0b7f86;
    color: #ffffff;
    padding: 0.28rem 0.58rem;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 900;
}

.school-license-option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin-bottom: 0.7rem;
    border-radius: 13px;
    background: #0b7f86;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
}

.school-license-option.selected .school-license-option-label {
    background: #087078;
    box-shadow: 0 7px 16px rgba(11, 127, 134, 0.20);
}

.school-license-option strong {
    display: block;
    margin: 0 0 0.28rem 0;
    padding-right: 5.2rem;
    color: #24323f;
    font-size: 1.02rem;
    line-height: 1.18;
    font-weight: 900;
}

.school-license-option > span:not(.school-license-option-label):not(.school-license-selected-badge):not(.school-license-relaunch-badge):not(.school-license-old-price):not(.school-license-discount-note):not(.school-license-price-note) {
    display: block;
    color: #66757f;
    font-size: 0.9rem;
    line-height: 1.32;
}

.school-license-relaunch-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.55rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: #ddf7ec;
    color: #087078;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.1;
}

.school-license-old-price {
    display: block;
    margin-top: 0.35rem;
    color: #66757f;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.15;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    opacity: 0.85;
}

.school-license-option em {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 0.38rem;
    color: #0b7f86;
    font-style: normal;
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.school-license-option.selected em {
    color: #087078;
}

.school-license-option em small {
    color: #66757f;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
}

.school-license-individual-price {
    display: block !important;
    color: #0b7f86 !important;
    font-size: 1.22rem !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
}

.school-license-discount-note,
.school-license-price-note {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.25;
}

.school-license-discount-note {
    color: #24323f;
    font-weight: 850;
}

.school-license-price-note {
    color: #66757f;
    font-weight: 700;
}

/* ---------------------------------------------------------
   Laufzeit und Preisvorschau
   --------------------------------------------------------- */

.school-request-form-group {
    min-width: 0;
    margin-bottom: 20px;
}

    .school-request-form-group label {
        display: block;
        margin-bottom: 8px;
        color: #24323f;
        font-weight: 850;
        line-height: 1.25;
    }

.school-request-input,
.school-request-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid rgba(11, 127, 134, 0.20);
    background: #f7fbf9;
    border-radius: 14px;
    padding: 14px 16px;
    color: #24323f;
    font-size: 1rem;
    line-height: 1.35;
    outline: none;
    box-sizing: border-box;
}

    .school-request-input:focus,
    .school-request-textarea:focus {
        border-color: #0b7f86;
        box-shadow: 0 0 0 4px rgba(11, 127, 134, 0.10);
        background: #ffffff;
    }

.school-request-textarea {
    min-height: 140px;
    resize: vertical;
}

.school-request-price-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0 0;
    padding: 16px;
    border-radius: 22px;
    background: #eaf8f3;
    border: 1px solid rgba(11, 127, 134, 0.12);
}

    .school-request-price-preview div {
        min-width: 0;
        background: #ffffff;
        border-radius: 16px;
        padding: 13px 13px;
        box-sizing: border-box;
    }

    .school-request-price-preview span {
        display: block;
        margin-bottom: 5px;
        color: #66757f;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .school-request-price-preview strong {
        display: block;
        color: #24323f;
        font-size: 0.98rem;
        line-height: 1.28;
        font-weight: 900;
    }

    .school-request-price-preview div:last-child strong {
        color: #0b7f86;
        font-size: 1.12rem;
        letter-spacing: -0.02em;
    }

    .school-request-price-preview small {
        display: block;
        margin-top: 6px;
        color: #66757f;
        font-size: 0.8rem;
        line-height: 1.32;
    }

/* ---------------------------------------------------------
   Formularfelder
   --------------------------------------------------------- */

.school-request-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

/* Blazor Validation */
.validation-message {
    display: block;
    margin-top: 7px;
    color: #8a1f1f;
    font-size: 0.92rem;
    line-height: 1.4;
}

/* ---------------------------------------------------------
   Datenschutz
   --------------------------------------------------------- */

.school-request-checkbox {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 18px 0 8px 0;
    color: #66757f;
    line-height: 1.55;
    cursor: pointer;
}

    .school-request-checkbox input {
        width: 18px;
        height: 18px;
        margin-top: 4px;
        accent-color: #0b7f86;
    }

    .school-request-checkbox span {
        display: block;
        min-width: 0;
    }

.school-request-privacy-link {
    margin: 8px 0 0 34px;
    font-size: 0.94rem;
    line-height: 1.4;
    text-align: left;
}

    .school-request-privacy-link a {
        color: #0b7f86;
        font-weight: 850;
        text-decoration: none;
    }

        .school-request-privacy-link a:hover {
            text-decoration: underline;
        }

/* ---------------------------------------------------------
   Meldungen / Erfolg
   --------------------------------------------------------- */

.school-request-error {
    background: #fff3f3;
    color: #8a1f1f;
    border: 1px solid rgba(138, 31, 31, 0.18);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.school-request-success {
    text-align: center;
    padding: 24px 0;
}

    .school-request-success p {
        color: #66757f;
        line-height: 1.6;
        font-size: 1.08rem;
    }

.school-request-reference {
    display: inline-block;
    margin-top: 10px;
    background: #eaf8f3;
    color: #0b7f86 !important;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 850;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.activaro-primary-button,
.activaro-secondary-button {
    border: none;
    border-radius: 999px;
    padding: 15px 28px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.activaro-primary-button {
    display: block;
    width: 100%;
    background: #0b7f86;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
}

.activaro-secondary-button {
    background: #eaf8f3;
    color: #0b7f86;
}

    .activaro-primary-button:hover,
    .activaro-secondary-button:hover {
        transform: translateY(-1px);
    }

.activaro-primary-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.school-request-privacy {
    margin: 16px 0 0 0;
    color: #66757f;
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
}

/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .school-request-layout {
        grid-template-columns: 1fr;
    }

    .school-request-info-card {
        position: static;
    }

    .school-request-price-preview {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 760px) {
    .school-license-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .school-request-hero {
        padding: 48px 20px 44px 20px;
    }

        .school-request-hero h1 {
            font-size: clamp(2rem, 10vw, 3rem);
        }

        .school-request-hero p {
            font-size: 1.02rem;
            line-height: 1.52;
        }

    .school-request-section {
        padding: 42px 16px 64px 16px;
    }

    .school-request-info-card,
    .school-request-form-card {
        padding: 28px 22px;
        border-radius: 24px;
    }

        .school-request-info-card h2,
        .school-request-form-card h2,
        .school-request-success h2 {
            font-size: 1.55rem;
        }

    .school-request-form-block h3 {
        font-size: 1.14rem;
    }

    .school-license-option {
        padding: 1rem;
    }

        .school-license-option strong {
            padding-right: 5.4rem;
        }

    .school-request-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .school-request-form-group {
        margin-bottom: 18px;
    }

    .school-request-checkbox {
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .school-request-privacy-link {
        margin-left: 32px;
    }

    .activaro-primary-button,
    .activaro-secondary-button {
        padding: 15px 22px;
        font-size: 0.92rem;
        line-height: 1.25;
    }
}

/* ---------------------------------------------------------
   Sehr kleine Geräte
   --------------------------------------------------------- */

@media (max-width: 380px) {
    .school-request-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .school-request-info-card,
    .school-request-form-card {
        padding: 24px 18px;
    }

    .school-license-selected-badge {
        position: static;
        display: inline-flex;
        margin-bottom: 12px;
    }

    .school-license-option strong {
        padding-right: 0;
    }
}

/* =========================================================
   Admin / Interner Bereich
   ========================================================= */

.admin-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0.75rem 3rem 0.75rem;
    box-sizing: border-box;
}

.admin-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

    .admin-card h2 {
        margin: 0 0 0.75rem 0;
        color: #0d7b83;
        font-size: 1.65rem;
        line-height: 1.15;
        letter-spacing: -0.025em;
    }

    .admin-card p {
        text-align: left;
        margin: 0 0 1.25rem 0;
        color: #5f6f73;
        line-height: 1.5;
        font-size: 1rem;
    }

.admin-intro {
    margin-bottom: 1.35rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.admin-tile {
    appearance: none;
    width: 100%;
    min-width: 0;
    border: 1px solid #d9eee6;
    background: #f9fcfa;
    border-radius: 20px;
    padding: 1.2rem;
    text-align: left;
    color: #18424d;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .admin-tile:hover:not(:disabled) {
        transform: translateY(-2px);
        background: #ffffff;
        border-color: rgba(13, 123, 131, 0.28);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }

.admin-tile-kicker {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: #eaf7ef;
    border: 1px solid #7fd0c5;
    color: #0d7b83;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.admin-tile strong {
    display: block;
    margin-bottom: 0.55rem;
    color: #18424d;
    font-size: 1.12rem;
    line-height: 1.2;
}

.admin-tile span:not(.admin-tile-kicker) {
    display: block;
    color: #5f6f73;
    font-size: 0.95rem;
    line-height: 1.45;
}

.admin-tile em {
    display: block;
    margin-top: 1rem;
    color: #0d7b83;
    font-style: normal;
    font-weight: 800;
}

.admin-tile.disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-card {
        padding: 1rem;
        border-radius: 18px;
    }

        .admin-card h2 {
            font-size: 1.45rem;
        }

    .admin-tile {
        border-radius: 18px;
        padding: 1rem;
    }
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

    .admin-actions .activaro-primary-button,
    .admin-actions .activaro-secondary-button {
        width: auto;
    }

@media (max-width: 640px) {
    .admin-actions {
        flex-direction: column;
    }

        .admin-actions .activaro-primary-button,
        .admin-actions .activaro-secondary-button {
            width: 100%;
        }
}

/* =========================================================
   Admin – Schullizenz-Anfragen Liste
   ========================================================= */

.admin-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-refresh-button {
    width: auto;
    flex-shrink: 0;
}

.admin-empty-state {
    background: #f9fcfa;
    border: 1px solid #d9eee6;
    border-radius: 18px;
    padding: 1rem;
    color: #5f6f73;
}

.admin-request-list {
    display: grid;
    gap: 1rem;
}

.admin-request-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 1rem;
    align-items: stretch;
    background: #f9fcfa;
    border: 1px solid #d9eee6;
    border-radius: 20px;
    padding: 1rem;
}

.admin-request-main {
    min-width: 0;
}

.admin-request-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 0.65rem;
}

.admin-status-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: #eaf7ef;
    border: 1px solid #7fd0c5;
    color: #0d7b83;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-request-date {
    color: #6b7a7a;
    font-size: 0.88rem;
}

.admin-request-card h3 {
    margin: 0 0 0.55rem 0;
    color: #18424d;
    font-size: 1.2rem;
    line-height: 1.2;
}

.admin-request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

    .admin-request-meta span {
        display: inline-flex;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid #e4f2ee;
        color: #5f6f73;
        padding: 0.25rem 0.6rem;
        font-size: 0.86rem;
    }

.admin-request-contact {
    display: grid;
    gap: 0.2rem;
}

    .admin-request-contact strong {
        color: #18424d;
    }

    .admin-request-contact a {
        color: #0d7b83;
        font-weight: 700;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

        .admin-request-contact a:hover {
            text-decoration: underline;
        }

.admin-request-side {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.admin-request-price,
.admin-request-package {
    background: #ffffff;
    border-radius: 16px;
    padding: 0.8rem;
    border: 1px solid #e4f2ee;
}

    .admin-request-price span,
    .admin-request-package span {
        display: block;
        color: #6b7a7a;
        font-size: 0.82rem;
        margin-bottom: 0.25rem;
    }

    .admin-request-price strong,
    .admin-request-package strong {
        display: block;
        color: #18424d;
        font-size: 1rem;
    }

.admin-open-button {
    appearance: none;
    border: none;
    background: #0d7b83;
    color: white;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

    .admin-open-button:hover {
        opacity: 0.92;
    }

@media (max-width: 760px) {
    .admin-list-header {
        flex-direction: column;
    }

    .admin-refresh-button {
        width: 100%;
    }

    .admin-request-card {
        grid-template-columns: 1fr;
    }

    .admin-request-side {
        grid-template-columns: 1fr 1fr;
    }

    .admin-open-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .admin-request-side {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Admin – Schullizenz-Anfrage Detail
   ========================================================= */

.admin-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1rem;
    align-items: start;
}

.admin-detail-main,
.admin-detail-side {
    min-width: 0;
}

.admin-detail-side {
    position: sticky;
    top: 90px;
}

.admin-detail-title-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

    .admin-detail-title-row h2 {
        margin-bottom: 0.35rem;
    }

    .admin-detail-title-row p {
        margin: 0;
    }

.admin-detail-section {
    border-top: 1px solid #d9eee6;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

    .admin-detail-section h3 {
        margin: 0 0 0.85rem 0;
        color: #18424d;
        font-size: 1.12rem;
    }

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.admin-info-item {
    min-width: 0;
    background: #f9fcfa;
    border: 1px solid #d9eee6;
    border-radius: 16px;
    padding: 0.85rem;
}

    .admin-info-item span {
        display: block;
        color: #6b7a7a;
        font-size: 0.82rem;
        margin-bottom: 0.3rem;
    }

    .admin-info-item strong {
        display: block;
        color: #18424d;
        font-size: 0.98rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .admin-info-item a {
        color: #0d7b83;
        text-decoration: none;
    }

        .admin-info-item a:hover {
            text-decoration: underline;
        }

.admin-message-box {
    white-space: pre-wrap;
    background: #f9fcfa;
    border: 1px solid #d9eee6;
    border-radius: 16px;
    padding: 1rem;
    color: #18424d;
    line-height: 1.5;
}

.admin-muted {
    text-align: left;
    margin: 0;
    color: #6b7a7a;
}

.admin-edit-form {
    display: grid;
    gap: 1rem;
}

.admin-edit-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: #18424d;
    font-weight: 800;
}

.admin-note-textarea {
    min-height: 180px;
}

@media (max-width: 980px) {
    .admin-detail-layout {
        grid-template-columns: 1fr;
    }

    .admin-detail-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .admin-detail-title-row {
        flex-direction: column;
    }

    .admin-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Admin – Filterleiste
   ========================================================= */

.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 0.85rem 0;
}

.admin-filter-chip {
    appearance: none;
    border: 1px solid #d9eee6;
    background: #f9fcfa;
    color: #18424d;
    border-radius: 999px;
    padding: 0.48rem 0.75rem;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

    .admin-filter-chip:hover {
        background: #ffffff;
        border-color: rgba(13, 123, 131, 0.28);
        transform: translateY(-1px);
    }

    .admin-filter-chip.selected {
        background: #0d7b83;
        border-color: #0d7b83;
        color: #ffffff;
    }

    .admin-filter-chip strong {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 1.35rem;
        height: 1.35rem;
        border-radius: 999px;
        background: rgba(13, 123, 131, 0.10);
        color: #0d7b83;
        padding: 0 0.35rem;
        font-size: 0.78rem;
        font-weight: 900;
    }

    .admin-filter-chip.selected strong {
        background: rgba(255, 255, 255, 0.22);
        color: #ffffff;
    }

.admin-list-summary {
    margin: 0 0 1rem 0;
    color: #6b7a7a;
    font-size: 0.92rem;
}

/* =========================================================
   Admin – Angebot vorbereiten
   ========================================================= */

.admin-offer-action-box {
    background: #f9fcfa;
    border: 1px solid #d9eee6;
    border-radius: 18px;
    padding: 1rem;
}

    .admin-offer-action-box h3 {
        margin: 0 0 0.45rem 0;
        color: #18424d;
        font-size: 1.05rem;
    }

    .admin-offer-action-box p {
        text-align: left;
        margin: 0 0 0.9rem 0;
        color: #5f6f73;
        font-size: 0.92rem;
        line-height: 1.45;
    }

.admin-offer-action-button {
    width: 100%;
}

.admin-offer-action-button-secondary {
    margin-top: 0.65rem;
}

.admin-maintenance-card {
    margin-top: 1.25rem;
}

.admin-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

    .admin-list-header h2 {
        margin: 0 0 0.35rem 0;
        color: #0d7b83;
    }

    .admin-list-header p {
        margin: 0;
        text-align: left;
        color: #5f6f73;
        font-size: 1rem;
    }

.admin-list-header-button {
    width: auto;
    min-width: 190px;
    flex-shrink: 0;
}

.admin-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    align-items: center;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.65rem;
}

    .admin-table th {
        text-align: left;
        font-size: 0.82rem;
        color: #66757F;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 0 0.8rem;
    }

    .admin-table td {
        background: #f9fcfa;
        border-top: 1px solid #d9eee6;
        border-bottom: 1px solid #d9eee6;
        padding: 0.85rem 0.8rem;
        vertical-align: middle;
    }

        .admin-table td:first-child {
            border-left: 1px solid #d9eee6;
            border-radius: 16px 0 0 16px;
        }

        .admin-table td:last-child {
            border-right: 1px solid #d9eee6;
            border-radius: 0 16px 16px 0;
        }

        .admin-table td strong {
            display: block;
            color: #18424d;
            font-size: 0.95rem;
            margin-bottom: 0.2rem;
        }

        .admin-table td span {
            display: block;
            color: #5f6f73;
            font-size: 0.86rem;
            line-height: 1.35;
        }

.admin-table-action {
    text-align: right;
    white-space: nowrap;
}

.admin-small-button {
    width: auto;
    padding: 0.55rem 0.95rem;
    font-size: 0.88rem;
}

.admin-empty-state {
    background: #f9fcfa;
    border: 1px solid #d9eee6;
    border-radius: 18px;
    padding: 1.25rem;
    text-align: left;
}

    .admin-empty-state h3 {
        margin: 0 0 0.4rem 0;
        color: #0d7b83;
    }

    .admin-empty-state p {
        margin: 0;
        text-align: left;
        color: #5f6f73;
    }

@media (max-width: 700px) {
    .admin-list-header {
        flex-direction: column;
    }

    .admin-list-header-button {
        width: 100%;
    }

    .admin-filter-row {
        grid-template-columns: 1fr;
    }

        .admin-filter-row .activaro-secondary-button {
            width: 100%;
        }
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-form-full {
    grid-column: 1 / -1;
}

.admin-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: #f9fcfa;
    border: 1px solid #d9eee6;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    color: #18424d;
    font-weight: 700;
    cursor: pointer;
}

    .admin-checkbox-row input {
        margin-top: 0.15rem;
        flex-shrink: 0;
    }

@media (max-width: 700px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-full {
        grid-column: auto;
    }
}


.admin-code-actions {
    margin-top: 1rem;
}

    .admin-code-actions .activaro-secondary-button {
        width: auto;
    }

@media (max-width: 700px) {
    .admin-code-actions {
        flex-direction: column;
    }

        .admin-code-actions .activaro-secondary-button {
            width: 100%;
        }
}

.admin-filter-row-secondary {
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: -0.55rem;
}

.admin-id-line {
    font-size: 0.78rem !important;
    color: #7a8a8f !important;
    word-break: break-all;
}

@media (max-width: 700px) {
    .admin-filter-row-secondary {
        grid-template-columns: 1fr;
    }
}

.admin-danger-checkbox {
    border-color: #f0c4c4;
    background: #fff8f8;
}

    .admin-danger-checkbox span {
        color: #8a1f1f;
    }

.school-search-select {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.school-search-selected {
    position: relative;
}

    .school-search-selected input {
        padding-right: 2.5rem;
    }

.school-search-clear {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #eaf8f3;
    color: #0d7b83;
    border-radius: 999px;
    width: 1.65rem;
    height: 1.65rem;
    font-weight: 800;
    cursor: pointer;
}

.school-search-current {
    font-size: 0.82rem;
    color: #5f6f73;
    line-height: 1.35;
}

.school-search-current-empty {
    color: #8a9699;
}

.school-search-dropdown {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    max-height: 310px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #cce9e2;
    border-radius: 18px;
    box-shadow: 0 16px 35px rgba(20, 80, 85, 0.16);
    padding: 0.4rem;
}

.school-search-option {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    color: #18424d;
}

    .school-search-option:hover,
    .school-search-option.active {
        background: #eaf8f3;
    }

    .school-search-option strong {
        display: block;
        color: #0d7b83;
        font-size: 0.92rem;
        margin-bottom: 0.15rem;
    }

    .school-search-option span {
        display: block;
        color: #5f6f73;
        font-size: 0.8rem;
        line-height: 1.3;
    }

.school-search-option-empty {
    font-weight: 800;
    color: #0d7b83;
}

.school-search-no-results {
    padding: 0.85rem;
    color: #8a9699;
    font-size: 0.88rem;
}

.school-user-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.school-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #cce9e2;
    border-radius: 18px;
    background: #f8fdfb;
}

.school-user-main {
    min-width: 0;
    flex: 1;
}

.school-user-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #123947;
    font-size: 1rem;
    line-height: 1.3;
}

.school-user-email {
    margin-top: 0.25rem;
    color: #18424d;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.school-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    margin-top: 0.55rem;
    color: #66757f;
    font-size: 0.82rem;
}

    .school-user-meta span {
        display: inline-flex;
        align-items: center;
    }

.school-user-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    background: #eaf8f3;
    color: #0b7f86;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.school-user-badge-admin {
    background: #fff4dd;
    color: #9a6400;
}

.school-user-actions {
    flex: 0 0 auto;
}

    .school-user-actions .activaro-secondary-button {
        white-space: nowrap;
    }

@media (max-width: 760px) {
    .school-user-card {
        align-items: stretch;
        flex-direction: column;
    }

    .school-user-actions {
        width: 100%;
    }

        .school-user-actions .activaro-secondary-button {
            width: 100%;
        }
}

.admin-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0 0.75rem;
    padding: 1rem;
    border: 1px solid #cce9e2;
    border-radius: 20px;
    background: #f8fdfb;
}

.admin-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.admin-filter-label {
    font-size: 0.82rem;
    font-weight: 800;
    color: #18424d;
}

.admin-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-filter-chip {
    border: 1px solid #cce9e2;
    background: #ffffff;
    color: #0d7b83;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

    .admin-filter-chip:hover {
        background: #eaf8f3;
    }

    .admin-filter-chip.active {
        background: #0b7f86;
        color: #ffffff;
        border-color: #0b7f86;
    }

.admin-result-summary {
    margin: 0.75rem 0 1rem;
    color: #5f6f73;
    font-size: 0.9rem;
}

.admin-sort-select {
    max-width: 320px;
}

@media (min-width: 900px) {
    .admin-filter-panel {
        display: grid;
        grid-template-columns: 1.3fr 1fr 1fr;
        align-items: start;
    }
}


.monitoring-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 1.25rem;
}

    .monitoring-status-row > div {
        min-width: 180px;
        padding: 0.85rem 1rem;
        border-radius: 18px;
        background: #eaf8f3;
    }

.monitoring-status-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.82rem;
    color: #66757f;
}

.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.monitoring-tile {
    padding: 1rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #d6eee7;
    box-shadow: 0 8px 22px rgba(11, 127, 134, 0.08);
}

    .monitoring-tile span {
        display: block;
        color: #66757f;
        font-size: 0.86rem;
        margin-bottom: 0.4rem;
    }

    .monitoring-tile strong {
        display: block;
        color: #24323f;
        font-size: 1.55rem;
        line-height: 1.1;
    }

    .monitoring-tile em {
        display: block;
        margin-top: 0.45rem;
        color: #66757f;
        font-size: 0.82rem;
        font-style: normal;
    }

.monitoring-warning-box {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: #fff7e6;
    border: 1px solid #f2d7a1;
    color: #5c4210;
}

    .monitoring-warning-box h3 {
        margin: 0 0 0.5rem;
    }

    .monitoring-warning-box p {
        margin: 0.35rem 0;
    }

.monitoring-table td span {
    display: block;
    margin-top: 0.15rem;
    color: #66757f;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .monitoring-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .monitoring-grid {
        grid-template-columns: 1fr;
    }

    .monitoring-status-row {
        flex-direction: column;
    }

        .monitoring-status-row > div {
            width: 100%;
        }
}

.info-video-note {
    margin: 1rem 0 1.1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #eaf8f3;
    border: 1px solid #c9ebe3;
    color: #24323f;
    line-height: 1.45;
}

    .info-video-note strong {
        color: #0b7f86;
    }


.favorites-page-intro {
    margin-bottom: 1.6rem;
    text-align: left;
}

    .favorites-page-intro h2 {
        margin: 0 0 0.45rem;
        font-size: 1.35rem;
        line-height: 1.2;
        color: #063847;
    }

    .favorites-page-intro p {
        max-width: 680px;
        margin: 0;
        color: #66757f;
        line-height: 1.5;
    }
.favorites-section {
    margin-top: 1.75rem;
}

    .favorites-section + .favorites-section {
        padding-top: 1.5rem;
        border-top: 1px solid #d6eee7;
    }

.favorites-section-header {
    text-align: left;
}

    .favorites-section-header h3 {
       
        margin: 0 0 0.2rem;
        font-size: 1.15rem;
        line-height: 1.25;
        color: #063847;
    }

    .favorites-section-header p {

        margin: 0;
        color: #66757f;
        line-height: 1.45;
    }

.favorites-empty-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 18px;
    background: #eaf8f3;
    color: #24323f;
}

    .favorites-empty-box span {
        color: #66757f;
    }

.favorites-clear-button {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .favorites-section-header {
        flex-direction: column;
    }

    .favorites-clear-button {
        width: 100%;
    }
}

/* FAVORITEN / MEINE ÜBUNGEN - saubere Ausrichtung */
.favorites-page-intro,
.favorites-section,
.favorites-section-header,
.favorites-section-header > div,
.favorites-empty-box {
    text-align: left;
}

.favorites-page-intro {
    margin-bottom: 1.75rem;
}

    .favorites-page-intro h2 {
        margin: 0 0 0.45rem;
        font-size: 1.35rem;
        line-height: 1.2;
        color: #063847;
    }

    .favorites-page-intro p {
        max-width: 720px;
        margin: 0;
        color: #66757f;
        line-height: 1.5;
    }

.favorites-section {
    margin-top: 1.75rem;
}

    .favorites-section + .favorites-section {
        padding-top: 1.5rem;
        border-top: 1px solid #d6eee7;
    }

.favorites-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .favorites-section-header h3 {
        margin: 0 0 0.25rem;
        font-size: 1.15rem;
        line-height: 1.25;
        color: #063847;
    }

    .favorites-section-header p {
        max-width: 720px;
        margin: 0;
        color: #66757f;
        line-height: 1.45;
    }

.favorites-section .exercise-list {
    margin-top: 0.75rem;
}

.favorites-empty-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 18px;
    background: #eaf8f3;
    color: #24323f;
}

    .favorites-empty-box span {
        color: #66757f;
    }

.favorites-clear-button {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .favorites-page-intro h2 {
        font-size: 1.25rem;
    }

    .favorites-section-header {
        flex-direction: column;
    }

    .favorites-clear-button {
        width: 100%;
    }
}

/* MEINE ÜBUNGEN - Intro gezielt linksbündig erzwingen */
.settings-page .settings-card .favorites-page-intro {
    text-align: left !important;
}

    .settings-page .settings-card .favorites-page-intro h2 {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .settings-page .settings-card .favorites-page-intro p {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 720px;
    }

.school-admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

    .school-admin-header h2 {
        margin: 0 0 0.35rem;
    }

    .school-admin-header p {
        margin: 0;
        color: #66757f;
    }

.school-admin-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #eaf8f3;
    color: #087078;
    font-weight: 700;
    white-space: nowrap;
}

.school-admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.school-admin-summary-tile {
    padding: 1rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #d6eee7;
    text-align: left;
    box-shadow: 0 8px 22px rgba(11, 127, 134, 0.08);
}

    .school-admin-summary-tile span {
        display: block;
        color: #66757f;
        font-size: 0.86rem;
        margin-bottom: 0.4rem;
    }

    .school-admin-summary-tile strong {
        display: block;
        color: #24323f;
        font-size: 1.25rem;
        line-height: 1.15;
    }

    .school-admin-summary-tile em {
        display: block;
        margin-top: 0.45rem;
        color: #66757f;
        font-size: 0.82rem;
        font-style: normal;
    }

.school-admin-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

    .school-admin-section-header h2 {
        margin: 0 0 0.35rem;
    }

    .school-admin-section-header p {
        margin: 0;
        color: #66757f;
    }

.school-admin-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: #eaf8f3;
    text-align: left;
}

    .school-admin-code-box span {
        display: block;
        color: #66757f;
        font-size: 0.86rem;
        margin-bottom: 0.25rem;
    }

    .school-admin-code-box strong {
        display: block;
        color: #063847;
        font-size: 1.4rem;
        letter-spacing: 0.04em;
    }

.school-admin-danger-zone {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: #fff7e6;
    border: 1px solid #f2d7a1;
    text-align: left;
}

    .school-admin-danger-zone h3 {
        margin: 0 0 0.4rem;
    }

    .school-admin-danger-zone p {
        margin: 0 0 0.8rem;
        color: #5c4210;
    }

.school-admin-user-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.school-admin-user-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto minmax(220px, auto);
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #d6eee7;
    text-align: left;
}

.school-admin-user-main strong,
.school-admin-user-main span {
    display: block;
}

.school-admin-user-main span {
    margin-top: 0.2rem;
    color: #66757f;
}

.school-admin-user-role {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #eaf8f3;
    color: #087078;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.school-admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.school-admin-small-button {
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
}

.school-admin-empty-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 18px;
    background: #eaf8f3;
    color: #24323f;
    text-align: left;
}

    .school-admin-empty-box span {
        color: #66757f;
    }

@media (max-width: 900px) {
    .school-admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-admin-user-row {
        grid-template-columns: 1fr;
    }

    .school-admin-user-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .school-admin-header,
    .school-admin-section-header,
    .school-admin-code-box {
        flex-direction: column;
    }

    .school-admin-summary-grid {
        grid-template-columns: 1fr;
    }

    .school-admin-code-box button,
    .school-admin-user-actions button {
        width: 100%;
    }
}

/* =========================================================
   Intern: Reminder Preview
   ========================================================= */

.reminders-preview-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 18px 56px;
}

.reminders-preview-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.reminders-preview-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: #24323F;
}

.reminders-preview-subtitle {
    margin: 8px 0 0;
    color: #66757F;
    max-width: 720px;
}

.reminders-preview-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reminders-preview-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

    .reminders-preview-button:disabled {
        opacity: 0.65;
        cursor: default;
    }

    .reminders-preview-button:not(:disabled):hover {
        transform: translateY(-1px);
    }

.reminders-preview-button-primary {
    background: #087078;
    color: white;
    box-shadow: 0 8px 22px rgba(8, 112, 120, 0.22);
}

.reminders-preview-button-secondary {
    background: #EAF8F3;
    color: #087078;
}

.reminders-preview-card,
.reminders-preview-section {
    background: white;
    border: 1px solid rgba(36, 50, 63, 0.08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(36, 50, 63, 0.06);
}

.reminders-preview-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.reminders-preview-summary-card {
    background: white;
    border: 1px solid rgba(36, 50, 63, 0.08);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(36, 50, 63, 0.05);
}

.reminders-preview-summary-number {
    font-size: 2rem;
    font-weight: 800;
    color: #087078;
    line-height: 1;
}

.reminders-preview-summary-label {
    margin-top: 8px;
    color: #66757F;
    font-weight: 600;
}

.reminders-preview-meta {
    color: #66757F;
    font-size: 0.95rem;
    margin: 10px 0 24px;
}

.reminders-preview-section {
    margin-top: 22px;
}

.reminders-preview-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .reminders-preview-section-title-row h2 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 750;
        color: #24323F;
    }

.reminders-preview-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #EAF8F3;
    color: #087078;
    font-weight: 750;
}

.reminders-preview-empty-state {
    padding: 18px;
    border-radius: 16px;
    background: #F7FAFA;
    color: #66757F;
}

.reminders-preview-info-box {
    padding: 14px 16px;
    border-radius: 16px;
    background: #EAF8F3;
    color: #24545A;
    margin-bottom: 14px;
}

.reminders-preview-alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 600;
}

.reminders-preview-alert-error {
    background: #FDECEC;
    color: #9D1C1C;
}

.reminders-preview-table-wrap {
    overflow-x: auto;
}

.reminders-preview-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

    .reminders-preview-table th,
    .reminders-preview-table td {
        padding: 12px 10px;
        border-bottom: 1px solid rgba(36, 50, 63, 0.08);
        text-align: left;
        vertical-align: top;
    }

    .reminders-preview-table th {
        font-size: 0.85rem;
        color: #66757F;
        font-weight: 750;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .reminders-preview-table td {
        color: #24323F;
    }

.reminders-preview-muted {
    color: #66757F;
    font-size: 0.92em;
}

.reminders-preview-reason-cell {
    max-width: 280px;
    color: #66757F !important;
}

.reminders-preview-code {
    background: #F2F5F5;
    border-radius: 8px;
    padding: 3px 7px;
    font-size: 0.9em;
}

@media (max-width: 800px) {
    .reminders-preview-header {
        flex-direction: column;
    }

    .reminders-preview-header-actions {
        justify-content: flex-start;
    }

    .reminders-preview-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .reminders-preview-summary-grid {
        grid-template-columns: 1fr;
    }

    .reminders-preview-page {
        padding: 22px 12px 44px;
    }
}

.reminders-preview-button-danger {
    background: #B42318;
    color: white;
    box-shadow: 0 8px 22px rgba(180, 35, 24, 0.22);
}

.reminders-preview-warning-box {
    padding: 14px 16px;
    border-radius: 16px;
    background: #FFF4E5;
    color: #7A3E00;
    margin-bottom: 18px;
    border: 1px solid rgba(122, 62, 0, 0.12);
}

.reminders-preview-send-result {
    margin-bottom: 22px;
}

.reminders-preview-send-group {
    margin-top: 18px;
}

    .reminders-preview-send-group h3 {
        margin: 0 0 10px;
        font-size: 1rem;
        font-weight: 750;
        color: #24323F;
    }

.reminders-preview-send-table {
    min-width: 760px;
}

.reminders-preview-status-success,
.reminders-preview-status-error {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.85rem;
    font-weight: 750;
}

.reminders-preview-status-success {
    background: #EAF8F3;
    color: #087078;
}

.reminders-preview-status-error {
    background: #FDECEC;
    color: #9D1C1C;
}


/* Quick-Fix kurz vor Launch: Schullizenz-Anfrage etwas ruhiger */
.school-request-hero {
    padding-top: 44px !important;
    padding-bottom: 42px !important;
}

    .school-request-hero h1 {
        font-size: clamp(2rem, 4.2vw, 3.25rem) !important;
        line-height: 1.06 !important;
        font-weight: 850 !important;
    }

.school-request-section {
    padding-top: 48px !important;
}