/* ==========================================================================
   Schriften (selbst gehostet)
   ========================================================================== */

@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
    --abyss: #030d18;
    --navy-950: #051526;
    --navy-900: #071f38;
    --navy-800: #0a2b4d;
    --navy-700: #0e3a66;
    --ocean: #13558f;
    --sea: #1f78c1;
    --sky: #5cbdf0;
    --spray: #9fdcff;
    --foam: #eaf3f9;
    --paper: #f7fafc;
    --white: #ffffff;

    --ink: #0b1d30;
    --ink-soft: #3e5670;
    --line: rgba(11, 29, 48, 0.11);
    --line-dark: rgba(159, 220, 255, 0.14);
    --text-dark-soft: rgba(234, 243, 249, 0.74);
    --text-dark-mute: rgba(234, 243, 249, 0.55);

    --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --radius: 22px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ==========================================================================
   Basis
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a {
    color: inherit;
}

svg {
    display: block;
}

::selection {
    background: var(--sky);
    color: var(--navy-950);
}

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

.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    background: var(--spray);
    color: var(--navy-950);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.is-scrolled,
.nav.is-open {
    background: rgba(5, 21, 38, 0.9);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 1px 0 var(--line-dark);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(159, 220, 255, 0.35);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(92, 189, 240, 0.4), transparent 65%);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-style: italic;
    letter-spacing: 0.02em;
    transition: transform 0.6s var(--ease), border-color 0.3s;
}

.brand:hover .brand__mark {
    transform: rotate(-12deg);
    border-color: var(--spray);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__menu a {
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    color: rgba(234, 243, 249, 0.78);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.nav__menu a:hover,
.nav__menu a.is-active {
    color: var(--white);
    background: rgba(159, 220, 255, 0.1);
}

.nav__menu .nav__cta,
.nav__menu .nav__cta.is-active {
    margin-left: 0.5rem;
    padding-inline: 1.2rem;
    background: var(--spray);
    color: var(--navy-950);
    font-weight: 700;
}

.nav__menu .nav__cta:hover {
    background: var(--white);
    color: var(--navy-950);
}

.nav__toggle {
    display: none;
}

@media (max-width: 52rem) {
    .nav__toggle {
        display: grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: 1px solid rgba(159, 220, 255, 0.28);
        border-radius: 50%;
        background: transparent;
        color: var(--white);
        cursor: pointer;
    }

    .nav__burger,
    .nav__burger::before,
    .nav__burger::after {
        display: block;
        width: 18px;
        height: 1.5px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.3s var(--ease), background-color 0.2s;
    }

    .nav__burger {
        position: relative;
    }

    .nav__burger::before,
    .nav__burger::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .nav__burger::before {
        top: -6px;
    }

    .nav__burger::after {
        top: 6px;
    }

    .nav__toggle[aria-expanded="true"] .nav__burger {
        background: transparent;
    }

    .nav__toggle[aria-expanded="true"] .nav__burger::before {
        transform: translateY(6px) rotate(45deg);
    }

    .nav__toggle[aria-expanded="true"] .nav__burger::after {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem var(--gutter) 1.5rem;
        background: rgba(5, 21, 38, 0.97);
        border-bottom: 1px solid var(--line-dark);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
    }

    .nav.is-open .nav__menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__menu a {
        padding: 0.9rem 1rem;
        font-size: 1.0625rem;
    }

    .nav__menu .nav__cta,
    .nav__menu .nav__cta.is-active {
        margin: 0.5rem 0 0;
        text-align: center;
    }
}

/* ==========================================================================
   Dekor: Seekarten-Raster
   ========================================================================== */

.chart-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(159, 220, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(159, 220, 255, 0.055) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 25%, transparent 75%);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding: 9rem 0 clamp(9rem, 16vw, 13rem);
    overflow: hidden;
    color: var(--foam);
    background:
        radial-gradient(110% 80% at 85% 5%, rgba(31, 120, 193, 0.45), transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(19, 85, 143, 0.55), transparent 60%),
        linear-gradient(180deg, var(--abyss) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.09;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__compass {
    position: absolute;
    top: 50%;
    right: -9vw;
    z-index: -1;
    width: min(64vw, 780px);
    aspect-ratio: 1;
    color: var(--spray);
    opacity: 0.2;
    transform: translateY(-52%);
}

.hero__compass svg {
    width: 100%;
    height: 100%;
    animation: spin 240s linear infinite;
}

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

.hero__inner {
    position: relative;
    z-index: 1;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.5rem 1.1rem 0.5rem 0.85rem;
    border: 1px solid rgba(159, 220, 255, 0.22);
    border-radius: 999px;
    background: rgba(159, 220, 255, 0.06);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--spray);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.beacon {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--sky);
    box-shadow: 0 0 12px var(--sky);
}

.beacon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--sky);
    animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    100% {
        transform: scale(3.2);
        opacity: 0;
    }
}

.hero__title {
    margin: 1.75rem 0 0;
    color: var(--white);
    font-size: clamp(3.4rem, 10.5vw, 9rem);
    font-weight: 360;
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.hero__title em {
    display: block;
    padding-right: 0.08em;
    font-weight: 300;
    background: linear-gradient(100deg, var(--spray) 0%, var(--sky) 40%, var(--white) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    max-width: 37rem;
    margin: 2rem 0 0;
    color: var(--text-dark-soft);
    font-size: clamp(1.125rem, 1.6vw, 1.35rem);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.75rem;
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: clamp(1.75rem, 5vw, 4.5rem);
    max-width: 46rem;
    margin: clamp(3.5rem, 7vw, 5rem) 0 0;
    padding-top: 2rem;
    border-top: 1px solid var(--line-dark);
}

.hero__facts div {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.35rem;
}

.hero__facts dd {
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    line-height: 1;
}

.hero__facts dt {
    color: var(--text-dark-mute);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

.hero__coords {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(9rem, 16vw, 13rem);
    margin: 0;
    color: rgba(159, 220, 255, 0.5);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    writing-mode: vertical-rl;
}

@media (max-width: 40rem) {
    .hero__compass {
        top: 7rem;
        right: -40vw;
        width: 110vw;
        opacity: 0.12;
        transform: none;
    }

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

    .hero__coords {
        display: none;
    }
}

/* Wellen (Komponente <x-waves>) */

.waves {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 0;
    height: clamp(48px, 7vw, 100px);
    pointer-events: none;
}

.waves--top {
    top: -1px;
    bottom: auto;
    transform: scaleY(-1);
}

.waves--hero {
    height: clamp(70px, 11vw, 150px);
}

.waves--large {
    height: clamp(64px, 10vw, 140px);
}

.waves svg {
    width: 100%;
    height: 100%;
}

.waves use {
    animation: drift 20s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.waves use:nth-child(1) {
    fill: rgba(92, 189, 240, 0.16);
    animation-duration: 9s;
    animation-delay: -2s;
}

.waves use:nth-child(2) {
    fill: rgba(31, 120, 193, 0.22);
    animation-duration: 13s;
    animation-delay: -3s;
}

.waves use:nth-child(3) {
    fill: rgba(234, 243, 249, 0.3);
    animation-duration: 17s;
    animation-delay: -4s;
}

.waves use:nth-child(4) {
    fill: var(--wave-fill, var(--paper));
    animation-duration: 24s;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, border-color 0.3s;
}

.btn .icon {
    width: 1.1em;
    height: 1.1em;
    transition: transform 0.35s var(--ease);
}

.btn:hover .icon {
    transform: translateX(4px);
}

.btn--primary {
    background: linear-gradient(135deg, var(--spray), var(--sky));
    color: var(--navy-950);
    box-shadow: 0 12px 32px -12px rgba(92, 189, 240, 0.65);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px -14px rgba(92, 189, 240, 0.85);
}

.btn--ghost {
    border-color: rgba(234, 243, 249, 0.25);
    color: var(--white);
}

.btn--ghost:hover {
    border-color: rgba(234, 243, 249, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Sektionen
   ========================================================================== */

.section {
    position: relative;
    isolation: isolate;
    padding: clamp(5rem, 11vw, 9rem) 0;
}

.section--foam {
    background: var(--foam);
}

.section--dark {
    overflow: hidden;
    color: var(--foam);
    background:
        radial-gradient(70% 50% at 100% 0%, rgba(31, 120, 193, 0.28), transparent 60%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.4rem;
    color: var(--ocean);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow span {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}

.section--dark .eyebrow,
.contact .eyebrow {
    color: var(--sky);
}

.section-head h2 {
    margin: 0;
    font-size: clamp(2.4rem, 5.6vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.section-head h2 em {
    color: var(--sea);
}

.section--dark .section-head h2 {
    color: var(--white);
}

.section--dark .section-head h2 em {
    color: var(--sky);
}

.section-head--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.section-head__intro {
    max-width: 25rem;
    margin: 0;
    color: var(--ink-soft);
}

.section--dark .section-head__intro {
    color: var(--text-dark-soft);
}

/* Profil */

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: start;
}

.split__aside {
    position: sticky;
    top: 7.5rem;
}

@media (max-width: 52rem) {
    .split {
        grid-template-columns: 1fr;
    }

    .split__aside {
        position: static;
    }
}

.prose p {
    margin: 0 0 1.4em;
    color: var(--ink-soft);
    font-size: 1.125rem;
}

.prose p:first-child {
    color: var(--ink);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.callout {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-start;
    gap: 1.35rem;
    margin-top: 2.75rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    overflow: hidden;
    border-radius: var(--radius);
    color: var(--foam);
    background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
    box-shadow: 0 34px 70px -34px rgba(7, 31, 56, 0.6);
}

.callout::before {
    content: "";
    position: absolute;
    inset: auto -20% -60% 30%;
    z-index: -1;
    height: 140%;
    background: radial-gradient(closest-side, rgba(92, 189, 240, 0.35), transparent);
}

.callout__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid rgba(159, 220, 255, 0.25);
    border-radius: 16px;
    background: rgba(92, 189, 240, 0.12);
    color: var(--spray);
}

.callout__icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.callout h3 {
    margin: 0.15rem 0 0.5rem;
    color: var(--white);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.callout p {
    margin: 0;
    color: var(--text-dark-soft);
    font-size: 1rem;
}

/* Leistungen */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
    gap: 1.25rem;
}

.card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.85rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(7, 31, 56, 0.04);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(120% 80% at 100% 0%, rgba(92, 189, 240, 0.2), transparent 55%);
    transition: opacity 0.5s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(31, 120, 193, 0.28);
    box-shadow: 0 34px 64px -32px rgba(7, 31, 56, 0.38);
}

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

.card__num {
    position: absolute;
    top: 1.6rem;
    right: 1.75rem;
    color: rgba(11, 29, 48, 0.28);
    font-family: var(--font-display);
    font-style: italic;
}

.card__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.85rem;
    border-radius: 16px;
    color: var(--spray);
    background: linear-gradient(135deg, var(--navy-800), var(--ocean));
    box-shadow: 0 14px 26px -14px rgba(14, 58, 102, 0.9);
    transition: transform 0.6s var(--ease);
}

.card:hover .card__icon {
    transform: rotate(-8deg) scale(1.06);
}

.card__icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.card h3 {
    margin: 0 0 0.7rem;
    font-size: 1.45rem;
    font-weight: 450;
    letter-spacing: -0.015em;
}

.card p {
    margin: 0 0 1.6rem;
    color: var(--ink-soft);
    font-size: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--foam);
    color: var(--navy-700);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Stationen */

.timeline {
    --meta: 13rem;
    --rail: 3rem;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0.75rem;
    bottom: 0.75rem;
    left: calc(var(--meta) + var(--rail) / 2 - 0.5px);
    width: 1px;
    background: linear-gradient(var(--sky), rgba(92, 189, 240, 0.08));
}

.timeline__item {
    display: grid;
    grid-template-columns: var(--meta) var(--rail) minmax(0, 1fr);
    padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    padding-top: 1.85rem;
    text-align: right;
}

.timeline__period {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.3;
}

.timeline__company {
    color: var(--sky);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
}

.timeline__role {
    color: var(--text-dark-mute);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.timeline__marker {
    position: relative;
    justify-self: center;
    width: 13px;
    height: 13px;
    margin-top: 2.2rem;
    border: 2px solid var(--sky);
    border-radius: 50%;
    background: var(--navy-950);
}

.is-current .timeline__marker {
    background: var(--sky);
    box-shadow: 0 0 0 6px rgba(92, 189, 240, 0.16), 0 0 26px rgba(92, 189, 240, 0.8);
}

.is-current .timeline__marker::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 1px solid var(--sky);
    border-radius: 50%;
    animation: ping 2.4s var(--ease) infinite;
}

.timeline__body {
    display: grid;
    gap: 1.5rem 2.5rem;
    padding: 1.9rem 2.1rem;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: rgba(159, 220, 255, 0.035);
    transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}

.timeline__body--metric {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.timeline__item:hover .timeline__body {
    border-color: rgba(159, 220, 255, 0.28);
    background: rgba(159, 220, 255, 0.07);
    transform: translateX(4px);
}

.is-current .timeline__body {
    border-color: rgba(92, 189, 240, 0.42);
    background: linear-gradient(135deg, rgba(31, 120, 193, 0.3), rgba(159, 220, 255, 0.04));
}

.badge {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(92, 189, 240, 0.18);
    color: var(--spray);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.timeline__body h3 {
    margin: 0 0 0.75rem;
    color: var(--white);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.timeline__body h3 + p {
    max-width: 40rem;
    margin: 0;
    color: var(--text-dark-soft);
}

.tags--dark {
    margin-top: 1.25rem;
}

.tags--dark li {
    background: rgba(159, 220, 255, 0.1);
    color: var(--spray);
}

.timeline__metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    margin: 0;
    padding-left: 2.5rem;
    border-left: 1px solid var(--line-dark);
    text-align: right;
}

.timeline__metric strong {
    padding-right: 0.06em;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(100deg, var(--spray), var(--sky) 50%, var(--white));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.timeline__metric span {
    color: var(--text-dark-mute);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 64rem) {
    .timeline__body--metric {
        grid-template-columns: minmax(0, 1fr);
    }

    .timeline__metric {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.4rem 0.9rem;
        padding: 1.25rem 0 0;
        border-top: 1px solid var(--line-dark);
        border-left: 0;
        text-align: left;
    }
}

@media (max-width: 44rem) {
    .timeline {
        --rail: 2rem;
    }

    .timeline::before {
        left: calc(var(--rail) / 2 - 0.5px);
    }

    .timeline__item {
        grid-template-columns: var(--rail) minmax(0, 1fr);
        grid-template-areas:
            "marker meta"
            ". body";
    }

    .timeline__marker {
        grid-area: marker;
        margin-top: 0.4rem;
    }

    .timeline__meta {
        grid-area: meta;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.15rem 0.75rem;
        padding: 0 0 0.85rem 0.5rem;
        text-align: left;
    }

    .timeline__body {
        grid-area: body;
        margin-left: 0.5rem;
        padding: 1.4rem;
    }

    .timeline__item:hover .timeline__body {
        transform: none;
    }
}

/* Stack */

.stack {
    border-top: 1px solid var(--line);
}

.stack__group {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 1rem 2rem;
    align-items: center;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
}

.stack__group h3 {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 0;
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.stack__group h3 span {
    color: var(--sea);
    font-size: 0.95rem;
    font-style: italic;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 0.55rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy-800);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.chips li:hover {
    transform: translateY(-2px);
    border-color: var(--sea);
    color: var(--sea);
    box-shadow: 0 10px 20px -14px rgba(31, 120, 193, 0.7);
}

@media (max-width: 44rem) {
    .stack__group {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact {
    position: relative;
    isolation: isolate;
    padding: clamp(6rem, 13vw, 11rem) 0;
    overflow: hidden;
    color: var(--foam);
    background:
        radial-gradient(80% 90% at 10% 0%, rgba(31, 120, 193, 0.45), transparent 60%),
        radial-gradient(70% 80% at 100% 100%, rgba(19, 85, 143, 0.55), transparent 60%),
        var(--navy-950);
}

.contact__anchor {
    position: absolute;
    right: -4rem;
    bottom: -5rem;
    z-index: -1;
    width: clamp(18rem, 42vw, 36rem);
    height: auto;
    color: var(--spray);
    opacity: 0.06;
    stroke-width: 0.4;
    transform: rotate(-14deg);
}

.contact__title {
    max-width: 13ch;
    margin: 0;
    color: var(--white);
    font-size: clamp(2.9rem, 8.5vw, 7rem);
    font-weight: 360;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.contact__title em {
    background: linear-gradient(100deg, var(--spray), var(--sky) 45%, var(--white));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact__lead {
    max-width: 35rem;
    margin: 2rem 0 0;
    color: var(--text-dark-soft);
    font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
}

.contact__mail {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 3rem;
    padding-bottom: 0.45rem;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4.6vw, 3rem);
    line-height: 1.2;
    text-decoration: none;
    overflow-wrap: anywhere;
    background:
        linear-gradient(90deg, var(--sky), var(--spray)) left bottom / 0% 2px no-repeat,
        linear-gradient(rgba(234, 243, 249, 0.22), rgba(234, 243, 249, 0.22)) left bottom / 100% 1px no-repeat;
    transition: background-size 0.7s var(--ease);
}

.contact__mail:hover {
    background-size: 100% 2px, 100% 1px;
}

.contact__mail .icon {
    width: 0.8em;
    height: 0.8em;
    color: var(--sky);
    transition: transform 0.45s var(--ease);
}

.contact__mail:hover .icon {
    transform: translate(4px, -4px);
}

.contact__address {
    font-style: normal;
}

.contact__list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 3.5rem;
    margin: 3.5rem 0 0;
    padding: 0;
    list-style: none;
}

.contact__list li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.contact__icon {
    display: grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--sky);
}

.contact__icon .icon {
    width: 1.1rem;
    height: 1.1rem;
}

.contact__list small {
    display: block;
    color: var(--text-dark-mute);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact__list li > span:last-child {
    color: var(--white);
    font-weight: 600;
}

.contact__list a {
    text-decoration: none;
}

.contact__list a:hover {
    color: var(--spray);
}

/* ==========================================================================
   Unterseiten: Impressum, Datenschutz
   ========================================================================== */

.page-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(8rem, 14vw, 11rem) 0 clamp(5.5rem, 10vw, 8.5rem);
    overflow: hidden;
    color: var(--foam);
    background:
        radial-gradient(110% 90% at 85% 0%, rgba(31, 120, 193, 0.45), transparent 55%),
        linear-gradient(180deg, var(--abyss) 0%, var(--navy-900) 100%);
}

.page-hero .eyebrow {
    color: var(--sky);
}

.page-hero__title {
    margin: 0;
    color: var(--white);
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    font-weight: 360;
    line-height: 1;
    letter-spacing: -0.035em;
}

.legal {
    padding-top: clamp(3rem, 6vw, 4.5rem);
}

.legal__content {
    max-width: 46rem;
}

.legal__content h2 {
    margin: 2.75rem 0 0.9rem;
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
}

.legal__content h2:first-child {
    margin-top: 0;
}

.legal__content p,
.legal__content li {
    color: var(--ink-soft);
}

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

.legal__content ul {
    margin: 0 0 1em;
    padding-left: 1.25rem;
}

.legal__content li + li {
    margin-top: 0.3rem;
}

.legal__content strong {
    color: var(--ink);
}

.legal__content a {
    color: var(--sea);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal__content a:hover {
    color: var(--ocean);
}

.legal__date {
    margin-top: 3rem !important;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--line-dark);
    background: var(--abyss);
    color: var(--text-dark-mute);
    font-size: 0.875rem;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
}

.footer p {
    margin: 0;
}

.footer__coords {
    letter-spacing: 0.12em;
}

.footer a {
    color: rgba(234, 243, 249, 0.8);
    text-decoration: none;
}

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

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

/* ==========================================================================
   Einblenden beim Scrollen
   ========================================================================== */

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Reduzierte Bewegung
   ========================================================================== */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
