/*
 * CRT amber shell.
 *
 * Same phosphor idea as the Fake-Checker, amber instead of green. Every colour
 * is a token so the two apps stay recognisably related without sharing a
 * stylesheet. The generated PDFs and DOCX are deliberately NOT styled like this —
 * a job application is set in a sober, DIN-like layout.
 */

@font-face {
    font-family: 'VT323';
    src: url("../fonts/VT323-auhAibo.woff2") format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Local monospace resized to VT323 (0.4em advance, 0.8/0.2 ascent/descent;
   the fallbacks are 0.6em), so the swap does not reflow logo and headings. */
@font-face {
    font-family: 'VT323 Fallback';
    src: local('Courier New'), local('CourierNewPSMT'), local('Liberation Mono'),
        local('Cousine'), local('Menlo'), local('DejaVu Sans Mono'), local('Roboto Mono');
    size-adjust: 66.67%;
    ascent-override: 120%;
    descent-override: 30%;
    line-gap-override: 0%;
}

:root {
    --phosphor: #ffbf00;
    --phosphor-dim: #cc8c00;
    --phosphor-faint: #7a5400;
    --bg-inner: #1a1000;
    --bg-mid: #0d0800;
    --bg-outer: #000;
    --danger: #ff6b3d;
    --ok: #7dd35f;
    --surface: rgba(255, 191, 0, 0.05);
    --border: rgba(255, 191, 0, 0.28);
    --border-strong: rgba(255, 191, 0, 0.55);
    --font-crt: 'VT323', 'VT323 Fallback', 'Courier New', monospace;
    --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 60rem;
    --font-size-min: 17px;
}

@media (min-width: 48rem) {
    :root {
        --font-size-min: 18px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: max(var(--font-size-min), 100%);
    scrollbar-color: var(--phosphor-dim) var(--bg-outer);
    scrollbar-width: thin;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-outer);
    color-scheme: dark;
    overflow-anchor: none;
    overscroll-behavior: none;
}

* {
    scrollbar-color: var(--phosphor-dim) var(--bg-outer);
    scrollbar-width: thin;
}

*::-webkit-scrollbar {
    width: 0.65rem;
    height: 0.65rem;
}

*::-webkit-scrollbar-track {
    background: var(--bg-outer);
}

*::-webkit-scrollbar-thumb {
    background: var(--phosphor-dim);
    border: 2px solid var(--bg-outer);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--phosphor);
}

body {
    margin: 0;
    /* Pin to the visual viewport. iOS Chrome's ~113px toolbar inset lives on
       the document UIScrollView; if that view scrolls, the logo can freeze
       under the omnibox. Body does not scroll — .crt-screen does. */
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-outer);
    color: var(--phosphor);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-anchor: none;
    overscroll-behavior: none;
}

/* CRT column fills the body flex (sticky footer). Hamburger stays a
   position:fixed sibling of this box — not sticky, not in-flow. */
.crt-screen {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-anchor: none;
    overscroll-behavior: none;
    background:
        radial-gradient(ellipse at 50% 0%, var(--bg-inner) 0%, var(--bg-mid) 45%, var(--bg-outer) 100%);
}

@media print {
    html,
    body {
        position: static;
        inset: auto;
        height: auto;
        overflow: visible;
    }

    .crt-screen {
        overflow: visible;
        min-height: 0;
        height: auto;
    }
}

small, sup, sub, code, kbd, samp {
    font-size: 1em;
}

/* Scanlines and flicker are decoration. Anyone who asked the OS to calm motion
   down gets a static screen instead of a broken-looking one. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.16) 3px,
        rgba(0, 0, 0, 0.16) 4px
    );
    animation: flicker 6s infinite steps(60);
}

@keyframes flicker {
    0%, 96%, 100% { opacity: 1; }
    97% { opacity: 0.92; }
    98% { opacity: 1; }
    99% { opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
    body::after { animation: none; opacity: 0; }
    .brand-logo::after { animation: none !important; opacity: 0.85; }
    .brand-logo__text::before,
    .brand-logo__text::after {
        animation: none !important;
        opacity: 0 !important;
        content: none;
    }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .dropzone { animation: none !important; }
}

.skip-link {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10000;
    background: var(--phosphor);
    color: #000;
    padding: 0.5rem 1rem;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.skip-link:focus {
    clip-path: none;
    width: auto;
    height: auto;
    overflow: visible;
}

.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;
}

.price {
    white-space: nowrap;
}

.price__was {
    color: var(--phosphor-dim);
    font-weight: 400;
    margin-right: 0.35em;
    text-decoration: line-through;
}

.price__now {
    font-weight: 700;
}

.shell {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
    flex: 1 0 auto;
}

/* --- Typography ----------------------------------------------------- */

h1, h2, h3, .crt {
    font-family: var(--font-crt);
    letter-spacing: 0.03em;
    text-shadow: 0 0 6px rgba(255, 191, 0, 0.45);
    font-weight: 400;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    line-height: 1.05;
    margin: 0 0 0.75rem;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin: 2.5rem 0 0.75rem;
}

h3 {
    font-size: 1.35rem;
    margin: 1.75rem 0 0.5rem;
}

p, li {
    color: #f4e3bd;
}

a {
    color: var(--phosphor);
    text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--phosphor);
    outline-offset: 2px;
}

.lede,
.howto > h1 + p,
.howto > h1 + .audio-help + p {
    font-size: 1.15rem;
    color: #f7ecd2;
}

@media (max-width: 40rem) {
    [data-cv-privacy],
    [data-desktop-only] {
        display: none;
    }
}

.muted {
    color: var(--phosphor-dim);
    font-size: 1rem;
}

label .muted,
.dropzone-label .muted {
    font-size: 1em;
}

/* --- Hamburger (same chrome as Fake-Lexikon, amber) ----------------- */

#hamburger-btn {
    display: flex;
    position: fixed;
    top: 1rem;
    right: 1.6rem;
    z-index: 350;
    background: rgba(13, 8, 0, 0.7);
    border: 1px solid var(--border-strong);
    box-shadow: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    opacity: 1;
    touch-action: manipulation;
    transition: opacity 0.2s, border-color 0.2s;
}

#hamburger-btn:hover,
#hamburger-btn:focus-visible,
#hamburger-btn.open {
    opacity: 1;
    border-color: rgba(255, 191, 0, 0.75);
}

#hamburger-btn span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--phosphor);
    box-shadow: none;
    transition: transform 0.2s, opacity 0.2s;
}

#hamburger-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#hamburger-btn.open span:nth-child(2) { opacity: 0; }
#hamburger-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#mobile-nav-menu {
    display: none;
    position: fixed;
    top: calc(1rem + 44px + 6px);
    right: 1.6rem;
    z-index: 340;
    background: rgba(13, 8, 0, 0.97);
    border: 1px solid rgba(255, 191, 0, 0.6);
    box-shadow: 0 0 12px rgba(255, 191, 0, 0.28);
    margin: 0;
    padding: 2px 0;
    min-width: 168px;
    max-width: calc(100vw - 2rem);
    flex-direction: column;
    gap: 0;
    list-style: none;
}

#mobile-nav-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

#mobile-nav-menu.open { display: flex; }

/* Room under the 44px overlay button. Do not make the nav in-flow. */
@media (max-width: 56.25rem) {
    .brand-logo-wrapper {
        padding-top: calc(44px + 0.5rem);
    }
}

.nav-item {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 191, 0, 0.18);
    color: var(--phosphor);
    font-family: var(--font-crt);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
    padding: 6px 12px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    text-shadow: 0 0 5px var(--phosphor);
    display: block;
    width: 100%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

#mobile-nav-menu li:last-child .nav-item { border-bottom: none; }

.nav-item:hover,
.nav-item:focus-visible {
    background: rgba(255, 191, 0, 0.1);
    color: var(--phosphor);
}

.nav-item[aria-current="page"] { background: rgba(255, 191, 0, 0.16); }

/* --- CRT wordmark (once per page, Fake-Lexikon layout, amber) -------- */

.brand-logo-wrapper {
    --brand-pad-x: 2.4rem;
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 0 1.4rem;
    container-type: inline-size;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 1.6rem var(--brand-pad-x);
    isolation: isolate;
    /* Both axes must be clip. overflow-x: clip alone computes overflow-y to visible/auto,
       which creates a vertical scrollport around the larger canvas on mobile WebKit/Chrome. */
    overflow: clip;
}

@media (max-width: 40rem) {
    .brand-logo-wrapper {
        --brand-pad-x: 0.45rem;
    }
    .brand-mark {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }
}

.brand-mark__dust {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.brand-logo {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 0 0.35rem;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.28em;
    font-family: var(--font-crt);
    font-size: clamp(2.4rem, 7vw, 3.6rem);
    font-weight: normal;
    line-height: 1;
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
    text-shadow: none;
}

/* Same size fitBrandLogo() settles on (the wordmark is ~7em wide in VT323),
   so the first paint already has it and the script never resizes it. */
@media (max-width: 900px) {
    .brand-logo {
        font-size: clamp(22px, calc((100cqw - 8px - 2 * var(--brand-pad-x)) / 7.05), 56px);
    }
}

.brand-logo__text {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    isolation: isolate;
    word-spacing: -0.18em;
}

.brand-logo__link {
    color: inherit;
    text-decoration: none;
    -webkit-text-stroke: 0;
    text-rendering: geometricPrecision;
}

.brand-logo__link:hover,
.brand-logo__link:focus-visible {
    filter: brightness(1.12);
    color: inherit;
}

.brand-logo__word--bewerber {
    color: #ffbf00;
    text-shadow:
        0 0 2px #ffbf00,
        0 0 8px #ffbf00,
        0 0 18px rgba(255, 191, 0, 0.95),
        0 0 36px rgba(255, 191, 0, 0.5),
        0 0 56px rgba(255, 191, 0, 0.25),
        -1px 0 0 rgba(255, 80, 40, 0.35),
        1px 0 0 rgba(80, 160, 255, 0.3);
}

.brand-logo__word--tool {
    color: #cc8c00;
    text-shadow:
        0 0 2px rgba(255, 191, 0, 0.7),
        0 0 8px rgba(255, 191, 0, 0.6),
        0 0 18px rgba(204, 140, 0, 0.5),
        0 0 32px rgba(204, 140, 0, 0.28),
        -1px 0 0 rgba(255, 80, 40, 0.25),
        1px 0 0 rgba(80, 160, 255, 0.22);
}

.brand-logo__text::before,
.brand-logo__text::after {
    content: attr(data-glitch);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
}

.brand-logo__text::before {
    color: rgba(255, 80, 40, 0.55);
    text-shadow: none;
    clip-path: inset(0 0 52% 0);
    animation: brand-glitch-a 2.8s steps(2, end) infinite;
}

.brand-logo__text::after {
    color: rgba(80, 160, 255, 0.5);
    text-shadow: none;
    clip-path: inset(48% 0 0 0);
    animation: brand-glitch-b 3.6s steps(2, end) infinite;
}

@keyframes brand-glitch-a {
    0%, 90%, 100% { transform: translate(0, 0); opacity: 0.25; }
    91% { transform: translate(-2px, 0); opacity: 0.65; }
    93% { transform: translate(2px, 1px); opacity: 0.45; }
    96% { transform: translate(-1px, 0); opacity: 0.55; }
}

@keyframes brand-glitch-b {
    0%, 88%, 100% { transform: translate(0, 0); opacity: 0.22; }
    89% { transform: translate(2px, 0); opacity: 0.55; }
    92% { transform: translate(-2px, 0); opacity: 0.4; }
    95% { transform: translate(1px, -1px); opacity: 0.5; }
}

.brand-logo::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 191, 0, 0.12) 22%,
        rgba(255, 191, 0, 0.95) 50%,
        rgba(255, 191, 0, 0.12) 78%,
        transparent 100%
    );
    background-size: 220% 100%;
    box-shadow: 0 0 10px rgba(255, 191, 0, 0.55), 0 0 22px rgba(255, 191, 0, 0.25);
    opacity: 0.75;
    animation: brand-underline 4.8s ease-in-out infinite;
}

@keyframes brand-underline {
    0%, 100% {
        background-position: 100% 50%;
        opacity: 0.55;
        box-shadow: 0 0 6px rgba(255, 191, 0, 0.35), 0 0 14px rgba(255, 191, 0, 0.15);
    }
    50% {
        background-position: 0% 50%;
        opacity: 1;
        box-shadow: 0 0 12px rgba(255, 191, 0, 0.7), 0 0 28px rgba(255, 191, 0, 0.3);
    }
}

.brand-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 1.14em;
    min-height: 0;
    padding: 0 0.34em;
    font-size: max(1rem, 0.62em);
    font-family: inherit;
    font-weight: normal;
    letter-spacing: 0.08em;
    line-height: 1;
    color: #ffd24d;
    background: transparent;
    border: 2px solid #ffbf00;
    border-radius: 2px;
    transform: translateY(-0.06em);
    text-shadow:
        0 0 6px #ffbf00,
        0 0 14px rgba(255, 191, 0, 0.55);
    box-shadow:
        0 0 8px rgba(255, 191, 0, 0.45),
        inset 0 0 8px rgba(255, 191, 0, 0.08);
}

.site-footer {
    position: relative;
    z-index: 3;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    background: rgba(13, 8, 0, 0.92);
    border-top: 1px solid var(--border);
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem clamp(0.65rem, 2.5vw, 1.35rem);
    width: 100%;
    max-width: 100%;
    padding: 14px clamp(10px, 3vw, 32px);
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.site-footer__primary,
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem clamp(0.65rem, 2.5vw, 1.35rem);
}

.site-footer__primary {
    flex: 1 1 auto;
    min-width: 0;
}

.site-footer__legal {
    flex: 0 0 auto;
    margin-left: auto;
}

.site-footer a,
.site-footer .wizard-discard__link {
    flex: 0 1 auto;
    color: var(--phosphor-dim);
    font-family: var(--font-crt);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    padding: 0.15rem 0;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer a[aria-current='page'] {
    color: var(--phosphor);
    text-decoration: underline;
}

.site-footer .wizard-discard__link,
.site-footer .wizard-discard__link:hover,
.site-footer .wizard-discard__link:focus-visible {
    color: var(--danger);
}

.site-footer .wizard-discard__link:hover,
.site-footer .wizard-discard__link:focus-visible {
    text-decoration: underline;
}

.site-footer--wizard .site-footer__nav {
    justify-content: space-between;
}

.site-footer--wizard .wizard-discard {
    margin: 0;
}

.site-footer--wizard .wizard-discard__link {
    white-space: normal;
    text-align: left;
}

.site-footer--discard-only .site-footer__nav {
    justify-content: center;
}

.site-footer--discard-only .wizard-discard__link {
    text-align: center;
}

body[data-wizard] .crt-modal-page-link,
body[data-result] .crt-modal-page-link,
.crt-modal-overlay.must-accept .crt-modal-page-link {
    display: none;
}

@media (max-width: 1024px) {
    .site-footer__nav,
    .site-footer--wizard .site-footer__nav {
        justify-content: center;
        text-align: center;
        gap: 0.35rem 0.75rem;
    }
    .site-footer__primary,
    .site-footer__legal,
    .site-footer--wizard .site-footer__primary,
    .site-footer--wizard .site-footer__legal,
    .site-footer--wizard .wizard-discard,
    .site-footer--wizard .wizard-discard form {
        display: contents;
    }
    .site-footer__legal,
    .site-footer--wizard .site-footer__legal {
        margin-left: 0;
    }
    .site-footer--wizard .wizard-discard__link {
        text-align: center;
    }
}

@media (min-width: 901px) {
    .site-footer a,
    .site-footer .wizard-discard__link {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .site-footer a,
    .site-footer .wizard-discard__link {
        font-size: 1.2rem;
    }
}

.legal__head {
    margin: 0 0 1.5rem;
}

.legal-lead {
    font-family: var(--font-crt);
    font-size: 1.35rem;
    line-height: 1.32;
    letter-spacing: 0.03em;
    color: var(--phosphor-dim);
    text-shadow: none;
    margin: 0;
}

/* How-to page: numbered steps, open body text, one rail through 1–4. */
.howto {
    --howto-rail: 2.75rem;
    counter-reset: howto-step;
}

.howto > h2 {
    font-family: var(--font-crt);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.06em;
    color: var(--phosphor);
    text-shadow: 0 0 2.25px var(--phosphor);
    margin: 1.6rem 0 0;
    padding: 0;
    border: 0;
    background: none;
}

.howto > h2 {
    display: grid;
    grid-template-columns: var(--howto-rail) 1fr;
    align-items: center;
    column-gap: 0.8rem;
    margin: 0;
    padding: 0.35rem 0;
}

.howto > h2:nth-of-type(1) {
    margin-top: 1.75rem;
}

.howto > h2::before {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid var(--phosphor);
    font-size: 1.4rem;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    text-shadow: none;
}

.howto > h2:nth-of-type(-n+4)::before {
    content: counter(howto-step);
    counter-increment: howto-step;
}

.howto > h2:nth-of-type(n+5)::before {
    content: '!';
}

.howto > h2 + p,
.howto > h2 + ul,
.howto > h2 + p + p {
    margin: 0.85rem 0 0;
    padding: 0;
    border: 0;
    background: none;
}

/* A step may run over several paragraphs; the rail has to pass through all of
   them down to the next heading, not stop after the first. */
.howto > h2:nth-of-type(-n+4) ~ p {
    position: relative;
    margin: 0;
    padding: 0.9rem 0.15rem 0 calc(var(--howto-rail) + 0.8rem);
}

.howto > h2:nth-of-type(-n+4) ~ p:has(+ h2) {
    padding-bottom: 1.85rem;
}

.howto > h2:nth-of-type(-n+4) ~ p::before {
    content: '';
    position: absolute;
    left: calc(var(--howto-rail) / 2 - 1px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-strong);
    pointer-events: none;
}

.howto > h2 + ul {
    list-style: none;
}

.howto > h2:nth-of-type(n+5) + ul {
    padding-left: calc(var(--howto-rail) + 0.8rem);
}

/* Between two info headings the rail keeps going, like between the steps. */
.howto > h2:nth-of-type(n+5) + ul:has(+ h2) {
    position: relative;
    margin: 0;
    padding-top: 0.85rem;
    padding-bottom: 1.85rem;
}

.howto > h2:nth-of-type(n+5) + ul:has(+ h2)::before {
    content: '';
    position: absolute;
    left: calc(var(--howto-rail) / 2 - 1px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-strong);
    pointer-events: none;
}

.howto > h2 + ul > li {
    position: relative;
    margin: 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.howto > h2 + ul > li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.howto > h2 + ul > li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--phosphor);
    font-family: var(--font-crt);
}

.crt-modal-body .howto > h1 {
    display: none;
}

.crt-modal-intro {
    border: 1px solid rgba(255, 191, 0, 0.5);
    background: rgba(255, 191, 0, 0.1);
    padding: 0.6rem 0.9rem;
    margin: 0 0 2.2rem;
    font-family: var(--font-crt);
    font-size: 1.2rem;
    line-height: 1.55;
    letter-spacing: 0.03em;
    color: #f4e3bd;
}

.crt-modal-body .legal-lead + .crt-modal-intro {
    margin-top: 1.1rem;
}

.crt-modal-intro a {
    color: var(--phosphor);
}

.legal .crt-modal-intro + .crt-details {
    margin-top: 1.4rem;
}

.crt-details {
    margin: 1.4rem 0 0;
}

.crt-details summary {
    font-family: var(--font-crt);
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
    padding: 0.25rem 0 0.25rem 0.5rem;
    border-left: 3px solid var(--phosphor);
    background: rgba(255, 191, 0, 0.13);
    text-shadow: 0 0 2.25px var(--phosphor);
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.crt-details summary::-webkit-details-marker { display: none; }

.crt-details summary::before {
    content: '▸';
    display: inline-block;
    transition: transform 0.15s;
    color: var(--phosphor);
    flex-shrink: 0;
}

.crt-details[open] > summary::before {
    transform: rotate(90deg);
}

.crt-details summary:hover {
    background: rgba(255, 191, 0, 0.22);
}

.crt-details > :not(summary) {
    margin-top: 0.4rem;
    color: #f4e3bd;
}

.legal .crt-details + .crt-details,
.faq .crt-details + .crt-details {
    margin-top: 0.85rem;
}

.legal-section-heading {
    font-family: var(--font-crt);
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
    margin: 1.8rem 0 0.5rem;
    padding: 0.25rem 0 0.25rem 0.5rem;
    border-left: 3px solid var(--phosphor);
    background: rgba(255, 191, 0, 0.13);
    text-shadow: 0 0 2.25px var(--phosphor);
}

.legal-modal .legal-section-heading:first-of-type {
    margin-top: 0;
}

.crt-details--service {
    margin: 0.45rem 0 0;
}

.crt-service-list {
    margin: 0.25rem 0 0.5rem;
}

.crt-service-list .crt-details--service:first-child {
    margin-top: 0;
}

.legal h4 {
    font-family: var(--font-crt);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    margin: 1.1rem 0 0.4rem;
    color: var(--phosphor);
}

.legal .crt-details h4:first-child {
    margin-top: 0.35rem;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.table-wrap th,
.table-wrap td {
    border: 1px solid var(--border);
    padding: 0.45rem 0.6rem;
    text-align: left;
    vertical-align: top;
    color: #f4e3bd;
}

.table-wrap th {
    background: rgba(255, 191, 0, 0.1);
    font-family: var(--font-crt);
    letter-spacing: 0.04em;
}

/* --- Panels and cards ----------------------------------------------- */

.panel {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.panel--strong {
    border-color: var(--border-strong);
}

.panel__title {
    font-family: var(--font-crt);
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

.panel > h2.panel__title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--phosphor);
    margin: 0 0 0.75rem;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.35rem 0;
    padding: 0.85rem 0.25rem;
    margin: 1.75rem 0 2.25rem;
    list-style: none;
    font-family: var(--font-crt);
    font-size: 1.28rem;
    letter-spacing: 0.08em;
    line-height: 1.35;
    color: var(--phosphor);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow:
        0 -8px 18px -14px rgba(255, 191, 0, 0.45) inset,
        0 8px 18px -14px rgba(255, 191, 0, 0.45) inset;
}

.trust-strip li {
    margin: 0;
    padding: 0.15rem 0.55rem;
    color: var(--phosphor-dim);
    white-space: nowrap;
}

.trust-strip li + li::before {
    content: '·';
    margin-right: 0.55rem;
    color: var(--phosphor);
    opacity: 0.7;
    text-shadow: 0 0 8px rgba(255, 191, 0, 0.55);
}

@media (max-width: 40rem) {
    .trust-strip {
        display: none;
    }
}

.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.steps > li {
    counter-increment: step;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    font-family: var(--font-crt);
    color: var(--phosphor);
}

/* --- Forms ------------------------------------------------------------ */

label {
    display: block;
    font-family: var(--font-crt);
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

input[type='text'],
input[type='email'],
input[type='url'],
input[type='tel'],
input[type='file'],
textarea,
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff5df;
    border: 1px solid var(--border-strong);
    padding: 0.7rem 0.8rem;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    min-height: 9rem;
    resize: vertical;
    line-height: 1.55;
}

input:focus,
textarea:focus {
    border-color: var(--phosphor);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 191, 0, 0.25);
}

textarea[aria-invalid="true"],
input[type='text'][aria-invalid="true"],
input[type='email'][aria-invalid="true"],
input[type='tel'][aria-invalid="true"],
input[type='text']:user-invalid,
input[type='email']:user-invalid,
input[type='tel']:user-invalid {
    border-color: var(--danger);
}

textarea[aria-invalid="true"]:focus,
input[type='text'][aria-invalid="true"]:focus,
input[type='email'][aria-invalid="true"]:focus,
input[type='tel'][aria-invalid="true"]:focus,
input[type='text']:user-invalid:focus,
input[type='email']:user-invalid:focus,
input[type='tel']:user-invalid:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px rgba(255, 107, 61, 0.28);
}

.field {
    margin-bottom: 1.5rem;
}

.field__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 1rem;
}

.field__action {
    margin: 0 0 0.35rem;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    color: var(--phosphor);
    font-family: var(--font-body);
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.field__action:hover,
.field__action:focus-visible {
    color: #fff;
}

.field__help {
    color: var(--phosphor-dim);
    font-size: 1rem;
    margin: 0.4rem 0 0;
}

.dropzone-label {
    font-family: var(--font-crt);
    font-size: 1.4rem;
    margin: 0 0 0.35rem;
}

.dropzone {
    position: relative;
    border: 1px dashed var(--border-strong);
    background: rgba(0, 0, 0, 0.35);
    margin: 0 0 0.35rem;
    animation: dropzone-pulse 2.4s ease-in-out infinite;
}

@keyframes dropzone-pulse {
    0%, 100% {
        border-color: rgba(255, 191, 0, 0.4);
        box-shadow: 0 0 0 0 rgba(255, 191, 0, 0);
    }
    50% {
        border-color: var(--phosphor);
        box-shadow: 0 0 12px 1px rgba(255, 191, 0, 0.38);
    }
}

.dropzone--hot {
    animation: none;
    border-color: var(--phosphor);
    box-shadow: 0 0 0 2px rgba(255, 191, 0, 0.25);
}

.dropzone--ready {
    animation: none;
    border-style: solid;
    border-color: var(--phosphor);
    box-shadow: none;
}

.dropzone--error {
    animation: none;
    border-style: dashed;
    border-color: var(--danger);
    box-shadow: none;
}

.dropzone__hit {
    display: block;
    min-height: 7.5rem;
    padding: 1.5rem 1.25rem;
    cursor: pointer;
}

@media (pointer: coarse) {
    .dropzone__hit {
        min-height: 9.5rem;
        padding: 2rem 1.25rem;
    }
}

.dropzone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.dropzone__title,
.dropzone__name {
    display: block;
    font-family: var(--font-crt);
    font-size: 1.3rem;
}

.dropzone__name {
    word-break: break-all;
    padding-right: 5rem;
}

.dropzone__hint,
.dropzone__meta {
    display: block;
    color: var(--phosphor-dim);
    margin-top: 0.4rem;
}

.dropzone__clear {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    background: none;
    border: 0;
    color: var(--phosphor-dim);
    font-family: var(--font-crt);
    font-size: 1rem;
    cursor: pointer;
}

.dropzone__clear:hover,
.dropzone__clear:focus-visible {
    color: var(--phosphor);
}

.dropzone__error {
    color: var(--danger);
    font-size: 1rem;
    margin: 0;
    padding: 0 1.25rem 0.85rem;
}

.dropzone__idle[hidden],
.dropzone__picked[hidden],
.dropzone__clear[hidden],
.dropzone__error[hidden] {
    display: none;
}

form.is-uploading .cv-choice,
form.is-uploading .cv-panel,
form.is-uploading .cv-form__next,
form.is-uploading .dropzone,
form.is-uploading details,
form.is-uploading .field,
form.is-uploading .legal-choice,
form.is-uploading .honeypot,
form.is-uploading .cf-turnstile,
form.is-uploading .actions,
form.is-uploading [data-copy-help] {
    display: none;
}

form.is-uploading .upload-status {
    display: block;
    margin: 1.5rem 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: var(--font-crt);
    font-size: 1.3rem;
    line-height: 1.2;
    min-height: 2.75rem;
    padding: 0.55rem 1.6rem;
    border: 1px solid var(--phosphor);
    background: transparent;
    color: var(--phosphor);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover:not(:disabled),
.btn:focus-visible:not(:disabled) {
    background: var(--phosphor);
    color: #000;
}

.btn:disabled:not(.is-busy) {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.btn.is-busy {
    cursor: wait;
    pointer-events: none;
}

.btn--primary:disabled:not(.is-busy) {
    background: rgba(255, 191, 0, 0.18);
    color: var(--phosphor);
    border-color: var(--phosphor);
}

.btn--primary.is-busy {
    background: var(--phosphor);
    color: #000;
    border-color: var(--phosphor);
    opacity: 0.75;
}

.btn--primary {
    background: var(--phosphor);
    color: #000;
    letter-spacing: 0.04em;
}

.btn--primary:hover:not(:disabled) {
    background: #fff;
}

/* The skip is findable but never equal in weight to the donate button. */
.btn--quiet {
    border: none;
    background: none;
    color: var(--phosphor-faint);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.25rem 0;
    text-decoration: underline;
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
    color: var(--phosphor-dim);
    background: none;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

/* Wizard: secondary left (Abbrechen/Zurück), primary right (Weiter) */
.actions--nav {
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.actions--nav .actions__start,
.actions--nav .actions__end {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.actions--nav .actions__end {
    margin-left: auto;
    justify-content: flex-end;
}

.wizard-discard {
    margin: 0.85rem 0 0;
}

.wizard-discard form {
    display: inline;
    margin: 0;
}

.wizard-discard__link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: var(--phosphor-dim);
    font-family: var(--font-body);
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

.wizard-discard__link:hover,
.wizard-discard__link:focus-visible {
    color: var(--phosphor);
}

/* --- Home CTA (same idea as Fake-Lexikon → Fake-Checker) -------------- */

.home-cta {
    margin: 3rem 0 1rem;
    padding: 1.6rem 1.4rem;
    text-align: center;
    border: 2px solid var(--phosphor);
    background: rgba(255, 191, 0, 0.08);
    box-shadow: 0 0 22px rgba(255, 191, 0, 0.22) inset;
    font-family: var(--font-crt);
}

.home-cta__title {
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    margin: 0 0 0.6rem;
    line-height: 1.25;
}

.home-cta__text {
    font-size: 1.2rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    margin: 0 auto 1.2rem;
    max-width: 560px;
    color: var(--phosphor-dim);
}

.home-cta__btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    isolation: isolate;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--phosphor);
    background: rgba(255, 191, 0, 0.18);
    color: var(--phosphor);
    font-family: var(--font-crt);
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(255, 191, 0, 0.35);
    transition: background 0.15s, box-shadow 0.15s;
}

.home-cta__btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -30%;
    width: 28%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 191, 0, 0.15) 35%,
        rgba(255, 191, 0, 0.55) 50%,
        rgba(255, 191, 0, 0.15) 65%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(255, 191, 0, 0.45);
    pointer-events: none;
    z-index: 0;
    animation: home-cta-scan 2.8s ease-in-out infinite;
}

.home-cta__btn:hover,
.home-cta__btn:focus-visible {
    background: rgba(255, 191, 0, 0.3);
    box-shadow: 0 0 22px rgba(255, 191, 0, 0.55);
    outline: none;
}

.home-cta__btn:hover::after,
.home-cta__btn:focus-visible::after {
    animation-duration: 1.6s;
}

@keyframes home-cta-scan {
    0% { transform: translateX(0); opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { transform: translateX(430%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .home-cta__btn::after {
        animation: none;
        display: none;
    }
}

/* --- Messages --------------------------------------------------------- */

.notice {
    border-left: 3px solid var(--phosphor);
    background: rgba(255, 191, 0, 0.07);
    padding: 0.85rem 1rem;
    margin: 1.25rem 0;
}

.notice--error {
    border-left-color: var(--danger);
    background: rgba(255, 107, 61, 0.09);
}

.notice--error strong {
    color: var(--danger);
}

.notice__text-btn {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--phosphor);
    text-decoration: underline;
    cursor: pointer;
}

.notice__text-btn:hover,
.notice__text-btn:focus-visible {
    color: var(--phosphor-bright, var(--phosphor));
}

.notice p {
    margin: 0.25rem 0;
}

.chip {
    display: inline-block;
    border: 1px solid var(--border);
    padding: 0.15rem 0.6rem;
    font-size: 1rem;
    color: var(--phosphor-dim);
    word-break: break-all;
}

/* --- Wizard step rail (1 → 2 → 3 → 4) ---------------------------------- */

.wizard-steps {
    --wizard-node: 2rem;
    --wizard-line: 4px;
    --wizard-tip: 0.7rem;
    margin: 0 0 1.25rem;
}

.wizard-steps__list {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    padding: 0.75rem 0.35rem 0.85rem;
    list-style: none;
    font-family: var(--font-crt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow:
        0 -8px 18px -14px rgba(255, 191, 0, 0.35) inset,
        0 8px 18px -14px rgba(255, 191, 0, 0.35) inset;
}

.wizard-steps__item {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    text-align: center;
}

.wizard-steps__node {
    position: relative;
    z-index: 1;
    display: block;
    width: var(--wizard-node);
    height: var(--wizard-node);
}

.wizard-steps__num {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-strong);
    background: var(--bg-mid);
    color: var(--phosphor-dim);
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    line-height: 1;
}

/* Line + tip centered on the number box (not the label) */
.wizard-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(var(--wizard-node) / 2);
    left: calc(50% + var(--wizard-node) / 2);
    right: calc(-50% + var(--wizard-node) / 2 + var(--wizard-tip));
    height: var(--wizard-line);
    margin-top: calc(var(--wizard-line) / -2);
    background: var(--phosphor-dim);
    box-shadow: 0 0 8px rgba(255, 191, 0, 0.3);
    pointer-events: none;
}

.wizard-steps__item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: calc(var(--wizard-node) / 2);
    left: calc(150% - var(--wizard-node) / 2 - var(--wizard-tip));
    z-index: 1;
    width: 0;
    height: 0;
    margin-top: calc(var(--wizard-tip) * 0.8 / -1);
    border-style: solid;
    border-width: calc(var(--wizard-tip) * 0.8) 0 calc(var(--wizard-tip) * 0.8) var(--wizard-tip);
    border-color: transparent transparent transparent var(--phosphor-dim);
    filter: drop-shadow(0 0 5px rgba(255, 191, 0, 0.4));
    pointer-events: none;
}

.wizard-steps__item.is-done:not(:last-child)::after,
.wizard-steps__item.is-current:not(:last-child)::after {
    background: var(--phosphor);
    box-shadow: 0 0 10px rgba(255, 191, 0, 0.5);
}

.wizard-steps__item.is-done:not(:last-child)::before,
.wizard-steps__item.is-current:not(:last-child)::before {
    border-left-color: var(--phosphor);
}

.wizard-steps__label {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    line-height: 1.2;
    color: var(--phosphor-dim);
}

.wizard-steps__item.is-done .wizard-steps__num {
    border-color: var(--border-strong);
    color: var(--phosphor-dim);
    background: rgba(255, 191, 0, 0.08);
}

.wizard-steps__item.is-done .wizard-steps__label {
    color: var(--phosphor-dim);
}

.wizard-steps__item.is-current .wizard-steps__num {
    border-color: var(--phosphor);
    color: var(--phosphor);
    background: rgba(255, 191, 0, 0.18);
    box-shadow: 0 0 14px rgba(255, 191, 0, 0.4);
}

.wizard-steps__item.is-current .wizard-steps__label {
    color: var(--phosphor);
    text-shadow: 0 0 10px rgba(255, 191, 0, 0.35);
}

@media (max-width: 40rem) {
    .wizard-steps {
        --wizard-node: 1.55rem;
        --wizard-line: 3px;
        --wizard-tip: 0.5rem;
    }

    .wizard-steps__list {
        padding: 0.55rem 0.1rem 0.65rem;
    }

    .wizard-steps__num {
        font-size: 1rem;
    }

    .wizard-steps__label {
        font-size: 1rem;
        letter-spacing: 0.03em;
    }
}

/* --- Progress / SSE --------------------------------------------------- */

.progress__lines {
    font-family: var(--font-crt);
    font-size: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    min-height: 6rem;
}

.progress__lines li::before {
    content: '> ';
    color: var(--phosphor-dim);
}

.progress__bar {
    height: 3px;
    background: rgba(255, 191, 0, 0.15);
    overflow: hidden;
}

.progress__bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--phosphor);
    transition: width 0.4s ease;
}

.progress__working {
    margin: 0 0 0.5rem;
    font-family: var(--font-crt);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--phosphor);
    animation: progress-working-pulse 1.4s ease-in-out infinite;
}

.progress__working[hidden] {
    display: none;
}

@keyframes progress-working-pulse {
    0%,
    100% {
        opacity: 0.35;
    }
    50% {
        opacity: 1;
    }
}

/* --- Review / result -------------------------------------------------- */

.review-grid {
    display: grid;
    gap: 1rem 1.5rem;
    grid-template-columns: 1fr;
}

.review-grid > .field {
    margin-bottom: 0;
}

@media (min-width: 40rem) {
    .review-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.fit-scale,
.lang-choice {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.fit-scale legend,
.lang-choice legend {
    font-family: var(--font-crt);
    font-size: 1.3rem;
    padding: 0 0.4rem;
}

.lang-choice__options {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.fit-scale__slider {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.65rem;
}

.fit-scale__readout {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    font-family: var(--font-crt);
}

.fit-scale__value {
    font-size: 1.75rem;
    color: var(--phosphor);
    text-shadow: 0 0 4px rgba(255, 191, 0, 0.35);
}

.fit-scale__ends {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-crt);
    font-size: 1.35rem;
    color: var(--phosphor);
}

.fit-scale input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.55rem;
    margin: 0.35rem 0 0;
    background: linear-gradient(90deg, var(--phosphor-dim), var(--phosphor));
    border: 1px solid var(--border-strong);
    border-radius: 0;
    outline: none;
    cursor: pointer;
}

.fit-scale input[type="range"]:focus-visible {
    outline: 2px solid var(--phosphor);
    outline-offset: 3px;
}

.fit-scale input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.35rem;
    height: 1.35rem;
    background: var(--bg-outer);
    border: 2px solid var(--phosphor);
    box-shadow: 0 0 8px rgba(255, 191, 0, 0.45);
    cursor: grab;
}

.fit-scale input[type="range"]::-moz-range-thumb {
    width: 1.35rem;
    height: 1.35rem;
    background: var(--bg-outer);
    border: 2px solid var(--phosphor);
    border-radius: 0;
    box-shadow: 0 0 8px rgba(255, 191, 0, 0.45);
    cursor: grab;
}

.fit-scale input[type="range"]::-moz-range-track {
    height: 0.55rem;
    background: transparent;
    border: none;
}

.line-design {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 1.25rem 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.line-design legend {
    font-family: var(--font-crt);
    font-size: 1.3rem;
    padding: 0 0.4rem;
}

.line-design__styles {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.line-choice {
    position: relative;
    display: grid;
    grid-template-columns: 7.4rem 1fr;
    gap: 1.15rem;
    align-items: center;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.line-choice:hover {
    border-color: var(--border-strong);
    background: rgba(255, 191, 0, 0.06);
}

.line-choice:has(:checked) {
    border-color: var(--phosphor);
    background: rgba(255, 191, 0, 0.12);
    box-shadow: 0 0 16px rgba(255, 191, 0, 0.22);
}

.line-choice:has(:focus-visible) {
    outline: 2px solid var(--phosphor);
    outline-offset: 3px;
}

.line-choice__sheet {
    --preview-ink: #8a4a00;
    position: relative;
    width: 6.4rem;
    height: 9rem;
    background: #f4ead2;
    box-shadow: inset 0 0 0 1px rgba(40, 24, 0, 0.18);
    flex-shrink: 0;
}

.line-choice__text {
    position: absolute;
    inset: 1.35rem 0.75rem 1.05rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.line-choice__bar {
    display: block;
    height: 0.32rem;
    background: rgba(48, 32, 8, 0.28);
}

.line-choice__bar--date {
    align-self: flex-end;
    width: 38%;
    margin-bottom: 0.45rem;
}

.line-choice__bar--subject {
    width: 78%;
    height: 0.42rem;
    margin-bottom: 0.2rem;
    background: rgba(48, 32, 8, 0.5);
}

.line-choice__bar--short {
    width: 58%;
}

/* Hairlines sit in the gutter of the sketch — not on the paper’s outer edge,
   otherwise they vanish into the thumbnail silhouette. */
.line-choice__sheet--top-rule::before,
.line-choice__sheet--left-rule::before {
    content: '';
    position: absolute;
    pointer-events: none;
    background: var(--preview-ink);
}

.line-choice__sheet--top-rule::before {
    top: 0.28rem;
    left: 0.28rem;
    right: 0.28rem;
    height: 3px;
}

.line-choice__sheet--left-rule::before {
    top: 0.28rem;
    bottom: 0.28rem;
    left: 0.28rem;
    width: 3px;
}

.line-choice__sheet--corners::before,
.line-choice__sheet--corners::after {
    content: '';
    position: absolute;
    left: 0.22rem;
    width: 1.35rem;
    height: 1.35rem;
    border-left: 3px solid var(--preview-ink);
    pointer-events: none;
}

.line-choice__sheet--corners::before {
    top: 0.22rem;
    border-top: 3px solid var(--preview-ink);
}

.line-choice__sheet--corners::after {
    bottom: 0.22rem;
    border-bottom: 3px solid var(--preview-ink);
}

.line-choice__copy {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.line-choice__label {
    font-family: var(--font-crt);
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: var(--phosphor);
}

.line-choice__hint {
    font-family: var(--font-crt);
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: var(--phosphor-dim);
}

@media (max-width: 28rem) {
    .line-choice {
        grid-template-columns: 1fr;
    }
}

.line-design--colors {
    margin-top: 0;
}

.line-design__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1rem;
}

.color-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    min-width: 6.4rem;
    padding: 0.7rem 0.65rem 0.55rem;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.color-choice:hover {
    border-color: var(--border-strong);
}

.color-choice:has(:checked) {
    border-color: var(--phosphor);
    background: rgba(255, 191, 0, 0.12);
    box-shadow: 0 0 14px rgba(255, 191, 0, 0.22);
}

.color-choice:has(:focus-visible) {
    outline: 2px solid var(--phosphor);
    outline-offset: 3px;
}

.color-choice__swatch {
    display: block;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-choice__label {
    font-family: var(--font-crt);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}

.line-design__headings {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 0 0 1.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.28);
    font-family: var(--font-crt);
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: var(--phosphor);
    cursor: pointer;
    user-select: none;
}

.line-design__headings:hover {
    border-color: var(--border-strong);
    background: rgba(255, 191, 0, 0.06);
}

.line-design__headings:has(:checked) {
    border-color: var(--phosphor);
    background: rgba(255, 191, 0, 0.12);
    box-shadow: 0 0 14px rgba(255, 191, 0, 0.22);
}

.line-design__headings:has(:focus-visible) {
    outline: 2px solid var(--phosphor);
    outline-offset: 3px;
}

.photo-review__preview {
    display: block;
    width: 8rem;
    height: auto;
    margin: 0 0 0.75rem;
    border: 1px solid var(--border);
}

.photo-review__remove,
.station-editor__remove,
.donation__consent {
    display: inline-flex;
    gap: 0.75rem;
    align-items: center;
    margin: 0.35rem 0 1rem;
    padding: 0.45rem 0.75rem 0.45rem 0.55rem;
    border: 1px solid var(--border-strong);
    background: rgba(255, 191, 0, 0.06);
    font-family: var(--font-crt);
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: var(--phosphor);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.donation__consent {
    align-items: flex-start;
    max-width: 100%;
    line-height: 1.35;
}

.photo-review__remove:hover,
.station-editor__remove:hover,
.donation__consent:hover {
    border-color: var(--border-strong);
    background: rgba(255, 191, 0, 0.14);
    box-shadow: 0 0 12px rgba(255, 191, 0, 0.2);
}

.photo-review__remove:has(input:focus-visible),
.station-editor__remove:has(input:focus-visible),
.donation__consent:has(input:focus-visible) {
    outline: 2px solid var(--phosphor);
    outline-offset: 2px;
}

.photo-review__remove input[type="checkbox"],
.station-editor__remove input[type="checkbox"],
.donation__consent input[type="checkbox"],
.line-design__headings input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.15rem 0 0;
    flex-shrink: 0;
    border: 2px solid var(--phosphor);
    background: var(--bg-outer);
    box-shadow: inset 0 0 6px rgba(255, 191, 0, 0.15);
    cursor: pointer;
    position: relative;
}

.photo-review__remove input[type="checkbox"]:checked,
.station-editor__remove input[type="checkbox"]:checked,
.donation__consent input[type="checkbox"]:checked,
.line-design__headings input[type="checkbox"]:checked {
    background: rgba(255, 191, 0, 0.22);
    box-shadow: 0 0 8px rgba(255, 191, 0, 0.35);
}

.photo-review__remove input[type="checkbox"]:checked::after,
.station-editor__remove input[type="checkbox"]:checked::after,
.donation__consent input[type="checkbox"]:checked::after,
.line-design__headings input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.28rem;
    top: 0.05rem;
    width: 0.35rem;
    height: 0.7rem;
    border: solid var(--phosphor);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(40deg);
}

/* Secondary expanders in the wizard (text paste, optional fields) */
.details-alt {
    margin: 1.25rem 0;
}

.details-alt > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-family: var(--font-crt);
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    line-height: 1.3;
    color: var(--phosphor);
    border: 1px solid var(--border-strong);
    background: rgba(255, 191, 0, 0.07);
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
    box-shadow: 0 0 10px rgba(255, 191, 0, 0.12);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.details-alt > summary::-webkit-details-marker {
    display: none;
}

.details-alt > summary::before {
    content: '▸';
    color: var(--phosphor);
    transition: transform 0.15s;
}

.details-alt[open] > summary::before {
    transform: rotate(90deg);
}

.details-alt > summary:hover,
.details-alt > summary:focus-visible {
    color: var(--phosphor);
    border-color: var(--border-strong);
    background: rgba(255, 191, 0, 0.18);
    box-shadow: 0 0 16px rgba(255, 191, 0, 0.35);
    outline: none;
}

.details-alt[open] > summary {
    border-color: var(--border-strong);
    background: rgba(255, 191, 0, 0.14);
}

.details-alt > :not(summary) {
    margin-top: 0.85rem;
}

.cv-panel--text .details-alt {
    margin: 0.75rem 0 0;
}

.cv-text-example {
    margin: 0.85rem 0 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

details.review-edit {
    margin: 1rem 0;
    border: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem;
}

details.review-edit + details.review-edit {
    margin-top: 0.75rem;
}

details.review-edit:last-of-type {
    margin-bottom: 2rem;
}

details.review-edit > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    font-family: var(--font-crt);
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
    color: var(--phosphor);
    cursor: pointer;
    padding: 0.5rem 0;
    list-style: none;
}

details.review-edit > summary::-webkit-details-marker {
    display: none;
}

details.review-edit > summary::before {
    content: '▸';
    color: var(--phosphor);
    transition: transform 0.15s;
}

details.review-edit[open] > summary::before {
    transform: rotate(90deg);
}

.review-edit__counts {
    color: var(--phosphor);
    font-size: inherit;
    letter-spacing: inherit;
}

.station-editor {
    margin: 1rem 0;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.checklist > li {
    position: relative;
    padding-left: 1.15rem;
    margin: 0.35rem 0;
}

.checklist > li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--phosphor-dim);
}

.result-cv__heading {
    font-family: var(--font-crt);
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: var(--phosphor);
    margin: 1.35rem 0 0.5rem;
}

.result-cv__station {
    margin: 0.85rem 0 1rem;
}

.result-cv__station-title {
    margin: 0 0 0.2rem;
    font-weight: 600;
    color: #f7ecd2;
}

.result-list {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0 0 0 0.15rem;
}

.result-list > li {
    position: relative;
    padding-left: 1.2rem;
    margin: 0.4rem 0;
    color: #f7ecd2;
    line-height: 1.45;
}

.result-list > li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0.05em;
    color: var(--phosphor);
    font-family: var(--font-crt);
}

.result-list--compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    padding-left: 0;
}

.result-list--compact > li {
    margin: 0.15rem 0;
}

.document {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
    padding: 1.5rem;
    white-space: pre-wrap;
    font-family: var(--font-body);
    color: #f7ecd2;
}

.document--blocks {
    white-space: normal;
}

.document--blocks > :first-child {
    margin-top: 0;
}

.document--blocks > :last-child {
    margin-bottom: 0;
}

.document--blocks .field__help {
    margin-bottom: 0;
}

.download-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.zip-password {
    margin: 0.85rem 0 0.5rem;
}

.notice .zip-password {
    margin: 0.65rem 0 0.35rem;
}

.zip-password__label {
    margin: 0;
}

.zip-password__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin: 0.45rem 0 0.35rem;
}

input.zip-password__value {
    width: auto;
    flex: 1 1 28rem;
    min-width: 0;
    height: 2.75rem;
    min-height: 2.75rem;
    font-family: var(--font-crt);
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: var(--phosphor);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--phosphor);
    box-shadow: 0 0 12px rgba(255, 191, 0, 0.22);
    text-shadow: 0 0 6px rgba(255, 191, 0, 0.45);
    padding: 0 0.8rem;
    cursor: text;
}

input.zip-password__value:focus {
    border-color: var(--phosphor);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 191, 0, 0.28);
}

.zip-password__copy {
    flex: 0 0 auto;
    height: 2.75rem;
}

.zip-password__help {
    margin: 0;
}

.donation {
    border: 1px solid var(--border-strong);
    background: rgba(255, 191, 0, 0.06);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.donation h2 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.donation__facts {
    margin: 0 0 0.75rem;
}

.donation__beta-note {
    margin: 0 0 0.25rem;
}

.donation__price {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.donation__price-amount {
    display: block;
    margin-top: 0.3rem;
    color: var(--phosphor);
}

.donation__price-amount .price__was {
    font-weight: 400;
}

.badge {
    display: inline-block;
    font-family: var(--font-crt);
    font-size: max(1rem, 0.55em);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    padding: 0.12em 0.32em;
    border: 1px solid var(--border-strong);
    border-radius: 0.35em;
    margin-left: 0.12em;
    vertical-align: super;
    position: relative;
    top: -0.05em;
}

.badge--beta {
    color: var(--phosphor);
    background: rgba(255, 191, 0, 0.12);
}

.donation__order {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-strong);
}

.donation__order-btn {
    display: inline-block;
    margin: 0.75rem 0 0.5rem;
    width: 100%;
    max-width: 28rem;
    text-align: center;
}

.donation__order-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

[data-result] .document,
[data-result] .panel,
[data-result] .donation,
[data-lock] .document {
    border-color: var(--phosphor);
}

[data-result] .donation__order {
    border-top-color: var(--phosphor-dim);
}

[data-result] .donation__consent {
    border-color: var(--phosphor-dim);
}

[data-paypal-buttons] {
    margin-top: 0.75rem;
    max-width: 28rem;
    /* html { color-scheme: dark } makes Chrome paint a white canvas behind
       light-scheme third-party iframes (PayPal Smart Buttons). normal keeps
       the iframe transparent so the CRT background shows through. */
    color-scheme: normal;
}

[data-paypal-buttons] iframe {
    color-scheme: normal;
    background-color: transparent;
}

/* --- Legal overlays (Fake-Checker Kenntnisnahme / Widerspruch) ------- */

.crt-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.crt-modal-overlay.open {
    display: flex;
}

.crt-modal {
    background: #0d0800;
    border: 2px solid var(--phosphor);
    box-shadow: 0 0 32px rgba(255, 191, 0, 0.35), 0 0 8px rgba(255, 191, 0, 0.2) inset;
    color: var(--phosphor);
    font-family: var(--font-crt);
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    line-height: 1.65;
    max-width: 620px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.crt-modal:focus,
.crt-modal:focus-visible {
    outline: none;
}

@media (min-width: 900px) {
    .crt-modal {
        max-width: 860px;
    }
}

.crt-modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
    padding: 56px 32px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0;
    scrollbar-color: var(--phosphor-dim) #000;
    scrollbar-width: thin;
}

.crt-modal-body h2 {
    font-size: 1.6rem;
    line-height: 1.2;
    letter-spacing: 0.12em;
    margin: 0 0 1.2rem;
    padding: 0.4rem 0.6rem 0.5rem;
    border: 1px solid var(--phosphor);
    background: rgba(255, 191, 0, 0.18);
    box-shadow: 0 0 14px rgba(255, 191, 0, 0.25) inset;
}

.crt-modal-overlay.must-accept .crt-modal-body {
    padding-top: 16px;
}

.crt-modal-welcome {
    display: none;
    margin: 0 0 1.4rem;
}

.crt-modal-overlay.must-accept .crt-modal-welcome {
    display: block;
}

.crt-modal-welcome__title {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font-family: var(--font-crt);
    font-size: 1.85rem;
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: 0.06em;
    color: var(--phosphor);
}

.crt-modal-welcome__tagline {
    margin: 0.35rem 0 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--phosphor-dim);
}

.crt-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--phosphor);
    font-family: var(--font-crt);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    z-index: 10;
}

.crt-modal-close:hover {
    opacity: 0.7;
}

.crt-modal-overlay.must-accept .crt-modal-close {
    display: none;
    pointer-events: none;
}

.crt-modal-accept-bar {
    display: none;
    padding: 14px 32px;
    border-top: 1px solid var(--phosphor);
    flex-shrink: 0;
    text-align: center;
}

.crt-modal-overlay.open .crt-modal-accept-bar {
    display: block;
}

.crt-modal-accept-checks {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0 0 1rem;
    text-align: left;
}

.crt-modal-accept-checks .legal-choice__option {
    margin: 0;
}

@media (max-width: 40rem) {
    .crt-modal-accept-checks .legal-choice__option {
        align-items: flex-start;
        line-height: 1.15;
    }

    .crt-modal-accept-checks .legal-choice__option input {
        margin-top: 0.18em;
    }
}

.crt-modal-accept-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.crt-modal-accept-btn:disabled::after {
    display: none;
}

.legal-choice {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem 1rem;
    border: 1px solid var(--border-strong);
    background: rgba(255, 191, 0, 0.05);
    font-size: 1.15rem;
}

.legal-choice--error {
    border-color: var(--danger);
}

.legal-choice__alert {
    margin: 0 0 0.65rem;
}

.legal-choice__alert[hidden] {
    display: none;
}

.legal-choice legend {
    font-family: var(--font-crt);
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--phosphor);
    padding: 0 0.35rem;
}

.legal-choice__lead {
    margin: 0.25rem 0 0;
    padding-bottom: 1.15rem;
    font-size: inherit;
    line-height: 1.65;
    color: #f7ecd2;
}

.legal-choice__note {
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #d8cdb6;
}

.legal-choice__option,
.lang-choice__option {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 0.7rem 0 0;
    cursor: pointer;
    font-family: var(--font-crt);
    font-size: 1.4rem;
    line-height: 1.35;
    color: var(--phosphor);
}

.legal-choice__option input[type="checkbox"],
.legal-choice__option input[type="radio"],
.lang-choice__option input[type="radio"],
.donation__consent input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid var(--phosphor);
    background: var(--bg-outer);
    box-shadow: inset 0 0 6px rgba(255, 191, 0, 0.15);
    cursor: pointer;
    position: relative;
}

.legal-choice__option input[type="radio"],
.lang-choice__option input[type="radio"] {
    border-radius: 50%;
}

.legal-choice__option input[type="checkbox"]:checked,
.legal-choice__option input[type="radio"]:checked,
.lang-choice__option input[type="radio"]:checked {
    background: rgba(255, 191, 0, 0.22);
    box-shadow: 0 0 8px rgba(255, 191, 0, 0.35);
}

.legal-choice__option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.28rem;
    top: 0.05rem;
    width: 0.35rem;
    height: 0.7rem;
    border: solid var(--phosphor);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(40deg);
}

.legal-choice__option input[type="radio"]:checked::after,
.lang-choice__option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 0.22rem;
    border-radius: 50%;
    background: var(--phosphor);
}

.cv-choice {
    margin: 0 0 1.25rem;
    padding: 0;
    border: 0;
}

.cv-choice legend {
    font-family: var(--font-crt);
    font-size: 1.4rem;
    margin: 0 0 0.75rem;
    padding: 0;
    color: var(--phosphor);
}

.cv-choice__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 40rem) {
    .cv-choice__cards {
        grid-template-columns: 1fr;
    }
}

.cv-choice__card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--border-strong);
    background: rgba(255, 191, 0, 0.05);
    cursor: pointer;
    font-family: var(--font-crt);
}

.cv-choice__card:has(input:checked) {
    border-color: var(--phosphor);
    box-shadow: 0 0 10px rgba(255, 191, 0, 0.28);
}

.cv-choice__card input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    border: 2px solid var(--phosphor);
    border-radius: 50%;
    background: var(--bg-outer);
    box-shadow: inset 0 0 6px rgba(255, 191, 0, 0.15);
    cursor: pointer;
    position: relative;
}

.cv-choice__card input[type="radio"]:checked {
    background: rgba(255, 191, 0, 0.22);
    box-shadow: 0 0 8px rgba(255, 191, 0, 0.35);
}

.cv-choice__card input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 0.22rem;
    border-radius: 50%;
    background: var(--phosphor);
}

.cv-choice__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.cv-choice__title {
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--phosphor);
}

.cv-choice__hint {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.35;
    color: var(--phosphor-dim);
}

.cv-panel {
    display: none;
    margin: 0 0 1.25rem;
}

.cv-form:has([name="cv_source"][value="file"]:checked) .cv-panel--file,
.cv-form:has([name="cv_source"][value="text"]:checked) .cv-panel--text {
    display: block;
}

.cv-form.is-uploading:has([name="cv_source"][value="file"]:checked) .cv-panel--file,
.cv-form.is-uploading:has([name="cv_source"][value="text"]:checked) .cv-panel--text {
    display: none;
}

.cv-form:not(:has([name="cv_source"]:checked)) .cv-form__next {
    display: none;
}

.crt-modal-accept-btn,
.crt-modal-revoke-btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    isolation: isolate;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--phosphor);
    background: rgba(255, 191, 0, 0.18);
    color: var(--phosphor);
    font-family: var(--font-crt);
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(255, 191, 0, 0.35);
    white-space: normal;
}

.crt-modal-accept-btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -30%;
    width: 28%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 191, 0, 0.15) 35%,
        rgba(255, 191, 0, 0.55) 50%,
        rgba(255, 191, 0, 0.15) 65%,
        transparent 100%
    );
    pointer-events: none;
    animation: crt-modal-accept-scan 2.8s ease-in-out infinite;
}

.crt-modal-accept-btn:hover,
.crt-modal-accept-btn:focus-visible,
.crt-modal-revoke-btn:hover,
.crt-modal-revoke-btn:focus-visible {
    background: rgba(255, 191, 0, 0.28);
    box-shadow: 0 0 18px rgba(255, 191, 0, 0.55);
}

@keyframes crt-modal-accept-scan {
    0% { transform: translateX(0); }
    100% { transform: translateX(450%); }
}

@media (prefers-reduced-motion: reduce) {
    .crt-modal-accept-btn::after {
        animation: none;
        display: none;
    }
}

.crt-modal-revoke-btn {
    background: rgba(255, 107, 61, 0.12);
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: none;
}

.crt-modal-revoke[hidden] {
    display: none;
}

.crt-modal-revoke-hint {
    margin: 0 0 0.65rem;
    color: var(--danger);
    font-size: 1.15rem;
    line-height: 1.4;
}

/* --- Accept gate ------------------------------------------------------- */

body.needs-accept form[data-needs-accept] [type="submit"]:disabled {
    cursor: not-allowed;
}

.debug-panel {
    margin-top: 2.5rem;
    padding: 0.85rem 1rem 1rem;
    border: 1px dashed var(--phosphor-dim);
    background: rgba(255, 191, 0, 0.04);
}

.debug-panel__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-crt);
    font-size: 1.25rem;
    color: var(--phosphor);
}

.debug-panel__summary::-webkit-details-marker {
    display: none;
}

.debug-panel__summary::before {
    content: '▸';
    margin-right: 0.35rem;
    transition: transform 0.15s;
}

.debug-panel[open] > .debug-panel__summary::before {
    transform: rotate(90deg);
}

.debug-panel__title {
    margin: 0;
    flex: 1 1 auto;
    letter-spacing: 0.04em;
}

.debug-panel__label {
    margin: 0.85rem 0 0.25rem;
    font-size: 1rem;
    color: var(--phosphor-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.debug-panel__block {
    margin-top: 0.75rem;
}

.debug-panel__block summary {
    cursor: pointer;
    color: var(--phosphor);
}

.debug-panel pre {
    margin: 0.35rem 0 0;
    max-height: 18rem;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 1rem;
    line-height: 1.35;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.6rem 0.7rem;
}

/* --- Audio help (shared/_audio_help.html.twig) ----------------------- */

.audio-help {
    --audio-progress: 0%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.85rem;
    max-width: 28rem;
    margin: 0 0 1rem;
}

.audio-help__toggle {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--phosphor);
    background: transparent;
    color: var(--phosphor);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.15s ease, color 0.15s ease;
}

.audio-help__toggle:focus-visible {
    background: var(--phosphor);
    color: #000;
}

@media (hover: hover) {
    .audio-help__toggle:hover {
        background: var(--phosphor);
        color: #000;
    }
}

.audio-help__icon {
    display: block;
    filter: drop-shadow(0 0 3px rgba(255, 191, 0, 0.45));
}

.audio-help__icon--pause,
.audio-help__spinner,
.audio-help[data-state="playing"] .audio-help__icon--play,
.audio-help[data-state="loading"] .audio-help__icon--play {
    display: none;
}

.audio-help[data-state="playing"] .audio-help__icon--pause,
.audio-help[data-state="loading"] .audio-help__spinner {
    display: block;
}

.audio-help__spinner {
    width: 1.25rem;
    height: 1.25rem;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: audio-help-spin 0.8s linear infinite;
}

@keyframes audio-help-spin {
    to { transform: rotate(360deg); }
}

.audio-help__body {
    flex: 1 1 12rem;
    min-width: 0;
}

.audio-help__label {
    display: block;
    font-family: var(--font-crt);
    font-size: 1.2rem;
    line-height: 1.1;
    letter-spacing: 0.03em;
    color: var(--phosphor);
}

.audio-help__bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.audio-help__time {
    flex: 0 0 auto;
    font-family: var(--font-crt);
    font-size: 1.1rem;
    color: var(--phosphor-dim);
    font-variant-numeric: tabular-nums;
}

/* Range input styled per engine; the filled part comes from --audio-progress. */
.audio-help__seek {
    -webkit-appearance: none;
    appearance: none;
    flex: 1 1 auto;
    min-width: 0;
    height: 1.75rem;
    margin: 0;
    background: transparent;
    cursor: pointer;
    touch-action: none;
}

.audio-help__seek:disabled {
    cursor: default;
}

.audio-help__seek::-webkit-slider-runnable-track {
    height: 6px;
    background: linear-gradient(to right, var(--phosphor) var(--audio-progress), var(--border) var(--audio-progress));
}

.audio-help__seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 18px;
    margin-top: -6px;
    border: 0;
    border-radius: 0;
    background: var(--phosphor);
    box-shadow: 0 0 6px rgba(255, 191, 0, 0.6);
}

.audio-help__seek::-moz-range-track {
    height: 6px;
    border: 0;
    background: var(--border);
}

.audio-help__seek::-moz-range-progress {
    height: 6px;
    background: var(--phosphor);
}

.audio-help__seek::-moz-range-thumb {
    width: 12px;
    height: 18px;
    border: 0;
    border-radius: 0;
    background: var(--phosphor);
    box-shadow: 0 0 6px rgba(255, 191, 0, 0.6);
}

.audio-help__seek:disabled::-webkit-slider-thumb {
    visibility: hidden;
}

.audio-help__seek:disabled::-moz-range-thumb {
    visibility: hidden;
}

.audio-help__error {
    flex: 1 0 100%;
    margin: 0;
    font-size: 1rem;
    color: var(--danger);
}

/* Under a section heading (home page) the player needs room before the list. */
h2 + .audio-help {
    margin-bottom: 2.5rem;
}

/* A loading indicator is not decoration — keep it turning, just slower. */
@media (prefers-reduced-motion: reduce) {
    .audio-help__spinner {
        animation-duration: 1.6s !important;
        animation-iteration-count: infinite !important;
    }
}

[hidden] {
    display: none !important;
}

@media (max-width: 40rem) {
    .shell { padding: 1rem 1rem 3rem; }
    .btn { width: 100%; text-align: center; }
    .actions { flex-direction: column; align-items: stretch; }
    .actions--nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .actions--nav .actions__start,
    .actions--nav .actions__end {
        width: 100%;
        flex-direction: column;
        margin-left: 0;
    }
    .actions--nav .actions__end {
        justify-content: stretch;
    }
}
