/* ===================================================================
   Content pages (Lexikon, Legal, Share, …) – CRT-Theme für Langtext
   Shared shell: templates/layout/content.html.twig
   Baut auf retro.css auf (Font, .screen, Scanlines, Flicker, Cursor).
   Content-Seiten laden NICHT index.css, daher wird die Navigation hier
   eigenständig gestylt.
   =================================================================== */

.content-wrap:focus { outline: none; }

/* ── Layout-Grundgerüst ─────────────────────────────────────────────── */
.screen--content {
    min-height: 100dvh;
    justify-content: flex-start;
    align-items: stretch;
    padding: 70px 0 0;
}

.content-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 14px 2.75rem;
    color: var(--phosphor);
}

/* ── Ambient-Hintergrund ───────────────────────────────────────────── */
/* Product glows sit in the viewport corners (fixed where supported);
   dot grid + refresh sweep are a fixed overlay behind the content. */
.screen--content {
    background:
        radial-gradient(46vmax 36vmax at 0% 18%, rgba(var(--product-green-rgb), 0.25), transparent 70%) fixed,
        radial-gradient(42vmax 34vmax at 100% 48%, rgba(var(--product-amber-rgb), 0.20), transparent 70%) fixed,
        radial-gradient(48vmax 34vmax at 8% 96%, rgba(var(--product-cyan-rgb), 0.24), transparent 70%) fixed,
        radial-gradient(ellipse at 50% 18%, var(--bg-mid) 0%, var(--bg-deep) 55%, #000 100%);
}
.screen--content::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%) 0 -40vh / 100% 40vh no-repeat,
        radial-gradient(circle, rgba(255, 255, 255, 0.24) 1.3px, transparent 2px) 0 0 / 28px 28px;
    animation: home-refresh-sweep 11s linear infinite;
}
@keyframes home-refresh-sweep {
    0%   { background-position: 0 -40vh, 0 0; }
    100% { background-position: 0 140vh, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .screen--content::after {
        animation: none;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 1.3px, transparent 2px) 0 0 / 28px 28px;
    }
}

/* Brand mark: closer to home hero weight (size + bloom from retro.css) */
.screen--content .brand-logo-wrapper {
    margin-bottom: 1.1rem;
}
.screen--content .brand-mark {
    padding: 1.2rem 1rem 0.85rem;
}
.screen--content .brand-logo {
    font-size: clamp(2.75rem, 8.5vw, 4rem);
}

/* ── Brotkrumen ─────────────────────────────────────────────────────── */
.content-breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0;
    margin: 0 0 1.4rem;
    font-size: 1.32rem;
    opacity: 0.85;
}
.content-breadcrumbs li + li::before {
    content: '›';
    margin-right: 0.35rem;
    opacity: 0.6;
}
.content-breadcrumbs a { color: var(--phosphor); text-decoration: none; }
.content-breadcrumbs a:hover { text-decoration: underline; }
.content-breadcrumbs [aria-current="page"] { color: var(--phosphor-accent); }

/* ── Überschriften & Lead ───────────────────────────────────────────── */
/* Phosphor-Grün mit Glow wie auf der Startseite */
.lexikon-title,
.lexikon-section-title,
.lexikon-prose h2,
.lexikon-prose h3,
.lexikon-card__title,
.lexikon-featured__title,
.lexikon-az-letter,
.lexikon-cta__title {
    color: var(--phosphor);
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px var(--phosphor);
}

/* h1/h2 – etwas dezenterer Glow */
.lexikon-title,
.lexikon-section-title,
.lexikon-prose h2,
.lexikon-az-letter {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.55);
}

.lexikon-title {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    line-height: 1.1;
    margin: 0 0 0.8rem;
}
.lexikon-eyebrow {
    display: inline-block;
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--phosphor-kicker);
    text-decoration: none;
    margin-bottom: 0.4rem;
}
.lexikon-eyebrow:hover { color: var(--phosphor-accent); }
.lexikon-lead {
    font-size: calc(1.35rem + 1px);
    line-height: 1.32;
    color: var(--phosphor-muted);
    margin: 0 0 1.4rem;
}
.lexikon-lead a {
    color: var(--phosphor);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.lexikon-lead a:hover {
    color: var(--phosphor-hover);
}
.lexikon-meta {
    font-size: 1rem;
    opacity: 0.7;
    margin: 0 0 1.6rem;
}
/* Frameless text slabs (homepage intro + detail article): 65% opaque
   so the dot grid remains a hint without competing with the copy. */
.lexikon-article,
.content-wrap > .lexikon-page-head {
    background: rgba(8, 11, 14, 0.65);
    padding: 0.2rem 0 1.2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 36px 24px rgba(8, 11, 14, 0.65);
}

.lexikon-page-head { margin-bottom: 2rem; text-align: left; }
.lexikon-page-head .lexikon-title,
.lexikon-page-head .lexikon-lead { text-align: left; }
.lexikon-page-head--illustrated {
    display: grid;
    gap: 1rem 1.4rem;
    align-items: start;
}
.lexikon-page-head--illustrated .lexikon-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
}
.lexikon-page-head--illustrated .lexikon-eyebrow {
    grid-column: 1 / -1;
}
.lexikon-page-head--illustrated .lexikon-hero-illustration {
    width: min(220px, 100%);
    margin: 0;
    justify-self: start;
}
.lexikon-page-head--illustrated .lexikon-hero-illustration img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: #000;
}
.lexikon-page-head--illustrated .lexikon-search {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: 0;
    text-align: left;
}
@media (min-width: 720px) {
    .lexikon-page-head--illustrated {
        grid-template-columns: min(220px, 34%) minmax(0, 1fr);
        align-items: start;
    }
    .lexikon-page-head--illustrated .lexikon-hero-illustration {
        width: 100%;
    }
    .lexikon-page-head--illustrated .lexikon-lead {
        margin-top: 0.7rem;
    }
}
/* Mobile: Bild, dann Lead, Suche – Titel bleibt volle Zeile oben */
@media (max-width: 719px) {
    .lexikon-page-head--illustrated .lexikon-lead,
    .lexikon-page-head--illustrated .lexikon-hero-illustration {
        grid-column: 1 / -1;
    }
}

/* ── Client-side Fuse search (reuses shared .search-bar from retro.css) ─ */
.lexikon-search {
    position: relative;
    max-width: 584px;
    margin: 1.2rem 0 0;
    text-align: left;
}
.lexikon-search .search-bar {
    margin: 0;
}
.lexikon-search__results {
    list-style: none;
    margin: 0.45rem 0 0;
    padding: 0;
    border: 2px solid var(--phosphor);
    border-radius: 16px;
    background: rgba(14, 14, 14, 0.95);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.22);
    max-height: min(60vh, 22rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--phosphor-scroll) rgba(0, 40, 0, 0.85);
}
.lexikon-search__results::-webkit-scrollbar {
    width: 10px;
}
.lexikon-search__results::-webkit-scrollbar-track {
    background: rgba(0, 40, 0, 0.85);
    border-radius: 0 14px 14px 0;
}
.lexikon-search__results::-webkit-scrollbar-thumb {
    background: var(--phosphor-scroll);
    border-radius: 6px;
    border: 2px solid rgba(14, 14, 14, 0.95);
    box-shadow: 0 0 6px rgba(200, 200, 200, 0.4);
}
.lexikon-search__results::-webkit-scrollbar-thumb:hover {
    background: var(--phosphor);
}
.lexikon-search__results[hidden] { display: none; }
.lexikon-search__hit {
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem 0.85rem;
    color: var(--phosphor);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.lexikon-search__results li:last-child .lexikon-search__hit {
    border-bottom: none;
}
.lexikon-search__hit:hover,
.lexikon-search__hit:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}
.lexikon-search__results [role="option"].is-active .lexikon-search__hit,
.lexikon-search__results [role="option"][aria-selected="true"] .lexikon-search__hit {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 3px 0 0 var(--phosphor-accent);
}
.lexikon-search__hit-type {
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--phosphor-accent);
    opacity: 0.85;
}
.lexikon-search__hit-title {
    font-size: 1.45rem;
    line-height: 1.25;
    text-shadow: 0 0 7.5px var(--phosphor), 0 0 18px rgba(255, 255, 255, 0.4);
}
.lexikon-search__hit-desc {
    font-size: 1.25rem;
    color: var(--phosphor-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lexikon-search__status {
    min-height: 1.2em;
    margin: 0.4rem 0 0;
    font-size: 1.2rem;
    color: var(--phosphor-muted);
}

/* ── Product feed: full-width signal window under the title ─────────── */
.lexikon-article {
    --feed-accent: var(--phosphor);
    --feed-accent-rgb: 255, 255, 255;
}
.product-feed {
    position: relative;
    margin: 0 0 1.5rem;
    padding: 0;
    background: #05080b;
    border: 1px solid rgba(var(--feed-accent-rgb), 0.85);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.85),
        0 10px 28px rgba(0, 0, 0, 0.55),
        0 0 22px rgba(var(--feed-accent-rgb), 0.22);
}
.product-feed__chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 2rem;
    padding: 0.28rem 0.7rem;
    border-bottom: 1px solid rgba(var(--feed-accent-rgb), 0.35);
    background: rgba(var(--feed-accent-rgb), 0.08);
    color: var(--feed-accent);
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(var(--feed-accent-rgb), 0.55);
}
.product-feed__id {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-feed__prompt {
    margin-right: 0.35rem;
    opacity: 0.8;
}
.product-feed__state {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.product-feed__pip {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--feed-accent);
    box-shadow: 0 0 8px var(--feed-accent);
}
.product-feed__viewport {
    position: relative;
    margin: 0.7rem;
}
/* Corner ticks sit in the bezel, outside the artwork (the art already has its own HUD marks). */
.product-feed__viewport::before {
    content: '';
    position: absolute;
    inset: -0.42rem;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(var(--feed-accent), var(--feed-accent)) left top / 11px 2px no-repeat,
        linear-gradient(var(--feed-accent), var(--feed-accent)) left top / 2px 11px no-repeat,
        linear-gradient(var(--feed-accent), var(--feed-accent)) right top / 11px 2px no-repeat,
        linear-gradient(var(--feed-accent), var(--feed-accent)) right top / 2px 11px no-repeat,
        linear-gradient(var(--feed-accent), var(--feed-accent)) left bottom / 11px 2px no-repeat,
        linear-gradient(var(--feed-accent), var(--feed-accent)) left bottom / 2px 11px no-repeat,
        linear-gradient(var(--feed-accent), var(--feed-accent)) right bottom / 11px 2px no-repeat,
        linear-gradient(var(--feed-accent), var(--feed-accent)) right bottom / 2px 11px no-repeat;
    filter: drop-shadow(0 0 3px rgba(var(--feed-accent-rgb), 0.75));
}
.product-feed__viewport::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0 3px,
        rgba(0, 0, 0, 0.28) 3px 4px
    );
}
.product-feed .product-feed__viewport img,
.product-feed.lexikon-hero-illustration img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border: 0;
    background: #000;
}
.product-feed__viewport img {
    box-shadow: inset 0 0 0 1px rgba(var(--feed-accent-rgb), 0.28);
}
@media (prefers-reduced-motion: no-preference) {
    .product-feed__pip {
        animation: hud-pulse 2.2s infinite ease-in-out;
    }
}

/* ── Hero illustration (portrait floats in prose) ───────────────────── */
.lexikon-prose--illustrated .lexikon-hero-illustration {
    float: left;
    width: min(220px, 42%);
    max-width: 220px;
    margin: 0 1.2rem 0.6rem 0;
}
.lexikon-prose--illustrated .about-portrait {
    width: min(240px, 46%);
    max-width: 240px;
    margin: 0 2.4rem 0.85rem 0;
}
.lexikon-prose--illustrated .lexikon-lead {
    margin-top: 0;
}
.lexikon-prose > .lexikon-lead {
    color: var(--phosphor-muted);
}
.lexikon-prose--illustrated::after {
    content: '';
    display: table;
    clear: both;
}
.lexikon-hero-illustration img {
    width: 100%;
    height: auto;
    display: block;
}
.lexikon-hero-illustration:not(.about-portrait) img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: #000;
}
.product-feed.lexikon-hero-illustration img {
    border: 0;
}
.about-portrait picture {
    display: block;
    width: 100%;
}
.about-portrait img {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border: 2px solid var(--phosphor);
    background: #000;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
}
@media (max-width: 639px) {
    .lexikon-prose--illustrated .lexikon-hero-illustration {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem;
    }
    .lexikon-prose--illustrated .about-portrait {
        width: 100%;
        max-width: 100%;
        margin: 0 0 1.2rem;
    }
}

/* ── Fließtext (gerendertes Markdown) ───────────────────────────────── */
.lexikon-prose {
    font-size: calc(1.32rem + 1px);
    line-height: 1.35;
    color: var(--phosphor-muted);
}
.lexikon-prose h2,
.lexikon-section-title {
    font-size: 1.7rem;
    margin: 2rem 0 0.7rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px dashed rgba(255,255,255,0.28);
}
/* FAQ / Related / index: space below dashed line closer to space above the title */
.lexikon-section-title {
    margin-bottom: 1.35rem;
}
.lexikon-prose h3 { font-size: 1.35rem; margin: 1.5rem 0 0.5rem; }
.lexikon-prose p { margin: 0 0 1rem; }
.lexikon-prose ul,
.lexikon-prose ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.lexikon-prose li { margin-bottom: 0.4rem; }
.lexikon-prose a { color: var(--phosphor); text-decoration: underline; text-underline-offset: 2px; }
.lexikon-prose a:hover { color: var(--phosphor-hover); }

/* Impressum: Kontaktzeilen als CRT-Karte, ohne Unterstreichungs-Liste */
.impressum-contact {
    margin: 0.2rem 0 1.4rem;
    padding: 0.75rem 0.95rem 0.7rem;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #0d1216;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 255, 255, 0.1);
    clear: left;
    font-size: 1.32rem;
}
.lexikon-prose .impressum-contact__who {
    margin: 0 0 0.35rem;
    letter-spacing: 0.06em;
    color: var(--phosphor);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}
.lexikon-prose .impressum-contact__addr {
    margin: 0 0 0.85rem;
    color: var(--phosphor-muted);
    line-height: 1.35;
}
.impressum-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1.4rem;
}
.impressum-contact li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    margin: 0;
    min-width: 0;
}
.impressum-contact__label {
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--phosphor-kicker);
}
.impressum-contact a {
    text-decoration: none;
    color: var(--phosphor);
    overflow-wrap: anywhere;
}
.impressum-contact a:hover,
.impressum-contact a:focus-visible {
    color: var(--phosphor-hover);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
    text-decoration: none;
}
@media (max-width: 379px) {
    .impressum-contact ul {
        grid-template-columns: 1fr;
    }
}
.lexikon-prose strong { color: var(--phosphor-strong); font-weight: 700; }
.lexikon-prose blockquote {
    margin: 1.2rem 0;
    padding: 0.6rem 1rem;
    border-left: 3px solid var(--phosphor);
    background: rgba(255,255,255,0.07);
}
.lexikon-prose code {
    font-family: inherit;
    font-size: 1em;
    background: rgba(32, 32, 32, 0.65);
    padding: 0.05em 0.35em;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 2px;
}
.lexikon-prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.lexikon-prose th,
.lexikon-prose td { border: 1px solid rgba(255,255,255,0.3); padding: 0.5rem 0.7rem; text-align: left; }

.lexikon-synonyms {
    margin: 0.85rem 0 1.35rem;
    padding: 0.55rem 0.85rem;
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--phosphor-strong);
    border-left: 3px solid rgba(200, 200, 200, 0.55);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.lexikon-synonyms strong {
    color: var(--phosphor);
    letter-spacing: 0.04em;
}

/* ── Karten-Raster (Kategorien, Themen, Related) ────────────────────── */
.lexikon-card-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.9rem;
}
.lexikon-card-grid--list { grid-template-columns: 1fr; }
.lexikon-card a {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    height: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255,255,255,0.35);
    background: #080b0e;
    color: var(--phosphor);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 255, 255, 0.12);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    position: relative;
    z-index: 2;
}
.lexikon-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}
.lexikon-card__illustration {
    flex: 0 0 108px;
    max-width: 108px;
    margin: 0;
}
.lexikon-card__illustration img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}
.lexikon-card--category a {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
}
.lexikon-card--category .lexikon-card__illustration {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    margin: 0.15rem 0 0.25rem;
}
.lexikon-card a:hover,
.lexikon-card a:focus-visible {
    border-color: var(--phosphor);
    background: rgba(32,32,32,0.5);
    box-shadow: 0 0 14px rgba(255,255,255,0.3);
    outline: none;
}
.lexikon-card__kind {
    font-size: 1.1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.65;
}
.lexikon-card__title {
    font-size: 1.5rem;
    line-height: 1.25;
}
.lexikon-card--category .lexikon-card__title {
    /* Reserve two lines so illustrations align across the grid row. */
    min-height: calc(2 * 1.25 * 1.5rem);
}
.lexikon-card-grid--illustrated .lexikon-card a {
    display: grid;
    grid-template-columns: 108px 1fr;
    grid-template-areas:
        "thumb title"
        "thumb desc";
    column-gap: 0.85rem;
    row-gap: 0.3rem;
    align-items: start;
}
.lexikon-card-grid--illustrated .lexikon-card__illustration {
    grid-area: thumb;
    grid-row: 1 / -1;
    flex: none;
    max-width: 108px;
    align-self: start;
}
.lexikon-card-grid--illustrated .lexikon-card__content {
    display: contents;
}
.lexikon-card-grid--illustrated .lexikon-card__title {
    grid-area: title;
    min-height: calc(2 * 1.25 * 1.5rem);
}
.lexikon-card-grid--illustrated .lexikon-card__desc {
    grid-area: desc;
}
.lexikon-card__desc { font-size: 1.32rem; line-height: 1.32; color: var(--phosphor-muted); opacity: 0.85; }
.lexikon-card__count { font-size: 1.1rem; opacity: 0.6; margin-top: auto; }

/* ── Empfohlener Einstieg (Pillar) ──────────────────────────────────── */
.lexikon-featured { margin: 0 0 2.2rem; }
.lexikon-featured__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(255,255,255,0.55);
    background: #080b0e;
    color: var(--phosphor);
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.85), 0 0 14px rgba(255, 255, 255, 0.14);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2;
}
.lexikon-featured__text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}
.lexikon-featured__illustration {
    flex: 0 0 240px;
    max-width: 240px;
    margin: 0;
}
.lexikon-featured__illustration img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: #000;
}
.lexikon-featured__link:hover,
.lexikon-featured__link:focus-visible,
.lexikon-featured__link:active {
    border-color: var(--phosphor);
    background: #12161b;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.95), 0 0 22px rgba(255, 255, 255, 0.35);
    outline: none;
}
.lexikon-featured__link--amber {
    --feature-accent: var(--product-amber);
    --feature-accent-rgb: var(--product-amber-rgb);
}
.lexikon-featured__link--green {
    --feature-accent: var(--product-green);
    --feature-accent-rgb: var(--product-green-rgb);
}
.lexikon-featured__link--cyan {
    --feature-accent: var(--product-cyan);
    --feature-accent-rgb: var(--product-cyan-rgb);
}
@media (hover: hover) {
    .lexikon-featured__link:is(.lexikon-featured__link--amber, .lexikon-featured__link--green, .lexikon-featured__link--cyan):is(:hover, :focus-visible) {
        border-color: var(--feature-accent);
        background: linear-gradient(rgba(var(--feature-accent-rgb), 0.14), rgba(var(--feature-accent-rgb), 0.14)), #080b0e;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.95), 0 0 22px rgba(var(--feature-accent-rgb), 0.4);
        color: var(--feature-accent);
    }
    .lexikon-featured__link:is(.lexikon-featured__link--amber, .lexikon-featured__link--green, .lexikon-featured__link--cyan):is(:hover, :focus-visible) .lexikon-featured__kicker,
    .lexikon-featured__link:is(.lexikon-featured__link--amber, .lexikon-featured__link--green, .lexikon-featured__link--cyan):is(:hover, :focus-visible) .lexikon-featured__title,
    .lexikon-featured__link:is(.lexikon-featured__link--amber, .lexikon-featured__link--green, .lexikon-featured__link--cyan):is(:hover, :focus-visible) .lexikon-featured__desc {
        color: var(--feature-accent);
        opacity: 0.9;
    }
    .lexikon-featured__link:is(.lexikon-featured__link--amber, .lexikon-featured__link--green, .lexikon-featured__link--cyan):is(:hover, :focus-visible) .lexikon-featured__illustration img {
        filter: drop-shadow(0 0 10px rgba(var(--feature-accent-rgb), 0.55));
    }
    .lexikon-featured__link--green:is(:hover, :focus-visible) .lexikon-featured__kicker::after {
        content: ' — THE GREEN ONE';
    }
    .lexikon-featured__link--amber:is(:hover, :focus-visible) .lexikon-featured__kicker::after {
        content: ' — THE YELLOW ONE';
    }
    .lexikon-featured__link--cyan:is(:hover, :focus-visible) .lexikon-featured__kicker::after {
        content: ' — THE CYAN ONE';
    }
}
.lexikon-featured__kicker {
    font-size: 1.1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--phosphor-kicker);
}
.lexikon-featured__title { font-size: 1.6rem; font-weight: normal; }
.lexikon-article--green {
    --feed-accent: var(--product-green);
    --feed-accent-rgb: var(--product-green-rgb);
}
.lexikon-article--amber {
    --feed-accent: var(--product-amber);
    --feed-accent-rgb: var(--product-amber-rgb);
}
.lexikon-article--cyan {
    --feed-accent: var(--product-cyan);
    --feed-accent-rgb: var(--product-cyan-rgb);
}
.lexikon-featured__link--green .lexikon-featured__title,
.lexikon-title--green,
.lexikon-article--green .lexikon-prose h2 {
    color: var(--product-green);
    text-shadow: 0 0 8px rgba(var(--product-green-rgb), 0.65);
}
.lexikon-article--green .lexikon-prose h2 {
    border-bottom-color: rgba(var(--product-green-rgb), 0.4);
}
.lexikon-featured__link--amber .lexikon-featured__title,
.lexikon-title--amber,
.lexikon-article--amber .lexikon-prose h2 {
    color: var(--product-amber);
    text-shadow: 0 0 8px rgba(var(--product-amber-rgb), 0.65);
}
.lexikon-article--amber .lexikon-prose h2 {
    border-bottom-color: rgba(var(--product-amber-rgb), 0.4);
}
.lexikon-featured__link--cyan .lexikon-featured__title,
.lexikon-title--cyan,
.lexikon-article--cyan .lexikon-prose h2 {
    color: var(--product-cyan);
    text-shadow: 0 0 8px rgba(var(--product-cyan-rgb), 0.65);
}
.lexikon-article--cyan .lexikon-prose h2 {
    border-bottom-color: rgba(var(--product-cyan-rgb), 0.4);
}
.lexikon-featured__desc { font-size: 1.5rem; line-height: 1.35; color: var(--phosphor-muted); opacity: 0.9; }

/* ── FAQ (same accordion chrome as Hilfe: .crt-details, no per-item frame) ── */
/* Match prose h2 top spacing: avoid double gap after clearfix / last-block margin */
.lexikon-prose:has(+ .lexikon-faq) > :last-child {
    margin-bottom: 0;
}
.lexikon-prose + .lexikon-faq {
    margin-top: 2rem;
}
.lexikon-prose + .lexikon-faq > .lexikon-section-title {
    margin-top: 0;
}
.lexikon-faq .crt-details {
    margin: 0;
}
.lexikon-faq .crt-details + .crt-details {
    margin-top: 1rem;
}
.lexikon-faq__answer {
    margin-top: 0.4rem;
    font-size: 1.32rem;
    line-height: 1.35;
    color: var(--phosphor-muted);
}

/* ── A-Z Glossar ────────────────────────────────────────────────────── */
.lexikon-az {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 2rem;
}
.lexikon-az a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    padding: 0.2rem 0.4rem;
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--phosphor);
    text-decoration: none;
    font-size: 1.2rem;
}
.lexikon-az a:hover { background: rgba(255,255,255,0.12); }
.lexikon-az-group { margin-bottom: 2rem; scroll-margin-top: 80px; }
.lexikon-az-letter {
    font-size: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.28);
    margin: 0 0 0.8rem;
}

/* ── Glossar-Teaser / Tag-Liste ─────────────────────────────────────── */
.lexikon-glossar-teaser p { font-size: 1.32rem; line-height: 1.35; color: var(--phosphor-muted); }
.lexikon-glossar-teaser a { color: var(--phosphor); }
.lexikon-tag-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.lexikon-tag-list a {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--phosphor);
    text-decoration: none;
    font-size: 1.32rem;
}
.lexikon-tag-list a:hover { background: rgba(255,255,255,0.12); }

/* ── Related ────────────────────────────────────────────────────────── */
.lexikon-related { margin-top: 2.6rem; }

/* ── Call to Action ─────────────────────────────────────────────────── */
.lexikon-cta {
    display: block;
    margin: 3rem 0 1rem;
    padding: 1.6rem 1.4rem;
    text-align: center;
    border: 2px solid var(--phosphor);
    background: #080b0e;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.85), 0 0 14px rgba(255, 255, 255, 0.14);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2;
}
.lexikon-cta--amber {
    --cta-accent: var(--product-amber);
    --cta-accent-rgb: var(--product-amber-rgb);
}
.lexikon-cta--green {
    --cta-accent: var(--product-green);
    --cta-accent-rgb: var(--product-green-rgb);
}
.lexikon-cta--cyan {
    --cta-accent: var(--product-cyan);
    --cta-accent-rgb: var(--product-cyan-rgb);
}
.lexikon-cta:is(.lexikon-cta--amber, .lexikon-cta--green, .lexikon-cta--cyan):is(:hover, :focus-visible, :active) {
    border-color: var(--cta-accent);
    background: linear-gradient(rgba(var(--cta-accent-rgb), 0.14), rgba(var(--cta-accent-rgb), 0.14)), #080b0e;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.95),
        0 0 22px rgba(var(--cta-accent-rgb), 0.4);
}
.lexikon-cta:is(.lexikon-cta--amber, .lexikon-cta--green, .lexikon-cta--cyan):is(:hover, :focus-visible, :active) .lexikon-cta__title {
    color: var(--cta-accent);
    text-shadow: 0 0 8px rgba(var(--cta-accent-rgb), 0.65);
}
.lexikon-cta:is(.lexikon-cta--amber, .lexikon-cta--green, .lexikon-cta--cyan):is(:hover, :focus-visible, :active) .lexikon-cta__btn {
    border-color: var(--cta-accent);
    color: var(--cta-accent);
    background: rgba(var(--cta-accent-rgb), 0.22);
    box-shadow: 0 0 18px rgba(var(--cta-accent-rgb), 0.5);
}
.lexikon-cta:is(.lexikon-cta--amber, .lexikon-cta--green, .lexikon-cta--cyan):is(:hover, :focus-visible, :active) .lexikon-cta__btn::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--cta-accent-rgb), 0.18) 35%,
        rgba(var(--cta-accent-rgb), 0.7) 50%,
        rgba(var(--cta-accent-rgb), 0.18) 65%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(var(--cta-accent-rgb), 0.5);
}
.legal-page + .lexikon-cta {
    margin-top: 1.2rem;
}
.lexikon-cta:is(:hover, :focus-visible, :active) {
    outline: none;
}
.lexikon-cta__title { display: block; font-size: 1.6rem; margin: 0 0 0.6rem; }
.lexikon-cta__text { font-size: 1.2rem; line-height: 1.5; margin: 0 auto 1.2rem; max-width: 560px; }
.lexikon-cta__btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    isolation: isolate;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--phosphor);
    background: rgba(255,255,255,0.18);
    color: var(--phosphor);
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(255,255,255,0.35);
    transition: background 0.15s, box-shadow 0.15s;
}
.lexikon-cta__btn::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -30%;
    width: 28%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 35%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.15) 65%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
    pointer-events: none;
    z-index: 0;
    animation: lexikon-cta-scan 2.8s ease-in-out infinite;
}
.lexikon-cta:is(:hover, :focus-visible, :active) .lexikon-cta__btn {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 22px rgba(255,255,255,0.6);
}
.lexikon-cta:is(:hover, :focus-visible, :active) .lexikon-cta__btn::after {
    animation-duration: 1.6s;
}

@keyframes lexikon-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) {
    .lexikon-cta__btn::after {
        animation: none;
        display: none;
    }
}

.lexikon-empty { font-size: 1.32rem; color: var(--phosphor-muted); opacity: 0.8; }

@media (max-width: 639px) {
    .lexikon-card-grid--illustrated .lexikon-card a {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .lexikon-card-grid--illustrated .lexikon-card__content {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        flex: 1;
        min-width: 0;
    }
    .lexikon-card-grid--illustrated .lexikon-card__illustration {
        grid-area: unset;
        grid-row: unset;
        max-width: 100%;
    }
    .lexikon-featured__link--illustrated {
        flex-direction: column;
        align-items: stretch;
    }
    .lexikon-featured__illustration {
        flex: 0 0 auto;
        max-width: 100%;
    }

    /* CTA headline wraps on small screens — strong glow hurts readability */
    .lexikon-cta__title {
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.35);
    }
}

@media (max-width: 480px) {
    .lexikon-lead { font-size: calc(1.2rem + 2px); }
    .lexikon-prose { font-size: calc(1.32rem + 2px); }

    .lexikon-title,
    .lexikon-section-title,
    .lexikon-prose h2,
    .lexikon-prose h3,
    .lexikon-card__title,
    .lexikon-featured__title,
    .lexikon-az-letter {
        letter-spacing: 0.05em;
        text-shadow: 0 0 6px var(--phosphor);
    }
    .lexikon-featured__link--green .lexikon-featured__title,
    .lexikon-title--green,
    .lexikon-article--green .lexikon-prose h2 {
        text-shadow: 0 0 6px rgba(var(--product-green-rgb), 0.7);
    }
    .lexikon-featured__link--amber .lexikon-featured__title,
    .lexikon-title--amber,
    .lexikon-article--amber .lexikon-prose h2 {
        text-shadow: 0 0 6px rgba(var(--product-amber-rgb), 0.7);
    }
    .lexikon-featured__link--cyan .lexikon-featured__title,
    .lexikon-title--cyan,
    .lexikon-article--cyan .lexikon-prose h2 {
        text-shadow: 0 0 6px rgba(var(--product-cyan-rgb), 0.7);
    }

    .lexikon-cta__title {
        letter-spacing: 0.05em;
    }

    .lexikon-title,
    .lexikon-section-title,
    .lexikon-prose h2,
    .lexikon-az-letter {
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.45);
    }
}

/* ── Coming Soon ────────────────────────────────────────────────────── */
.coming-soon-badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.12rem 0.55rem;
    border: 1px solid var(--phosphor);
    color: var(--phosphor);
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}
.lexikon-featured + .lexikon-featured { margin-top: 1.1rem; }
.lexikon-featured__link.is-disabled {
    cursor: default;
    pointer-events: none;
}
.lexikon-featured__link.is-disabled:hover,
.lexikon-featured__link.is-disabled:focus-visible,
.lexikon-featured__link.is-disabled:active {
    border-color: rgba(255,255,255,0.55);
    background: #080b0e;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.85), 0 0 14px rgba(255, 255, 255, 0.14);
}
.feature-cta { margin-top: 1.6rem; }

/* Touch / small screens: CTAs stay in product colour (no hover) */
@media (pointer: coarse), (hover: none), (max-width: 639px) {
    .lexikon-cta:is(.lexikon-cta--amber, .lexikon-cta--green, .lexikon-cta--cyan) {
        border-color: var(--cta-accent);
        background: linear-gradient(rgba(var(--cta-accent-rgb), 0.14), rgba(var(--cta-accent-rgb), 0.14)), #080b0e;
        box-shadow:
            0 6px 24px rgba(0, 0, 0, 0.85),
            0 0 18px rgba(var(--cta-accent-rgb), 0.28);
    }
    .lexikon-cta:is(.lexikon-cta--amber, .lexikon-cta--green, .lexikon-cta--cyan) .lexikon-cta__title {
        color: var(--cta-accent);
        text-shadow: 0 0 8px rgba(var(--cta-accent-rgb), 0.65);
    }
    .lexikon-cta:is(.lexikon-cta--amber, .lexikon-cta--green, .lexikon-cta--cyan) .lexikon-cta__btn {
        border-color: var(--cta-accent);
        color: var(--cta-accent);
        background: rgba(var(--cta-accent-rgb), 0.22);
        box-shadow: 0 0 18px rgba(var(--cta-accent-rgb), 0.5);
    }
    .lexikon-cta:is(.lexikon-cta--amber, .lexikon-cta--green, .lexikon-cta--cyan) .lexikon-cta__btn::after {
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(var(--cta-accent-rgb), 0.18) 35%,
            rgba(var(--cta-accent-rgb), 0.7) 50%,
            rgba(var(--cta-accent-rgb), 0.18) 65%,
            transparent 100%
        );
        box-shadow: 0 0 12px rgba(var(--cta-accent-rgb), 0.5);
    }
}
