/* ==========================================================================
   Kilian Pfeifer — persönliche Webseite
   Aufbau: 1) Tokens  2) Basis  3) Header  4) Hero  5) Abschnitte
           6) Werdegang  7) Projekte  8) Hobbys  9) Kontakt  10) Lightbox
           11) Mobil / Druck
   ========================================================================== */

/* ---------- 1) Tokens ---------- */
:root {
  --bg: #f5f3ee;
  --bg-elev: #fbf9f4;
  --ink: #171610;
  --ink-2: #454237;
  --muted: #77726a;
  --line: #ddd8cd;
  --line-strong: #c4bfb2;
  --accent: #b4471f;
  --accent-ink: #fffaf6;
  --shadow: 0 1px 2px rgba(23, 22, 16, .04), 0 14px 34px rgba(23, 22, 16, .07);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .06), 0 24px 60px rgba(0, 0, 0, .18);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --max: 1160px;
  --gutter: clamp(20px, 5vw, 44px);
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 72px;
}

:root[data-theme="dark"] {
  --bg: #0f0f0d;
  --bg-elev: #171714;
  --ink: #f2efe7;
  --ink-2: #cac6bb;
  --muted: #918c82;
  --line: #2b2a25;
  --line-strong: #3d3b34;
  --accent: #ff7a4a;
  --accent-ink: #1a0f09;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .6);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }

/* Reveal-Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- 3) Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
}
.nav a {
  position: relative;
  font-size: .9rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.header-tools { display: flex; align-items: center; gap: 6px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .06em;
}
.lang-switch a {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.1;
  transition: color .2s ease, background .2s ease;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--bg); }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--bg-elev); border-color: var(--line); color: var(--ink); }

.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

.nav-toggle { display: none; }
.burger { position: relative; display: block; width: 18px; height: 12px; }
.burger span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease;
}
.burger span:first-child { top: 1px; }
.burger span:last-child { top: 9px; }
.nav-toggle[aria-expanded="true"] .burger span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- 4) Hero ---------- */
.hero {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(72px, 10vw, 128px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

h1 {
  font-size: clamp(2.7rem, 6.8vw, 5.1rem);
  line-height: .97;
  letter-spacing: -.045em;
  font-weight: 600;
  margin-bottom: 26px;
}
h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--accent);
  padding-right: .04em;
}

.lead {
  max-width: 47ch;
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  color: var(--ink-2);
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .16); }

.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--ink); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.hero-meta dd { font-size: .88rem; font-weight: 500; letter-spacing: -.01em; }

.hero-visual { position: relative; }

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.now {
  position: relative;
  margin: -30px 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3f9d5a;
  margin-top: 7px;
  box-shadow: 0 0 0 4px rgba(63, 157, 90, .16);
}
.now-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.now-text { font-size: .85rem; font-weight: 500; line-height: 1.4; display: block; }

/* ---------- 5) Abschnitte ---------- */
.section { padding: clamp(64px, 9vw, 118px) 0; }

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.sec-num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--accent);
}
h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 600;
}
.section-note {
  width: 100%;
  max-width: 52ch;
  color: var(--muted);
  font-size: .92rem;
}
@media (min-width: 760px) {
  .section-note { width: auto; margin-left: auto; text-align: right; }
}

/* ---------- 5b) Über mich ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.about-lead {
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  line-height: 1.42;
  letter-spacing: -.018em;
  font-weight: 500;
  margin-bottom: 20px;
}
.about-grid p + p { margin-top: 16px; color: var(--ink-2); }

.facts {
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.facts > div {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { color: var(--ink-2); }

/* ---------- 6) Werdegang ---------- */
.timeline { border-top: 1px solid var(--line); }
.timeline li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(16px, 4vw, 44px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.tl-year {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--accent);
  padding-top: 4px;
}
.tl-body h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 5px;
}
.tl-body p { color: var(--muted); font-size: .94rem; max-width: 62ch; }

.tools { margin-top: clamp(36px, 5vw, 56px); }
.tools-title {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--ink-2);
  background: var(--bg-elev);
}

/* ---------- 7) Projekte ---------- */
.projekt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.projekt {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.projekt:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.projekt-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.projekt-bild {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);
}
.projekt-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.projekt:hover .projekt-bild img { transform: scale(1.035); }

.projekt-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.projekt-body { padding: clamp(18px, 2.2vw, 28px); }

.projekt-kicker {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.projekt-kicker span { color: var(--line-strong); }

.projekt h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -.022em;
  font-weight: 600;
  margin-bottom: 8px;
}

.projekt-body p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tags li {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .02em;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-2);
}

.projekt-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent);
}
.projekt-more span { transition: transform .25s ease; }
.projekt:hover .projekt-more span { transform: translateX(3px); }

/* Featured-Karte */
.projekt--feature { grid-column: 1 / -1; }
.projekt--feature .projekt-link {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: stretch;
}
.projekt--feature .projekt-bild { aspect-ratio: auto; height: 100%; min-height: 340px; }
.projekt--feature .projekt-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.4vw, 48px);
}
.projekt--feature h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.15;
  margin-bottom: 12px;
}
.projekt--feature .projekt-body p { font-size: .98rem; max-width: 44ch; }

/* ---------- 8) Hobbys ---------- */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 44px) clamp(20px, 3vw, 36px);
}
.hobby { display: flex; flex-direction: column; }

.hobby-bild {
  display: block;
  aspect-ratio: 3 / 2;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elev);
}
.hobby-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.hobby:hover .hobby-bild img { transform: scale(1.035); }

.hobby-num {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--accent);
}
.hobby h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 10px 0 6px;
}
.hobby p { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* ---------- 9) Kontakt ---------- */
.section-contact {
  border-top: 1px solid var(--line);
  margin-top: clamp(20px, 4vw, 40px);
  background:
    radial-gradient(680px 320px at 12% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.contact-grid .sec-num { display: block; margin-bottom: 12px; }
.contact-grid h2 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  margin-bottom: 16px;
}
.contact-lead {
  max-width: 42ch;
  color: var(--ink-2);
  margin-bottom: 26px;
}

.contact-list li { border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 2px;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: -.02em;
  text-decoration: none;
  transition: color .2s ease, padding .25s ease;
}
.contact-list a:hover { color: var(--accent); padding-left: 8px; }
.contact-arrow { font-size: 1rem; color: var(--muted); transition: transform .25s ease, color .25s ease; }
.contact-list a:hover .contact-arrow { transform: translate(2px, -2px); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  font-size: .8rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer-note { order: 3; width: 100%; }
@media (min-width: 720px) { .footer-note { order: 0; width: auto; } }
.to-top { text-decoration: none; color: var(--ink-2); }
.to-top:hover { color: var(--accent); }

/* ---------- 10) Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(10, 10, 8, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lb-figure {
  max-width: min(1120px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lb-figure img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  background: #141410;
}
.lb-caption {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .72);
  text-align: center;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); }

.lb-btn[hidden] { display: none; }

.lb-close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.lb-prev { left: clamp(10px, 3vw, 28px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(10px, 3vw, 28px); top: 50%; transform: translateY(-50%); }

.lightbox img { user-select: none; }
body.lb-open { overflow: hidden; }
body.nav-open { overflow: hidden; }

/* ---------- 11) Mobil ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .hobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .projekt--feature .projekt-link { grid-template-columns: 1fr; }
  .projekt--feature .projekt-bild { aspect-ratio: 16 / 10; min-height: 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 24px var(--gutter) 40px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .25s ease, visibility .2s ease;
    overflow-y: auto;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a {
    width: 100%;
    padding: 14px 0;
    font-size: 1.25rem;
    letter-spacing: -.02em;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .nav a.active::after { display: none; }
  .nav a.active { color: var(--accent); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .hero { padding-top: 40px; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .projekt-grid { grid-template-columns: 1fr; }
  .hobby-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .tl-year { padding-top: 0; }
  .footer-inner { justify-content: flex-start; }
  .lb-prev, .lb-next {
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { left: calc(50% + 12px); }
  .lb-figure img { max-height: 70vh; }
  .lb-caption { padding-bottom: 54px; }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .hero-actions, .to-top, .lightbox, .now, .projekt-more { display: none !important; }
  body { background: #fff; color: #000; }
  .projekt, .portrait { box-shadow: none; }
  .reveal { opacity: 1; transform: none; }
}
