/* Audiowide (SIL Open Font License), lokal ausgeliefert statt über Google */
@font-face {
    font-family: "Audiowide";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/audiowide-latin.fa3af39df234.woff2") format("woff2");
}

:root {
    --violet: #996bf0;
    --blue: #3c6dee;
    --void: #01020e;

    --surface: #0a0c1f;
    --border: rgba(153, 107, 240, 0.18);
    --text: #e8e9f5;
    --text-muted: #9a9db8;
    --gradient: linear-gradient(100deg, var(--violet), var(--blue));

    --font-display: "Audiowide", system-ui, sans-serif;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --page-width: 1120px;
    --gutter: clamp(16px, 4vw, 40px);
}

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--void);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--violet);
    text-decoration: none;
}

a:hover {
    color: var(--text);
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

main {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Hintergrund: zwei langsam wandernde Lichtschleier und ein dünnes Sternenfeld */
.backdrop {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--void);
}

/* dunkelt die Ränder ab, damit die Mitte ruhig bleibt */
.backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 28%, transparent 35%, rgba(1, 2, 14, 0.85) 100%);
}

.backdrop-glow {
    position: absolute;
    width: 70vmax;
    height: 70vmax;
    border-radius: 50%;
    filter: blur(40px);
    will-change: transform;
}

.backdrop-glow--violet {
    top: -30vmax;
    left: -20vmax;
    background: radial-gradient(circle, rgba(153, 107, 240, 0.30), transparent 65%);
    animation: drift-violet 38s ease-in-out infinite alternate;
}

.backdrop-glow--blue {
    top: -15vmax;
    right: -25vmax;
    background: radial-gradient(circle, rgba(60, 109, 238, 0.28), transparent 65%);
    animation: drift-blue 46s ease-in-out infinite alternate;
}

@keyframes drift-violet {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(18vmax, 12vmax, 0) scale(1.15); }
}

@keyframes drift-blue {
    from { transform: translate3d(0, 0, 0) scale(1.1); }
    to   { transform: translate3d(-16vmax, 16vmax, 0) scale(0.95); }
}

/* Sterne als gekachelte Punktmuster; unterschiedliche Kachelgrößen
   verhindern, dass sich das Raster erkennbar wiederholt */
.backdrop-stars {
    position: absolute;
    will-change: transform;
}

.backdrop-stars--far {
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(232, 233, 245, 0.55) 50%, transparent 51%),
        radial-gradient(1px 1px at 37% 71%, rgba(232, 233, 245, 0.40) 50%, transparent 51%),
        radial-gradient(1px 1px at 58% 33%, rgba(153, 107, 240, 0.70) 50%, transparent 51%),
        radial-gradient(1px 1px at 76% 86%, rgba(232, 233, 245, 0.45) 50%, transparent 51%),
        radial-gradient(1px 1px at 91% 12%, rgba(60, 109, 238, 0.80) 50%, transparent 51%),
        radial-gradient(1px 1px at 24% 47%, rgba(232, 233, 245, 0.35) 50%, transparent 51%),
        radial-gradient(1px 1px at 66% 59%, rgba(232, 233, 245, 0.50) 50%, transparent 51%);
    background-size: 370px 370px;
    /* Die Ebene ragt um eine Kachel über den Rand und wandert genau eine
       Kachel weit, dadurch läuft die Bewegung nahtlos in Schleife. */
    inset: -370px;
    animation:
        twinkle 7s ease-in-out infinite alternate,
        wander-far 170s linear infinite;
}

.backdrop-stars--near {
    background-image:
        radial-gradient(1.5px 1.5px at 8% 62%, rgba(232, 233, 245, 0.80) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 43% 14%, rgba(153, 107, 240, 0.90) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 71% 78%, rgba(232, 233, 245, 0.70) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 88% 41%, rgba(60, 109, 238, 0.95) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 29% 92%, rgba(232, 233, 245, 0.60) 50%, transparent 51%);
    background-size: 610px 610px;
    inset: -610px;
    animation:
        twinkle 11s ease-in-out -4s infinite alternate,
        wander-near 130s linear infinite;
}

/* Die vordere Ebene zieht schneller und in eine andere Richtung als die
   hintere, das ergibt Tiefe. */
@keyframes wander-far {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(370px, -370px, 0); }
}

@keyframes wander-near {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-610px, -610px, 0); }
}

@keyframes twinkle {
    from { opacity: 0.45; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .backdrop-glow,
    .backdrop-stars {
        animation: none;
    }
}

/* Wortmarke: Verlauf aus den beiden Markenfarben */
.wordmark {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.14em;
    /* gleicht den Leerraum hinter dem letzten Buchstaben aus */
    margin-right: -0.14em;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* soll wie ein Bild wirken: nicht markier- oder kopierbar */
    -webkit-user-select: none;
    user-select: none;
}

/* Eigener Mauszeiger (static/js/cursor.js) */
html.has-cursor,
html.has-cursor * {
    cursor: none !important;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: transform;
}

.cursor.is-visible {
    opacity: 1;
}

.cursor-ring {
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--violet);
    border-radius: 50%;
    background: rgba(153, 107, 240, 0.12);
    box-shadow: 0 0 12px rgba(153, 107, 240, 0.55);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* über klickbaren Elementen: größer und blau */
.cursor.is-hover .cursor-ring {
    transform: scale(2.2);
    border-color: var(--blue);
    background: rgba(60, 109, 238, 0.18);
    box-shadow: 0 0 18px rgba(60, 109, 238, 0.7);
}

.cursor.is-down .cursor-ring {
    transform: scale(0.7);
}

.cursor.is-hover.is-down .cursor-ring {
    transform: scale(1.7);
}

/* Startseite: Logo mit Schriftzug, darunter die Projektübersicht.
   Ohne JavaScript (oder bei reduzierter Bewegung) stehen beide einfach
   untereinander. static/js/journey.js schaltet mit der Klasse "journey-on"
   die Scroll-Reise durch das Wurmloch ein. */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 0 110px;
    text-align: center;
}

.hero-logo-link {
    border-radius: 50%;
}

.hero-logo {
    /* die Höhe begrenzt mit, damit Schriftzug und Pfeil auf den Schirm passen */
    width: min(560px, 82vw, 56vh);
    filter: drop-shadow(0 0 60px rgba(110, 108, 239, 0.35));
    transition: filter 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.hero-logo-link:hover .hero-logo {
    filter: drop-shadow(0 0 80px rgba(110, 108, 239, 0.6));
}

.hero-title {
    margin: 16px 0 0;
    font-size: clamp(1.75rem, 6vw, 3.25rem);
    line-height: 1.1;
}

/* Runde Pfeil-Schaltflächen: nach unten in die Reise, nach oben zurück */
.travel {
    position: absolute;
    left: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-left: -24px;
    border: 1px solid rgba(153, 107, 240, 0.45);
    border-radius: 50%;
    background: rgba(10, 12, 31, 0.45);
    color: var(--violet);
    box-shadow: 0 0 22px rgba(110, 108, 239, 0.25);
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.travel:hover {
    color: var(--text);
    border-color: var(--blue);
    box-shadow: 0 0 30px rgba(60, 109, 238, 0.6);
}

.travel svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.travel--down {
    bottom: clamp(20px, 5vh, 44px);
}

.travel--down svg {
    animation: nudge 1.8s ease-in-out infinite;
}

.travel--up {
    top: clamp(16px, 4vh, 36px);
}

.travel--up svg {
    transform: rotate(180deg);
}

@keyframes nudge {
    0%, 100% { transform: translateY(-3px); }
    50%      { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .travel--down svg {
        animation: none;
    }
}

/* === Die andere Seite des Wurmlochs === */

/* Fließender Nebel (static/js/nebula.js). "screen" hellt nur auf, die
   Sterne des Hintergrunds darunter bleiben scharf sichtbar. */
.nebula {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 1.4s ease;
}

html.nebula-on .nebula {
    opacity: 1;
}

.beyond {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 1px;
}

.section {
    padding-top: clamp(96px, 15vh, 160px);
    scroll-margin-top: 16px;
}

.section-head {
    margin-bottom: clamp(32px, 6vh, 56px);
    text-align: center;
}

.eyebrow {
    margin: 0 -0.32em 14px 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.section-title {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
    font-size: clamp(1.6rem, 4.6vw, 2.6rem);
    line-height: 1.15;
}

.section-lead {
    max-width: 520px;
    margin: 16px auto 0;
    color: var(--text-muted);
}

/* Elemente blenden beim Hereinscrollen ein (static/js/beyond.js) */
html.reveal-on .reveal {
    opacity: 0;
    translate: 0 28px;
    transition:
        opacity 0.9s ease var(--delay, 0s),
        translate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0s);
}

html.reveal-on .reveal.is-in {
    opacity: 1;
    translate: none;
}

/* Projektkarten: neigen sich zur Maus, mit wanderndem Lichtschein und
   umlaufendem Leuchtrand */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 440px));
    justify-content: center;
    gap: 28px;
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.project-card {
    position: relative;
    border-radius: 24px;
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.project-card.is-tilting {
    transition: transform 0.1s linear;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 1;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--angle),
        transparent 0 50%,
        var(--violet) 68%,
        var(--blue) 86%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    animation: border-spin 4.5s linear infinite;
}

.project-card:hover::before {
    opacity: 1;
}

@keyframes border-spin {
    to { --angle: 360deg; }
}

.project-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: 30px 28px 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(24, 21, 62, 0.72), rgba(8, 10, 28, 0.74));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition: box-shadow 0.4s ease;
}

.project-card:hover .project-card-inner {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(110, 108, 239, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Lichtschein, der der Maus folgt */
.project-card-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        460px circle at var(--mx, 50%) var(--my, 0%),
        rgba(153, 107, 240, 0.22),
        rgba(60, 109, 238, 0.08) 40%,
        transparent 65%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.project-card:hover .project-card-inner::after {
    opacity: 1;
}

.project-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

/* Das Logo verschiebt sich leicht gegen die Neigung: wirkt, als schwebe es */
.project-logo {
    width: 88px;
    height: 88px;
    filter: drop-shadow(0 0 16px rgba(110, 108, 239, 0.55));
    translate: calc(var(--px, 0) * 10px) calc(var(--py, 0) * 10px);
    transition: translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    -webkit-user-select: none;
    user-select: none;
}

.project-card.is-tilting .project-logo {
    transition: translate 0.1s linear;
}

.project-logo--letter {
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(153, 107, 240, 0.1);
    color: var(--violet);
    font-family: var(--font-display);
    font-size: 2.2rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(1, 2, 14, 0.4);
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.status--live {
    border-color: rgba(96, 226, 164, 0.4);
    color: #7fe9b6;
}

.status--dev {
    border-color: rgba(60, 109, 238, 0.55);
    color: #a9c0fb;
}

.status--dev::before {
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    50% { opacity: 0.35; }
}

.project-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    line-height: 1.2;
}

.project-tagline {
    margin: 0;
    color: var(--text);
}

.project-description {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(153, 107, 240, 0.08);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.project-link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 14px;
    color: var(--violet);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.project-link span {
    display: inline-block;
    transition: transform 0.25s ease;
}

.project-card:hover .project-link {
    color: var(--text);
}

.project-card:hover .project-link span {
    transform: translate(3px, -3px);
}

/* die ganze Karte ist klickbar */
.project-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Über mich */
.about {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 56px);
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.05rem;
}

.about-text p {
    margin: 0 0 1.1em;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-skills {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(10, 12, 31, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-skills-title {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .about {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Kontakt */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.contact-mail {
    position: relative;
    padding-bottom: 6px;
    color: var(--text);
    /* bewusst die normale Schrift: Das @ der Zierschrift ist kaum lesbar */
    font-size: clamp(1.15rem, 3.6vw, 1.8rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    overflow-wrap: anywhere;
}

.contact-mail::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-mail:hover::after {
    transform: scaleX(1);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-links a {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(10, 12, 31, 0.4);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-links a:hover {
    color: var(--text);
    border-color: rgba(153, 107, 240, 0.7);
    box-shadow: 0 0 24px rgba(110, 108, 239, 0.3);
}

/* Fußzeile */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: clamp(96px, 16vh, 160px);
    padding: 28px 0 36px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.site-footer nav {
    display: flex;
    gap: 22px;
}

.site-footer a {
    color: var(--text-muted);
}

.site-footer a:hover {
    color: var(--text);
}

/* === Unterseiten (Impressum, Datenschutz, Fehlerseite) === */
.page {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.page-header {
    display: flex;
    justify-content: center;
    padding: clamp(24px, 5vh, 48px) 0 0;
}

.page-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.page-brand img {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 0 14px rgba(110, 108, 239, 0.5));
}

.page-brand .wordmark {
    font-size: 1.15rem;
}

.prose {
    width: 100%;
    max-width: 760px;
    margin: clamp(32px, 6vh, 56px) auto 0;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(8, 10, 28, 0.66);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.prose h1 {
    margin: 0 0 0.9em;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4.5vw, 2.1rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.prose h2 {
    margin: 2em 0 0.6em;
    color: var(--text);
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.prose p,
.prose li {
    color: #c3c5da;
}

.prose p {
    margin: 0 0 1em;
}

.prose ul {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

.prose a {
    text-decoration: underline;
    text-decoration-color: rgba(153, 107, 240, 0.5);
    text-underline-offset: 3px;
}

.prose address {
    font-style: normal;
}

.notice {
    margin: 0 0 1.5em;
    padding: 14px 18px;
    border: 1px solid rgba(240, 180, 90, 0.45);
    border-radius: 14px;
    background: rgba(240, 180, 90, 0.08);
    color: #f1cf9a;
    font-size: 0.9rem;
}

.missing {
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(240, 180, 90, 0.14);
    color: #f1cf9a;
}

.page .site-footer {
    width: 100%;
    max-width: 760px;
    margin: 48px auto 0;
}

/* Fehlerseite */
.lost {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    text-align: center;
}

.lost-code {
    margin: 0;
    font-size: clamp(5rem, 22vw, 11rem);
    line-height: 1;
    filter: drop-shadow(0 0 50px rgba(110, 108, 239, 0.45));
}

.lost-text {
    margin: 20px 0 32px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.button {
    display: inline-block;
    padding: 10px 26px;
    border: 1px solid rgba(153, 107, 240, 0.55);
    border-radius: 999px;
    background: rgba(153, 107, 240, 0.1);
    color: var(--text);
    letter-spacing: 0.06em;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    border-color: var(--blue);
    box-shadow: 0 0 30px rgba(60, 109, 238, 0.5);
}

/* --- Scroll-Reise durch das Wurmloch (nur mit journey.js und WebGL) --- */
.wormhole {
    display: none;
}

/* Dieser Platzhalter ist die Scroll-Strecke der Reise: So lange bleibt die
   Bühne oben stehen, danach scrollt die andere Seite ganz normal weiter.
   Es muss ein echtes Element sein; ein Innenabstand zählt für "sticky" nicht. */
html.journey-on .journey {
    /* So lange bleibt die Ankunft bei den Projekten nach der Animation noch
       stehen; rund 100px entsprechen einer Mausrad-Stufe. Nur px-Werte. */
    --hold: 260px;
}

html.journey-on .journey::after {
    content: "";
    display: block;
    height: calc(180vh + var(--hold));
}

html.journey-on .stage {
    position: sticky;
    top: 0;
}

html.journey-on .hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}

/* Die Zeichenfläche liegt über Startszene und anderer Seite. Sie zeichnet
   Logo, Schriftzug und Sterne selbst; am Ende der Reise wird sie
   durchsichtig und gibt die andere Seite darunter frei. */
html.journey-on .wormhole {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Logo und Schriftzug bleiben als unsichtbare, klickbare Elemente erhalten */
html.journey-on .hero-logo,
html.journey-on .hero-title {
    opacity: 0;
}

html.journey-on .beyond {
    visibility: hidden;
}

/* Der Pfeil liegt über der Zeichenfläche; journey.js hängt ihn dafür
   direkt an den body. */
html.journey-on .travel--down {
    position: fixed;
    z-index: 2;
}
