/* ==========================================================================
   lerneule.schule – Startseite & Plattform-Stylesheet (100 % lokal & DSGVO-konform)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--le-font-sans);
    background: radial-gradient(circle at 12% 8%, #fff7e6 0%, var(--le-bg) 48%, var(--le-bg-soft) 100%);
    color: var(--le-ink);
    line-height: 1.5;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    transition: transform 0.12s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

button:active:not(:disabled) {
    transform: scale(0.98);
}

.mono {
    font-family: var(--le-font-mono);
    font-variant-numeric: tabular-nums;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(253, 250, 243, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--le-border);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-owl-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--le-amber-soft);
    border: 1px solid rgba(217, 119, 6, 0.25);
    padding: 3px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--le-ink);
}

.brand-name span {
    color: var(--le-amber);
}

.brand-tag {
    font-size: 0.76rem;
    color: var(--le-ink-muted);
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--le-ink-muted);
    padding: 7px 11px;
    border-radius: var(--le-radius-sm);
}

.nav-link:hover {
    background: rgba(217, 119, 6, 0.1);
    color: var(--le-ink);
}

.profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: var(--le-surface);
    border: 1px solid var(--le-border-strong);
    box-shadow: var(--le-shadow-sm);
    font-size: 0.84rem;
    font-weight: 700;
}

.profile-pill:hover {
    border-color: var(--le-amber);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.16);
}

.profile-avatar-mini {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: contain;
    padding: 2px;
    border: 2px solid var(--le-amber);
    background: var(--le-amber-soft);
}

.coin-badge {
    color: #b45309;
    background: var(--le-amber-soft);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
}

.card-count-badge {
    color: #0369a1;
    background: var(--le-blue-soft);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section {
    padding: 30px 0 18px;
}

.hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffaf0 60%, #fef3c7 100%);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-lg);
    padding: 32px;
    box-shadow: var(--le-shadow-md);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.75fr);
    gap: 24px;
    align-items: center;
}

@media (max-width: 820px) {
    .hero-card {
        grid-template-columns: 1fr;
        padding: 22px;
        text-align: center;
    }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--le-teal);
    background: var(--le-teal-soft);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--le-ink);
}

.hero-desc {
    margin-top: 12px;
    font-size: 1.02rem;
    color: var(--le-ink-muted);
    max-width: 62ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 820px) {
    .hero-actions {
        justify-content: center;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--le-radius-sm);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.96rem;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--le-radius-sm);
    background: var(--le-surface);
    border: 1px solid var(--le-border-strong);
    color: var(--le-ink);
    font-weight: 700;
    font-size: 0.94rem;
}

.btn-outline:hover {
    background: var(--le-surface-alt);
    border-color: var(--le-amber);
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--le-ink-muted);
}

@media (max-width: 820px) {
    .hero-trust-row {
        justify-content: center;
    }
}

.trust-chip {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--le-border);
    padding: 4px 10px;
    border-radius: 999px;
}

.hero-art {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-art img {
    width: min(240px, 72%);
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(43, 33, 24, 0.14));
    animation: owlFloat 4.5s ease-in-out infinite;
}

@keyframes owlFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SECTION HEADERS & COLLAPSIBLE MODULE GRID
   ========================================================================== */
.section-block,
.filter-panel {
    scroll-margin-top: 78px;
}

.section-block {
    padding: 20px 0;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 1.38rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: 0.88rem;
    color: var(--le-ink-muted);
}

.modules-grid-wrap {
    max-height: 900px;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
    transition: max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, transform 0.24s ease;
}

.modules-grid-wrap.is-collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 12px;
    padding: 2px;
}

.module-card {
    text-align: left;
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--le-shadow-sm);
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: var(--le-amber);
    box-shadow: var(--le-shadow-md);
}

.module-card.active {
    border-color: var(--le-amber);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25), var(--le-shadow-sm);
}

.module-art-wrap {
    height: 112px;
    border-radius: var(--le-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.module-art-wrap img {
    max-height: 98px;
    max-width: 100%;
    object-fit: contain;
}

.module-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 999px;
}

.module-title {
    font-size: 1.02rem;
    font-weight: 800;
}

.module-desc {
    font-size: 0.82rem;
    color: var(--le-ink-muted);
    flex: 1;
}

/* ==========================================================================
   FILTERBAR & APP-KATALOG
   ========================================================================== */
.filter-panel {
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-md);
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    box-shadow: var(--le-shadow-sm);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.filter-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--le-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.pill-btn {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    color: var(--le-ink-muted);
}

.pill-btn:hover {
    border-color: var(--le-border-strong);
    color: var(--le-ink);
}

.pill-btn.active {
    background: var(--le-ink);
    border-color: var(--le-ink);
    color: #ffffff;
}

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

.app-card {
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--le-shadow-sm);
}

.app-card.is-live {
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.10);
}

.app-card.is-soon {
    opacity: 0.84;
}

.app-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.app-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.app-logo-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.app-logo-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.app-card-actions-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.device-icons-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    color: var(--le-ink-soft);
    line-height: 1;
}

.app-status-tag {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
}

.app-status-tag.live {
    background: var(--le-green-soft);
    color: #15803d;
}

.app-status-tag.soon {
    background: var(--le-bg-soft);
    color: var(--le-ink-soft);
}

.app-title {
    font-size: 1.08rem;
    font-weight: 900;
}

.app-sub {
    font-size: 0.82rem;
    color: var(--le-ink-muted);
    font-weight: 600;
}

.app-scope {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 7px;
    background: var(--le-bg-soft);
    border: 1px solid var(--le-border);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--le-ink-muted);
}

.app-desc {
    font-size: 0.85rem;
    color: var(--le-ink-muted);
    flex: 1;
}

.app-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.app-chip {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    color: var(--le-ink-muted);
}

.app-progress-note {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--le-teal);
    background: var(--le-teal-soft);
    padding: 6px 10px;
    border-radius: 8px;
}

.app-progress-note.is-sicher {
    color: #166534;
    background: var(--le-green-soft);
}

.app-progress-note.is-geuebt {
    color: #92400e;
    background: var(--le-amber-soft);
}

.app-progress-note.is-ungeuebt {
    color: #475569;
    background: #f1f5f9;
}

.app-launch-btn {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--le-radius-sm);
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #0284c7, #0d9488);
    color: #ffffff;
}

.app-launch-btn:hover {
    filter: brightness(1.06);
}

.app-soon-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--le-radius-sm);
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--le-bg-soft);
    color: var(--le-ink-soft);
    cursor: default;
}

/* ==========================================================================
   DATENSCHUTZ & SCHULEN-SEKTION
   ========================================================================== */
.privacy-card {
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-lg);
    padding: 26px;
    box-shadow: var(--le-shadow-sm);
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

@media (max-width: 720px) {
    .privacy-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.privacy-card img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
    text-align: left;
}

.privacy-point {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-sm);
    padding: 12px;
    font-size: 0.84rem;
}

.privacy-point strong {
    display: block;
    margin-bottom: 3px;
    color: var(--le-ink);
}

.site-footer {
    border-top: 1px solid var(--le-border);
    background: var(--le-surface-alt);
    padding: 34px 0 28px;
    margin-top: 38px;
    font-size: 0.85rem;
    color: var(--le-ink-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: 24px;
    text-align: left;
    margin-bottom: 24px;
}

.footer-brand-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-owl-img {
    width: 38px;
    height: auto;
}

.footer-brand-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--le-ink);
}

.footer-brand-title span {
    color: var(--le-amber);
}

.footer-brand-sub {
    font-size: 0.76rem;
    color: var(--le-ink-soft);
    font-weight: 700;
}

.footer-brand-text {
    font-size: 0.83rem;
    line-height: 1.5;
    color: var(--le-ink-muted);
    margin-bottom: 12px;
}

.footer-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trust-chip {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--le-ink);
}

.footer-col h3 {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--le-ink);
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--le-ink-muted);
    font-weight: 700;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--le-ink);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--le-border);
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.79rem;
    color: var(--le-ink-soft);
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PROFIL- & AVATAR-MODAL
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(43, 33, 24, 0.56);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    width: 100%;
    max-width: min(680px, 100%);
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    background: var(--le-surface);
    border: 1px solid var(--le-border-strong);
    border-radius: var(--le-radius-lg);
    padding: 24px;
    box-shadow: var(--le-shadow-md);
}

.modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--le-border);
}

.close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    font-size: 1rem;
    font-weight: 800;
}

.profile-hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--le-radius-md);
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
}

.profile-avatar-big {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: contain;
    padding: 6px;
    border: 3px solid var(--le-amber);
}

.nickname-input {
    width: 100%;
    max-width: 260px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--le-border-strong);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--le-ink);
    background: #ffffff;
}

.avatar-picker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.avatar-choice {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--le-border);
    background: #ffffff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-choice.selected {
    border-color: var(--le-amber);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
}

.avatar-choice img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.color-swatch.selected {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--le-ink);
}

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

@media (max-width: 520px) {
    .profile-stats-row {
        grid-template-columns: 1fr;
    }
}

.p-stat-box {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-sm);
    padding: 10px 12px;
}

.p-stat-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--le-ink-soft);
    text-transform: uppercase;
}

.p-stat-val {
    font-size: 1.2rem;
    font-weight: 900;
    margin-top: 2px;
}

.collected-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.mini-card-item {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-note-box {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--le-radius-sm);
    background: var(--le-blue-soft);
    border: 1px solid rgba(2, 132, 199, 0.28);
    font-size: 0.82rem;
    color: #0c4a6e;
}

/* ==========================================================================
   PHASE 2: HEADER-ACCOUNT, ANGEPINNTE AUFGABEN & COCKPIT
   ========================================================================== */
.header-account-btn {
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    background: var(--le-ink);
    color: #ffffff;
    border: 1px solid var(--le-ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.14s ease, opacity 0.14s ease;
}

.header-account-btn:hover {
    transform: translateY(-1px);
    opacity: 0.93;
}

.header-account-btn.is-mentor-open {
    background: #b45309;
    border-color: #b45309;
}

.modal-dialog-wide {
    max-width: 780px;
}

.pinned-section[hidden] {
    display: none;
}

.pinned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
}

.pinned-card {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border: 1px solid rgba(217, 119, 6, 0.42);
    border-radius: var(--le-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--le-shadow-sm);
}

.pinned-card.is-done {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border-color: rgba(22, 163, 74, 0.42);
}

.pinned-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.pinned-title-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.pinned-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.pinned-status-badge.is-done {
    background: #dcfce7;
    color: #166534;
}

.pinned-status-badge.is-practiced {
    background: #fef3c7;
    color: #92400e;
}

.pinned-status-badge.is-active {
    background: #e0f2fe;
    color: #075985;
}

.pinned-status-badge.is-open {
    background: var(--le-surface-alt);
    color: var(--le-ink-muted);
    border: 1px solid var(--le-border);
}

.pinned-group-chip {
    font-size: 0.72rem;
    font-weight: 800;
    color: #92400e;
    background: #fef3c7;
    padding: 3px 9px;
    border-radius: 999px;
}

.pinned-app-icon {
    font-size: 1.35rem;
}

.pinned-note {
    font-size: 0.83rem;
    color: var(--le-ink);
    background: rgba(255, 255, 255, 0.85);
    border-left: 3px solid var(--le-amber);
    padding: 6px 10px;
    border-radius: 6px;
}

.auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.auth-tab-btn {
    flex: 1 1 150px;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--le-ink-muted);
    text-align: center;
}

.auth-tab-btn.active {
    background: var(--le-ink);
    border-color: var(--le-ink);
    color: #ffffff;
}

.le-card-box {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-md);
    padding: 14px 16px;
    margin-bottom: 14px;
}

.le-card-box h3 {
    font-size: 0.96rem;
    font-weight: 800;
    margin-bottom: 8px;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.form-field label {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--le-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.le-input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid var(--le-border-strong);
    background: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--le-ink);
}

.tier-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tier-check-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--le-border);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.role-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.role-choice-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 2px solid var(--le-border);
    font-size: 0.82rem;
    cursor: pointer;
}

.role-choice-card.selected {
    border-color: var(--le-amber);
    background: #fffbeb;
}

.form-feedback {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-feedback.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-feedback.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.status-banner {
    border-radius: var(--le-radius-md);
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.84rem;
}

.status-banner.open {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    color: #78350f;
}

.status-banner.active {
    background: #dcfce7;
    border: 1px solid #16a34a;
    color: #14532d;
}

.code-card-box {
    background: #ffffff;
    border: 2px dashed var(--le-amber);
    border-radius: var(--le-radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.code-highlight {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.child-avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
}

.child-pick-btn {
    background: #ffffff;
    border: 2px solid var(--le-border);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.86rem;
}

.child-pick-btn.selected {
    border-color: var(--le-amber);
    background: #fffbeb;
}

.child-pick-btn img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    padding: 4px;
    border: 2px solid var(--le-amber);
}

.child-admin-card,
.group-admin-card {
    background: #ffffff;
    border: 1px solid var(--le-border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.child-admin-head,
.group-admin-head,
.joined-group-row,
.member-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.joined-groups-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.joined-group-row,
.member-row {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.82rem;
}

.member-row-btn {
    width: 100%;
    min-height: 46px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    text-align: left;
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.84rem;
    color: var(--le-ink);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.member-row-btn:hover,
.member-row-btn.is-selected {
    border-color: var(--le-amber);
    background: #fffbeb;
}

.member-detail-panel {
    background: #ffffff;
    border: 1px solid rgba(217, 119, 6, 0.4);
    border-radius: 12px;
    padding: 14px;
    margin-top: 6px;
    box-shadow: var(--le-shadow-sm);
}

.member-detail-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--le-border);
}

.member-kpi-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.member-kpi-chip {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 800;
}

.member-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.member-topic-chip {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}

.group-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 6px;
}

.group-type-badge.type-family {
    background: #fce7f3;
    color: #9d174d;
}

.group-type-badge.type-class {
    background: #e0f2fe;
    color: #075985;
}

.group-type-badge.type-group {
    background: #ede9fe;
    color: #5b21b6;
}

.coleader-box {
    background: #f8fafc;
    border: 1px dashed var(--le-border-strong);
    border-radius: 10px;
    padding: 9px 12px;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.learner-auth-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.pin-picker-box {
    margin-top: 10px;
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: 10px;
    padding: 10px 12px;
}

.pin-picker-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.pin-picker-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.pin-picker-tab {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--le-border-strong);
    background: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--le-ink-muted);
    cursor: pointer;
}

.pin-picker-tab.active {
    background: var(--le-ink);
    border-color: var(--le-ink);
    color: #ffffff;
}

.pin-picker-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 225px;
    overflow-y: auto;
    padding-right: 2px;
}

.pin-picker-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--le-border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.81rem;
}

.pin-picker-item-meta {
    font-size: 0.72rem;
    color: var(--le-ink-muted);
}

.card-pin-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(217, 119, 6, 0.4);
    background: #fffbeb;
    color: #92400e;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.14s ease, background 0.14s ease;
}

.card-pin-btn:hover {
    transform: translateY(-1px);
    background: #fef3c7;
}

.quick-pin-choice {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--le-border);
    background: #ffffff;
    text-align: left;
    font-size: 0.84rem;
    cursor: pointer;
}

.quick-pin-choice.selected {
    border-color: var(--le-amber);
    background: #fffbeb;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.18);
}

.pass-step-card {
    background: #fffbeb;
    border: 2px solid rgba(217, 119, 6, 0.45);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.pass-kid-tip {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    margin-top: 10px;
}

/* ==========================================================================
   VOLLSEITEN-DASHBOARDS (profil.html & cockpit.html)
   ========================================================================== */
.container-wide {
    max-width: 1320px;
}

.page-dashboard-main {
    padding-top: 22px;
    padding-bottom: 48px;
}

.page-dashboard-card {
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-lg);
    padding: clamp(14px, 2.2vw, 24px);
    box-shadow: var(--le-shadow-sm);
}

.is-fullpage-dash .dash-tab-panel {
    max-height: none;
    overflow: visible;
}

.cockpit-shell {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.cockpit-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cockpit-workspace {
    min-width: 0;
}

.cockpit-group-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cockpit-group-nav-btn {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--le-border);
    background: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.14s ease, background 0.14s ease;
}

.cockpit-group-nav-btn:hover {
    border-color: var(--le-amber);
    background: #fffdf5;
}

.cockpit-group-nav-btn.active {
    border-color: var(--le-amber);
    background: #fffbeb;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.16);
}

.cockpit-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    border-bottom: 1px solid var(--le-border);
    padding-bottom: 10px;
}

.cockpit-matrix-wrap {
    overflow-x: auto;
    border: 1px solid var(--le-border);
    border-radius: 10px;
    background: #ffffff;
    margin-bottom: 12px;
}

.cockpit-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.cockpit-matrix-table th,
.cockpit-matrix-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--le-border);
    text-align: left;
    vertical-align: middle;
}

.cockpit-matrix-table thead th {
    background: var(--le-surface-alt);
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--le-ink-soft);
    white-space: nowrap;
}

.cockpit-matrix-table tbody tr {
    cursor: pointer;
    transition: background 0.12s ease;
}

.cockpit-matrix-table tbody tr:hover {
    background: #fffdf5;
}

.cockpit-matrix-table tbody tr.is-selected {
    background: #fffbeb;
}

.matrix-cell-center {
    text-align: center !important;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .cockpit-shell {
        grid-template-columns: 1fr;
    }
}

.group-share-box {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 10px 0;
}

.qr-box {
    background: #ffffff;
    border: 1px solid var(--le-border);
    border-radius: 10px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.btn-sm-primary {
    padding: 7px 13px;
    border-radius: 8px;
    background: var(--le-ink);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.btn-sm-outline {
    padding: 7px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--le-border-strong);
    color: var(--le-ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.btn-mini-danger {
    padding: 4px 9px;
    border-radius: 6px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 0.76rem;
    font-weight: 800;
}

.danger-zone {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--le-radius-sm);
    background: #fef2f2;
    border: 1px solid #fecaca;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
}

.le-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hero-modes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 720px) {
    .hero-modes-grid {
        grid-template-columns: 1fr;
    }
}

.hero-mode-pill {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-sm);
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.78rem;
    color: var(--le-ink-muted);
}

.hero-mode-pill strong {
    font-size: 0.82rem;
    color: var(--le-ink);
}

.filter-group-topics {
    flex-basis: 100%;
    padding-top: 8px;
    border-top: 1px dashed var(--le-border);
}

.app-search-wrap {
    flex: 1 1 240px;
    max-width: 310px;
}

.app-search-input {
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.86rem;
}

.app-card {
    animation: cardFadeUp 0.22s ease both;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--le-ink);
}

/* ==========================================================================
   INFO / DATENSCHUTZ / IMPRESSUM PAGE
   ========================================================================== */
.info-hero {
    background: linear-gradient(135deg, #ffffff 0%, #fffaf0 65%, #fef3c7 100%);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-lg);
    padding: 22px 26px;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: var(--le-shadow-sm);
}

.info-section-card {
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-md);
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: var(--le-shadow-sm);
    scroll-margin-top: 78px;
}

.info-section-card h2 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.info-section-card p {
    font-size: 0.9rem;
    color: var(--le-ink-muted);
    line-height: 1.55;
}

.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.info-mini-box {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.84rem;
    color: var(--le-ink-muted);
}

.info-mini-box strong {
    color: var(--le-ink);
    font-size: 0.9rem;
}

.info-list {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--le-ink-muted);
}

.info-list strong {
    color: var(--le-ink);
}

.info-impressum-box {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-sm);
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--le-ink);
    line-height: 1.65;
}

.privacy-legal h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--le-ink);
    margin-top: 16px;
    margin-bottom: 6px;
}

.privacy-legal p + p {
    margin-top: 8px;
}

.privacy-legal a {
    text-decoration: underline;
    color: var(--le-ink);
}

.legal-lead {
    padding: 10px 12px;
    border-radius: var(--le-radius-sm);
    background: var(--le-blue-soft);
    border: 1px solid rgba(2, 132, 199, 0.22);
    color: #0c4a6e !important;
    margin-bottom: 8px;
}

.legal-stand {
    margin-top: 14px !important;
    font-size: 0.8rem !important;
    font-weight: 700;
    color: var(--le-ink-soft) !important;
}

.zk-highlight-box {
    margin-top: 8px;
    padding: 13px 15px;
    border-radius: var(--le-radius-sm);
    background: var(--le-green-soft);
    border: 1px solid rgba(22, 163, 74, 0.35);
    color: #14532d;
}

.zk-highlight-box strong {
    display: block;
    font-size: 0.94rem;
    margin-bottom: 4px;
}

.zk-highlight-box p {
    color: #166534 !important;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.faq-item {
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-sm);
    background: var(--le-surface-alt);
    overflow: hidden;
}

.faq-item summary {
    min-height: 46px;
    padding: 11px 14px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--le-ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--le-ink-muted);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 14px 13px;
    font-size: 0.88rem;
}

.reg-consent-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: var(--le-radius-sm);
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
}

.reg-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 40px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--le-ink);
    cursor: pointer;
}

.reg-consent-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--le-teal);
    cursor: pointer;
}

.reg-consent-item a {
    color: #0f766e;
    font-weight: 800;
    text-decoration: underline;
}

/* ==========================================================================
   MOBILE & SMALL-DISPLAY OPTIMIERUNG
   ========================================================================== */
@media (max-width: 680px) {
    .container {
        padding: 0 14px;
    }

    .header-inner {
        padding: 8px 14px;
        gap: 8px;
    }

    .brand-tag {
        display: none;
    }

    .brand-owl-img {
        width: 36px;
        height: 36px;
    }

    .header-nav {
        width: 100%;
        justify-content: space-between;
        gap: 6px;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 5px 7px;
    }

    .profile-pill {
        padding: 4px 9px 4px 6px;
        gap: 6px;
        font-size: 0.78rem;
    }

    .hero-section {
        padding: 14px 0 8px;
    }

    .hero-card {
        padding: 18px 16px;
        gap: 12px;
        text-align: left;
    }

    .hero-art {
        display: none;
    }

    .hero-actions {
        justify-content: flex-start;
        gap: 8px;
        margin-top: 14px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        padding: 9px 13px;
        font-size: 0.84rem;
    }

    .hero-modes-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 12px;
    }

    .hero-mode-pill {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 7px 10px;
    }

    .section-block {
        padding: 14px 0;
    }

    .modules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .module-card {
        padding: 10px;
        gap: 6px;
    }

    .module-art-wrap {
        height: 68px;
    }

    .module-art-wrap img {
        max-height: 58px;
    }

    .module-title {
        font-size: 0.9rem;
    }

    .module-desc {
        display: none;
    }

    .filter-panel {
        padding: 10px 12px;
        gap: 8px;
    }

    .filter-group {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .filter-group::-webkit-scrollbar {
        display: none;
    }

    .pill-btn {
        flex-shrink: 0;
        padding: 6px 11px;
        font-size: 0.8rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-art img,
    .app-card {
        animation: none;
    }
    .modules-grid-wrap {
        transition: none;
    }
}

/* ==========================================================================
   SCHÜLER-DASHBOARD, FAVORITEN & PAGINIERTES SAMMELALBUM
   ========================================================================== */
.modal-dialog-xl {
    max-width: 900px;
    height: min(820px, 88vh);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#profileModal .modal-top {
    flex-shrink: 0;
}

#profileDashboardBody {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.fav-star-btn {
    min-width: 38px;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid var(--le-border);
    background: var(--le-surface-alt);
    color: var(--le-ink-soft);
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fav-star-btn:hover {
    border-color: var(--le-amber);
    color: #d97706;
    background: #fffbeb;
}

.fav-star-btn.is-fav {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
}

.fav-filter-pill.active {
    background: #b45309;
    border-color: #b45309;
    color: #ffffff;
}

.dash-banner {
    flex-shrink: 0;
    border-radius: var(--le-radius-md);
    padding: 16px;
    border: 1px solid var(--le-border);
    margin-bottom: 12px;
    transition: background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.dash-banner.dash-banner-animated,
.theme-preview-dot.dash-banner-animated {
    background-size: 240% 240% !important;
    animation: leBannerFlow 9s ease-in-out infinite;
}

.dash-banner.theme-cybergrid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.14) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.dash-banner > * {
    position: relative;
    z-index: 1;
}

.dash-title-pill {
    font-size: 0.72rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: #451a03;
    border: 1px solid rgba(180, 83, 9, 0.45);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.28);
}

@keyframes leBannerFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dash-banner-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.dash-identity {
    flex: 1 1 200px;
    min-width: 0;
}

.dash-badges-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.dash-rank-pill,
.dash-mode-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
}

.dash-nickname {
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.18;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-motto {
    font-size: 0.84rem;
    font-weight: 600;
    margin-top: 2px;
}

.dash-quick-design-btn {
    padding: 8px 13px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    border: 1px solid rgba(0, 0, 0, 0.12);
    min-height: 40px;
}

.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.dash-kpi {
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-kpi-val {
    font-size: 1.05rem;
    font-weight: 900;
}

.dash-kpi-lbl {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Avatar Stage mit Rahmen & Sticker */
.avatar-stage {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    padding: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.avatar-stage-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    padding: 5px;
    border: 3px solid var(--le-amber);
    position: relative;
    z-index: 1;
}

.avatar-stage.frame-gold {
    background: linear-gradient(135deg, #fde047, #d97706, #fef08a);
    box-shadow: 0 0 0 2px #b45309;
}

.avatar-stage.frame-stars {
    background: linear-gradient(135deg, #38bdf8, #818cf8, #f472b6);
    box-shadow: 0 0 14px rgba(129, 140, 248, 0.55);
}

.avatar-stage.frame-neon {
    background: linear-gradient(135deg, #2dd4bf, #06b6d4);
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.65);
}

.avatar-stage.frame-leaf {
    background: linear-gradient(135deg, #4ade80, #16a34a, #bef264);
    box-shadow: 0 0 0 2px #15803d;
}

.avatar-stage.frame-prism::before,
.avatar-stage.frame-galaxy::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    z-index: 0;
}

.avatar-stage.frame-prism::before {
    background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #06b6d4, #8b5cf6, #ec4899, #f43f5e);
    animation: leFrameSpin 3.6s linear infinite;
}

.avatar-stage.frame-prism {
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.45);
}

.avatar-stage.frame-aurora {
    background: linear-gradient(135deg, #34d399, #38bdf8, #a78bfa);
    background-size: 200% 200%;
    animation: leFrameAurora 3.4s ease-in-out infinite;
}

.avatar-stage.frame-flame {
    background: linear-gradient(135deg, #fde047, #f97316, #dc2626);
    background-size: 200% 200%;
    animation: leFrameFlame 2.2s ease-in-out infinite;
}

.avatar-stage.frame-diamond {
    background: linear-gradient(135deg, #e0f2fe, #ffffff, #38bdf8, #a5b4fc);
    background-size: 220% 220%;
    animation: leFrameDiamond 2.8s ease-in-out infinite;
}

.avatar-stage.frame-galaxy::before {
    background: conic-gradient(#0f172a, #38bdf8, #818cf8, #f472b6, #fde047, #0f172a);
    animation: leFrameSpin 4.8s linear infinite;
}

.avatar-stage.frame-galaxy {
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.72);
}

.avatar-stage.frame-ember {
    background: linear-gradient(135deg, #fde047, #f97316, #b91c1c);
    background-size: 200% 200%;
    animation: leFrameFlame 2.4s ease-in-out infinite;
}

.avatar-stage.frame-kalenderstern::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    z-index: 0;
    background: conic-gradient(#fde047, #10b981, #fbbf24, #059669, #fef08a, #fde047);
    animation: leFrameSpin 4.2s linear infinite;
}

.avatar-stage.frame-kalenderstern {
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.65);
}

.dash-banner.theme-sternenwarte::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 22px 26px, rgba(254, 240, 138, 0.85), transparent),
        radial-gradient(2px 2px at 140px 44px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1.5px 1.5px at 260px 22px, rgba(186, 230, 253, 0.8), transparent),
        radial-gradient(2px 2px at 390px 55px, rgba(254, 240, 138, 0.8), transparent);
    pointer-events: none;
}

/* Lern-Kalender & Meilensteine */
.cal-head-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cal-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cal-wrap {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.cal-weekdays,
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    text-align: center;
}

.cal-weekdays {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--le-ink-muted);
    margin-bottom: 5px;
}

.cal-day {
    min-height: 32px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--le-border);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--le-ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.cal-day.is-empty {
    background: transparent;
    border-color: transparent;
}

.cal-day.is-today {
    border: 2px solid #0284c7;
    color: #0369a1;
}

.cal-day.is-active {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-color: #16a34a;
    color: #14532d;
    font-weight: 900;
}

.cal-check {
    font-size: 0.68rem;
    color: #15803d;
}

.milestone-progress-box {
    margin-bottom: 12px;
}

.milestone-bar-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    overflow: hidden;
}

.milestone-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #f59e0b);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
}

.milestone-card {
    background: #ffffff;
    border: 1.5px solid var(--le-border);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.milestone-card.is-unlocked {
    border-color: rgba(22, 163, 74, 0.45);
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.milestone-card.is-locked {
    background: #f8fafc;
    border-style: dashed;
}

.milestone-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--le-ink-muted);
}

.milestone-title {
    font-size: 0.86rem;
    font-weight: 900;
}

@keyframes leFrameSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes leFrameAurora {
    0%, 100% { background-position: 0% 50%; box-shadow: 0 0 10px rgba(52, 211, 153, 0.55); }
    50% { background-position: 100% 50%; box-shadow: 0 0 20px rgba(167, 139, 250, 0.8); }
}

@keyframes leFrameFlame {
    0%, 100% { background-position: 0% 50%; box-shadow: 0 0 10px rgba(249, 115, 22, 0.6); }
    50% { background-position: 100% 50%; box-shadow: 0 0 22px rgba(239, 68, 68, 0.9), 0 0 6px rgba(253, 224, 71, 0.85); }
}

@keyframes leFrameDiamond {
    0%, 100% { background-position: 0% 50%; box-shadow: 0 0 10px rgba(56, 189, 248, 0.55); }
    50% { background-position: 100% 50%; box-shadow: 0 0 20px rgba(224, 242, 254, 0.95), 0 0 8px rgba(56, 189, 248, 0.85); }
}

.avatar-badge-chip {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
    z-index: 3;
}

.dash-tabs {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.dash-tab-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding-right: 4px;
    overscroll-behavior: contain;
}

.dash-tabs::-webkit-scrollbar {
    display: none;
}

.dash-tab-btn {
    flex: 1 0 auto;
    padding: 9px 14px;
    min-height: 42px;
    border-radius: 10px;
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--le-ink-muted);
    white-space: nowrap;
}

.dash-tab-btn.active {
    background: var(--le-ink);
    border-color: var(--le-ink);
    color: #ffffff;
}

.dash-empty-box {
    padding: 16px;
    border-radius: var(--le-radius-sm);
    background: var(--le-surface-alt);
    border: 1px dashed var(--le-border-strong);
    font-size: 0.84rem;
    color: var(--le-ink-muted);
}

.dash-fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
}

.dash-fav-card {
    background: #ffffff;
    border: 1px solid var(--le-border);
    border-radius: 12px;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.84rem;
}

.dash-fav-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-fav-icon {
    font-size: 1.45rem;
}

.dash-fav-sub {
    font-size: 0.74rem;
    color: var(--le-ink-muted);
}

.dash-soon-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--le-ink-soft);
    margin-top: auto;
}

.dash-activity-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-activity-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.82rem;
    background: #ffffff;
    border: 1px solid var(--le-border);
    border-radius: 8px;
    padding: 7px 10px;
}

/* Sammelalbum */
.album-toolbar {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-md);
    padding: 12px;
    margin-bottom: 12px;
}

.album-sub-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.album-search {
    max-width: 220px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
}

.album-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.album-card-tile {
    background: #ffffff;
    border: 2px solid var(--le-border);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.album-card-tile:hover,
.album-card-tile.selected {
    transform: translateY(-2px);
    box-shadow: var(--le-shadow-sm);
    border-color: var(--le-amber);
}

.album-card-tile.rarity-rare {
    border-color: rgba(2, 132, 199, 0.45);
}

.album-card-tile.rarity-epic {
    border-color: rgba(147, 51, 234, 0.45);
}

.album-card-tile.rarity-legendary {
    border-color: rgba(217, 119, 6, 0.72);
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.album-card-art {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-card-title {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}

.album-card-meta {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--le-ink-muted);
}

.card-detail-spotlight {
    background: #ffffff;
    border: 2px solid var(--le-amber);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    box-shadow: var(--le-shadow-sm);
}

.card-detail-svg {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rarity-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--le-surface-alt);
}

.rarity-pill.rarity-rare { background: #e0f2fe; color: #0369a1; }
.rarity-pill.rarity-epic { background: #f3e8ff; color: #7e22ce; }
.rarity-pill.rarity-legendary { background: #fef3c7; color: #b45309; }

.album-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

/* Theme & Avatar Designer */
.theme-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.theme-choice-card {
    background: #ffffff;
    border: 2px solid var(--le-border);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    min-height: 44px;
}

.theme-choice-card.selected {
    border-color: var(--le-amber);
    background: #fffbeb;
}

.theme-preview-dot {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.design-sub-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--le-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 680px) {
    .modal-dialog-xl {
        padding: 14px 12px;
        height: 92vh;
        max-height: 92vh;
    }

    .dash-banner {
        padding: 12px;
        margin-bottom: 10px;
    }

    .dash-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-search {
        max-width: 100%;
    }
}

@media (max-height: 580px) {
    .modal-dialog-xl {
        height: auto;
        max-height: 95vh;
        overflow-y: auto;
    }

    #profileDashboardBody {
        flex: none;
    }

    .dash-tab-panel {
        overflow-y: visible;
        padding-right: 0;
    }
}

/* ==========================================================================
   MODULARER SVG-AVATAR-DESIGNER & STUDYCOIN-SHOP
   ========================================================================== */
.profile-avatar-mini-svg {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-stage-svg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: #ffffff;
}

.shop-banner-preview {
    width: 100%;
    height: 68px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.shop-title-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 11px;
    min-height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1.5px solid #f59e0b;
    color: #451a03;
    font-size: 0.8rem;
    font-weight: 900;
}

.avatar-stage-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.avatar-stage.is-xl .avatar-badge-chip {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
    top: -2px;
    right: -2px;
}

.designer-quickbar {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-md);
    padding: 10px 12px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.designer-presets-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--le-border);
}

.designer-part-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
    gap: 10px;
}

.designer-part-btn {
    background: #ffffff;
    border: 2px solid var(--le-border);
    border-radius: 12px;
    padding: 10px 8px;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
}

.designer-part-btn:hover {
    border-color: var(--le-amber);
    transform: translateY(-2px);
}

.designer-part-btn.selected {
    border-color: var(--le-amber);
    background: #fffbeb;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.22);
}

.designer-part-btn.is-locked {
    background: #f8fafc;
    border-style: dashed;
}

.designer-part-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.designer-part-label {
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

.part-lock-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
}

.part-active-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.shop-item-card {
    background: #ffffff;
    border: 2px solid var(--le-border);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.shop-item-card.rarity-epic {
    border-color: rgba(147, 51, 234, 0.35);
}

.shop-item-card.rarity-legendary {
    border-color: rgba(217, 119, 6, 0.65);
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

@media (max-width: 680px) {
    .designer-part-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Persönliche Startseiten-Begrüßung & druckbare Urkunde */
.hero-personal-greet {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 13px 6px 7px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #fffbeb;
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    color: var(--le-ink);
    font-size: 0.84rem;
    text-align: left;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.1);
}

.hero-personal-greet:hover {
    border-color: #d97706;
    background: #fef3c7;
}

.hero-greet-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid #f59e0b;
    flex-shrink: 0;
}

.le-cert-print-sheet {
    display: none;
}

@media print {
    body.le-printing-certificate > *:not(#leCertificatePrintSheet) {
        display: none !important;
    }

    body.le-printing-certificate #leCertificatePrintSheet {
        display: block !important;
        padding: 18mm;
        background: #ffffff;
        color: #1e293b;
        font-family: system-ui, -apple-system, sans-serif;
    }

    .cert-frame {
        border: 4px double #d97706;
        border-radius: 18px;
        padding: 26px 28px;
        text-align: center;
        background: #fffdf7;
    }

    .cert-top-tag {
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #b45309;
    }

    .cert-heading {
        font-size: 30px;
        font-weight: 900;
        margin: 8px 0 6px;
        color: #451a03;
    }

    .cert-lead {
        font-size: 14px;
        color: #64748b;
        margin-bottom: 12px;
    }

    .cert-avatar-box {
        display: inline-flex;
        padding: 6px;
        border-radius: 50%;
        border: 3px solid #f59e0b;
        background: #ffffff;
        margin-bottom: 10px;
    }

    .cert-name {
        font-size: 26px;
        font-weight: 900;
        color: #0f172a;
        margin-bottom: 6px;
    }

    .cert-rank-line {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    .cert-pill {
        font-size: 12px;
        font-weight: 800;
        padding: 3px 10px;
        border-radius: 999px;
        background: #fef3c7;
        border: 1px solid #f59e0b;
        color: #78350f;
    }

    .cert-motto {
        font-style: italic;
        font-size: 13px;
        color: #475569;
        margin-bottom: 14px;
    }

    .cert-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin: 16px 0;
        padding: 12px;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid #cbd5e1;
    }

    .cert-stats strong {
        display: block;
        font-size: 20px;
        color: #0f172a;
    }

    .cert-stats span {
        font-size: 11px;
        color: #64748b;
        font-weight: 700;
    }

    .cert-topics {
        text-align: left;
        margin: 14px 0;
        padding: 12px 16px;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
    }

    .cert-topics h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .cert-topics ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px 12px;
        font-size: 12px;
    }

    .cert-footer {
        display: flex;
        justify-content: space-between;
        margin-top: 22px;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
        font-size: 11px;
        color: #64748b;
        font-weight: 700;
    }
}

/* ==========================================================================
   WUNSCHBOX (NUTZER-WÜNSCHE) & INTERNER ADMIN-BEREICH
   ========================================================================== */
.wish-header-pill {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
    font-weight: 800;
}

.wish-header-pill:hover {
    background: #fef3c7;
}

.wishlist-cta-section {
    margin-top: 28px;
}

.wishlist-cta-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--le-radius-lg);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 55%, #e0f2fe 100%);
    border: 1px solid rgba(217, 119, 6, 0.35);
    box-shadow: var(--le-shadow-sm);
}

.wishlist-cta-copy {
    flex: 1 1 380px;
}

.wishlist-cta-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wishlist-kicker {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(217, 119, 6, 0.3);
    font-size: 0.78rem;
    font-weight: 800;
    color: #92400e;
}

.wishlist-public-stats {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #86efac;
    font-size: 0.76rem;
    font-weight: 800;
    color: #166534;
}

.wishlist-cta-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--le-ink);
}

.wishlist-cta-desc {
    margin-top: 6px;
    font-size: 0.92rem;
    color: var(--le-ink-soft);
    line-height: 1.5;
}

.wishlist-cta-btn {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 1rem;
}

.wish-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.wish-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.wish-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 560px) {
    .wish-form-grid {
        grid-template-columns: 1fr;
    }
}

.wish-textarea {
    resize: vertical;
    min-height: 76px;
    font-family: inherit;
}

.wish-privacy-note {
    font-size: 0.78rem;
    color: var(--le-ink-muted);
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    padding: 8px 10px;
    border-radius: 10px;
}

.wish-success-box {
    text-align: center;
    padding: 18px 10px;
}

.admin-auth-card {
    max-width: 460px;
    margin: 28px auto;
}

.admin-auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    position: relative;
}

.admin-pw-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-pw-wrap .le-input {
    flex: 1;
}

.admin-pw-toggle {
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--le-border-strong);
    background: var(--le-surface-alt);
    font-size: 1.05rem;
    cursor: pointer;
}

.admin-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 900px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .admin-kpi-grid {
        grid-template-columns: 1fr;
    }
}

.admin-kpi-card {
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-md);
    padding: 14px 16px;
    box-shadow: var(--le-shadow-sm);
}

.admin-kpi-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--le-ink-soft);
}

.admin-kpi-val {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--le-ink);
    margin-top: 4px;
}

.admin-kpi-sub {
    font-size: 0.78rem;
    color: var(--le-ink-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.admin-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

@media (max-width: 820px) {
    .admin-two-col {
        grid-template-columns: 1fr;
    }
}

.admin-box-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.admin-legend {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--le-ink-soft);
}

.admin-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 4px;
}

.admin-chart-svg {
    width: 100%;
    height: auto;
    margin-top: 10px;
}

.admin-mini-rank {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 9px;
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    font-size: 0.84rem;
}

.admin-unused-callout {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    font-size: 0.82rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--le-border);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--le-ink-muted);
    text-transform: uppercase;
    background: var(--le-surface-alt);
}

.admin-table .num-cell {
    text-align: right;
    white-space: nowrap;
}

.admin-table tr.is-unused-row {
    background: rgba(254, 243, 199, 0.28);
}

.admin-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--le-ink);
    cursor: pointer;
    text-align: left;
}

.admin-detail-row td {
    background: var(--le-surface-alt);
}

.admin-profile-detail {
    padding: 8px 4px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.admin-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    font-size: 0.74rem;
    font-weight: 700;
}

.admin-status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    background: #f1f5f9;
}

.admin-status-pill.is-active {
    background: #dcfce7;
    color: #166534;
}

.admin-danger-mini {
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

.admin-code-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.admin-code-pool span {
    padding: 5px 10px;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #86efac;
    font-size: 0.84rem;
    font-weight: 800;
}

.admin-wish-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-wish-card {
    border: 1px solid var(--le-border);
    border-left: 4px solid #38bdf8;
    border-radius: 12px;
    padding: 14px 16px;
    background: #ffffff;
}

.admin-wish-card.is-status-new { border-left-color: #f59e0b; }
.admin-wish-card.is-status-planned { border-left-color: #0284c7; }
.admin-wish-card.is-status-done { border-left-color: #16a34a; opacity: 0.9; }
.admin-wish-card.is-status-archived { border-left-color: #94a3b8; opacity: 0.75; }

.admin-wish-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.admin-wish-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

/* ==========================================================================
   FREIWILLIGE UNTERSTÜTZUNG (PAYPAL 2-KLICK-MODAL & COCKPIT-BOX)
   ========================================================================== */
.support-modal-backdrop {
    z-index: 120;
}

.support-modal-dialog {
    max-width: 620px;
}

.support-modal-body {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.support-banner-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--le-radius-md);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #f59e0b;
    color: var(--le-ink);
}

.support-banner-box.is-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 14px;
}

.support-trigger-btn {
    min-height: 44px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    white-space: normal;
}

.support-story-box {
    font-size: 0.88rem;
    line-height: 1.58;
    color: var(--le-ink-soft);
}

.support-story-box h3 {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--le-ink);
    margin-bottom: 8px;
}

.support-story-box h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--le-ink);
    margin: 12px 0 4px;
}

.support-story-box p + p {
    margin-top: 8px;
}

.support-paypal-card {
    background: #fffdf8;
    border: 1.5px solid var(--le-border-strong);
    border-radius: var(--le-radius-md);
    padding: 14px;
    text-align: center;
}

.support-paypal-privacy {
    font-size: 0.76rem;
    color: var(--le-ink-muted);
    margin-bottom: 10px;
    line-height: 1.45;
}

.support-paypal-privacy a {
    text-decoration: underline;
}

.support-paypal-status {
    font-size: 0.82rem;
    color: var(--le-ink-muted);
    padding: 6px 0;
}

.support-paypal-slot {
    max-width: 360px;
    margin: 0 auto;
    min-height: 44px;
}

.support-legal-note {
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--le-ink-muted);
    background: var(--le-surface-alt);
    border-radius: var(--le-radius-sm);
    padding: 10px 12px;
}

/* ==========================================================================
   MODERIERTES GÄSTEBUCH („DAS SAGEN UNSERE NUTZER“)
   ========================================================================== */
.guestbook-section {
    margin-top: 28px;
}

.guestbook-invite-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--le-radius-lg);
    background: var(--le-surface);
    border: 1px solid var(--le-border-strong);
    box-shadow: var(--le-shadow-sm);
}

.guestbook-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.guestbook-cta-btn {
    min-height: 44px;
    padding: 10px 18px;
    white-space: nowrap;
}

.guestbook-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.guestbook-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.guestbook-filter-pill {
    min-height: 42px;
    padding: 8px 14px;
}

.guestbook-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 960px) {
    .guestbook-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .guestbook-grid {
        grid-template-columns: 1fr;
    }
    .guestbook-cta-group {
        width: 100%;
    }
    .guestbook-cta-group > * {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
    }
    .guestbook-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .guestbook-filter-pill {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

.guestbook-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border-radius: var(--le-radius-md);
    background: var(--le-surface);
    border: 1px solid var(--le-border);
    box-shadow: var(--le-shadow-sm);
}

.guestbook-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.guestbook-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    background: #f1f5f9;
    color: var(--le-ink-soft);
}

.guestbook-role-badge.is-kind {
    background: #fef3c7;
    color: #92400e;
}

.guestbook-role-badge.is-eltern {
    background: #e0f2fe;
    color: #075985;
}

.guestbook-role-badge.is-lehrkraft {
    background: #dcfce7;
    color: #166534;
}

.guestbook-date {
    font-size: 0.74rem;
    color: var(--le-ink-muted);
}

.guestbook-card-msg {
    font-size: 0.91rem;
    line-height: 1.52;
    color: var(--le-ink);
    flex: 1;
}

.guestbook-card-author {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--le-ink-muted);
}

/* ==========================================================================
   DANKE-SEITE (PAYPAL-RÜCKKEHR)
   ========================================================================== */
.thanks-confetti-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
}

.thanks-main {
    padding-top: 28px;
    padding-bottom: 48px;
}

.thanks-hero-card {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: 36px 28px 30px;
    border-radius: var(--le-radius-lg);
    background: linear-gradient(155deg, #ffffff 0%, #fffbeb 55%, #fef3c7 100%);
    border: 1.5px solid rgba(217, 119, 6, 0.35);
    box-shadow: var(--le-shadow-md);
    text-align: center;
}

.thanks-owl-stage {
    position: relative;
    width: 156px;
    height: 156px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks-owl-halo {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.45) 0%, rgba(251, 191, 36, 0) 70%);
    animation: thanksPulse 3.2s ease-in-out infinite;
}

.thanks-owl-btn {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 140px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    animation: thanksFloat 3.6s ease-in-out infinite;
}

.thanks-owl-btn:focus-visible {
    outline: 3px solid var(--le-amber);
    outline-offset: 4px;
}

.thanks-owl-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(120, 53, 15, 0.16));
}

.thanks-heart-badge {
    position: absolute;
    right: 6px;
    bottom: 8px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #fda4af;
    box-shadow: var(--le-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: thanksHeartPop 2.4s ease-in-out infinite;
}

.thanks-title {
    font-size: clamp(1.7rem, 3.6vw, 2.45rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--le-ink);
}

.thanks-title span {
    color: var(--le-amber);
}

.thanks-lead {
    max-width: 610px;
    margin: 12px auto 0;
    font-size: 0.98rem;
    line-height: 1.62;
    color: var(--le-ink-soft);
}

.thanks-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
    text-align: left;
}

.thanks-impact-item {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thanks-impact-icon {
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 2px;
}

.thanks-impact-item strong {
    font-size: 0.9rem;
    color: var(--le-ink);
}

.thanks-impact-item span {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--le-ink-muted);
}

.thanks-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.thanks-btn,
.thanks-replay-btn {
    min-height: 46px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.thanks-note {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--le-border);
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--le-ink-muted);
}

.thanks-note a {
    text-decoration: underline;
}

@keyframes thanksFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

@keyframes thanksPulse {
    0%, 100% { transform: scale(0.94); opacity: 0.7; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes thanksHeartPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

@media (max-width: 680px) {
    .thanks-hero-card {
        padding: 26px 16px 22px;
    }
    .thanks-impact-grid {
        grid-template-columns: 1fr;
    }
    .thanks-actions > * {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thanks-owl-halo,
    .thanks-owl-btn,
    .thanks-heart-badge,
    .thanks-player-bars.is-playing span {
        animation: none;
    }
}

.thanks-player-card {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: var(--le-radius-md);
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(217, 119, 6, 0.28);
    box-shadow: var(--le-shadow-sm);
    text-align: left;
}

.thanks-player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.thanks-player-badge {
    font-size: 0.86rem;
    font-weight: 900;
    color: var(--le-ink);
}

.thanks-player-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.thanks-player-bars span {
    width: 3px;
    height: 5px;
    border-radius: 999px;
    background: var(--le-amber);
    opacity: 0.45;
}

.thanks-player-bars.is-playing span {
    opacity: 1;
    animation: thanksEqBar 0.75s ease-in-out infinite alternate;
}

.thanks-player-bars.is-playing span:nth-child(2) { animation-delay: 0.15s; }
.thanks-player-bars.is-playing span:nth-child(3) { animation-delay: 0.3s; }
.thanks-player-bars.is-playing span:nth-child(4) { animation-delay: 0.45s; }

@keyframes thanksEqBar {
    from { height: 4px; }
    to { height: 16px; }
}

.thanks-player-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.thanks-play-btn {
    min-height: 44px;
    min-width: 118px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.thanks-player-track {
    flex: 1;
    min-width: 0;
}

.thanks-seek-range {
    width: 100%;
    height: 24px;
    accent-color: var(--le-amber);
    cursor: pointer;
}

.thanks-player-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--le-ink-muted);
    margin-top: 2px;
}

.thanks-audio-status {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--le-rose);
    font-weight: 700;
}

@media (max-width: 520px) {
    .thanks-player-row {
        flex-direction: column;
        align-items: stretch;
    }
    .thanks-play-btn {
        width: 100%;
    }
}

/* ==========================================================================
   ERSTBESUCH-WILLKOMMEN-HINWEIS (EULE)
   ========================================================================== */
.hero-kicker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hero-kicker-row .hero-kicker {
    margin-bottom: 0;
}

.hero-welcome-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(217, 119, 6, 0.35);
    background: #fffbeb;
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.hero-welcome-pill:hover {
    background: #fef3c7;
    transform: translateY(-1px);
}

.welcome-modal-dialog {
    max-width: 520px;
    padding: 18px 22px 24px;
}

.welcome-modal-content {
    text-align: center;
}

.welcome-owl-img {
    width: 104px;
    height: auto;
    margin: -6px auto 8px;
    display: block;
    filter: drop-shadow(0 8px 14px rgba(120, 53, 15, 0.14));
}

.welcome-modal-title {
    font-size: 1.32rem;
    font-weight: 900;
    color: var(--le-ink);
    line-height: 1.2;
}

.welcome-modal-sub {
    font-size: 0.92rem;
    color: var(--le-ink-soft);
    margin-top: 6px;
    line-height: 1.5;
}

.welcome-tip-card {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: var(--le-radius-md);
    background: #fffbeb;
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    text-align: left;
    font-size: 0.86rem;
    line-height: 1.52;
    color: var(--le-ink);
}

.welcome-tip-card strong {
    display: inline;
}

.welcome-tip-card p {
    margin-top: 4px;
    color: var(--le-ink-soft);
}

.welcome-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.welcome-action-btn {
    min-height: 46px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

@media (max-width: 520px) {
    .modal-backdrop {
        padding: 10px;
    }

    .modal-dialog {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .welcome-modal-dialog {
        padding: 14px 16px 18px;
    }

    .welcome-owl-img {
        width: 78px !important;
        height: auto;
    }

    .welcome-modal-title {
        font-size: 1.15rem;
    }

    .welcome-tip-card {
        padding: 11px 12px;
        font-size: 0.82rem;
    }

    .welcome-modal-actions > * {
        width: 100%;
    }
}

/* ==========================================================================
   LOKALE SCHÜLER-ZUORDNUNG IM COCKPIT (NUR LOKAL IM BROWSER)
   ========================================================================== */
.member-nick-sub {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--le-ink-muted);
}

.member-alias-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--le-radius-sm);
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.member-alias-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.member-alias-bar {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: var(--le-radius-sm);
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* ==========================================================================
   ELEKTRONISCHER AVV & DRUCKANSICHT (avv.html & cockpit.html)
   ========================================================================== */
.avv-inline-box {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--le-radius-sm);
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avv-main {
    padding-top: 22px;
    padding-bottom: 48px;
}

.avv-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.avv-tool-btn {
    min-height: 44px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.avv-copy-note {
    font-size: 0.84rem;
    font-weight: 800;
    color: #15803d;
}

.avv-prefill-card {
    background: var(--le-surface);
    border: 1px solid var(--le-border-strong);
    border-radius: var(--le-radius-md);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.avv-document {
    padding: 26px 28px;
}

.avv-doc-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--le-border);
}

.avv-contract-meta {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-sm);
    padding: 10px 12px;
    font-size: 0.78rem;
    line-height: 1.6;
}

.avv-parties-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.avv-party-box {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-sm);
    padding: 12px 14px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.avv-party-box p + p {
    margin-top: 8px;
}

.avv-party-label {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--le-ink-soft);
    margin-bottom: 6px;
}

.avv-subproc-box {
    background: var(--le-surface-alt);
    border: 1px solid var(--le-border);
    border-radius: var(--le-radius-sm);
    padding: 12px 14px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.avv-subproc-box span {
    display: block;
    margin-top: 4px;
    color: var(--le-ink-muted);
}

.avv-signatures-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.avv-sig-box {
    border: 1px solid var(--le-border-strong);
    border-radius: var(--le-radius-sm);
    padding: 12px 14px;
    background: #fffdf8;
}

.avv-sig-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--le-ink);
}

.avv-sig-status {
    font-size: 0.78rem;
    color: var(--le-ink-muted);
    margin-top: 4px;
    min-height: 18px;
}

.avv-sig-line {
    margin-top: 26px;
    border-bottom: 1.5px solid var(--le-ink-soft);
    min-height: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    padding-bottom: 3px;
}

.avv-sig-line.is-signed {
    margin-top: 14px;
    color: #166534;
}

.avv-sig-caption {
    font-size: 0.72rem;
    color: var(--le-ink-muted);
    margin-top: 4px;
}

.avv-divider {
    border: none;
    border-top: 1px solid var(--le-border);
    margin: 22px 0;
}

.avv-parent-template {
    background: #fffbeb;
    border: 1px dashed rgba(217, 119, 6, 0.55);
    border-radius: var(--le-radius-sm);
    padding: 14px 16px;
    font-size: 0.86rem;
    line-height: 1.6;
}

.avv-parent-template p + p {
    margin-top: 8px;
}

@media (max-width: 680px) {
    .avv-document {
        padding: 18px 16px;
    }
    .avv-parties-grid,
    .avv-signatures-grid {
        grid-template-columns: 1fr;
    }
    .avv-toolbar .btn-row > * {
        width: 100%;
        justify-content: center;
    }
}

@media print {
    @page {
        margin: 14mm;
    }
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .no-print {
        display: none !important;
    }
    .avv-main {
        display: block !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    .avv-document {
        display: block !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    .avv-document h3 {
        break-after: avoid;
    }
    .avv-parties-grid,
    .avv-signatures-grid,
    .avv-subproc-box,
    .avv-parent-template {
        break-inside: avoid;
    }
}

/* ==========================================================================
   MEINE FREUNDE (Kindersicherer Code-Austausch, Schaufenster & Schach-Einladung)
   ========================================================================== */
.friends-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.friend-qr-box svg {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    border: 1.5px solid var(--le-border);
    display: block;
}

.friend-privacy-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.friend-privacy-toggle input {
    width: 18px;
    height: 18px;
}

.friend-notice-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    font-size: 0.84rem;
}

.friend-notice-row.chess {
    background: #f0f9ff;
    border-color: #7dd3fc;
}

.friend-notice-row.greet {
    background: #f0fdf4;
    border-color: #86efac;
}

.friend-mini-id {
    display: flex;
    align-items: center;
    gap: 9px;
}

.friend-mini-av {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    border: 1.5px solid var(--le-border);
    flex-shrink: 0;
}

.friend-mini-av svg {
    width: 100%;
    height: 100%;
    display: block;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.friend-card {
    background: #ffffff;
    border: 1.5px solid var(--le-border);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friend-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.friend-card-av {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    flex-shrink: 0;
}

.friend-card-av svg {
    width: 100%;
    height: 100%;
    display: block;
}

.friend-active-dot {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
}

.friend-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.friend-greet-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px dashed var(--le-border);
}

