/* multilocal.life — Final Theme (Cinematic Paper Fusion)
   Lokale Fonts, 1440 max, dezente WOW-Motion. */

/* === LOCAL FONTS === */
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/EBGaramond-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/EBGaramond-500.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/EBGaramond-600.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/EBGaramond-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Caveat-400.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Caveat-500.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Caveat-600.woff2") format("woff2");
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.1vw, 1.2rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "onum";
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

/* === VARIABLEN === */
:root {
  --pp-bg:           #FAF7F1;
  --pp-bg-hi:        #F2EEE4;
  --pp-text:         #1F1B16;
  --pp-muted:        #6B635A;
  --pp-accent:       #8B5E3C;
  --pp-accent-2:     #5A6B3B;
  --pp-accent-3:     #C7724A;
  --pp-rule:         #E8E1D4;
  --ci-bg:           #0D0B08;
  --ci-bg-hi:        #1A1712;
  --ci-text:         #F7F2E8;
  --ci-muted:        #C5B89E;
  --ci-accent:       #E1A66C;
  --ci-accent-2:     #8EA169;
  --ci-accent-3:     #E09068;
  --ci-rule:         rgba(247,242,232,0.15);
  --bg:      var(--pp-bg);
  --bg-hi:   var(--pp-bg-hi);
  --text:    var(--pp-text);
  --muted:   var(--pp-muted);
  --accent:  var(--pp-accent);
  --accent-2:var(--pp-accent-2);
  --accent-3:var(--pp-accent-3);
  --rule:    var(--pp-rule);
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-1: 150ms;
  --dur-2: 300ms;
  --dur-3: 600ms;
  --dur-4: 1200ms;
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 1.5rem;
  --gap-lg: 2rem;
  --gap-xl: 3rem;
  --gap-2xl: 5rem;
  --gap-3xl: 8rem;
  --w-read: 45rem;
  --w-wide: 60rem;
  --w-max:  90rem; /* 1440px */
  --header-h: 76px;
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
}

/* === DARK INVERT === */
.dark {
  --bg:      var(--ci-bg);
  --bg-hi:   var(--ci-bg-hi);
  --text:    var(--ci-text);
  --muted:   var(--ci-muted);
  --accent:  var(--ci-accent);
  --accent-2:var(--ci-accent-2);
  --accent-3:var(--ci-accent-3);
  --rule:    var(--ci-rule);
  background: var(--ci-bg);
  color: var(--ci-text);
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === NOISE === */
.noise-bg { position: relative; }
.noise-bg::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.35 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  z-index: 0;
}
.dark .noise-bg::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.08;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; }
em, i { font-style: italic; color: var(--accent); font-weight: 400; }

p { max-width: 65ch; margin-bottom: 1.5rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.55; color: var(--text); }
.meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-block;
}
.caveat { font-family: "Caveat", cursive; font-weight: 500; }

blockquote, .pullquote {
  font-style: italic;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.3;
  color: var(--text);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 3px solid var(--accent);
  margin: var(--gap-xl) 0;
}

/* === LINKS === */
a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
  transition: text-decoration-color var(--dur-1) var(--easing), color var(--dur-1) var(--easing);
}
a:hover { text-decoration-color: var(--text); }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.25rem;
  font-size: 1.1rem;
  transition: border-color var(--dur-1) var(--easing);
}
.link-arrow::after { content: "→"; transition: transform var(--dur-2) var(--easing); color: var(--accent); }
.link-arrow:hover { border-color: var(--text); }
.link-arrow:hover::after { transform: translateX(5px); color: var(--text); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 28px;
  background: var(--accent-2);
  color: var(--pp-bg);
  font-family: "EB Garamond", serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--dur-2) var(--easing);
}
.btn:hover { background: #48572E; }
.dark .btn {
  background: transparent;
  color: var(--ci-text);
  border: 1px solid var(--ci-rule);
}
.dark .btn:hover { border-color: var(--ci-accent); background: rgba(247,242,232,0.06); }
.btn::after { content: "→"; color: var(--accent); }
.dark .btn::after { color: var(--ci-accent); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--text); background: var(--bg-hi); }

/* === HEADER (scroll-shrink subtle WOW) === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
  transition: padding var(--dur-2) var(--easing-out), background var(--dur-2) var(--easing), border-color var(--dur-2) var(--easing);
  min-height: 76px;
}
.site-header.is-scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  min-height: 60px;
}
.site-header.dark {
  background: color-mix(in srgb, var(--ci-bg) 78%, transparent);
  color: var(--ci-text);
  border-bottom-color: var(--ci-rule);
}
.site-header.dark.is-scrolled {
  background: color-mix(in srgb, var(--ci-bg) 92%, transparent);
}
.site-header .wordmark {
  font-family: "EB Garamond", serif;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: font-size var(--dur-2) var(--easing);
}
.site-header.is-scrolled .wordmark { font-size: 1.1rem; }
.site-header .wordmark .tld { color: var(--accent); font-style: italic; }
.dark .site-header .wordmark .tld, .site-header.dark .wordmark .tld { color: var(--ci-accent); }
.site-header nav ul { display: flex; gap: 2rem; list-style: none; }
.site-header nav a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--dur-1) var(--easing);
}
.site-header nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-2) var(--easing-out);
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a:hover::after { transform: scaleX(1); }
.site-header nav a.active { color: var(--text); }
.site-header nav a.active::after { transform: scaleX(1); background: var(--accent-2); height: 2px; }
.site-header .hamburger {
  display: none;
  width: 32px; height: 32px;
  position: relative;
}
.site-header .hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  position: absolute; left: 6px;
  transition: transform var(--dur-2) var(--easing), top var(--dur-2) var(--easing), opacity var(--dur-2) var(--easing);
}
.site-header .hamburger span:nth-child(1) { top: 10px; }
.site-header .hamburger span:nth-child(2) { top: 15px; }
.site-header .hamburger span:nth-child(3) { top: 20px; }
.site-header .hamburger[aria-expanded="true"] span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.site-header .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header .hamburger[aria-expanded="true"] span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .site-header { min-height: 60px; padding: 0.75rem 1.25rem; }
  .site-header .hamburger { display: block; z-index: 52; }
  .site-header nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: 100%;
    background: #FAF7F1;
    color: #1F1B16;
    padding: calc(var(--header-h) + 1.5rem) 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--dur-3) var(--easing);
    z-index: 51;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dark .site-header nav,
  body.dark .site-header nav {
    background: #0D0B08;
    color: #F7F2E8;
  }
  .site-header nav.open { transform: translateX(0); }
  .site-header nav ul {
    flex-direction: column; gap: 1.5rem; font-size: 1.5rem;
    align-items: flex-start;
  }
  .site-header nav a { color: inherit; }
  .site-header nav a.active {
    color: #8B5E3C;
    font-style: italic;
    font-weight: 500;
  }
  .dark .site-header nav a.active,
  body.dark .site-header nav a.active {
    color: #E1A66C;
  }

  /* When mobile menu is open: dissolve the sticky header chrome so the
     overlay feels full-screen. Logo + hamburger stay visible and clickable. */
  html.menu-open .site-header,
  html.menu-open .site-header.is-scrolled,
  html.menu-open .site-header.dark,
  html.menu-open .site-header.dark.is-scrolled {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html.menu-open .site-header .wordmark,
  html.menu-open .site-header .hamburger { position: relative; z-index: 52; }

  /* Overlay default (light): force logo + burger to ink, regardless of
     the header's scroll-based .dark state. .life stays sepia. */
  html.menu-open .site-header,
  html.menu-open .site-header.dark {
    color: #1F1B16;
  }
  html.menu-open .site-header .wordmark { color: #1F1B16; }
  html.menu-open .site-header .wordmark .tld,
  html.menu-open .site-header.dark .wordmark .tld { color: #8B5E3C; }

  /* Overlay on dark pages (body.dark): flip to cream + gold */
  html.menu-open body.dark .site-header,
  html.menu-open body.dark .site-header.dark { color: #F7F2E8; }
  html.menu-open body.dark .site-header .wordmark { color: #F7F2E8; }
  html.menu-open body.dark .site-header .wordmark .tld { color: #E1A66C; }
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--pp-bg);
  text-decoration: none;
  z-index: 100;
  transition: top var(--dur-2) var(--easing);
}
.skip-link:focus { top: 1rem; }

/* === MAIN === */
main { padding-top: var(--header-h); }

/* === SECTIONS === */
section {
  padding: clamp(4rem, 8vw, 8rem) 2rem;
  position: relative;
}
section .container {
  max-width: var(--w-max);
  margin: 0 auto;
}
section .read {
  max-width: var(--w-read);
  margin: 0 auto;
}
section .wide {
  max-width: var(--w-wide);
  margin: 0 auto;
}

/* === TORN PAPER EDGES — auf Sections direkt angewandt === */
/* Konzept: Die Section selbst (mit ihrem eigenen Bild, Noise, Farbe) wird per
   clip-path zerrissen. Die tatsächlich darunter liegende Section scheint durch,
   egal welche Farbe/welches Material sie hat. Keine separate Zunge mehr.
   Geclipped wird immer die DUNKLE Seite einer Grenze. */

.torn-bottom, .torn-top { position: relative; z-index: 2; }
.torn-bottom { padding-bottom: calc(var(--torn-pad, 5rem) + 70px) !important; margin-bottom: -50px; filter: drop-shadow(0 6px 14px rgba(13,11,8,0.22)); }
.torn-top    { padding-top:    calc(var(--torn-pad, 5rem) + 70px) !important; margin-top:    -50px; filter: drop-shadow(0 -6px 14px rgba(13,11,8,0.18)); }
.torn-bottom.torn-top { filter: drop-shadow(0 6px 14px rgba(13,11,8,0.20)) drop-shadow(0 -6px 14px rgba(13,11,8,0.16)); }

/* Torn-Bottom */
.torn-bottom {
  clip-path: polygon(
    0 0, 100% 0,
    100%                    calc(100% - 22px),
    97.5% calc(100% - 8px),  95% calc(100% - 42px), 92.5% calc(100% - 26px), 90% calc(100% - 32px),
    87.5% calc(100% - 14px), 85% calc(100% - 44px), 82.5% calc(100% - 46px), 80% calc(100% - 52px),
    77.5% calc(100% - 46px), 75% calc(100% - 54px), 72.5% calc(100% - 32px), 70% calc(100% - 42px),
    67.5% calc(100% - 28px), 65% calc(100% - 30px), 62.5% calc(100% - 42px), 60% calc(100% - 48px),
    57.5% calc(100% - 42px), 55% calc(100% - 52px), 52.5% calc(100% - 32px), 50% calc(100% - 48px),
    47.5% calc(100% - 48px), 45% calc(100% - 26px), 42.5% calc(100% - 40px), 40% calc(100% - 24px),
    37.5% calc(100% - 22px), 35% calc(100% - 34px), 32.5% calc(100% - 46px), 30% calc(100% - 50px),
    27.5% calc(100% - 46px), 25% calc(100% - 30px), 22.5% calc(100% - 38px), 20% calc(100% - 44px),
    17.5% calc(100% - 52px), 15% calc(100% - 42px), 12.5% calc(100% - 42px), 10% calc(100% - 50px),
    7.5% calc(100% - 46px), 5% calc(100% - 44px), 2.5% calc(100% - 42px),
    0                       calc(100% - 38px)
  );
}

/* Torn-Top */
.torn-top {
  clip-path: polygon(
    0                     38px,
    2.5% 42px,  5% 44px,  7.5% 46px,  10% 50px,  12.5% 42px,
    15% 42px,  17.5% 52px, 20% 44px, 22.5% 38px, 25% 30px,
    27.5% 46px, 30% 50px, 32.5% 46px, 35% 34px, 37.5% 22px,
    40% 24px,  42.5% 40px, 45% 26px, 47.5% 48px, 50% 48px,
    52.5% 32px, 55% 52px, 57.5% 42px, 60% 48px, 62.5% 42px,
    65% 30px,  67.5% 28px, 70% 42px, 72.5% 32px, 75% 54px,
    77.5% 46px, 80% 52px, 82.5% 46px, 85% 44px, 87.5% 14px,
    90% 32px,  92.5% 26px, 95% 42px, 97.5% 8px,
    100%                  22px,
    100% 100%, 0 100%
  );
}

/* Kombiniert: Dark-Section zwischen zwei Light-Sections */
.torn-top.torn-bottom {
  clip-path: polygon(
    0                     38px,
    2.5% 42px,  5% 44px,  7.5% 46px,  10% 50px,  12.5% 42px,
    15% 42px,  17.5% 52px, 20% 44px, 22.5% 38px, 25% 30px,
    27.5% 46px, 30% 50px, 32.5% 46px, 35% 34px, 37.5% 22px,
    40% 24px,  42.5% 40px, 45% 26px, 47.5% 48px, 50% 48px,
    52.5% 32px, 55% 52px, 57.5% 42px, 60% 48px, 62.5% 42px,
    65% 30px,  67.5% 28px, 70% 42px, 72.5% 32px, 75% 54px,
    77.5% 46px, 80% 52px, 82.5% 46px, 85% 44px, 87.5% 14px,
    90% 32px,  92.5% 26px, 95% 42px, 97.5% 8px,
    100%                  22px,
    100%                    calc(100% - 22px),
    97.5% calc(100% - 8px),  95% calc(100% - 42px), 92.5% calc(100% - 26px), 90% calc(100% - 32px),
    87.5% calc(100% - 14px), 85% calc(100% - 44px), 82.5% calc(100% - 46px), 80% calc(100% - 52px),
    77.5% calc(100% - 46px), 75% calc(100% - 54px), 72.5% calc(100% - 32px), 70% calc(100% - 42px),
    67.5% calc(100% - 28px), 65% calc(100% - 30px), 62.5% calc(100% - 42px), 60% calc(100% - 48px),
    57.5% calc(100% - 42px), 55% calc(100% - 52px), 52.5% calc(100% - 32px), 50% calc(100% - 48px),
    47.5% calc(100% - 48px), 45% calc(100% - 26px), 42.5% calc(100% - 40px), 40% calc(100% - 24px),
    37.5% calc(100% - 22px), 35% calc(100% - 34px), 32.5% calc(100% - 46px), 30% calc(100% - 50px),
    27.5% calc(100% - 46px), 25% calc(100% - 30px), 22.5% calc(100% - 38px), 20% calc(100% - 44px),
    17.5% calc(100% - 52px), 15% calc(100% - 42px), 12.5% calc(100% - 42px), 10% calc(100% - 50px),
    7.5% calc(100% - 46px), 5% calc(100% - 44px), 2.5% calc(100% - 42px),
    0                       calc(100% - 38px)
  );
}

@media (max-width: 900px) {
  .torn-bottom { padding-bottom: calc(var(--torn-pad, 4rem) + 40px) !important; margin-bottom: -30px; }
  .torn-top    { padding-top:    calc(var(--torn-pad, 4rem) + 40px) !important; margin-top:    -30px; }
  .torn-bottom {
    clip-path: polygon(
      0 0, 100% 0,
      100% calc(100% - 14px),
      95%  calc(100% - 30px),  90% calc(100% - 16px), 85% calc(100% - 30px), 80% calc(100% - 36px),
      75%  calc(100% - 30px),  70% calc(100% - 26px), 65% calc(100% - 32px), 60% calc(100% - 28px),
      55%  calc(100% - 34px),  50% calc(100% - 22px), 45% calc(100% - 32px), 40% calc(100% - 16px),
      35%  calc(100% - 24px),  30% calc(100% - 34px), 25% calc(100% - 20px), 20% calc(100% - 30px),
      15%  calc(100% - 26px),  10% calc(100% - 32px), 5%  calc(100% - 30px),
      0                        calc(100% - 22px)
    );
  }
  .torn-top {
    clip-path: polygon(
      0 22px,
      5% 30px, 10% 32px, 15% 26px, 20% 30px, 25% 20px, 30% 34px, 35% 24px,
      40% 16px, 45% 32px, 50% 22px, 55% 34px, 60% 28px, 65% 32px, 70% 26px,
      75% 30px, 80% 36px, 85% 30px, 90% 16px, 95% 30px,
      100% 14px,
      100% 100%, 0 100%
    );
  }
}

/* === HERO with subtle parallax === */
.hero {
  min-height: 92vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
}
.hero.dark { background: var(--ci-bg); color: var(--ci-text); }
.hero .backdrop {
  position: absolute; inset: 0;
  background: center/cover no-repeat;
  transform: scale(1.04);
  animation: kenburns 30s ease-in-out infinite alternate;
  filter: saturate(0.88) contrast(1.03);
  z-index: 0;
  will-change: transform;
}
@keyframes kenburns { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero.dark .backdrop { filter: saturate(0.55) brightness(0.5) contrast(1.08); }
.hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,11,8,0.55) 0%, rgba(13,11,8,0.2) 40%, rgba(13,11,8,0.9) 100%);
  z-index: 1;
}
.hero .grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
  z-index: 2;
}
.hero .content {
  position: relative;
  z-index: 3;
  max-width: var(--w-max);
  width: 100%;
  margin: 0 auto;
}

/* === PAPER CARD === */
.paper-card {
  background: var(--bg-hi);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 3px 4px 0 var(--rule), 0 30px 50px -40px rgba(31,27,22,0.2);
  position: relative;
  transition: transform var(--dur-3) var(--easing), box-shadow var(--dur-3) var(--easing);
}
.paper-card.rotate-minus { transform: rotate(-0.8deg); }
.paper-card.rotate-plus { transform: rotate(0.7deg); }
.paper-card:hover { transform: rotate(0) translateY(-4px); }
.paper-card .stamp {
  position: absolute;
  top: -14px; right: -14px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--pp-bg);
  display: grid; place-items: center;
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  border: 1px dashed var(--pp-bg);
  box-shadow: inset 0 0 0 2px var(--accent);
}

/* === REVEAL + subtle float === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-3) var(--easing-out), transform var(--dur-3) var(--easing-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }
.reveal.delay-5 { transition-delay: 400ms; }

/* === Image mask-reveal (WOW subtle) === */
.mask-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1200ms var(--easing-out);
}
.mask-reveal.is-visible { clip-path: inset(0 0 0 0); }

/* === Pull-quote gentle float === */
.pullquote-float {
  animation: gentle-float 12s ease-in-out infinite alternate;
}
@keyframes gentle-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

/* === FOOTER === */
.site-footer {
  background: var(--pp-bg-hi);
  border-top: 1px solid var(--pp-rule);
  padding: clamp(3rem, 6vw, 5rem) 2rem 2.5rem;
  color: var(--pp-text);
}
.site-footer .container {
  max-width: var(--w-max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 3fr 2fr; gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .site-footer .container { grid-template-columns: 1fr; gap: 2rem; }
}
.site-footer .wordmark {
  font-family: "EB Garamond", serif;
  font-size: 1.5rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--pp-text);
}
.site-footer .wordmark .tld { color: var(--pp-accent); font-style: italic; }
.site-footer .tagline {
  font-style: italic;
  color: var(--pp-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.site-footer nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  font-size: 0.95rem;
}
.site-footer nav a {
  text-decoration: none;
  color: var(--pp-muted);
  padding: 0.2rem 0;
  display: inline-block;
  transition: color var(--dur-1) var(--easing);
}
.site-footer nav a:hover { color: var(--pp-text); }
.site-footer .meta-block {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pp-muted);
  line-height: 1.8;
}
.site-footer .open-source {
  font-family: "Caveat", cursive;
  font-size: 1.15rem;
  color: var(--pp-accent);
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0.5rem;
}
.site-footer .legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--pp-rule);
  padding-top: 1.5rem;
  margin-top: 1rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--pp-muted);
}

/* === UTILITY === */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* === NO-JS FALLBACK === */
html.no-js .reveal { opacity: 1; transform: none; }
html.no-js .mask-reveal { clip-path: none; }
html.no-js [data-step]:not([data-step-always-hidden]) { display: block !important; }
html.no-js .toc, html.no-js .toc-mobile-btn { display: none !important; }

/* === TABLE OF CONTENTS === */
/* Desktop: vertikale Dots mit slide-in Label, fixed rechts */
.toc {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 0;
}
.toc a {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding: 2px 0;
  border: 0;
}
.toc a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.toc a .label {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--dur-2) var(--easing-out), transform var(--dur-2) var(--easing-out);
  pointer-events: none;
  padding: 5px 12px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 2px;
  color: var(--text);
  line-height: 1.2;
}
.toc a .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.35;
  transition: transform var(--dur-2) var(--easing-out), background var(--dur-2) var(--easing), opacity var(--dur-2) var(--easing), box-shadow var(--dur-2) var(--easing);
  flex-shrink: 0;
}
.toc a:hover .dot,
.toc a:focus-visible .dot {
  opacity: 1;
  transform: scale(1.5);
  background: var(--accent);
}
.toc a.active .dot {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.75);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.toc a:hover .label,
.toc a:focus-visible .label,
.toc a.active .label {
  opacity: 1;
  transform: translateX(0);
}
.toc a.active .label {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  color: var(--text);
}

/* Body-Klasse toc-dark wird via JS gesetzt wenn current Section dunkel ist */
body.toc-dark .toc a .dot { background: var(--ci-muted); }
body.toc-dark .toc a.active .dot {
  background: var(--ci-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ci-accent) 22%, transparent);
}
body.toc-dark .toc a .label {
  background: color-mix(in srgb, var(--ci-bg) 88%, transparent);
  color: var(--ci-text);
}

/* Mobile: Floating-Button + Slide-up Drawer */
.toc-mobile-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 42;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--pp-accent);
  color: var(--pp-bg);
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(31,27,22,0.35);
  transition: transform var(--dur-2) var(--easing-out), background var(--dur-2) var(--easing);
}
.toc-mobile-btn:active { transform: scale(0.95); }
.toc-mobile-btn svg { width: 22px; height: 22px; }
.toc-mobile-btn:focus-visible { outline: 3px solid var(--pp-text); outline-offset: 2px; }

.toc-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(13,11,8,0.35);
  backdrop-filter: blur(4px);
  z-index: 42;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--easing);
}
.toc-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.toc-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 43;
  background: var(--pp-bg);
  padding: 1.5rem 1.5rem 2rem;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 40px -12px rgba(31,27,22,0.2);
  transform: translateY(100%);
  transition: transform 420ms var(--easing-out);
  max-height: 76vh;
  overflow-y: auto;
}
.toc-drawer.open { transform: translateY(0); }
.toc-drawer .grip {
  width: 40px; height: 4px;
  background: var(--pp-rule);
  border-radius: 999px;
  margin: 0 auto 1rem;
}
.toc-drawer h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--pp-muted);
  margin-bottom: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.toc-drawer ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}
.toc-drawer ol li {
  border-bottom: 1px solid var(--pp-rule);
  counter-increment: toc;
}
.toc-drawer ol li:last-child { border-bottom: 0; }
.toc-drawer ol a {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  text-decoration: none;
  color: var(--pp-text);
  font-size: 1.05rem;
  line-height: 1.35;
}
.toc-drawer ol a::before {
  content: counter(toc, upper-roman) ".";
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  color: var(--pp-accent);
  font-size: 0.85rem;
  min-width: 2rem;
  flex-shrink: 0;
}
.toc-drawer ol a.active { color: var(--pp-accent); }

@media (max-width: 900px) {
  .toc { display: none; }
  .toc-mobile-btn { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .toc a .label, .toc a .dot, .toc-drawer, .toc-drawer-backdrop { transition: none !important; }
}
