@font-face{font-family:'Inter';src:url(/assets/fonts/inter-var-latin.woff2) format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Source Serif 4';src:url(/assets/fonts/source-serif-4-latin.woff2) format('woff2');font-weight:200 900;font-style:normal;font-display:swap}
/* pillka.hn · Laborbuch. Familie: Inter, Source Serif 4, heller Standard mit dunklem Schema, eine Signalfarbe. */
:root {
  --bg: #FAF8F4; --surface: #F2EFE8; --ink: #1B1B1B; --mute: #5F5B54; --line: #DAD5CB;
  --sig: #C2372A; --ph: #E6E1D7;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px; --gut: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151515; --surface: #1D1C1B; --ink: #ECE8E1; --mute: #A39E95; --line: #33312E;
    --sig: #EF6A55; --ph: #262523;
  }
}
:root[data-theme="dark"] {
  --bg: #151515; --surface: #1D1C1B; --ink: #ECE8E1; --mute: #A39E95; --line: #33312E;
  --sig: #EF6A55; --ph: #262523;
}

*, *::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: 400 17px/1.6 var(--sans); }
img, video, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--sig); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--sig); }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 650; letter-spacing: -.015em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.mono, .stamp, .kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.lead { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 38em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Kopf */
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark { font-weight: 750; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; }
.wordmark .dot { color: var(--sig); }
.nav { display: flex; gap: clamp(12px, 3vw, 28px); list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav .lang { border: 1px solid var(--line); padding: 3px 7px; border-radius: 3px; }

/* Eröffnung */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(32px, 6vw, 72px); }
.kicker { color: var(--mute); margin-bottom: 1.2em; }
.kicker a { text-decoration: none; }
.hero h1 { max-width: 13em; }

/* Abschnitte */
.section { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(16px, 3vw, 32px); border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 40px; align-items: baseline; margin-bottom: 28px; }
.section-head p { color: var(--mute); margin: 0; max-width: 40em; }

/* Laborbuch */
.journal { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 300px); gap: 20px 32px; padding: 26px 0; border-top: 1px solid var(--line); align-items: start; }
.entry:first-child { border-top: 0; }
.entry-meta { color: var(--mute); margin: 4px 0 0; }
.entry h3 { font-size: 1.35rem; margin-bottom: .35em; }
.entry-link { text-decoration: none; }
.entry-link::after { content: ""; }
.entry-body p { color: var(--mute); max-width: 34em; }
.stamp { display: inline-block; border: 1px solid var(--sig); color: var(--sig); padding: 3px 8px; border-radius: 2px; transform: rotate(-1.5deg); }

/* Erkenntnisse und Formate */
.learn, .formats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.learn li { counter-increment: learn; }
.learn li::before { content: "0" counter(learn); display: block; font-family: var(--mono); font-size: .75rem; color: var(--sig); margin-bottom: 10px; }
.learn p, .formats p { color: var(--mute); }
.formats li { border-top: 2px solid var(--ink); padding-top: 14px; }
.formats.stacked { grid-template-columns: 1fr; gap: 24px; margin: 32px 0; }
.formats.stacked h2 { font-size: 1.25rem; }
.more { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--sig); }
.contact .mail, .article .mail { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -.01em; }
.contact .mail a, .article .mail a { text-decoration: none; border-bottom: 2px solid var(--sig); }

/* Artikel (Labs, Beratung, Rechtliches) */
.article { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(32px, 6vw, 64px); }
.article > p:not(.kicker):not(.back):not(.mail), .prose p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.65; }
.article .more { font-family: var(--sans); font-size: 1rem; }
.article .lead { margin-bottom: 1.6em; }
.article .fig, .article .lab-pic { margin: 0 0 32px; }
.boundary, .disclaimer { border-left: 3px solid var(--sig); padding: 4px 0 4px 18px; margin: 32px 0; }
.boundary h2 { font-size: 1rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.boundary p, .disclaimer p { font-family: var(--sans); font-size: .98rem; color: var(--mute); margin: 0; }
.related { margin-top: 32px; color: var(--mute); }
.back { margin-top: 48px; font-size: .95rem; }

/* Bilder */
.fig { margin: 0; }
.fig figcaption { color: var(--mute); font-size: .68rem; margin-top: 8px; }
.ph { background: var(--ph); aspect-ratio: 16 / 9; border-radius: 2px; }
.hero-pic img, .hero-pic.ph, .video-wrap { border-radius: 2px; }
.thumb img, .thumb.ph { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ph); }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.video-toggle { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(20, 20, 20, .6); cursor: pointer; display: grid; place-items: center; }
.video-toggle span { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.video-toggle.paused span { border-right: 0; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; width: 0; height: 0; }

/* Fuß */
.site-foot { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); padding: 32px 0 48px; color: var(--mute); font-size: .92rem; }
.legal { border-top: 1px solid var(--line); padding: 14px 0; }
.legal:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.legal summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.legal .prose { padding-top: 12px; max-width: 46em; }
.legal .prose p { font-family: var(--sans); font-size: .92rem; }
.foot-about a { color: var(--ink); }

/* Schmal */
@media (max-width: 860px) {
  .hero, .section-head { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; gap: 10px; }
  .entry-img { order: -1; }
  .learn, .formats { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .nav { gap: 12px; font-size: .9rem; }
  .nav li:nth-child(1) { display: none; }
}

/* Externe Ziele auf den Laborbuch-Karten */
.entry-links { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.entry-links .more { font-size: .9rem; font-weight: 500; }

/* Externe Links auf Lab-Seiten */
.lab-links { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 12px; }

/* Hero über die volle Breite (Layout A, Anpassung 27.10.): Bild 1 hat den Freiraum links für den Text.
   Textfarben sind fest dunkel, weil der Freiraum im Bild in beiden Schemata hell ist (Helligkeit >= 230). */
.hero-full { position: relative; border-bottom: 1px solid var(--line); }
.hero-stage { position: relative; aspect-ratio: 16 / 9; max-height: 82vh; width: 100%; overflow: hidden; background: #E9E4DA; }
.hero-stage picture { display: contents; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.hero-overlay .wrap { width: 100%; }
.hero-text { max-width: min(600px, calc(44vw - max(var(--gut), (100vw - var(--wrap)) / 2 + var(--gut)))); pointer-events: auto; }
.hero-full .hero-text h1 { color: #1B1B1B; font-size: clamp(2rem, 3.2vw, 3.1rem); max-width: none; }
.hero-full .hero-text .lead { color: #1B1B1B; font-size: clamp(1rem, 1.2vw, 1.18rem); }
.hero-full .hero-text .kicker { color: #4F4B45; }
.hero-credit { color: var(--mute); font-size: .68rem; margin: 8px auto 0; padding-bottom: 8px; }
.hero-full .video-toggle { z-index: 2; }
@media (max-width: 1024px) {
  .hero-overlay { position: static; display: block; pointer-events: auto; padding: 32px 0 24px; }
  .hero-text { max-width: 40em; }
  .hero-full .hero-text h1, .hero-full .hero-text .lead { color: var(--ink); }
  .hero-full .hero-text .kicker { color: var(--mute); }
  .hero-full { display: flex; flex-direction: column; }
  .hero-full .hero-overlay { order: -1; }
  .hero-stage { max-height: none; }
  .hero-credit { align-self: stretch; }
}

