/* Fahrrad Rith · Relaunch-Draft · Design-System siehe docs/DESIGN.md */

:root {
  --ink: #171A13;
  --panel: #222720;
  --paper: #FAFAF5;
  --surface: #F0F0E9;
  --gold: #EECD00;
  --t-dark: #F4F5ED;
  --t-dark-soft: #A9AEA0;
  --t-light: #171A13;
  --t-light-soft: #5B5F55;
  --line-dark: rgba(244, 245, 237, 0.16);
  --line-light: rgba(23, 26, 19, 0.14);
  --font-body: "Barlow", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--t-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

/* Grid-Kinder duerfen unter ihre min-content-Breite schrumpfen (Mobile-Overflow-Schutz) */
.stats > *, .card-grid > *, .steps > *, .tile-grid > *, .footer-grid > *, .split > * { min-width: 0; }
body { overflow-wrap: break-word; }

a { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

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

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.95;
  text-wrap: balance;
}

h1 { font-weight: 800; font-style: italic; font-size: clamp(52px, 9vw, 118px); letter-spacing: 0.005em; }
h2 { font-weight: 800; font-style: italic; font-size: clamp(38px, 5.4vw, 72px); letter-spacing: 0.005em; }
h3 { font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.05; }

p { max-width: 62ch; }

.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 10px;
  background: var(--gold);
  transform: skewX(-12deg);
}

/* ---------- Sektionen ---------- */

.section { padding: 96px 0; }
@media (min-width: 1024px) { .section { padding: 140px 0; } }

.section--dark { background: var(--ink); color: var(--t-dark); }
.section--dark .muted { color: var(--t-dark-soft); }
.section--light .muted { color: var(--t-light-soft); }

.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 56px; }
.section-head .eyebrow { color: inherit; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--primary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.section--dark .btn--primary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.btn:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn:disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}
.text-link:hover { border-color: currentColor; }

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

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 40;
  color: var(--t-dark);
}

.site-header--solid { position: static; background: var(--ink); }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* padding-block, nicht die Shorthand: sonst kippt das horizontale Padding von .container auf 0
     und das Logo steht nicht mehr in der Flucht mit dem Seiteninhalt. */
  padding-block: 20px;
}

.site-header__logo img { width: 132px; height: 54px; }

.site-nav { display: none; align-items: center; gap: 32px; }
@media (min-width: 1024px) { .site-nav { display: flex; } }

.site-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--gold); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  /* color: inherit ist Pflicht: ein <button> erbt color nicht (UA-Stylesheet setzt buttontext),
     sonst laeuft currentColor der Striche auf Schwarz und verschwindet auf dem dunklen Header. */
  color: inherit;
  padding: 10px;
  /* haelt das Touch-Target gross, laesst die Striche aber optisch auf der Container-Kante sitzen */
  margin-right: -10px;
  min-height: 44px;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span { width: 26px; height: 3px; background: currentColor; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  background: var(--ink);
  color: var(--t-dark);
  padding: 24px;
  border-top: 1px solid var(--line-dark);
}
.mobile-nav.is-open { display: block; position: relative; z-index: 39; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav a[aria-current="page"] { color: var(--gold); }

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

.hero {
  position: relative;
  min-height: min(86vh, 880px);
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--t-dark);
  overflow: hidden;
}

.hero--short { min-height: min(62vh, 620px); }

.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 26, 19, 0.35) 0%, rgba(23, 26, 19, 0.15) 45%, rgba(23, 26, 19, 0.82) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 88px;
  padding-top: 180px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__content .eyebrow { color: var(--gold); }
.hero__content .eyebrow::before { background: var(--gold); }
.hero__content .lede { color: var(--t-dark); max-width: 56ch; }

/* ---------- Kacheln ---------- */

.tile-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tile-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  background: var(--panel);
  color: var(--t-dark);
  text-decoration: none;
  overflow: hidden;
}

.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile:hover .tile__img { transform: scale(1.04); }

.tile__img--product { object-fit: contain; padding: 12%; background: var(--surface); }

.tile::after {
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(180deg, rgba(23, 26, 19, 0) 0%, rgba(23, 26, 19, 0.78) 100%);
}

.tile__body { position: relative; z-index: 2; padding: 24px; display: flex; flex-direction: column; gap: 6px; }

.tile__title { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 34px; text-transform: uppercase; line-height: 1; }

.tile__claim { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* ---------- Split (Bild + Text) ---------- */

.split { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.split__body { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.split img { width: 100%; }

/* ---------- Stat-Leiste ---------- */

.stats { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { display: flex; flex-direction: column; gap: 4px; border-top: 3px solid var(--gold); padding-top: 16px; }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.stat .muted { font-size: 14px; }

/* ---------- Full-bleed-Band ---------- */

.band {
  position: relative;
  padding: 140px 0;
  background: var(--ink);
  color: var(--t-dark);
  overflow: hidden;
}
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.band__content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.band__content .eyebrow { color: var(--gold); }

/* ---------- Schritt-Liste ---------- */

.steps { display: grid; gap: 24px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps--5 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps--5 { grid-template-columns: repeat(5, 1fr); } }

.step { counter-increment: step; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-dark); padding-top: 18px; }
.section--light .step, .page-light .step { border-color: var(--line-light); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 30px;
  color: var(--gold);
}
.step h3 { font-size: 21px; }
.step p { font-size: 15.5px; }

/* ---------- Marken-Liste ---------- */

.brand-list { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; }
.brand-list a, .brand-list span {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(30px, 4.4vw, 54px);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.15;
  transition: color 0.15s ease;
}
.brand-list a:hover { color: var(--gold); -webkit-text-stroke: 0; }

/* ---------- Zitat ---------- */

.quote { border-left: 4px solid var(--gold); padding-left: 28px; display: flex; flex-direction: column; gap: 12px; }
.quote p { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; text-transform: none; }
.quote cite { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- Gold-CTA-Band ---------- */

.cta-band { background: var(--gold); color: var(--ink); padding: 96px 0; }
.cta-band__inner { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.cta-band .btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta-band .btn--primary:hover { background: transparent; color: var(--ink); }
.cta-band .muted { color: rgba(23, 26, 19, 0.72); }
.cta-band .eyebrow::before { background: var(--ink); }

/* ---------- Info-Karten (Service etc.) ---------- */

.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--surface); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.section--dark .card { background: var(--panel); }
.card h3 { font-size: 24px; }
.card p { font-size: 15.5px; }
.card .text-link { margin-top: auto; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid currentColor;
}
.chip--gold { border-color: var(--gold); color: inherit; }
.chip--gold::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: skewX(-12deg); }

/* ---------- Tabellen (Öffnungszeiten) ---------- */

.hours { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line-light); }
.section--dark .hours td, .cta-band .hours td { border-color: currentColor; }
.hours td:first-child { padding-right: 48px; font-weight: 600; }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-weight: 600;
  font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 0 24px; }

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

.site-footer { background: var(--ink); color: var(--t-dark); padding: 80px 0 40px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.footer-grid { display: grid; gap: 48px; grid-template-columns: 1fr; margin-bottom: 64px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.footer-col .muted { color: var(--t-dark-soft); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
  font-size: 13.5px;
  color: var(--t-dark-soft);
}
.footer-legal nav { display: flex; gap: 24px; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */

.mt-8 { margin-top: 8px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }

/* ---------- Terminbuchung (Mock) ---------- */

.booking { max-width: 760px; }

.booking__progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 40px;
}

.booking__progress span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-light-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.booking__progress span::before {
  content: "";
  width: 14px;
  height: 8px;
  background: var(--line-light);
  transform: skewX(-12deg);
}

.booking__progress span.is-active { color: var(--t-light); }
.booking__progress span.is-active::before { background: var(--gold); }
.booking__progress span.is-done { color: var(--t-light); }
.booking__progress span.is-done::before { background: var(--ink); }

.booking-step { display: none; flex-direction: column; gap: 24px; }
.booking-step.is-active { display: flex; }

.option-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .option-grid { grid-template-columns: 1fr 1fr; } }

.option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  background: var(--surface);
  border: 2px solid transparent;
  padding: 20px 22px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option:hover { border-color: var(--line-strong, var(--line-light)); }
.option[aria-pressed="true"] { border-color: var(--gold); background: var(--paper); }

.option__title { font-family: var(--font-display); font-weight: 700; font-size: 21px; text-transform: uppercase; }
.option__hint { font-size: 14.5px; color: var(--t-light-soft); }

.slot-days { display: flex; gap: 10px; flex-wrap: wrap; }

.slot-day {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  background: var(--surface);
  border: 2px solid transparent;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.slot-day[aria-pressed="true"] { border-color: var(--gold); background: var(--paper); }

.slot-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 700px) { .slot-grid { grid-template-columns: repeat(5, 1fr); } }

.slot {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 0;
  text-align: center;
  background: var(--surface);
  border: 2px solid transparent;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.slot[aria-pressed="true"] { border-color: var(--gold); background: var(--paper); }
.slot:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.booking label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }

.booking input[type="text"], .booking input[type="email"], .booking input[type="tel"], .booking textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-light);
  border-radius: 0;
  background: var(--paper);
  color: var(--t-light);
  min-height: 48px;
}
.booking input:focus-visible, .booking textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.booking__row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .booking__row { grid-template-columns: 1fr 1fr; } }

.booking__nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; margin-top: 8px; }

.booking__summary { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; }
.booking__summary strong { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; }

.booking__demo-note { font-size: 13px; color: var(--t-light-soft); }

.booking__success { display: none; flex-direction: column; gap: 20px; align-items: flex-start; }
.booking__success.is-active { display: flex; }
.booking__success h2 { font-size: clamp(32px, 4vw, 52px); }

.section-head--tight { margin-bottom: 0; }
.booking__h2 { font-size: clamp(28px, 3vw, 40px); }
