/* =====================================================================
   STOLLINO One-Pager — styles.css
   Schriften und Farben aus dem Dresden-Shop-Theme (Dawn-Fork "Dresden Shop v7").
   Aufbau: keine Sektions-Schablone, Bilder in verschiedenen Formaten,
   Text als Fließtext, ein einziges Grid (Herstellung).
   ===================================================================== */

:root {
  --text: #1B1C1A;
  --bg: #FFFFFF;
  --cream: #F7F4EE;
  --sand: #F1EFEA;
  --green: #1F3A2E;
  --green-deep: #16352B;
  --black: #151515;
  --line: #E6E2DA;
  --muted: #5E5F5B;
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, .78);
  --on-dark-line: rgba(255, 255, 255, .18);

  --font-head: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1300px;
  --gutter: 16px;
  --gap: 16px;
  --header-h: 60px;
  --section-py: clamp(3.5rem, 7vw, 7rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* -------------------------------------------------- Basis */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.1rem; max-width: 38rem; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
figure { margin: 0; }
figcaption { font-size: .875rem; color: var(--muted); margin-top: .6rem; max-width: 38rem; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 1.1rem;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.2rem); max-width: 12ch; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); max-width: 20ch; }
.h2--big { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.5rem; margin-bottom: .6rem; }

.skip-link {
  position: absolute; left: var(--gutter); top: -3rem;
  background: var(--black); color: #fff; padding: .5rem .75rem; z-index: 100;
}
.skip-link:focus { top: var(--gutter); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.section--green :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: #fff; }

/* -------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(44rem + 2 * var(--gutter)); }
.section { padding-block: var(--section-py); }
.section--sand { background: var(--sand); }
.section--green { background: var(--green-deep); color: var(--on-dark); }
.section--green figcaption, .section--green .contact { color: var(--on-dark-muted); }
#firmen { background: var(--green); }

/* Zweispaltig, bewusst ungleich (60/40 oder 40/60) */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 5vw, 5rem); align-items: start; }
@media (min-width: 900px) {
  .split--60 { grid-template-columns: 1.45fr 1fr; }
  .split--40 { grid-template-columns: 1fr 1.45fr; }
  .split__text { padding-top: clamp(0rem, 3vw, 2.5rem); }
}

/* -------------------------------------------------- Buttons und Links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.5rem;
  font: 500 1rem/1.2 var(--font-body);
  text-decoration: none;
  border: 1px solid var(--black); border-radius: 2px;
  background: var(--black); color: #fff;
  transition: background .2s var(--ease-out);
}
.btn:hover { background: #2c2c2c; }
.btn--light { background: #fff; color: var(--text); border-color: #fff; }
.btn--light:hover { background: var(--cream); }
.textlink {
  display: inline-block; min-height: 44px; padding-top: .35rem;
  font-weight: 500; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px;
}
.textlink:hover { text-decoration-thickness: 2px; }

/* -------------------------------------------------- Header (transparent über dem Hero, dann weiß) */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.site-header[data-state="top"] { background: transparent; border-color: transparent; color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--gap); }
.brand { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: .12em; text-decoration: none; }
.nav { display: none; gap: 1.5rem; align-items: center; }
.nav a { text-decoration: none; font-size: .9375rem; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: .2em; }
.nav .btn, .header-shop { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.site-header[data-state="top"] .btn { background: #fff; color: var(--text); border-color: #fff; }
@media (min-width: 900px) { .nav { display: flex; } .header-shop { display: none; } }

/* -------------------------------------------------- Hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; background: var(--green); color: var(--on-dark);
  padding-block: calc(var(--header-h) + 3rem) clamp(3.5rem, 8vw, 6rem);
}
.hero__bg, .hero__overlay { position: absolute; inset: 0; }
.hero__bg { z-index: 0; inset: -12% 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 32% 50%; }
@media (min-width: 900px) { .hero__bg img { object-position: 50% 50%; } }
.hero__overlay { z-index: 1; background: linear-gradient(180deg, rgba(20,20,18,.35) 0%, rgba(20,20,18,.10) 45%, rgba(20,20,18,.78) 100%); }
.hero__content { position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero__sub { font-size: 1.125rem; max-width: 30rem; color: var(--on-dark-muted); margin-bottom: 1.5rem; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; }
.hero__ctas .textlink { color: #fff; }

/* -------------------------------------------------- Bilder in verschiedenen Formaten */
.figure img { width: 100%; height: auto; }
.figure--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.figure--wide { margin-top: clamp(2.5rem, 5vw, 4rem); }
.figure--wide img { aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 60%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--gap); }
.pair img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.split__media > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Fakten als Definitionsliste */
.facts { margin: 1.75rem 0 0; display: grid; gap: .4rem; max-width: 34rem; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9375rem; }
.facts dd { margin: 0; }

/* -------------------------------------------------- Sorten als Zeilen */
.row { display: grid; gap: clamp(1rem, 3vw, 2.5rem) clamp(1.5rem, 5vw, 5rem); align-items: center; padding-block: clamp(1.25rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
.row__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.row__text .btn { margin-top: .5rem; }
@media (min-width: 760px) {
  .row { grid-template-columns: 1fr 1.2fr; }
  .row--flip .row__media { order: 2; }
  .row__media { max-width: 440px; }
  .row--flip .row__media { justify-self: end; }
}

/* -------------------------------------------------- Herstellung: das eine Grid der Seite */
.steps__head { display: grid; gap: .5rem 3rem; align-items: end; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.steps__head p { color: var(--on-dark-muted); margin: 0; }
@media (min-width: 900px) { .steps__head { grid-template-columns: 1fr 1fr; } .steps__head h2 { margin: 0; } }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem) var(--gap); counter-reset: step; }
.steps li { display: grid; gap: .6rem; align-content: start; }
.steps img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.steps p { font-size: .9375rem; color: var(--on-dark-muted); margin: 0; }
.steps p::before {
  counter-increment: step; content: counter(step) ". ";
  font-family: var(--font-head); color: #fff;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.bleed { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.bleed img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 55%; }
.bleed figcaption { margin-top: .75rem; }

/* -------------------------------------------------- Kaufen / Firmen */
.address { margin: 1.25rem 0; line-height: 1.6; }
.address a { text-decoration: underline; text-underline-offset: .2em; }
.note { font-weight: 500; }
.hours { margin: 0 0 1.75rem; display: grid; gap: .25rem; max-width: 30rem; }
.hours div { display: grid; grid-template-columns: 10rem 1fr; gap: .75rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
#kaufen h3 { margin-top: 1.5rem; }
.placeholder-row { margin-bottom: 1.25rem; }
.placeholder {
  display: inline-block; padding: .15rem .5rem; margin: 0 .25rem .25rem 0;
  border: 1px dashed var(--muted); border-radius: 2px;
  font-size: .875rem; color: var(--muted);
}
.contact { margin-top: 1.25rem; }
.contact a { text-decoration: underline; text-underline-offset: .2em; }
#firmen .btn { margin-top: .25rem; }

/* -------------------------------------------------- Fragen */
.qa { margin: 0; }
.qa dt { font-family: var(--font-head); font-size: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.qa dd { margin: .4rem 0 1.1rem; color: var(--muted); max-width: 38rem; }
.qa dd a { color: var(--text); }

/* -------------------------------------------------- Footer */
.site-footer { background: var(--black); color: var(--on-dark); padding-block: 3rem 1.5rem; font-size: .9375rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer__grid { display: grid; gap: 2rem; }
.footer__brand { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: .12em; margin-bottom: .5rem; }
.footer__logo { width: 120px; height: auto; margin-top: 1.25rem; filter: brightness(0) invert(1); }
.footer__links { display: grid; gap: .4rem; align-content: start; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--on-dark-line); font-size: .8125rem; color: var(--on-dark-muted); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* -------------------------------------------------- Bewegung: nur Hero (aus der alten Seite), sonst still */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero[data-animate] .hero__content > * { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero[data-animate] .hero__content > * { opacity: 1 !important; }
}

/* v5: Striezelmarkt-Foto (Hochformat) und Firmen-Anhänger */
.figure--markt img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 42%; }
.pair--tall { margin-top: 0; }
.pair--tall img { aspect-ratio: 4 / 5; }

/* -------------------------------------------------- Rechtstexte */
.legal-page { padding-top: calc(var(--header-h) + var(--section-py)); }
.legal-back { margin-bottom: 2rem; }
.legal-content { overflow-wrap: anywhere; }
.legal-content h1 { max-width: none; font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 2.5rem; }
.legal-content h2 { max-width: none; margin-top: 2.5rem; }
.legal-content h3 { margin-top: 1.75rem; }
.legal-content p { max-width: none; }
.legal-content ul, .legal-content ol { padding-left: 1.5rem; margin-block: 1rem 1.5rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content ol[type="a"] { list-style: lower-alpha; }
.legal-content li + li { margin-top: .75rem; }
.legal-content div[style*="border"] { padding: 1.25rem; margin-block: 1.75rem; }
.legal-content div[style*="border"] h3:first-child { margin-top: 0; }
