/* ===========================================================================
 * Landing page styles for the Wildes Moor Fotowettbewerb.
 * Ported from the static mockups (fotos/index-hell.html — light is primary).
 * Colour tokens and theme variants live in application.css.
 * =========================================================================*/

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

/* paper-grain so flat backgrounds feel printed, not digital */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: var(--grain-blend);
}

::selection { background: var(--moss); color: var(--bg); }

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 2.2em;
  height: 1px;
  background: var(--moss);
}

.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.display {
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.display em { font-style: italic; font-weight: 400; color: var(--moss-bright); }

h2.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  font-weight: 300;
  margin-bottom: 1.4rem;
  max-width: 22ch;
}
h2.section-title em { font-style: italic; color: var(--moss-bright); }

.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
}

.prose p { max-width: 38rem; margin: 0 0 1.15em; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose em     { color: var(--ink); font-style: italic; }
.prose strong { color: var(--ink); font-weight: 500; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-rule);
  transition: background .4s ease, border-color .4s ease;
  color: var(--nav-ink);
}
.site-header.is-scrolled {
  background: var(--nav-bg-scrolled);
  border-bottom-color: var(--nav-rule-strong);
}
/* navbar keeps a constant total height via min-height; logo overhangs */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.75rem;
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--nav-ink);
  line-height: 1;
}
.brand img.logo {
  width: auto;
  margin-right: 1rem;
  height: 112px;
  margin-bottom: -80px;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(20, 40, 56, 0.32));
  transition: height .35s cubic-bezier(.2,.7,.2,1), margin-bottom .35s cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 880px) {
  .brand img.logo { height: 152px; }
}
.site-header.is-scrolled .brand img.logo { height: 48px; margin-bottom: 0; }
@media (min-width: 880px) {
  .site-header.is-scrolled .brand img.logo { height: 64px; }
}
.brand-text {
  display: none;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--nav-ink-soft);
  padding-left: 0.9rem;
  border-left: 1px solid var(--nav-rule);
  max-width: 16rem;
}
.brand-text strong { display: block; font-style: normal; color: var(--nav-ink); font-weight: 400; letter-spacing: 0.02em; }
@media (min-width: 1080px) { .brand-text { display: block; } }

.header-nav {
  display: none;
  gap: 1.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nav-ink-soft);
}
.header-nav a { transition: color .2s ease, border-color .2s ease; padding-bottom: 0.25rem; border-bottom: 1px solid transparent; }
.header-nav a:hover { color: var(--nav-ink); border-bottom-color: var(--nav-ink); }
@media (min-width: 880px) { .header-nav { display: flex; } }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-cta {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--nav-ink);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--nav-rule);
  border-radius: 999px;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.header-cta:hover {
  border-color: var(--nav-ink);
  color: var(--nav-cta-hover-ink);
  background: var(--nav-ink);
}
.header-cta .arrow { display: inline-block; margin-left: 0.4em; transition: transform .25s ease; }
.header-cta:hover .arrow { transform: translateX(3px); }

/* theme-toggle button: same chip style as the CTA but only an icon */
.theme-toggle {
  appearance: none;
  background: transparent;
  color: var(--nav-ink);
  border: 1px solid var(--nav-rule);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.theme-toggle:hover {
  border-color: var(--nav-ink);
  color: var(--nav-cta-hover-ink);
  background: var(--nav-ink);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: var(--bg);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: saturate(0.72) contrast(0.95) brightness(1.04);
  transform: scale(1.04);
  animation: heroDrift 38s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1%, -2%, 0); }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--bg) 15%, transparent) 0%, color-mix(in srgb, var(--bg) 45%, transparent) 60%, color-mix(in srgb, var(--bg) 78%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, transparent) 0%, color-mix(in srgb, var(--bg) 42%, transparent) 40%, color-mix(in srgb, var(--bg) 86%, transparent) 90%, color-mix(in srgb, var(--bg) 98%, transparent) 100%);
}

.hero-inner {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-block: 5rem 2.5rem;
}
@media (min-width: 880px) { .hero-inner { padding-block: 6rem 3rem; } }

.hero-top { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: baseline; }
.hero-coord {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
}
.hero-coord span { color: var(--moss-bright); }

.hero-headline-wrap {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}
.hero-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--hero-headline-ink);
  text-shadow: var(--hero-headline-shadow);
}
.hero-headline .line { display: block; opacity: 0; transform: translateY(20px); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-headline .line.l1 { animation-delay: .15s; }
.hero-headline .line.l2 { animation-delay: .35s; font-style: italic; font-weight: 400; color: var(--moss-bright); padding-left: 0.8em; }
.hero-headline .line.l3 { animation-delay: .55s; font-size: 0.62em; font-weight: 300; color: var(--ink-soft); padding-left: 0.2em; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  opacity: 0;
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) .8s forwards;
}
.hero-sub {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0;
}
.hero-cta-stack { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media (min-width: 720px) { .hero-cta-stack { align-items: flex-end; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05rem 1.6rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all .3s ease;
  cursor: pointer;
  background: none;
  color: inherit;
}
.btn .arrow {
  width: 1.4em; height: 1px; background: currentColor; position: relative;
  transition: width .3s ease;
}
.btn .arrow::after {
  content: "";
  position: absolute; right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 2em; }

.btn-primary { background: var(--moss-bright); color: var(--bg); border-color: var(--moss-bright); }
.btn-primary:hover { background: var(--moss-deep); border-color: var(--moss-deep); }
.btn-ghost { color: var(--ink); border-color: var(--ink-faint); }
.btn-ghost:hover { border-color: var(--moss-bright); color: var(--moss-bright); }

.hero-meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-meta span { color: var(--cotton); }

/* ---------- decorative thin rule with mark ---------- */
.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-faint);
  margin-block: clamp(2.5rem, 5vw, 4rem);
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.rule .mark { width: 18px; height: 18px; color: var(--moss); flex: none; }

/* ---------- intro / pull quote ---------- */
.intro { padding-block: var(--pad-y); border-bottom: 1px solid var(--rule-soft); }
.intro-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 880px) { .intro-grid { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }
.intro-side .label { display: block; margin-bottom: 0.8rem; }
.intro-side-text {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-mute);
  max-width: 28ch;
}
.intro-main {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.8vw, 2.1rem);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.intro-main em { font-style: italic; color: var(--moss-bright); }
.intro-main .drop {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 3em;
  line-height: 0.85;
  float: left;
  color: var(--umber-light);
  padding-right: 0.12em;
  padding-top: 0.05em;
  margin-bottom: -0.1em;
}

/* ---------- facts grid ---------- */
.facts {
  padding-block: var(--pad-y);
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 50%, var(--bg) 100%);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.facts-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px)  { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }
.fact {
  padding: 2.2rem 1.6rem 2.4rem 1rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
@media (min-width: 720px) {
  .fact { padding-right: 2rem; border-right: 1px solid var(--rule); }
  .fact:nth-child(2n) { padding-right: 0; border-right: 0; }
}
@media (min-width: 1080px) {
  .fact { border-right: 1px solid var(--rule); padding-right: 2rem; }
  .fact:nth-child(2n) { padding-right: 2rem; border-right: 1px solid var(--rule); }
  .fact:nth-child(4n), .fact:last-child { border-right: 0; padding-right: 0; }
}
.fact-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.9rem;
}
.fact-value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.fact-value em { font-style: italic; color: var(--moss-bright); }
.fact-foot { margin-top: 0.9rem; font-size: 0.82rem; color: var(--ink-mute); line-height: 1.5; }

/* ---------- moor section ---------- */
.moor { padding-block: var(--pad-y); position: relative; overflow: hidden; }
.moor-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: end; }
@media (min-width: 980px) { .moor-grid { grid-template-columns: 1.05fr 1fr; gap: 5rem; } }
.moor-figure { position: relative; }
.moor-figure .imgwrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elev);
}
.moor-figure img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.moor-figure:hover img { transform: scale(1.04); }
.moor-caption {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  font-style: italic;
  font-family: var(--serif);
}
.moor-stat {
  position: absolute;
  bottom: 2rem;
  right: -1.4rem;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.4rem;
  max-width: 14rem;
  box-shadow: 0 18px 44px rgba(38, 40, 25, 0.14);
}
.moor-stat-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--moss-bright);
  letter-spacing: -0.02em;
}
.moor-stat-num em { font-style: italic; }
.moor-stat-text {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  line-height: 1.4;
}
.moor-body .eyebrow { margin-bottom: 1.4rem; }

/* ---------- gallery strip ---------- */
.gallery { padding-block: clamp(2rem, 5vw, 4rem) var(--pad-y); }
.gallery-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
@media (min-width: 640px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }
.gallery-cell {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--bg-elev);
  position: relative;
}
.gallery-cell img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) contrast(0.98) brightness(0.92);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter .8s ease;
}
.gallery-cell:hover img {
  transform: scale(1.06);
  filter: saturate(0.95) contrast(1) brightness(1.02);
}
.gallery-cell figcaption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: #f4ede0;
  text-shadow: 0 2px 14px rgba(20, 22, 12, 0.65);
  letter-spacing: 0.01em;
}
.gallery-cell figcaption::before {
  content: "—";
  margin-right: 0.4em;
  color: #c1c382;
  font-style: normal;
}

/* ---------- rules / numbered list ---------- */
.rules {
  padding-block: var(--pad-y);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--bg-warm);
}
.rules-head { max-width: 36rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rule-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: baseline;
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .rule-item { grid-template-columns: 6rem 1fr auto; gap: 2.4rem; padding-block: 2.4rem; }
}
.rule-item:last-child { border-bottom: 1px solid var(--rule); }
.rule-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--moss);
  line-height: 1;
  letter-spacing: -0.01em;
}
.rule-text h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.rule-text p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 50ch;
}
.rule-text p strong { color: var(--cotton); font-weight: 500; }
.rule-aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-mute);
  text-align: right;
  align-self: end;
  padding-bottom: 0.3rem;
}

/* ---------- submit / CTA block ---------- */
.submit { padding-block: var(--pad-y); position: relative; }
.submit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (min-width: 880px) { .submit-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.submit-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.submit-headline em { font-style: italic; color: var(--moss-bright); display: block; }
.submit-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.submit-actions .btn-primary { padding: 1.2rem 1.8rem; font-size: 0.95rem; }
.submit-helper {
  font-size: 0.82rem;
  color: var(--ink-mute);
  line-height: 1.5;
  max-width: 28rem;
}
.submit-helper a { color: var(--moss-bright); border-bottom: 1px solid var(--rule); }
.submit-helper a:hover { color: var(--cotton); border-color: var(--cotton); }

.mail-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, white) 0%, color-mix(in srgb, var(--bg) 70%, var(--moss)) 100%);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.8rem;
  font-family: "SFMono-Regular", ui-monospace, "JetBrains Mono", "Menlo", monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink-soft);
  position: relative;
  box-shadow: 0 14px 38px rgba(38, 40, 25, 0.10);
}
.mail-card::before {
  content: "Beispiel-E-Mail";
  position: absolute;
  top: -0.7rem; left: 1.4rem;
  background: var(--bg);
  padding: 0 0.6rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss-bright);
}
.mail-card .key { color: var(--ink-mute); }
.mail-card .val { color: var(--cotton); }
.mail-card .sep { height: 1px; background: var(--rule); margin: 0.9rem -0.4rem; }
.mail-card .body {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- legal ---------- */
.legal { padding-block: var(--pad-y); background: var(--bg); border-top: 1px solid var(--rule-soft); }
.legal-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.legal-grid { display: grid; grid-template-columns: 1fr; gap: 2.6rem; }
@media (min-width: 880px) { .legal-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.legal-block { border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.legal-block h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss-bright);
  margin-bottom: 1rem;
}
.legal-block p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}
.legal-block p + p { margin-top: 0.8rem; }

/* ---------- static-content public page (Impressum / Datenschutz) ---------- */
.static-page {
  padding-block: var(--pad-y);
  background: var(--bg);
}

.static-page-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.static-page-head .eyebrow {
  margin-bottom: 1.4rem;
}

.static-page-body {
  max-width: 42rem;
  font-size: 1.05rem;
}

.static-page-body p {
  color: var(--ink-soft);
}

.static-page-back {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.static-page-back a {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.2s ease;
}

.static-page-back a:hover {
  color: var(--moss-bright);
}

/* ---------- footer ---------- */
.site-footer { padding-block: 3.5rem 3rem; border-top: 1px solid var(--rule); background: var(--bg-elev); }
.footer-inner { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 720px) { .footer-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.footer-brand img.logo {
  height: 160px;
  width: auto;
  flex: none;
  filter: drop-shadow(0 8px 24px rgba(38, 40, 25, 0.18));
}
.footer-brand-text { display: flex; flex-direction: column; gap: 0.5rem; flex: 1 1 60%; }
.footer-brand em { font-style: italic; color: var(--moss-bright); }
.footer-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.1rem;
}
.footer-links {
  flex: 1 1 40%;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}
.footer-links a { transition: color .2s ease; }
.footer-links a:hover { color: var(--moss-bright); }
.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-soft);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

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

.nowrap { white-space: nowrap; }
