/* zocken.co -- Stylesheet der öffentlichen Website (Visual Sprint, Prototyp).
   Benchmark: 04_design/references/visual-sprint/ref-01 und ref-02.
   Aufbau: Tokens -> Basis -> Bausteine -> Header -> Hero -> Leiste -> Karten
   -> Themenband -> Fokus-Karte -> Porträt-Bausteine -> Footer -> übrige Templates.
   Mobile first; Breakpoints 640 / 768 / 900 / 1040 / 1240.
   Keine externen Schriften, Bilder oder Skripte. Keine data:-URIs, keine
   Inline-Styles (CSP style-src 'self' bleibt möglich).
   Regel: Mint (--z-mint) nur auf dunklem Grund oder als Fläche mit dunkler
   Schrift; Links auf hellem Grund immer --z-link (dunkles Grün), auf dunklem Grund --z-mint. */

:root {
    /* Dunkle Flächen */
    --z-navy-950: #050A14;
    --z-navy-900: #08101D;
    --z-navy-800: #0D1A30;
    --z-navy-700: #14294B;
    --z-space-600: #1F4F86;
    --z-space-500: #2F68A2;
    --z-space-200: #B5D0EA;
    --z-space-100: #E6F0F9;
    --z-on-dark-muted: #C2CCDB;
    --z-line-dark: rgba(255, 255, 255, .12);
    --z-outline-dark: rgba(255, 255, 255, .82);

    /* Akzente */
    --z-mint: #1FDDB7;
    --z-mint-hover: #5CEBCD;
    --z-mint-300: #7BEAD6;
    --z-on-mint: #04211D;
    --z-sky: #8FB4FF;
    --z-blue: #1F5FE0;
    --z-blue-hover: #1747AD;
    --z-blue-icon: #2B6BF0;
    --z-link: #067A62;          /* Link-Grün auf Hell (5,3:1 auf Weiß); auf Dunkel gilt das Marken-Mint */
    --z-link-hover: #04594A;
    --z-gold: #EFA91B;

    /* Helle Flächen */
    --z-white: #FFFFFF;
    --z-page: #FFFFFF;
    --z-soft: #F4F6FA;
    --z-border: #E4E9F0;
    --z-ink: #0B1423;
    --z-body: #2B3648;
    --z-muted: #5A667A;

    /* Form */
    --z-radius-sm: 8px;
    --z-radius: 12px;
    --z-radius-lg: 16px;
    --z-radius-pill: 999px;
    --z-shadow-card: 0 1px 2px rgba(11, 20, 35, .04), 0 8px 24px rgba(11, 20, 35, .06);
    --z-shadow-hover: 0 2px 4px rgba(11, 20, 35, .06), 0 14px 32px rgba(11, 20, 35, .12);

    /* Raster */
    --z-container: 1200px;
    --z-gutter: 20px;
    --z-overlap: 20px;          /* so weit ragt die Leiste in den Hero */

    /* Schrift (System-Stacks; Vorschlag zum Selbst-Hosten siehe Notiz) */
    --z-font-display: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --z-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --z-font-hand: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
}

@media (min-width: 640px) {
    :root { --z-gutter: 24px; }
}
@media (min-width: 1040px) {
    :root { --z-overlap: 28px; }
}

/* ------------------------------------------------------------------
   Basis
   ------------------------------------------------------------------ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--z-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--z-body);
    background: var(--z-page);
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--z-font-display);
    color: var(--z-ink);
    letter-spacing: -0.02em;
}
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--z-link); }
a:hover { color: var(--z-link-hover); }

/* Fokus: auf Hell dunkles Grün, auf Dunkel weiß. */
a:focus-visible,
summary:focus-visible,
button:focus-visible { outline: 3px solid var(--z-link); outline-offset: 2px; border-radius: 4px; }
.site-header a:focus-visible,
.site-header summary:focus-visible,
.hero a:focus-visible,
.topicband a:focus-visible,
.focus a:focus-visible,
.ctaband a:focus-visible,
.titleband a:focus-visible { outline-color: var(--z-white); }
main:focus { outline: none; }

.container {
    width: 100%;
    max-width: calc(var(--z-container) + 2 * var(--z-gutter));
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--z-gutter);
    padding-right: var(--z-gutter);
}

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

.skip-link {
    position: absolute;
    left: 8px;
    top: -80px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    background: var(--z-white);
    color: var(--z-link);
    border-radius: var(--z-radius-sm);
    font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* SVG-Sprite (einmal je Seite, unsichtbar) und Linien-Icons */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
    display: block;
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ------------------------------------------------------------------
   Kleine Bausteine: Akzent, Badge, Button, Pfeil-Link, Handschrift
   ------------------------------------------------------------------ */

.accent { color: var(--z-mint); }

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    border-radius: 5px;
    font-family: var(--z-font-body);
    font-size: 0.6875rem;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge--light { background: var(--z-white); color: var(--z-blue); }
.badge--mint { background: var(--z-mint); color: var(--z-on-mint); }
/* Kennzeichnung werblicher Inhalte (D-047): deutlich sichtbar, nicht farbcodiert,
   höchster Kontrast auf dunklem und hellem Grund, immer zuerst vor dem Titel. */
.badge--ad {
    min-height: 28px;
    padding: 3px 12px;
    background: var(--z-white);
    color: var(--z-ink);
    border: 2px solid var(--z-ink);
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
}
.hero__labels, .focus__labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border: 1.5px solid transparent;
    border-radius: var(--z-radius-sm);
    font-family: var(--z-font-body);
    font-size: 0.9375rem;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.button--primary { background: var(--z-mint); color: var(--z-on-mint); }
.button--primary:hover { background: var(--z-mint-hover); color: var(--z-on-mint); }
/* Outline-Button für dunkle Flächen */
.button--ghost { border-color: var(--z-outline-dark); color: var(--z-white); }
.button--ghost:hover { border-color: var(--z-mint); color: var(--z-mint); }

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--z-link);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}
.more-link:hover { color: var(--z-link-hover); text-decoration: underline; }

/* Handschrift-Notiz mit Mint-Schwung (Signature-Element, rein dekorativ) */
.scribble {
    margin: 0;
    font-family: var(--z-font-hand);
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: 0;
    transform: rotate(-8deg);
}
.scribble::after {
    content: "";
    display: block;
    width: 76px;
    height: 12px;
    margin: 2px 0 0 30%;
    border-bottom: 4px solid var(--z-mint);
    border-radius: 0 0 30% 70% / 0 0 100% 100%;
    transform: rotate(-5deg);
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

.site-header {
    position: relative;
    z-index: 20;
    background: var(--z-navy-950);
    color: var(--z-white);
    border-bottom: 1px solid var(--z-line-dark);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    color: var(--z-white);
    text-decoration: none;
}
.brand:hover { color: var(--z-white); }
.brand__wordmark {
    font-family: var(--z-font-display);
    font-size: 1.625rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.brand__accent { color: var(--z-mint); }
.brand__tagline {
    margin-top: 4px;
    font-size: 0.6875rem;
    line-height: 1.3;
    color: var(--z-on-dark-muted);
    white-space: nowrap;
}

.site-nav ul { list-style: none; display: flex; }
.site-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--z-white);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.site-nav a:hover { color: var(--z-mint-hover); }
.site-nav a[aria-current] { color: var(--z-mint); }
.site-nav--wide { display: none; margin-left: 40px; }
.site-nav--wide ul { gap: 4px; }
.site-nav--wide a[aria-current]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--z-mint);
}

.site-header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--z-radius-sm);
    color: var(--z-white);
    text-decoration: none;
}
.icon-button:hover { color: var(--z-mint-hover); }
.icon-button .icon { width: 1.5rem; height: 1.5rem; }

.site-header__claim {
    display: none;
    margin: 0 0 0 20px;
    padding-left: 28px;
    border-left: 1px solid rgba(255, 255, 255, .28);
    font-size: 0.875rem;
    line-height: 1.25;
    color: var(--z-white);
}

/* Unter 1040px: <details>-Menü (ohne JavaScript bedienbar). */
.site-menu { margin: 0; }
.site-menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--z-radius-sm);
    color: var(--z-white);
    cursor: pointer;
    list-style: none;
}
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary .icon { width: 1.5rem; height: 1.5rem; }
.site-menu[open] > summary { color: var(--z-mint); }
.site-nav--compact {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 8px var(--z-gutter) 16px;
    background: var(--z-navy-950);
    border-bottom: 1px solid var(--z-line-dark);
}
.site-nav--compact ul { flex-direction: column; }
.site-nav--compact a { min-height: 48px; border-left: 2px solid transparent; }
.site-nav--compact a[aria-current] { border-left-color: var(--z-mint); }

@media (min-width: 640px) {
    .site-header__inner { gap: 24px; min-height: 76px; }
    .brand__wordmark { font-size: 1.875rem; }
}
@media (min-width: 1040px) {
    .site-header__inner { min-height: 84px; }
    .brand__wordmark { font-size: 2rem; }
    .brand__tagline { font-size: 0.71875rem; }
    .site-nav--wide { display: block; }
    .site-menu { display: none; }
}
@media (min-width: 1240px) {
    .site-nav--wide { margin-left: 56px; }
    .site-nav--wide ul { gap: 10px; }
    .site-header__claim { display: block; }
}

/* ------------------------------------------------------------------
   Hero (Startseite und Porträt)
   ------------------------------------------------------------------ */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--z-navy-900);
    color: var(--z-white);
}
.hero__inner { position: relative; padding-top: 36px; padding-bottom: 12px; }

.hero__title {
    color: var(--z-white);
    font-size: clamp(2.125rem, 4.6vw, 3.625rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.025em;
}
.hero__title span { display: block; }
.hero__title .accent { color: var(--z-mint); }
/* Zweite Zeile eine Stufe kleiner (Porträt: "HISQORE –" / Unterzeile) */
.hero__title-sub { font-size: 0.78em; line-height: 1.12; }

.hero__lead {
    margin: 20px 0 0;
    max-width: 34em;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--z-white);
}
.hero__actions { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 0; }

.hero__media {
    position: relative;
    z-index: -1;
    order: 2;
    height: 240px;
    margin-top: -16px;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 42%);
    mask-image: linear-gradient(180deg, transparent 0, #000 42%);
}

.hero__note {
    position: absolute;
    z-index: 1;
    right: 20px;
    bottom: calc(var(--z-overlap) + 28px);
    font-size: 1.25rem;
    color: var(--z-white);
    text-shadow: 0 1px 12px rgba(5, 10, 20, .7);
}

.hero .badge { margin-bottom: 14px; }

/* Brotkrumen im dunklen Hero */
.crumbs { margin: 0 0 4px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; }
.crumbs li { display: flex; align-items: center; font-size: 0.8125rem; font-weight: 600; color: var(--z-white); }
.crumbs li + li::before { content: "›"; padding: 0 8px; color: var(--z-on-dark-muted); font-weight: 400; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--z-mint); text-decoration: none; }
.crumbs a:hover { color: var(--z-mint-hover); text-decoration: underline; }
.crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }

/* Porträt-Hero: Weltraum-Grund, Maskottchen freigestellt per Maske */
.hero--portrait {
    background:
        radial-gradient(1.5px 1.5px at 58% 22%, rgba(255, 255, 255, .8) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 71% 64%, rgba(255, 255, 255, .6) 50%, transparent 51%),
        radial-gradient(2px 2px at 83% 38%, rgba(255, 255, 255, .7) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 92% 78%, rgba(255, 255, 255, .6) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 47% 82%, rgba(255, 255, 255, .5) 50%, transparent 51%),
        linear-gradient(90deg, var(--z-navy-900) 0%, var(--z-navy-900) 36%, #0A1936 68%, #0B1D42 100%);
}
.hero--portrait .hero__inner { padding-top: 8px; }
.hero--portrait .hero__lead { max-width: 30em; font-size: 1rem; }
.hero--portrait .hero__media { height: 270px; }
/* Notiz erst zeigen, wenn rechts neben dem Maskottchen Platz ist. */
.hero--portrait .hero__note { display: none; }
.hero--portrait .hero__media img { object-position: 50% 12%; }
.hero--portrait .hero__media::after {
    content: "";
    display: none;
    position: absolute;
    top: -70px;
    right: -150px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle at 26% 72%, #B9D8FA 0%, #6FA3E6 26%, #2A56A4 54%, #10285A 78%);
    box-shadow: 0 0 60px rgba(111, 163, 230, .3);
}

@media (min-width: 640px) {
    .hero__actions { flex-direction: row; flex-wrap: wrap; }
    .hero__note { font-size: 1.375rem; }
}
@media (min-width: 768px) {
    .hero { display: block; }
    .hero__inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 418px;
        padding-top: 44px;
        padding-bottom: calc(44px + var(--z-overlap));
    }
    .hero__content { max-width: 52%; }
    .hero__media { position: absolute; top: 0; right: 0; bottom: 0; left: 46%; height: auto; margin: 0; }
    .hero__media img {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%);
        mask-image: linear-gradient(90deg, transparent 0, #000 42%);
    }
    .hero__note {
        top: 52px;
        bottom: auto;
        right: max(var(--z-gutter), calc(50% - var(--z-container) / 2 + 12px));
        font-size: 1.5rem;
    }

    .hero--portrait .hero__inner { justify-content: flex-start; min-height: 420px; padding-top: 8px; padding-bottom: calc(28px + var(--z-overlap)); }
    .hero--portrait .hero__media { left: 50%; height: auto; }
    .hero--portrait .hero__media img {
        position: absolute;
        top: 0;
        left: 0;
        width: auto;
        max-width: none;
        height: 100%;
        object-position: 50% 50%;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 74%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 74%, transparent 100%);
    }
    .hero--portrait .hero__note { top: 92px; }
}
@media (min-width: 1040px) {
    .hero__content { max-width: 560px; }
    .hero--portrait .hero__content { max-width: 570px; }
    .hero--portrait .hero__media::after { display: block; }
}
@media (min-width: 1240px) {
    .hero--portrait .hero__note { display: block; right: max(100px, calc(50% - var(--z-container) / 2 + 12px)); }
}

/* ------------------------------------------------------------------
   Leiste unter dem Hero (vier Themen bzw. vier Merkmale)
   ------------------------------------------------------------------ */

.featurebar {
    position: relative;
    z-index: 2;
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: calc(-1 * var(--z-overlap));
    padding: 6px 20px;
    background: var(--z-white);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    box-shadow: var(--z-shadow-card);
}
.featurebar__item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--z-border); }
.featurebar__item:first-child { border-top: 0; }
.featurebar__icon { flex: none; width: 48px; height: 48px; stroke-width: 2; color: var(--z-blue-icon); }
.featurebar__icon--gold { color: var(--z-gold); }
.featurebar__title {
    display: block;
    font-family: var(--z-font-display);
    font-size: 0.9375rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--z-ink);
    text-decoration: none;
}
a.featurebar__title:hover { color: var(--z-link); }
/* Ganzes Feld klickbar (Startseite: Link auf den Hub) */
.featurebar__item--link { position: relative; }
.featurebar__item--link .featurebar__title::after { content: ""; position: absolute; inset: 0; }
.featurebar__text { display: block; margin-top: 4px; font-size: 0.875rem; line-height: 1.4; color: var(--z-muted); }

@media (min-width: 640px) {
    .featurebar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 8px; }
    .featurebar__item { margin: 12px 0; padding: 4px 20px; border-top: 0; border-left: 1px solid var(--z-border); }
    .featurebar__item:nth-child(odd) { border-left: 0; }
}
@media (min-width: 1040px) {
    .featurebar { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 8px; }
    .featurebar__item { gap: 18px; padding: 4px 24px; }
    .featurebar__item:nth-child(odd) { border-left: 1px solid var(--z-border); }
    .featurebar__item:first-child { border-left: 0; }
    .featurebar__icon { width: 52px; height: 52px; }
}

/* ------------------------------------------------------------------
   Sektionen, Bildkarten ("Aktuelle Highlights"), Zeilen-Teaser
   ------------------------------------------------------------------ */

.section { padding-top: 36px; }
.section--last { padding-bottom: 40px; }
.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 24px;
    margin: 0 0 16px;
}
.section__title { font-size: 1.625rem; line-height: 1.2; font-weight: 800; }
.section__title--sm { font-size: 1.375rem; }
.section__intro { max-width: 36em; margin: 12px 0 0; }

.cards { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--z-white);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
    box-shadow: var(--z-shadow-card);
}
.card:hover { box-shadow: var(--z-shadow-hover); }
.card:focus-within { outline: 3px solid var(--z-link); outline-offset: 2px; }
.card__media { position: relative; aspect-ratio: 16 / 9; background: var(--z-navy-800); }
.card__media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; left: 14px; bottom: 12px; }
.card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 14px; }
.card__title { margin: 0 0 10px; font-size: 1.0625rem; line-height: 1.3; font-weight: 700; }
.card__link { color: var(--z-ink); text-decoration: none; }
.card:hover .card__link { color: var(--z-ink); text-decoration: underline; }
/* Die ganze Karte ist über den Titel-Link klickbar. */
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:focus-visible { outline: none; }
.card__text { margin: 0 0 8px; font-size: 0.9375rem; line-height: 1.5; color: var(--z-muted); }
.card__more,
.teaser__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin: auto 0 0;
    color: var(--z-link);
    font-size: 0.9375rem;
    font-weight: 600;
}

.teasers { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 28px; }
.teaser { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
.teaser:focus-within { outline: 3px solid var(--z-link); outline-offset: 4px; border-radius: var(--z-radius-sm); }
.teaser__media { position: relative; align-self: start; overflow: hidden; aspect-ratio: 90 / 78; border-radius: 10px; background: var(--z-navy-800); }
/* Leichte Vergrößerung: schneidet die im Platzhalter eingebackenen Ecken ab. */
.teaser__media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.teaser__body { display: flex; flex-direction: column; min-width: 0; }
.teaser__title { margin: 2px 0 0; font-size: 0.9375rem; line-height: 1.4; font-weight: 700; }
.teaser__link { color: var(--z-ink); text-decoration: none; }
.teaser:hover .teaser__link { text-decoration: underline; }
.teaser__link::after { content: ""; position: absolute; inset: 0; }
.teaser__link:focus-visible { outline: none; }
.teaser__more { min-height: 32px; font-size: 0.875rem; }

@media (min-width: 640px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .teasers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section__title { font-size: 1.875rem; }
    .section__title--sm { font-size: 1.5rem; }
}
@media (min-width: 1040px) {
    .section { padding-top: 40px; }
    .section--last { padding-bottom: 48px; }
    .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .teasers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
    .teaser { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
}
@media (min-width: 1240px) {
    .teaser { grid-template-columns: 116px minmax(0, 1fr); gap: 16px; }
}

/* ------------------------------------------------------------------
   Themenband ("Beliebte Themen auf einen Blick"): dunkle Fläche läuft
   links, das Bild rechts bis an den Fensterrand; Inhalt bleibt im Raster.
   ------------------------------------------------------------------ */

.topicband {
    display: grid;
    grid-template-columns: var(--z-gutter) minmax(0, 1fr) var(--z-gutter);
    margin-top: 36px;
}
.topicband::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 1;
    background: linear-gradient(115deg, var(--z-navy-900) 0%, var(--z-navy-800) 62%, var(--z-navy-700) 130%);
}
.topicband__content { grid-column: 2; grid-row: 1; padding: 36px 0 40px; color: var(--z-white); }
.topicband__eyebrow {
    margin: 0 0 6px;
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--z-sky);
}
.topicband__title { color: var(--z-white); font-size: 1.625rem; line-height: 1.2; font-weight: 800; }
.topicband__text { max-width: 26em; margin: 10px 0 0; font-size: 1.0625rem; line-height: 1.5; color: var(--z-white); }
.topicband__media { position: relative; grid-column: 1 / -1; grid-row: 2; aspect-ratio: 414 / 224; background: var(--z-navy-800); }
.topicband__media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: var(--z-radius-pill);
    color: var(--z-white);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}
.chip:hover { border-color: var(--z-mint); color: var(--z-mint); }

@media (min-width: 640px) {
    .topicband__title { font-size: 2rem; }
}
@media (min-width: 900px) {
    .topicband {
        grid-template-columns:
            minmax(var(--z-gutter), 1fr)
            minmax(0, calc(var(--z-container) * .58))
            minmax(0, calc(var(--z-container) * .42))
            minmax(var(--z-gutter), 1fr);
    }
    .topicband::before { grid-column: 1 / 3; }
    .topicband__content { padding: 34px 32px 40px 0; }
    .topicband__media { grid-column: 3 / 5; grid-row: 1; aspect-ratio: auto; min-height: 292px; margin-left: 12px; }
}

/* ------------------------------------------------------------------
   Fokus-Karte der Startseite ("Skillgame im Fokus")
   ------------------------------------------------------------------ */

.focus {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 12px;
    border-radius: var(--z-radius-lg);
    color: var(--z-white);
    background: linear-gradient(180deg, #0A1A36 0%, #12305C 100%);
}
.focus__media { position: relative; aspect-ratio: 380 / 214; }
.focus__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0 50%;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.focus__body { padding: 8px 24px 28px; }
.focus__title { margin: 12px 0 10px; color: var(--z-white); font-size: 1.5rem; line-height: 1.2; font-weight: 700; }
.focus__text { max-width: 36em; margin: 0 0 20px; font-size: 1rem; line-height: 1.5; color: var(--z-white); }
.focus__note { display: none; color: var(--z-navy-900); }

@media (min-width: 640px) {
    .focus {
        grid-template-columns: 40% minmax(0, 1fr);
        align-items: center;
        min-height: 260px;
        background: linear-gradient(90deg, #0A1A36 0%, #10305C 45%, var(--z-space-600) 100%);
    }
    .focus__media { align-self: stretch; aspect-ratio: auto; }
    .focus__media img {
        -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
        mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
    }
    .focus__body { padding: 28px 28px 28px 16px; }
}
@media (min-width: 900px) {
    .focus {
        grid-template-columns: 37% minmax(0, 1fr) 21%;
        min-height: 280px;
        /* Bis 80 % dunkel (weißer Text >= 4.5:1), erst danach hell. */
        background: linear-gradient(90deg, #0A1A36 0%, #10305C 36%, var(--z-space-600) 64%, var(--z-space-500) 80%, var(--z-space-200) 92%, var(--z-space-100) 100%);
    }
    .focus__title { font-size: 1.75rem; }
    .focus__note { display: block; justify-self: center; padding-left: 12px; font-size: 1.5rem; }
}

/* ------------------------------------------------------------------
   Porträt-Bausteine: zweispaltige Abschnitte, Hinweis-Karte, Schritte,
   Info-Karten, dunkles Band
   ------------------------------------------------------------------ */

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.split__text > p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--z-body); }
.split__text .section__title { margin-bottom: 14px; }

.figure { margin: 0; }
.figure img { width: 100%; }
/* Bild mit eigenen runden Ecken; Vergrößerung schneidet eingebackene Ecken ab. */
.figure--rounded { overflow: hidden; border-radius: var(--z-radius-lg); background: var(--z-navy-800); }
.figure--rounded img { transform: scale(1.04); }

.aside-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    margin-top: 24px;
    padding: 20px 22px;
    background: var(--z-soft);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius);
}
.aside-card__icon { width: 28px; height: 28px; color: var(--z-ink); }
.aside-card__text { margin: 0; font-size: 0.875rem; line-height: 1.55; font-style: italic; color: var(--z-body); }
.aside-card__source { margin: 8px 0 0; font-size: 0.8125rem; line-height: 1.4; color: var(--z-muted); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.step { padding: 20px 14px 18px; background: var(--z-soft); border: 1px solid var(--z-border); border-radius: var(--z-radius); }
.step__icon { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--z-blue-icon); }
.step__title { font-size: 0.875rem; line-height: 1.35; font-weight: 700; }
.step__text { margin: 4px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--z-muted); }

.infocards { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.infocard {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 24px 14px;
    background: var(--z-soft);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-lg);
}
.infocard__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--z-mint-300);
    color: var(--z-navy-900);
}
.infocard__icon .icon { width: 32px; height: 32px; }
.infocard__title { margin: 4px 0 8px; font-size: 1.0625rem; line-height: 1.3; font-weight: 700; }
.infocard__text { margin: 0 0 4px; font-size: 0.875rem; line-height: 1.5; color: var(--z-muted); }

.ctaband {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 28px 24px 0;
    border-radius: var(--z-radius-lg);
    background: linear-gradient(90deg, var(--z-navy-950) 0%, var(--z-navy-800) 100%);
    color: var(--z-white);
}
.ctaband__title { color: var(--z-white); font-size: 1.5rem; line-height: 1.2; font-weight: 800; }
.ctaband__text { max-width: 30em; margin: 8px 0 18px; font-size: 0.9375rem; line-height: 1.5; color: var(--z-white); }
.ctaband .button { min-height: 44px; padding: 0 22px; font-size: 0.875rem; }
.ctaband .ctaband__logo { display: none; }
/* Breite/Höhe des Bildfelds <= 2.1: so zeigt der Platzhalter nur Maskottchen
   und Notiz, nicht das eingebackene Logo. */
.ctaband__media { position: relative; z-index: -1; width: 300px; max-width: calc(100% + 24px); height: 142px; margin: 0 -24px 0 auto; }
.ctaband__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0, #000 34%);
}

/* HISQORE-Logo als Inline-SVG-Näherung (Platzhalter bis zur Originaldatei) */
.hq-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--z-white); }
.hq-logo__mark { width: 52px; height: 56px; fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linejoin: round; stroke-linecap: square; }
.hq-logo__word { font-family: var(--z-font-display); font-size: 2.375rem; line-height: 1; font-weight: 800; letter-spacing: 0.02em; }

@media (min-width: 640px) {
    .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ctaband { min-height: 176px; padding: 26px 300px 26px 32px; }
    .ctaband__media { position: absolute; top: 0; right: 0; bottom: 0; width: 300px; max-width: none; height: auto; margin: 0; }
}
@media (min-width: 900px) {
    .split { grid-template-columns: minmax(0, .64fr) minmax(0, 1fr); gap: 20px; }
    .split--steps { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 16px; }
    .ctaband { padding: 26px 360px 26px 40px; }
    .ctaband__title { font-size: 1.625rem; }
    .ctaband__media { width: 340px; }
}
@media (min-width: 1040px) {
    .infocards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .ctaband { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
    .ctaband .ctaband__logo { display: inline-flex; margin-right: 24px; }
}

/* ------------------------------------------------------------------
   Footer (hell)
   ------------------------------------------------------------------ */

.site-footer { margin-top: 16px; padding: 28px 0 32px; background: var(--z-soft); border-top: 1px solid var(--z-border); color: var(--z-muted); }
.site-footer__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.brand--light,
.brand--light:hover { color: var(--z-ink); }
.brand--light .brand__wordmark { font-size: 1.75rem; }
.brand--light .brand__accent { color: inherit; }
.brand--light .brand__tagline { margin-top: 8px; font-size: 0.875rem; color: var(--z-muted); }
.site-footer__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 26px; }
.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--z-body);
    font-size: 0.8125rem;
    text-decoration: none;
}
.site-footer__nav a:hover { color: var(--z-link); text-decoration: underline; }
.site-footer__social { list-style: none; display: flex; gap: 4px; margin-left: -10px; }
.site-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--z-ink); border-radius: var(--z-radius-sm); }
.site-footer__social a:hover { color: var(--z-link); }
.site-footer__social .icon { width: 1.625rem; height: 1.625rem; }
.site-footer__note { margin: 4px 0 8px 8px; font-size: 1.375rem; color: var(--z-ink); }

@media (min-width: 900px) {
    .site-footer { padding: 30px 0 34px; }
    .site-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
    .site-footer__social { margin-left: 0; }
    .site-footer__note { margin: 0 12px 0 0; }
}

/* ------------------------------------------------------------------
   Übrige Templates (hub, article, plain, 404) -- im Prototyp nicht
   gezeigt; bestehende Klassen auf die neuen Tokens umgestellt.
   ------------------------------------------------------------------ */

.titleband { background: var(--z-navy-900); color: var(--z-white); }
.titleband__inner { padding-top: 8px; padding-bottom: 44px; }
.titleband h1 { color: var(--z-white); font-size: clamp(2rem, 4vw, 2.875rem); line-height: 1.1; font-weight: 800; max-width: 20em; }
.titleband .lead { max-width: 36em; margin: 16px 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--z-white); }

.prose { max-width: 720px; font-size: 1.0625rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin: 44px 0 14px; font-size: 1.75rem; line-height: 1.25; font-weight: 800; }
.prose h3 { margin: 30px 0 8px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.prose p { margin: 0 0 22px; }
.prose ul { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin: 0 0 8px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--z-ink); }
.note { margin: 0 0 28px; padding: 18px 22px; background: var(--z-soft); border: 1px solid var(--z-border); border-left: 4px solid var(--z-blue); border-radius: var(--z-radius); }
.note p { margin: 0; }

/* Bewegung: nur Hover-/Fokus-Übergänge, und nur ohne reduzierte Bewegung. */
@media (prefers-reduced-motion: no-preference) {
    a, .button, .card, .chip { transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
