/* ============================================================
   SMI Consulting — "Quiet Engineering"
   Dunkles Editorial-Design mit Technik-DNA
   ============================================================ */

/* ---------- Selbst gehostete Fonts (Subsets: latin, latin-ext) ---------- */

/* Bricolage Grotesque — latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-normal-300-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque — latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-normal-300-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fraunces — latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/fraunces-italic-400-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces — latin */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/fraunces-italic-400-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono — latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono — latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono — latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-normal-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
    --bg: #0a0c0b;
    --surface: #11141280;
    --surface-solid: #121514;
    --line: rgba(233, 235, 228, 0.1);
    --line-strong: rgba(233, 235, 228, 0.2);
    --ink: #e9ebe4;
    --muted: #9aa098;
    --accent: #5ce5d5;
    --accent-dim: rgba(92, 229, 213, 0.14);
    --accent-ink: #03201c;

    --font-display: "Bricolage Grotesque", sans-serif;
    --font-serif: "Fraunces", serif;
    --font-mono: "JetBrains Mono", monospace;

    --container: 72rem;
    --pad: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Reset & Basics ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

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

@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;
    }
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 100;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

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

/* ---------- Grain Overlay ---------- */

.grain {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.55;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reveal Animations ----------
   Nur verstecken, wenn JS verfügbar ist (html.js wird inline im <head>
   gesetzt) — ohne JS bleibt der gesamte Inhalt sofort sichtbar. */

html.js .reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.45s ease var(--d, 0s), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
    html.js .reveal {
        opacity: 1;
        transform: none;
    }
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(10, 12, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}

.header-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: 1.1rem var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.wordmark {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.wordmark-dash {
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.site-nav a {
    color: var(--muted);
    transition: color 0.2s ease;
    position: relative;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--ink);
}

.site-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.4rem;
    height: 1px;
    background: var(--accent);
}

.site-nav .nav-cta {
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .nav-cta:hover {
    background: var(--accent);
    color: var(--accent-ink);
}

.site-nav .nav-cta.active::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 2.6rem;
    height: 2.6rem;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    cursor: pointer;
    align-items: center;
}

.nav-toggle span {
    display: block;
    width: 1.1rem;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(4.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-4.25px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: clip;
}

.hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 45% at 75% 0%, rgba(92, 229, 213, 0.13), transparent 65%),
        radial-gradient(ellipse 50% 40% at 10% 100%, rgba(92, 229, 213, 0.05), transparent 60%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, black 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    width: 100%;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid rgba(92, 229, 213, 0.35);
    background: var(--accent-dim);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    margin-bottom: 2.25rem;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(92, 229, 213, 0.5);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(92, 229, 213, 0);
    }
}

.kicker {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.75rem, 8.5vw, 6.75rem);
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-variation-settings: "opsz" 96;
    margin-bottom: 1.75rem;
    text-wrap: balance;
}

.hero-title em,
.section-title em,
.contact-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 480;
    letter-spacing: -0.01em;
    color: var(--accent);
}

.hero-lead {
    max-width: 36rem;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-primary:hover {
    background: #86eee1;
}

.btn-ghost {
    border: 1px solid var(--line-strong);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    border-top: 1px solid var(--line);
    padding-top: 1.75rem;
    max-width: 56rem;
}

.hero-facts dt {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.hero-facts dd {
    font-weight: 600;
    font-size: 1rem;
}

.scroll-hint {
    position: absolute;
    bottom: 1.75rem;
    right: var(--pad);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scroll-hint::after {
    content: "";
    width: 1px;
    height: 2.75rem;
    background: linear-gradient(var(--accent), transparent);
    animation: scrollHint 2.2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollHint {
    0%, 100% {
        transform: scaleY(0.4);
        opacity: 0.4;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* ---------- Marquee ---------- */

.marquee {
    border-block: 1px solid var(--line);
    overflow: hidden;
    padding: 1.1rem 0;
    background: var(--surface-solid);
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marquee 36s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
}

.marquee-track span:nth-child(even) {
    color: var(--accent);
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Sections ---------- */

.section {
    padding: clamp(5rem, 10vw, 8.5rem) 0;
    position: relative;
    overflow: clip;
}

.watermark {
    position: absolute;
    top: clamp(1rem, 4vw, 3rem);
    right: clamp(-1.5rem, -1vw, -0.5rem);
    font-size: clamp(7rem, 18vw, 15rem);
    font-weight: 800;
    line-height: 0.8;
    font-variation-settings: "opsz" 96;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(233, 235, 228, 0.08);
    pointer-events: none;
    user-select: none;
}

.section-alt {
    background: var(--surface-solid);
    border-block: 1px solid var(--line);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::after {
    content: "";
    flex: 0 0 3rem;
    height: 1px;
    background: var(--line-strong);
}

.section-index {
    color: var(--accent);
}

.section-title {
    font-size: clamp(1.9rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-variation-settings: "opsz" 60;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    text-wrap: balance;
    max-width: 46rem;
}

/* ---------- Profil ---------- */

.profil-layout {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: start;
}

.profil-photo {
    position: relative;
}

.profil-photo img {
    filter: grayscale(1) contrast(1.05);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
}

.profil-photo::before {
    content: "";
    position: absolute;
    inset: 1rem -1rem -1rem 1rem;
    border: 1px solid rgba(92, 229, 213, 0.3);
    border-radius: 4px;
    z-index: -1;
}

.photo-caption {
    margin-top: 1.5rem;
    font-weight: 600;
    line-height: 1.45;
}

.photo-caption span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted);
}

.profil-text > p {
    color: var(--muted);
    max-width: 38rem;
    margin-bottom: 2.5rem;
}

.profil-text .section-title {
    margin-bottom: 1.5rem;
}

.stack-groups {
    display: grid;
    gap: 1.5rem;
}

.stack-group {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    align-items: baseline;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}

.stack-group h3 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

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

.chips li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    color: var(--ink);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.chips li:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- Leistungen ---------- */

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem 1.75rem;
    background: linear-gradient(180deg, rgba(233, 235, 228, 0.03), transparent);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-index {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.9rem;
}

.service-card > p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.service-tags li::before {
    content: "→ ";
    color: var(--accent);
}

/* ---------- Projekte ---------- */

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

.project {
    display: grid;
    grid-template-columns: 5rem 1fr 9rem;
    gap: 2rem;
    padding: 2.5rem 1rem;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: background-color 0.3s ease;
}

.project:hover {
    background: var(--surface);
}

.project-body {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project:hover .project-body {
    transform: translateX(0.5rem);
}

.project::after {
    content: "↗";
    position: absolute;
    right: 1rem;
    bottom: 1.5rem;
    font-family: var(--font-mono);
    color: var(--accent);
    opacity: 0;
    transform: translate(-0.5rem, 0.5rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project:hover::after {
    opacity: 1;
    transform: none;
}

.project-no {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    padding-top: 0.4rem;
}

.project-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.project-body h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin-bottom: 1.1rem;
    max-width: 38rem;
    text-wrap: balance;
}

.project-highlights {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
    display: grid;
    gap: 0.3rem;
}

.project-highlights li::before {
    content: "— ";
    color: var(--accent);
}

.project-tech li {
    font-size: 0.7rem;
    padding: 0.2rem 0.7rem;
    color: var(--muted);
}

.project-duration {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    text-align: right;
    padding-top: 0.4rem;
}

/* ---------- Werdegang ---------- */

.cv-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.cv-heading {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 1.75rem;
}

.cv-list li {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 1.25rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
}

.cv-years {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    padding-top: 0.2rem;
}

.cv-list h4 {
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.cv-list h4 a {
    border-bottom: 1px solid var(--line-strong);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.cv-list h4 a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.cv-note {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.85em;
}

.cv-list li > div > p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* ---------- Kontakt ---------- */

.section-contact {
    text-align: center;
    overflow: clip;
    position: relative;
}

.contact-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 55% at 50% 110%, rgba(92, 229, 213, 0.12), transparent 65%);
    pointer-events: none;
}

.section-contact .container {
    position: relative;
}

.section-contact .section-label {
    justify-content: center;
}

.section-contact .section-label::after {
    display: none;
}

.contact-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-variation-settings: "opsz" 96;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.contact-lead {
    color: var(--muted);
    max-width: 30rem;
    margin: 0 auto 3rem;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 3.2vw, 1.9rem);
    font-weight: 500;
    color: var(--accent);
    border-bottom: 1px solid rgba(92, 229, 213, 0.4);
    padding-bottom: 0.3rem;
    margin-bottom: 2.75rem;
    transition: border-color 0.2s ease;
    overflow-wrap: anywhere;
}

.contact-email:hover {
    border-color: var(--accent);
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}

.contact-links a {
    color: var(--ink);
    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: var(--accent);
}

.contact-location {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* ---------- Impressum / Rechtliches ---------- */

.legal {
    padding-top: clamp(8rem, 14vw, 11rem);
    min-height: calc(100svh - 6rem);
}

.legal-body {
    max-width: 38rem;
}

.legal-body h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 2.25rem 0 0.6rem;
}

.legal-body p {
    color: var(--muted);
}

.legal-body a {
    color: var(--ink);
    border-bottom: 1px solid var(--line-strong);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-body a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.legal-source {
    margin-top: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
}

.footer-inner a {
    color: var(--muted);
    border-bottom: 1px solid var(--line-strong);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-inner a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================================
   Responsive
   ============================================================ */

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

    .cv-layout {
        grid-template-columns: 1fr;
    }

    .profil-layout {
        grid-template-columns: 1fr;
    }

    .profil-photo {
        max-width: 20rem;
    }

    .hero-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .project {
        grid-template-columns: 3rem 1fr;
        gap: 1.25rem;
    }

    .project-duration {
        grid-column: 2;
        text-align: left;
        padding-top: 0;
        order: -1;
    }

    .project-no {
        grid-row: span 2;
    }
}

@media (max-width: 48rem) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 2.25rem;
        background: rgba(10, 12, 11, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        font-size: 1.3rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
        z-index: -1;
    }

    .site-nav.open {
        transform: none;
        opacity: 1;
    }

    .site-header {
        background: transparent;
    }

    .project {
        padding-inline: 0;
    }

    .project:hover {
        background: transparent;
    }
}
