/* ─────────────────────────────────────────────────────────────
   hsaau — Chroniken nächtlicher Kultur
   Cathedral of Shadows · Editorial Gothic
   ───────────────────────────────────────────────────────────── */

:root,
[data-theme="cathedral"] {
  /* ── I · Cathedral of Shadows (default)
     Kühles Nachtschwarz, Knochen-Weiß, Kupfer-Patina-Akzent.
     Editorial-gotisch. Cormorant + UnifrakturCook + IBM Plex Mono. */
  --ink:       #0a0a0b;
  --ink-2:     #111113;
  --stone:     #1c1b1a;
  --stone-2:   #2a2826;
  --stone-3:   #3a3632;
  --bone:      #e8e1d0;
  --bone-dim:  #a8a193;
  --bone-soft: #78726a;
  --patina:    #8ea88a;
  --patina-dim:#5d6e5a;
  --rust:      #a6452f;
  --gilt:      #b79b5b;

  --rule: rgba(232, 225, 208, 0.12);
  --rule-soft: rgba(232, 225, 208, 0.06);

  --grain-opacity: 0.06;
  --grain-blend: overlay;
  --vignette: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  --body-tint: radial-gradient(ellipse 80vw 60vh at 50% -10%, rgba(142, 168, 138, 0.06), transparent 60%),
               radial-gradient(ellipse 60vw 40vh at 100% 100%, rgba(166, 69, 47, 0.04), transparent 60%);

  --display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --body:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sc:      'Cormorant SC', 'Cormorant Garamond', serif;
  --fraktur: 'UnifrakturCook', 'UnifrakturMaguntia', serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  --display-weight: 300;
  --display-letter: 0.01em;

  --surface-blur: rgba(10, 10, 11, 0.72);
  --surface-blur-strong: rgba(10, 10, 11, 0.96);
  --wordmark-shadow: 0 1px 0 rgba(0,0,0,0.6), 0 -1px 0 rgba(232, 225, 208, 0.08);

  --bat-svg:      url("../svg/bat1a.svg");
  --bat-svg-mask: url("../svg/bat1a.svg");
  --bat-wing:     url("../svg/bat1b.svg");
  --bat-large:    url("../svg/bat1c.svg");
}

/* ── II · Pergament & Eisen
   Warmes Pergament-Papier, Eisen-Schrift, rubrizierter Rot-Akzent,
   oxidiertes Grün als Gegenton. Antiquarische Buchanmutung.
   EB Garamond + UnifrakturCook + IBM Plex Mono. */
[data-theme="pergament"] {
  --ink:       #ede3c9;
  --ink-2:     #e1d4b3;
  --stone:     #c8b693;
  --stone-2:   #aa9c7b;
  --stone-3:   #8b7d60;
  --bone:      #1e1814;
  --bone-dim:  #4a3e31;
  --bone-soft: #6e5f4b;
  --patina:    #7d1815;
  --patina-dim:#5e1310;
  --rust:      #4a5e34;
  --gilt:      #8a6a32;

  --rule: rgba(30, 24, 20, 0.2);
  --rule-soft: rgba(30, 24, 20, 0.08);

  --grain-opacity: 0.09;
  --grain-blend: multiply;
  --vignette: radial-gradient(ellipse at center, transparent 40%, rgba(80, 50, 20, 0.22) 100%);
  --body-tint: radial-gradient(ellipse 80vw 60vh at 50% -10%, rgba(125, 24, 21, 0.04), transparent 60%),
               radial-gradient(ellipse 60vw 40vh at 100% 100%, rgba(140, 110, 50, 0.05), transparent 60%);

  --display: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --body:    'EB Garamond', Georgia, 'Times New Roman', serif;
  --sc:      'EB Garamond', 'Cormorant SC', serif;
  --fraktur: 'UnifrakturCook', 'UnifrakturMaguntia', serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;
  --display-weight: 400;
  --display-letter: 0;

  --surface-blur: rgba(237, 227, 201, 0.82);
  --surface-blur-strong: rgba(237, 227, 201, 0.96);
  --wordmark-shadow: 0 1px 0 rgba(255, 250, 232, 0.5), 0 -1px 0 rgba(30, 24, 20, 0.1);

  /* --bat-svg / --bat-wing / --bat-large inherited from :root */
}

/* ── Universal tokens (layout + scale, same across all themes) ── */
:root {
  --step--2: clamp(0.68rem, 0.66rem + 0.1vw, 0.74rem);
  --step--1: clamp(0.82rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(0.98rem, 0.95rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.18rem, 1.10rem + 0.4vw, 1.42rem);
  --step-2:  clamp(1.48rem, 1.32rem + 0.8vw, 1.90rem);
  --step-3:  clamp(1.92rem, 1.60rem + 1.6vw, 2.80rem);
  --step-4:  clamp(2.60rem, 2.00rem + 3.0vw, 4.40rem);
  --step-5:  clamp(3.80rem, 2.40rem + 7.0vw, 8.80rem);

  --gutter: clamp(1.25rem, 3vw, 3rem);
  --page-max: 1320px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

html {
  background: var(--ink);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.005em;
  background: var(--body-tint, none), var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background 0.6s ease, color 0.6s ease;
}

html { transition: background 0.6s ease; }

/* ─── Grain overlay — old photography feel ─────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: var(--grain-opacity, 0.06);
  mix-blend-mode: var(--grain-blend, overlay);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  transition: opacity 0.6s ease;
}

/* Vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  background: var(--vignette, radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%));
  transition: background 0.6s ease;
}

/* ─── Typography ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1em; }

em, i { font-style: italic; color: var(--bone); }

.smallcaps {
  font-family: var(--sc), var(--display);
  font-variant: small-caps;
  font-feature-settings: "smcp" on;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

.fraktur {
  font-family: var(--fraktur);
  font-weight: 400;
}

.mono {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--patina);
  font-weight: 400;
}

.dim { color: var(--bone-dim); }

/* ─── Layout helpers ────────────────────────────────────── */
.shell {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0;
}

.rule-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--bone-soft);
  margin: 2.5rem 0;
}
.rule-ornament::before, .rule-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.rule-ornament span {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--patina);
}

/* ─── Site header / navigation ──────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  background: var(--surface-blur);
  border-bottom: 1px solid var(--rule);
  transition: background 0.6s ease, border-color 0.6s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  color: var(--bone);
  text-transform: uppercase;
}
.brand__monogram {
  font-family: var(--fraktur);
  font-size: 2rem;
  line-height: 1;
  color: var(--patina);
  letter-spacing: 0;
  transform: translateY(0.1em);
}
.brand__tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--bone-soft);
  text-transform: uppercase;
  padding-left: 0.8rem;
  border-left: 1px solid var(--rule);
  margin-left: 0.2rem;
}

.nav {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav a {
  position: relative;
  font-family: var(--sc), var(--display);
  font-variant: small-caps;
  letter-spacing: 0.22em;
  font-size: 0.94rem;
  color: var(--bone-dim);
  padding: 0.4rem 0;
  transition: color 0.5s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--patina);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--bone);
}
.nav a:hover::after, .nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--bone);
  border: 1px solid var(--rule);
  transition: color 0.4s, border-color 0.4s, background 0.4s;
}
.nav-toggle svg { width: 26px; height: 26px; stroke-width: 2; }
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  color: var(--patina);
  border-color: var(--patina);
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    /* .site-header uses backdrop-filter, which makes it the containing block
       for fixed descendants — hence explicit sizing. We hide via opacity +
       visibility rather than a percentage transform, because translateY(-120%)
       is a percentage of the nav *box* and leaves overflowing items visible
       at short viewports. */
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    overflow-y: auto;
    flex-direction: column;
    background: var(--surface-blur-strong);
    backdrop-filter: blur(18px);
    padding: 2rem var(--gutter);
    gap: 1.4rem;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-1rem);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0s linear 0.4s;
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0s;
  }
  .nav a { font-size: 1.2rem; }
  .brand__tag { display: none; }
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  padding-block: clamp(4rem, 10vh, 8rem) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
/* Extra inset inside the hero frame so content doesn't kiss the border. */
.hero > .shell {
  padding-inline: calc(var(--gutter) + 1.25rem);
}

.hero__frame {
  position: absolute;
  inset: 2rem var(--gutter);
  border: 1px solid var(--rule);
  pointer-events: none;
}
.hero__frame::before, .hero__frame::after {
  content: "";
  position: absolute;
  background-color: var(--patina);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain;    mask-size: contain;
}
.hero__frame::before {
  top: -0.8rem; left: 50%; transform: translateX(-50%);
  width: 1.6rem; height: 1.2rem;
  -webkit-mask-image: var(--bat-svg);
          mask-image: var(--bat-svg);
}
.hero__frame::after {
  bottom: -0.6rem; left: 50%; transform: translateX(-50%);
  width: 3.2rem; height: 1.2rem;
  -webkit-mask-image: var(--bat-wing);
          mask-image: var(--bat-wing);
}

/* Bat icons — three variants share the same mask recipe. */
.ico-bat, .ico-bat-wing, .ico-bat-large {
  display: inline-block;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain;    mask-size: contain;
}
.ico-bat {
  width: 1.2em; height: 0.9em;
  -webkit-mask-image: var(--bat-svg-mask);
          mask-image: var(--bat-svg-mask);
}
.ico-bat-wing {
  width: 2.7em; height: 1em;
  -webkit-mask-image: var(--bat-wing);
          mask-image: var(--bat-wing);
}
.ico-bat-large {
  width: 1.8em; height: 1em;
  -webkit-mask-image: var(--bat-large);
          mask-image: var(--bat-large);
}

.hero__meta {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.5em;
  color: var(--patina);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: reveal-up 1.6s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero__wordmark {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(4rem, 16vw, 13rem);
  line-height: 0.9;
  letter-spacing: 0.16em;
  color: var(--bone);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  text-shadow: var(--wordmark-shadow);
  margin: 0;
}
.hero__wordmark span {
  display: inline-block;
  opacity: 0;
  animation: reveal-up 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero__wordmark span:nth-child(1) { animation-delay: 0.5s; }
.hero__wordmark span:nth-child(2) { animation-delay: 0.6s; }
.hero__wordmark span:nth-child(3) { animation-delay: 0.7s; }
.hero__wordmark span:nth-child(4) { animation-delay: 0.8s; }
.hero__wordmark span:nth-child(5) { animation-delay: 0.9s; }

/* Banner variant: the SVG sigil as hero mark instead of the spaced-out wordmark. */
.hero__wordmark--banner {
  display: block;
  width: min(100%, 56rem);
  aspect-ratio: 4 / 1;
  margin: 0 auto;
  background-color: var(--bone);
  -webkit-mask-image: url("../svg/hsaaubanner.svg");
          mask-image: url("../svg/hsaaubanner.svg");
  -webkit-mask-size: contain;    mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  /* hide the accessibility text label */
  font-size: 0;
  line-height: 0;
  color: transparent;
  text-shadow: none;
  opacity: 0;
  animation: reveal-up 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

.hero__tagline {
  margin-top: 2rem;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--bone-dim);
  letter-spacing: 0.04em;
  max-width: min(38ch, 100%);
  margin-inline: auto;
  opacity: 0;
  animation: reveal-up 1.6s 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  overflow-wrap: break-word;
}

.hero__subtag {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  max-width: 100%;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--patina);
  opacity: 0;
  animation: reveal-up 1.6s 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@media (max-width: 480px) {
  .hero__subtag {
    letter-spacing: 0.25em;
    gap: 0.7rem;
  }
}
.hero__subtag .dot {
  width: 4px; height: 4px;
  background: var(--patina);
  border-radius: 50%;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bone-soft);
  opacity: 0;
  animation: reveal-up 1.6s 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--patina), transparent);
  animation: pulse-line 3s ease-in-out infinite;
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(1rem); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ─── Sections ──────────────────────────────────────────── */
section {
  padding-block: clamp(4rem, 10vh, 8rem);
  position: relative;
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 3rem;
  color: var(--patina);
}
.section-label__num {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.2em;
}
.section-label__title {
  font-family: var(--sc), var(--display);
  font-variant: small-caps;
  letter-spacing: 0.3em;
  font-size: var(--step-0);
  color: var(--bone);
}
.section-label::before {
  content: "";
  width: 3rem;
  height: 1px;
  background: var(--patina);
  transform: translateY(-0.3em);
}

/* ─── Manifest section ──────────────────────────────────── */
.manifest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) {
  .manifest { grid-template-columns: 1fr; }
}

.manifest__prose {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--bone);
  max-width: 42ch;
}
.manifest__prose p:first-of-type::first-letter {
  font-family: var(--fraktur);
  font-size: 4.5em;
  float: left;
  line-height: 0.85;
  padding-right: 0.12em;
  padding-top: 0.08em;
  color: var(--patina);
}

.manifest__aside {
  font-family: var(--mono);
  font-size: var(--step--1);
  line-height: 2;
  color: var(--bone-dim);
  border-left: 1px solid var(--rule);
  padding-left: 2rem;
}
.manifest__aside dt {
  color: var(--patina);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: var(--step--2);
  margin-top: 1.5rem;
}
.manifest__aside dt:first-child { margin-top: 0; }
.manifest__aside dd {
  margin: 0.2rem 0 0;
  color: var(--bone);
}

/* ─── Chapters grid ─────────────────────────────────────── */
.chapters {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2rem;
}
.chapter {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--ink);
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.8s ease, color 0.5s ease;
  overflow: hidden;
}
.chapter:hover {
  background: var(--ink-2);
}
.chapter:hover .chapter__arrow {
  transform: translateX(0.5rem);
  color: var(--patina);
}

/* Asymmetric layout */
.chapter:nth-child(1) { grid-column: span 7; }
.chapter:nth-child(2) { grid-column: span 5; }
.chapter:nth-child(3) { grid-column: span 5; }
.chapter:nth-child(4) { grid-column: span 7; }

@media (max-width: 820px) {
  .chapter { grid-column: span 12 !important; }
}

.chapter__num {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.3em;
  color: var(--patina);
}
.chapter__title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  margin: 1.5rem 0 1rem;
  color: var(--bone);
  font-weight: 300;
  letter-spacing: 0.01em;
}
.chapter__desc {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-0);
  color: var(--bone-dim);
  max-width: 38ch;
  line-height: 1.5;
}
.chapter__arrow {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.3em;
  color: var(--bone-soft);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), color 0.5s ease;
}
.chapter__arrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.chapter__ornament {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--patina-dim);
  opacity: 0.6;
}

/* ─── Chronik — year archive timeline ───────────────────── */
.chronik {
  padding-top: clamp(3rem, 8vh, 6rem);
}
.chronik__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.chronik__year {
  position: relative;
  padding: 1.8rem 1rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  font-family: var(--display);
  transition: background 0.6s ease, color 0.5s ease;
  color: var(--bone-dim);
}
.chronik__year:hover {
  background: var(--stone);
  color: var(--bone);
}
.chronik__year:hover .chronik__decor { color: var(--patina); }
.chronik__year .num {
  display: block;
  font-size: var(--step-2);
  letter-spacing: 0.05em;
  line-height: 1;
  font-weight: 300;
}
.chronik__year .label {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone-soft);
}
.chronik__decor {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--stone-3);
  transition: color 0.5s ease;
}

/* ─── Links — social catalogue ─────────────────────── */
.praesentia {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) {
  .praesentia { grid-template-columns: 1fr; }
}

.praesentia__intro {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--bone);
  line-height: 1.35;
  max-width: 20ch;
}

.catalogue {
  border-top: 1px solid var(--rule);
}
.catalogue__item {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto 2rem;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--bone);
  transition: color 0.5s ease, padding-left 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.6s ease;
}
.catalogue__item:hover {
  color: var(--bone);
  padding-left: 1rem;
  background: linear-gradient(90deg, rgba(142, 168, 138, 0.05), transparent 80%);
}
.catalogue__item:hover .catalogue__arrow { transform: translateX(0.4rem); color: var(--patina); }
.catalogue__num {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--patina);
  letter-spacing: 0.2em;
}
.catalogue__title {
  font-family: var(--display);
  font-size: var(--step-2);
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.catalogue__title em {
  font-family: var(--sc), var(--display);
  font-variant: small-caps;
  font-style: normal;
  font-size: 0.6em;
  letter-spacing: 0.25em;
  color: var(--bone-soft);
  margin-left: 0.8rem;
}
.catalogue__tag {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-soft);
}
.catalogue__arrow {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--bone-soft);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), color 0.5s ease;
}

/* ─── Archive stats (fotos year-index) ──────────────────── */
.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 640px) { .archive-stats { grid-template-columns: 1fr; } }
.archive-stats > div {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink);
  text-align: center;
}
.archive-stats .eyebrow { margin-bottom: 1rem; }
.archive-stats__num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--bone);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.archive-stats__label {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-soft);
}

/* ─── Year grid (fotos.html) ────────────────────────────── */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 1.5rem;
}
.year-card {
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
  background: var(--ink);
  text-align: center;
  transition: background 0.6s, color 0.5s;
  position: relative;
}
.year-card:hover {
  background: var(--ink-2);
}
.year-card:hover .year-card__num {
  color: var(--patina);
  letter-spacing: 0.08em;
}
.year-card__num {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1;
  color: var(--bone);
  letter-spacing: 0.05em;
  transition: color 0.5s, letter-spacing 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.year-card__roman {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--patina-dim);
}
.year-card__meta {
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  color: var(--bone-soft);
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

/* ─── Event grid (per-year page) ────────────────────────── */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.event-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.5s;
}
.event-card:hover {
  transform: translateY(-3px);
  border-color: var(--patina-dim);
}
.event-card:hover .event-card__title { color: var(--patina); }
.event-card__cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
  position: relative;
}
.event-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,11,0.5) 100%);
  pointer-events: none;
}
.event-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) contrast(0.95) brightness(0.9);
  transition: filter 0.8s ease, transform 1.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.event-card:hover .event-card__cover img {
  filter: grayscale(0%) contrast(1) brightness(1);
  transform: scale(1.04);
}
.event-card__body {
  padding: 1.2rem 1.4rem 1.4rem;
  border-top: 1px solid var(--rule);
}
.event-card__title {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.25;
  color: var(--bone);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
  transition: color 0.5s;
}
.event-card__meta {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone-soft);
}

/* ─── Photo grid (per-event page) ───────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.photo {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--stone);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.88);
  transition: filter 0.7s ease, transform 1.1s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* On phones show thumbs at full viewport width in natural aspect ratio —
   source thumbs are only 120–160px, so the 1:1 crop + 2-col grid made
   them feel tiny. One big column per row reads better and avoids
   cropping portrait shots awkwardly. */
@media (max-width: 560px) {
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .photo { aspect-ratio: auto; }
  .photo img { height: auto; }
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.5s;
  pointer-events: none;
}
.photo:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.06);
}
.photo:hover::after {
  border-color: var(--patina);
}

/* ─── Grabskulptur page ─────────────────────────────────── */
.skulptur-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: 2rem;
}
@media (max-width: 820px) {
  .skulptur-feature { grid-template-columns: 1fr; }
}

.skulptur-feature__img {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone);
  border: 1px solid var(--rule);
  transition: border-color 0.6s;
}
.skulptur-feature__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%) brightness(0.95);
  transition: filter 0.8s ease, transform 1.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.skulptur-feature__img:hover {
  border-color: var(--patina);
}
.skulptur-feature__img:hover img {
  filter: none;
  transform: scale(1.03);
}
.skulptur-feature__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.4rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone);
  background: linear-gradient(180deg, transparent, rgba(10,10,11,0.85));
  pointer-events: none;
}

.skulptur-feature__text {
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--bone);
}
.skulptur-feature__text p { margin-bottom: 1.3em; }

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--stone);
  border: 1px solid var(--rule);
  margin-top: 1rem;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.credit-card {
  margin-top: 3rem;
  padding: 1.5rem clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--rule);
  background: var(--ink-2);
  max-width: 28rem;
}
.credit-card .eyebrow { margin-bottom: 0.8rem; }
.credit-card__inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--bone);
  transition: color 0.4s;
}
.credit-card__inner img {
  max-width: 96px;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--bone);
  padding: 0.4rem;
}
.credit-card__name {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 400;
  margin-bottom: 0.2rem;
}
.credit-card__domain {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone-soft);
}
.credit-card__inner:hover .credit-card__name { color: var(--patina); }

.huge-link {
  display: grid;
  grid-template-columns: 3rem 1fr auto 2rem;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--bone);
  transition: padding-left 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.5s, color 0.4s;
}
.huge-link:first-child { border-top: 1px solid var(--rule); }
.huge-link:hover {
  padding-left: 1.2rem;
  background: linear-gradient(90deg, rgba(142,168,138,0.06), transparent 75%);
}
.huge-link:hover .huge-link__arrow { transform: translateX(0.5rem); color: var(--patina); }
.huge-link:hover .huge-link__title { color: var(--patina); }
.huge-link__num {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--patina);
}
.huge-link__title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: color 0.4s;
}
.huge-link__date {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone-soft);
  text-align: right;
}
.huge-link__arrow {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--bone-soft);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), color 0.5s;
}

.rights-card {
  border: 1px solid var(--rule);
  background: var(--ink-2);
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 68ch;
  margin: 0 auto;
  font-family: var(--display);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--bone-dim);
}
.rights-card .eyebrow { margin-bottom: 1.2rem; }
.rights-card p { margin-bottom: 0.8em; }
.rights-card strong { color: var(--bone); font-weight: 500; }

.prose-link {
  color: var(--patina);
  border-bottom: 1px solid var(--patina-dim);
  transition: color 0.4s, border-color 0.4s;
}
.prose-link:hover {
  color: var(--bone);
  border-bottom-color: var(--bone);
}

.btn-ghost {
  display: inline-block;
  font-family: var(--sc), var(--display);
  font-variant: small-caps;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--patina);
  color: var(--patina);
  transition: background 0.5s, color 0.5s, letter-spacing 0.5s;
}
.btn-ghost:hover {
  background: var(--patina);
  color: var(--ink);
  letter-spacing: 0.36em;
}

/* ─── Lightbox overlay ──────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 6, 0.97);
  backdrop-filter: blur(22px) saturate(110%);
  -webkit-backdrop-filter: blur(22px) saturate(110%);
  display: grid;
  /* minmax(0, 1fr) — plain `1fr` resolves to minmax(auto, 1fr), and the auto
     min forces the track to be at least the natural image size. With tall or
     wide source photos that pushed the image past the viewport edge. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  padding: clamp(3rem, 6vh, 5rem) clamp(4rem, 8vw, 6rem) clamp(1rem, 3vh, 2rem);
  animation: lightbox-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.lightbox[hidden] { display: none; }

@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--patina);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  transition: opacity 0.35s ease;
  animation: lightbox-img-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
  /* width/height are set inline by main.js so the box exactly matches the
     painted image (border hugs the photo, not the letterbox area), and the
     image is scaled UP to fill the stage while preserving aspect ratio. */
}
/* During upgrade-loading we keep the thumb visible and dim it slightly so
   the spinner reads over it, rather than hiding the image entirely — that
   way a silently-blocked full-size fetch still leaves a visible thumb. */
.lightbox.is-loading .lightbox__img { opacity: 0.55; }
.lightbox__img:not([src]) { opacity: 0; }

@keyframes lightbox-img-in {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox__spinner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-top-color: var(--patina);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.is-loading .lightbox__spinner {
  opacity: 1;
  animation: lightbox-spin 1s linear infinite;
}
@keyframes lightbox-spin { to { transform: rotate(360deg); } }

.lightbox__caption {
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-align: center;
  user-select: none;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(20, 20, 22, 0.7);
  border: 1px solid var(--rule);
  color: var(--bone);
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s, opacity 0.35s;
  z-index: 2;
}
.lightbox__close:hover,
.lightbox__prev:not([disabled]):hover,
.lightbox__next:not([disabled]):hover {
  background: var(--ink);
  border-color: var(--patina);
  color: var(--patina);
}
.lightbox__prev[disabled],
.lightbox__next[disabled] {
  opacity: 0.25;
  cursor: not-allowed;
}
.lightbox__close { top: 1.2rem; right: 1.2rem; font-size: 1.2rem; }
.lightbox__prev  { left: 1.2rem;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1.2rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox { padding: 3.5rem 0.5rem 3rem; }
  .lightbox__close,
  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .lightbox__close { top: 0.5rem; right: 0.5rem; font-size: 1rem; }
  .lightbox__prev  { left: 0.4rem; }
  .lightbox__next  { right: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__img { animation: none; }
}

/* ─── Old placeholder gallery (kept for compat) ─────────── */
.gallery-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}
@media (max-width: 820px) { .gallery-head { grid-template-columns: 1fr; } }

.year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  border: 1px solid var(--rule);
  padding: 0.4rem;
  max-width: 100%;
  overflow-x: auto;
}
.year-filter button {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  padding: 0.5rem 0.9rem;
  border: 1px solid transparent;
  transition: color 0.4s, border-color 0.4s, background 0.4s;
  white-space: nowrap;
}
.year-filter button:hover { color: var(--bone); }
.year-filter button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--patina);
  border-color: var(--patina);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.plate {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone);
  border: 1px solid var(--rule);
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1), border-color 0.5s;
}
.plate:hover {
  transform: translateY(-4px);
  border-color: var(--patina-dim);
}
.plate.is-hidden { display: none; }
.plate__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--bone-soft);
  font-family: var(--display);
  background:
    repeating-linear-gradient(45deg, transparent 0 6px, rgba(232, 225, 208, 0.015) 6px 12px),
    radial-gradient(circle at 50% 50%, var(--stone-2), var(--stone) 80%);
}
.plate__inner::before {
  content: "";
  position: absolute;
  inset: 1.5rem;
  border: 1px solid var(--rule);
}
.plate__mark {
  font-family: var(--fraktur);
  font-size: 3rem;
  color: var(--patina-dim);
  opacity: 0.7;
}
.plate__meta {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone-soft);
}

/* ─── Essay layout (grabskulptur.html) ──────────────────── */
.essay {
  max-width: 68ch;
  margin: 0 auto;
  padding-block: clamp(3rem, 8vh, 6rem);
  font-size: var(--step-1);
  line-height: 1.7;
  color: var(--bone);
}
.essay h2 { margin: 3rem 0 1.5rem; font-size: var(--step-3); }
.essay p { margin-bottom: 1.3em; }
.essay p:first-of-type::first-letter {
  font-family: var(--fraktur);
  font-size: 4.2em;
  float: left;
  line-height: 0.85;
  padding-right: 0.12em;
  padding-top: 0.08em;
  color: var(--patina);
}
.essay blockquote {
  border-left: 2px solid var(--patina);
  padding: 0.5rem 0 0.5rem 2rem;
  margin: 2.5rem 0;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--bone-dim);
  line-height: 1.4;
}
.plates-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}
@media (max-width: 640px) { .plates-row { grid-template-columns: 1fr 1fr; } }

/* ─── Contact page ──────────────────────────────────────── */
.kontakt-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(3rem, 8vh, 6rem);
  align-items: start;
}
@media (max-width: 820px) { .kontakt-wrap { grid-template-columns: 1fr; } }

.kontakt-card {
  border: 1px solid var(--rule);
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--ink-2);
}
.kontakt-card h3 {
  font-family: var(--display);
  font-size: var(--step-2);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.form-field {
  display: block;
  margin-bottom: 1.6rem;
}
.form-field label {
  display: block;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--patina);
  margin-bottom: 0.6rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--bone);
  font-family: var(--display);
  font-size: var(--step-1);
  padding: 0.6rem 0;
  transition: border-color 0.5s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--patina);
}
.form-field textarea { resize: vertical; min-height: 6rem; }

.btn-send {
  margin-top: 1.5rem;
  font-family: var(--sc), var(--display);
  font-variant: small-caps;
  letter-spacing: 0.3em;
  font-size: 1rem;
  padding: 1rem 2rem;
  border: 1px solid var(--patina);
  color: var(--patina);
  transition: background 0.5s, color 0.5s, letter-spacing 0.5s;
  text-transform: lowercase;
}
.btn-send:hover {
  background: var(--patina);
  color: var(--ink);
  letter-spacing: 0.4em;
}

/* ─── Links / Tipps page ────────────────────────────────── */
.link-group {
  margin-bottom: 4rem;
}
.link-group__title {
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: var(--bone);
}
.link-group__desc {
  font-family: var(--display);
  font-style: italic;
  color: var(--bone-dim);
  margin-bottom: 2rem;
  max-width: 60ch;
}
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.link-list li {
  border-bottom: 1px solid var(--rule);
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: baseline;
  transition: padding-left 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.6s;
}
.link-list li:hover {
  padding-left: 1rem;
  background: linear-gradient(90deg, rgba(142, 168, 138, 0.06), transparent 80%);
}
.link-list a {
  font-family: var(--display);
  font-size: var(--step-1);
  color: var(--bone);
}
.link-list a:hover { color: var(--patina); }
.link-list__tag {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-soft);
}

/* ─── Legal pages ───────────────────────────────────────── */
.legal {
  max-width: 68ch;
  margin: 0 auto;
  padding-block: clamp(3rem, 8vh, 6rem);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--bone-dim);
}
.legal h1 { font-size: var(--step-3); margin-bottom: 2rem; color: var(--bone); }
.legal h2 { font-size: var(--step-1); margin: 2.5rem 0 1rem; color: var(--bone); font-weight: 400; }
.legal p { margin-bottom: 1em; }
.legal a { color: var(--patina); border-bottom: 1px solid var(--patina-dim); }
.legal a:hover { color: var(--bone); border-bottom-color: var(--bone); }

/* ─── Page headers (inner pages) ────────────────────────── */
.page-head {
  padding-block: clamp(4rem, 10vh, 7rem) clamp(2rem, 6vh, 4rem);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.page-head__roman {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.5em;
  color: var(--patina);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.page-head h1 {
  font-family: var(--display);
  font-size: var(--step-4);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1;
}
.page-head__sub {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-style: italic;
  color: var(--bone-dim);
  font-size: var(--step-1);
  max-width: 52ch;
  margin-inline: auto;
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 3rem 2rem;
  margin-top: clamp(3rem, 8vh, 6rem);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--patina);
  margin-bottom: 1rem;
  font-weight: 400;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--display);
  color: var(--bone-dim);
  line-height: 2;
}
.site-footer a:hover { color: var(--bone); }
.site-footer__brand {
  font-family: var(--display);
  font-size: var(--step-2);
  letter-spacing: 0.2em;
  color: var(--bone);
  margin-bottom: 0.5rem;
}
.site-footer__motto {
  font-family: var(--display);
  font-style: italic;
  color: var(--bone-soft);
  max-width: 30ch;
}
.site-footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bone-soft);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ─── Reveal on scroll ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1.4s cubic-bezier(0.2, 0.9, 0.3, 1), transform 1.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.25s; }
.reveal[data-delay="3"] { transition-delay: 0.4s; }
.reveal[data-delay="4"] { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Theme switcher (bottom-right floating) ──────────── */
.theme-switch {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 1000;
  font-family: var(--mono);
  font-size: var(--step--2);
}
.theme-switch__toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--surface-blur);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.4s, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.4s;
  color: var(--bone);
}
.theme-switch__toggle:hover {
  border-color: var(--patina);
  transform: rotate(20deg);
  box-shadow: 0 0 0 4px rgba(142, 168, 138, 0.08);
}
.theme-switch__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--patina) 0deg,
    var(--bone) 72deg,
    var(--rust) 144deg,
    var(--ink-2) 216deg,
    var(--bone-dim) 288deg,
    var(--patina) 360deg);
  border: 1px solid var(--bone-soft);
}

.theme-switch__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.6rem);
  min-width: 200px;
  padding: 0.6rem;
  background: var(--surface-blur-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--rule);
  display: grid;
  gap: 2px;
  animation: theme-menu-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  transform-origin: bottom right;
}
.theme-switch__menu[hidden] { display: none; }

@keyframes theme-menu-in {
  from { opacity: 0; transform: translateY(0.6rem) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.theme-switch__menu > button {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  color: var(--bone-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  font-size: var(--step--2);
  transition: color 0.3s, background 0.3s;
  border-left: 2px solid transparent;
}
.theme-switch__name {
  display: block;
  font-weight: 600;
  color: var(--bone);
}
.theme-switch__sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--bone-soft);
  margin-top: 2px;
}
.theme-switch__menu > button:hover { background: color-mix(in srgb, var(--patina) 7%, transparent); }
.theme-switch__menu > button:hover .theme-switch__name { color: var(--patina); }
.theme-switch__menu > button[aria-current="true"] {
  color: var(--patina);
  border-left-color: var(--patina);
  background: color-mix(in srgb, var(--patina) 10%, transparent);
}
.theme-switch__menu > button[aria-current="true"] .theme-switch__name { color: var(--patina); }
.theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-block;
}
.theme-switch__header {
  padding: 0.6rem 0.9rem 0.3rem;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--patina);
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.3rem;
}

@media (max-width: 640px) {
  .theme-switch { bottom: 0.9rem; right: 0.9rem; }
  .theme-switch__toggle { width: 44px; height: 44px; }
  .theme-switch__menu { min-width: 180px; }
}

/* ─── Utility ───────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
