:root {
    color: #1c1915;
    background: #f3efe6;
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
    /* Ziffern in Versalhöhe: Georgia setzt sonst Mediävalziffern, die 0 liest sich als „o“ (Abnahme bruch-idee D2). */
    font-variant-numeric: lining-nums;
}
/* Formularfelder erben die Einstellung nicht (Schrift des Browsers für Steuerelemente). */
input, select, textarea, button { font-variant-numeric: lining-nums; }
body { margin: 0; }
main {
    max-width: 26rem;
    margin: 0 auto;
    padding: 1.75rem 1rem 4rem;
}
h1, h2 { font-weight: 500; letter-spacing: -0.02em; text-align: center; }
h2 {
    font-size: 1.35rem;
    margin: 1.6rem 0 0.2rem;
    text-align: center;
}
p { line-height: 1.55; }
a { color: #1f4d3a; }
.path-name { margin: 0.2rem 0 0; font-family: Georgia, serif; font-size: 1.35rem; }
.mark {
    margin: 0 0 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-family: "Segoe UI", sans-serif;
    color: #6d6458;
}
.level {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin: 0.15rem 0 0.35rem;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d6458;
}
.level i, .level-compact i {
    display: inline-block;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: #e2d9cb;
    font-style: normal;
}
.level i.on, .level-compact i.on { background: #1f4d3a; }
.level-compact {
    display: flex;
    justify-content: center;
    gap: 0.22rem;
    width: fit-content;
    margin: 0.22rem auto 0;
    padding: 0.12rem 0.32rem 0.14rem;
    border-radius: 999px;
    background: #f3efe6;
}
.warum {
    margin: 0.15rem auto 0.2rem;
    max-width: 22rem;
    text-align: center;
    font-family: Georgia, "Iowan Old Style", serif;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #3d3832;
}
.voraussetzung {
    margin: 0.15rem 0 0.85rem;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #3d3832;
}
.voraussetzung.is-ready { color: #1f4d3a; }
.hilft {
    margin: -0.45rem 0 0.85rem;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #6d6458;
}
.hilft.is-ready { color: #1f4d3a; }
.gap {
    margin: 0.7rem 0 0;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #3d3832;
}
.gap a { font-weight: 600; }
.brauchst {
    margin: 0.15rem auto 0.9rem;
    max-width: 20rem;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #3d3832;
}
.kicker {
    font-family: "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d6458;
    text-align: center;
    margin: 0 0 0.8rem;
}
.bereich-head { display: flex; flex-direction: column; align-items: center; }
.bereich-head h1 { margin: 0 0 0.35rem; }
.bereich-switch { position: relative; margin: 0 0 1.2rem; }
.bereich-toggle {
    min-height: 2.75rem;
    border: 1px solid #c4b8a4;
    border-radius: 999px;
    background: #fffdf8;
    color: #1f4d3a;
    font: inherit;
    font-family: "Segoe UI", sans-serif;
    padding: 0 1rem;
    cursor: pointer;
}
.bereich-pop {
    display: none;
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    min-width: 17rem;
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: 0.3rem;
    list-style: none;
    background: #fffdf8;
    border: 1px solid #e4ddd0;
    border-radius: 12px;
    text-align: left;
}
.bereich-switch.is-open .bereich-pop { display: block; }
@media (hover: hover) and (pointer: fine) {
    .bereich-switch:hover .bereich-pop { display: block; }
}
.bereich-pop a {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 2.75rem;
    align-items: center;
    padding: 0.35rem 0.7rem;
    color: #1f4d3a;
    text-decoration: none;
    border-radius: 8px;
    font-family: "Segoe UI", sans-serif;
}
.bereich-pop a[aria-current="page"] { background: #e4efe8; }
.bereich-nav { display: flex; justify-content: center; gap: 0.6rem; margin: 1.4rem 0 0.4rem; }
.bereich-nav .button {
    flex: 1 1 0;
    max-width: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 2.75rem;
    line-height: 1.2;
    padding: 0.5rem 0.6rem;
}
.site-nav {
    display: flex;
    justify-content: center;
    gap: 1.1rem;
    margin: 0 0 0.8rem;
    font-family: "Segoe UI", sans-serif;
}
.site-nav a {
    color: #6d6458;
    text-decoration: none;
    padding: 0.35rem 0.1rem;
}
.site-nav a.is-on {
    color: #1f4d3a;
    font-weight: 650;
    border-bottom: 2px solid #1f4d3a;
}
.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.4rem 0 1rem;
    font-family: "Segoe UI", sans-serif;
}
.profile-tabs a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.profile-tabs a.is-on {
    font-weight: 650;
    text-decoration: none;
}
.profile-mark {
    display: none;
}
@media (min-width: 960px) {
    .profile-mark {
        display: block;
        position: fixed;
        top: 0.8rem;
        right: 1.25rem;
        z-index: 7;
        font-family: "Segoe UI", sans-serif;
    }
    .profile-mark summary {
        cursor: pointer;
        list-style: none;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.8rem;
        border: 1px solid #e4ddd0;
        border-radius: 999px;
        background: #fffdf8;
        color: #1f4d3a;
    }
    .profile-mark summary::-webkit-details-marker { display: none; }
    .profile-mark a {
        display: block;
        padding: 0.45rem 0.8rem;
        background: #fffdf8;
        min-height: 44px;
    }
}
.stand-calc { margin: 0.6rem auto 0; max-width: 28rem; text-align: center; scroll-margin-top: 1rem; }
.stand-calc summary { cursor: pointer; color: #1f4d3a; font-family: "Segoe UI", sans-serif; }
.stand-calc p { margin: 0.7rem 0; }
.phase-mark {
    font-family: "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1f4d3a;
    text-align: center;
    margin: 0 0 0.55rem;
}
.stand-links li { margin: 0.45rem 0; }
.stand-links a { color: #1f4d3a; }
.stand-block { margin: 1.4rem auto 0; max-width: 34rem; text-align: left; }
.stand-block h2 { font-size: 1.15rem; margin: 0 0 0.35rem; text-align: center; }
.stand-list { padding-left: 1.1rem; }
.stand-block .slip h3 { font-size: 1rem; margin: 0.2rem 0; }
.sticky-action {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    background: #f7f3ea;
    border-top: 1px solid #e4ddd0;
}
.sticky-action .primary-action { margin: 0; }
.sticky-action .button-primary { display: block; text-align: center; }
body:has(.sticky-action) main { padding-bottom: 5.5rem; }
@media (min-width: 960px) {
    .sticky-action {
        left: auto;
        right: 1.25rem;
        bottom: auto;
        top: 5.5rem;
        width: 16rem;
        border: 1px solid #e4ddd0;
        border-radius: 1rem;
    }
    body:has(.sticky-action) main { padding-bottom: 2rem; }
}
@media (max-width: 959px) {
    .site-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 6;
        margin: 0;
        padding: 0.15rem 0.4rem calc(0.15rem + env(safe-area-inset-bottom));
        background: #f7f3ea;
        border-top: 1px solid #e4ddd0;
        justify-content: space-around;
    }
    .site-nav a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    body:has(.site-nav) main {
        padding-bottom: calc(4.4rem + env(safe-area-inset-bottom));
    }
    .sticky-action {
        bottom: calc(3.4rem + env(safe-area-inset-bottom));
    }
    body:has(.site-nav):has(.sticky-action) main {
        padding-bottom: calc(8.6rem + env(safe-area-inset-bottom));
    }
}
.hero { text-align: center; }
.medal {
    position: relative;
    width: 7.5rem;
    height: 7.5rem;
    margin: 0 auto;
}
.medal .ring { width: 100%; height: 100%; display: block; }
.medal .check { stroke: transparent; }
.medal-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", sans-serif;
    pointer-events: none;
}
.medal-label strong {
    font-size: 1.8rem;
    font-weight: 650;
    line-height: 1;
}
.medal-label span {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #6d6458;
}
.medal-skill { width: 6.25rem; height: 6.25rem; margin-bottom: 0.35rem; }
.medal-skill .medal-label strong { font-size: 1.45rem; }
.progress-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin: 1rem 0 0.4rem;
}
.progress-state .stand-line { margin: 0; flex: 1 1 12rem; }
.term {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    border-bottom: 1px dotted #1f4d3a;
    padding: 0;
    cursor: pointer;
}
.term[aria-expanded="true"] { border-bottom-style: solid; }
.term-field {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0.45rem 0 0.7rem;
    padding: 0.6rem 0.75rem;
    background: #f3efe6;
    border-radius: 0.45rem;
}
.term-field[hidden] { display: none !important; }
.hero-caption {
    margin: 0.35rem 0 0.15rem;
    font-family: "Segoe UI", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #6d6458;
}
.heute { margin: 0.2rem 0 1rem; }
.heute ol { margin: 0.3rem 0 0.4rem; padding-left: 1.2rem; }
.heute li { margin: 0.28rem 0; }
.achievements { margin: 0.2rem 0 0; text-align: center; font-family: "Segoe UI", sans-serif; color: #6d6458; font-size: 0.92rem; }
.etappe { margin: 1.4rem 0 0.15rem; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: #6d6458; text-align: center; }
.features { position: relative; display: flex; justify-content: flex-end; margin: 0 0 0.2rem; }
.features summary { cursor: pointer; font-family: "Segoe UI", sans-serif; color: #1f4d3a; }
.feature-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 30;
    width: 14.5rem;
    padding: 0.55rem;
    background: #fffdf8;
    border: 1px solid #e4dccb;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(28, 25, 21, 0.14);
}
.features[open] .feature-panel { display: flex; flex-direction: column; gap: 0.35rem; }
.more-quiet { margin: 1.4rem 0 2rem; text-align: center; }
.more-quiet summary { cursor: pointer; font-family: "Segoe UI", sans-serif; color: #6d6458; }
.more-quiet .feature-panel {
    position: static;
    width: auto;
    margin: 0.4rem auto 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.more-quiet .feature-panel a {
    background: transparent;
    color: #1f4d3a;
    padding: 0.35rem 0.2rem;
}
.feature-panel a {
    display: block;
    text-align: center;
    text-decoration: none;
    background: #1f4d3a;
    color: #f7f3ea;
    border-radius: 999px;
    padding: 0.55rem 0.6rem;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.92rem;
}
.stage h2 .summary-count { font-size: 0.85rem; color: #6d6458; font-family: "Segoe UI", sans-serif; }
.stage h2 .stage-mark {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    margin-left: 0.4rem;
    border-radius: 50%;
    vertical-align: 0.05rem;
}
.stage.metal-1 h2 .stage-mark { background: #8d5a2b; }
.stage.metal-2 h2 .stage-mark { background: #f7f4ee; box-shadow: inset 0 0 0 2px #3c3935; }
.stage.metal-3 h2 .stage-mark { background: #c6a15a; }
.stage.metal-4 h2 .stage-mark { background: #c6a15a; box-shadow: inset 0 0 0 3px #f7f3ea, 0 0 0 2px #c6a15a; }
.stand, .stand-detail {
    margin: 0.2rem auto 0.35rem;
    max-width: 24rem;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
}
.stand-detail { font-family: "Segoe UI", sans-serif; font-size: 0.92rem; color: #6d6458; }
.readiness {
    margin: 0 0 0.9rem;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    color: #1f4d3a;
}
.hero-done {
    font-family: "Segoe UI", sans-serif;
    color: #1d5c38;
}
.ring-track, .ring-value { fill: none; stroke-width: 3.4; }
.ring-track { stroke: #e2d9cb; }
.ring-value {
    stroke: #1f4d3a;
    stroke-linecap: round;
    stroke-dashoffset: 100;
    transform-box: fill-box;
    transform-origin: center;
    transform: rotate(-90deg);
}
.ring.is-animated .ring-value { animation: ring-fill 0.85s ease forwards; }
@keyframes ring-fill { to { stroke-dashoffset: var(--goal); } }
.ring-offen .ring-value { stroke: transparent; }
.ring-angefangen .ring-track { stroke: #e7d3ae; }
.ring-angefangen .ring-value { stroke: #b56a12; }
.ring-sitzt .ring-track { fill: none; stroke: #1f4d3a; }
.ring-sitzt .ring-value { stroke: #1f4d3a; }
.check { fill: none; stroke: transparent; }
.ring-sitzt { animation: ring-pop 0.35s ease; }
@keyframes ring-pop { from { transform: scale(0.86); } to { transform: scale(1); } }
.guest-note {
    margin: 0.2rem auto 1rem;
    max-width: 18rem;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.95rem;
    color: #3d3832;
}
.legend {
    margin: 0.2rem auto 1.1rem;
    max-width: 18rem;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.88rem;
    color: #5c564c;
}
.card {
    background: #fffdf8;
    border: 1px solid #e2d9cb;
    border-radius: 14px;
    padding: 0.2rem 1.15rem 0.4rem;
}
.card h1 { font-size: 1.55rem; text-align: center; }
.card h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 1.15rem 0 0.35rem;
    color: #1c1915;
}
.hint ul { margin: 0.35rem 0 0.15rem; padding-left: 1.15rem; }
.stage-done { margin-top: 0.8rem; }
.stage-done summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    list-style: none;
    cursor: pointer;
    padding: 0.7rem 0.2rem;
    font-family: "Segoe UI", sans-serif;
}
.stage-done summary::-webkit-details-marker { display: none; }
.summary-check {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #1f4d3a;
    flex: none;
    position: relative;
}
.summary-check::after {
    content: "";
    position: absolute;
    left: 0.38rem;
    top: 0.28rem;
    width: 0.32rem;
    height: 0.58rem;
    border: solid #f7f3ea;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.summary-title { font-weight: 650; }
.summary-count { margin-left: auto; color: #6d6458; font-size: 0.85rem; }
.trail {
    position: relative;
    width: 280px;
    margin: 0.4rem auto 0.6rem;
}
.exam-station { margin-top: 1.2rem; }
.trail-line {
    position: absolute;
    inset: 0;
    overflow: visible;
    z-index: 0;
}
.trail-line path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bank { stroke: #e6d9c6; stroke-width: 22; }
.track { stroke: #c6b294; stroke-width: 8; }
.terrain-brueche .bank { stroke: #d5e6ef; stroke-width: 18; }
.terrain-brueche .track { stroke: #8eb0c4; stroke-width: 3; }
.terrain-prozent .bank { stroke: #ddd4c6; stroke-width: 16; }
.terrain-prozent .track { stroke: #b7a48a; stroke-width: 5; }
.terrain-potenz .bank, .terrain-potenz .track { stroke: transparent; }
.terrain-potenz .rail { stroke: #8d7356; stroke-width: 4; }
.terrain-potenz .rung { stroke: #c4a882; stroke-width: 3; }
.terrain-linear .bank { stroke: #ddd2c2; stroke-width: 18; }
.terrain-linear .track { stroke: #1f4d3a; stroke-width: 3; opacity: 0.45; }
.terrain-quadrat .bank { stroke: #e4d8c8; stroke-width: 16; }
.terrain-quadrat .track { stroke: #1f4d3a; stroke-width: 2.5; opacity: 0.55; }
.terrain-betrag .bank { stroke: #eadfd2; stroke-width: 16; }
.terrain-betrag .track { stroke: #1f4d3a; stroke-width: 3; }
.terrain-betrag .axis { stroke: #b56a12; stroke-width: 1.4; stroke-dasharray: 4 4; }
.terrain-summe .bank { stroke: #e7d3b4; stroke-width: 14; }
.terrain-summe .track { stroke: #1f4d3a; stroke-width: 2.6; opacity: 0.7; }
.terrain-wurzel .bank { stroke: #e4d5c0; stroke-width: 14; }
.terrain-wurzel .track { stroke: #1f4d3a; stroke-width: 2.6; opacity: 0.7; }
.terrain-ableiten .bank { stroke: #e6d7c4; stroke-width: 14; }
.terrain-ableiten .track { stroke: #1f4d3a; stroke-width: 2.6; opacity: 0.7; }
.terrain-zwei .bank { stroke: #e6d7c4; stroke-width: 14; }
.terrain-zwei .track { stroke: #1f4d3a; stroke-width: 2.6; opacity: 0.7; }
.terrain-matrizen .bank, .terrain-inputoutput .bank, .terrain-optimierung .bank,
.terrain-zweiphasen .bank, .terrain-sonder .bank, .terrain-ohne .bank,
.terrain-determinante .bank, .terrain-vektoren .bank, .terrain-fnverhalten .bank, .terrain-mengen .bank { stroke: #e6d7c4; stroke-width: 14; }
.terrain-matrizen .track, .terrain-inputoutput .track, .terrain-optimierung .track,
.terrain-zweiphasen .track, .terrain-sonder .track, .terrain-ohne .track,
.terrain-determinante .track, .terrain-vektoren .track, .terrain-fnverhalten .track, .terrain-mengen .track { stroke: #1f4d3a; stroke-width: 2.6; opacity: 0.7; }
.terrain-matrizen .stop, .terrain-inputoutput .stop, .terrain-zweiphasen .stop, .terrain-sonder .stop { width: 6.7rem; }
/* Zeichnungen hinter dem Weg, die den Stoff der Sektion andeuten */
.terrain-optimierung .region { fill: #cfe3d6; opacity: 0.55; stroke: none; }
.terrain-optimierung .axis, .terrain-funktionen .axis { stroke: #b56a12; stroke-width: 1.4; stroke-dasharray: 4 4; }
.terrain-ohne .twin { stroke: #1f4d3a; stroke-width: 2.4; opacity: 0.4; }
.terrain-oekonomie .extra { stroke: #b56a12; stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0.65; }
.terrain-ableiten .axis { stroke: #b56a12; stroke-width: 1.4; stroke-dasharray: 4 4; }
.terrain-matrizen .bracket { stroke: #1f4d3a; stroke-width: 2.4; opacity: 0.5; }
.terrain-determinante .region { fill: #cfe3d6; opacity: 0.55; stroke: none; }
.terrain-vektoren .extra { stroke: #b56a12; stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0.65; }
.terrain-vektoren .axis, .terrain-fnverhalten .axis { stroke: #b56a12; stroke-width: 1.4; stroke-dasharray: 4 4; }
.terrain-fnverhalten .extra { stroke: #1f4d3a; stroke-width: 1.4; stroke-dasharray: 3 5; opacity: 0.5; }
.stop {
    position: absolute;
    width: 8.4rem;
    transform: translate(-50%, -2.2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #1c1915;
    z-index: 1;
}
button.stop,
button.stop-choice {
    border: 0;
    background: transparent;
    font: inherit;
    padding: 0;
    cursor: pointer;
}
button.stop-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: inherit;
}
button.stop-part {
    border: 0;
    width: 100%;
    margin-top: 0.05rem;
    font: inherit;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.72rem;
    line-height: 1.2;
    color: #3d3832;
    text-align: center;
    cursor: pointer;
}
button.stop:focus-visible,
.idea-path-row:focus-visible {
    outline: 2px solid #1f4d3a;
    outline-offset: 3px;
    border-radius: 12px;
}
.idea-path {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.35rem 0;
    background: #f3efe6;
}
.idea-path[hidden] { display: none; }
.idea-path { border-top: 2px solid #1f4d3a; padding-top: 0.5rem; }
.idea-path::before {
    content: "";
    position: absolute;
    top: -8px;
    left: var(--pointer-x, 50%);
    width: 12px;
    height: 12px;
    background: #f3efe6;
    border: solid #1f4d3a;
    border-width: 2px 0 0 2px;
    transform: translateX(-50%) rotate(45deg);
}
.idea-path-title {
    margin: 0 0.1rem;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1f4d3a;
}
.stop.is-open .stone { box-shadow: 0 0 0 3px #1f4d3a; }
.stop.is-open .stop-label { font-weight: 600; }
.idea-subpath {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.idea-subpath[hidden] { display: none; }
.idea-path-row.is-later { color: #8a8175; }
.idea-lock-mark { width: 15px; height: 15px; flex: none; }
.idea-lock-mark[hidden] { display: none !important; }
.idea-path-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e4ddd0;
    border-radius: 12px;
    background: #fffdf8;
    color: #1c1915;
    text-decoration: none;
    font-family: "Segoe UI", sans-serif;
    text-align: left;
    cursor: pointer;
}
.idea-path-copy { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.idea-path-copy strong { font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
.idea-path-copy small { color: #6d6458; font-size: 0.78rem; line-height: 1.3; }
.idea-path-row.is-next { border-color: #1f4d3a; background: #e7f0ea; }
.idea-path-row.is-locked { color: #6d6458; cursor: default; }
.stone {
    display: block;
    position: relative;
    width: 4.55rem;
    height: 4.55rem;
    border-radius: 50%;
    background: #f7f3ea;
    box-shadow: 0 1px 0 #e4d9c8;
}
.stop .ring { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; }
.glyph-svg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3.15rem;
    height: 3.15rem;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.glyph-math {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    color: #1f4d3a;
    font-size: 1.22rem;
    line-height: 1;
    transform: translate(-50%, -54%);
    visibility: hidden;
}
.glyph-math:has(mjx-container) { visibility: visible; }
.glyph-math mjx-container { margin: 0; }
.glyph-tight { font-size: 0.8rem; }
.walker-svg {
    position: absolute;
    left: 50%;
    top: -1.55rem;
    width: 1.7rem;
    height: 2.15rem;
    transform: translateX(-50%);
    z-index: 2;
}
.stop.is-next .stone {
    transform: scale(1.1);
    box-shadow: 0 8px 0 rgba(31, 77, 58, 0.16);
}
.stop.is-ahead .glyph-svg,
.stop.is-ahead .glyph-math { opacity: 0.45; }
.stop.is-ahead .stop-label { color: #b3a898; }
.stop.is-ahead .ring-track { stroke: #efe6d8; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.stop .medal {
    position: absolute;
    top: -0.15rem;
    left: -0.1rem;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    z-index: 4;
    box-shadow: 0 1px 0 rgba(28, 25, 21, 0.18);
}
.stop.metal-1 .medal { background: #8d5a2b; }
.stop.metal-2 .medal { background: #f7f4ee; box-shadow: inset 0 0 0 2px #3c3935, 0 1px 0 rgba(28, 25, 21, 0.18); }
.stop.metal-3 .medal { background: #c6a15a; }
.stop.metal-4 .medal { background: #c6a15a; box-shadow: inset 0 0 0 3px #f7f3ea, 0 0 0 2px #c6a15a; }
.stop.state-sitzt .stone::after {
    content: "";
    position: absolute;
    right: -0.05rem;
    bottom: 0.05rem;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: #1f4d3a;
    z-index: 2;
}
.stop.state-sitzt .stone::before {
    content: "";
    position: absolute;
    right: 0.28rem;
    bottom: 0.32rem;
    width: 0.22rem;
    height: 0.4rem;
    border: solid #f7f3ea;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    z-index: 3;
}
.summit {
    margin: 0.4rem auto 0;
    text-align: center;
    opacity: 0.45;
}
.summit.is-reached { opacity: 1; }
.summit-svg { width: 7.5rem; height: 3.4rem; }
.summit p {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #6d6458;
}
.summit .walker-svg { position: relative; left: auto; top: auto; transform: none; display: block; margin: 0 auto -0.4rem; }
.stop-label {
    position: relative;
    z-index: 1;
    margin-top: 0.3rem;
    padding: 0 0.2rem;
    background: #f3efe6;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.78rem;
    line-height: 1.25;
    color: #3d3832;
}
.stop-stone { text-decoration: none; color: inherit; }
a.stop-label { display: block; text-decoration: none; color: inherit; }
.stop-part.is-later { color: #8a8175; }
.stop-part {
    display: block;
    position: relative;
    z-index: 1;
    margin-top: 0.15rem;
    padding: 0 0.2rem;
    background: #f3efe6;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.72rem;
    line-height: 1.25;
    text-decoration: none;
}
.stop-part.is-open { font-weight: 600; }
.terrain-betrag .label-right .stop-label { transform: translateX(2.4rem); }
.terrain-betrag .label-left .stop-label { transform: translateX(-2.4rem); }
.button {
    display: inline-block;
    background: #1f4d3a;
    color: #f7f3ea;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-family: "Segoe UI", sans-serif;
}
.why-next { margin: 0.45rem 0 0.2rem; text-align: center; font-family: "Segoe UI", sans-serif; }
.button-next,
.button-primary {
    display: block;
    border-radius: 999px;
    padding: 0.95rem 1.2rem;
    font-size: 1.02rem;
    text-align: center;
}
.button-secondary {
    display: inline-block;
    background: transparent;
    color: #1f4d3a;
    border: 1px solid #1f4d3a;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    text-decoration: none;
    font-family: "Segoe UI", sans-serif;
}
a.button-text {
    color: #1f4d3a;
    background: none;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    font-family: "Segoe UI", sans-serif;
}
.primary-action { margin: 0.35rem 0 0.15rem; text-align: center; }
.hero .primary-action { margin: 0.7rem 0; }
.hero .button-primary { width: 100%; box-sizing: border-box; }
.button-locked {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    background: #e4ddd0;
    color: #8a8175;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    font-size: 1.02rem;
    line-height: 1.3;
    cursor: default;
}
.button-locked small {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.75rem;
    line-height: 1.35;
    font-weight: 400;
    color: #8a8175;
}
.deepen-done {
    margin: 0.7rem 0;
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    background: #1f4d3a;
    color: #f7f3ea;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
}
.stop, .checkpoint { scroll-margin-top: 4.5rem; scroll-margin-bottom: 5rem; }
.script-excerpt {
    margin: 0.4rem auto 1rem;
    max-width: 32rem;
    padding: 0.75rem 0.95rem 0.35rem;
    background: #fffdf8;
    border-left: 3px solid #1f4d3a;
    text-align: left;
}
.script-excerpt p { margin: 0.35rem 0; }
.diagnose-start { margin: 0.7rem 0 0.35rem; }
.next-quiet { margin: 0.85rem 0 0.15rem; font-family: "Segoe UI", sans-serif; font-size: 0.98rem; }
.next-quiet a { color: #1f4d3a; }
.block-card {
    margin: 0.35rem auto 0.7rem;
    max-width: 36rem;
    text-align: left;
}
.block-card summary {
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.35;
}
.block-card summary .summary-count,
.stage h2 .summary-count {
    display: block;
    margin-top: 0.15rem;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.85rem;
    color: #6d6458;
    font-weight: 400;
}
@media (min-width: 720px) {
    .block-card summary .summary-count,
    .stage h2 .summary-count { display: inline; margin-top: 0; }
}
.time-line { margin: 0.9rem 0 0.2rem; font-family: "Segoe UI", sans-serif; color: #6d6458; }
.time-line a { color: #1f4d3a; margin: 0 0.15rem; }
.time-row a {
    display: block;
    text-align: center;
    text-decoration: none;
    background: #fffdf8;
    color: #1f4d3a;
    border-radius: 999px;
    padding: 0.7rem 0.8rem;
    min-height: 2.75rem;
    font-family: "Segoe UI", sans-serif;
}
.layer-chip { margin: 0.2rem auto 0.8rem; max-width: 28rem; text-align: center; }
.idea-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.15rem 0.75rem;
    min-height: 1.3em;
    margin: 0.15rem auto 0.2rem;
    max-width: 34rem;
    color: #6d6458;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.82rem;
    text-align: center;
}
.idea-meta .layer-chip { margin: 0; max-width: none; }
.idea-layers {
    margin: 0.45rem 0 0.1rem;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.92rem;
}
.idea-layers a,
.idea-layers span {
    color: #6d6458;
    text-decoration: none;
}
.idea-layers a.is-on { color: #1f4d3a; font-weight: 650; }
.idea-layers span.is-locked { color: #b3a898; }
.idea-layers .dot { margin: 0 0.4rem; color: #c4b8a4; }
.idea-restart { margin: 0.7rem 0 0; text-align: center; }
.idea-restart a {
    color: #8a8175;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.82rem;
    text-decoration: none;
}
main:has(.idea-switch) .kicker { margin-bottom: 0.15rem; }
main:has(.idea-switch) h1 { margin: 0.05rem 0 0.15rem; font-size: 1.45rem; }
main:has(.idea-switch) .card-title { display: none; }
.idea-switch {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.35rem;
    max-width: 34rem;
    margin: 0.15rem auto 0.65rem;
}
.idea-switch a,
.idea-switch button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.35rem;
    padding: 0.3rem 0.4rem;
    border: 1px solid #e4ddd0;
    border-radius: 999px;
    background: #fffdf8;
    color: #1c1915;
    text-decoration: none;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
}
.idea-switch span { white-space: nowrap; }
.idea-fold {
    display: block;
    margin: 0.1rem auto 0.35rem;
    border: 0;
    background: transparent;
    color: #1f4d3a;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
}
[data-idea-step][data-folded="1"] { margin: 0 0 0.2rem; }
[data-idea-step][data-folded="1"] > :not(.idea-fold) { display: none; }
[data-idea-step][data-folded="1"] > p:first-of-type:not([hidden]),
[data-idea-step][data-folded="1"] > p[data-path]:not([hidden]) {
    display: block;
    margin: 0.15rem 0 0;
    color: #6d6458;
    font-size: 0.92rem;
}
.sheet-pin {
    position: fixed;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 25;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid #e4ddd0;
    border-radius: 999px;
    background: #fffdf8;
    color: #1f4d3a;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(28, 25, 21, 0.08);
}
.sheet-pin .idea-icon { width: 18px; height: 18px; }
.idea-sheet {
    position: fixed;
    z-index: 20;
    overflow: auto;
    background: #f7f3ea;
}
.idea-sheet-card {
    max-width: 34rem;
    margin: 0 auto;
    padding: 1rem 1rem 2.5rem;
    text-align: left;
}
.idea-sheet-card h2 { margin: 0.2rem 0 0.6rem; font-size: 1.35rem; }
.idea-sheet-back {
    position: sticky;
    top: 0;
    z-index: 2;
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: #f7f3ea;
    color: #1f4d3a;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.95rem;
    padding: 0.7rem 0 0.6rem;
    cursor: pointer;
}
.slip-own {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #ddcfbb;
}
.slip-own .legend {
    margin: 0.55rem 0 0;
    max-width: none;
    text-align: left;
}
.slip-own > p {
    margin: 0.15rem 0 0.55rem;
}
.slip-label {
    margin: 0 0 0.25rem;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6d6458;
}
.slip-own textarea,
.slip-own-read {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.45rem;
}
.slip-own textarea {
    min-height: 4.4rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid #e4ddd0;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    line-height: 1.4;
}
.sheet-status {
    min-height: 1.2rem;
    margin: 0.3rem 0 0;
    color: #1f4d3a;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.9rem;
}
.sheet-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    margin: 0.8rem 0 0;
}
.sheet-links a,
.sheet-links button {
    border: 0;
    background: transparent;
    padding: 0;
    color: #1f4d3a;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
}
.slip-own-read { margin: 0.35rem 0 0; }
@media (max-width: 959px) {
    .idea-sheet {
        top: auto;
        left: 0;
        right: 0;
        bottom: calc(3.2rem + env(safe-area-inset-bottom));
        height: min(42vh, 20rem);
        border-top: 1px solid #e4ddd0;
        box-shadow: 0 -8px 24px rgba(28, 25, 21, 0.08);
    }
    body.sheet-open main {
        padding-bottom: calc(42vh + 4.6rem + env(safe-area-inset-bottom));
    }
}
@media (min-width: 960px) {
    .idea-sheet {
        top: 0;
        right: 0;
        bottom: 0;
        width: min(28rem, 40vw);
        border-left: 1px solid #e4ddd0;
        background: #fffdf8;
    }
    body.sheet-open main { margin-right: min(28rem, 40vw); }
    /* Neben dem Profil-Knopf (rechts oben), nicht darauf. */
    .sheet-pin { top: 1rem; right: 7.5rem; }
    body.sheet-open .sheet-pin { right: calc(min(28rem, 40vw) + 0.55rem); }
    .idea-sheet-back { background: #fffdf8; }
}
.idea-switch a[aria-current="page"] {
    border-color: #1f4d3a;
    background: #e7f0ea;
    color: #1f4d3a;
}
.idea-switch a:focus-visible {
    outline: 2px solid #1f4d3a;
    outline-offset: 2px;
}
.idea-icon { flex: none; width: 18px; height: 18px; vertical-align: -0.2em; }
.idea-switch .idea-icon { width: 20px; height: 20px; }
.phase-mark .idea-icon { margin-right: 0.35rem; }
.idea-lock { margin: 0.4rem auto 1rem; max-width: 28rem; text-align: center; }
.idea-lock p { margin: 0.55rem 0; }
.stack-frame[data-fit="tight"] { min-height: 8rem; overflow: visible; }
#ausprobieren [data-idea-step] > p:has(+ iframe[data-karte]) { display: none; }
.idea-how { margin: 0.6rem auto 0; max-width: 28rem; text-align: center; }
.idea-how-toggle {
    border: 0;
    background: none;
    padding: 0.35rem 0.2rem;
    color: #1f4d3a;
    font-family: "Segoe UI", sans-serif;
    font-size: 1rem;
    cursor: pointer;
}
.idea-how-body[hidden] { display: none; }
/* Satz unter dem Rahmen in Vertiefen (T1 bis T6): so breit wie der Rahmen (Vierte Lesung, V6), und ein Stufenname mit Bindestrich
   („Warm-up“) bricht nicht um (wertung.satz_html, chrome.py applyStep). */
.legend.idea-prompt { max-width: none; }
.idea-prompt .stufe-name { white-space: nowrap; }
/* T21 (Wertung 1.3): mehrere Absätze und eine Liste der Medaillen, linksbündig, damit man am Telefon die eigene Zeile findet. */
.idea-how-body { text-align: left; }
.idea-how-body p { margin: 0.7rem 0; }
.idea-how-body ul { margin: 0.7rem 0; padding-left: 1.25rem; }
.idea-how-body li { margin: 0.3rem 0; }
.idea-course { margin: 1.4rem auto 0.2rem; max-width: 28rem; }
.course-steps { display: flex; gap: 0.6rem; margin: 0 0 0.7rem; }
.course-step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid #e4ddd0;
    border-radius: 12px;
    background: #fffdf8;
    color: #1c1915;
    text-decoration: none;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.82rem;
    line-height: 1.25;
}
.course-step span { color: #6d6458; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.course-step-next { text-align: right; }
.kicker-link { color: inherit; text-decoration: none; }
.kicker-link:hover, .kicker-link:focus-visible { text-decoration: underline; }
.idea-done {
    margin: 1rem 0 0.6rem;
    padding: 0.9rem 1rem 1rem;
    border: 2px solid #1f4d3a;
    border-radius: 14px;
    background: #e7f0ea;
    text-align: center;
}
.idea-done[hidden] { display: none; }
.idea-done p { margin: 0 0 0.6rem; }
.idea-done-title { font-weight: 650; font-size: 1.05rem; color: #1f4d3a; }
.idea-done-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.idea-done-actions .button { display: block; box-sizing: border-box; width: 100%; text-align: center; }
.idea-course .button-primary { width: 100%; box-sizing: border-box; }
.layer-chip summary { cursor: pointer; color: #1f4d3a; font-family: "Segoe UI", sans-serif; }
.layers { display: flex; gap: 0.4rem; margin: 0.8rem 0 0.3rem; }
.layer-chip .layers { justify-content: center; }
.layers a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    background: #f3efe6;
    color: #1f4d3a;
    border-radius: 999px;
    padding: 0.65rem 0.3rem;
    min-height: 2.6rem;
    font-family: "Segoe UI", sans-serif;
}
.layers a.is-on { background: #1f4d3a; color: #f7f3ea; }
.layers span.is-locked {
    flex: 1;
    text-align: center;
    background: #f3efe6;
    color: #b3a898;
    border-radius: 999px;
    padding: 0.65rem 0.3rem;
    min-height: 2.6rem;
    font-family: "Segoe UI", sans-serif;
}
.info {
    position: relative;
    flex: none;
}
.info summary {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 1px solid #c4b8a4;
    background: #fffdf8;
    color: #1f4d3a;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    cursor: help;
    list-style: none;
}
.info summary::-webkit-details-marker { display: none; }
.info-pop {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    width: 16rem;
    padding: 0.7rem 0.8rem;
    background: #fffdf8;
    border: 1px solid #e4dccb;
    border-radius: 12px;
    text-align: left;
    font-style: normal;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #1c1915;
    z-index: 5;
    box-shadow: 0 8px 20px rgba(28, 25, 21, 0.12);
}
.info:hover .info-pop,
.info[open] .info-pop { display: block; }
.mode-row { display: flex; gap: 0.4rem; margin: 0.8rem 0 0.35rem; }
.mode-row .button { flex: 1; text-align: center; padding: 0.75rem 0.35rem; min-height: 2.75rem; }
.ring-move { margin: 1rem 0 0.2rem; font-family: Georgia, serif; font-size: 1.35rem; }
.achievement-now { margin: 0.35rem 0 0; font-family: Georgia, serif; font-size: 1.2rem; }
.checkpoint-result { margin: 0.8rem 0 0.2rem; }
.promise { margin: 0.4rem 0 1rem; padding-left: 1.15rem; }
.promise li { margin: 0.2rem 0; }
.mix-count { margin: 0.35rem 0 0; font-family: Georgia, serif; font-size: 1.35rem; }
.mix-count strong { font-size: 1.8rem; }
.actions { margin-top: 1.25rem; text-align: center; }
.actions .button {
    display: block;
    border-radius: 999px;
    padding: 0.95rem 1.2rem;
    font-size: 1.05rem;
}
.refresh {
    margin-top: 1.5rem;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.85rem;
}
.falle {
    margin: 0.8rem 0;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    background: #f8efe2;
    color: #6d4a12;
}
.beispiel {
    margin: 0.8rem 0;
    padding: 0.75rem 0.85rem 0.85rem;
    border: 1px solid #e2d9cb;
    border-radius: 8px;
    background: #fffdf8;
}
.beispiel p { margin: 0 0 0.55rem; }
.beispiel strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f4d3a;
}
.beispiel .scratch-draw { margin: 0; }
.falle p { margin: 0; }
.falle ul { margin: 0.3rem 0 0.15rem; padding-left: 1.15rem; }
.falle ul + p { margin-top: 0.85rem; }
.falle strong {
    display: block;
    margin-bottom: 0.2rem;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.hint {
    margin: 0.45rem 0;
    border: 1px solid #e2d9cb;
    border-radius: 8px;
    background: #fffdf8;
    padding: 0.55rem 0.8rem;
}
.hint summary {
    cursor: pointer;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.92rem;
    color: #1f4d3a;
}
.hint p { margin: 0.45rem 0 0.15rem; }
.card-part, .merk-part { margin: 1.2rem 0 0.4rem; }
.stufe { margin: 0; }
.stufen-zu { display: none !important; }
.card-part h3, .merk-part h3 {
    margin: 0 0 0.3rem;
    font-family: "Segoe UI", sans-serif;
    font-size: 1.02rem;
    color: #1f4d3a;
}
.card-part p, .merk-part p { margin: 0.4rem 0; }
.check { margin-top: 1.25rem; }
.check .card { margin-bottom: 0; }
.answer {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1rem;
}
.answer label {
    font-family: "Segoe UI", sans-serif;
    font-size: 0.85rem;
    color: #6d6458;
}
.answer input {
    font: 1.15rem Georgia, serif;
    min-height: 3.25rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid #e2d9cb;
    border-radius: 8px;
    background: #fffdf8;
    color: #1c1915;
}
.answer .button {
    border: 0;
    cursor: pointer;
    min-height: 3.25rem;
    font-size: 1.05rem;
}
[data-idea-step] + [data-idea-step] {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e6e0d4;
}
[data-idea-step].is-open, [data-idea-rest].is-open { animation: idea-open 0.35s ease; }
.idea-gate { margin: 0.9rem 0 0.2rem; display: grid; gap: 0.55rem; }
.idea-gate .button { width: 100%; box-sizing: border-box; cursor: pointer; text-align: center; }
.idea-gate .button-primary { border: 0; }
@keyframes idea-open {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}
.scratch {
    margin: 0.4rem 0 1rem;
    padding: 0.15rem 0.85rem 0.7rem;
    background: #fffdf8;
    border-radius: 14px;
}
#ausprobieren .scratch { margin-bottom: 0; }
.scratch summary { cursor: pointer; font-family: "Segoe UI", sans-serif; padding: 0.55rem 0; }
.scratch-tools { display: flex; gap: 0.4rem; margin-bottom: 0.55rem; }
.scratch-tools[hidden] { display: none !important; }
.scratch-tools button, .scratch [data-clear] {
    min-height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: #f3efe6;
    font: inherit;
    padding: 0 0.9rem;
}
.scratch-tools button.is-on { background: #1f4d3a; color: #f7f3ea; }
.scratch label { display: block; margin: 0.25rem 0; font-family: "Segoe UI", sans-serif; font-size: 0.92rem; }
.scratch input, .scratch textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.2rem;
    border: 1px solid #e2d9cb;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    padding: 0.45rem 0.6rem;
}
.scratch-draw { width: 100%; height: auto; background: #f3efe6; border-radius: 10px; }
.scratch-graph { min-height: 9rem; }
.paths { margin: 0.6rem 0 1rem; }
.paths p { margin: 0.35rem 0; }
.model { margin: 0.4rem 0 0.8rem; }
.model p { margin: 0 0 0.35rem; }
.model-term { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; text-align: center; }
.strand { margin: 0.35rem 0 0.8rem; padding-left: 1.25rem; }
.strand li + li { margin-top: 0.4rem; }
.loaf-right { margin: 0.35rem 0 0.15rem; color: #1f4d3a; font-family: "Segoe UI", sans-serif; font-weight: 600; }
.loaf-right[hidden] { display: none; }
.scratch-read { margin: 0.35rem 0 0.5rem; font-family: "Segoe UI", sans-serif; }
.scratch-read[hidden] { display: none; }
.idea-count { text-align: center; margin: 0 0 0.35rem; }
.idea-solve, .idea-back, .idea-next {
    display: inline-block;
    margin: 0.35rem 0.45rem 0.15rem 0;
    padding: 0.48rem 0.9rem;
    border: 0;
    border-radius: 999px;
    background: #1f4d3a;
    color: #f7f3ea;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.92rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.idea-solve:hover, .idea-back:hover, .idea-next:hover,
.idea-solve:focus, .idea-back:focus, .idea-next:focus {
    background: #1f4d3a;
    color: #f7f3ea;
}
.idea-solve[hidden], .idea-back[hidden], .idea-next[hidden] { display: none; }
.idea-next { font-weight: 600; }
.trace-note { margin: 0.15rem 0 0.35rem; font-family: "Segoe UI", sans-serif; color: #6d6458; }
.trace { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0 0 0.7rem; }
.trace li { font-family: "Segoe UI", sans-serif; font-size: 0.82rem; padding: 0.28rem 0.55rem; border: 1px solid #c4b8a4; border-radius: 999px; color: #6d6458; }
.trace li.is-now { background: #1f4d3a; color: #f7f3ea; border-color: #1f4d3a; }
.trace li.is-done { background: #e4efe8; color: #1f4d3a; border-color: #1f4d3a; }
.matrix-pad {
    display: grid;
    grid-template-columns: auto 3.2rem 3.2rem auto;
    grid-template-rows: auto auto;
    gap: 0.35rem 0.45rem;
    width: max-content;
    margin: 0.2rem 0 0.4rem;
    align-items: center;
}
.matrix-pad .paren {
    font-family: Georgia, serif;
    font-size: 2.6rem;
    line-height: 0.85;
    color: #1f4d3a;
}
.matrix-pad .paren-left { grid-column: 1; grid-row: 1 / span 2; }
.matrix-pad .paren-right { grid-column: 4; grid-row: 1 / span 2; }
.matrix-pad button {
    min-height: 2.7rem;
    border: 1px solid #c4b8a4;
    border-radius: 8px;
    background: #fffdf8;
    color: #1f4d3a;
    font-family: Georgia, serif;
    font-size: 1.2rem;
    cursor: pointer;
}
.matrix-pad button:nth-of-type(1) { grid-column: 2; grid-row: 1; }
.matrix-pad button:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.matrix-pad button:nth-of-type(3) { grid-column: 2; grid-row: 2; }
.matrix-pad button:nth-of-type(4) { grid-column: 3; grid-row: 2; }
.matrix-pad button.is-on { background: #1f4d3a; color: #f7f3ea; border-color: #1f4d3a; }
.scratch-tools.stack { flex-direction: column; align-items: stretch; }
.scratch-tools.stack button.idea-pic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
    overflow: visible;
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
    background: #fffdf8;
    border: 1px solid #e2d9cb;
    color: inherit;
}
.idea-pic-frac { line-height: 1; }
.scratch-tools.stack button.idea-pic.is-on {
    background: #fffdf8;
    color: inherit;
    box-shadow: inset 0 0 0 2px #1f4d3a;
}
.idea-mark {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 0.45rem 0 0;
    padding: 0;
    line-height: 1.2;
    font-family: "Segoe UI", sans-serif;
}
.scratch-read > .idea-mark,
.scratch-tools.stack > .idea-mark { width: auto; }
.actions .idea-mark { justify-content: center; }
.idea-mark .algebrain-verdict.is-right { color: #1f4d3a; }
.idea-mark .algebrain-verdict.is-wrong { color: #8a3b12; }
.idea-mark > span {
    display: inline-flex;
    flex: none;
    align-items: center;
    line-height: 0;
}
.idea-mark svg { width: 1em; height: 1em; display: block; }
.idea-mark strong { font-weight: 700; min-width: 0; }
.idea-pic-draw {
    display: block;
    width: auto;
    max-width: none;
    flex: none;
    height: auto;
    margin: 0 auto;
    background: transparent;
}
.scratch .whole, .card .whole { fill: none; stroke: #1f4d3a; stroke-width: 1.8; }
.scratch .loaf, .card .loaf { fill: none; stroke: #8d6239; stroke-width: 2; stroke-linejoin: round; }
.scratch .crumb, .card .crumb { fill: #f0d7b0; stroke: none; }
.scratch .slice, .card .slice { fill: #fffaf3; stroke: none; }
.scratch .slice.filled, .card .slice.filled { fill: #1f4d3a; }
.loaf-ask { margin: 0.9rem 0 0.2rem; }
.loaf-ask .scratch-tools { margin-top: 0.45rem; }
.scratch .triangle { fill: none; stroke: #1f4d3a; stroke-width: 1.6; stroke-dasharray: 4 3; }
.scratch .region { fill: #e4efe8; stroke: #1f4d3a; stroke-width: 1.4; }
.scratch .level { fill: none; stroke: #b56a12; stroke-width: 2.2; }
.sign-scroll { overflow-x: auto; max-width: 100%; margin: 0.3rem 0 0.6rem; }
.sign-table { border-collapse: collapse; margin: 0.3rem 0 0.6rem; font-family: Georgia, serif; }
.sign-scroll .sign-table { margin: 0; }
.sign-table th, .sign-table td { border: 1px solid #c4b8a4; padding: 0.35rem 0.6rem; text-align: center; background: #fffdf8; }
.sign-scroll .sign-table th, .sign-scroll .sign-table td { white-space: nowrap; padding: 0.35rem 0.4rem; }
.sign-scroll .trace-fit th, .sign-scroll .trace-fit td { padding: 0.28rem 0.22rem; }
.sign-table th { font-weight: normal; color: #6d6458; }
.sign-table td.is-changed { background: #e4efe8; }
.scratch .filled, .card .filled { fill: #1f4d3a; stroke: #1f4d3a; }
.scratch .empty, .card .empty { fill: #fffdf8; stroke: #c4b8a4; stroke-width: 1.4; }
.scratch .axis, .card .axis, .scratch .tick, .card .tick { stroke: #6d6458; stroke-width: 1.4; }
.scratch .tick-label, .card .tick-label { fill: #6d6458; font-size: 13px; font-family: "Segoe UI", sans-serif; }
.card .eq { fill: #1c1915; font-size: 22px; font-family: Georgia, "Times New Roman", serif; }
.scratch .link { fill: none; stroke: #b56a12; stroke-width: 2; }
.errors { margin: 0.4rem 0 1rem; padding-left: 1.2rem; }
.errors li { margin: 0.7rem 0; }
.errors p { margin: 0.15rem 0; }
.exam {
    margin: 0.15rem 0 0.45rem;
    text-align: center;
    font-family: Georgia, serif;
    color: #1f4d3a;
}
.checkpoint {
    margin: 0.15rem 0 1.1rem;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.92rem;
}
.checkpoint.is-due a { font-weight: 650; }
.map-link { text-align: center; margin: 0.2rem 0 1rem; font-family: "Segoe UI", sans-serif; font-size: 0.92rem; }
.map-legend {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin: 0 0 0.6rem;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6d6458;
}
.map-legend { flex-wrap: wrap; }
.map-legend .state-offen::before,
.map-legend .state-bereit::before,
.map-legend .state-angefangen::before,
.map-legend .state-geuebt::before,
.map-legend .state-sitzt::before,
.map-legend .state-vorlaeufig::before,
.map-legend .state-unsicher::before {
    content: "";
    display: inline-block;
    width: 0.48rem;
    height: 0.48rem;
    margin-right: 0.28rem;
    border-radius: 50%;
    background: #e2d9cb;
    vertical-align: 0;
}
.map-legend .state-bereit::before { background: #8fbfa8; }
.map-legend .state-geuebt::before { background: #c4a15a; }
.map-legend .state-angefangen::before { background: #6d4a12; }
.map-legend .state-sitzt::before { background: #1f4d3a; }
.map-legend .state-vorlaeufig::before { background: #b7d4c6; }
.map-legend .state-unsicher::before { background: #e7a06a; }
.map-wrap { margin: 0 -0.2rem 1rem; }
.knowledge-map { width: 100%; height: auto; display: block; }
.map-edges path { fill: none; stroke: #c4b8a4; stroke-width: 1.3; }
.map-node circle { fill: #e2d9cb; stroke: #c4b8a4; stroke-width: 1.4; }
.map-node.state-bereit circle { fill: #e7f0ea; stroke: #1f4d3a; }
.map-node.state-vorlaeufig circle { fill: #b7d4c6; stroke: #1f4d3a; }
.map-node.state-unsicher circle { fill: #f6d7c3; stroke: #9a3412; }
.map-node.state-angefangen circle { fill: #f8efe2; stroke: #6d4a12; }
.map-node.state-geuebt circle { fill: #f3e6c8; stroke: #8a5a10; }
.why-stand { margin: 0.6rem 0 0; }
.why-stand summary { cursor: pointer; }
.map-node.state-sitzt circle { fill: #1f4d3a; stroke: #1f4d3a; }
.map-node.map-next circle { stroke: #9a3412; stroke-width: 3.2; }
.map-node.map-selected text { font-weight: 700; }
.map-focus {
    background: #fffdf8;
    border: 1px solid #e4dccb;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin: 0.4rem 0 0.9rem;
}
.map-focus h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.map-now { margin: 0 0 0.35rem; color: #9a3412; }
.map-node text { font-family: "Segoe UI", sans-serif; font-size: 15px; fill: #1c1915; }
.map-hit { fill: transparent; pointer-events: all; }
.map-list { margin: 0 0 1rem; }
.map-list summary {
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}
.map-list li { margin: 0.15rem 0 0.55rem; }
.map-list a {
    display: inline-block;
    min-height: 32px;
    line-height: 32px;
    font-size: 1.05rem;
}
@media (max-width: 520px) {
    .map-board { display: flex; flex-direction: column; }
    .map-list { order: 1; }
    .map-wrap { order: 2; }
}
.stack-frame {
    width: 100%;
    min-height: 40rem;
    border: 0;
    border-radius: 12px;
    background: #fffdf8;
}
/* Zwischenfrage im Verstehen-Teil: eine STACK-Aufgabe, die wie Teil des Kartentextes aussieht (Spec §7.1b). */
.verstehen-q { margin: 0.6rem 0 0.8rem; }
.verstehen-q .stack-frame,
.verstehen-q .stack-frame[data-fit="tight"] {
    display: block;
    min-height: 5rem;
    border-radius: 0;
    background: transparent;
}
.stack-note {
    margin: 0.4rem auto 0.8rem;
    max-width: 22rem;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.98rem;
    line-height: 1.45;
}
@media (max-width: 520px) {
    .actions {
        position: sticky;
        bottom: 0;
        z-index: 3;
        margin-top: 0.6rem;
        padding: 0.75rem 0 0.2rem;
        background: linear-gradient(to top, #f3efe6 68%, rgba(243, 239, 230, 0));
    }
    .card, .feedback, .falle, .gap, .voraussetzung {
        overflow-wrap: anywhere;
    }
    mjx-container {
        max-width: 100%;
    }
    .actions-inline {
        position: static;
        background: none;
        padding: 0;
    }
}
.feedback {
    font-family: "Segoe UI", sans-serif;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
}
.feedback-yes { background: #e5f0e8; color: #1f4d3a; }
.feedback-no { background: #f8efe2; color: #6d4a12; }
.notice {
    font-family: "Segoe UI", sans-serif;
    font-size: 0.92rem;
    color: #5c564c;
    text-align: center;
}
.back { margin: 0 0 0.8rem; font-family: "Segoe UI", sans-serif; font-size: 0.92rem; }
.sheet {
    margin: 0.15rem 0 0.8rem;
    padding: 0.85rem 0.85rem 0.35rem 1.05rem;
    background: #fffdf6;
    border: 1px solid #e4d5c0;
    border-left: 3px solid #c45c54;
    border-radius: 2px 12px 10px 3px;
    box-shadow: 3px 4px 0 #efe4d2;
}
.sheet h1 {
    margin: 0 0 0.3rem;
    text-align: left;
    font-size: 1.38rem;
}
.sheet > .legend {
    max-width: none;
    margin: 0 0 0.75rem;
    text-align: left;
}
.sheet-section {
    margin: 0.7rem 0 0.15rem;
    text-align: left;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a5a4a;
}
.slips { list-style: none; margin: 0; padding: 0; }
.slip {
    margin: 0 0 0.55rem;
    padding: 0.1rem 0 0.6rem;
    border-bottom: 1px dashed #ddcfbb;
}
.slip h2 {
    margin: 0.05rem 0 0.15rem;
    text-align: left;
    font-size: 1.05rem;
    color: #1f4d3a;
}
.slip .rule p { margin: 0.2rem 0; }
.slip label {
    display: block;
    margin-top: 0.35rem;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6d6458;
}
.slip textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.15rem;
    padding: 0.28rem 0.1rem 0.15rem;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #cfc1ab;
    background-color: transparent;
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 1.35rem, #eadfce 1.35rem, #eadfce calc(1.35rem + 1px));
    font-family: "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.35rem;
    color: #1d4e89;
    resize: vertical;
}
.sheet .actions { margin-top: 0.35rem; }
mjx-container { font-size: 1.05em; }
@media (prefers-reduced-motion: reduce) {
    .ring.is-animated .ring-value { animation: none; stroke-dashoffset: var(--goal); }
    .ring-sitzt { animation: none; }
}
/* UX-Prüfung vom 10. November 2026: Rückmeldung im Ausprobieren, ruhiger als rotes Kreuz, aber auf den ersten Blick erkennbar (Symbol, Wort, Fläche) */
.idea-glyph.is-wrong { color: #8a3b12; }
.idea-glyph.is-right { color: #1f4d3a; }
.idea-mark:has(.algebrain-verdict) { padding: 0.2rem 0.7rem 0.2rem 0.55rem; border-radius: 999px; }
.idea-mark:has(.algebrain-verdict.is-wrong) { background: #faf1e4; border: 1px solid #e3c9a6; }
.idea-mark:has(.algebrain-verdict.is-right) { background: #eaf2ec; border: 1px solid #b7d4c6; }
.idea-mark .idea-glyph { font-size: 1.15em !important; }
