/* franz-rombs.de — ruhiger Lebenslauf im Produktseiten-Stil. Keine externen Schriften oder Medien. */
:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --card: #f5f5f7;
  --card-on-alt: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0062c4;
  --link: #0066cc;
  --chip: #e8e8ed;
  --nav: rgba(255, 255, 255, 0.8);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --page: 980px;
  --wide: 1160px;
  --gutter: clamp(20px, 4vw, 44px);
  --radius: 28px;
  --radius-s: 18px;
  --nav-h: 52px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --alt: #161617;
  --card: #1d1d1f;
  --card-on-alt: #1d1d1f;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --line: #424245;
  --link: #2997ff;
  --chip: #2c2c2e;
  --nav: rgba(22, 22, 23, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); touch-action: manipulation; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.5; letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  transition: background-color 300ms ease, color 300ms ease;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(0, 113, 227, 0.25); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 8px; }

.container { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.wide { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.section { padding-block: clamp(80px, 10vw, 128px); }
.section--alt { background: var(--alt); }
.center { text-align: center; }
.title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.028em; }
.sub { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); line-height: 1.35; letter-spacing: -0.015em; color: var(--muted); margin: 14px auto 0; max-width: 34em; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 100; background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.nav__bar { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; color: var(--ink); margin-right: auto; }
.brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 32px); }
.nav__links a { color: var(--ink); opacity: 0.8; font-size: 0.75rem; letter-spacing: -0.01em; transition: opacity 200ms ease; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav__tools { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; }
.switch { position: relative; flex: none; width: 46px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: background-color 250ms ease; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); display: grid; place-items: center; color: #1d1d1f; transition: transform 300ms var(--ease-out); }
.switch svg { width: 12px; height: 12px; }
.switch .moon { display: none; }
:root[data-theme="dark"] .switch { background: var(--accent); }
:root[data-theme="dark"] .switch .knob { transform: translateX(20px); }
:root[data-theme="dark"] .switch .sun { display: none; }
:root[data-theme="dark"] .switch .moon { display: block; }
@media (max-width: 820px) {
  .menu-btn { display: grid; align-content: center; justify-items: center; width: 44px; height: 44px; margin-right: -12px; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 300ms var(--ease); }
  .menu-btn span + span { margin-top: 6px; }
  .nav.is-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: var(--bg); flex-direction: column; gap: 0; padding: 16px var(--gutter) 40px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 300ms var(--ease), transform 300ms var(--ease), visibility 0s 300ms; overflow-y: auto; }
  .nav.is-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
  .nav__links a { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; padding: 10px 0; opacity: 1; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 980px; border: 0; background: var(--accent); color: #fff; font: inherit; font-size: 1.0625rem; cursor: pointer; transition: background-color 200ms ease, transform 120ms var(--ease-out); }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.more { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); display: inline-flex; align-items: center; }
.more::after { content: ""; width: 0.4em; height: 0.4em; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg); margin-left: 6px; transition: transform 250ms var(--ease); }
.more:hover::after { transform: translateX(2px) rotate(45deg); }

/* Kopf des Lebenslaufs */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(72px, 9vw, 112px); text-align: center; }
.hero__photo { width: clamp(132px, 16vw, 176px); height: clamp(132px, 16vw, 176px); border-radius: 50%; object-fit: cover; margin: 0 auto 28px; }
.hero h1 { font-size: clamp(2.75rem, 1.4rem + 5vw, 5rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero__role { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-top: 10px; }
.hero__role span { color: var(--muted); }
.hero .sub { max-width: 32em; margin-top: 18px; }
.keyfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: clamp(48px, 6vw, 72px) auto 0; max-width: 880px; }
.keyfacts div { background: var(--card); border-radius: var(--radius-s); padding: 20px 16px; }
.keyfacts dt { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem); letter-spacing: -0.025em; line-height: 1.2; }
.keyfacts dd { color: var(--muted); font-size: 0.875rem; margin-top: 4px; line-height: 1.35; }

/* Profil */
.profile { max-width: 36em; margin: 28px auto 0; text-align: left; }
.profile p { color: var(--muted); font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.5; }
.profile p + p { margin-top: 1em; }
.profile p strong { color: var(--ink); font-weight: 600; }

/* Kompetenzen */
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 6vw, 72px); text-align: left; }
.skill { background: var(--card-on-alt); border-radius: var(--radius-s); padding: clamp(26px, 3vw, 36px); }
.skill--main { grid-column: 1 / -1; }
.skill h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em; }
.skill > p { margin-top: 8px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { background: var(--chip); border-radius: 980px; padding: 6px 14px; font-size: 0.9375rem; line-height: 1.35; letter-spacing: -0.01em; }
.section--alt .skill .chips li { background: var(--alt); }

/* Werdegang */
.timeline { margin: clamp(48px, 6vw, 72px) auto 0; max-width: 760px; text-align: left; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline li { position: relative; padding-left: 40px; }
.timeline li + li { margin-top: 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline li.now::before { background: var(--accent); }
.timeline .when { font-size: 0.875rem; font-weight: 600; color: var(--muted); line-height: 1.4; }
.timeline h3 { font-size: 1.3125rem; line-height: 1.3; letter-spacing: -0.02em; margin-top: 2px; }
.timeline p { color: var(--muted); margin-top: 6px; }

/* Projekte */
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: clamp(48px, 6vw, 72px); background: var(--card); border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); text-align: left; }
.project h3 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.12; letter-spacing: -0.025em; }
.project > div > p { color: var(--muted); margin-top: 12px; font-size: 1.125rem; }
.project .chips { margin-top: 22px; }
.project .chips li { background: var(--bg); }
.project .actions { justify-content: flex-start; margin-top: 26px; }
.shot { border-radius: 36px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); max-width: 300px; margin-inline: auto; }
.shot .for-dark { display: none; }
:root[data-theme="dark"] .shot .for-light { display: none; }
:root[data-theme="dark"] .shot .for-dark { display: block; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; text-align: left; }
.result { background: var(--card); border-radius: var(--radius-s); padding: clamp(26px, 3.2vw, 36px); }
.result .where { font-size: 0.8125rem; font-weight: 600; color: var(--muted); line-height: 1.4; }
.result .big { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; margin-top: 8px; }
.result .what { color: var(--muted); margin-top: 12px; }

/* Arbeitsweise */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 6vw, 72px); text-align: left; counter-reset: step; }
.steps li { counter-increment: step; background: var(--card-on-alt); border-radius: var(--radius-s); padding: 28px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.9375rem; margin-bottom: 18px; }
.steps h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; }
.steps p { margin-top: 8px; color: var(--muted); }
.together { margin: 20px auto 0; padding: 24px 28px; background: var(--card-on-alt); border-radius: var(--radius-s); text-align: left; color: var(--muted); }
.together strong { color: var(--ink); font-weight: 600; }

/* Rechtliche Seiten */
.legal-page { padding-block: clamp(56px, 8vw, 104px); }
.legal-page h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; text-align: center; }
.legal-page .sub { text-align: center; }
.legal-body { max-width: 692px; margin: clamp(40px, 5vw, 64px) auto 0; }
.legal-body h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.02em; margin-top: 2.2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body address { margin-top: 0.8em; color: var(--muted); font-style: normal; }
.legal-body p strong, .legal-body address strong { color: var(--ink); font-weight: 600; }
.back { display: flex; justify-content: center; margin-top: 56px; }

footer { background: var(--alt); border-top: 1px solid var(--line); padding-block: 22px; font-size: 0.75rem; color: var(--muted); }
footer .wide { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* Einblenden */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 1000ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.rise { opacity: 0; transform: translateY(12px); animation: rise 700ms var(--ease-out) forwards; }
.rise:nth-child(2) { animation-delay: 70ms; }
.rise:nth-child(3) { animation-delay: 140ms; }
.rise:nth-child(4) { animation-delay: 210ms; }
.rise:nth-child(5) { animation-delay: 280ms; }
.rise:nth-child(6) { animation-delay: 350ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

@media (max-width: 900px) {
  .keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project { grid-template-columns: minmax(0, 1fr); }
  .shot { max-width: 260px; }
}
@media (max-width: 640px) {
  .skills, .results, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero .actions .btn { width: 100%; max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
  .rise { transform: none; animation: fade 200ms ease forwards; animation-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .switch .knob, .btn, .switch { transition: none; }
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media print {
  .nav, .switch, footer, .actions { display: none; }
  .rise, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .section, .hero { padding-block: 24px; }
  .section--alt { background: none; }
}
