/*
 * StoneLink Welcome 3.0 · Cinematic Scroll Experience (Entwicklerbriefing 10.11.2026, welcome.mdc).
 * Ergänzt landing.css: Tokens (Visual Identity 2.0), Basis, Kopfzeile, Fußzeile und die UI-Bausteine (.lp-ui-*) kommen
 * von dort. Hier stehen keine Farbwerte, nur --sl-* / --lp-* Tokens.
 *
 * Aufbau: 1 Maße · 2 Hero · 3 Story (linear) · 4 Standbilder · 5 Bühne (Kino-Fassung) · 6 Welt-Kompositionen
 *         7 Finale · 8 Fußzeile · 9 Motion · 10 Responsive · 11 Reduzierte Bewegung
 *
 * Zwei Fassungen: linear (Standard, ohne JS, Mobile, Tablet, reduzierte Bewegung) und Kino (html.w3-cine, ≥ 1024 × 600,
 * vom Head-Skript vor dem ersten Paint gesetzt). Bewegung nur transform/opacity (+ stroke-dashoffset an drei kurzen
 * Netz-Linien). Keine Endlosschleifen, keine Scroll-Sperren, Pinning nur nativ (position: sticky).
 */

/* ── 1 Maße ───────────────────────────────────────────────────────────────────────────────────────── */

html.lp-v3 {
    --w3-max: 1320px;
    /* Leselinie der Szenentexte in der Kino-Fassung (sticky top). film.js liest sie für die Szenengrenzen. */
    --w3-copy-top: calc(var(--lp-header-h) + 18vh);
    --w3-radius-frame: 28px;
    --w3-radius-card: 18px;
    /* Schatten aus der Canvas-Farbe (Obsidian), kein eigener Farbwert. */
    --w3-shadow-card: 0 1.6em 3.2em -2em color-mix(in srgb, var(--sl-bg-canvas) 92%, transparent);
    --w3-shadow-window: 0 2em 4em -2.4em color-mix(in srgb, var(--sl-bg-canvas) 96%, transparent);
}

.w3-anchor {
    position: relative;
    display: block;
    height: 0;
    scroll-margin-top: var(--lp-header-h);
}

.w3-wrap {
    width: 100%;
    max-width: calc(var(--w3-max) + 2 * var(--lp-gutter));
    margin-inline: auto;
    padding-inline: max(var(--lp-gutter), env(safe-area-inset-left, 0px)) max(var(--lp-gutter), env(safe-area-inset-right, 0px));
}

/* ── 2 Hero (Akt 01) ──────────────────────────────────────────────────────────────────────────────── */

.w3-hero {
    position: relative;
    padding-block: clamp(28px, 6vw, 72px) clamp(56px, 8vw, 104px);
    overflow: hidden;
    overflow: clip;
}

.w3-hero-inner {
    position: relative;
    display: grid;
    gap: clamp(32px, 6vw, 48px);
}

.w3-hero-copy {
    position: relative;
    z-index: 1;
}

.w3-hero-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sl-text-secondary);
}

.w3-hero-title {
    max-width: 11.5em;
    font-size: clamp(40px, 5.2vw, 76px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.042em;
    text-wrap: balance;
}

.w3-hero-lead {
    max-width: 31em;
    margin-top: 22px;
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.55;
    color: var(--sl-text-secondary);
    text-wrap: pretty;
}

.w3-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.w3-hero-actions .sl-ui-btn--lg {
    min-height: 52px;
    padding-inline: 26px;
    font-size: 15px;
}

.w3-hero-paths {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
    margin-top: 22px;
    font-size: 14px;
    color: var(--sl-text-secondary);
}

.w3-hero-paths-label {
    margin-right: 6px;
}

.w3-hero-paths a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    font-weight: 600;
    color: var(--sl-text-primary);
    text-decoration: none;
    border: 1px solid var(--sl-border-default);
    border-radius: var(--sl-radius-pill);
    transition: border-color var(--lp-dur-micro) var(--sl-ease-standard), background var(--lp-dur-micro) var(--sl-ease-standard);
}

.w3-hero-paths a:hover {
    background: var(--sl-action-soft);
    border-color: var(--sl-accent-readable);
}

/* Zeichen + Licht. Feste Fläche ab dem ersten Paint (kein Layoutsprung beim Laden der Bilder). */
.w3-hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.w3-hero-cam,
.w3-hero-push {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
}

.w3-hero-light {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 150%;
    aspect-ratio: 1;
    background:
        radial-gradient(closest-side, color-mix(in srgb, var(--sl-accent-primary) 42%, transparent), transparent 72%),
        radial-gradient(closest-side at 64% 38%, color-mix(in srgb, var(--sl-accent-readable) 14%, transparent), transparent 62%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.w3-hero-mark.lp-mark {
    width: min(44vw, 168px);
    height: auto;
    aspect-ratio: 1;
}

.w3-hero-word {
    position: relative;
    margin-top: 6px;
    font-size: clamp(18px, 1.8vw, 26px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--sl-text-primary);
}

.w3-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 18px;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sl-text-secondary);
    white-space: nowrap;
    transform: translateX(-50%);
}

.w3-hero-scroll::after {
    content: "";
    width: 1px;
    height: 28px;
    background: linear-gradient(var(--sl-text-secondary), transparent);
}

/* Der Hinweis hat seinen Zweck erfüllt, sobald gescrollt wird (hero.js). */
.w3-hero-scroll {
    transition: opacity 240ms var(--lp-ease-out);
}

.w3-hero.is-scrolled .w3-hero-scroll {
    opacity: 0;
}

/* ── 3 Story: lineare Fassung (Standard) ──────────────────────────────────────────────────────────── */

.w3-zone {
    position: relative;
}

.w3-zone + .w3-zone {
    margin-top: clamp(24px, 6vw, 72px);
}

/* Bühne nur in der Kino-Fassung (Abschnitt 5). */
.w3-stage {
    display: none;
}

.w3-steps {
    width: 100%;
    max-width: calc(var(--lp-max) + 2 * var(--lp-gutter));
    margin-inline: auto;
    padding-inline: max(var(--lp-gutter), env(safe-area-inset-left, 0px)) max(var(--lp-gutter), env(safe-area-inset-right, 0px));
}

.w3-step {
    position: relative;
    display: grid;
    gap: clamp(24px, 4vw, 40px);
    padding-block: clamp(48px, 8vw, 96px);
    scroll-margin-top: var(--lp-header-h);
}

.w3-step + .w3-step {
    border-top: 1px solid color-mix(in srgb, var(--sl-border-default) 60%, transparent);
}

.w3-kicker {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sl-accent-readable);
}

.w3-kicker-no {
    font-variant-numeric: tabular-nums;
}

.w3-step-title {
    max-width: 15em;
    font-size: clamp(30px, 3.6vw, 50px);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.w3-step-text {
    max-width: 32em;
    margin-top: 18px;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.6;
    color: var(--sl-text-secondary);
    text-wrap: pretty;
}

.w3-step-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin-top: 22px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sl-text-primary);
    text-decoration: none;
    border: 1px solid var(--sl-border-strong);
    border-radius: var(--sl-radius-pill);
    transition: background var(--lp-dur-micro) var(--sl-ease-standard), border-color var(--lp-dur-micro) var(--sl-ease-standard);
}

.w3-step-link:hover,
.w3-step-link:focus-visible {
    background: var(--sl-action-soft);
    border-color: var(--sl-accent-readable);
}

.w3-step-link:hover .lp-icon {
    transform: translateX(3px);
}

/* ── 4 Standbilder (lineare Fassung): ein Motiv im Fokus, Größen über Container-Einheiten ───────────── */

.w3-still {
    container-type: inline-size;
    position: relative;
    width: 100%;
    max-width: 640px;
}

.w3-still-body {
    display: grid;
    gap: 3cqw;
    font-size: 12px;
    font-size: clamp(11px, 2.55cqw, 16px);
    line-height: 1.35;
}

.w3-still-note {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: var(--sl-text-tertiary, var(--sl-text-secondary));
}

/* Kreative: eine große Arbeit statt vieler winziger Kacheln. */
.w3-still .w3-works {
    grid-template-columns: minmax(0, 1fr);
}

.w3-still .w3-work:not(.is-lead) {
    display: none;
}

.w3-still .w3-work.is-lead {
    aspect-ratio: 16 / 10;
}

/* Suche: ausgeführte Suche, nur die passenden Ergebnisse, Navigation ohne Bereichsreiter. */
.w3-still .lp-ui-tabs,
.w3-still .lp-ui-account,
.w3-still .w3-search-head .lp-ui-sub,
.w3-still .w3-person--other,
.w3-still .w3-caret,
.w3-still .w3-filter-row .lp-ui-chip:not([data-w3-filter]) {
    display: none;
}

.w3-still .w3-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.w3-still .w3-person--match:nth-child(3) {
    display: none;
}

/* Verbindung: die drei Zielgruppen als verbundene Knoten. */
.w3-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6em 0;
    font-size: 0.95em;
}

.w3-strip > i {
    flex: 1 1 1.5em;
    min-width: 1.5em;
    height: 1px;
    margin-inline: 0.5em;
    background: var(--sl-accent-readable);
    transform-origin: 0 50%;
}

.w3-strip-node {
    display: inline-flex;
    align-items: center;
    height: 2.2em;
    padding: 0 0.9em;
    font-weight: 600;
    border: 1px solid var(--sl-border-default);
    border-radius: 2em;
}

/* ── 5 Bühne (Kino-Fassung, html.w3-cine) ─────────────────────────────────────────────────────────── */

.w3-cine .w3-zone {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 4vw, 64px);
    align-items: start;
    width: 100%;
    max-width: calc(var(--w3-max) + 2 * var(--lp-gutter));
    margin-inline: auto;
    padding-inline: max(var(--lp-gutter), env(safe-area-inset-left, 0px)) max(var(--lp-gutter), env(safe-area-inset-right, 0px));
}

.w3-cine .w3-zone + .w3-zone {
    margin-top: 12vh;
}

/* Natives sticky: die Bühne bleibt stehen, solange ihre Zone durchläuft — kein JS-Pinning, kein Scroll-Lock. */
.w3-cine .w3-stage {
    position: sticky;
    top: var(--lp-header-h);
    grid-column: 1;
    grid-row: 1;
    display: grid;
    place-items: center;
    height: calc(100vh - var(--lp-header-h));
    height: calc(100svh - var(--lp-header-h));
}

.w3-stage-inner {
    display: grid;
    justify-items: center;
    gap: 14px;
    width: 100%;
}

/* Bildausschnitt mit festem Seitenverhältnis (1 : 1, die Bühnenspalte ist hochkant), passt in Breite und Höhe
   (100svh: dynamische Browserleisten verkleinern die Bühne nie unter den sichtbaren Bereich). */
.w3-frame {
    position: relative;
    width: min(100%, calc(100vh - var(--lp-header-h) - 96px));
    width: min(100%, calc(100svh - var(--lp-header-h) - 96px));
    aspect-ratio: 1;
    overflow: hidden;
    overflow: clip;
    background:
        radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--sl-bg-surface) 90%, transparent), transparent 70%),
        var(--sl-bg-canvas);
    border: 1px solid var(--sl-border-default);
    border-radius: var(--w3-radius-frame);
    perspective: 1700px;
    perspective-origin: 50% 50%;
    isolation: isolate;
}

/* Tiefenebene: zwei weiche Lichter hinter der Welt, Gegenbewegung ≤ 3 % (film.js). */
.w3-depth {
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(42% 38% at 30% 30%, color-mix(in srgb, var(--sl-accent-primary) 24%, transparent), transparent 70%),
        radial-gradient(36% 34% at 74% 72%, color-mix(in srgb, var(--sl-accent-readable) 9%, transparent), transparent 70%);
    pointer-events: none;
}

.w3-stage-note {
    font-size: 12px;
    color: var(--sl-text-secondary);
}

.w3-cine .w3-steps {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Scrollstrecke je Szene: ungefähr eine bis zwei zusätzliche Viewport-Höhen je Zone (§17); die zweite Szene trägt mehr
   Beats und den Abgang. film.js misst die tatsächlichen Grenzen (kein fester Pixelwert). */
.w3-cine .w3-step {
    display: block;
    min-height: 128vh;
    padding-block: 0;
}

.w3-cine .w3-step + .w3-step {
    min-height: 150vh;
    border-top: 0;
}

/* Der erste Text erreicht seine Leselinie genau dann, wenn die Bühne steht: zuerst kommt die Bühne ins Bild (Übergang
   aus dem Hero über die Portfolio-Fläche, §08), dann der Text. */
.w3-cine .w3-step:first-child {
    padding-top: calc(var(--w3-copy-top) - var(--lp-header-h));
}

.w3-cine .w3-step-copy {
    position: sticky;
    top: var(--w3-copy-top);
    padding-block: 8px 24px;
}

/* Standbild: Bildinhalt aus (keine Bildanfragen), Beschreibung bleibt für Screenreader (role="img" + aria-label). */
.w3-cine .w3-still {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.w3-cine .w3-still-body,
.w3-cine .w3-still-note {
    display: none;
}

/* Kamera-Rig: EIN Schreiber (film.js). Ohne JS-Pose: Übersicht über die Welt. */
.w3-world {
    position: absolute;
    left: 0;
    top: 0;
    width: 1600px;
    height: 1100px;
    font-size: 16px;
    line-height: 1.35;
    color: var(--sl-text-primary);
    transform-origin: 0 0;
    transform: scale(0.42);
    backface-visibility: hidden;
}

/* will-change nur während der Bewegung: in Ruhe rastert der Browser die Ansicht wieder scharf. */
.w3-world.is-moving {
    will-change: transform;
}

.w3-place {
    position: absolute;
    display: block;
}

/* ── 6 Welt-Kompositionen (echte Produkt-Bausteine, em-basiert) ───────────────────────────────────── */

.w3-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    padding: 1.1em 1.2em 1.2em;
    background: var(--sl-bg-surface);
    border: 1px solid var(--sl-border-default);
    border-radius: var(--w3-radius-card);
    box-shadow: var(--w3-shadow-card);
}

.w3-window {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--sl-bg-canvas);
    border: 1px solid var(--sl-border-default);
    border-radius: 1.2em;
    box-shadow: var(--w3-shadow-window);
}

.w3-window-body {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1.4em 1.8em 1.8em;
}

.w3-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4em;
    font-size: 0.86em;
    color: var(--sl-text-secondary);
}

.w3-meta > i {
    font-style: normal;
    opacity: 0.6;
}

.w3-meta .sl-icon {
    width: 1.05em;
    height: 1.05em;
}

/* Galerie (Szene 02) */
.w3-gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5em;
}

.w3-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7em;
    padding: 0.6em 0.6em 0.9em;
    background: var(--sl-bg-surface);
    border: 1px solid var(--sl-border-default);
    border-radius: 1.1em;
}

.w3-tile-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--sl-bg-surface-raised);
    border-radius: 0.75em;
}

.w3-tile-glyph {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 1em;
    padding: 0 12%;
    color: var(--sl-text-secondary);
}

.w3-tile-glyph > .sl-icon {
    width: 2.4em;
    height: 2.4em;
}

.w3-tile-glyph .lp-ui-wave {
    width: 100%;
    height: 2.2em;
    flex: none;
}

.w3-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35em;
    width: 100%;
}

.w3-swatches i {
    aspect-ratio: 1;
    border-radius: 0.4em;
    background: var(--sl-accent-primary);
}

.w3-swatches i:nth-child(2) { background: var(--sl-accent-readable); }
.w3-swatches i:nth-child(3) { background: var(--sl-accent-editorial); }
.w3-swatches i:nth-child(4) { background: var(--sl-text-secondary); }

.w3-tile-cap {
    display: flex;
    flex-direction: column;
    gap: 0.55em;
    padding: 0 0.3em;
}

/* Profil (Szene 02) */
.w3-profile {
    gap: 1em;
}

.w3-profile-head {
    display: flex;
    align-items: center;
    gap: 0.9em;
}

.w3-avatar.lp-ui-avatar {
    width: 3.4em;
    height: 3.4em;
}

.w3-tabs {
    display: flex;
    gap: 1.4em;
    font-size: 0.86em;
    color: var(--sl-text-secondary);
    border-bottom: 1px solid var(--sl-border-default);
}

.w3-tabs > span {
    padding-bottom: 0.6em;
}

.w3-tabs > .is-active {
    font-weight: 600;
    color: var(--sl-text-primary);
    box-shadow: inset 0 -2px 0 var(--sl-accent-readable);
}

.w3-works {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.5em;
}

.w3-work {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sl-bg-surface-raised);
    border-radius: 0.7em;
}

.w3-work.is-lead {
    grid-row: span 2;
    aspect-ratio: auto;
}

/* Suche (Szene 03) */
.w3-search .lp-ui-nav {
    font-size: 0.8em;
}

.w3-search-head .lp-ui-h1 {
    display: block;
    font-size: 2.2em;
}

.w3-search-row {
    display: flex;
    gap: 0.6em;
}

.w3-field {
    position: relative;
    height: 3em;
    font-size: 1em;
}

.w3-field--q {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--sl-text-primary);
    border-color: var(--sl-border-strong);
}

.w3-field--loc {
    flex: 0 0 34%;
    color: var(--sl-text-primary);
}

.w3-typed {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

.w3-typed [data-w3-ch].is-off {
    display: none;
}

.w3-caret {
    display: none;
    width: 1.5px;
    height: 1.2em;
    margin-left: 1px;
    background: var(--sl-accent-readable);
}

.w3-field.is-typing .w3-caret {
    display: inline-block;
}

.w3-ph,
.w3-field.is-empty .w3-typed,
.w3-field.is-empty .w3-val {
    display: none;
}

.w3-field.is-empty .w3-ph {
    display: inline;
    color: var(--sl-text-secondary);
}

.w3-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.w3-filter-row .lp-ui-chip {
    height: 2.3em;
    font-size: 0.86em;
    transition: background var(--lp-dur-micro) var(--lp-ease-out), border-color var(--lp-dur-micro) var(--lp-ease-out);
}

.w3-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4em;
}

.w3-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.86em;
    color: var(--sl-text-secondary);
}

.w3-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9em;
}

.w3-person {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7em;
    padding: 0.55em 0.55em 0.9em;
    background: var(--sl-bg-surface);
    border: 1px solid var(--sl-border-default);
    border-radius: 1em;
    transition: border-color var(--lp-dur-micro) var(--lp-ease-out), box-shadow var(--lp-dur-micro) var(--lp-ease-out);
}

.w3-person-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sl-bg-surface-raised);
    border-radius: 0.7em;
}

.w3-person-body {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 0 0.3em;
}

/* Ausgewählter Treffer: Rahmen + Kante (nicht nur Farbe). */
.w3-person.is-selected {
    border-color: var(--sl-accent-readable);
    box-shadow: 0 0 0 1px var(--sl-accent-readable), var(--w3-shadow-card);
}

/* Endzustand ohne JS in der Bühne: nur die passenden Treffer. */
.w3-world .w3-person--other {
    opacity: 0;
}

/* Projekt (Szene 04) */
.w3-form-head {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 1.1em 1.6em;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--sl-border-default);
}

.w3-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
    padding: 1.4em 1.6em;
}

.w3-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.w3-form-label {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--sl-text-secondary);
}

.w3-form-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    min-height: 2.9em;
    padding: 0.5em 0.9em;
    background: var(--sl-bg-surface);
    border: 1px solid var(--sl-border-default);
    border-radius: 0.75em;
}

.w3-form-value {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    min-width: 0;
}

.w3-value {
    display: inline-flex;
    flex: 1;
    align-items: center;
    gap: 0.5em;
    font-weight: 600;
}

.w3-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 1.6em 1.3em;
    border-top: 1px solid var(--sl-border-default);
}

.w3-publish {
    height: 2.8em;
    padding: 0 1.5em;
    font-size: 0.95em;
    transition: transform var(--lp-dur-micro) var(--lp-ease-out), box-shadow var(--lp-dur-micro) var(--lp-ease-out);
}

.w3-publish.is-pressed {
    transform: scale(0.96);
    box-shadow: 0 0 0 0.35em var(--sl-focus-glow-soft);
}

.w3-project-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7em;
}

.w3-project-state .lp-ui-muted {
    font-size: 0.86em;
}

.w3-roles {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.w3-role {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7em 0.9em;
    background: var(--sl-bg-surface-raised);
    border: 1px solid var(--sl-border-default);
    border-radius: 0.75em;
}

.w3-role-name {
    font-weight: 600;
}

.w3-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--sl-accent-readable);
}

.w3-app-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w3-person-row {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.w3-app-body {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

/* Location + Netzwerk (Szene 05) */
.w3-location-media,
.w3-node-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: -0.4em -0.5em 0;
    background: var(--sl-bg-surface-raised);
    border-radius: 0.8em;
}

.w3-location-body {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.w3-links {
    position: absolute;
    left: 0;
    top: 0;
    width: 1600px;
    height: 1100px;
    overflow: visible;
    pointer-events: none;
}

.w3-link {
    fill: none;
    stroke: var(--sl-accent-readable);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    opacity: 0.8;
}

.w3-net-mark.lp-mark {
    width: 128px;
    height: 128px;
}

/* Lagen in der Welt (Welt-Pixel). Discover: Galerie oben, Suche links unten, Profil rechts davor. */
.w3-world--discover .w3-gallery {
    position: absolute;
    left: 52px;
    top: 48px;
    width: 1496px;
}

.w3-place--search {
    left: 40px;
    top: 476px;
    width: 980px;
}

.w3-place--profile {
    left: 1064px;
    top: 330px;
    width: 470px;
}

/* Connect: Projekt oben mittig (Formular an derselben Stelle), Bewerbung rechts, Kreative links unten, Location rechts
   unten, Zeichen in der Mitte — die Lage der drei Knoten folgt den drei Teilen des Logos. */
.w3-place--form {
    left: 500px;
    top: 96px;
    width: 600px;
}

/* Unterkante fest (y = 470): dort setzt der senkrechte Arm der Y-Linie an, unabhängig von Schrift und Zeilenzahl. */
.w3-place--project {
    left: 530px;
    bottom: 630px;
    width: 540px;
}

.w3-place--application {
    left: 1112px;
    top: 236px;
    width: 360px;
}

.w3-place--node {
    left: 150px;
    top: 740px;
    width: 348px;
}

.w3-place--location {
    left: 1102px;
    top: 726px;
    width: 360px;
}

.w3-place--mark {
    left: 736px;
    top: 644px;
}

/* ── 7 Finale ─────────────────────────────────────────────────────────────────────────────────────── */

.w3-finale {
    position: relative;
    padding-block: clamp(88px, 12vw, 168px) clamp(72px, 9vw, 120px);
    scroll-margin-top: var(--lp-header-h);
    /* Licht reicht seitlich über die Spalte hinaus: nur abschneiden, nie eine horizontale Scrollleiste. */
    overflow: hidden;
    overflow: clip;
}

.w3-finale::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: min(1100px, 120vw);
    height: 70%;
    background: radial-gradient(50% 50% at 50% 30%, color-mix(in srgb, var(--sl-accent-primary) 22%, transparent), transparent 72%);
    transform: translateX(-50%);
    pointer-events: none;
}

.w3-finale-inner {
    position: relative;
}

.w3-finale-head {
    display: grid;
    justify-items: center;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.w3-finale-mark.lp-mark {
    width: 72px;
    height: 72px;
    margin-bottom: 26px;
}

.w3-finale-title {
    font-size: clamp(32px, 4.4vw, 58px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.w3-finale-text {
    max-width: 34em;
    margin-top: 18px;
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.6;
    color: var(--sl-text-secondary);
    text-wrap: pretty;
}

.w3-finale-actions {
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-top: 32px;
}

.w3-finale-actions .sl-ui-btn--lg {
    min-height: 56px;
    padding-inline: 30px;
    font-size: 16px;
}

.w3-finale-login {
    font-size: 15px;
    color: var(--sl-text-secondary);
}

.w3-finale-login a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: 4px;
    font-weight: 600;
    color: var(--sl-text-primary);
    text-decoration: underline;
    text-decoration-color: var(--sl-accent-readable);
    text-underline-offset: 4px;
}

.w3-finale-label {
    margin: clamp(56px, 8vw, 96px) 0 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
    color: var(--sl-text-secondary);
}

.w3-paths {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.w3-path {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    background: color-mix(in srgb, var(--sl-bg-surface) 90%, transparent);
    border: 1px solid var(--sl-border-default);
    border-radius: var(--lp-radius-card);
    transition: border-color var(--lp-dur-micro) var(--sl-ease-standard);
}

.w3-path:hover,
.w3-path:focus-within {
    border-color: color-mix(in srgb, var(--sl-accent-readable) 45%, var(--sl-border-default));
}

.w3-path-mark.lp-mark {
    width: 44px;
    height: 44px;
}

.w3-path-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sl-accent-readable);
}

.w3-path-title {
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.w3-path-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--sl-text-secondary);
}

.w3-path-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    margin-top: auto;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sl-text-primary);
    text-decoration: none;
    border: 1px solid var(--sl-border-strong);
    border-radius: var(--sl-radius-pill);
    transition: background var(--lp-dur-micro) var(--sl-ease-standard), border-color var(--lp-dur-micro) var(--sl-ease-standard);
}

/* Ganze Karte tippbar, Fokus bleibt sichtbar am Link. */
.w3-path-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--lp-radius-card);
}

.w3-path:hover .w3-path-link,
.w3-path-link:focus-visible {
    background: var(--sl-action-soft);
    border-color: var(--sl-accent-readable);
}

.w3-path:hover .w3-path-link .lp-icon {
    transform: translateX(3px);
}

.w3-path-link:focus-visible,
.w3-step-link:focus-visible,
.w3-hero-paths a:focus-visible {
    outline: 2px solid var(--sl-border-focus);
    outline-offset: 3px;
}

/* ── 8 Fußzeile ───────────────────────────────────────────────────────────────────────────────────── */

.w3-footer .lp-footer-links {
    flex-wrap: wrap;
}

/* ── 9 Motion (nur mit JS + ohne reduzierte Bewegung) ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
    /* Akt 01: die drei Teile rücken einmal zusammen, das Licht wechselt, die Kamera macht einen leichten Push-in.
       Nur transform/opacity des Lichts — Text und CTA stehen ab 0 ms. */
    .lp-motion .w3-hero-mark .lp-mark-piece {
        animation: w3-assemble 1100ms var(--lp-ease-out) both;
        animation-delay: calc(80ms + var(--pi, 0) * 70ms);
    }

    .lp-motion .w3-hero-light {
        animation: w3-light 1600ms var(--lp-ease-out) both;
    }

    .lp-motion .w3-hero-push {
        animation: w3-push 1400ms var(--lp-ease-device) both;
    }

    /* Lineare Fassung: kurze Einblendung der Standbilder und Finale-Elemente (landing.js, data-lp-reveal). */
    .lp-motion-ready .w3-still.is-pending,
    .lp-motion-ready .w3-finale-head.is-pending,
    .lp-motion-ready .w3-path.is-pending {
        opacity: 0;
        transform: translateY(24px);
    }

    .lp-motion-ready .w3-still.is-revealed,
    .lp-motion-ready .w3-finale-head.is-revealed,
    .lp-motion-ready .w3-path.is-revealed {
        transition: opacity var(--lp-dur-reveal) var(--lp-ease-out), transform 640ms var(--lp-ease-out);
        transition-delay: calc(var(--i, 0) * 80ms);
    }

    /* Im Standbild bauen sich die Kernelemente einmal nacheinander auf (≤ 650 ms, danach Ruhe). */
    .lp-motion-ready .w3-still.is-pending .w3-strip > i {
        transform: scaleX(0);
    }

    .lp-motion-ready .w3-still.is-revealed .w3-strip > i {
        transition: transform 520ms var(--lp-ease-device) 220ms;
    }

    .lp-motion-ready .w3-still.is-pending [data-w3-filter] {
        background: transparent;
        border-color: var(--sl-border-default);
    }

    .lp-motion-ready .w3-still.is-revealed [data-w3-filter] {
        transition-delay: 380ms;
    }

    .lp-motion-ready .w3-still.is-pending .w3-application {
        opacity: 0;
        transform: translateY(16px);
    }

    .lp-motion-ready .w3-still.is-revealed .w3-application {
        transition: opacity var(--lp-dur-reveal) var(--lp-ease-out) 260ms, transform 560ms var(--lp-ease-out) 260ms;
    }
}

@keyframes w3-assemble {
    from {
        transform: translate(calc(var(--dx) * 9%), calc(var(--dy) * 9%));
    }

    to {
        transform: translate(0, 0);
    }
}

@keyframes w3-light {
    from {
        opacity: 0.35;
        transform: translate(-50%, -50%) scale(0.86);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes w3-push {
    from {
        transform: scale(0.955);
    }

    to {
        transform: none;
    }
}

/* ── 10 Responsive ────────────────────────────────────────────────────────────────────────────────── */

@media (min-width: 640px) {
    .w3-hero-mark.lp-mark {
        width: 260px;
    }

    .w3-paths {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .w3-paths {
        grid-template-columns: minmax(0, 1fr);
        max-width: 640px;
        margin-inline: auto;
    }
}

/* Tablet und Desktop ohne Kino-Fassung: Text links, Standbild rechts. */
@media (min-width: 900px) {
    .w3-step {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: center;
    }

    .w3-still {
        justify-self: end;
    }
}

@media (min-width: 1024px) {
    /* Der Hero lässt unten einen Streifen frei: dort kommt schon die Bühne der Szene 02 ins Bild (Einladung zum Scrollen). */
    .w3-hero {
        display: flex;
        align-items: center;
        min-height: calc(100vh - var(--lp-header-h) - 120px);
        min-height: calc(100svh - var(--lp-header-h) - 120px);
        padding-block: 32px 72px;
    }

    .w3-hero-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: center;
        width: 100%;
    }

    .w3-hero-mark.lp-mark {
        width: min(29vw, 380px);
    }

    .w3-hero-scroll {
        display: inline-flex;
    }
}

/* Mobile: Text vor dem Zeichen, das Zeichen bleibt klein (kein leerer Bildschirm vor dem Inhalt). */
@media (max-width: 1023px) {
    .w3-hero-visual {
        justify-self: center;
        width: min(100%, 420px);
    }

    .w3-hero-word {
        display: none;
    }
}

@media (max-width: 420px) {
    .w3-hero-actions .sl-ui-btn--lg {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ── 11 Reduzierte Bewegung ───────────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .w3-hero-mark .lp-mark-piece,
    .w3-hero-light,
    .w3-hero-push {
        animation: none !important;
    }
}
