html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ---------- Bibelino-Spiel: Themenwelten, Welt-Runde, Feedback ---------- */

.quiz-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
    color: #1e2a44;
}

.quiz-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(201, 162, 39, 0.15);
    color: #f7d571;
}

.quiz-header .eyebrow {
    color: #8a6d14;
}

.quiz-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0;
    color: #1e2a44;
}

.zurueck {
    width: fit-content;
    color: #2b4a7a;
    text-decoration: none;
    font-size: 0.85rem;
}

.zurueck:hover {
    text-decoration: underline;
}

.state-card .zurueck {
    color: #9db8e8;
}

/* Themenwelten-Kacheln */
.tiles {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.tile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(17, 24, 39, 0.92);
    border-radius: 1.25rem;
    padding: 1.1rem;
    text-decoration: none;
    color: #eaf2ff;
    box-shadow: 0 14px 30px rgba(15, 22, 40, 0.25);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.tile:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 162, 39, 0.7);
    box-shadow: 0 18px 36px rgba(27, 70, 122, 0.28);
}

.tile.locked {
    opacity: 0.75;
    cursor: not-allowed;
}

.tile-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(201, 162, 39, 0.18);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tile-body {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.tile-body h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #f5f7ff;
}

.tile-body p {
    margin: 0;
    font-size: 0.85rem;
    color: #b8c7eb;
}

.tile-status {
    color: #f7d571;
}

.tile-progress {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.tile-meta {
    font-size: 0.75rem;
    color: #8fa2d9;
}

.tile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.tile-sterne {
    color: #c9a227;
    letter-spacing: 0.15em;
}

.badge-meister {
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(201, 162, 39, 0.2);
    color: #f7d571;
    border: 1px solid rgba(201, 162, 39, 0.5);
}

/* Zustands-Karten */
.state-card,
.question-panel,
.result-card {
    border: 1px solid rgba(138, 162, 218, 0.25);
    background: rgba(17, 24, 39, 0.92);
    border-radius: 1.25rem;
    box-shadow: 0 20px 42px rgba(15, 22, 40, 0.35);
}

.state-card,
.result-card {
    padding: 1.5rem;
}

.state-card h2 {
    color: #f5f7ff;
}

.state-card p {
    color: #dfe7ff;
}

.state-card.error {
    border-color: rgba(255, 117, 117, 0.6);
}

.state-card.error p {
    color: #ffd3d3;
}

/* Fortschritt */
.progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem 0;
}

.progress-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.progress-copy .label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8fa2d9;
}

.progress-copy strong {
    font-size: 1.1rem;
    color: #f5f7ff;
}

.progress-ring {
    position: relative;
    width: 84px;
    height: 84px;
}

.progress-ring svg {
    width: 84px;
    height: 84px;
    transform: rotate(-90deg);
}

.progress-ring .track {
    fill: none;
    stroke: rgba(148, 163, 184, 0.2);
    stroke-width: 8;
}

.progress-ring .value {
    fill: none;
    stroke: #c9a227;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 210;
    stroke-dashoffset: 210;
    transition: stroke-dashoffset 220ms ease;
}

.progress-ring span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f5f7ff;
}

/* Frage */
.question-panel {
    padding: 1rem 0 1.25rem;
}

.prompt {
    padding: 0 1.1rem;
}

.kicker {
    margin: 0 0 0.6rem;
    color: #c9a227;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
}

.prompt h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.35;
    color: #f7f9ff;
}

.options {
    display: grid;
    gap: 0.8rem;
    padding: 1.25rem 1.1rem 0;
}

.option {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    text-align: left;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.9);
    color: #eaf2ff;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.option:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(201, 162, 39, 0.7);
    box-shadow: 0 12px 26px rgba(27, 70, 122, 0.2);
}

.option:disabled {
    cursor: default;
}

.option.selected {
    border-color: rgba(96, 165, 250, 0.9);
    background: rgba(30, 64, 175, 0.2);
}

.option-token {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.75rem;
    background: rgba(148, 163, 184, 0.12);
    color: #f5f7ff;
    font-weight: 700;
    flex-shrink: 0;
}

.actions {
    display: flex;
    justify-content: flex-end;
    padding: 1.4rem 1.1rem 0;
}

.submit {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.4rem;
    background: linear-gradient(135deg, #c9a227, #d6b352);
    color: #1a1f2b;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    min-width: 180px;
}

.submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit.secondary {
    background: transparent;
    color: #f7d571;
    border: 1px solid rgba(201, 162, 39, 0.6);
}

/* Feedback */
.feedback {
    padding: 1.1rem;
    perspective: 1200px;
    position: relative;
}

.feedback .pill {
    display: inline-flex;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.07);
    margin: 0 0 0.75rem;
}

.feedback.correct {
    animation: antwortGlanz 900ms ease-out;
}

.feedback.correct .pill {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.2);
}

.feedback.wrong .pill {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.15);
}

.feedback h3 {
    margin: 0 0 0.6rem;
    font-size: 1.8rem;
    color: #f5f7ff;
}

.feedback p {
    margin: 0;
    color: #dfe7ff;
}

@keyframes antwortGlanz {
    from {
        box-shadow: 0 0 36px 6px rgba(201, 162, 39, 0.55);
    }

    to {
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0);
    }
}

.verse-card {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    animation: versFlip 520ms ease-out;
    transform-origin: center;
}

@keyframes versFlip {
    from {
        transform: rotateY(85deg);
        opacity: 0;
    }

    to {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

/* Falsche Antwort: Der Quellvers dreht sich nicht fröhlich ein, sondern setzt sich
   ruhig ab und wankt kurz («nicht ganz») – eigener Feedback-Loop neben Rot/Glow. */
.feedback.wrong .verse-card {
    animation: versWanken 640ms ease-out;
}

@keyframes versWanken {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }

    40% {
        opacity: 1;
        transform: translateY(0);
    }

    55% {
        transform: translateX(-5px);
    }

    70% {
        transform: translateX(4px);
    }

    85% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(0);
    }
}

.verse-card span {
    display: block;
    color: #f7d571;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

/* Ergebnis */
.result-card {
    display: grid;
    gap: 1rem;
}

.result-card h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: #f5f7ff;
}

.result-card .scoreline {
    margin: 0;
    color: #dfe7ff;
}

.sterne-zeile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sterne-gross {
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    color: #c9a227;
}

.badge-neu {
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(16, 185, 129, 0.18);
    color: #a7f3d0;
}

.meter {
    position: relative;
    height: 14px;
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.meter > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c9a227, #59b3ff);
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.result-stat {
    display: grid;
    gap: 0.2rem;
    border-radius: 1rem;
    padding: 0.9rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.result-stat strong {
    font-size: 1.4rem;
    color: #f5f7ff;
}

.result-stat span {
    color: #b8c7eb;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.actions-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Vers-Rückblick */
.review h3 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    color: #f7d571;
}

.review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.review-item {
    display: flex;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.review-mark {
    font-weight: 800;
}

.review-item.ok .review-mark {
    color: #6ee7b7;
}

.review-item.bad .review-mark {
    color: #fca5a5;
}

.review-question {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    color: #dfe7ff;
}

.review-verse {
    margin: 0;
    font-size: 0.8rem;
    color: #b8c7eb;
}

.review-verse strong {
    color: #f7d571;
}

/* Schmale Geräte */
@media (max-width: 640px) {
    .progress-row {
        align-items: flex-start;
    }

    .actions {
        justify-content: stretch;
    }

    .submit {
        width: 100%;
    }

    .actions-split {
        justify-content: stretch;
    }

    .result-stats {
        grid-template-columns: 1fr;
    }
}

/* Animationen abschaltbar (DoD « Animationen abschaltbar “) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* ---------- Tagesvers & Tagesquiz (AP-5/AP-6) ---------- */
.karten-2 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 0.5rem;
}

.start-karte {
    display: grid;
    gap: 0.6rem;
    align-content: start;
    border: 1px solid rgba(138, 162, 218, 0.25);
    background: rgba(17, 24, 39, 0.92);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 20px 42px rgba(15, 22, 40, 0.35);
}

.start-karte h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #f5f7ff;
}

.start-karte .vers-text {
    margin: 0;
    color: #dfe7ff;
}

.karte-link {
    width: fit-content;
    color: #f7d571;
    font-weight: 600;
    text-decoration: none;
}

.karte-link:hover {
    text-decoration: underline;
}

.challenge-fuss {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.countdown-label {
    color: #8fa2d9;
    font-size: 0.8rem;
}

.countdown-time {
    color: #f5f7ff;
    font-variant-numeric: tabular-nums;
}

.abschnitt {
    margin: 1.75rem 0 1rem;
    font-size: 1.4rem;
    color: #1e2a44;
}

.versuch-info {
    margin: 0 0 1rem;
    color: #55648c;
    font-size: 0.85rem;
}

.result-card .versuch-info {
    margin: 0;
    color: #b8c7eb;
}

.vers-datum {
    margin: 0;
    color: #8fa2d9;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tagesvers-gross .vers-text {
    font-size: 1.15rem;
    line-height: 1.6;
}

.bewertungs-fehler {
    margin: 0.8rem 1.1rem 0;
    color: #fca5a5;
    font-size: 0.85rem;
}

/* ---------- Gast-Hinweis & Export (AP-7) ---------- */
.gast-karte {
    margin-top: 1.2rem;
    padding: 1.4rem 1.5rem;
    border-radius: 1.25rem;
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(138, 162, 218, 0.2);
}

.gast-karte h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #f5f7ff;
}

.gast-karte p {
    margin: 0 0 1rem;
    color: #dfe7ff;
    max-width: 60ch;
}

.gast-aktionen {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.gast-meldung {
    color: #a7f3d0;
    font-size: 0.85rem;
}

/* ---------- Konto & Anmeldung (AP-12) ---------- */
.konto-karte h2 {
    color: #f7d571;
}

.konto-formular {
    display: grid;
    gap: 0.35rem;
    max-width: 26rem;
    margin: 1.2rem 0;
    padding: 1.4rem 1.5rem;
    border-radius: 1.25rem;
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(138, 162, 218, 0.2);
}

.konto-formular label {
    margin-top: 0.6rem;
    color: #dfe7ff;
    font-size: 0.9rem;
}

.konto-formular input {
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(138, 162, 218, 0.35);
    background: rgba(10, 15, 28, 0.9);
    color: #f5f7ff;
    font-size: 1rem;
}

.konto-formular button.submit {
    margin-top: 1rem;
}

.konto-hinweis {
    margin: 0.25rem 0 0;
    color: #9fb0d8;
    font-size: 0.8rem;
}

.konto-wechsel {
    color: #dfe7ff;
}

.konto-wechsel a {
    color: #f7d571;
}

/* ---------- Level & Ränge (AP-8) ---------- */
.rang-strip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0 0 1.1rem;
    padding: 0.6rem 0.9rem;
    border-radius: 1rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(138, 162, 218, 0.18);
    font-size: 0.85rem;
    color: #dfe7ff;
}

.rang-chip {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.18);
    color: #f7d571;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.rang-titel {
    color: #f5f7ff;
    font-weight: 600;
}

.rang-rest {
    color: #8fa2d9;
}

.level-zeile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: #dfe7ff;
    font-size: 0.9rem;
}

.level-zeile strong {
    color: #f7d571;
}

.level-rest {
    color: #8fa2d9;
}

/* Level-Aufstieg: kurzes Aufleuchten mit expandierendem Ring (US-302) */
.level-up {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.7rem;
    padding: 0.7rem 0.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(201, 162, 39, 0.65);
    background: rgba(201, 162, 39, 0.12);
    color: #f7d571;
    animation: levelAufstieg 900ms ease-out;
}

.level-up-stern {
    font-size: 1.3rem;
}

@keyframes levelAufstieg {
    0% {
        transform: scale(0.92);
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.7);
        opacity: 0.4;
    }

    45% {
        transform: scale(1.03);
        box-shadow: 0 0 0 12px rgba(201, 162, 39, 0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0);
    }
}

/* ---------- Bibeltruhe (AP-9) ---------- */
.truhe {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.9rem;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px dashed rgba(201, 162, 39, 0.55);
    color: #dfe7ff;
}

.truhe-icon {
    font-size: 1.7rem;
    line-height: 1;
}

/* Aufmerksamkeits-Wippen der geschlossenen Truhe */
.truhe:not(.truhe-leer):not(.truhe-offen) .truhe-icon {
    animation: truheWippen 2.6s ease-in-out infinite;
}

.truhe-text {
    display: grid;
    gap: 0.15rem;
    flex: 1;
}

.truhe-text strong {
    color: #f7d571;
}

.truhe-text span {
    font-size: 0.85rem;
    color: #b8c7eb;
}

.truhe-knopf {
    min-width: 0;
}

.truhe-leer {
    border-style: solid;
    border-color: rgba(138, 162, 218, 0.25);
    opacity: 0.85;
}

/* Geöffnete Truhe: Glanz + kurzer Aufsprung, Belohnung poppt ein */
.truhe-offen {
    border-style: solid;
    border-color: rgba(201, 162, 39, 0.8);
    background: rgba(201, 162, 39, 0.12);
    animation: truheGlanz 900ms ease-out;
}

.truhe-offen .truhe-icon {
    animation: truheAuf 900ms ease-out;
}

.truhe-offen .truhe-belohnung {
    color: #a7f3d0;
    font-weight: 700;
    animation: belohnungPop 700ms ease-out;
}

@keyframes truheWippen {
    0%, 84%, 100% {
        transform: rotate(0deg);
    }

    88% {
        transform: rotate(-7deg);
    }

    92% {
        transform: rotate(6deg);
    }

    96% {
        transform: rotate(-3deg);
    }
}

@keyframes truheAuf {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.4) rotate(-8deg);
    }

    60% {
        transform: scale(1.15) rotate(6deg);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes truheGlanz {
    0% {
        box-shadow: 0 0 28px 4px rgba(201, 162, 39, 0.5);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0);
    }
}

@keyframes belohnungPop {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- Politur: Fokus & Konfetti (AP-10) ---------- */
:focus-visible {
    outline: 2px solid #f7d571;
    outline-offset: 2px;
}

/* Konfetti bei richtiger Antwort (US-205): 10 Stücke fliegen einmalig auf und verblassen.
   Bei prefers-reduced-motion bleiben sie unsichtbar (global abgeschaltet, Start-Opacity 0). */
.konfetti {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 0;
    height: 0;
}

.konfetti-stueck {
    position: absolute;
    left: 0;
    top: 0;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    opacity: 0;
    animation: konfettiFlug 1000ms ease-out forwards;
}

.konfetti-stueck:nth-child(1) { --x: -84px; --y: -34px; --r: 260deg; background: #f7d571; }
.konfetti-stueck:nth-child(2) { --x: 74px; --y: -44px; --r: -220deg; background: #a7f3d0; animation-delay: 40ms; }
.konfetti-stueck:nth-child(3) { --x: -46px; --y: -66px; --r: 190deg; background: #f5f7ff; animation-delay: 80ms; }
.konfetti-stueck:nth-child(4) { --x: 38px; --y: -70px; --r: -160deg; background: #f7d571; animation-delay: 120ms; }
.konfetti-stueck:nth-child(5) { --x: -96px; --y: 6px; --r: 300deg; background: #a7f3d0; animation-delay: 60ms; }
.konfetti-stueck:nth-child(6) { --x: 92px; --y: 2px; --r: -280deg; background: #f5f7ff; animation-delay: 100ms; }
.konfetti-stueck:nth-child(7) { --x: -64px; --y: 44px; --r: 340deg; background: #dfe7ff; animation-delay: 140ms; }
.konfetti-stueck:nth-child(8) { --x: 58px; --y: 50px; --r: -320deg; background: #f7d571; animation-delay: 180ms; }
.konfetti-stueck:nth-child(9) { --x: 4px; --y: -78px; --r: 200deg; background: #a7f3d0; animation-delay: 90ms; }
.konfetti-stueck:nth-child(10) { --x: -12px; --y: 62px; --r: -240deg; background: #dfe7ff; animation-delay: 150ms; }

@keyframes konfettiFlug {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.8);
    }
}

/* ---------- Ranglisten (AP-15) ---------- */
.ranglisten-reiter {
    margin-bottom: 1rem;
}

.rangliste {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1rem;
}

.rangliste th,
.rangliste td {
    padding: 0.55rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid rgba(245, 247, 255, 0.14);
}

.rangliste th {
    color: #c9a227;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rangliste tr.eigener {
    background: rgba(247, 213, 113, 0.12);
}

.rangliste tr.eigener td {
    color: #f7d571;
    font-weight: 600;
}

.ranglisten-regeln {
    margin-top: 1rem;
}

.ranglisten-regeln h3 {
    margin-bottom: 0.5rem;
}

.ranglisten-regeln ul {
    padding-left: 1.2rem;
    display: grid;
    gap: 0.35rem;
}

/* ---------- Streak (AP-16) ---------- */
.streak-chip {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(247, 213, 113, 0.14);
    color: #f7d571;
    font-weight: 600;
    white-space: nowrap;
}

.streak-hinweis {
    color: #f7d571;
}

/* ---------- Push-Erinnerung (AP-16) ---------- */
.push-status {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(167, 243, 208, 0.16);
    color: #a7f3d0;
    font-weight: 600;
}

.push-zeit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #f5f7ff;
}

.push-zeit input[type="time"] {
    accent-color: #f7d571;
    background: rgba(245, 247, 255, 0.06);
    color: inherit;
    border: 1px solid rgba(245, 247, 255, 0.2);
    border-radius: 0.4rem;
    padding: 0.25rem 0.4rem;
}

/* ---------- Sammelkarten (AP-17) ---------- */
.sammlung-zeile {
    margin-top: 0.4rem;
}

.sammlung-kopf {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: baseline;
    justify-content: space-between;
    margin: 0.8rem 0;
}

.sammlung-zaehler {
    color: #f5f7ff;
}

.serien-fortschritt {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.serien-chip {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(245, 247, 255, 0.08);
    color: #cfd6ff;
    font-size: 0.85rem;
}

.karten-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.filter-gruppe {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-label {
    color: #cfd6ff;
    font-size: 0.85rem;
    margin-right: 0.2rem;
}

.filter-knopf {
    border: 1px solid rgba(245, 247, 255, 0.2);
    background: rgba(245, 247, 255, 0.06);
    color: #f5f7ff;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    cursor: pointer;
}

.filter-knopf.aktiv {
    border-color: #f7d571;
    color: #f7d571;
}

.filter-schalter {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    color: #f5f7ff;
}

.karten-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.8rem;
}

.karten-kachel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.8rem 0.5rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(245, 247, 255, 0.16);
    background: linear-gradient(160deg, rgba(245, 247, 255, 0.08), rgba(245, 247, 255, 0.02));
    color: #f5f7ff;
    cursor: pointer;
    min-height: 140px;
}

.karten-kachel:hover {
    border-color: #f7d571;
}

/* ---------- Profil & Einstellungen (AP-19) ---------- */
.profil-kopf {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.avatar-kreis {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: #101425;
    background: linear-gradient(150deg, #f7d571, #f0a35e);
    flex: 0 0 auto;
}

.profil-kopf-text h2 {
    margin: 0 0 0.2rem;
}

.profil-zeile {
    color: #cfd6ff;
    margin: 0.15rem 0;
}

.stat-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.8rem;
    margin: 0.6rem 0 1.2rem;
}

.stat-karte {
    padding: 0.8rem 0.9rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(138, 162, 218, 0.24);
    background: linear-gradient(160deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.72));
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-wert {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f7d571;
}

.stat-label {
    color: #cfd6ff;
    font-size: 0.9rem;
}

.stat-zusatz {
    color: #9aa3c7;
    font-size: 0.8rem;
}

.spiele-liste {
    list-style: none;
    margin: 0.4rem 0 1.2rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.spiel-zeile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    color: #f5f7ff;
    padding: 0.55rem 0.8rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(245, 247, 255, 0.14);
    background: rgba(245, 247, 255, 0.04);
    color: #f5f7ff;
}

.spiel-meta {
    color: #5b6584;
    font-size: 0.85rem;
}

.gast-karte .spiel-meta,
.stat-karte .spiel-meta {
    color: #9aa3c7;
}

.spiel-punkte {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(247, 213, 113, 0.14);
    color: #f7d571;
    font-weight: 600;
    white-space: nowrap;
}

.form-zeile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: flex-end;
    margin: 0.5rem 0;
}

.form-zeile label {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #cfd6ff;
    font-size: 0.9rem;
}

.form-zeile input[type="text"],
.form-zeile input[type="email"],
.form-zeile input[type="password"] {
    background: rgba(245, 247, 255, 0.06);
    color: #f5f7ff;
    border: 1px solid rgba(245, 247, 255, 0.2);
    border-radius: 0.4rem;
    padding: 0.35rem 0.55rem;
    min-width: 220px;
}

.form-zeile input:focus {
    outline: 2px solid rgba(247, 213, 113, 0.6);
    outline-offset: 1px;
}

.gefahr-karte {
    border-color: rgba(248, 113, 113, 0.5);
}

.gefahr-karte h2 {
    color: #fca5a5;
}

.gefahr-hinweis {
    color: #fca5a5;
    font-size: 0.9rem;
}

@media (max-width: 430px) {
    .stat-raster {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .form-zeile input[type="text"],
    .form-zeile input[type="email"],
    .form-zeile input[type="password"] {
        min-width: 0;
        width: 100%;
    }

    .form-zeile label {
        width: 100%;
    }
}

.karten-kachel.fehlt {
    opacity: 0.55;
    filter: grayscale(1);
}

.karten-motiv {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 700;
    background: rgba(245, 247, 255, 0.1);
}

.karten-motiv.gross {
    width: 90px;
    height: 90px;
    font-size: 2.4rem;
    flex: 0 0 auto;
}

.karten-name {
    font-weight: 600;
    text-align: center;
}

.karten-sterne {
    color: #f7d571;
    letter-spacing: 0.1rem;
}

.karten-kachel.seltenheit-1 .karten-motiv,
.karten-detail.seltenheit-1 .karten-motiv {
    background: rgba(148, 163, 184, 0.25);
}

.karten-kachel.seltenheit-2 .karten-motiv,
.karten-detail.seltenheit-2 .karten-motiv {
    background: rgba(96, 165, 250, 0.25);
}

.karten-kachel.seltenheit-3 .karten-motiv,
.karten-detail.seltenheit-3 .karten-motiv {
    background: rgba(192, 132, 252, 0.3);
}

.karten-kachel.seltenheit-4 .karten-motiv,
.karten-detail.seltenheit-4 .karten-motiv {
    background: rgba(247, 213, 113, 0.35);
}

.karten-kachel.seltenheit-4 {
    border-color: rgba(247, 213, 113, 0.5);
}

.karten-detail {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(247, 213, 113, 0.4);
    background: rgba(245, 247, 255, 0.05);
    margin-bottom: 1rem;
}

.karten-detail-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.karten-detail-serie {
    color: #cfd6ff;
    font-size: 0.9rem;
}

.karten-detail-vers {
    color: #a7f3d0;
}

.karten-detail-quelle {
    color: #cfd6ff;
    font-size: 0.85rem;
}

.karten-freischaltung {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem;
    border: 1px dashed rgba(247, 213, 113, 0.5);
    background: rgba(247, 213, 113, 0.08);
    margin: 0.6rem 0;
}

.karten-freischaltung-titel {
    font-weight: 600;
}

.karten-chip {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(245, 247, 255, 0.1);
}

.karten-chip-sterne {
    color: #f7d571;
}

.karten-freischaltung-link {
    color: #f7d571;
}

@media (max-width: 640px) {
    .karten-detail {
        flex-direction: column;
    }
}

/* ---------- Auszeichnungen: Feier & Vitrine (AP-23, E12) ---------- */
.abzeichen-feier {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 0.8rem;
    border: 1px dashed rgba(247, 213, 113, 0.5);
    background: linear-gradient(135deg, rgba(247, 213, 113, 0.12), rgba(247, 213, 113, 0.04));
    margin: 0.6rem 0;
}

.abzeichen-feier-titel {
    font-weight: 600;
}

.abzeichen-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(245, 247, 255, 0.1);
}

.abzeichen-chip.stufe-orden {
    background: rgba(247, 213, 113, 0.2);
    border: 1px solid rgba(247, 213, 113, 0.5);
}

.abzeichen-feier-link {
    color: #f7d571;
}

.bi-abz-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.6rem 0;
}

.bi-abz-filter-chip {
    border: 1px solid rgba(245, 247, 255, 0.25);
    background: none;
    color: #cfd6ff;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    cursor: pointer;
}

.bi-abz-filter-chip.aktiv {
    border-color: rgba(247, 213, 113, 0.7);
    color: #f7d571;
    background: rgba(247, 213, 113, 0.12);
}

.bi-abz-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
    margin: 0.6rem 0;
}

.bi-abz-kachel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.8rem 0.5rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(247, 213, 113, 0.4);
    background: rgba(245, 247, 255, 0.06);
    color: #f5f7ff;
    cursor: pointer;
    text-align: center;
}

.bi-abz-kachel.orden {
    border-color: rgba(247, 213, 113, 0.7);
}

.bi-abz-kachel.offen {
    border-style: dashed;
    border-color: rgba(245, 247, 255, 0.2);
}

.bi-abz-kachel.offen .bi-abz-symbol {
    filter: grayscale(1);
    opacity: 0.5;
}

.bi-abz-kachel.bald {
    border-color: rgba(255, 214, 165, 0.6);
}

.bi-abz-symbol {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.6rem;
    background: rgba(247, 213, 113, 0.18);
}

.bi-abz-symbol.gross {
    width: 84px;
    height: 84px;
    font-size: 2.2rem;
    flex: 0 0 auto;
}

.bi-abz-name {
    font-weight: 600;
}

.bi-abz-status {
    color: #cfd6ff;
    font-size: 0.82rem;
}

.bi-abz-bald {
    padding: 0.4rem 0.7rem;
    border-radius: 0.7rem;
    background: rgba(247, 213, 113, 0.1);
    color: #f7d571;
    font-size: 0.9rem;
}

.bi-abz-detail {
    padding: 0.9rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(247, 213, 113, 0.4);
    background: rgba(245, 247, 255, 0.05);
    margin-top: 0.6rem;
}

.bi-abz-detail-kopf {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.bi-abz-detail-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bi-abz-geschichte {
    margin: 0;
    color: #f5f7ff;
}

.bi-abz-stelle {
    color: #a7f3d0;
}

.bi-abz-schliessen {
    margin-left: auto;
    border: none;
    background: none;
    color: #cfd6ff;
    cursor: pointer;
    font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {
    .bi-abz-kachel {
        transition: border-color 0.15s ease, background 0.15s ease;
    }

    .bi-abz-kachel:hover {
        border-color: rgba(247, 213, 113, 0.8);
        background: rgba(247, 213, 113, 0.1);
    }

    .abzeichen-feier {
        animation: bi-abz-einblenden 0.4s ease;
    }

    @keyframes bi-abz-einblenden {
        from {
            opacity: 0;
            transform: translateY(4px);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }
}

/* ---------- Statistik-Seite (AP-24, US-304) ---------- */
.abschnitt-zeile {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.bi-stat-wochen {
    display: flex;
    gap: 0.35rem;
    align-items: flex-end;
    padding: 0.6rem 0.2rem 0;
}

.bi-stat-spalte {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.bi-stat-wert {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f7d571;
}

.bi-stat-saeule {
    width: 100%;
    max-width: 44px;
    height: 110px;
    display: flex;
    align-items: flex-end;
    border-radius: 0.4rem 0.4rem 0 0;
    background: rgba(245, 247, 255, 0.06);
    border-bottom: 1px solid rgba(245, 247, 255, 0.25);
}

.bi-stat-fuellung {
    width: 100%;
    border-radius: 0.4rem 0.4rem 0 0;
    background: linear-gradient(180deg, rgba(247, 213, 113, 0.95), rgba(247, 213, 113, 0.55));
}

.bi-stat-label {
    font-size: 0.72rem;
    color: #cfd6ff;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
}

.bi-stat-spalte.aktuell .bi-stat-label {
    color: #f7d571;
    font-weight: 600;
}

.bi-stat-welt {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.bi-stat-welt:last-child {
    margin-bottom: 0;
}

.bi-stat-welt-kopf {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    justify-content: space-between;
}

.bi-stat-welt-zahlen {
    color: #cfd6ff;
    font-size: 0.85rem;
}

.bi-stat-meister {
    color: #f7d571;
    font-weight: 600;
    margin-left: 0.35rem;
}

.bi-stat-fortschrittsleiste {
    height: 8px;
    border-radius: 999px;
    background: rgba(245, 247, 255, 0.12);
    overflow: hidden;
}

.bi-stat-fortschrittsfuellung {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(167, 243, 208, 0.85), rgba(247, 213, 113, 0.9));
}

@media (prefers-reduced-motion: no-preference) {
    .bi-stat-fuellung,
    .bi-stat-fortschrittsfuellung {
        transition: height 0.4s ease, width 0.4s ease;
    }
}

@media (max-width: 430px) {
    .bi-stat-wert {
        font-size: 0.7rem;
    }

    .bi-stat-label {
        font-size: 0.66rem;
    }
}

/* ---------- Erlebnis-Einstellungen, Installation & Ergebnis-Einordnung (AP-25) ---------- */
.wahl-reihe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.4rem 0 0.6rem;
}

.wahl-knopf {
    border: 1px solid rgba(245, 247, 255, 0.25);
    background: none;
    color: #cfd6ff;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    cursor: pointer;
}

.wahl-knopf.aktiv {
    border-color: rgba(247, 213, 113, 0.7);
    color: #f7d571;
    background: rgba(247, 213, 113, 0.12);
    font-weight: 600;
}

.wahl-knopf:disabled {
    opacity: 0.6;
    cursor: default;
}

.install-hinweis {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    max-width: min(94vw, 560px);
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(247, 213, 113, 0.5);
    color: #f5f7ff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    z-index: 1200;
}

.install-hinweis-text {
    font-size: 0.92rem;
}

.install-hinweis-spaeter {
    border: none;
    background: none;
    color: #cfd6ff;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.ergebnis-einordnung {
    margin: 0.6rem 0 0;
    padding: 0.55rem 0.85rem;
    border-radius: 0.8rem;
    background: rgba(17, 24, 39, 0.85);
    color: #f7d571;
    font-weight: 600;
}

/* „Animationen aus“ (US-1101, AP-25): Bewegung sofort beenden, Endzustände bleiben erhalten. */
html[data-animationen="aus"] *,
html[data-animationen="aus"] *::before,
html[data-animationen="aus"] *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
}

/* Schriftgrößen-Stufen (US-1102, AP-25): rem-basierte Oberfläche skaliert mit. */
html[data-schrift="klein"] {
    font-size: 15px;
}

html[data-schrift="gross"] {
    font-size: 17.5px;
}

/* ---------- Frage melden & Diskussion (AP-18) ---------- */
.frage-werkzeuge {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.7rem;
}

.werkzeug-knopf {
    border: none;
    background: none;
    color: #cfd6ff;
    cursor: pointer;
    padding: 0.2rem 0.1rem;
    font-size: 0.92rem;
}

.werkzeug-knopf:hover {
    color: #f7d571;
    text-decoration: underline;
}

.meldung-formular {
    margin-top: 0.7rem;
    padding: 0.8rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(245, 247, 255, 0.16);
    background: rgba(245, 247, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meldung-frage {
    color: #f5f7ff;
    font-weight: 600;
}

.meldung-kategorien {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.meldung-text,
.kommentar-formular textarea {
    width: 100%;
    resize: vertical;
    background: rgba(245, 247, 255, 0.06);
    color: #f5f7ff;
    border: 1px solid rgba(245, 247, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem;
    font: inherit;
}

.meldung-danke {
    color: #a7f3d0;
    font-weight: 600;
}

.diskussion {
    margin-top: 0.7rem;
    padding: 0.8rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(245, 247, 255, 0.16);
    background: rgba(245, 247, 255, 0.04);
}

.diskussion-hinweis {
    color: #cfd6ff;
}

.kommentar-liste {
    list-style: none;
    margin: 0 0 0.7rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.kommentar {
    padding: 0.5rem 0.6rem;
    border-radius: 0.6rem;
    background: rgba(245, 247, 255, 0.05);
}

.kommentar-kopf {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.kommentar-zeit {
    color: #8993b6;
    font-size: 0.8rem;
}

.kommentar-aktion {
    border: none;
    background: none;
    color: #8993b6;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    margin-left: auto;
}

.kommentar-aktion:hover {
    color: #f7d571;
    text-decoration: underline;
}

.kommentar-gemeldet {
    color: #8993b6;
    font-size: 0.8rem;
    margin-left: auto;
}

.kommentar-formular {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ---- Unterstützen (AP-27) ---- */

.bi-u-lead {
    max-width: 46rem;
    margin-top: 0.35rem;
}

.bi-u-block {
    margin-top: 1.5rem;
}

.bi-u-zahlen {
    display: flex;
    gap: 1rem;
    margin: 0.75rem 0 0.25rem;
    flex-wrap: wrap;
}

.bi-u-zahl {
    flex: 1 1 10rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.bi-u-zahl .stat-wert {
    font-size: 1.6rem;
    font-weight: 700;
}

.bi-u-zahlen.animiert .stat-wert {
    animation: bi-u-zahl-pop 0.6s ease-out both;
}

@keyframes bi-u-zahl-pop {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.bi-u-wand {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: grid;
    gap: 0.35rem;
}

.bi-u-wand-eintrag {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    flex-wrap: wrap;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.25rem;
    transition: opacity 0.4s ease;
}

.bi-u-wand-name {
    font-weight: 600;
}

.bi-u-wand-betrag {
    color: #ffd166;
    font-weight: 600;
}

.bi-u-wand-tag {
    font-size: 0.8rem;
    border: 1px solid rgba(255, 209, 102, 0.45);
    border-radius: 999px;
    padding: 0.05rem 0.5rem;
    color: #ffd166;
}

.bi-u-form {
    margin-top: 1.5rem;
}

.bi-u-intervall,
.bi-u-betraege,
.bi-u-anzeige {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0.6rem 0;
}

.bi-u-option {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
}

.bi-u-option.aktiv {
    border-color: #ffd166;
    background: rgba(255, 209, 102, 0.08);
}

.bi-u-betrag {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: inherit;
    border-radius: 0.6rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
}

.bi-u-betrag.aktiv {
    border-color: #ffd166;
    background: rgba(255, 209, 102, 0.12);
    font-weight: 600;
}

.bi-u-eigener {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0.4rem 0;
}

.bi-u-eigener input {
    width: 6rem;
}

.bi-u-anzeige label {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.bi-u-anzeige input[type="text"] {
    min-width: 12rem;
}

.bi-u-bank {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    display: grid;
    gap: 0.25rem;
}

.bi-u-profil-hinweis {
    color: #ffd166;
    font-weight: 600;
    margin-top: 0.35rem;
}

.bi-u-hinweis {
    margin-top: 1.25rem;
    text-align: center;
    opacity: 0.85;
}

.bi-u-danke {
    text-align: center;
}