/* Schriften lokal eingebunden (SIL Open Font License, siehe assets/fonts) */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy: #10283F;
  --navy-2: #14304A;
  --line-dark: #2B4660;
  --bg: #F5F8FA;
  --bg-alt: #E6EDF3;
  --line: #C5D2DE;
  --text: #10283F;
  --muted: #3B5068;
  --accent: #0B766B;
  --teal: #2DD4BF;
  --soft-dark: #BCCADA;
  --muted-dark: #9FB3C8;
  --orange: #F59E0B;
  --pad: clamp(20px, 4.2vw, 56px);
  --head: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); margin: 0; }
.wrap { max-width: 1360px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--bg); padding: 10px 16px; border-radius: 4px; z-index: 10; }
.skip:focus { left: 8px; }

/* Kopfbereich */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 64px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 96px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.kicker { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { text-decoration: none; font-weight: 600; padding: 12px 26px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 4px; border: 2px solid var(--navy); }
.btn-solid { background: var(--navy); color: var(--bg); }
.btn-solid:hover { background: #1B3C5A; border-color: #1B3C5A; }
.btn-line:hover { background: var(--navy); color: var(--bg); }
.topics { flex: 1 1 400px; min-width: 0; background: var(--navy); color: var(--bg); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.topics-title { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dark); }
.topics-list { display: flex; flex-direction: column; font-family: var(--mono); }
.topics-list a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line-dark); }
.topics-list a:last-child { border-bottom: 1px solid var(--line-dark); }
.topics-list a:hover .t-name { color: var(--teal); }
.t-name { font-size: 22px; font-weight: 700; }
.t-num { color: var(--teal); font-size: 14px; margin-right: 14px; }
.t-sub { font-size: 14px; color: var(--muted-dark); padding-left: 36px; }

/* Schwerpunkte */
.focus { background: var(--navy); color: var(--bg); }
.focus .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
h2.big { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card-dark { border: 1px solid var(--line-dark); border-radius: 10px; padding: 36px; display: flex; flex-direction: column; gap: 16px; background: var(--navy-2); scroll-margin-top: 24px; }
.card-dark.is-main { border-color: var(--teal); }
.card-label { font-family: var(--mono); color: var(--teal); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.card-dark h3 { font-size: 30px; line-height: 1.15; }
.card-dark p { margin: 0; color: var(--soft-dark); font-size: 16px; }
.card-dark ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 14px; }
.stopwatch { font-family: var(--mono); font-weight: 700; font-size: 40px; line-height: 1; color: var(--teal); letter-spacing: -0.02em; padding-top: 4px; font-variant-numeric: tabular-nums; }
.link-underline { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
.card-dark .link-underline:hover { color: var(--teal); }

/* Projekte */
.projects .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.card-light { border: 1px solid var(--line); border-radius: 10px; padding: 32px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.card-light .card-label { font-size: 13px; letter-spacing: 0.12em; color: var(--accent); }
.card-light h3 { font-size: 24px; }
.card-light p { margin: 0; font-size: 16px; color: var(--muted); }

.arrow-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--head); font-weight: 700; font-size: 20px; text-decoration: none; border-bottom: 2px solid var(--navy); padding-bottom: 2px; }
.arrow-link svg { width: 28px; height: 28px; transition: transform .2s ease; }
.arrow-link:hover { color: var(--accent); border-color: var(--accent); }
.arrow-link:hover svg { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .arrow-link svg { transition: none; } }

/* Mehr von mir */
.more { background: var(--bg-alt); }
.more .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.more h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ph { aspect-ratio: 4 / 3; background: #BFCFDD; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; }
.gallery figure:nth-child(even) .ph { background: #A9BDD0; }
.gallery figcaption { font-size: 15px; font-weight: 500; }

/* Kontakt */
.contact .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; }
.about { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about p { margin: 0; color: var(--muted); }
.mail { flex: 1 1 360px; min-width: 0; background: var(--navy); color: var(--bg); border-radius: 10px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.mail h2 { font-size: 32px; line-height: 1.15; font-weight: 700; }
.mail p { margin: 0; color: var(--soft-dark); font-size: 16px; }
.btn-teal { background: var(--teal); color: var(--navy); border-color: var(--teal); align-self: flex-start; overflow-wrap: anywhere; }
.btn-teal:hover { background: #5EEAD4; border-color: #5EEAD4; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { align-items: center; padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-size: 15px; color: var(--muted); }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }

/* Unterseiten (Projekte, Mehr, Impressum) */
.page { max-width: 1360px; margin: 0 auto; padding: 16px var(--pad) 96px; }
.page-narrow { max-width: 760px; }
.sub-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-bottom: 48px; }
.back { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; }
.back:hover { color: var(--accent); }
.page h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 48px; font-weight: 700; }
.sub-section { margin-bottom: 64px; scroll-margin-top: 24px; }
.group-title { font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; font-weight: 500; }
.sec-title { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 24px; font-weight: 700; }
.jump { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: -24px 0 48px; font-weight: 600; }
.jump a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.gallery-lg { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.gallery-video .ph,
.gallery-video figure:nth-child(even) .ph { aspect-ratio: 16 / 9; background: #A9BDD0; }
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.dates li:last-child { border-bottom: 1px solid var(--line); }
.date { font-family: var(--mono); font-weight: 500; color: var(--accent); width: 120px; }
.date-text { flex: 1 1 260px; }
.date-text strong { font-family: var(--head); font-size: 22px; display: block; }
.date-text span { color: var(--muted); font-size: 16px; }
.page-narrow h1 { font-size: 40px; margin-bottom: 24px; }
.page-narrow h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; margin: 40px 0 12px; }
.page-narrow p { margin: 0 0 14px; }

/* Hilfsklassen */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fotos und Videos */
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; background: #BFCFDD; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #10283F; border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; text-decoration: none; }
.yt img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; opacity: .85; transition: opacity .2s ease; }
.yt:hover img { opacity: 1; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: block; }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-video .yt { aspect-ratio: 16 / 9; }

/* Zeitnahme-Seite */
.lead { font-size: 20px; color: var(--muted); max-width: 720px; margin: -24px 0 24px; }
.more-row { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-bottom: 56px; }
.page .link-underline { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.page .link-underline:hover { color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip span { font-family: var(--mono); font-size: 13px; font-weight: 500; opacity: .75; }
.chip:hover { background: #DCE6EE; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--bg); }
.chip:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.years { margin: 0 0 8px; font-family: var(--mono); font-size: 15px; font-weight: 500; gap: 0 18px; }
.count { margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.year-block { margin-bottom: 40px; scroll-margin-top: 24px; }
.year-title { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 700; }
.results { list-style: none; margin: 0; padding: 0; }
.res { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.res:last-child { border-bottom: 1px solid var(--line); }
.res-date { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--accent); }
.res-main strong { font-family: var(--head); font-size: 19px; font-weight: 700; line-height: 1.3; margin-right: 10px; }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.res-links { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: flex-end; }
.res-links a { font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.res-links a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .res { grid-template-columns: 1fr; gap: 2px; }
  .res-links { justify-content: flex-start; }
}

/* Projektkarten */
.proj-logo { height: 44px; width: auto; max-width: 160px; object-fit: contain; align-self: flex-start; }
.card-light .tags { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--accent); }
.card-light .link-underline { margin-top: auto; }

/* Anleitungen */
.page-article { max-width: 860px; }
.article .group-title { margin-bottom: 12px; }
.article h1 { font-size: clamp(32px, 4.5vw, 48px); margin: 0 0 20px; }
.article .lead { margin: 0 0 32px; font-size: 19px; }
.article h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin: 48px 0 12px; font-weight: 700; }
.article p, .article li { max-width: 70ch; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { margin: 0 0 14px; padding-left: 1.3em; }
.article li { margin-bottom: 6px; }
.article a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.article code { font-family: var(--mono); font-size: 0.9em; background: #E1E9F0; padding: 1px 6px; border-radius: 4px; }
.article pre { background: var(--navy); color: #E6EDF3; border-radius: 8px; padding: 20px 24px; overflow-x: auto; margin: 16px 0 20px; font-family: var(--mono); font-size: 14px; line-height: 1.65; }
.article pre:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.article pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.article figure { margin: 0; }
.article figure img { width: 100%; height: auto; display: block; border-radius: 8px; background: #BFCFDD; }
.hero-fig { margin: 0 0 8px; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 16px 0 0; }

/* Link im Kontaktbereich */
.mail .link-underline { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
.mail .link-underline:hover { color: var(--teal); }

/* Fallback-Link unter Videos */
.yt-link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
.yt-link:hover { color: var(--navy); }

/* Kontakt: Mail- und LinkedIn-Button gleich gestaltet */
.mail-links { display: flex; flex-wrap: wrap; gap: 12px; }
.mail-links .btn { gap: 10px; align-self: auto; }
.mail-links .btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { background: transparent; color: var(--bg); border-color: var(--bg); }
.btn-ghost:hover { background: var(--bg); color: var(--navy); }

/* Screenshots in Artikeln */
.article .shot { margin: 24px 0 8px; }
.article .shot a { display: block; }
.article .shot img { border: 1px solid var(--line); }
.article .shot figcaption { margin-top: 10px; font-size: 15px; color: var(--muted, #4A6076); max-width: 70ch; }
.article .note { margin-top: 40px; font-size: 15px; color: var(--muted, #4A6076); }

/* Download-Button auf Projektseiten */
.article .download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 28px; max-width: none; }
.article .download .btn { gap: 10px; color: var(--bg); text-decoration: none; font-weight: 600; }
.article .download .btn svg { width: 20px; height: 20px; flex: none; }
.article .download-hint { font-size: 15px; color: var(--muted); }

/* Hinweis unter den Videos */
.video-note { margin: 20px 0 0; max-width: 70ch; font-size: 15px; color: var(--muted); }

.article h3 { font-size: 20px; line-height: 1.2; margin: 24px 0 10px; font-weight: 700; }

.article .download + .download { margin-top: -12px; }
