/* ==========================================================================
   NeumannFrank.de – Design-Tokens
   ========================================================================== */
:root {
    --bg: #f6f4ef;
    --bg-alt: #efece4;
    --surface: #fffdf8;
    --ink: #16181d;
    --muted: #5b6070;
    --line: #e2ddd1;
    --accent: #1f5f5b;
    --accent-ink: #ffffff;
    --accent-soft: rgba(31, 95, 91, .09);
    --copper: #b4683c;
    --code-bg: #15181e;
    --code-ink: #d9dde5;
    --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 12px 32px -12px rgba(22, 24, 29, .14);

    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;

    --radius: 14px;
    --wrap: 1120px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0f1115;
        --bg-alt: #13161b;
        --surface: #181b21;
        --ink: #ece9e2;
        --muted: #9aa0ad;
        --line: #272b34;
        --accent: #6fc3b8;
        --accent-ink: #0d1514;
        --accent-soft: rgba(111, 195, 184, .1);
        --copper: #e09a6c;
        --code-bg: #0b0d10;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0f1115;
    --bg-alt: #13161b;
    --surface: #181b21;
    --ink: #ece9e2;
    --muted: #9aa0ad;
    --line: #272b34;
    --accent: #6fc3b8;
    --accent-ink: #0d1514;
    --accent-soft: rgba(111, 195, 184, .1);
    --copper: #e09a6c;
    --code-bg: #0b0d10;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
svg { flex-shrink: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 100;
    background: var(--accent); color: var(--accent-ink);
    padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark {
    display: grid; place-items: center; width: 38px; height: 38px;
    border-radius: 10px; background: var(--ink); color: var(--bg);
    font: 600 .95rem/1 var(--serif); letter-spacing: .04em;
}
.brand-name { font: 600 1.05rem/1 var(--serif); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    color: var(--muted); text-decoration: none; font-size: .95rem;
    padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.site-nav .nav-cta { color: var(--ink); font-weight: 500; }

.site-nav .lang-switch {
    margin-left: 4px; padding: 0 10px; height: 38px; line-height: 36px;
    border: 1px solid var(--line); border-radius: 10px;
    font: 500 .78rem/36px var(--mono); letter-spacing: .08em;
}
.site-nav .lang-switch:hover { background: transparent; border-color: var(--muted); }

.theme-toggle {
    display: grid; place-items: center; width: 38px; height: 38px; margin-left: 4px;
    border: 1px solid var(--line); border-radius: 10px; background: transparent;
    color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: block; }
    :root:not([data-theme="light"]) .icon-moon { display: none; }
}

@media (max-width: 719px) {
    .brand-name { display: none; }
    .site-nav a:not(.nav-cta):not(.lang-switch) { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    padding: 72px 0 56px;
    background:
        radial-gradient(900px 420px at 85% -10%, var(--accent-soft), transparent 70%),
        radial-gradient(600px 300px at -10% 110%, color-mix(in srgb, var(--copper) 10%, transparent), transparent 70%);
}
@media (min-width: 900px) { .hero { padding: 112px 0 72px; } }
.hero-sm { padding-bottom: 32px; }

.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
    font: 500 .8rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.hero h1 {
    font: 500 clamp(2.75rem, 7.5vw, 5.25rem)/1 var(--serif);
    letter-spacing: -.025em;
}
.hero-sm h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; max-width: 18ch; }
.hero-role { margin: 14px 0 24px; font: italic 400 clamp(1.2rem, 2.4vw, 1.5rem)/1.3 var(--serif); color: var(--accent); }
.lead { max-width: 56ch; font-size: 1.15rem; color: var(--muted); }
.hero-sm .lead { margin-top: 20px; }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 999px;
    font: 500 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
    transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* Code-Karte */
.code-card {
    margin: 0; border-radius: var(--radius); overflow: hidden;
    background: var(--code-bg); color: var(--code-ink);
    box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--code-ink) 10%, transparent);
    transform: rotate(-1deg);
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.code-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3f4b; }
.code-bar span:first-child { background: #e0705f; }
.code-bar span:nth-child(2) { background: #e5b75a; }
.code-bar span:nth-child(3) { background: #6cc28a; }
.code-bar em { margin-left: auto; font: normal .75rem/1 var(--mono); color: #8a91a0; }
.code-card pre { margin: 0; padding: 22px 22px 26px; overflow-x: auto; font: .86rem/1.75 var(--mono); }
.code-card .k { color: #c79bf2; }
.code-card .t { color: #6fc3b8; }
.code-card .s { color: #e5b383; }
.code-card .n { color: #f08d74; }

/* Kennzahlen */
.stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px; margin: 64px 0 0; padding: 0;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stats div { background: var(--surface); padding: 22px 24px; }
.stats dt { font: 500 1.9rem/1.1 var(--serif); color: var(--ink); }
.stats dd { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

/* ==========================================================================
   Sektionen
   ========================================================================== */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-alt { background: var(--bg-alt); }

.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 300px 1fr; gap: 64px; } }

.section-head { align-self: start; }
@media (min-width: 900px) { .section-head { position: sticky; top: 108px; } }
.section-head .num { display: block; margin-bottom: 12px; font: 500 .82rem/1 var(--mono); color: var(--copper); letter-spacing: .1em; }
.section-head h2 { font: 500 clamp(1.8rem, 3.4vw, 2.5rem)/1.1 var(--serif); }

.roles { font: 400 1.3rem/1.5 var(--serif); margin-bottom: 32px; }
.lead-sm { font-size: 1.12rem; max-width: 62ch; }

/* Ausbildung */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: ""; position: absolute; left: -5px; top: 7px;
    width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.tl-tag { display: block; font: 500 .78rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.timeline strong { font-weight: 500; font-size: 1.08rem; }

/* Skills */
.skills { display: grid; gap: 28px; margin-top: 40px; }
@media (min-width: 640px) { .skills { grid-template-columns: 1fr 1fr; gap: 36px 40px; } }
.skill-group h3 { margin-bottom: 14px; font: 500 .8rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li {
    padding: 6px 12px; border-radius: 999px; font-size: .9rem;
    background: var(--surface); border: 1px solid var(--line);
}

/* Karten */
.cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
    display: flex; flex-direction: column;
    padding: 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card-meta { margin-bottom: 10px; font: 500 .78rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--copper); }
.card h3 { margin-bottom: 14px; font: 500 1.4rem/1.25 var(--serif); }
.card p:not(.card-meta) { color: var(--muted); }
.card-link { margin-top: auto; padding-top: 8px; font-weight: 500; text-decoration: none; }
.card-link:hover span { display: inline-block; transform: translateX(3px); }

/* Zitate */
.quote { margin: 36px 0 0; padding: 0 0 0 24px; border-left: 2px solid var(--copper); }
.quote p { margin-bottom: 12px; font: italic 400 clamp(1.15rem, 2vw, 1.35rem)/1.55 var(--serif); }
.quote footer { font-size: .95rem; font-weight: 500; }
.quote footer span { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }

/* CTA */
.cta-band { padding: 72px 0; background: var(--ink); color: var(--bg); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font: 500 clamp(1.6rem, 3.4vw, 2.3rem)/1.15 var(--serif); }
.cta-band .btn-primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* Kontakt */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    color: var(--ink); text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.contact-card svg {
    width: 40px; height: 40px; margin-bottom: 18px; padding: 9px; border-radius: 10px;
    background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.contact-label { font: 500 .78rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-value { font: 500 1.15rem/1.35 var(--serif); overflow-wrap: anywhere; }

/* Impressum */
.legal { display: grid; gap: 40px; }
.legal-block h2 { margin-bottom: 12px; font: 500 .8rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal address { font-style: normal; font: 400 1.2rem/1.6 var(--serif); }
.legal p { max-width: 62ch; }
.legal p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
