/* ==========================================================================
   Milado Haarstudio – style.css
   Gestaltungsprinzip „Die Kontur“: feine 1-px-Linien, ein durchgehender
   Schnittwinkel an dunklen Sektionen und Bildecken, der Kreis (Monogramm)
   als einziges rundes Motiv neben den CTAs.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Schriften – lokal gehostet (DSGVO), OFL-lizenziert, Latin-Subset
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  font-optical-sizing: auto;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-italic-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Farben – Milado-Grün als Marke fortgeführt, Kontraste AA-geprüft */
  --color-primary: #1D3A2D;        /* Tannengrün (Marke) – auf Creme 10,8:1 */
  --color-primary-dark: #142A20;   /* dunkle Sektionen – Creme darauf 13,3:1 */
  --color-accent: #C9A227;         /* Messing – NUR auf dunklem Grund (5,1–6,3:1) */
  --color-surface: #F4EFE6;        /* Creme-Grund */
  --color-surface-2: #EAE3D4;      /* dunkleres Creme */
  --color-card: #FAF7EF;           /* Karten auf Creme */
  --color-text: #1B231E;           /* auf Creme 14,0:1 (AAA) */
  --color-text-muted: #4A554E;     /* auf Creme 6,8:1 (AA) */
  --color-on-dark: #F4EFE6;
  --color-on-dark-muted: #BDB3A0;  /* auf primary-dark ca. 8:1 */
  --color-open: #8FCB9B;           /* Status „geöffnet“ auf dunklem Grund */
  --color-line-light: rgba(29, 58, 45, .18);
  --color-line-dark: rgba(244, 239, 230, .18);

  /* Typografie */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-xs: .8rem;
  --text-sm: clamp(.875rem, .85rem + .2vw, .95rem);
  --text-base: clamp(1rem, .95rem + .25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + .4vw, 1.3rem);
  --text-xl: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
  --text-2xl: clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
  --text-3xl: clamp(2.1rem, 1.5rem + 3.5vw, 3.6rem);

  /* Abstände */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --section-pad: clamp(4rem, 9vw, 6.5rem);

  /* Form */
  --radius: 10px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20, 42, 32, .07), 0 10px 30px -14px rgba(20, 42, 32, .28);
  --corner: 20px;                              /* abgeschnittene Bildecke */
  --cut-h: clamp(1.5rem, 4vw, 3.5rem);         /* Höhe der Schnittkante */
  --container: 72rem;
  --header-h: 4.5rem;
  --focus: var(--color-primary);
}

/* --------------------------------------------------------------------------
   2. Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + var(--space-2));
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}

p { margin: 0 0 var(--space-2); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

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

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

.skip-link {
  position: absolute;
  top: var(--space-1);
  left: var(--space-1);
  z-index: 200;
  padding: var(--space-1) var(--space-2);
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transform: translateY(-300%);
}
.skip-link:focus-visible { transform: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   3. Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .7em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-1);
}

.btn--ghost-dark {
  border-color: var(--color-line-dark);
  color: var(--color-on-dark);
  background: transparent;
}

.btn--ghost-light {
  border-color: var(--color-line-light);
  color: var(--color-primary);
  background: transparent;
}

@media (hover: hover) {
  .btn--primary:hover { background: #D8B23A; transform: translateY(-2px); }
  .btn--ghost-dark:hover { border-color: var(--color-on-dark); }
  .btn--ghost-light:hover { border-color: var(--color-primary); }
}

.btn--small {
  min-height: 44px;
  padding: .5em 1.15em;
  font-size: var(--text-sm);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 44px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}
.link-arrow .arrow { transition: transform .18s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow--on-dark { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-line-dark);
  --focus: var(--color-accent);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .55); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--header-h);
  padding-block: var(--space-1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--color-on-dark);
}
.brand__mark { width: 42px; height: 42px; }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: .02em;
  white-space: nowrap;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.25rem, 1vw, 1rem);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4em .8em;
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color .18s ease;
}
.nav__link:hover { color: var(--color-on-dark); }
.nav__link.is-active { color: var(--color-accent); }

.site-header .btn { margin-left: var(--space-1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-on-dark);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile: Menü als Vollbild-Overlay (nur mit JS; ohne JS bleibt die Nav
   als umbrechende Zeile sichtbar) */
@media (max-width: 899px) {
  .brand__word { font-size: 1.2rem; }
  .js .nav-toggle { display: block; }
  /* fixed-Overlay ist aus dem Flex-Fluss: CTA selbst nach rechts schieben */
  .js .site-header .btn { margin-left: auto; }
  .js .nav-toggle { margin-left: var(--space-1); }
  .no-js .site-header .btn { margin-left: auto; }
  .js .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    display: none;
    margin: 0;
    padding: var(--space-4) clamp(1.25rem, 4vw, 2.5rem) var(--space-5);
    background: var(--color-primary-dark);
  }
  .js .nav.is-open {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-4);
  }
  .js .nav__list { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .js .nav__link {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-on-dark);
    padding-inline: 0;
  }
  .no-js .nav { flex-basis: 100%; order: 3; margin-left: 0; }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .nav-toggle { display: none; }
  .nav__cta-note {
    color: var(--color-on-dark-muted);
    font-size: var(--text-sm);
  }
}

@media (min-width: 900px) {
  .nav__cta-note { display: none; }
}

/* Sehr kleine Viewports: Header kompakt halten */
@media (max-width: 380px) {
  .brand__word { font-size: 1.05rem; }
  .site-header .btn--small { padding: .5em .9em; }
}

/* --------------------------------------------------------------------------
   5. Sektionen & Schnittkanten
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-pad); }

.section--dark {
  --focus: var(--color-accent);
  background: var(--color-primary-dark);
  color: var(--color-on-dark);
  clip-path: polygon(0 var(--cut-h), 100% 0, 100% calc(100% - var(--cut-h)), 0 100%);
  padding-block: calc(var(--section-pad) + var(--cut-h));
}

.section-head { max-width: 46rem; margin-bottom: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 2.2em;
  border-top: 1px solid currentColor;
}
.section--dark .eyebrow { color: var(--color-accent); }

.section-title { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.section-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 40rem;
}
.section--dark .section-lead { color: var(--color-on-dark-muted); }
.section-head--center .section-lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   6. Hero + Vertrauen
   -------------------------------------------------------------------------- */
.hero {
  --focus: var(--color-accent);
  position: relative;
  isolation: isolate;
  background: var(--color-primary-dark);
  color: var(--color-on-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-h)), 0 100%);
  padding-bottom: var(--cut-h);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 42, 32, .86) 0%,
    rgba(20, 42, 32, .66) 45%,
    rgba(20, 42, 32, .9) 100%
  );
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62vh; /* Fallback für Browser ohne svh */
  min-height: min(46rem, calc(100svh - var(--header-h) - var(--cut-h)));
  padding-block: var(--space-5) var(--space-4);
}

.hero__title {
  font-size: var(--text-3xl);
  max-width: 16ch;
  margin-bottom: var(--space-2);
}

.hero__lead {
  font-size: var(--text-lg);
  color: var(--color-on-dark-muted);
  max-width: 38rem;
  margin-bottom: var(--space-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.hero__actions--center { justify-content: center; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4em 1.4em;
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
}
.hero__facts strong { color: var(--color-on-dark); font-weight: 600; }

.status-badge {
  display: none; /* wird per JS gefüllt und eingeblendet; ohne JS entfällt sie */
  align-items: center;
  gap: .5em;
  padding: .3em .9em;
  border: 1px solid var(--color-line-dark);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
}
.status-badge.is-on { display: inline-flex; }
.status-badge__dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-open);
}
.status-badge--closed .status-badge__dot { background: var(--color-on-dark-muted); }

/* Vertrauens-Leiste – Teil des dunklen Hero-Blocks, durch Hairline getrennt */
.trust {
  border-top: 1px solid var(--color-line-dark);
  padding-block: var(--space-4) calc(var(--space-5));
}
.trust__grid {
  display: grid;
  gap: var(--space-3);
}
.trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.trust__score {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--color-on-dark);
}
.trust__stars { color: var(--color-accent); display: inline-flex; gap: 2px; }
.trust__stars svg { width: 18px; height: 18px; fill: currentColor; }

/* Dezenter Shine: ein Glanz läuft periodisch über die fünf Sterne */
@media (prefers-reduced-motion: no-preference) {
  .trust__stars svg { animation: star-shine 4.5s ease-in-out infinite; }
  .trust__stars svg:nth-child(2) { animation-delay: .18s; }
  .trust__stars svg:nth-child(3) { animation-delay: .36s; }
  .trust__stars svg:nth-child(4) { animation-delay: .54s; }
  .trust__stars svg:nth-child(5) { animation-delay: .72s; }
}
@keyframes star-shine {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0 rgba(216, 178, 58, 0)); }
  6%       { filter: brightness(1.65) drop-shadow(0 0 4px rgba(216, 178, 58, .85)); }
  14%      { filter: brightness(1) drop-shadow(0 0 0 rgba(216, 178, 58, 0)); }
}
.trust__label {
  margin: 0;
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.trust__label strong { color: var(--color-on-dark); font-weight: 600; }

@media (min-width: 700px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item + .trust__item {
    border-left: 1px solid var(--color-line-dark);
    padding-left: var(--space-3);
  }
}

/* --------------------------------------------------------------------------
   7. Leistungen & Preise
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  background: var(--color-card);
  border: 1px solid var(--color-line-light);
  border-radius: var(--radius);
}
.service-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-line-light);
}
.service-list { flex: 1; }
.service-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .1rem var(--space-2);
  padding-block: .7rem;
}
.service-list__item + .service-list__item { border-top: 1px solid var(--color-line-light); }
.service-list__name { font-weight: 500; line-height: 1.4; }
.service-list__duration {
  grid-column: 1;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}
.service-list__price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}
.service-list__price .ab {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}
.service-card__note {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}
.service-card__cta { margin-top: var(--space-2); }

/* sechste Kachel: Buchung */
.service-card--booking {
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-2);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-dark);
  --focus: var(--color-accent);
}
.service-card--booking .service-card__title {
  border-bottom-color: var(--color-line-dark);
  color: var(--color-on-dark);
}
.service-card--booking p { color: var(--color-on-dark-muted); margin: 0; }

/* --------------------------------------------------------------------------
   8. Über uns
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.1fr .9fr; gap: var(--space-6); }
}

.about__text p { max-width: 38rem; }
.about__cta { margin-top: var(--space-3); }

.about__facts {
  margin-top: var(--space-3);
  border-top: 1px solid var(--color-line-light);
}
.about__facts li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding-block: .8rem;
  border-bottom: 1px solid var(--color-line-light);
  font-weight: 500;
}
.about__facts li::before {
  content: "";
  flex: none;
  width: .55em;
  height: .55em;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  transform: translateY(-.05em);
}

.figure {
  margin: 0;
}
.figure__frame {
  overflow: hidden;
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - var(--corner)) 0, 100% var(--corner), 100% 100%, 0 100%);
}
.figure__frame img { width: 100%; }
.figure figcaption {
  margin-top: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   9. Einblicke (Galerie)
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - var(--corner)) 0, 100% var(--corner), 100% 100%, 0 100%);
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery__item--wide img { aspect-ratio: 8 / 5; }
@media (hover: hover) {
  .gallery__item:hover img { transform: scale(1.03); }
}

/* --------------------------------------------------------------------------
   10. Abschluss-CTA
   -------------------------------------------------------------------------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final__mark {
  position: absolute;
  right: clamp(-6rem, -8vw, -2rem);
  top: 50%;
  width: clamp(16rem, 30vw, 26rem);
  opacity: .07;
  transform: translateY(-50%);
  pointer-events: none;
}
.cta-final__inner { position: relative; max-width: 44rem; }
.cta-final__title { font-size: var(--text-3xl); }
.cta-final .btn { margin-top: var(--space-2); }
.cta-final__hint {
  margin-top: var(--space-2);
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  --focus: var(--color-accent);
  background: var(--color-primary-dark);
  color: var(--color-on-dark);
  clip-path: polygon(0 var(--cut-h), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--section-pad) + var(--cut-h));
}
.site-footer__grid {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

.site-footer h2,
.site-footer h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
  margin-bottom: var(--space-2);
}
.site-footer a { text-decoration: none; }
.site-footer__brand p {
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
  max-width: 26rem;
}
.site-footer .brand { margin-bottom: var(--space-2); }

.footer-list li { margin-bottom: .5rem; }
.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
@media (hover: hover) {
  .footer-list a:hover { color: var(--color-accent); }
}
.footer-list address { font-style: normal; line-height: 1.6; }

.hours-table { border-collapse: collapse; font-size: var(--text-sm); }
.hours-table th,
.hours-table td { padding: .25rem 0; text-align: left; font-weight: 400; }
.hours-table th { color: var(--color-on-dark-muted); padding-right: var(--space-2); }
.hours-table td { color: var(--color-on-dark); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  border-top: 1px solid var(--color-line-dark);
  color: var(--color-on-dark-muted);
  font-size: var(--text-xs);
}
.site-footer__bottom nav ul { display: flex; gap: var(--space-3); }
.site-footer__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-on-dark-muted);
}
.site-footer__bottom a:hover { color: var(--color-on-dark); }
.maker-credit a { color: var(--color-on-dark); border-bottom: 1px solid var(--color-line-dark); }

/* --------------------------------------------------------------------------
   12. Kontur-Linie (Scroll-Fortschritt) – Eigenständigkeits-Moment
   Ohne JS und bei prefers-reduced-motion: statisch voll eingezeichnet.
   -------------------------------------------------------------------------- */
.scroll-line {
  --p: 1; /* JS setzt den Fortschritt 0–1 */
  position: fixed;
  z-index: 90;
  pointer-events: none;
  color: var(--color-accent);
}
.scroll-line--bar {
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-line-dark);
}
.scroll-line--bar::after {
  content: "";
  display: block;
  height: 100%;
  background: currentColor;
  transform: scaleX(var(--p));
  transform-origin: left;
}
.scroll-line--side { display: none; }

@media (min-width: 1100px) {
  .scroll-line--bar { display: none; }
  .scroll-line--side {
    display: block;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    height: min(50vh, 26rem);
    width: 12px;
  }
  .scroll-line--side svg { height: 100%; width: 100%; }
  .scroll-line--side .track { stroke: var(--color-line-dark); }
  .scroll-line--side .progress {
    stroke: currentColor;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--p));
  }
  .scroll-line--side .end-dot { fill: currentColor; }
}

/* --------------------------------------------------------------------------
   13. Prose (Impressum/Datenschutz) & 404
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--color-primary-dark);
  color: var(--color-on-dark);
  --focus: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-h)), 0 100%);
  padding-block: var(--space-5) calc(var(--space-5) + var(--cut-h));
}
.page-head h1 { font-size: var(--text-2xl); margin: 0; }

.prose { max-width: 46rem; }
.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line-light);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-3); }
.prose p, .prose li { color: var(--color-text); }
.prose ul { list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: .4rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .5em;
  border-top: 1px solid var(--color-primary);
}
.prose a { color: var(--color-primary); font-weight: 500; }
.prose address { font-style: normal; }
.prose .note {
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-2);
  border-left: 2px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-sm);
}

.error-page { text-align: center; }
.error-page .section-lead { margin-inline: auto; }
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   14. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
