/* ============================================================
   RESET & BASE
============================================================ */
:root {
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Farben */
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;

    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;

    --radius-sm: 6px;
    --radius-md: 10px;
    --shadow: 0 2px 6px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    background: #f5f7fa;
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

body > main {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 72px 0 0;
    z-index: -2;
    background:
        radial-gradient(circle at 8% 10%, rgba(16, 185, 129, 0.14), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.16), transparent 22%),
        linear-gradient(180deg, #f7fbff 0%, #eef7f5 44%, #fffdf8 100%);
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 72px 0 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.34) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.34) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.35;
    pointer-events: none;
}

/* ============================================================
   ÜBUNGEN – THEMENFARBEN FÜR UNTERÜBUNGEN
============================================================ */

body[data-exercise-topic="vat"] {
    --exercise-accent: #168f5a;
    --exercise-accent-dark: #145f43;
    --exercise-accent-text: #15563e;
    --exercise-accent-soft: #e9f8ef;
    --exercise-accent-wash: #f3fbf6;
    --exercise-accent-border: #acd9bf;
    --exercise-accent-glow: rgba(22, 143, 90, 0.14);
}

body[data-exercise-topic="skonto"] {
    --exercise-accent: #7658ad;
    --exercise-accent-dark: #543b84;
    --exercise-accent-text: #4f3a78;
    --exercise-accent-soft: #f0ebfa;
    --exercise-accent-wash: #f8f5ff;
    --exercise-accent-border: #cdc1e8;
    --exercise-accent-glow: rgba(118, 88, 173, 0.15);
}

body[data-exercise-topic="rabatte"] {
    --exercise-accent: #c77818;
    --exercise-accent-dark: #8d530d;
    --exercise-accent-text: #74480d;
    --exercise-accent-soft: #fff3df;
    --exercise-accent-wash: #fff9ef;
    --exercise-accent-border: #efd0a4;
    --exercise-accent-glow: rgba(199, 120, 24, 0.15);
}

body[data-exercise-topic="trade"] {
    --exercise-accent: #2f7a83;
    --exercise-accent-dark: #1f5660;
    --exercise-accent-text: #245b62;
    --exercise-accent-soft: #e8f6f6;
    --exercise-accent-wash: #f2fbfa;
    --exercise-accent-border: #b7dddd;
    --exercise-accent-glow: rgba(47, 122, 131, 0.14);
}

body[data-exercise-topic="inventory"] {
    --exercise-accent: #b57936;
    --exercise-accent-dark: #80531f;
    --exercise-accent-text: #704a1a;
    --exercise-accent-soft: #fff2df;
    --exercise-accent-wash: #fff9ef;
    --exercise-accent-border: #ead0aa;
    --exercise-accent-glow: rgba(181, 121, 54, 0.15);
}

body[data-exercise-topic="assets"] {
    --exercise-accent: #3d7fc1;
    --exercise-accent-dark: #255b91;
    --exercise-accent-text: #285985;
    --exercise-accent-soft: #edf5ff;
    --exercise-accent-wash: #f5f9ff;
    --exercise-accent-border: #bfd4ec;
    --exercise-accent-glow: rgba(61, 127, 193, 0.15);
}

body[data-exercise-topic="guv"] {
    --exercise-accent: #4b7f52;
    --exercise-accent-dark: #335d39;
    --exercise-accent-text: #315d38;
    --exercise-accent-soft: #eef7ef;
    --exercise-accent-wash: #f7fbf7;
    --exercise-accent-border: #c2dcc5;
    --exercise-accent-glow: rgba(75, 127, 82, 0.14);
}

body[data-exercise-topic] :is(
    .exercise-track-stage,
    .vat-stage,
    .vat-components-stage,
    .vat-booking-stage,
    .skonto-stage,
    .skonto-basics-stage,
    .asset-basics-stage,
    .asset-booking-stage,
    .asset-guided-stage,
    .linear-depr-stage,
    .asset-values-stage,
    .asset-disposal-stage,
    .asset-recap-stage,
    .asset-method-stage,
    .asset-final-stage,
    .guv-live-stage
) {
    border-color: var(--exercise-accent-border);
    background:
        radial-gradient(circle at 8% 0%, var(--exercise-accent-glow), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, var(--exercise-accent-wash) 100%);
}

body[data-exercise-topic] :is(
    .exercise-track-kicker,
    [class*="-kicker"],
    [class*="-summary-kicker"],
    [class*="-section-kicker"]
) {
    color: var(--exercise-accent-text);
}

body[data-exercise-topic] :is(
    .exercise-track-status,
    [class*="-status-chip"],
    [class*="-section-chip"],
    [class*="-question-number"],
    [class*="-example-number"],
    [class*="-case-number"],
    .exercise-step-number
) {
    border-color: var(--exercise-accent-border);
    background: var(--exercise-accent-soft);
    color: var(--exercise-accent-text);
}

body[data-exercise-topic] :is(
    [class*="-question-state"],
    [class*="-example-state"],
    [class*="-case-state"],
    .exercise-step-state
) {
    border-color: var(--exercise-accent-border);
    background: #ffffff;
    color: var(--exercise-accent-text);
}

body[data-exercise-topic] :is(
    .exercise-step-card,
    .exercise-track-highlight,
    [class*="-reference-card"],
    [class*="-question-card"],
    [class*="-example-card"],
    [class*="-summary-card"],
    [class*="-formula-card"],
    [class*="-case-card"],
    [class*="-help-card"]
) {
    border-color: var(--exercise-accent-border);
}

body[data-exercise-topic] :is(
    .exercise-step-card,
    [class*="-question-card"],
    [class*="-example-card"],
    [class*="-case-card"]
) {
    box-shadow:
        inset 5px 0 0 var(--exercise-accent),
        0 10px 24px rgba(15, 23, 42, 0.035);
}

body[data-exercise-topic] :is(
    [class*="-reference-card"],
    [class*="-formula-card"],
    [class*="-help-card"],
    .exercise-track-highlight
) {
    background:
        radial-gradient(circle at top right, var(--exercise-accent-glow), transparent 32%),
        linear-gradient(180deg, var(--exercise-accent-wash) 0%, #ffffff 100%);
}

body[data-exercise-topic] :is(
    .exercise-step-btn,
    [class*="-check-btn"],
    [class*="-primary-btn"]
) {
    background: var(--exercise-accent-dark);
    border-color: var(--exercise-accent-dark);
    color: #ffffff;
}

body[data-exercise-topic] :is(
    [class*="-back-link"],
    [class*="-back"]
) {
    color: var(--exercise-accent-dark);
}

.site-footer {
    margin-top: auto;
    padding: 18px 24px 12px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f1f5f9 100%);
    border-top: 1px solid #d8e2eb;
}

.site-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) minmax(0, 2fr);
    gap: 20px;
    align-items: start;
    min-width: 0;
}

.site-footer-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5f7386;
}

.site-footer-copy {
    margin: 0;
    max-width: 42ch;
    font-size: 14px;
    line-height: 1.62;
    color: #5b6f80;
}

.site-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.site-footer-inner > *,
.site-footer-links > * {
    min-width: 0;
}

.site-footer-column h2 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #17304a;
}

.site-footer-column a {
    display: block;
    margin: 6px 0 0;
    color: #4e6579;
    text-decoration: none;
    font-size: 14px;
}

.site-footer-column a:hover,
.site-footer-bottom a:hover {
    color: #17304a;
    text-decoration: underline;
}

.site-footer-bottom {
    max-width: 1240px;
    margin: 16px auto 0;
    padding-top: 12px;
    border-top: 1px solid #dde6ee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #617587;
}

.site-footer-bottom a {
    color: #617587;
    text-decoration: none;
}

.cookie-consent {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 20000;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid #d9e3eb;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
}

.cookie-consent-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5f7386;
}

.cookie-consent h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #17304a;
}

.cookie-consent p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #55697b;
}

.cookie-consent-legal {
    margin-bottom: 0;
}

.cookie-consent-legal a {
    color: #1c5b87;
    font-weight: 700;
    text-decoration: none;
}

.cookie-consent-legal a:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #ccd9e4;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}

.cookie-consent-btn-secondary {
    background: #f8fbfd;
    color: #476073;
}

.cookie-consent-btn-primary {
    background: linear-gradient(180deg, #2d8ad4 0%, #236ea9 100%);
    border-color: #236ea9;
    color: #fff;
}

.beta-info-stack {
    position: fixed;
    top: 106px;
    left: 18px;
    z-index: 15000;
    width: min(300px, calc(100vw - 36px));
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.beta-info-box {
    border-radius: 18px;
    border: 1px solid #d8e2ea;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.beta-info-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
}

.beta-info-title {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #446174;
}

.beta-info-icon {
    color: #6a7f92;
    transition: transform 0.18s ease;
}

.beta-info-box.is-open .beta-info-icon {
    transform: rotate(180deg);
}

.beta-info-body {
    padding: 0 14px 14px;
    border-top: 1px solid #e4ebf2;
}

.beta-info-body p {
    margin: 10px 0 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #576b7d;
}

.gamification-panel {
    position: fixed;
    top: 106px;
    right: 18px;
    z-index: 15000;
    width: min(320px, calc(100vw - 36px));
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #d8e2ea;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.gamification-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gamification-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e1e8ef;
    object-fit: cover;
    background: #fff;
}

.gamification-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #607384;
}

.gamification-head-copy h2 {
    margin: 0;
    font-size: 1.08rem;
    color: #17304a;
}

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

.gamification-stat {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e0e8ef;
    background: #f8fbfd;
}

.gamification-stat-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a7f92;
}

.gamification-stat-value {
    display: block;
    margin-top: 4px;
    font-size: 1.02rem;
    font-weight: 800;
    color: #17304a;
}

.gamification-progress {
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e0e8ef;
    background: #f8fbfd;
}

.gamification-progress-topline,
.gamification-section-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #587082;
}

.gamification-progress-bar {
    width: 100%;
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.22);
}

.gamification-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14b8a6 0%, #10b981 60%, #f59e0b 100%);
    transition: width 0.35s ease;
}

.gamification-badges {
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e0e8ef;
    background: #f8fbfd;
}

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

.gamification-badge-slot {
    display: grid;
    place-items: center;
    min-height: 46px;
    border-radius: 14px;
    border: 1px dashed #cad8e4;
    background: #ffffff;
    color: #bac7d3;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    overflow: hidden;
}

.gamification-badge-slot.is-earned {
    border-style: solid;
    border-color: #c6dcce;
    background: #eef9f1;
    color: #2d8b57;
}

.gamification-badge-image {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.gamification-badge-placeholder {
    color: #bac7d3;
    font-size: 1rem;
    font-weight: 800;
}

.gamification-badge-slot.is-earned .gamification-badge-placeholder {
    color: #2d8b57;
}

.gamification-muted {
    margin: 10px 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #6b7f91;
}

.gamification-profile-link {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid #ccdae5;
    background: #f8fbfd;
    text-decoration: none;
    color: #214661;
    font-weight: 800;
}

.gamification-profile-link:hover {
    background: #eef5fb;
}

.feedback-cta-link {
    position: fixed;
    z-index: 14990;
    width: min(320px, calc(100vw - 36px));
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid rgba(54, 129, 198, 0.34);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 250, 255, 0.98) 100%);
    color: #214661;
    font-weight: 800;
    text-decoration: none;
    box-shadow: none;
    overflow: hidden;
}

.feedback-cta-link::before {
    content: none;
}

.feedback-cta-link:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(237, 247, 255, 0.99) 100%);
    box-shadow: none;
}

@keyframes feedback-cta-shine {
    0% { transform: translateX(0); }
    48% { transform: translateX(0); }
    68% { transform: translateX(370%); }
    100% { transform: translateX(370%); }
}

body.side-widgets-inline:not(.dashboard-body) .beta-info-stack,
body.side-widgets-inline:not(.dashboard-body) .gamification-panel {
    position: static;
}

body.side-widgets-inline:not(.dashboard-body) .feedback-cta-link {
    position: relative;
    top: auto !important;
    right: auto !important;
}

body.side-widgets-inline:not(.dashboard-body) .beta-info-stack {
    width: min(680px, calc(100vw - 32px));
    margin: 22px auto 0;
}

body.side-widgets-inline:not(.dashboard-body) .gamification-panel,
body.side-widgets-inline:not(.dashboard-body) .feedback-cta-link {
    width: min(680px, calc(100vw - 32px));
    margin: 12px auto 0;
}

body.side-widgets-inline:not(.dashboard-body) .feedback-cta-link {
    display: flex;
}

.badge-unlock-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10030;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(360px, calc(100vw - 24px));
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #d2e4d9;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.badge-unlock-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.badge-unlock-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid #c8dfd0;
    background: linear-gradient(180deg, #effaf2 0%, #e3f4e8 100%);
    color: #2d8b57;
    font-size: 0.94rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    flex: 0 0 48px;
    overflow: hidden;
}

.badge-unlock-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.badge-unlock-copy {
    min-width: 0;
}

.badge-unlock-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5d7889;
}

.badge-unlock-copy h3 {
    margin: 4px 0 4px;
    font-size: 1rem;
    color: #17304a;
}

.badge-unlock-copy p:last-child {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.45;
    color: #648093;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3 {
    font-weight: 700;
    color: var(--gray-900);
}

h1 {
    font-size: 36px;
    margin-bottom: 24px;
    text-align: center;
}
h2 {
    font-size: 26px;
    margin: 28px 0 16px;
}
h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 14px;
}

/* ============================================================
   CONTAINER LAYOUT
============================================================ */
.page-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
    position: relative;
}

/* ============================================================
   CARD (universell)
============================================================ */
.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-block;
    background: var(--blue-600);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: background .2s ease;
}

.btn:hover {
    background: var(--blue-700);
}

/* disabled */
.btn.disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
}

   RESPONSIVE
============================================================ */
@media (max-width: 600px) {
    body { font-size: 16px; }
    h1   { font-size: 28px; }

    .site-footer {
        padding: 16px 16px 12px;
    }

    .site-footer-inner,
    .site-footer-links {
        grid-template-columns: 1fr;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 18px 16px;
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-consent-btn {
        flex: 1;
    }

    .beta-info-stack {
        top: 142px;
        left: 12px;
        width: min(320px, calc(100vw - 24px));
    }

    .gamification-panel {
        top: 142px;
        right: 12px;
        width: min(320px, calc(100vw - 24px));
    }

    .feedback-cta-link {
        width: min(320px, calc(100vw - 24px));
    }
}

#storyCalc {
    display: block !important;
    height: auto !important;
    min-height: 420px !important;
    width: 100% !important;
}

#storyCalcFrame {
    display: block !important;
    height: 400px !important;
    width: 100% !important;
    border: none !important;
}

.welcome-card {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.welcome-card h2 {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 800;
    color: #222;
}

.welcome-card p {
    margin: 6px 0;
    font-size: 15px;
    color: #444;
}

.welcome-card .subtitle {
    font-size: 14px;
    color: #3b82f6;
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 50px;
}

.btn.danger {
    background: #ef4444;
    color: white;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn.danger:hover {
    background: #dc2626;
}

.case-image {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #e5e7eb; /* fallback */
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   Dashboard – Bekannte Bugs (Glass Card)
============================================================ */

.known-bugs {
    margin: 56px auto 0 auto;
    padding: 24px 26px;

    max-width: 900px;                /* ✅ gleiche Größenordnung wie Buttons */
    width: 100%;

    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    text-align: left;
}

/* Titel */
.known-bugs h2 {
    margin: 0 0 10px 0;
    font-size: 27px;
    font-weight: 700;
}

/* Einleitung */
.bug-hint {
    font-size: 19px;
    color: #444;
    margin-bottom: 14px;
}

/* Bugliste */
.bug-list {
    padding-left: 18px;
    margin: 0 0 14px 0;
}

.bug-list li {
    font-size: 14px;
    margin-bottom: 9px;
    line-height: 1.45;
}

/* dezenter Footer */
.bug-footer {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.lesson-note-card {
    position: relative;
    overflow: hidden;
}

.lesson-note-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.lesson-note-card h2,
.lesson-note-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.96rem !important;
    letter-spacing: 0.01em;
}

.lesson-note-card h2::before,
.lesson-note-card h3::before {
    content: "";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 17px 17px;
    flex: 0 0 24px;
}

.lesson-note-card p,
.lesson-note-card li {
    font-size: 0.95rem !important;
    line-height: 1.58 !important;
}

.lesson-note-card.is-merksatz {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%) !important;
    border-color: #d7e5f6 !important;
}

.lesson-note-card.is-merksatz h2::before,
.lesson-note-card.is-merksatz h3::before {
    background-color: #d9e8fb;
    background-image: url("/img/finanzicons/flaticon-4523532.png");
}

.lesson-note-card.is-focus {
    background: linear-gradient(180deg, #fffaf2 0%, #fff3df 100%) !important;
    border-color: #f0dfba !important;
}

.lesson-note-card.is-focus h2::before,
.lesson-note-card.is-focus h3::before {
    background-color: #f6e4bd;
    background-image: url("/img/finanzicons/flaticon-2696943.png");
}

.lesson-note-card.is-bridge {
    background: linear-gradient(180deg, #f7fbf8 0%, #edf7f0 100%) !important;
    border-color: #d3e8d9 !important;
}

.lesson-note-card.is-bridge h2::before,
.lesson-note-card.is-bridge h3::before {
    background-color: #d8eadc;
    background-image: url("/img/finanzicons/flaticon-2696934.png");
}
