/* robinmaurer.de – keine externen Ressourcen, kein Tracking
   Icons: Phosphor Icons (MIT License, (c) 2023 Phosphor Icons), https://phosphoricons.com */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); }

:root {
  --bg: #F5F6F3;
  --surface: #FFFFFF;
  --surface-2: #F7F8F6;
  --chip: #EEF1EF;
  --text: #15191D;
  --text-2: #3A434B;
  --text-3: #4B555E;
  --line: #DADFDC;
  --line-2: #C9D0CC;
  --accent: #0B6E8A;
  --accent-text: #FFFFFF;
  --ok: #2E8B57;
  --figure-bg: #FFFFFF;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111518;
    --surface: #182024;
    --surface-2: #1D262B;
    --chip: #232D33;
    --text: #E8ECEA;
    --text-2: #BCC5C2;
    --text-3: #A3ADAA;
    --line: #2A353B;
    --line-2: #3A474E;
    --accent: #5BB8D4;
    --accent-text: #0B1A20;
    --ok: #5CC28A;
    --figure-bg: #F3F4F2;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--mono); font-weight: 500; font-size: 15px; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; padding: 10px 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 6px; font-weight: 500; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { color: var(--accent-text); filter: brightness(1.08); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-outline { color: var(--accent); border-color: var(--accent); min-height: 44px; padding: 8px 16px; }
.btn-outline:hover { background: var(--accent); color: var(--accent-text); }
.ext::after { content: "↗"; font-size: 0.9em; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 72px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--text-2); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
.lead { font-size: 19px; color: var(--text-2); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.actions .link { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 8px; font-weight: 500; }
.portrait { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 12px; justify-self: center; }

/* Kennzahlen */
.facts { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact-num { display: flex; align-items: center; gap: 10px; }
.fact .ico { width: 28px; height: 28px; fill: var(--accent); flex: none; }
.fact b { font-family: var(--mono); font-weight: 500; font-size: 40px; line-height: 1.2; color: var(--accent); }
.fact span { font-size: 15px; color: var(--text-2); }

/* Sections */
.section { padding-top: 96px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 32px; }
.section-title { display: flex; align-items: baseline; gap: 16px; }
.section-title .num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.section-title h2 { font-size: 34px; font-weight: 600; letter-spacing: -0.01em; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(22px, 4vw, 40px); }
.meta { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.card h3 { font-size: 22px; font-weight: 600; line-height: 1.3; }
.card p { color: var(--text-2); }
.card .plain { color: var(--text); font-size: 17px; line-height: 1.55; }
.card .plain b { font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { font-family: var(--mono); font-size: 13px; padding: 5px 10px; border-radius: 4px; background: var(--chip); color: var(--text-2); }
.more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-weight: 500; font-size: 15px; }
figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
figcaption { font-size: 14px; color: var(--text-3); }

.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; }
.feature > figure { grid-column: 1 / -1; }
.feature .diagram { background: var(--figure-bg); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; justify-content: center; }
.feature .diagram img { width: 100%; max-width: 560px; height: auto; }
.feature .diagram a { display: block; width: 100%; max-width: 560px; cursor: zoom-in; }
.tap { display: none; }
@media (max-width: 700px) { .tap { display: inline; } .feature .diagram { padding: 8px; } }
.feature h3 { font-size: 26px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.facts-list { margin: 0; display: flex; flex-direction: column; gap: 22px; border-left: 1px solid var(--line); padding-left: 32px; }
.facts-list dt { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); }
.facts-list dd { margin: 4px 0 0; }
@media (max-width: 860px) { .facts-list { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; } }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; }
.grid-2 .card { display: flex; flex-direction: column; gap: 16px; }
.plot { aspect-ratio: 16 / 10; background: var(--figure-bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; align-items: center; justify-content: center; }
.plot img { max-height: 100%; object-fit: contain; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #8F8F8F; }

/* Werdegang */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: flex; flex-wrap: wrap; gap: 6px 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline .when { flex: 0 0 180px; font-family: var(--mono); font-size: 14px; color: var(--text-3); padding-top: 3px; }
.timeline .what { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.timeline strong { font-size: 18px; font-weight: 600; }
.timeline span { color: var(--text-2); }

/* Kenntnisse */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.skills h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.skills .tags li { font-size: 14px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); }
.skills p { margin-top: 14px; font-size: 15px; color: var(--text-2); }

/* Über mich */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; padding-bottom: 96px; }
.about .side { display: flex; flex-direction: column; gap: 28px; }
.about figure { max-width: 360px; }
.about figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.about .text { display: flex; flex-direction: column; gap: 18px; }
.about .text p:first-child { font-size: 19px; color: var(--text); }
.about .text p { font-size: 17px; color: var(--text-2); }

/* Kontakt + Footer: bewusst immer dunkel */
.contact { background: #15191D; color: #F5F6F3; }
.contact a { color: #F5F6F3; }
.contact a:hover { color: #7FD0E8; }
.contact .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: end; padding-top: 88px; padding-bottom: 88px; }
.contact h2 { font-size: 40px; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.contact p { font-size: 18px; color: #C4CBC8; }
.contact ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 18px; }
.contact li a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; overflow-wrap: anywhere; }
.contact li .label { font-family: var(--mono); font-size: 13px; color: #A7B0AC; width: 80px; flex: none; }
.site-footer { background: #15191D; color: #A7B0AC; border-top: 1px solid #2C343B; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: #C4CBC8; display: inline-block; padding: 6px 0; }

/* Rechtstexte */
.legal { max-width: 760px; padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(28px, 7vw, 38px); font-weight: 600; margin-bottom: 8px; overflow-wrap: anywhere; hyphens: auto; }
body:has(.legal) { min-height: 100vh; display: flex; flex-direction: column; }
body:has(.legal) main { flex: 1; width: 100%; }
.legal h2 { font-size: 21px; font-weight: 600; margin-top: 22px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { margin: 0; padding-left: 22px; }
.legal address { font-style: normal; color: var(--text-2); }
.legal .back { align-self: flex-start; }

@media (max-width: 520px) { .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } .fact b { font-size: 32px; } .fact span { font-size: 14px; } }
