/* Shared touch shell. Both WebAssembly and the MAUI WebView load this file. */
:root {
    --student-dock-space: calc(6.25rem + max(env(safe-area-inset-bottom), var(--jobz-native-safe-bottom, 0px)));
    --student-top-clearance: 4.25rem;
    --student-motion-fast: 160ms;
    --student-motion-enter: 320ms;
    --student-ease: cubic-bezier(.2, .8, .2, 1);
}
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { touch-action: manipulation; }
.student-dialog-open { overflow: hidden; }
.student-page-content, .jobz-mobile-page { min-width: 0; }
.jobz-mobile-navigation {
    position: fixed;
    inset: auto max(.75rem, max(env(safe-area-inset-right), var(--jobz-native-safe-right, 0px))) max(.6rem, max(env(safe-area-inset-bottom), var(--jobz-native-safe-bottom, 0px))) max(.75rem, max(env(safe-area-inset-left), var(--jobz-native-safe-left, 0px)));
    z-index: var(--student-layer-navigation, 40);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .25rem;
    width: auto;
    max-width: 22rem;
    margin-inline: auto;
    padding: .4rem;
    border: 1px solid var(--border);
    border-radius: 1.6rem;
    background: var(--card);
    box-shadow: 0 8px 32px #09263520, 0 2px 6px #09263508;
}
.jobz-mobile-navigation a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-width: 0;
    min-height: 3.5rem;
    padding: .45rem .1rem;
    border-radius: 1.15rem;
    color: var(--muted-foreground);
    font-size: .66rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color var(--student-motion-fast), color var(--student-motion-fast), transform var(--student-motion-fast);
}
.jobz-mobile-navigation svg { width: 1.35rem; height: 1.35rem; flex: none; stroke-width: 1.8; }
.jobz-mobile-navigation a.active { background: var(--vibe-mint); color: var(--vibe-night); }
.jobz-mobile-navigation a.active svg { animation: student-nav-pop var(--student-motion-enter) var(--student-ease) both; }
.jobz-mobile-navigation a:active { transform: scale(.95); }
.jobz-mobile-navigation a:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; }
.student-web-shell:has(.student-explore--map) .student-footer { display: none; }
.student-radar-search-panel { transition: background-color 180ms, box-shadow 180ms; }
.student-radar-search-results { min-height: 0; }
.student-radar-search-panel .student-radar-filter-option { min-height: 2.75rem !important; }
.student-radar-ticket-jump { min-height: 2.75rem; display: inline-flex; align-items: center; }
.student-radar-ticket-copy strong, .student-radar-ticket-copy small { white-space: normal; overflow-wrap: anywhere; }
.student-radar-ticket-copy small { line-height: 1.45; }
.student-radar-search-field input { font-size: 1rem; }
.student-radar-region-info a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Keep primary actions on the app's shared brand treatment even when the
   component library's utility styles are loaded after app.css. */
.jobz-mobile-page button.bg-primary:not(.youth-primary-action),
.jobz-mobile-page a.bg-primary:not(.youth-primary-action) {
    background-image: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--accent) 52%, var(--primary))) !important;
    border-radius: 1rem !important;
    box-shadow: 0 .7rem 1.4rem color-mix(in srgb, var(--primary) 28%, transparent);
    min-height: 3rem;
}
.jobz-mobile-page button.bg-primary:not(.youth-primary-action):hover,
.jobz-mobile-page a.bg-primary:not(.youth-primary-action):hover { filter: brightness(1.04); }

@keyframes student-nav-pop { from { transform: scale(.75) translateY(3px); } to { transform: scale(1) translateY(0); } }

@media (max-width: 767px) {
    .student-footer { padding-bottom: var(--student-dock-space); flex-wrap: wrap; }
    .student-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
    .youth-page { padding-bottom: var(--student-dock-space); }
    .seo-page-shell { padding-bottom: var(--student-dock-space); }
    .seo-page-main, .seo-page, .seo-page > *, .seo-profile-heading, .seo-story-panel { min-width: 0; max-width: 100%; }
    .seo-trail { flex-wrap: wrap; }
    .seo-trail, .seo-link-list, .seo-story-panel, .seo-profile-lead { overflow-wrap: anywhere; }
    .seo-scope-filters { flex-wrap: wrap; }
    .seo-pin-search input { font-size: 1rem; min-width: 0; }
    .seo-gallery { grid-template-columns: minmax(0, 1fr); }
    .seo-apply-card { position: relative; }
    .student-map-copy { top: calc(5.5rem + max(env(safe-area-inset-top), var(--jobz-native-safe-top, 0px))); left: 1rem; right: 1rem; max-width: 27rem; padding: 1rem; }
    .student-map-copy h1 { font-size: clamp(1.6rem, 6.5vw, 2.1rem); line-height: 1.12; overflow-wrap: anywhere; }
    .student-map-copy > p:last-child { margin-top: .65rem; font-size: .9rem; }
    .student-radar-search-results { flex: 1 1 auto; max-height: none; }
    .student-radar-search-panel .student-radar-filter-options { gap: .4rem; flex-shrink: 0; }
    .student-radar-search-panel .student-radar-filter-option { flex: 1 1 auto; font-size: .75rem; white-space: normal; line-height: 1.3; }
    .student-radar-search-stack { flex-shrink: 0; }
}
.student-radar-search-stack .student-radar-search-error {
    position: static;
    bottom: auto;
    left: auto;
    z-index: auto;
    width: 100%;
    max-width: none;
    margin: 0 0 .35rem;
    transform: none;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    white-space: normal;
    overflow-wrap: anywhere;
}
.student-radar-search-error svg { flex: none; }
.student-radar-search-error span { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
.student-explore--chooser .student-radar-search-panel--chooser {
    position: relative;
    inset: auto;
    transform: none;
    width: min(100%, 36rem);
    max-height: none;
    margin: 1.25rem auto 0;
    transition: none;
}
.student-radar-search-panel--chooser .student-radar-search-results { overflow: visible; max-height: none; }
@media (max-width: 767px) {
    .student-explore--chooser { min-height: 100dvh; padding: calc(5.75rem + max(env(safe-area-inset-top), var(--jobz-native-safe-top, 0px))) 1rem var(--student-dock-space); background: var(--vibe-night); }
    .student-explore--chooser .student-radar-initializing { position: relative; inset: auto; display: flex; flex-direction: column; gap: 1rem; min-height: 0; height: auto; padding: .5rem 0; }
    .student-explore--chooser .student-radar-initializing-orbit { width: 4.75rem; height: 4.75rem; flex: none; }
    .student-explore--chooser .student-radar-initializing-copy { max-width: 25rem; text-align: center; }
    .student-explore--chooser .student-radar-initializing-copy h1 { font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.05; margin: 0; text-wrap: balance; }
    .student-radar-start-hint { color: #d8e8e6; font-size: .9rem; margin: 1rem 0 0; }
    .student-radar-region-info { display: none; }
    .student-interest-whisper { top: auto; bottom: calc(var(--student-dock-space) + 9rem); max-width: calc(100% - 2rem); white-space: normal; text-align: center; }
    .company-profile-dialog { margin: .5rem auto; width: calc(100% - 1rem); max-width: 36rem; height: auto; max-height: calc(100dvh - 1rem - max(env(safe-area-inset-top), var(--jobz-native-safe-top, 0px)) - max(env(safe-area-inset-bottom), var(--jobz-native-safe-bottom, 0px))); border-radius: 1.5rem; }
    .company-profile { height: auto; min-height: 0; }
    .company-profile-header { padding: 1rem; flex: none; gap: .5rem; }
    .company-profile-header h2, .company-profile-header p { white-space: normal; overflow-wrap: anywhere; }
    .company-profile-header button { min-width: 2.75rem; min-height: 2.75rem; }
    .company-profile-body { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; }
    .company-profile-media { flex: none; height: 11rem; min-height: 0; }
    .company-profile-content { flex: none; overflow: visible; padding: 1.25rem; }
    .company-brief { min-height: 0; }
    .company-keyfacts-actions { flex-wrap: wrap; }
    .company-keyfacts-actions > * { flex: 1 1 10rem; }
}

/* Native always has a dock, including landscape/tablet sizes. */
.jobz-mobile-page .youth-page, .jobz-mobile-page .seo-page-shell { padding-bottom: var(--student-dock-space); }
.jobz-mobile-page .student-explore--chooser { padding-top: calc(2rem + max(env(safe-area-inset-top), var(--jobz-native-safe-top, 0px))); }
@media (max-height: 500px) and (max-width: 767px) {
    .student-explore--chooser .student-radar-initializing-orbit { display: none; }
    .student-map-copy { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .jobz-mobile-navigation *, .student-radar-search-panel, .student-radar-initializing-orbit,
    .student-radar-initializing-orbit::before, .student-radar-initializing-orbit::after { animation: none !important; transition: none !important; }
}
@media (max-width: 767px) {
    .student-explore--chooser .student-radar-initializing { align-items: center; background: transparent; }
    .student-explore--chooser .student-radar-initializing-orbit { position: relative; opacity: 1; }
    .student-explore--chooser .student-radar-initializing-copy { position: static; inset: auto; transform: none; width: 100%; }
}
.jobz-mobile-page .student-explore--chooser .student-radar-initializing { align-items: center; background: transparent; }
.jobz-mobile-page .student-explore--chooser .student-radar-initializing-copy { position: static; inset: auto; transform: none; width: 100%; }
/* Stadtwähler ab Tablet-Breite: Überschrift, Suchfeld und Trefferliste stehen untereinander im Seitenfluss.
   Fest über der Seite positioniert lag das Suchfeld auf der Überschrift, und eine lange Liste lief aus dem Bild. */
@media (min-width: 768px) {
    .student-explore--chooser {
        align-items: center;
        background:
            radial-gradient(circle at 72% 24%, color-mix(in srgb, var(--vibe-aqua) 34%, transparent), transparent 19rem),
            radial-gradient(circle at 22% 78%, color-mix(in srgb, var(--vibe-mint) 18%, transparent), transparent 17rem),
            var(--vibe-night);
        display: flex;
        flex-direction: column;
        padding: clamp(5rem, 16vh, 9rem) 1.5rem var(--student-dock-space);
    }
    .student-explore--chooser .student-radar-initializing { align-items: center; background: transparent; display: flex; flex-direction: column; min-height: 0; padding: 2rem 0 0; position: relative; width: 100%; }
    .student-explore--chooser .student-radar-initializing-orbit { top: 50%; transform: translateY(-50%); }
    .student-explore--chooser .student-radar-initializing-copy { inset: auto; position: relative; transform: none; width: min(36rem, 100%); }
    .student-explore--chooser .student-radar-region-info { margin-top: 3.5rem; }
}
[id^="dialog-"][id$="-overlay"] { background-color: rgb(9 38 53 / .62); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: reduce) {
    [id^="dialog-"][id$="-overlay"], [role="dialog"], [role="alertdialog"] { animation: none !important; transition: none !important; }
}
.dark .youth-interest-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--vibe-mint) 12%, var(--card)); }

/* Applying stays in the offer content; a second floating CTA would overlap the dock. */
.seo-apply-sticky { display: none; }

/* Touch controls share the soft shape of the floating dock. */
:where(.youth-page, .seo-page-shell, .student-explore, .company-profile, .jobz-mobile-shell, [role="dialog"], [role="alertdialog"]) :is(button, [role="button"], a[data-slot="button"], a.bg-primary, a.bg-secondary) { border-radius: 1rem; }
.company-story-frame { flex: none; contain: layout paint; }
.company-story-media { position: absolute; inset: 0; max-height: 100%; }
.company-media { min-width: 0; position: relative; isolation: isolate; }
@media (max-width: 640px) {
    :is([role="dialog"], [role="alertdialog"]):not([data-state="closed"]):not([data-mobile-layout="fullscreen"]) {
        position: fixed !important;
        inset: auto 0 0 !important;
        width: 100% !important;
        max-width: none !important;
        max-height: calc(100dvh - max(1rem, max(env(safe-area-inset-top), var(--jobz-native-safe-top, 0px)))) !important;
        height: auto;
        margin: 0 !important;
        transform: none;
        translate: 0 0 !important;
        border-radius: 1.75rem 1.75rem 0 0 !important;
        padding-top: 1.75rem;
        padding-bottom: max(1.25rem, max(env(safe-area-inset-bottom), var(--jobz-native-safe-bottom, 0px)));
        overflow-y: auto;
        overscroll-behavior: contain;
        animation: student-sheet-enter 260ms var(--student-ease);
    }
    :is([role="dialog"], [role="alertdialog"]):not([data-mobile-layout="fullscreen"])::before {
        content: ""; display: block; position: absolute; top: .65rem;
        left: calc(50% - 1.25rem); width: 2.5rem; height: .25rem;
        border-radius: 999px; background: var(--muted-foreground); opacity: .4;
    }
    :is([role="dialog"], [role="alertdialog"]) :is(form, [data-slot="dialog-description"]) { min-width: 0; }
}
@keyframes student-sheet-enter { from { transform: translateY(100%); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    :is([role="dialog"], [role="alertdialog"]) { animation: none !important; }
}
@media (max-width: 640px) {
    .company-profile-dialog .company-profile { height: auto; }
    .company-profile-dialog :is(.company-profile-body, .company-profile-content) { overflow: visible; height: auto; max-height: none; }
    .company-profile-dialog .company-profile-media { height: auto; padding: 1rem; }
    .company-profile-dialog .company-story-stage { height: auto; }
    .company-profile-dialog .company-story-frame { height: 12rem; width: 100%; max-height: none; aspect-ratio: auto; }
    .company-profile-dialog .company-profile-header { padding-top: 1rem !important; }
    .careerpass-stable-dialog :is(.careerpass-dialog-body, .careerpass-step-body) { overflow: visible; max-height: none; }
}
.student-sheet-handle { display: none; }
@media (max-width: 640px) {
    .student-sheet-handle { display: block; position: absolute; inset: 0 3.5rem auto; height: 1.75rem; z-index: 2; touch-action: none; cursor: grab; }
    .student-sheet-handle::after { content: ""; position: absolute; top: .65rem; left: calc(50% - 1.25rem); width: 2.5rem; height: .25rem; border-radius: 999px; background: var(--muted-foreground); opacity: .4; }
}

/* ===== Liquid Glass: gemeinsame Flächen der schwebenden Bedienelemente ===== */
:root {
    --student-float-top: calc(max(env(safe-area-inset-top), var(--jobz-native-safe-top, 0px)) + .75rem);
    --student-float-side: max(.75rem, env(safe-area-inset-right), var(--jobz-native-safe-right, 0px));
    --student-control: 3rem;
    --glass-fill: linear-gradient(150deg, color-mix(in srgb, var(--card) 74%, transparent), color-mix(in srgb, var(--card) 44%, transparent));
    --glass-fill-strong: linear-gradient(150deg, color-mix(in srgb, var(--card) 90%, transparent), color-mix(in srgb, var(--card) 78%, transparent));
    --glass-border: rgb(255 255 255 / .62);
    --glass-shadow: 0 12px 32px rgb(9 38 53 / .16), 0 2px 8px rgb(9 38 53 / .08);
    --glass-highlight: inset 0 1px 0 rgb(255 255 255 / .7), inset 0 -1px 0 rgb(255 255 255 / .12);
    --glass-blur: blur(24px) saturate(180%);
    --glass-text: var(--foreground);
    --glass-muted: var(--muted-foreground);
    --glass-solid: var(--card);
}
/* Dunkle Variante: im dunklen Design und überall über der Karte, die immer dunkel ist. */
.dark,
:is(.student-web-shell, .jobz-mobile-shell):has(.student-explore--map) {
    --glass-fill: linear-gradient(150deg, rgb(255 255 255 / .24), rgb(255 255 255 / .07)), rgb(9 38 53 / .42);
    --glass-fill-strong: linear-gradient(150deg, rgb(255 255 255 / .12), rgb(255 255 255 / .04)), rgb(9 38 53 / .88);
    --glass-border: rgb(255 255 255 / .28);
    --glass-shadow: 0 14px 36px rgb(2 12 18 / .42), 0 2px 8px rgb(2 12 18 / .28);
    --glass-highlight: inset 0 1px 0 rgb(255 255 255 / .38), inset 0 -1px 0 rgb(255 255 255 / .06);
    --glass-text: #fff;
    --glass-muted: rgb(255 255 255 / .74);
    --glass-solid: #0f3142;
}
.student-glass,
.student-glass-button,
.student-glass-panel,
.jobz-mobile-navigation {
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), var(--glass-shadow);
    color: var(--glass-text);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}
.student-glass-panel { background: var(--glass-fill-strong); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .student-glass, .student-glass-button, .student-glass-panel, .jobz-mobile-navigation { background: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce) {
    .student-glass, .student-glass-button, .student-glass-panel, .jobz-mobile-navigation {
        background: var(--glass-solid);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

/* Runde Glas-Knöpfe oben rechts: Glocke, Design, Einloggen. */
.student-top-controls {
    position: fixed;
    z-index: var(--student-layer-floating, 30);
    top: var(--student-float-top);
    right: var(--student-float-side);
    display: flex;
    align-items: center;
    gap: .5rem;
    pointer-events: none;
    transition: opacity var(--student-motion-enter) var(--student-ease), transform var(--student-motion-enter) var(--student-ease), visibility 0s;
}
.student-top-controls > *, .student-top-controls .student-glass-button { pointer-events: auto; }
.student-top-controls .student-glass-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: var(--student-control);
    height: var(--student-control);
    flex: none;
    padding: 0;
    border-radius: 999px;
    color: var(--glass-text);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--student-motion-fast) var(--student-ease);
}
.student-top-controls .student-glass-button:active { transform: scale(.94); }
.student-top-controls .student-glass-button:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.student-top-controls .student-glass-button svg { stroke-width: 1.9; }
:is(.student-web-shell):has(.student-explore--map) .student-theme-toggle { display: none; }
.student-glass-panel { border-radius: 1.5rem; }

/* ===== Hauptnavigation: drei Bereiche mit gleitender Linse ===== */
.jobz-mobile-navigation {
    --nav-pad: .35rem;
    --nav-gap: .2rem;
    --lens: 0;
    isolation: isolate;
    max-width: 22rem;
    padding: var(--nav-pad);
    gap: var(--nav-gap);
    border-radius: 2rem;
    transition: transform var(--student-motion-enter) var(--student-ease), opacity var(--student-motion-enter) var(--student-ease), visibility 0s;
}
.jobz-mobile-navigation::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: var(--nav-pad);
    bottom: var(--nav-pad);
    left: var(--nav-pad);
    width: calc((100% - 2 * var(--nav-pad) - 2 * var(--nav-gap)) / 3);
    border-radius: 1.65rem;
    background: linear-gradient(150deg, rgb(199 242 153 / .96), rgb(199 242 153 / .72));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 4px 14px rgb(120 190 60 / .32);
    opacity: 0;
    transform: translateX(calc(var(--lens) * (100% + var(--nav-gap))));
    transition: transform 420ms cubic-bezier(.3, 1.35, .5, 1), opacity 200ms linear;
}
.jobz-mobile-navigation:has(a.active)::before { opacity: 1; }
.jobz-mobile-navigation:has(a:nth-child(2).active) { --lens: 1; }
.jobz-mobile-navigation:has(a:nth-child(3).active) { --lens: 2; }
.jobz-mobile-navigation { background: var(--glass-fill-strong); }
.jobz-mobile-navigation a { position: relative; z-index: 1; color: color-mix(in srgb, var(--glass-text) 78%, transparent); font-size: .72rem; }
.jobz-mobile-navigation a.active { background: transparent; color: var(--vibe-night); }

/* ===== Seiten und Fußzeile hinter der schwebenden Navigation auf jeder Breite ===== */
.student-footer { padding-bottom: var(--student-dock-space); }
.youth-page, .seo-page-shell { padding-bottom: var(--student-dock-space); }

/* ===== Karte: Vollbild, oben Finden (Suche, Filter, Treffer), unten Losgehen ===== */
.student-explore--map { position: fixed; inset: 0; height: 100dvh; min-height: 0; overflow: clip; }
.student-explore--map .student-map-stage { position: absolute; inset: 0; height: auto; }
.student-explore--map .student-map-copy { top: calc(var(--student-float-top) + 4.5rem); left: max(1rem, var(--student-float-side)); right: 1rem; }
.student-explore--map .student-interest-whisper { top: calc(var(--student-float-top) + 3.6rem); }
.student-explore--map .student-radar-map-credit {
    position: absolute;
    z-index: 3;
    top: calc(var(--student-float-top) + var(--student-control) + .3rem);
    left: max(1rem, env(safe-area-inset-left), var(--jobz-native-safe-left, 0px));
    padding: 0;
    text-align: left;
    pointer-events: auto;
}
.student-explore--map .student-radar-search-panel {
    position: fixed;
    top: calc(var(--vv-top, 0px) + var(--student-float-top));
    bottom: auto;
    left: max(.75rem, env(safe-area-inset-left), var(--jobz-native-safe-left, 0px));
    right: calc(var(--student-float-side) + var(--student-control) + .5rem);
    width: auto;
    max-width: 36rem;
    transform: none;
    flex-direction: column;
    gap: .5rem;
    padding: 0;
    border-radius: 1.5rem;
    max-height: calc(var(--vv-height, 100dvh) - var(--student-float-top) - var(--student-dock-space) - 4.5rem);
    transition: background-color var(--student-motion-fast), box-shadow var(--student-motion-fast);
}
.student-explore--map .student-radar-search-panel--open {
    padding: .5rem;
    background: var(--glass-solid);
    border: 1px solid var(--glass-border);
}
.student-explore--map .student-radar-search-panel--active {
    /* Derselbe Rahmen für Laden, Treffer und leere Suche. Nur die Liste scrollt. */
    height: min(39rem, calc(var(--vv-height, 100dvh) - var(--student-float-top) - var(--student-dock-space) - .75rem));
    max-height: none;
    transition: none;
}
.student-radar-search-panel--active .student-radar-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
    align-items: center;
}
.student-radar-search-close {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--glass-text);
}
.student-radar-search-close:hover { background: var(--glass-fill); }
.student-radar-search-field:focus-within,
.student-radar-search-panel :is(button, a):focus-visible {
    outline: 2px solid var(--vibe-mint);
    outline-offset: -2px;
}
.student-explore--map:has(.student-radar-search-panel--active) .student-radar-map-credit {
    top: auto;
    bottom: var(--student-dock-space);
}
@media (max-width: 767px) {
    .student-explore--map .student-radar-search-panel--active {
        right: max(.75rem, env(safe-area-inset-right), var(--jobz-native-safe-right, 0px));
        max-width: none;
    }
    .student-explore--map .student-radar-search-panel--active .student-radar-filter-option {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    /* Ist der visuelle Viewport kleiner als die Seite, liegt die Navigation darunter. */
    :is(.student-web-shell, .jobz-mobile-shell):has(.student-radar-search-panel--active) {
        --student-search-bottom: clamp(.75rem, calc(var(--student-dock-space) - (100dvh - var(--vv-height, 100dvh))), var(--student-dock-space));
    }
    .student-explore--map .student-radar-search-panel--active {
        height: calc(var(--vv-height, 100dvh) - var(--student-float-top) - var(--student-search-bottom, var(--student-dock-space)) - .75rem);
    }
}
.student-explore--map .student-radar-search-panel .student-radar-search-field {
    min-height: var(--student-control);
    background: var(--glass-fill) !important;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-highlight), var(--glass-shadow);
    color: var(--glass-text);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}
.student-explore--map .student-radar-search-panel--open .student-radar-search-field { box-shadow: none; backdrop-filter: none; }
.student-explore--map .student-radar-search-panel .student-radar-search-field input { color: var(--glass-text); }
.student-explore--map .student-radar-search-panel .student-radar-search-field input::placeholder { color: var(--glass-muted); }
.student-explore--map .student-radar-search-panel .student-radar-filter-options { margin: 0; padding: 0; width: 100%; justify-content: flex-start; }
.student-explore--map .student-radar-search-results { max-height: none; overflow-y: auto; overscroll-behavior: contain; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .student-explore--map .student-radar-search-panel--open,
    .student-explore--map .student-radar-search-panel .student-radar-search-field { background: var(--glass-solid) !important; }
}
@media (prefers-reduced-transparency: reduce) {
    .student-explore--map .student-radar-search-panel--open,
    .student-explore--map .student-radar-search-panel .student-radar-search-field {
        background: var(--glass-solid) !important;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

/* ===== Explore läuft: alle seitenweiten Bedienelemente weg, nur die Spielsteuerung bleibt ===== */
body.vrw-playing .jobz-mobile-navigation {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(160%);
    transition: transform var(--student-motion-enter) var(--student-ease), opacity var(--student-motion-fast) linear, visibility 0s linear var(--student-motion-enter);
}
body.vrw-playing :is(.student-top-controls, .student-radar-search-panel, .student-interest-whisper, .student-map-copy, .jobz-mobile-back) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--student-motion-fast) linear, visibility 0s linear var(--student-motion-fast);
}
body.vrw-playing .student-explore--map .student-radar-map-credit {
    top: auto;
    left: 50%;
    bottom: max(.2rem, env(safe-area-inset-bottom), var(--jobz-native-safe-bottom, 0px));
    transform: translateX(-50%);
    font-size: .6rem;
    white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
    .jobz-mobile-navigation::before, .jobz-mobile-navigation, .student-top-controls { transition: none !important; }
    body.vrw-playing .jobz-mobile-navigation, body.vrw-playing :is(.student-top-controls, .student-radar-search-panel, .student-interest-whisper, .student-map-copy, .jobz-mobile-back) { transition: none !important; }
}

/* Schwebende Knöpfe oben rechts: Seiten beginnen darunter, damit nichts verdeckt wird. */
.youth-page { padding-top: max(1.5rem, calc(var(--student-float-top) + var(--student-control) + .5rem)); }
.jobz-mobile-back:active { transform: scale(.94); }


/* Aktives Ziel direkt unter der Suche, an das Suchfeld angedockt: gleiche Glasfläche, Rundung und Knopfform wie
   Suche, „Explore starten“ und die untere Navigation. Neben der Karte bleibt Platz zum Spielen. */
.network-journey:empty { display:none; }
.network-journey { pointer-events:auto; color:var(--glass-text,#fff); }
.network-journey:not(.network-journey--card):not(:empty) { display:flex; align-items:center; gap:.75rem; padding:.75rem; border-radius:1.5rem; background:var(--glass-fill-strong); border:1px solid var(--glass-border); box-shadow:var(--glass-highlight),var(--glass-shadow); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur); }
.network-journey:not(.network-journey--card) [role=status] { display:grid; line-height:1.35; flex:1; min-width:0; }
.network-journey:not(.network-journey--card) small { color:var(--vr-mint,#c7f299); }
.network-journey:not(.network-journey--card) span { font-size:.85rem; }
.network-journey:not(.network-journey--card) button { min-height:44px; min-width:44px; border:0; border-radius:999px; background:var(--vr-mint,#c7f299); color:#092635; font-weight:700; cursor:pointer; padding:.4rem 1rem; }
.nj { display:grid; grid-template-columns:minmax(0,1fr); gap:.6rem; padding:.75rem; border-radius:1.5rem; background:var(--glass-fill-strong); border:1px solid var(--glass-border); box-shadow:var(--glass-highlight),var(--glass-shadow); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur); font-family:var(--vr-font-text,inherit); }
.nj-head { display:flex; align-items:center; gap:.7rem; min-width:0; }
.nj-badge { display:grid; place-items:center; width:2.75rem; height:2.75rem; flex:none; border-radius:50%; background:var(--vr-mint,#c7f299); color:var(--vr-on-mint,#092635); }
.nj-badge .vri { width:1.4rem; height:1.4rem; }
.nj--done .nj-badge { background:var(--vr-hit,#ffd84d); color:var(--vr-on-hit,#2a2000); }
.nj-status { display:grid; min-width:0; line-height:1.3; }
.nj-status small { color:var(--vr-mint,#c7f299); font-size:.75rem; font-weight:600; }
.nj-status strong { font-family:var(--vr-font-display,inherit); font-size:1.05rem; letter-spacing:-.01em; }
.nj-hint { font-size:.85rem; color:var(--glass-muted,rgb(255 255 255 / .74)); overflow-wrap:anywhere; }
.nj-steps { display:flex; gap:.35rem; }
.nj-steps i { flex:1; height:.35rem; border-radius:999px; background:rgb(255 255 255 / .18); }
.nj-steps i.on { background:var(--vr-mint,#c7f299); }
.nj-steps i.now { background:linear-gradient(90deg,var(--vr-mint,#c7f299) 0 30%,rgb(255 255 255 / .18) 30%); }
.nj-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(8.6rem,100%),1fr)); gap:.5rem; }
.nj--done .nj-actions > .nj-btn--primary { grid-column:1 / -1; }
.nj .nj-btn { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; min-width:0; min-height:44px; padding:.3rem .75rem; border:1px solid rgb(255 255 255 / .22); border-radius:999px; background:rgb(255 255 255 / .12); color:inherit; font:700 .875rem/1.15 var(--vr-font-display,inherit); text-align:center; cursor:pointer; text-decoration:none; overflow-wrap:break-word; hyphens:none; transition:transform 120ms; }
.nj-btn .vri { width:1.1rem; height:1.1rem; flex:none; }
.nj .nj-btn--primary { border-color:transparent; background:var(--vr-mint,#c7f299); color:var(--vr-on-mint,#092635); box-shadow:0 3px 0 var(--vr-mint-lip,#86b85a); }
.nj-btn:active { transform:translateY(2px); }
.nj-btn--primary:active { box-shadow:0 1px 0 var(--vr-mint-lip,#86b85a); }
.nj-btn:focus-visible, .network-journey-pin:focus-visible { outline:3px solid var(--vr-hit,#ffd84d); outline-offset:2px; }
.nj--pop .nj-badge { animation:nj-pop 480ms cubic-bezier(.3,1.35,.5,1); }
/* Ziel auf der Karte: runde Plakette wie die Firmenmarker, mit ruhigem Puls für „hier geht's weiter“. */
button.network-journey-pin { display:grid; place-items:center; width:52px; height:52px; padding:0; border:3px solid var(--vr-night,#092635); border-radius:50%; background:var(--vr-mint,#c7f299); color:var(--vr-on-mint,#092635); font-size:1.35rem; font-weight:700; line-height:1; cursor:pointer; box-shadow:0 0 0 3px rgb(255 255 255 / .9),0 8px 18px rgb(2 12 18 / .45); z-index:5; }
.network-journey-pin .vri { width:26px; height:26px; }
.network-journey-pin::before, .network-journey-pin::after { content:""; position:absolute; inset:-6px; border-radius:50%; border:2px solid var(--vr-mint,#c7f299); pointer-events:none; animation:nj-ring 2.6s cubic-bezier(.15,.7,.3,1) infinite; }
.network-journey-pin::after { animation-delay:1.3s; }
/* In der Straßenansicht liegt das Ziel als 3D-Objekt in der Stadt. */
body.vr-mission-3d .network-journey-pin { display:none; }
.network-journey-burst { width:0; height:0; pointer-events:none; }
.network-journey-burst i { position:absolute; left:-5px; top:-5px; width:10px; height:10px; border-radius:50%; background:var(--vr-hit,#ffd84d); animation:nj-spark 800ms cubic-bezier(.2,.8,.2,1) forwards; }
.network-journey-burst i:nth-child(odd) { background:var(--vr-mint,#c7f299); }
@keyframes nj-ring { from { transform:scale(.9); opacity:.85; } to { transform:scale(1.9); opacity:0; } }
@keyframes nj-pop { from { transform:scale(.5); } to { transform:none; } }
@keyframes nj-spark { from { opacity:1; transform:rotate(var(--a,0deg)) translateY(-8px) scale(1); } to { opacity:0; transform:rotate(var(--a,0deg)) translateY(-62px) scale(.4); } }
@media (prefers-reduced-motion: reduce) {
    .network-journey-pin::before, .network-journey-pin::after { animation:none; opacity:.5; }
    .nj--pop .nj-badge, .nj .nj-btn { animation:none; transition:none; }
}
.journey-mastered::after { content:'✓'; position:absolute; right:-.4rem; bottom:-.4rem; border-radius:50%; background:var(--vr-mint,#c7f299); color:#092635; padding:.15rem .35rem; font-weight:700; }
.network-journey:not(.network-journey--card) select { max-width:100%; min-height:44px; border-radius:999px; padding:0 .75rem; color:var(--vr-night,#092635); background:white; }
.network-journey:not(.network-journey--card) details[open] { display:grid; gap:.4rem; }
.network-journey:not(.network-journey--card) :is(summary,a) { min-height:44px; align-content:center; }

/* Profil „Deine Journey“: Karten in der Formensprache der Karte (runde Flächen, Pillenknöpfe, Mint als Aktionsfarbe);
   Farben aus den Theme-Tokens, damit Hell und Dunkel stimmen. */
.journey-card { display:grid; gap:.75rem; padding:1rem; border-radius:1.5rem; background:var(--card); color:var(--card-foreground); border:1px solid var(--border); box-shadow:0 8px 24px rgb(9 38 53 / .07); min-width:0; }
.journey-card-head { display:flex; align-items:center; gap:.75rem; min-width:0; }
.journey-badge { display:grid; place-items:center; width:2.75rem; height:2.75rem; flex:none; border-radius:50%; background:var(--vibe-mint); color:var(--vibe-night); }
.journey-badge--done { background:#ffd84d; color:#2a2000; }
.journey-card-text { display:grid; gap:.1rem; min-width:0; line-height:1.35; }
.journey-card-text strong { font-family:var(--font-display); font-size:1.1rem; letter-spacing:-.01em; }
.journey-card-text span { font-size:.9rem; color:var(--muted-foreground); overflow-wrap:anywhere; }
.journey-card-text .journey-kicker, .journey-subtitle { margin:0; font-size:.75rem; font-weight:700; letter-spacing:.02em; color:var(--accent); }
.journey-steps { display:flex; gap:.35rem; }
.journey-steps i { flex:1; height:.4rem; border-radius:999px; background:var(--muted); }
.journey-steps i.on { background:var(--accent); }
.journey-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.journey .journey-btn { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; min-height:2.75rem; height:auto; padding:.35rem 1.1rem; border:1px solid var(--border); border-radius:999px; background:var(--card); color:var(--foreground); font-size:.95rem; font-weight:700; line-height:1.2; text-decoration:none; text-align:center; }
.journey .journey-btn--primary { border-color:transparent; background:var(--vibe-mint); color:var(--vibe-night); box-shadow:0 3px 0 #86b85a; }
.journey .journey-btn:active { transform:translateY(2px); }
.journey .journey-btn:focus-visible { outline:3px solid var(--ring); outline-offset:2px; }
.journey-finds-block { display:grid; gap:.5rem; }
.journey-finds { display:flex; flex-wrap:wrap; gap:.5rem; margin:0; padding:0; list-style:none; }
.journey-finds li { display:inline-flex; align-items:center; gap:.4rem; min-height:2.25rem; padding:0 .9rem 0 .65rem; border-radius:999px; background:var(--secondary); color:var(--secondary-foreground); font-size:.9rem; font-weight:700; }
.journey-empty { margin:0; font-size:.9rem; color:var(--muted-foreground); }
.journey-settings { font-size:.9rem; color:var(--muted-foreground); }
@media (prefers-reduced-motion: reduce) { .journey .journey-btn:active { transform:none; } }

.school-tower-marker {
    min-width:44px; min-height:44px; height:var(--tower-height); padding:.25rem;
    border:2px solid var(--vr-night,#092635); border-radius:.35rem .35rem 0 0;
    background:repeating-linear-gradient(to top,#b6de91 0 9px,#c7f299 9px 12px);
    color:#092635; font-weight:800; cursor:pointer; box-shadow:3px 1px 0 #385346;
}
.school-tower-detail { margin:auto; padding:1.25rem; max-width:min(26rem,90vw); border-radius:1rem; background:#fff; color:#092635; }
.school-tower-detail::backdrop { background:rgba(8,30,44,.6); }
.school-tower-detail h2 { font-size:1.25rem; font-weight:700; }
.school-tower-detail ol { list-style:decimal inside; margin:1rem 0; }
.school-tower-detail button { min-height:44px; padding:0 .75rem; font-weight:700; text-decoration:underline; }
