/* Erzling – Tradition trifft Stoff
   Farben aus dem Revier: Schiefer, Kalk, Fichte, Glimmer, Grubenlicht. */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin-ext.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Grundfarben */
  --kalk: #f1f1ee;        /* Seitenhintergrund */
  --papier: #ffffff;
  --schiefer: #18191b;    /* Text, Buttons */
  --zinn: #575b61;        /* Nebentext (7:1 auf Kalk) */
  --linie: #d4d4cf;
  --grubenlicht: #e9a23b; /* Sterne, Akzent – nur als Fläche, nie als Text auf hell */
  --fehler: #b3261e;
  --erfolg: #2e6b3f;

  /* Kachelfarben für die Entwürfe */
  --tile-halde: #e2e1dc;
  --tile-glimmer: #efd6a6;
  --tile-fichte: #c8d0c2;
  --tile-zinn: #d3d5d7;
  --tile-stollen: #26282b;

  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 112px;

  --gutter: 16px;
  --max: 1440px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--kalk);
  color: var(--schiefer);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 var(--space-3); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em; text-wrap: balance; }

:focus-visible { outline: 3px solid var(--schiefer); outline-offset: 3px; }
.on-dark :focus-visible, .hero-feature__tile :focus-visible { outline-color: var(--grubenlicht); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--schiefer); color: var(--papier); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(241, 241, 238, .94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--linie);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); min-height: 64px; flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 0; }
.logo svg { width: 30px; height: 30px; fill: var(--schiefer); }
.logo span { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }

.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--schiefer); }
.nav a[aria-current="page"] { border-bottom-color: var(--schiefer); }
.nav a.nav__cta { background: var(--schiefer); color: var(--papier); border: 0; margin-left: 6px; padding: 0 16px; }
.nav a.nav__cta:hover { background: #000; }
.nav a.nav__cta[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--grubenlicht); }

@media (max-width: 559px) {
  .site-header .wrap { padding-top: 4px; padding-bottom: 4px; }
  .nav { width: 100%; justify-content: space-between; margin: 0 -12px; width: calc(100% + 24px); }
  .nav a { padding: 0 12px; }
  .nav a.nav__cta { margin-left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 24px;
  background: var(--schiefer); color: var(--papier);
  font: 600 1rem/1 var(--font-body); text-decoration: none;
  border: 2px solid var(--schiefer); border-radius: 0; cursor: pointer;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out);
  touch-action: manipulation;
}
.btn:hover { background: #000; }
.btn--light { background: var(--papier); color: var(--schiefer); border-color: var(--papier); }
.btn--light:hover { background: var(--kalk); }
.btn--ghost { background: transparent; color: var(--schiefer); }
.btn--ghost:hover { background: var(--schiefer); color: var(--papier); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: progress; }

/* ---------- Hero ---------- */
.hero { padding: var(--space-5) 0 var(--space-6); }
.slogan {
  font-size: clamp(4.2rem, 19vw, 16.5rem);
  line-height: .84;
  letter-spacing: -.005em;
  margin-left: -.03em;
}
.slogan__line { display: flex; align-items: center; gap: .12em; }
.slogan__mark { width: .78em; height: .78em; flex: none; fill: var(--schiefer); transform: translateY(-.02em); }
.slogan__line--two { justify-content: flex-end; }
@media (max-width: 767px) { .slogan__line--two { justify-content: flex-start; } }

.hero__intro {
  display: grid; gap: var(--space-4); margin-top: var(--space-5);
  padding-top: var(--space-4); border-top: 2px solid var(--schiefer);
}
.hero__intro p { font-size: 1.125rem; max-width: 40ch; margin: 0; }
.hero__intro .hero__region { font-weight: 600; max-width: none; }
@media (min-width: 768px) {
  .hero__intro { grid-template-columns: 1fr 1.4fr auto; align-items: start; }
}

/* großes Feature-Bild unter dem Slogan */
.hero-feature { display: grid; margin-top: var(--space-5); }
.hero-feature__tile {
  position: relative; background: var(--tile-stollen); color: var(--papier);
  display: grid; place-items: center; padding: var(--space-6) var(--space-4) var(--space-7);
  min-height: 420px; overflow: hidden;
}
#hero-mockup { position: relative; width: min(82%, 440px); }
#hero-mockup .mockup, #hero-mockup img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
@media (min-width: 768px) { .hero-feature__tile { min-height: 620px; } }
.hero-feature__caption {
  position: absolute; left: var(--space-4); bottom: var(--space-4); right: var(--space-4);
  display: flex; justify-content: space-between; align-items: end; gap: var(--space-3); flex-wrap: wrap;
}
.hero-feature__caption h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 14ch; }
.hero-feature__caption a { color: var(--papier); }
.hero-feature__bg {
  position: absolute; inset: 0; pointer-events: none;
  /* Grubenlicht: warmer Lichtkegel hinter dem Motiv */
  background:
    radial-gradient(ellipse 46% 52% at 50% 44%, rgba(233,162,59,.62), rgba(233,162,59,.18) 55%, transparent 78%),
    repeating-linear-gradient(180deg, transparent 0 46px, rgba(255,255,255,.035) 46px 47px);
}

/* Ablauf: ansehen – bewerten – anfragen */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px;
  padding: var(--space-4) 0; border-bottom: 1px solid var(--linie);
}
.steps li::before {
  content: counter(s); grid-row: span 2; font-family: var(--font-display);
  font-size: 2.6rem; line-height: .9; width: 1.1em;
}
.steps strong { font-size: 1.1rem; }
.steps span { color: var(--zinn); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linie); }
  .steps li { border-bottom: 0; padding: var(--space-4) var(--space-4) var(--space-4) 0; }
  .steps li + li { border-left: 1px solid var(--linie); padding-left: var(--space-4); }
}

/* ---------- Abschnitte ---------- */
.section { padding: var(--space-7) 0; }
.section--tight { padding: var(--space-5) 0; }
.section__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: var(--space-3) var(--space-4); margin-bottom: var(--space-4);
}
.section__title { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.section__lead { max-width: 52ch; color: var(--zinn); margin: var(--space-2) 0 0; font-size: 1.05rem; }

/* Filter-Leiste wie "Best Sellers"-Tabs */
.filter { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.filter button {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--schiefer); background: transparent;
  font: 600 .95rem/1 var(--font-body); color: var(--schiefer); cursor: pointer;
  transition: background-color .15s var(--ease-out), color .15s var(--ease-out);
}
.filter button:hover { background: var(--papier); }
.filter button[aria-pressed="true"] { background: var(--schiefer); color: var(--papier); }
.filter .count { font-weight: 400; opacity: .7; margin-left: 4px; }

/* ---------- Entwurfs-Kacheln ---------- */
.designs { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .designs { grid-template-columns: repeat(2, 1fr); gap: 2px; } }
@media (min-width: 1360px) { .designs { grid-template-columns: repeat(3, 1fr); } }

.design { background: var(--tile, var(--tile-halde)); display: flex; flex-direction: column; }
.design[hidden] { display: none; }
.design.is-dark { color: var(--papier); }
.design__media { padding: var(--space-5) var(--space-4) var(--space-3); display: grid; place-items: center; aspect-ratio: 1 / .92; }
.design__media .mockup, .design__media img { width: min(88%, 440px); height: auto; }
.design__media img { aspect-ratio: 400 / 440; object-fit: contain; }
.design__body { padding: var(--space-3) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.design__head { display: flex; justify-content: space-between; align-items: start; gap: var(--space-3); }
.design__title { font-size: clamp(2.2rem, 4.2vw, 3.4rem); max-width: 10ch; }
.design__type { font-weight: 600; font-size: .95rem; white-space: nowrap; padding-top: .3em; }
.design__desc { margin: 0; max-width: 46ch; font-size: .98rem; }
.design__meta { font-size: .9rem; opacity: .8; margin: 0; }
.design__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid rgba(0,0,0,.14); }
.design.is-dark .design__foot { border-top-color: rgba(255,255,255,.18); }
.design.is-dark .btn { background: var(--papier); color: var(--schiefer); border-color: var(--papier); }
.design.is-dark .btn:hover { background: var(--kalk); }

/* ---------- Sternebewertung ---------- */
.rating { border: 0; margin: 0; padding: 0; min-width: 0; }
.rating legend { font-size: .9rem; font-weight: 600; margin-bottom: 4px; padding: 0; }
.stars { display: flex; gap: 2px; margin-left: -6px; }
.star {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; cursor: pointer; touch-action: manipulation;
}
.star input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.star svg {
  width: 28px; height: 28px; fill: transparent; stroke: currentColor; stroke-width: 1.6;
  transition: transform .14s var(--ease-out), fill .14s var(--ease-out);
}
.star:hover svg { transform: scale(1.12); }
.star:has(input:focus-visible) { outline: 3px solid currentColor; outline-offset: -4px; }
.stars[data-show="1"] .star:nth-of-type(-n+1) svg,
.stars[data-show="2"] .star:nth-of-type(-n+2) svg,
.stars[data-show="3"] .star:nth-of-type(-n+3) svg,
.stars[data-show="4"] .star:nth-of-type(-n+4) svg,
.stars[data-show="5"] .star:nth-of-type(-n+5) svg { fill: var(--grubenlicht); stroke: var(--schiefer); }
.design.is-dark .stars[data-show] .star svg { stroke: var(--papier); }
.design.is-dark .stars[data-show="1"] .star:nth-of-type(-n+1) svg,
.design.is-dark .stars[data-show="2"] .star:nth-of-type(-n+2) svg,
.design.is-dark .stars[data-show="3"] .star:nth-of-type(-n+3) svg,
.design.is-dark .stars[data-show="4"] .star:nth-of-type(-n+4) svg,
.design.is-dark .stars[data-show="5"] .star:nth-of-type(-n+5) svg { stroke: var(--grubenlicht); }
@media (prefers-reduced-motion: reduce) { .star svg { transition: none; } .star:hover svg { transform: none; } }

.rating__summary { font-size: .9rem; margin: 2px 0 0; min-height: 1.4em; }
.rating__summary strong { font-weight: 700; }
.rating__status { font-size: .9rem; font-weight: 600; margin: 0; min-height: 1.4em; }

/* ---------- Seiten-Hero (Unterseiten) ---------- */
.page-hero { padding: var(--space-6) 0 var(--space-5); border-bottom: 2px solid var(--schiefer); }
.page-hero h1 { font-size: clamp(3.6rem, 13vw, 11rem); line-height: .86; }
.page-hero p { font-size: 1.15rem; max-width: 52ch; margin: var(--space-4) 0 0; }

/* ---------- Über uns ---------- */
.story { display: grid; gap: var(--space-5); }
.story__text p { font-size: 1.1rem; max-width: 62ch; }
.story__text p:first-child { font-size: 1.35rem; font-weight: 500; line-height: 1.45; }
.story__mark { background: var(--tile-stollen); display: grid; place-items: center; padding: var(--space-6); min-height: 280px; }
.story__mark svg { width: min(60%, 260px); fill: var(--kalk); }
@media (min-width: 900px) { .story { grid-template-columns: 1.3fr 1fr; align-items: stretch; } }

.team { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
.person__photo {
  aspect-ratio: 4 / 5; background: var(--tile, var(--tile-zinn)); position: relative; overflow: hidden;
  display: grid; place-items: end start; padding: var(--space-4);
}
.person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person__photo .placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.person__photo .placeholder svg { width: 58%; fill: rgba(24,25,27,.82); }
.person__photo .placeholder-note { position: relative; font-size: .85rem; background: var(--papier); padding: 4px 8px; }
.person h3 { font-size: 2.2rem; margin-top: var(--space-3); }
.person__role { font-weight: 600; margin: 6px 0 var(--space-2); }
.person p { max-width: 46ch; }
.person blockquote { margin: var(--space-3) 0 0; padding-left: var(--space-3); border-left: 3px solid var(--grubenlicht); font-size: 1.05rem; }

.values { display: grid; gap: 0; border-top: 2px solid var(--schiefer); }
.values > div { padding: var(--space-4) 0; border-bottom: 1px solid var(--linie); }
.values h3 { font-size: 2.4rem; margin-bottom: var(--space-2); }
.values p { margin: 0; max-width: 46ch; color: var(--zinn); }
@media (min-width: 900px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .values > div { border-bottom: 0; padding-right: var(--space-4); }
  .values > div + div { border-left: 1px solid var(--linie); padding-left: var(--space-4); }
}

/* ---------- Bestellanfrage ---------- */
.order { display: grid; gap: var(--space-6); }
@media (min-width: 1000px) { .order { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }

.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } .form__row--3 { grid-template-columns: 1.4fr 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field legend { font-weight: 600; font-size: .98rem; padding: 0; }
.field .req { color: var(--fehler); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-body); color: var(--schiefer);
  background: var(--papier); border: 1.5px solid #8c8f94; border-radius: 0;
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 6 5-6' fill='none' stroke='%2318191b' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 42px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--schiefer); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--schiefer); box-shadow: 0 0 0 3px var(--grubenlicht); }
.field .hint { font-size: .88rem; color: var(--zinn); margin: 0; }
.field .error { font-size: .9rem; color: var(--fehler); font-weight: 600; margin: 0; display: flex; gap: 6px; align-items: start; }
.field .error:empty { display: none; }
.field .error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--fehler); color: #fff; font-size: .75rem; margin-top: 1px; }
.field [aria-invalid="true"] { border-color: var(--fehler); border-width: 2px; }

.sizes { border: 0; margin: 0; padding: 0; min-width: 0; }
.sizes__list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: 6px; }
.sizes__list label { position: relative; }
.sizes__list input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sizes__list span {
  display: inline-grid; place-items: center; min-width: 52px; min-height: 48px; padding: 0 12px;
  border: 1.5px solid #8c8f94; background: var(--papier); font-weight: 600; cursor: pointer;
}
.sizes__list input:hover + span { border-color: var(--schiefer); }
.sizes__list input:checked + span { background: var(--schiefer); color: var(--papier); border-color: var(--schiefer); }
.sizes__list input:focus-visible + span { box-shadow: 0 0 0 3px var(--grubenlicht); }
.sizes[aria-invalid="true"] .sizes__list span { border-color: var(--fehler); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--schiefer); cursor: pointer; }
.check label { cursor: pointer; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.error-summary { border: 2px solid var(--fehler); background: #fff; padding: var(--space-3) var(--space-4); }
.error-summary h2 { font-family: var(--font-body); text-transform: none; font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: var(--space-2); }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--fehler); font-weight: 600; }

.notice { padding: var(--space-4); border-left: 4px solid var(--erfolg); background: var(--papier); }
.notice--error { border-left-color: var(--fehler); }
.notice h2 { font-size: 2.2rem; margin-bottom: var(--space-2); }
.notice p:last-child { margin: 0; }

.order__aside { position: sticky; top: 88px; display: grid; gap: var(--space-4); }
@media (max-width: 999px) { .order__aside { position: static; order: -1; } }
.preview { background: var(--tile, var(--tile-halde)); transition: background-color .25s var(--ease-out); }
.preview.is-dark { color: var(--papier); }
.preview__media { display: grid; place-items: center; padding: var(--space-5) var(--space-4) var(--space-3); }
.preview__media .mockup, .preview__media img { width: min(72%, 340px); }
.preview__body { padding: 0 var(--space-4) var(--space-4); display: flex; justify-content: space-between; gap: var(--space-3); align-items: end; }
.preview__body h2 { font-size: 2.6rem; }
.preview__body span { font-weight: 600; }
@media (max-width: 999px) { .preview__media .mockup { width: min(52%, 240px); } }
.process { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--schiefer); }
.process li { padding: var(--space-3) 0; border-bottom: 1px solid var(--linie); }
.process strong { display: block; }
.process span { color: var(--zinn); font-size: .95rem; }

/* ---------- Ergebnisse ---------- */
.results { width: 100%; border-collapse: collapse; font-size: 1rem; }
.results th, .results td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.results th { font-size: .9rem; color: var(--zinn); font-weight: 600; }
.results td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.results .bar { height: 10px; background: var(--linie); min-width: 80px; }
.results .bar span { display: block; height: 100%; background: var(--grubenlicht); }
.results .name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; }
.table-scroll { overflow-x: auto; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 70ch; }
.legal h2 { font-size: 2rem; margin: var(--space-5) 0 var(--space-3); }
.legal .todo { background: var(--tile-glimmer); padding: 2px 6px; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--schiefer); color: var(--kalk); margin-top: var(--space-7); padding: var(--space-6) 0 var(--space-4); }
.site-footer .wrap { display: grid; gap: var(--space-5); }
.footer__greeting { display: flex; align-items: center; gap: .2em; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(3.6rem, 14vw, 10rem); line-height: .85; }
.footer__greeting svg { width: .72em; height: .72em; fill: var(--grubenlicht); flex: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); border-top: 1px solid rgba(255,255,255,.2); padding-top: var(--space-4); font-size: .95rem; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 4px; }
.footer__bottom a:hover { text-decoration-color: currentColor; }
.footer__bottom p { margin: 0; align-self: center; color: #b9bcc0; }

/* ---------- Einblenden beim Laden (nur einmal, im Hero) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .slogan__line { animation: rise .7s var(--ease-out) both; }
  .slogan__line--two { animation-delay: .08s; }
  .slogan__mark { animation: swing .9s .35s var(--ease-out) both; transform-origin: 50% 60%; }
  @keyframes rise { from { opacity: 0; transform: translateY(.18em); } to { opacity: 1; transform: none; } }
  @keyframes swing { from { opacity: 0; transform: rotate(-18deg) scale(.9); } to { opacity: 1; transform: translateY(-.02em); } }
}
