/* ==========================================================================
   KL Charcoal — kl-charcoal.com
   Editorial-System: Papier / Sand / Tinte / Glut (Referenz: Datenblatt Encina)
   ========================================================================== */

/* ---- Fonts (self-hosted, variable) ------------------------------------- */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens -------------------------------------------------------------- */

:root {
  --paper: #f7f2ea;
  --sand: #efe7da;
  --ink: #2b2621;
  --ink-soft: #5f574c;
  --char: #211c17;
  --ember: #c9502a;
  --ember-deep: #a83e1f;

  --line: rgba(43, 38, 33, 0.16);
  --line-strong: rgba(43, 38, 33, 0.8);
  --paper-line: rgba(247, 242, 234, 0.18);
  --paper-soft: rgba(247, 242, 234, 0.64);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --sec-gap: clamp(4.5rem, 11vw, 9.5rem);
  --wrap-max: 76rem;
  --wrap-pad: clamp(1.25rem, 5vw, 3.5rem);
}

/* ---- Reset / Basis -------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.66;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table {
  margin: 0;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--ember);
  color: var(--paper);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  font-size: 0.9rem;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

/* ---- Typo-Rollen ----------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  letter-spacing: -0.018em;
  line-height: 1.02;
  font-size: clamp(2.65rem, 7.4vw, 5.5rem);
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 540;
  letter-spacing: -0.012em;
  line-height: 1.08;
  font-size: clamp(1.95rem, 4vw, 3.1rem);
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 530;
  letter-spacing: -0.008em;
  line-height: 1.14;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
}

.kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--ember);
  flex: none;
}

.lede {
  font-size: clamp(1.14rem, 1.6vw, 1.31rem);
  line-height: 1.6;
  max-width: 34em;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.86rem;
  line-height: 1.55;
}

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  letter-spacing: 0;
}

/* Fließtext-Links */
.prose a,
.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.prose a:hover,
.link:hover {
  color: var(--ember-deep);
}

/* ---- Header ----------------------------------------------------------------- */

.site-head {
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.05rem;
}

.brand {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand span {
  color: var(--ember);
}

.site-nav {
  display: none;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ember);
}

.head-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.lang-switch {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--ink-soft);
}
.lang-switch a,
.lang-switch strong {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 0.15rem 0.1rem;
}
.lang-switch strong {
  color: var(--ink);
  border-bottom: 2px solid var(--ember);
}
.lang-switch a:hover {
  color: var(--ink);
}

@media (min-width: 56em) {
  .site-nav {
    display: flex;
    gap: 1.4rem;
  }
}

/* Sprachhinweis (per JS eingefügt) */
.lang-hint {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88rem;
}
.lang-hint .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
}
.lang-hint a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.lang-hint button {
  all: unset;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.25rem 0.45rem;
  color: var(--paper-soft);
}
.lang-hint button:hover {
  color: var(--paper);
}

/* ---- Hero ---------------------------------------------------------------------- */

.hero {
  padding-block: clamp(3.2rem, 8vw, 6.5rem) var(--sec-gap);
}

.hero .kicker {
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.hero h1 {
  max-width: 12em;
}
.hero h1 .dot {
  color: var(--ember);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: clamp(2.2rem, 5vw, 3.6rem);
  align-items: start;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
}

.hero-proof {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 36em;
}

/* Steckbrief */
.specbox {
  border-top: 1px solid var(--line-strong);
}
.specbox dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1.5rem;
}
.specbox dt {
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.specbox dd {
  padding-block: 0.78rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.specbox dt:last-of-type,
.specbox dd:last-of-type {
  border-bottom: none;
}

.lump-figure {
  margin-bottom: 1.6rem;
}
.lump-figure svg {
  width: min(100%, 21rem);
}
.lump-figure figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

@media (min-width: 56em) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
}

/* ---- Buttons -------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 540;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  background: var(--sand);
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover {
  background: var(--char);
  color: var(--paper);
}
.btn-ember {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
}
.btn-ember:hover {
  background: var(--ember-deep);
  border-color: var(--ember-deep);
  color: #fff;
}
.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

/* ---- Sektionen: Kopfzeile mit Regel --------------------------------------------- */

section {
  scroll-margin-top: 2rem;
}

.sec {
  padding-bottom: var(--sec-gap);
}

.sec-head {
  border-top: 1px solid var(--line-strong);
  padding-top: 0.9rem;
  margin-bottom: clamp(2rem, 5vw, 3.8rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.sec-head .sec-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.sec-grid {
  display: grid;
  gap: clamp(1.8rem, 4.5vw, 4.5rem);
}
@media (min-width: 56em) {
  .sec-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* ---- Kennzahlen-Band (Tinte) ------------------------------------------------------ */

.band-ink {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.2rem, 7vw, 5.5rem);
  margin-bottom: var(--sec-gap);
}
.band-ink .kicker {
  color: var(--paper);
}
.band-ink .sec-note {
  color: var(--paper-soft);
}
.band-ink .stats-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.2rem, 5vw, 3.6rem);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--paper-line);
}
.stat {
  padding: clamp(1.3rem, 3vw, 2.2rem) clamp(0.2rem, 2vw, 2rem) clamp(1.3rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--paper-line);
}
.stat-num {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 330;
  font-size: clamp(2.9rem, 6.2vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stat-num sup {
  font-size: 0.42em;
  font-weight: 420;
  top: -0.9em;
}
.stat-label {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  font-weight: 540;
}
.stat-sub {
  margin-top: 0.15rem;
  font-size: 0.84rem;
  color: var(--paper-soft);
}
.stats-foot {
  margin-top: 1.6rem;
  font-size: 0.86rem;
  color: var(--paper-soft);
}
.stats-foot a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (min-width: 56em) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat {
    padding-left: 1.6rem;
    border-left: 1px solid var(--paper-line);
  }
  .stat:first-child {
    padding-left: 0;
    border-left: none;
  }
}

/* ---- Warum Encina ------------------------------------------------------------------ */

.args {
  list-style: none;
  padding: 0;
}
.args > li {
  display: grid;
  gap: 0.7rem 2rem;
  padding-block: clamp(1.6rem, 3.5vw, 2.6rem);
  border-top: 1px solid var(--line);
}
.args > li:first-child {
  border-top: none;
  padding-top: 0;
}
.arg-tag {
  font-size: 0.72rem;
  font-weight: 580;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ember-deep);
}
.args p {
  max-width: 36em;
  color: var(--ink-soft);
}
.args h3 {
  max-width: 18em;
}
@media (min-width: 56em) {
  .args > li {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
  .arg-tag {
    padding-top: 0.45rem;
  }
  .arg-body {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 2.2rem;
    align-items: start;
  }
}

/* ---- Bildplatzhalter ------------------------------------------------------------------ */

.media-band {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: clamp(2.4rem, 5vw, 4rem);
}
@media (min-width: 56em) {
  .media-band {
    /* Spaltenverhältnis so gewählt, dass 3:2- und 4:5-Bild gleich hoch enden */
    grid-template-columns: 1.87fr 1fr;
    align-items: start;
  }
}

.ph {
  border: 1px solid var(--line);
  background-color: var(--sand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M-2 12 12-2M-2 4 4-2M6 12l6-6' stroke='%232b2621' stroke-opacity='.08' fill='none'/%3E%3C/svg%3E");
  display: grid;
  place-items: center;
  position: relative;
}
.ph-3x2 { aspect-ratio: 3 / 2; }
.ph-4x5 { aspect-ratio: 4 / 5; }
.ph-21x9 { aspect-ratio: 21 / 9; }
.ph-label {
  font-size: 0.74rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
}
figure.media figcaption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
figure.media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.credit {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  opacity: 0.75;
}
.credit a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ---- Laboranalyse ----------------------------------------------------------------------- */

.lab-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.lab-table caption {
  text-align: left;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding-bottom: 0.8rem;
}
.lab-table thead th {
  font-size: 0.72rem;
  font-weight: 580;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid var(--line-strong);
}
.lab-table .vals th {
  font-family: var(--font-body);
  font-weight: 500;
  text-align: left;
  font-size: 1rem;
  padding: 1.05rem 1rem 0.35rem 0;
}
.lab-table .vals td {
  padding: 1.05rem 1rem 0.35rem 0;
  vertical-align: baseline;
}
.lab-table .vals .result {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 480;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.lab-table .vals .req {
  color: var(--ink-soft);
  font-size: 0.92rem;
  white-space: nowrap;
  text-align: right;
  padding-right: 0;
}
.lab-table .gauge-row td {
  padding: 0 0 1.05rem;
  border-bottom: 1px solid var(--line);
}
.lab-table tbody:last-child .gauge-row td {
  border-bottom: none;
}

/* Norm-Skala: Grenzwert-Strich (Tinte) + Messwert-Punkt (Glut) */
.gauge {
  position: relative;
  height: 2px;
  background: var(--line);
  margin-top: 0.55rem;
}
.gauge .lim {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 12px;
  background: var(--ink);
  transform: translateX(-50%);
}
.gauge .val {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ember);
  transform: translateX(-50%);
}
.gauge-legend {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 1.4rem;
}
.gauge-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.gauge-legend i {
  flex: none;
}
.gauge-legend .li-val {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ember);
}
.gauge-legend .li-lim {
  width: 2px;
  height: 12px;
  background: var(--ink);
}

.lab-note {
  margin-top: 1.6rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  max-width: 44em;
}
.lab-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

@media (max-width: 40em) {
  .lab-table .vals th,
  .lab-table .vals td {
    padding-top: 0.85rem;
  }
  .lab-table .vals .result {
    font-size: 1.25rem;
  }
  .lab-table thead .req-head,
  .lab-table .vals .req {
    font-size: 0.8rem;
  }
}

/* ---- Lieferung & Logistik ------------------------------------------------------------------ */

.logi {
  display: grid;
}
.logi-cell {
  padding: clamp(1.3rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
}
.logi-k {
  font-size: 0.72rem;
  font-weight: 580;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ember-deep);
}
.logi-v {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 480;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.012em;
  margin-top: 0.5rem;
  line-height: 1.1;
}
.logi-s {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
@media (min-width: 56em) {
  .logi {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2rem;
  }
}
.logi-foot {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 46em;
  color: var(--ink-soft);
}

/* ---- EUDR (Sand-Panel) ------------------------------------------------------------------------ */

.eudr-panel {
  background: var(--sand);
  padding: clamp(2.2rem, 5.5vw, 4.5rem);
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 56em) {
  .eudr-panel {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }
}
.eudr-panel h2 {
  max-width: 14em;
}
.eudr-panel .prose {
  margin-top: 1.3rem;
  max-width: 40em;
  color: var(--ink-soft);
}
.eudr-panel .prose strong {
  color: var(--ink);
  font-weight: 560;
}

.stamp {
  border: 1px solid var(--ink);
  padding: 1.3rem 1.4rem;
  align-self: start;
  background: var(--paper);
}
.stamp .stamp-k {
  font-size: 0.72rem;
  font-weight: 580;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ember-deep);
}
.stamp .stamp-v {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-top: 0.3rem;
}
.stamp .stamp-s {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ---- Kontakt-Index ------------------------------------------------------------------------------- */

.contact-lede {
  max-width: 36em;
  color: var(--ink-soft);
}

.index {
  list-style: none;
  padding: 0;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line-strong);
}
.index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 1.5rem;
  align-items: baseline;
  padding-block: clamp(1.05rem, 2.4vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.index .ik {
  font-size: 0.74rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  grid-column: 1 / -1;
}
.index .iv {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 490;
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  letter-spacing: -0.012em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  transition: color 0.15s ease;
}
.index .ia {
  color: var(--ember);
  font-size: 1.25rem;
  transition: transform 0.18s ease;
}
.index a:hover .iv {
  color: var(--ember-deep);
}
.index a:hover .ia {
  transform: translate(3px, -2px);
}

.addr {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  font-style: normal;
  line-height: 1.7;
  color: var(--ink-soft);
}
.addr strong {
  color: var(--ink);
  font-weight: 560;
}

/* ---- Footer ------------------------------------------------------------------------------------------ */

.site-foot {
  background: var(--char);
  color: var(--paper-soft);
  padding-block: clamp(2.6rem, 6vw, 4.2rem) 1.8rem;
  font-size: 0.9rem;
}
.site-foot .brand {
  color: var(--paper);
  display: inline-block;
  margin-bottom: 0.4rem;
}
.foot-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--paper-line);
}
@media (min-width: 56em) {
  .foot-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  }
}
.site-foot address {
  font-style: normal;
  line-height: 1.7;
}
.foot-h {
  font-size: 0.72rem;
  font-weight: 580;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--paper-soft);
  margin-bottom: 0.7rem;
}
.foot-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.site-foot a {
  color: var(--paper);
  text-decoration: none;
}
.site-foot a:hover {
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.foot-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  font-size: 0.8rem;
}

/* ---- Mobile Schnellkontakt-Leiste ------------------------------------------------------------------------ */

.quickbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  background: var(--char);
  border-top: 1px solid rgba(247, 242, 234, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.quickbar a {
  display: block;
  text-align: center;
  padding: 0.9rem 0.4rem;
  font-size: 0.86rem;
  font-weight: 560;
  letter-spacing: 0.03em;
  color: var(--paper);
  text-decoration: none;
}
.quickbar a + a {
  border-left: 1px solid rgba(247, 242, 234, 0.12);
}
.quickbar .wa {
  background: var(--ember);
  color: #fff;
}
@media (min-width: 56em) {
  .quickbar {
    display: none;
  }
}
@media (max-width: 55.99em) {
  body {
    padding-bottom: 3.2rem;
  }
}

/* ---- Unterseiten (Impressum / Datenschutz / 404) ---------------------------------------------------------- */

.page {
  padding-block: clamp(2.8rem, 7vw, 5rem) var(--sec-gap);
}
.page-head {
  margin-bottom: clamp(2rem, 5vw, 3.4rem);
}
.page-head .kicker {
  margin-bottom: 1.2rem;
}
.prose {
  max-width: 44em;
}
.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-top: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 0.7rem;
}
.prose h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
}
.prose p,
.prose ul {
  margin-bottom: 1rem;
  color: var(--ink-soft);
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li {
  margin-bottom: 0.3rem;
}
.prose strong {
  color: var(--ink);
  font-weight: 560;
}

.err-hero {
  padding-block: clamp(4rem, 12vw, 9rem);
}
.err-code {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 330;
  font-size: clamp(5.5rem, 18vw, 12rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ember);
}
.err-hero .display {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-top: 1rem;
}
.err-hero p {
  margin-top: 1.2rem;
  max-width: 34em;
  color: var(--ink-soft);
}
.err-hero .hero-ctas {
  margin-top: 2rem;
}

/* ---- Reveal-Animation (nur mit JS, respektiert reduced motion) --------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.6, 0.2, 1),
      transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1);
  }
  html.js [data-reveal].in {
    opacity: 1;
    transform: none;
  }
}

/* ---- Druck ---------------------------------------------------------------------------------------------------- */

@media print {
  .quickbar,
  .lang-hint,
  .site-nav,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    padding-bottom: 0;
  }
}
