/*
 * Grundlayout für die statischen Unterseiten. Kopf, Fuß und Handy-Leiste kommen aus chrome.css (gemeinsam mit dem
 * Shop). Farben und Abstände ausschließlich über tokens.css.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--ww-font-sans);
  font-size: var(--ww-font-size-base);
  line-height: var(--ww-line-height);
  color: var(--ww-color-anthracite);
  background: var(--ww-color-plaster);
}

/* chrome.css sets display on e.g. .site-header__status; [hidden] must still win until opening-hours-page.js runs. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

/* Two-tone focus as in the shop: the halo covers offset and ring. */
:focus-visible {
  outline: var(--ww-focus-ring);
  outline-offset: 2px;
  box-shadow: var(--ww-focus-halo);
}

/* Text for screen readers only, as in the shop (app.css), e.g. "(neuer Tab)". */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* "Zum Inhalt": off screen until focused, then above the sticky header. */
.skip-link {
  position: absolute;
  top: var(--ww-space-2);
  left: var(--ww-space-2);
  z-index: 40;
  padding: var(--ww-space-2) var(--ww-space-3);
  border-radius: var(--ww-radius);
  background: var(--ww-color-brass);
  color: var(--ww-color-anthracite);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--ww-space-3)));
}

.skip-link:focus {
  transform: none;
}

/* Below 600 px the fixed mobile bar covers the bottom; anchors keep clear of it (as in the shop). */
@media (max-width: 599.98px) {
  html {
    scroll-padding-bottom: calc(var(--ww-space-6) + env(safe-area-inset-bottom, 0px));
  }
}

.container {
  max-width: var(--ww-content-width);
  margin: 0 auto;
  padding: 0 var(--ww-space-3);
}

/* Inhalt */
main > .container {
  padding-top: var(--ww-space-5);
  padding-bottom: var(--ww-space-5);
}

h1 {
  font-family: var(--ww-font-serif);
  font-size: var(--ww-font-size-xl);
  margin: 0 0 var(--ww-space-3);
}

/* Green band at the top of a subpage, like the shop's hero (.hero). */
.page-hero {
  background: var(--ww-color-green);
  color: var(--ww-color-plaster);
}

.page-hero__inner {
  max-width: var(--ww-content-width);
  margin: 0 auto;
  padding: var(--ww-space-5) var(--ww-space-3);
}

.page-hero__eyebrow {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ww-color-plaster) 78%, var(--ww-color-green));
}

.page-hero__title {
  margin: 0.8rem 0 0;
  font-family: var(--ww-font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

.page-hero__lead {
  margin: 1.1rem 0 0;
  max-width: 40rem;
  font-size: 1.06rem;
  color: color-mix(in srgb, var(--ww-color-plaster) 85%, var(--ww-color-green));
}

.button {
  display: inline-block;
  padding: var(--ww-space-2) var(--ww-space-4);
  border-radius: var(--ww-radius);
  background: var(--ww-color-brass);
  color: var(--ww-color-anthracite);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--ww-color-brass-soft);
}

.button--secondary {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 2px var(--ww-color-brass-soft);
}

.button--secondary:hover {
  background: color-mix(in srgb, var(--ww-color-brass) 22%, var(--ww-color-surface));
}

/* Sections of the subpages: bands of plaster, tint or green. */
.section {
  padding: var(--ww-space-5) 0;
}

.section--tint {
  background: var(--ww-color-tint);
}

.section--green {
  background: var(--ww-color-green);
  color: var(--ww-color-plaster);
}

/* Photo behind the second section (Waffen Wieser, 18.11.2026): Werkstatt „Leistungen“, Sortiment „Bereiche“,
   Einsteiger „Was wir für Sie tun“ (Dani, 19.11.2026).
   Used with .section--green; the green veil keeps the light text readable. Phones load the small file,
   wider screens the 1600 px one. */
.section--photo {
  --ww-section-photo: none;
  background:
    linear-gradient(
      color-mix(in srgb, var(--ww-color-green) 82%, transparent),
      color-mix(in srgb, var(--ww-color-green) 70%, transparent)
    ),
    var(--ww-section-photo) center / cover no-repeat,
    var(--ww-color-green);
}

/* Werkstatt „Leistungen“ (Dani, 18.11.2026): the facade fills the width from the top, the lettering stays
   free and lightly veiled above the cards, the cards lie over the rest of the photo. The photo is
   2000 × 893 (sky cut off); the sign ends at about 20 % of the width, so the content starts below 21vw. */
.section--photo-werkstatt {
  --ww-section-photo: url("/img/foto-werkstatt-800.jpg");
  --ww-sign-end: 21vw;
  padding-top: calc(var(--ww-sign-end) + var(--ww-space-4));
  background:
    linear-gradient(
      color-mix(in srgb, var(--ww-color-green) 15%, transparent) 0,
      color-mix(in srgb, var(--ww-color-green) 15%, transparent) var(--ww-sign-end),
      color-mix(in srgb, var(--ww-color-green) 78%, transparent) calc(var(--ww-sign-end) + var(--ww-space-4)),
      /* fades into plain green where the photo ends (893 / 2000 of the width), so it has no hard edge */
      var(--ww-color-green) 44vw
    ),
    var(--ww-section-photo) center top / 100% auto no-repeat,
    var(--ww-color-green);
}

.section--photo-sortiment {
  --ww-section-photo: url("/img/foto-sortiment-800.jpg");
}

/* Red deer in the fog, sky cut off (1600 × 737); the stag stands left of the middle. */
.section--photo-einsteiger {
  --ww-section-photo: url("/img/foto-einsteiger-800.jpg");
}

/* Checklist on green: brass boxes instead of green ones. */
.section--green .checklist li::before {
  border-color: var(--ww-color-brass);
  background-image: linear-gradient(var(--ww-color-brass), var(--ww-color-brass));
}

@media (min-width: 50rem) {
  .section--photo-werkstatt {
    --ww-section-photo: url("/img/foto-werkstatt-1600.jpg");
  }

  /* The wide-screen .section padding further down must not move the cards up over the lettering. */
  .section.section--photo-werkstatt {
    padding-top: calc(var(--ww-sign-end) + var(--ww-space-4));
  }

  .section--photo-sortiment {
    --ww-section-photo: url("/img/foto-sortiment-1600.jpg");
  }

  .section--photo-einsteiger {
    --ww-section-photo: url("/img/foto-einsteiger-1600.jpg");
  }
}

.section__title {
  margin: 0 0 var(--ww-space-4);
  font-family: var(--ww-font-serif);
  font-size: var(--ww-font-size-lg);
  line-height: 1.2;
}

.prose {
  max-width: 38rem;
}

.prose p {
  margin: 0 0 var(--ww-space-3);
}

/* Zwischenüberschriften im Text (Review PR #27): Serifenschrift, etwas kleiner als .section__title. */
.prose h3 {
  margin: var(--ww-space-4) 0 var(--ww-space-2);
  font-family: var(--ww-font-serif);
  font-size: 1.1rem;
  line-height: 1.3;
}

/* Two columns from 900 px, one column on phones. */
.split {
  display: grid;
  gap: var(--ww-space-5);
}

/* Numbered steps; the number comes from a CSS counter. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: var(--ww-space-3);
  padding: var(--ww-space-3) 0;
  border-top: 1px solid var(--ww-color-line-on-green);
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--ww-font-serif);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ww-color-brass);
}

.steps h3 {
  margin: 0 0 var(--ww-space-1);
  font-size: var(--ww-font-size-lg);
}

.steps p {
  margin: 0;
  color: var(--ww-color-muted-on-green);
}

.card-grid {
  display: grid;
  gap: var(--ww-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: var(--ww-space-3) var(--ww-space-4);
  /* Own text colour: cards also sit on green sections. */
  color: var(--ww-color-anthracite);
  background: var(--ww-color-surface);
  border: 1px solid var(--ww-color-line);
  border-radius: var(--ww-radius);
}

.card p {
  margin: 0;
  color: var(--ww-color-muted);
}

.card__title {
  margin: 0 0 var(--ww-space-1);
  font-family: var(--ww-font-serif);
  font-size: var(--ww-font-size-lg);
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ww-space-3);
  margin: var(--ww-space-4) 0 0;
}

/* „Termin anfragen“ on Werkstatt and Einsteiger (Dani, 19.11.2026): text and note left, green box with phone, e-mail and
   buttons right; stacked on phones. */
.appointment {
  border-top: 1px solid color-mix(in srgb, var(--ww-color-brass) 50%, transparent);
}

.appointment__grid {
  display: grid;
  gap: var(--ww-space-5);
  align-items: center;
}

.appointment__eyebrow {
  margin: 0 0 var(--ww-space-1);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ww-color-muted);
}

.appointment__title {
  margin: 0 0 var(--ww-space-2);
  font-family: var(--ww-font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.appointment__note {
  display: inline-flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: var(--ww-space-3) 0 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--ww-color-brass);
  background: color-mix(in srgb, var(--ww-color-brass) 12%, transparent);
  font-size: 0.95rem;
}

.appointment__note svg {
  flex: none;
  margin-top: 2px;
}

.appointment__box {
  padding: var(--ww-space-5);
  border-radius: var(--ww-radius);
  background: var(--ww-color-green);
  color: var(--ww-color-plaster);
}

.appointment__label {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
}

.appointment__value {
  margin: 2px 0 var(--ww-space-3);
  font-family: var(--ww-font-serif);
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}

.appointment__value a {
  color: inherit;
  text-decoration: none;
}

.appointment__value a:hover {
  text-decoration: underline;
}

.cta__buttons.appointment__buttons {
  margin-top: 0;
}

.appointment__box .button--secondary {
  color: var(--ww-color-plaster);
}

@media (min-width: 50rem) {
  .appointment__grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* Teamfoto auf „Über uns“ (Dani, 25.11.2026): volle Inhaltsbreite, Seitenverhältnis aus width/height,
   grüner Rahmen (26.11.2026). */
.team-photo {
  display: block;
  width: 100%;
  height: auto;
  border: var(--ww-space-2) solid var(--ww-color-green);
  border-radius: var(--ww-radius);
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ww-space-2) var(--ww-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--ww-font-serif);
  font-size: var(--ww-font-size-lg);
  font-weight: 700;
  color: var(--ww-color-muted);
}

.checklist {
  display: grid;
  gap: var(--ww-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: var(--ww-space-2);
}

.checklist li::before {
  content: "";
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  border: 2px solid var(--ww-color-green);
  border-radius: 2px;
  background: linear-gradient(var(--ww-color-green), var(--ww-color-green)) center / 6px 6px no-repeat;
}

/* Example package box (Einsteiger); own text colour, it lies on the green photo section. */
.package {
  color: var(--ww-color-anthracite);
  padding: var(--ww-space-4);
  background: var(--ww-color-surface);
  border: 1px solid var(--ww-color-line);
  border-radius: var(--ww-radius);
}

.package__eyebrow {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ww-color-muted);
}

.package__title {
  margin: var(--ww-space-1) 0 var(--ww-space-2);
  font-family: var(--ww-font-serif);
  font-size: var(--ww-font-size-lg);
}

.package p {
  margin: 0 0 var(--ww-space-3);
}

.package__action {
  margin-bottom: 0;
}

/* Contact page: hours, phone and mail, directions; three columns from 900 px. */
.contact {
  display: grid;
  gap: var(--ww-space-5);
}

.contact__block > :last-child {
  margin-bottom: 0;
}

.contact__label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ww-color-muted);
}

.contact__value {
  margin: 0 0 var(--ww-space-3);
  font-size: var(--ww-font-size-lg);
}

.contact__address {
  margin: 0 0 var(--ww-space-3);
  font-style: normal;
}

/* "Route planen" with .button, same size as in the shop (ContactBlock.css). */
.contact__route {
  display: inline-flex;
  margin-top: var(--ww-space-3);
  padding: 0.85rem 1.2rem;
  line-height: 1;
}

.contact__note {
  margin: var(--ww-space-3) 0 0;
  color: var(--ww-color-muted);
}

/* Hours table as in the shop (OpeningHours.css); today is marked by opening-hours-page.js. */
.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hours th,
.hours td {
  padding: var(--ww-space-2) 0;
  border-bottom: 1px solid var(--ww-color-line);
}

.hours th {
  font-weight: 400;
  text-align: left;
}

.hours td {
  text-align: right;
  font-size: 0.82rem;
  font-variant-numeric: lining-nums tabular-nums;
}

.hours .is-today th,
.hours .is-today td {
  font-weight: 700;
  color: var(--ww-color-green);
}

/* Impressum and Datenschutz: plain text with headings. */
.legal h2 {
  margin: var(--ww-space-5) 0 var(--ww-space-2);
  font-family: var(--ww-font-serif);
  font-size: var(--ww-font-size-lg);
  line-height: 1.2;
}

.legal > h2:first-child {
  margin-top: 0;
}

.legal address {
  margin: 0 0 var(--ww-space-3);
  font-style: normal;
}

.legal__facts {
  margin: 0 0 var(--ww-space-3);
}

.legal__facts dt {
  font-weight: 700;
}

.legal__facts dd {
  margin: 0 0 var(--ww-space-2);
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: repeat(3, 1fr);
  }

  .section {
    padding: var(--ww-space-6) 0;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--ww-space-6);
    align-items: start;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    max-width: 44rem;
  }
}
