/*
 * MINT-Reise V5 — map (A), island overlay (B), mission detail (C), base, onboarding, toasts.
 * Design reference: docs/active/thinklab/ThinkLab_V5_Prototyp_Assets (index.html). Everything is scoped under .reise /
 * .reise-* so it can sit on the landing page, /demo, the child dashboard, the teacher cockpit and Mein Bereich.
 * Tokens: --r-* map onto the ThinkLab tokens (--tl-*, thinklab.css); an island's colour arrives as --world (data).
 * Font: Bricolage Grotesque, self-hosted (wwwroot/stations/_vendor/fonts), through --tl-font-display.
 */
.reise, .reise-toast, .reise-dialog {
    --r-bg: var(--tl-navy-dark, #111d33);
    --r-sky: #0a1631;
    --r-panel: #0e1e39;
    --r-raised: var(--tl-surface, #213553);
    --r-line: var(--tl-border, #38507a);
    --r-ink: var(--tl-white, #ffffff);
    --r-muted: #b7c5df;
    --r-amber: var(--tl-orange, #f5a623);
    --r-amber-soft: var(--tl-orange-light, #ffd080);
    --r-mint: #54e6ae;
    --r-lock: #ffd18a;
    --r-radius: var(--tl-radius-lg, 16px);
    --tl-font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-family: var(--tl-font-display);
    color: var(--r-ink);
    line-height: 1.45;
}
.reise *, .reise *::before, .reise *::after, .reise-dialog *, .reise-dialog *::before, .reise-dialog *::after, .reise-toast * { box-sizing: border-box; }
.reise button, .reise select, .reise-dialog button, .reise-dialog select { font: inherit; color: inherit; }
.reise :focus-visible, .reise-dialog :focus-visible { outline: 3px solid var(--r-amber-soft); outline-offset: 3px; border-radius: 6px; }
.reise a, .reise-dialog a { color: inherit; }
.reise { background: var(--r-bg); border-radius: 1.6rem; padding: clamp(.9rem, 2.4vw, 1.6rem); font-size: clamp(15px, .45vw + 12px, 17px); }

/* ── header and HUD (P3c: one base card instead of numbers and a button) ── */
.reise { container: reise / inline-size; }
.reise-kopf { margin-bottom: .9rem; }
.reise-eyebrow { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #91b6ff; }
.reise-titel { margin: .2rem 0 0; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.reise-sub { margin: .45rem 0 0; color: var(--r-muted); max-width: 56ch; }
.reise-hud { display: flex; align-items: center; gap: .9rem; max-width: 640px; margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 1.3rem;
    text-decoration: none; color: inherit; background: linear-gradient(180deg, #16294b, #0f1f3b); border: 1px solid #3b5688;
    box-shadow: 0 0 0 1px #0004, 0 10px 30px #0006, inset 0 1px 0 #ffffff12; }
a.reise-hud { cursor: pointer; transition: border-color .15s, background .15s; }
a.reise-hud:hover { border-color: #7fa6e6; background: linear-gradient(180deg, #1b3157, #13264a); }
.reise-hud-av { width: 4rem; height: 4rem; flex: none; border-radius: 50%; overflow: hidden; background: var(--r-raised);
    border: 3px solid var(--r-amber); box-shadow: 0 0 18px #f5a62355; }
.reise-hud-av svg, .reise-hud-av img { display: block; width: 100%; height: 100%; }
.reise-hud-av img { object-fit: cover; }
.reise-hud-text { flex: 1; min-width: 0; display: grid; gap: .45rem; }
.reise-hud-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; }
.reise-hud-kopf strong { font-size: 1.15rem; font-weight: 800; line-height: 1.15; }
.reise-hud-alter { padding: .12rem .6rem; border-radius: 999px; background: #22375c; border: 1px solid #3f5b8c; font-size: .8rem; font-weight: 700; }
.reise-hud-kristalle { display: inline-flex; gap: .2rem; margin-left: auto; }
.reise-hud-kristalle .reise-kristall { width: 18px; height: 23px; }
.reise-hud .reise-balken { height: 8px; }
.reise-hud-zahl { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .8rem; font-size: .8rem; color: var(--r-muted); }
.reise-hud-zahl > span[aria-hidden] { display: none; }
.reise-hud-zahl b { color: var(--r-ink); }
.reise-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ── level A: the map (P3c) ─────────────────────────────────────────────────
 * The base in the middle, the worlds on an ellipse (ReiseKarte). All sizes are fractions of the map width, set by the
 * server per variant (--b-* wide, --m-* narrow; ReiseKarte.CssVariablen) and used here in cqw of the stage, so the
 * overlap check and the browser use the same numbers. Pictures may cover each other and the paths; tap areas and labels
 * never overlap (checked). Drawing order: paths 1, pictures 2..n (lower = in front), base 20, labels 40. P3e: no symbol
 * button on the pictures (the sprites carry their emblem) — the world symbol is a small mark in the label pill. */
.reise-buehne { position: relative; container-type: inline-size; aspect-ratio: 1 / var(--h); border-radius: 1.6rem; overflow: hidden; isolation: isolate;
    --h: var(--b-h); --s: var(--b-s); --sb: var(--b-sb); --tb: var(--b-tb); --th: var(--b-th); --lb: var(--b-lb);
    --ldy: var(--b-ldy); --lf: var(--b-lf); --bb: var(--b-bb); --bh: var(--b-bh); --blb: var(--b-blb); --bldy: var(--b-bldy);
    border: 1px solid #314477; box-shadow: inset 0 0 90px #071124;
    background:
        radial-gradient(1px 1px at 9% 16%, #90b5ff, transparent), radial-gradient(1.5px 1.5px at 64% 16%, #d2b9ff, transparent),
        radial-gradient(1px 1px at 23% 63%, #c5d5ff, transparent), radial-gradient(1.5px 1.5px at 90% 40%, #bde4ff, transparent),
        radial-gradient(1.5px 1.5px at 48% 72%, #7f9ae4, transparent), radial-gradient(1px 1px at 77% 78%, #bdc9fd, transparent),
        radial-gradient(ellipse at 50% 52%, #17305a 0, #0c1b3a 45%, #081329 100%);
    background-size: 240px 210px, 300px 240px, 220px 175px, 260px 195px, 350px 255px, 290px 223px, 100% 100%; }
.reise-pfade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.reise-pfade path { fill: none; stroke: var(--world); stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linecap: round;
    stroke-dasharray: 1 8; opacity: .8; filter: drop-shadow(0 0 3px var(--world)) drop-shadow(0 0 7px color-mix(in srgb, var(--world) 55%, transparent));
    animation: reise-schimmer 7s ease-in-out infinite alternate; }
.reise-pfade--schmal { display: none; }
@keyframes reise-schimmer { from { opacity: .6; } to { opacity: .9; } }

.reise-inseln { list-style: none; margin: 0; padding: 0; }
/* the tap area (the link box) — centred on the island point */
.reise-insel-platz { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); --zz: var(--z);
    width: calc(var(--tb) * var(--s) * 100cqw); height: calc(var(--th) * var(--s) * 100cqw);
    margin: calc(var(--th) * var(--s) * -50cqw) 0 0 calc(var(--tb) * var(--s) * -50cqw); }
.reise-insel { position: absolute; inset: 0; display: block; text-decoration: none; border-radius: 1.2rem; cursor: pointer;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.reise-insel-sprite { position: absolute; left: 50%; top: 50%; z-index: calc(1 + var(--zz)); width: calc(var(--sb) * var(--s) * 100cqw); height: auto;
    aspect-ratio: 4 / 3; translate: -50% -50%; object-fit: contain; pointer-events: none;
    filter: drop-shadow(0 10px 14px #000a) drop-shadow(0 0 22px color-mix(in srgb, var(--world) 22%, transparent));
    transition: scale .25s ease; animation: reise-schweben 6.5s ease-in-out var(--flug, 0s) infinite; }
a.reise-insel:hover .reise-insel-sprite, a.reise-insel:focus-visible .reise-insel-sprite { scale: 1.05; }
@keyframes reise-schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.reise-insel-form .reise-form-oben { fill: var(--world); stroke: #070e1c; stroke-width: 3; }
.reise-insel-form .reise-form-unten { fill: #2b221f; stroke: #070e1c; stroke-width: 3; }
/* the label pill overlaps the lower edge of the picture */
.reise-insel-label { position: absolute; left: 50%; top: calc(50% + var(--ldy) * var(--s) * 100cqw); z-index: 40; translate: -50% 0;
    width: max-content; max-width: calc(var(--lb) * 100cqw); padding: .3em .6em .4em; border-radius: 1em; text-align: center;
    font-size: clamp(11px, calc(var(--lf) * 100cqw), 20px); line-height: 1.15;
    background: linear-gradient(180deg, #0f2140f2, #0a1730f2); border: 1px solid color-mix(in srgb, var(--world) 60%, #304b75);
    box-shadow: 0 6px 18px #000b, 0 0 14px color-mix(in srgb, var(--world) 22%, transparent); }
.reise-insel-label strong { display: block; font-size: 1em; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* P3e: the world symbol, small, left of the name */
.reise-label-symbol { display: inline-block; width: 1.05em; height: 1.05em; margin-right: .3em; vertical-align: -.15em; fill: none; stroke: var(--world);
    stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 2px var(--world)); }
.reise-insel-label small { display: block; margin-top: .15em; font-size: .8em; font-weight: 600; color: var(--r-muted); white-space: nowrap; }
.reise-insel-label .reise-balken { height: 3px; margin-top: .3em; }
a.reise-insel:focus-visible { outline: 3px solid var(--r-amber-soft); outline-offset: 4px; }
.reise-insel-platz.is-gesperrt .reise-insel-sprite { filter: grayscale(.55) drop-shadow(0 10px 14px #000a); opacity: .82; }
.reise-insel-platz.is-gesperrt [data-insel-zahl] { color: var(--r-lock); }
.reise-insel-platz.is-gesperrt [data-insel-zahl]::before { content: ""; display: inline-block; width: .75em; height: .8em; margin-right: .3em; vertical-align: -.05em;
    background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3h2v10H5V11zm2 0h6V8a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3h2v10H5V11zm2 0h6V8a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.reise-insel-platz.is-geschafft .reise-insel-label { border-color: var(--r-mint); }
.reise-insel-platz.is-geschafft [data-insel-zahl] { color: var(--r-mint); }

.reise-balken { display: block; height: 8px; border-radius: 99px; background: #2d3f66; overflow: hidden; }
.reise-balken i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4ce7ab, #a0efb8); }

/* the base: a floating platform with the avatar (a picture basis-580.webp replaces platform and rock when it exists) */
.reise-basis { position: absolute; left: calc(var(--bx) * 1%); top: calc(var(--by) * 1%);
    width: calc(var(--bb) * var(--s) * 100cqw); height: calc(var(--bh) * var(--s) * 100cqw);
    margin: calc(var(--bh) * var(--s) * -50cqw) 0 0 calc(var(--bb) * var(--s) * -50cqw); }
.reise-basis-knopf { position: absolute; inset: 0; display: block; text-decoration: none; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.reise-basis-knopf > span:not(.reise-basis-titel), .reise-basis-sprite { z-index: 20; }
.reise-basis-halo { position: absolute; left: -12%; right: -12%; top: 30%; height: 60%; border-radius: 50%;
    background: radial-gradient(ellipse, #fec97766 0, #f5a62322 45%, transparent 70%); filter: blur(6px); }
.reise-basis-fels { position: absolute; left: 14%; right: 14%; top: 66%; height: 40%;
    background: linear-gradient(180deg, #a07f8f 0, #6b5276 40%, #3a2e5c 100%); clip-path: polygon(0 0, 100% 0, 80% 50%, 60% 100%, 42% 84%, 20% 46%); }
.reise-basis-sockel { position: absolute; left: 6%; right: 6%; top: 52%; height: 26%; border-radius: 50%; border: 3px solid #a66f32;
    background: radial-gradient(ellipse at 50% 42%, #ffc95b 0, #b7762f 54%, #3b2842 100%); box-shadow: 0 0 22px #ffbf6cbb, inset 0 0 14px #ffe3a3; }
.reise-basis-sprite { position: absolute; left: 50%; top: 50%; width: 170%; height: auto; aspect-ratio: 580 / 503; translate: -50% -42%; pointer-events: none; }
.reise-basis-figur { position: absolute; left: 50%; bottom: 36%; width: 74%; aspect-ratio: 1 / 1.1; translate: -50% 0; filter: drop-shadow(0 6px 4px #0008); }
.reise-basis-figur svg, .reise-basis-figur img { display: block; width: 100%; height: 100%; }
/* P3d: an illustrated avatar (3:4, feet on the bottom edge) stands on the glowing pad of basis-580.webp: the pad's
   centre sits at the centre of the box (sprite 170 % wide, 580:503, raised by 42 %), its front edge at 54 % of the box */
.reise-basis-figur.is-bild { width: 54%; aspect-ratio: 3 / 4; filter: drop-shadow(0 4px 3px #0009); }
.reise-basis--bild .reise-basis-figur.is-bild { bottom: 44%; }
.reise-basis-figur img { object-fit: contain; object-position: 50% 100%; }
a.reise-basis-knopf:hover .reise-basis-figur, a.reise-basis-knopf:focus-visible .reise-basis-figur { scale: 1.06; }
a.reise-basis-knopf:focus-visible { outline: 3px solid var(--r-amber-soft); outline-offset: 4px; }
.reise-basis-titel { position: absolute; left: 50%; top: calc(50% + var(--bldy) * var(--s) * 100cqw); z-index: 40; translate: -50% 0;
    white-space: nowrap; max-width: calc(var(--blb) * 100cqw); overflow: hidden; text-overflow: ellipsis; padding: .3em .9em; border-radius: 999px;
    font-size: clamp(11px, calc(var(--lf) * 100cqw), 17px); font-weight: 800; background: #0c1d35f2; border: 1px solid #e8b962; box-shadow: 0 6px 18px #000b, 0 0 14px #f5a62333; }
.reise-leer { margin: 1rem 0 0; color: var(--r-muted); }
/* "Weitere Abenteuer" without a picture of its own: a quiet link under the map */
.reise-weitere { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.2rem; margin: .6rem 0 0; font-size: .9rem; color: var(--r-muted); }
.reise-weitere a { display: inline-flex; align-items: center; gap: .1rem; min-height: 44px; color: #c9d8f2; font-weight: 700; text-underline-offset: .2em; }
.reise-weitere small { font-weight: 600; color: var(--r-muted); }

/* the narrow map (phone, or a narrow column): tall, the --m-* sizes, the mobile centres */
@container reise (max-width: 560px) {
    .reise-buehne { --h: var(--m-h); --s: var(--m-s); --sb: var(--m-sb); --tb: var(--m-tb); --th: var(--m-th); --lb: var(--m-lb);
        --ldy: var(--m-ldy); --lf: var(--m-lf); --bb: var(--m-bb); --bh: var(--m-bh); --blb: var(--m-blb); --bldy: var(--m-bldy); border-radius: 1.2rem; }
    .reise-pfade--breit { display: none; }
    .reise-pfade--schmal { display: block; }
    /* P3e: the paths read better on the phone — wider, denser, brighter (still under the pictures) */
    .reise-pfade--schmal path { stroke-width: 4.5px; stroke-dasharray: 1 7; opacity: 1; animation: none; }
    /* P3e: the avatar on the base clearly larger on the phone (feet stay on the pad) */
    .reise-basis-figur.is-bild { width: 80%; }
    /* the pill keeps its width (overlap check); symbol, padding and spacing make room for the longest name */
    .reise-insel-label { padding: .3em .4em .4em; }
    /* The island name stays at least 11px on the narrow map. For that the pill drops the counter ("x von y Missionen":
       the bar stays, the number is in the island overlay) and the name may wrap at its hyphen — the box the layout reserves
       (ReiseKarte.Schmal LabelB x LabelH) holds two name lines and the bar, so the overlap rule holds at 320px too.
       A locked island shows the lock in front of the name instead of "ab N Jahren". The base title still scales. */
    .reise-insel-label { font-size: clamp(11px, calc(var(--lf) * 100cqw), 20px); padding: .25em .4em .3em; }
    .reise-insel-label [data-insel-zahl] { display: none; }
    .reise-insel-label .reise-balken { margin-top: .25em; }
    .reise-basis-titel { font-size: clamp(8px, calc(var(--lf) * 100cqw), 17px); }
    .reise-insel-label strong { letter-spacing: -.015em; line-height: 1.1; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
    .reise-insel-platz.is-gesperrt .reise-label-symbol { display: none; }
    .reise-insel-platz.is-gesperrt .reise-insel-label strong::before { content: ""; display: inline-block; width: .8em; height: .85em; margin-right: .25em;
        vertical-align: -.05em; background: var(--r-lock);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3h2v10H5V11zm2 0h6V8a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3h2v10H5V11zm2 0h6V8a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
    .reise-label-symbol { width: .9em; height: .9em; margin-right: .2em; }
    .reise-insel-platz { left: calc(var(--mx) * 1%); top: calc(var(--my) * 1%); --zz: var(--mz); }
    .reise-basis { left: 50%; top: calc(var(--bmy) * 1%); }
    .reise-hud { padding: .65rem .8rem; gap: .7rem; }
    .reise-hud-av { width: 3.4rem; height: 3.4rem; }
}

/* teaser (landing page, Mein Bereich): the map without levels */
.reise--kompakt .reise-titel { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.reise--kompakt .reise-insel-platz { pointer-events: none; }
.reise-teaser { margin: 1rem 0 0; display: flex; justify-content: center; }

/* no-JS level on the page */
.reise-ebene { margin-top: 1.2rem; border: 1px solid #4c679d; border-radius: 1.6rem; overflow: hidden; background: var(--r-panel); }

/* ── dialog (levels B, C, base) ─────────────────────────────────────────── */
html.reise-gesperrt { overflow: hidden; }
.reise-dialog { width: min(1070px, 94vw); max-width: none; max-height: 88dvh; padding: 0; border: 1px solid #4c679d; border-radius: 28px;
    background: var(--r-panel); color: var(--r-ink); box-shadow: 0 32px 95px #000e; overflow: hidden; }
.reise-dialog[open] { display: flex; flex-direction: column; animation: reise-auf .28s cubic-bezier(.16, .8, .2, 1); }
.reise-dialog::backdrop { background: #020716c2; backdrop-filter: blur(8px); }
@keyframes reise-auf { from { opacity: .4; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
.reise-dialog-inhalt { overflow: auto; overscroll-behavior: contain; max-height: 88dvh; scrollbar-width: thin; scrollbar-color: #36527e transparent; }
.reise-zuknopf { position: absolute; top: 14px; right: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: #10243ff5; border: 1px solid #5a75a3; cursor: pointer; }
.reise-zuknopf:hover { background: #25436a; }
.reise-zuknopf svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.reise-dialog h2 { outline: none; }

/* level B — island */
.reise-ov-hero { position: relative; height: clamp(185px, 29vh, 280px); overflow: hidden; }
.reise-ov-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.reise-ov-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, #08152d0c 10%, #0d1c369c 69%, var(--r-panel) 100%); }
.reise-ov-herotext { position: absolute; left: clamp(1rem, 3vw, 2.2rem); right: 4rem; bottom: .8rem; z-index: 2; }
.reise-ov-herotext h2 { margin: .3rem 0; font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.02em; line-height: 1.05; }
.reise-ov-herotext p { margin: 0; color: #e3ecfc; }
.reise-chip { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--world); }
.reise-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.reise-ov-body { padding: 1rem clamp(1rem, 3vw, 2.2rem) 1.8rem; }
.reise-fortschritt { display: flex; gap: .9rem; align-items: center; margin: .2rem 0 1rem; }
.reise-fortschritt-text { flex: 1; display: grid; gap: .3rem; }
.reise-fortschritt-text .reise-balken { max-width: 260px; }
.reise-fortschritt-text small { color: var(--r-muted); }
.reise-kristall { width: 34px; height: 42px; flex: none; }
.reise-kristall path { fill: none; stroke: #3a4d72; stroke-width: 1.6; stroke-linejoin: round; }
.reise-kristall.is-voll path { fill: var(--world); stroke: #070e1c; filter: drop-shadow(0 0 6px var(--world)); }
.reise-ov-detail { color: var(--r-muted); margin: 0 0 1rem; max-width: 70ch; }
.reise-ov-h, .reise-md-h { margin: 1.1rem 0 .6rem; font-size: 1.1rem; font-weight: 800; }
.reise-missionen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.reise-mkarte { display: flex; gap: .75rem; align-items: center; min-height: 88px; padding: .5rem .8rem .5rem .5rem; border-radius: 1rem; text-decoration: none;
    background: #142844; border: 1px solid #2f4772; transition: background .15s, border-color .15s; }
.reise-mkarte:hover { background: #1b365a; border-color: #68a0e7; }
.reise-mkarte img { width: 96px; height: 80px; object-fit: cover; border-radius: .75rem; flex: none; background: var(--r-raised); }
.reise-mkarte-text { min-width: 0; flex: 1; display: grid; gap: .15rem; }
.reise-mkarte-text b { font-size: 1rem; line-height: 1.25; }
.reise-mkarte-sub { font-size: .82rem; color: var(--r-muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reise-tag { font-size: .74rem; font-weight: 700; color: #a1c5ff; }
.reise-mkarte.is-geschafft .reise-tag { color: var(--r-mint); }
.reise-mkarte.is-gesperrt .reise-tag { color: var(--r-lock); }
.reise-mkarte.is-nicht-verfuegbar .reise-tag { color: var(--r-muted); }
.reise-mkarte.is-gesperrt img { filter: grayscale(.6); }
.reise-chevron { font-size: 1.6rem; color: #adc8ee; padding: 0 .2rem; }
/* P3b: an age RECOMMENDATION — quiet, never a lock */
.reise-empfohlen { justify-self: start; font-size: .72rem; font-weight: 600; color: #c6d6ef; border: 1px solid #3b5583; border-radius: 999px; padding: .05rem .5rem; }
.reise-chip-empfohlen { color: #c6d6ef; }

/* level C — mission */
.reise-md { display: grid; grid-template-columns: 44% 56%; min-height: 510px; }
.reise-md-bild { position: relative; overflow: hidden; background: var(--r-raised); }
.reise-md-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.reise-md-info { padding: 1.8rem clamp(1.1rem, 3vw, 2.2rem) 1.8rem; }
.reise-heim { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .2rem .9rem; border-radius: .8rem; text-decoration: none;
    background: #142b4b; border: 1px solid #5576aa; color: #d5e8ff; font-weight: 700; margin-right: 3rem; }
.reise-md-info .reise-eyebrow { margin-top: 1rem; color: var(--world); }
.reise-md-info h2 { margin: .4rem 0 .7rem; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.02em; }
.reise-md-text { color: #c4d0e5; margin: 0; max-width: 60ch; }
.reise-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; padding: 0; }
.reise-chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid #334f7d; background: #142944;
    font-size: .82rem; color: #d5e3f8; }
.reise-md-stufe { margin: -.4rem 0 1rem; font-size: .82rem; line-height: 1.4; color: var(--r-muted); }
.reise-chips svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reise-chip-lang { max-width: 100%; }
/* steps: numbered cards in a row with arrows between them (reference screen 3) */
.reise-schritte { list-style: none; counter-reset: schritt; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.1rem; margin: 0; padding: 0; }
.reise-schritte li { position: relative; counter-increment: schritt; background: #152c4a; border: 1px solid #355078; border-radius: 1rem; padding: .7rem .65rem; display: grid; gap: .3rem; align-content: start; }
.reise-schritte li:not(:last-child)::after { content: ""; position: absolute; right: -.95rem; top: 50%; width: .8rem; height: .8rem; translate: 0 -50%;
    background: #9fb6d9; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 359px) {
    .reise-schritte { grid-auto-flow: row; }
    .reise-schritte li:not(:last-child)::after { right: 50%; top: auto; bottom: -.95rem; translate: 50% 0; rotate: 90deg; }
}
.reise-schritte li::before { content: counter(schritt); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
    background: #4ce3ab; color: #09243b; font-weight: 800; font-size: .85rem; }
.reise-schritte li:nth-child(2)::before { background: #65aaff; }
.reise-schritte li:nth-child(3)::before { background: #b18bff; }
.reise-schritte b { font-size: .9rem; line-height: 1.3; }
.reise-schritte span { font-size: .8rem; color: #a9bdd9; line-height: 1.4; }
.reise-ergebnis { display: flex; gap: .7rem; align-items: center; margin: 1rem 0 0; padding: .75rem .9rem; border-radius: 1rem; background: #172b4d; border: 1px solid #384c85; }
.reise-ergebnis svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--r-amber); stroke-width: 2; stroke-linejoin: round; }
.reise-ergebnis b { display: block; font-size: .9rem; }
.reise-ergebnis span { font-size: .85rem; color: #b6c4dd; }
/* "Gut zu wissen": device and age hints (P3c) */
.reise-gut { display: flex; gap: .7rem; align-items: flex-start; margin: .8rem 0 0; padding: .75rem .9rem; border-radius: 1rem; background: #142844; border: 1px solid #355078; }
.reise-gut svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #ffd36c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reise-gut b { display: block; font-size: .9rem; }
.reise-gut span { display: block; font-size: .85rem; color: #b6c4dd; margin-top: .15rem; }
.reise-md-status { margin: 1rem 0 .4rem; font-size: .9rem; color: var(--r-muted); font-weight: 600; }
.reise-md-status.is-geschafft [data-status-text] { color: var(--r-mint); }
.reise-md-status.is-gesperrt [data-status-text] { color: var(--r-lock); }
.reise-sperre { margin-top: .6rem; }
.reise-sperre.is-gesperrt .reise-start { display: none; }
.reise-sperre:not(.is-gesperrt) .reise-schloss { display: none; }
.reise-schloss { display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; border-radius: 1rem; border: 1px solid #7a6440; background: #2a2416; color: var(--r-lock); }
.reise-schloss svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.reise-schloss b { display: block; }
.reise-schloss span { display: block; font-size: .85rem; color: #f2dcb2; }
.reise-grund { margin: .6rem 0 0; color: var(--r-muted); font-size: .9rem; }
.reise-start { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; min-height: 52px; padding: .8rem 1.1rem; border: 0; border-radius: 1.1rem;
    background: linear-gradient(180deg, #ffd36c, #ffbb3e); color: #102039; font-weight: 800; font-size: 1.05rem; text-decoration: none; cursor: pointer;
    box-shadow: 0 6px 19px #ffb53a1b; }
.reise-start:hover { filter: brightness(1.06); }
.reise .reise-start, .reise-dialog .reise-start { color: #102039; }
.reise-teaser .reise-start { width: auto; padding: .8rem 1.6rem; }

/* base and onboarding */
.reise-basisansicht, .reise-einstieg { padding: 1.6rem clamp(1.1rem, 3vw, 2.2rem) 1.8rem; }
/* P3e: the base island with the avatar on its glowing pad (base dialog and base view) — no built-in character. The pad's
   front edge sits at 46 % of the picture's height (basis-580.webp, 580:503), the figure's feet stand there. */
.reise-basis-buehne { position: relative; width: min(16rem, 72%); aspect-ratio: 580 / 503; margin: 2.2rem auto .6rem; }
.reise-basis-buehne-insel { display: block; width: 100%; height: 100%; filter: drop-shadow(0 12px 18px #000a); }
.reise-basis-buehne-figur { position: absolute; left: 50%; bottom: 54%; width: 38%; aspect-ratio: 1 / 1.1; translate: -50% 0; filter: drop-shadow(0 4px 3px #0009); }
.reise-basis-buehne-figur.is-bild { aspect-ratio: 3 / 4; }
.reise-basis-buehne-figur img, .reise-basis-buehne-figur svg { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.reise-basisansicht h2, .reise-einstieg h2 { margin: .3rem 0 .6rem; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; }
.reise-einstieg > p { color: var(--r-muted); max-width: 62ch; }
.reise-basis-oben { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.reise-basis-alter { margin: 0 0 .5rem; font-weight: 700; }
.reise-basis-zahl { margin: 0; color: var(--r-muted); }
.reise-basis-zahl strong { color: var(--r-amber-soft); font-size: 1.15rem; }
.reise-kristalle { list-style: none; display: flex; gap: .4rem; margin: .5rem 0 0; padding: 0; }
.reise-pokale, .reise-extras, .reise-werke { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .45rem; }
.reise-pokale li, .reise-extras li, .reise-werke li { display: grid; gap: .1rem; padding: .55rem .7rem; border-radius: .8rem; background: #142844; border: 1px solid #2f4772; }
.reise-pokale li { grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; }
.reise-pokale svg { width: 24px; height: 22px; grid-row: span 2; fill: #3a4d72; }
.reise-pokale li.is-geschafft svg { fill: var(--r-amber); }
.reise-pokale small, .reise-extras small, .reise-werke small { color: var(--r-muted); font-size: .78rem; }
.reise-extras li.is-frei { border-color: var(--r-mint); }
.reise-werke li { grid-template-columns: 1fr; }
.reise-hinweis { color: var(--r-muted); font-size: .85rem; margin: .8rem 0 0; }
.reise-knopfreihe { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.reise-knopfreihe--ende { justify-content: flex-end; margin-top: 1.2rem; }
.reise-knopfreihe--ende .reise-start { width: auto; padding: .7rem 1.4rem; }
.reise-knopf { min-height: 44px; padding: .45rem 1rem; border-radius: .8rem; border: 1px solid #42618b; background: #1a304f; color: #f7fbff; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.reise-knopf:hover { border-color: #8bb5f0; }
.reise-knopf--leise { background: #142845; color: #c6dbf5; font-weight: 600; }
.reise-opt { display: block; margin: 1rem 0 0; }
.reise-opt > span { display: block; font-weight: 800; font-size: .82rem; color: #a9c4ef; margin-bottom: .45rem; }
.reise-opt select { min-height: 44px; padding: .4rem .7rem; border-radius: .7rem; border: 1px solid #435e8a; background: #1a304f; }
.reise-chips-wahl { display: flex; gap: .4rem; flex-wrap: wrap; }
.reise-chips-wahl button { min-width: 44px; min-height: 44px; padding: .35rem .7rem; border-radius: .75rem; border: 1px solid #435e8a; background: #1a304f; font-weight: 700; cursor: pointer; }
.reise-chips-wahl button[aria-pressed="true"] { background: #4ce4ad; border-color: #4ce4ad; color: #08243b; }
.reise-chips-wahl .reise-alter-erwachsen { padding: .35rem .9rem; }
.reise-chips-wahl button.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px #4ce4ad; }
.reise-chips-wahl button.sw { padding: 0; width: 44px; }
.reise-chips-wahl button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.reise-builder { display: grid; grid-template-columns: 8rem 1fr; gap: 1.2rem; align-items: start; margin-top: 1rem; }
.reise-prev { width: 8rem; height: 8.8rem; border-radius: 1rem; background: var(--r-raised); }
/* P3d: the illustrated avatars as tiles in the base dialog. P3e: a grid for 10 to 15 avatars — four columns on a phone */
.reise-avatar-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.1rem, 1fr)); gap: .5rem; max-width: 40rem; }
.reise-avatar-kachel { position: relative; display: grid; justify-items: center; gap: .25rem; padding: .5rem .25rem .45rem; min-height: 44px; min-width: 0;
    border-radius: 1rem; border: 2px solid #435e8a; background: radial-gradient(ellipse at 50% 80%, #2a4775 0, #1a304f 70%); color: #f7fbff;
    font-weight: 800; cursor: pointer; }
.reise-avatar-kachel img { display: block; width: 100%; max-width: 5rem; height: auto; aspect-ratio: 3 / 4; object-fit: contain; object-position: 50% 100%; }
.reise-avatar-kachel span { font-size: .78rem; line-height: 1.15; text-align: center; hyphens: auto; }
.reise-avatar-kachel:hover { border-color: #8bb5f0; }
.reise-avatar-kachel:focus-visible { outline: 3px solid var(--r-amber-soft); outline-offset: 3px; }
.reise-avatar-kachel[aria-pressed="true"] { border-color: #4ce4ad; background: radial-gradient(ellipse at 50% 80%, #2f6d63 0, #173b44 72%); box-shadow: 0 0 0 2px #4ce4ad, 0 0 18px #4ce4ad66; }
.reise-avatar-kachel[aria-pressed="true"]::after { content: "\2713"; position: absolute; right: .4rem; top: .35rem; width: 1.5rem; height: 1.5rem;
    display: grid; place-items: center; border-radius: 50%; background: #4ce4ad; color: #08243b; font-size: .9rem; }
.reise-fehler { color: #ffb4b4; font-weight: 700; }

/* toasts */
.reise-toast { position: fixed; right: 1rem; top: calc(env(safe-area-inset-top, 0px) + 1rem); transform: translateX(130%); pointer-events: none;
    background: #1a2440; border: 1px solid #3b4d74; padding: .6rem .9rem .7rem; border-radius: .8rem; box-shadow: 0 12px 30px #0008;
    transition: transform .35s cubic-bezier(.2, 1.2, .4, 1); max-width: min(360px, 90vw); z-index: 1080; display: flex; gap: .7rem; align-items: center; }
.reise-toast.show { transform: none; }
.reise-toast .ic { width: 2.2rem; height: 2.2rem; flex: 0 0 auto; display: grid; place-items: center; border-radius: .5rem; background: var(--r-amber); color: #1a1203; }
.reise-toast .ic svg { width: 70%; height: 70%; }
.reise-toast b { display: block; color: var(--r-amber-soft); font-size: .85rem; }
.reise-toast span { font-weight: 700; }

/* ── mobile: the dialog becomes a bottom sheet with a grip ─────────────── */
@media (max-width: 640px) {
    .reise { padding: .8rem .6rem 1rem; border-radius: 1.2rem; }
    .reise-dialog { width: 100%; max-height: 92dvh; margin: auto auto 0; border-radius: 24px 24px 0 0; border-bottom: 0; }
    .reise-dialog::before { content: ""; position: absolute; z-index: 6; left: 50%; top: 8px; width: 44px; height: 5px; translate: -50% 0; border-radius: 9px;
        background: #ffffff59; pointer-events: none; }
    .reise-dialog-inhalt { max-height: 92dvh; }
    .reise-missionen { grid-template-columns: 1fr; }
    .reise-mkarte img { width: 78px; height: 70px; }
    .reise-md { display: block; min-height: 0; }
    .reise-md-bild { height: 210px; }
    .reise-builder { grid-template-columns: 1fr; }
    .reise-prev { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .reise *, .reise *::before, .reise *::after, .reise-dialog, .reise-dialog *, .reise-toast { animation: none !important; transition: none !important; }
}
