﻿body {
    font-family: Arial, Helvetica, sans-serif;
    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 {
        border-color: #f0d69c;
        box-shadow: 0 0 0 4px rgba(240, 214, 156, 0.45), 0 8px 18px rgba(0, 0, 0, 0.14);
        transform: scale(1.03);
    }

/* 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 {
        border-color: #f0d69c;
        box-shadow: 0 0 0 4px rgba(240, 214, 156, 0.45), 0 8px 18px rgba(0, 0, 0, 0.14);
        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 */

/* 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-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;
    }

.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;
    background: rgba(0, 0, 0, 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2000;
}

.premium-dialog-card {
    width: 100%;
    max-width: 520px;
    background: white;
    border-radius: 22px;
    padding: 1.4rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.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;
}

.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-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 */
/* LISTE */
    /* 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;
    }

    .premium-dialog-card {
        max-width: 100%;
        padding: 1rem;
        border-radius: 16px;
    }

    .premium-dialog-actions {
        flex-direction: column;
    }

        .premium-dialog-actions .start-button,
        .premium-dialog-actions .school-level-change-button {
            width: 100%;
        }

    .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;
    }



.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.5rem 0;
        padding-left: 0;
        list-style: none;
    }

    .pricing-box p {
        text-align: left;
        margin-bottom: 0.75rem;
    }

.pricing-note {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: #5f6f73;
}

.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 Zurück-Link */

.activaro-back-button {
    background: none;
    border: none;
    color: #0d7b83;
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0;
    text-decoration: underline;
    white-space: nowrap;
}

    .activaro-back-button:hover {
        opacity: 0.85;
    }

.activaro-page-back-row {
    margin-bottom: 0.35rem;
}

@media (max-width: 640px) {
    .activaro-back-button {
        font-size: 1rem;
        padding: 0.35rem 0;
    }

    .activaro-page-back-row {
        margin-bottom: 0.25rem;
    }
}

.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 {
    appearance: none;
    border: none;
    background: transparent;
    color: #087f83;
    font: inherit;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.35rem 0;
    margin: 0;
    display: inline-block;
}

.page-header-title {
    margin: 0.45rem 0 1rem 0;
    color: #087f83;
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    line-height: 1.05;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 640px) {
    .page-header {
        padding: 1rem 0.75rem 0.65rem 0.75rem;
    }

    .page-header-title {
        margin-top: 0.35rem;
        margin-bottom: 0.9rem;
    }
}

.page-header-title:focus,
.page-header-title:focus-visible {
    outline: none;
}

/* 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;
}