:root {
    --lh-ink: #1f2937;
    --lh-muted: #5b6777;
    --lh-paper: #f7f8fb;
    --lh-primary: #0f62fe;
    --lh-primary-dark: #0043ce;
    --lh-accent: #ff6b2c;
    --lh-teal: #00a7a0;
    --lh-dark: #1b1f3b;
    --lh-success: #188038;
    --lh-danger: #d93025;
    --lh-warning: #f9ab00;
    --lh-shadow: 0 16px 40px rgba(16, 32, 62, 0.12);
    --lh-radius: 16px;
}

* {
    box-sizing: border-box;
}

.lh-promo-banner {
    background: linear-gradient(90deg, #1b1f3b 0%, #0f62fe 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lh-promo-banner-text {
    color: rgba(255,255,255,0.92);
    font-size: 0.92rem;
}

.lh-promo-banner-btn {
    background: #fff;
    color: var(--lh-primary-dark);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.lh-promo-banner-btn:hover {
    background: #e8f0ff;
    color: #0043ce;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--lh-ink);
    background:
        radial-gradient(circle at 20% -10%, rgba(15, 98, 254, 0.2), transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(255, 107, 44, 0.2), transparent 35%),
        linear-gradient(180deg, #f7f9fe 0%, #f4f7fc 100%);
    min-height: 100vh;
}

.lh-navbar {
    background: linear-gradient(120deg, #1b1f3b 0%, #2a3068 55%, #0f62fe 100%);
    box-shadow: 0 8px 24px rgba(9, 20, 46, 0.22);
}

.brand-icon {
    font-size: 1.3rem;
}

.brand-text {
    font-weight: 900;
    letter-spacing: 0.2px;
}

.text-danger-soft {
    color: #ffc8c8 !important;
}

.lh-footer {
    background: #14172c;
}

.lh-btn-primary {
    background: linear-gradient(135deg, var(--lh-primary) 0%, var(--lh-primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lh-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 98, 254, 0.28);
}

.lh-btn-outline {
    border: 2px solid #d1ddff;
    color: #1c366f;
    border-radius: 12px;
    background: #fff;
}

.lh-btn-outline:hover {
    color: #0b3fb0;
    border-color: #a3c0ff;
    background: #f3f7ff;
}

.lh-badge-pill {
    background: #e9f1ff;
    color: #1f3f7e;
    border: 1px solid #c6dcff;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
}

.lh-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.lh-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    line-height: 1.05;
    margin: 0;
    font-weight: 900;
}

.lh-highlight {
    color: var(--lh-accent);
}

.lh-hero-desc {
    color: var(--lh-muted);
    max-width: 58ch;
}

.lh-stat {
    display: grid;
}

.lh-stat-num {
    font-weight: 900;
    color: #102a56;
    font-size: 1.2rem;
}

.lh-stat-label {
    font-size: 0.82rem;
    color: #5a6780;
}

.lh-hero-visual {
    background: linear-gradient(170deg, #ffffff 0%, #eef4ff 100%);
    border: 1px solid #d9e6ff;
    border-radius: 22px;
    padding: 1.4rem;
    box-shadow: var(--lh-shadow);
}

.lh-float-cards {
    position: relative;
    min-height: 320px;
}

.lh-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d8e2f7;
    box-shadow: 0 10px 22px rgba(16, 33, 63, 0.11);
    font-weight: 700;
    color: #203256;
    animation: lhFloat 4.2s ease-in-out infinite;
}

.lh-card-icon {
    font-size: 1.1rem;
}

.lh-float-card-1 {
    top: 8%;
    left: 4%;
    animation-delay: 0s;
}

.lh-float-card-2 {
    top: 24%;
    right: 6%;
    animation-delay: 0.3s;
}

.lh-float-card-3 {
    top: 43%;
    left: 8%;
    animation-delay: 0.6s;
}

.lh-float-card-4 {
    top: 58%;
    right: 8%;
    animation-delay: 0.9s;
}

.lh-float-card-5 {
    bottom: 13%;
    left: 14%;
    animation-delay: 1.2s;
}

.lh-float-card-6 {
    bottom: 7%;
    right: 16%;
    animation-delay: 1.5s;
}

.lh-hero-center-emoji {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.5rem;
    filter: drop-shadow(0 10px 18px rgba(35, 61, 114, 0.24));
}

@keyframes lhFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.lh-feature-card,
.lh-school-card,
.lh-fach-card,
.lh-thema-card,
.lh-setup-card,
.lh-quiz-card,
.lh-ergebnis-card,
.lh-stats-bar,
.lh-history-item,
.lh-detail-item {
    background: #fff;
    border: 1px solid #e2e9f7;
    border-radius: var(--lh-radius);
    box-shadow: 0 6px 20px rgba(14, 29, 62, 0.06);
}

.lh-feature-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lh-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(15, 42, 94, 0.12);
}

.lh-feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: linear-gradient(145deg, #edf4ff 0%, #dbebff 100%);
}

.lh-section-alt {
    background: linear-gradient(180deg, #f9fbff 0%, #f2f7ff 100%);
}

.lh-section-title {
    color: #162e5a;
}

.lh-school-emoji {
    font-size: 2rem;
}

.lh-school-subjects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.lh-school-subjects span {
    display: inline-block;
    font-size: 0.75rem;
    background: #eef4ff;
    color: #2e4c86;
    border: 1px solid #d5e3ff;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.lh-cta-section {
    background: linear-gradient(130deg, #1b1f3b 0%, #0f62fe 100%);
}

.lh-setup-bg {
    background: transparent;
}

.lh-setup-emoji {
    font-size: 3rem;
}

.lh-input {
    border-radius: 12px;
    border: 1px solid #cfdcf5;
    padding: 0.7rem 0.85rem;
}

.lh-input:focus {
    border-color: #7fb0ff;
    box-shadow: 0 0 0 0.2rem rgba(15, 98, 254, 0.15);
}

.lh-schulart-btn {
    border: 1px solid #d8e2f7;
    border-radius: 12px;
    background: #fff;
    min-height: 112px;
}

.btn-check:checked+.lh-schulart-btn {
    border-color: var(--lh-primary);
    box-shadow: inset 0 0 0 2px rgba(15, 98, 254, 0.28);
    background: #f2f7ff;
}

.lh-dashboard-header,
.lh-modul-header,
.lh-quiz-header {
    background: linear-gradient(130deg, #1b1f3b 0%, #27316f 40%, #0f62fe 100%);
}

.lh-breadcrumb a {
    color: #d9e7ff;
    text-decoration: none;
}

.lh-breadcrumb .active {
    color: #fff;
}

.lh-stat-val {
    font-size: 1.45rem;
    font-weight: 900;
}

.lh-stat-txt {
    font-size: 0.8rem;
    color: #60708c;
}

.lh-fach-card {
    border-left: 5px solid var(--fach-color, #0f62fe);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.lh-fach-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(15, 47, 105, 0.15);
}

.lh-fach-icon {
    font-size: 1.7rem;
}

.lh-modul-icon-big {
    font-size: 2.2rem;
}

.lh-thema-card {
    display: flex;
    flex-direction: column;
}

.lh-badge-count {
    background: #e9f1ff;
    color: #1a3e83;
    border: 1px solid #c8dcff;
}

.lh-quiz-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    overflow: hidden;
}

.lh-quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5dd39e 0%, #32a852 100%);
    transition: width 0.25s ease;
}

.lh-frage-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1f3159;
}

.lh-option-btn {
    border-radius: 12px;
    border: 1px solid #d2deef;
    background: #fff;
    color: #22355f;
    padding: 0.75rem 0.95rem;
    font-weight: 700;
}

.lh-option-btn:hover:not(:disabled) {
    border-color: #adc7fa;
    background: #f4f8ff;
}

.lh-option-btn:disabled {
    opacity: 1;
}

.lh-option-btn.is-correct {
    border-color: #8cd8a6;
    background: #e7f7ed;
    color: #126c33;
}

.lh-option-btn.is-wrong {
    border-color: #f5b0ab;
    background: #ffeceb;
    color: #9d2018;
}

.lh-erklaerung {
    background: #fff8dd;
    border: 1px solid #ffe59d;
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
}

.lh-ergebnis-emoji {
    font-size: 3.8rem;
}

.lh-score-num {
    font-size: 3rem;
    font-weight: 900;
}

.lh-sterne i {
    font-size: 1.1rem;
}

.lh-detail-correct {
    border-left: 4px solid #35a853;
}

.lh-detail-wrong {
    border-left: 4px solid #ea4335;
}

.lh-history-score {
    width: 68px;
    min-width: 68px;
    text-align: center;
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
    font-weight: 800;
}

.lh-child-login-section {
    position: relative;
}

.lh-child-login-info,
.lh-child-login-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #d7e5ff;
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow);
}

.lh-child-login-info {
    padding: 1.6rem;
    background: linear-gradient(165deg, #ffffff 0%, #eef4ff 100%);
}

.lh-child-login-card {
    padding: 1.5rem;
}

.lh-child-login-switch {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.lh-child-login-switch .btn {
    flex: 1 1 170px;
    padding: 0.55rem 0.8rem;
    font-weight: 800;
}

.lh-child-login-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.1;
    font-weight: 900;
    color: #162a56;
}

.lh-child-login-lead {
    color: var(--lh-muted);
    max-width: 48ch;
}

.lh-child-login-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.lh-child-login-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #24365f;
    font-weight: 700;
}

.lh-child-login-list i {
    color: var(--lh-success);
    margin-top: 0.12rem;
}

.lh-form-hint {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #60708d;
}

.lh-form-hint.is-valid {
    color: #1c7c3d;
}

.lh-form-hint.is-invalid {
    color: #c62828;
}

.lh-parent-header {
    background: linear-gradient(130deg, #192146 0%, #233b84 52%, #0f62fe 100%);
}

.lh-parent-stat {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    color: #fff;
    padding: 0.9rem;
    text-align: center;
}

.lh-parent-stat-value {
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 900;
}

.lh-parent-stat-label {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.lh-parent-card {
    background: #fff;
    border: 1px solid #d7e5ff;
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow);
}

.lh-parent-page {
    padding-bottom: 4rem;
}

.lh-parent-header-meta {
    background: #f8fbff;
    border: 1px solid #d8e6ff;
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    height: 100%;
}

.lh-parent-children-card {
    margin-bottom: 1.5rem;
}

.lh-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #cfe0ff;
    background: #eef4ff;
    color: #1d3d83;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.24rem 0.62rem;
}

.lh-progress-mini {
    height: 8px;
    border-radius: 999px;
    background: #e9eef7;
    overflow: hidden;
}

.lh-progress-mini>span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #21bf73 0%, #1a9f64 100%);
}

.lh-parent-actions details {
    background: #f8fbff;
    border: 1px solid #d8e6ff;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
}

.lh-parent-actions summary {
    cursor: pointer;
    list-style: none;
}

.lh-parent-actions summary::-webkit-details-marker {
    display: none;
}

@media (max-width: 991.98px) {
    .lh-hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .lh-float-cards {
        min-height: 280px;
    }

    .lh-child-login-info,
    .lh-child-login-card {
        padding: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .lh-hero-title {
        font-size: clamp(1.8rem, 7.5vw, 2.4rem);
    }

    .lh-float-cards {
        min-height: 240px;
    }

    .lh-float-card {
        font-size: 0.82rem;
        padding: 0.45rem 0.6rem;
    }

    .lh-hero-center-emoji {
        font-size: 3.5rem;
    }
}