/* ==========================================================================
   Autoservice Zimmermann — Stylesheet fuer beide Domains
   Klassisch-typografisches Design. Keine externen Ressourcen, kein JavaScript.

   Gepflegt wird nur geteilt/assets/css/main.css. Der Seitenbau kopiert es
   nach sites/*/public/assets/css/; Aenderungen an einer Kopie gehen beim
   naechsten Lauf verloren. Was sich je Domain unterscheidet, steht daneben
   in site.css.
   ========================================================================== */

/* --- Schriften: lokal gehostet, kein Google-Fonts-Verbindungsaufbau ------- */
@font-face {
  font-family: "EB Garamond";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ebgaramond-400.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/ebgaramond-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ebgaramond-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Markenfarbe aus dem Briefkopf Autoservice Zimmermann */
  --brand:        #262d9b;
  --brand-deep:   #1b2170;   /* dunkle Flaechen */
  --brand-deeper: #141a56;   /* Fusszeile */
  --brand-line:   #3a43a8;   /* Linien auf dunklem Grund */
  --brand-lit:    #aeb5f0;   /* Text/Akzent auf dunklem Grund */
  --brand-tint:   #eef0fb;   /* helle Markenflaeche */
  --on-deep:      #e2e5f9;   /* Haupttext auf dunklem Grund */
  --on-deep-soft: #c3c9ec;   /* Fliesstext auf dunklem Grund */
  --on-deep-mute: #99a1d4;   /* Nebentext auf dunklem Grund */

  --ink:        #14161f;
  --ink-soft:   #3a3f52;
  --muted:      #656b85;
  --paper:      #f8f9fd;
  --paper-2:    #eff1f9;
  --paper-3:    #e4e7f4;
  --line:       #d3d8ec;
  --line-soft:  #e3e6f3;
  --white:      #ffffff;

  --serif: "EB Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 72rem;
  --wrap-text: 40rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.08rem);
  --step-1:  clamp(1.18rem, 1.1rem + .4vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + .75vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  --step-4:  clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  /* Silbentrennung. Deutsche Komposita wie "Komponentenaustausch" oder
     "Uebertragungsvorgaenge" reissen in einer 288-px-Spalte sonst Luecken
     von halber Zeilenbreite. Greift nur, weil <html lang="de"> gesetzt ist.
     hyphenate-limit-chars trennt erst ab zehn Zeichen und laesst vorn vier,
     hinten drei stehen, damit keine Silbenschnipsel entstehen. */
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 10 4 3;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: -.005em; }
p, ul, ol, dl, figure, table { margin: 0; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* --- Hilfsklassen --------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--wrap-text); }
.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: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .7rem 1.1rem;
  font-size: var(--step--1); font-weight: 500; transition: top .15s;
}
.skip-link:focus { top: .6rem; }
:where(a, button, input, select, textarea, summary, label[for]):focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 1px;
}

.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brand);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--brand-lit); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }
.rule { width: 3.5rem; border-top: 2px solid var(--brand); margin: 1.6rem 0; }
.rule--center { margin-inline: auto; }
.center { text-align: center; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .95rem 1.6rem; text-decoration: none; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: background .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--light { background: var(--brand); border-color: var(--brand); color: var(--white); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--brand-deep); }
.btn--outline-light { background: transparent; border-color: var(--brand-line); color: var(--paper); }
.btn--outline-light:hover { background: var(--paper); border-color: var(--paper); color: var(--brand-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* --- Kopfzeile ------------------------------------------------------------ */
.topbar {
  background: var(--brand-deeper); color: var(--on-deep-soft);
  font-size: .78rem; letter-spacing: .02em;
  border-bottom: 1px solid var(--brand-line);
}
.topbar__in { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: center; justify-content: space-between; padding-block: .55rem; }
.topbar a { color: var(--brand-lit); text-decoration: none; font-weight: 500; }
.topbar a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.topbar__set { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }

.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head__in {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding-block: 1.5rem 1.1rem;
}

/* Wortzeichen nach dem Briefkopf: Versalien in Serifenschrift,
   Unterzeile zwischen zwei Haarlinien, einfarbig in der Markenfarbe. */
/* Der Briefkopf ist vermessen: Name, Unterzeile und die beiden Haarlinien sind
   dort gleich breit (5579, 5568 und 5590 Einheiten), und die Unterzeile hat
   46,5 Prozent der Versalhoehe des Namens. Beides wird hier nachgebaut.
   Der Name bestimmt die Breite. Die Unterzeile traegt wegen width:0 nichts
   dazu bei, fuellt sie ueber min-width aber aus, und ihre Sperrung ist so
   gewaehlt, dass die Buchstaben genau diese Breite ausfuellen. Weil die
   Unterzeile je Domain anders lang ist, steht --sperrung in site.css. */
.wordmark {
  display: inline-block; text-decoration: none; color: var(--brand);
  --wortmarke: clamp(1.1rem, .14rem + 4.89vw, 3.5rem);
}
.wordmark__name {
  display: block;
  font-family: var(--serif); font-weight: 600;
  font-size: var(--wortmarke);
  line-height: 1; text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap;
}
.wordmark__sub {
  display: block; margin-top: .4em;
  border-top: 1px solid currentColor; border-bottom: 1px solid currentColor;
  padding-block: .26em;
  width: 0; min-width: 100%;
  font-family: var(--serif); font-size: calc(var(--wortmarke) * .465);
  font-weight: 400; line-height: 1.25;
  letter-spacing: var(--sperrung); text-transform: uppercase;
  text-align: left; white-space: nowrap;
}
.wordmark:hover .wordmark__name { color: var(--brand-deep); }
/* Fusszeile: gleiches Bild wie in der Kopfzeile. Der Wrapper schrumpft auf
   die Breite des Namens, die Unterzeile liegt als Block darin und ist damit
   genauso breit. Einfarbig weiss, wie oben einfarbig blau. */
/* Fusszeile: dasselbe Zeichen, nur kleiner und weiss. Ein einziger Wert
   steuert beides, Name und Unterzeile folgen ihm im festen Verhaeltnis.
   Der Name darf nicht umbrechen, sonst waere die Unterzeile nicht mehr
   genauso breit. Massgeblich ist deshalb die Breite der Rasterspalte und
   nicht die des Fensters: die Spalte ist bei 768 px schmaler als bei
   320 px. 6,2cqi entspricht dem Kehrwert der Namenlaenge mit etwas Luft.
   Ohne Containerabfragen greift der feste Wert darueber, der ueberall passt. */
.site-foot__brand { container-type: inline-size; }
.site-foot .wordmark { color: var(--white); --wortmarke: .95rem; }
@supports (width: 1cqi) {
  .site-foot .wordmark { --wortmarke: min(1.3rem, 6.2cqi); }
}

/* Navigation: CSS-only, ohne JavaScript */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.nav-label {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--line); padding: .55rem .95rem; color: var(--ink-soft);
}
.nav-label:hover { border-color: var(--brand); color: var(--brand); }
.nav-label__bars { display: block; width: 1rem; height: .5rem; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.nav { display: none; width: 100%; }
.nav-toggle:checked ~ .nav { display: block; }
.nav-toggle:focus-visible ~ .nav-label { outline: 2px solid var(--brand); outline-offset: 3px; }
.nav__list { list-style: none; margin: 0; padding: .4rem 0 0; }
.nav__list a {
  display: block; padding: .8rem 0; text-decoration: none; text-align: center;
  font-size: .95rem; font-weight: 500; border-bottom: 1px solid var(--line-soft);
}
.nav__list a[aria-current="page"] { color: var(--brand); }

@media (min-width: 56rem) {
  .nav-label { display: none; }
  .nav { display: block !important; border-top: 1px solid var(--line); padding-top: .95rem; }
  .nav__list {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: center; gap: .5rem clamp(1.4rem, 3vw, 2.6rem); padding: 0;
  }
  .nav__list a {
    padding: .15rem 0; border-bottom: 2px solid transparent; text-align: center;
    font-family: var(--serif); font-size: .95rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  }
  .nav__list a:hover { color: var(--brand); border-bottom-color: var(--brand); }
  .nav__list a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
}

/* --- Abschnitte ----------------------------------------------------------- */
.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.4rem, 5vw, 4rem); }
.section--paper2 { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.section--deep { background: var(--brand-deep); color: var(--paper); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.section--deep p { color: var(--on-deep-soft); }
.section__head { max-width: var(--wrap-text); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: var(--step-3); }
.section__head p { margin-top: 1rem; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }
.section--deep .section__head p { color: var(--on-deep-soft); }

/* --- Hero ----------------------------------------------------------------- */
.hero { background: var(--brand-deep); color: var(--paper); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 85% at 82% 8%, rgba(110,120,230,.18), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.28) 100%);
}
.hero__in { position: relative; z-index: 1; padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 64rem) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { font-size: var(--step-4); color: var(--white); max-width: 22ch; }
.hero__lead { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.6; color: var(--on-deep-soft); max-width: 46ch; }
.hero__figure { border: 1px solid var(--brand-line); background: var(--brand-deeper); }
.hero__figure img { width: 100%; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--brand-line); }
.facts > div { padding: 1.5rem 1.5rem 1.5rem 0; border-right: 1px solid var(--brand-line); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-lit); }
.facts dd { margin: .55rem 0 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--white); line-height: 1.2; }
.facts dd small { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 400; color: var(--on-deep-mute); margin-top: .3rem; letter-spacing: 0; }

/* --- Leistungs-Raster ----------------------------------------------------- */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); padding: clamp(1.5rem, 2.5vw, 2.1rem);
  display: flex; flex-direction: column; text-decoration: none;
  transition: background .18s;
}
.card:hover { background: var(--white); }
.card__no { font-family: var(--serif); font-size: .95rem; color: var(--brand); letter-spacing: .06em; }
.card h3 { font-size: var(--step-1); margin-top: .7rem; }
.card p { margin-top: .7rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.card__more { margin-top: 1.3rem; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
a.card:hover .card__more { color: var(--ink); }

/* --- Prosa ---------------------------------------------------------------- */
.prose { max-width: var(--wrap-text); }

/* Einspaltige Unterseiten: die Textspalte steht sonst am linken Rand eines
   sehr breiten Satzspiegels. Kopf und Spalte teilen dieselbe Mitte und
   dieselbe Breite, damit die linke Kante durchlaeuft. */
.page-head--einspaltig .wrap > *,
.page-head--einspaltig .wrap > .lead,
.section--einspaltig .prose { max-width: var(--wrap-text); margin-inline: auto; }
.section--einspaltig .form { max-width: var(--wrap-text); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.6rem; }
.prose h3 { font-size: var(--step-1); margin-top: 2rem; }
.prose h2 + *, .prose h3 + * { margin-top: .9rem; }
.prose p { color: var(--ink-soft); }
.prose a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover { color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--ink-soft); }
.prose li + li { margin-top: .5rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .6rem; border-top: 1px solid var(--brand); }
.prose ol li::marker { color: var(--brand); font-family: var(--serif); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 2rem 0; padding: .3rem 0 .3rem 1.6rem; border-left: 2px solid var(--brand);
  font-family: var(--serif); font-size: var(--step-1); font-style: italic; color: var(--ink);
}

.layout-sidebar { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 64rem) { .layout-sidebar { grid-template-columns: minmax(0,1fr) 19rem; } }
.aside-box { border: 1px solid var(--line); background: var(--brand-tint); padding: 1.6rem; }
.aside-box + .aside-box { margin-top: 1.5rem; }
.aside-box h3 { font-size: 1.1rem; }
.aside-box p, .aside-box ul { margin-top: .8rem; font-size: .9rem; color: var(--ink-soft); }
.aside-box ul { list-style: none; padding: 0; }
.aside-box li + li { margin-top: .5rem; }
.aside-box a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 2px; }
@media (min-width: 64rem) { .aside-sticky { position: sticky; top: 1.5rem; } }

/* --- Ablauf (Schritte) ---------------------------------------------------- */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--paper); padding: 1.6rem; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.2rem; color: var(--brand); display: block; margin-bottom: .8rem;
}
.steps h3 { font-size: 1.05rem; }
.steps p { margin-top: .5rem; font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }

/* --- Definitionsliste / Daten --------------------------------------------- */
.datalist { border-top: 1px solid var(--line); }
.datalist > div { display: grid; gap: .2rem .5rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 34rem) { .datalist > div { grid-template-columns: 11rem 1fr; } }
.datalist dt { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .18rem; }
.datalist dd { margin: 0; color: var(--ink); }
.datalist dd a { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 2px; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--serif); font-size: var(--step-1); font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem;
  border-right: 1.5px solid var(--brand); border-bottom: 1.5px solid var(--brand);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { color: var(--brand); }
.faq .faq__a { padding: 0 2.5rem 1.4rem 0; color: var(--ink-soft); }
.faq .faq__a > * + * { margin-top: .8rem; }

/* --- Kontaktband ---------------------------------------------------------- */
.contact-band { background: var(--brand-deep); color: var(--paper); }
.contact-band__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 56rem) { .contact-band__grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.contact-band h2 { font-size: var(--step-3); color: var(--white); max-width: 24ch; }
.contact-band p { margin-top: 1rem; color: var(--on-deep-soft); max-width: 44ch; }
.contact-lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--brand-line); }
.contact-lines li { border-bottom: 1px solid var(--brand-line); padding: 1rem 0; display: grid; gap: .15rem; }
@media (min-width: 30rem) { .contact-lines li { grid-template-columns: 8.5rem 1fr; align-items: baseline; } }
.contact-lines span { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-lit); }
.contact-lines a, .contact-lines strong { color: var(--white); font-weight: 500; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- Formular ------------------------------------------------------------- */
.form { max-width: 38rem; margin-top: 2rem; }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.field .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); padding: .8rem .9rem;
  border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%), linear-gradient(135deg, var(--brand) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 1.25rem, calc(100% - .85rem) 1.25rem;
  background-size: .38rem .38rem, .38rem .38rem; background-repeat: no-repeat; padding-right: 2.5rem;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 2px solid rgba(38,45,155,.22); outline-offset: 0; }
.field__hint { margin-top: .45rem; font-size: .82rem; color: var(--muted); }
.field--consent { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid var(--line); background: var(--paper-2); padding: 1.1rem; }
.field--consent input { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .25rem; -webkit-appearance: auto; appearance: auto; accent-color: var(--brand); }
.field--consent label { text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 400; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1.2rem; }
.alert { border: 1px solid var(--line); border-left: 3px solid var(--brand); background: var(--paper-2); padding: 1.1rem 1.3rem; margin-bottom: 2rem; font-size: .95rem; }
.alert ul { margin: .6rem 0 0 1.1rem; }

/* --- Fotos ----------------------------------------------------------------- */
/* Es gibt keine Platzhalter mehr. Solange ein Foto fehlt, steht an seiner
   Stelle nichts: eine leere Flaeche wirkt wie ein Fehler, nicht wie
   Gestaltung. Welche Fotos es gibt, entscheidet tools/bilder.py.
   Die beiden Regeln darunter greifen deshalb zurzeit nirgends. Sie bleiben
   stehen, weil sie gebraucht werden, sobald das erste Foto da ist. */
.media img, .bild-rahmen { display: block; width: 100%; height: auto; }
.bild-rahmen { border: 1px solid var(--brand-line); }
/* Fehlt das Foto neben dem Text, wird der Abschnitt einspaltig statt halb leer. */
@media (min-width: 64rem) {
  .layout-sidebar--allein { grid-template-columns: minmax(0, 1fr); }
  .layout-sidebar--allein > div { max-width: 46rem; }
}
figure.media { margin: 2.5rem 0; }
figure.media figcaption { margin-top: .7rem; font-size: .85rem; color: var(--muted); font-style: italic; }

/* --- Brotkrumen ----------------------------------------------------------- */
.crumbs { background: var(--paper-2); border-bottom: 1px solid var(--line-soft); font-size: .82rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: .85rem 0; margin: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.crumbs [aria-current="page"] { color: var(--ink); }

/* --- Seitenkopf (Unterseiten) --------------------------------------------- */
/* Seitenkopf der Unterseiten: blaues Band, damit nicht nur die Startseite
   Farbe hat. Die Flaeche sitzt aussen, der Text in .wrap darin. */
.page-head { background: var(--brand-deep); color: var(--paper); position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(110% 80% at 85% 0%, rgba(110,120,230,.16), transparent 62%);
}
.page-head > .wrap { position: relative; z-index: 1; padding-block: clamp(2.4rem, 5.5vw, 4rem); }
.page-head h1 { font-size: var(--step-3); max-width: 26ch; color: var(--white); }
.page-head .lead { margin-top: 1.2rem; max-width: 50ch; color: var(--on-deep-soft); }
.page-head .eyebrow { color: var(--brand-lit); }

/* --- Fußzeile ------------------------------------------------------------- */
.site-foot { background: var(--brand-deeper); color: var(--on-deep-mute); font-size: .9rem; padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.site-foot__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.site-foot__grid > * { min-width: 0; }
.site-foot a, .site-foot li { overflow-wrap: anywhere; }
@media (min-width: 44rem) { .site-foot__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 64rem) { .site-foot__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-foot h2 { font-size: .72rem; font-family: var(--sans); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-lit); margin-bottom: 1.1rem; }
.site-foot ul { list-style: none; padding: 0; }
.site-foot li + li { margin-top: .6rem; }
.site-foot a { color: var(--on-deep-soft); text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-foot__brand p { margin-top: 1rem; max-width: 30ch; line-height: 1.65; }
.site-foot__bar { border-top: 1px solid var(--brand-line); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .8rem; color: var(--on-deep-mute); }
.site-foot__bar ul { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; }
.site-foot__bar li + li { margin-top: 0; }

/* Zeilenumbruch. balance verteilt die Zeilen einer Ueberschrift gleichmaessig,
   damit kein einzelnes Woertchen allein stehen bleibt, wie in "Oftmals ist eine
   Reparatur guenstiger als / der / Komponentenaustausch". pretty laesst im
   Fliesstext das letzte Wort nicht allein auf die Schlusszeile rutschen.
   Beides ist eine Zugabe fuer Browser, die es koennen; alle anderen brechen
   wie bisher um, es geht nichts verloren. */
h1, h2, h3, h4, .lead, .hero__lead, .motto blockquote {
  text-wrap: balance;
}
p, li, dd, figcaption, .arten span, .halt__weg {
  text-wrap: pretty;
}

/* Nicht getrennt wird, was kurz ist oder eine feste Breite hat: Wortmarke,
   Navigation, Knoepfe, Rubrikzeilen, die Zeichnung und technische Angaben
   wie Adressen oder Kennungen.
   Dazu die h1: im groessten Schriftgrad faellt jeder Trennstrich auf, und
   "Getriebe-Instandsetzung" brach von selbst sauber am eigenen Bindestrich,
   waehrend die Trennung "Instandset-zung" daraus machte. Kleinere
   Ueberschriften werden getrennt, dort hilft es (Komponenten-austausch). */
:where(h1, .wordmark, .topbar, .nav, .nav-label, .crumbs, .btn, .eyebrow, .ruled,
       .skizze, .contact-lines, .site-foot__bar, .facts dt, .halt__nr,
       .field label, code, kbd, samp) {
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* --- Anfahrtsskizze ------------------------------------------------------- */
/* Gezeichnet aus OpenStreetMap-Daten, die in tools/daten/anfahrt.json liegen.
   Kein fremder Kartendienst, kein JavaScript, keine Cookies. Die Haltestellen
   tragen in der Zeichnung nur Ziffern; Namen, Meter und Linien stehen als
   Text daneben, damit sie vorgelesen und kopiert werden koennen. */
/* Der Nachtrag darf breiter werden als die Textspalte, sonst wird die
   Zeichnung neben der Liste zu schmal. */
.anfahrt-breit, .section--einspaltig .prose.anfahrt-breit {
  max-width: 58rem; margin-inline: auto;
}
.anfahrt-plan {
  display: grid; gap: 1.6rem 2rem; align-items: start;
  margin-top: 1.8rem;
}
@media (min-width: 52rem) {
  .anfahrt-plan { grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 1fr); }
}
.anfahrt-plan__bild { margin: 0; }

.skizze {
  display: block; width: 100%; height: auto;
  background: var(--paper-2); border: 1px solid var(--line);
  --k-flaeche: #dde5dd;
  --k-wasser:  #c9d7f0;
  --k-klein:   #b3bcd9;
  --k-mittel:  #97a1c6;
  --k-gross:   #7b86b2;
  --k-tram:    #5c6796;
}
.skizze g { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.skizze__wald   { fill: var(--k-flaeche); stroke: none; }
.skizze__wasser { fill: var(--k-wasser);  stroke: none; }
.skizze__d { stroke: var(--k-klein);  stroke-width: 1.3; }
.skizze__c { stroke: var(--k-mittel); stroke-width: 2.2; }
.skizze__b { stroke: var(--k-gross);  stroke-width: 3.4; }
.skizze__a { stroke: var(--k-gross);  stroke-width: 4.4; }
.skizze__tram { stroke: var(--k-tram); stroke-width: 2.2; stroke-dasharray: 10 5; }

.skizze__fussweg {
  stroke: var(--brand); stroke-width: 2.6; stroke-dasharray: 1 5.5;
  stroke-linecap: round; fill: none;
}

/* Freistellen: die Schrift bekommt einen Rand in der Grundfarbe der Karte
   und wird darueber gefuellt, sonst liegt sie unleserlich auf den Linien. */
.skizze__strassenname, .skizze__wir, .skizze__massstab text {
  paint-order: stroke fill;
  stroke: var(--paper-2); stroke-width: 3.5px; stroke-linejoin: round;
}
.skizze__strassenname {
  fill: var(--ink-soft); font-family: var(--sans);
  font-size: 11.5px; text-anchor: middle; letter-spacing: .02em;
}

.skizze__halt circle { fill: var(--white); stroke: var(--brand); stroke-width: 1.8; }
.skizze__halt text {
  fill: var(--brand); stroke: none; font-family: var(--sans); font-weight: 700;
  font-size: 13px; text-anchor: middle; dominant-baseline: central;
}
.skizze__werkstatt-aussen { fill: var(--brand); stroke: none; }
.skizze__werkstatt-innen  { fill: var(--white); stroke: none; }
.skizze__wir {
  fill: var(--brand); font-family: var(--serif);
  font-size: 17px; font-weight: 600; text-anchor: middle;
}

.skizze__massstab path { stroke: var(--ink-soft); stroke-width: 1.1; fill: none; }
.skizze__massstab text {
  fill: var(--ink-soft); font-family: var(--sans); font-size: 11px;
  dominant-baseline: central;
}
.anfahrt-plan__bild figcaption {
  margin-top: .7rem; font-size: .82rem; color: var(--muted); line-height: 1.5;
}

.halte { list-style: none; margin: 0; padding: 0; }
.prose .halte { padding-left: 0; }
.halte li {
  display: grid; grid-template-columns: 1.8rem 1fr; column-gap: .7rem;
  padding-block: .85rem; border-top: 1px solid var(--line-soft); margin: 0;
}
.halte li:first-child { border-top: 0; padding-top: 0; }
.prose .halte li::before { content: none; }
.prose .halte li { padding-left: 0; }
.halt__nr {
  grid-row: 1 / span 3; align-self: start; justify-self: start;
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
  border: 1.5px solid var(--brand); border-radius: 50%;
  color: var(--brand); font-family: var(--sans); font-weight: 700; font-size: .8rem;
}
.halt__name   { color: var(--ink); font-weight: 600; }
.halt__weg    { color: var(--ink-soft); font-size: .92rem; }
.halt__linien { color: var(--muted); font-size: .86rem; }

/* --- Druck ---------------------------------------------------------------- */
/* Tippflaechen. WCAG 2.2 verlangt 24 px fuer alles, was nicht mitten im
   Fliesstext steht. Gemessen bei 390 px waren die Verweise in den Listen
   16 bis 18 px hoch, darunter die Telefonnummer, also der wichtigste Knopf
   der Seite. Sie bekommen Polsterung, und der Zeilenabstand wird um
   denselben Betrag verringert: die Flaeche waechst, das Bild bleibt.
   Verweise mitten im Satz bleiben unberuehrt, fuer sie gilt die Ausnahme. */
:where(.site-foot, .aside-box, .contact-lines) li > a,
:where(.site-foot, .aside-box, .contact-lines) li > strong > a,
.topbar__set > a,
.crumbs a { display: inline-block; padding-block: .25rem; }
.site-foot li + li { margin-top: .1rem; }
.site-foot__bar ul { gap: .1rem 1.3rem; }
.aside-box li + li { margin-top: 0; }
.topbar__in { padding-block: .3rem; }
.crumbs ol { padding-block: .6rem; }
.contact-lines li { padding-block: .75rem; }
.field label { padding-block: .14rem; margin-bottom: .36rem; }
.field { margin-bottom: 1.26rem; }
.link-solo { display: inline-block; padding-block: .25rem; margin-block: -.25rem; }

@media print {
  .topbar, .nav, .nav-label, .contact-band, .site-foot__grid, .crumbs, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .section--deep { background: #fff !important; color: #000 !important; }
  .hero h1, .section--deep h2, .facts dd { color: #000 !important; }
  a { text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
