/* Richtung D: klassisch. Weiss, warmes Hellgrau, fast schwarze Tinte, die Logofarbe als einziger warmer Punkt.
   Source Serif 4 fuer Ueberschriften und Zitate, Source Sans 3 fuer alles andere. Raster: 12 Spalten, Abstand 24 px. Die zweite Spalte jedes Abschnitts beginnt auf derselben Achse (Spalte 7). */
@font-face { font-family: "Source Serif 4"; src: url("../_gemeinsam/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../_gemeinsam/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../_gemeinsam/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --weiss: #ffffff;
  --stein: #f5f3ef;
  --haar: #dcd8d0;
  --tinte: #1f2b33;
  --tinte-2: #33434e;
  --leise: #55606a;
  --orange: #ef7e04;      /* Logofarbe. Tinte darauf: 5,6 : 1. Nie als Schrift auf Weiss. */
  --rand: clamp(16px, 4vw, 40px);
  --spalt: 24px;
  --abstand: clamp(64px, 9vw, 112px);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: 108px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--weiss); color: var(--tinte); font: 400 1.1875rem/1.55 var(--sans); font-optical-sizing: auto; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p { text-wrap: pretty; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1.12; }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; }

.rahmen { max-width: 1272px; margin-inline: auto; padding-inline: var(--rand); }
.sprung { position: fixed; left: 16px; top: -60px; z-index: 40; padding: 10px 16px; background: var(--tinte); color: var(--weiss); }
.sprung:focus { top: 12px; }
.sichtbar-nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Wechselnder Status: alle Laengen im selben Feld, damit nichts springt */
.stapel { display: inline-grid; }
.stapel > span { grid-area: 1 / 1; }
.stapel__mass { visibility: hidden; }

/* Obere Leiste */
.leiste { border-bottom: 1px solid var(--haar); color: var(--leise); font-size: 1rem; line-height: 1.3; }
.leiste__innen { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 38px; }
.leiste .stapel { justify-items: end; text-align: right; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 10; background: var(--weiss); border-bottom: 1px solid var(--haar); }
.kopf__innen { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.marke { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.marke__zahn { width: 32px; height: 44px; color: var(--orange); flex: none; }
.marke__text { display: grid; gap: 1px; }
.marke__klein { font-size: .9375rem; line-height: 1.1; color: var(--leise); letter-spacing: .01em; }
.marke__name { font: 600 1.5rem/1.1 var(--serif); letter-spacing: -.005em; }
.kopf__nav { display: flex; gap: 28px; font-weight: 500; font-size: 1.125rem; }
.kopf__nav a { padding: 8px 0; text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) left bottom 4px / 0 2px no-repeat; transition: background-size .2s ease-out; }
.kopf__nav a:hover, .kopf__nav a[aria-current] { background-size: 100% 2px; }
.kopf__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 12px; border: 1px solid var(--tinte); border-radius: 2px; font-weight: 600; font-size: 1.125rem; line-height: 1; text-decoration: none; font-variant-numeric: lining-nums; white-space: nowrap; transition: background-color .15s ease-out, color .15s ease-out; }
.kopf__tel svg { width: 20px; height: 20px; }
.kopf__tel:hover { background: var(--tinte); color: var(--weiss); }
.menue { display: none; width: 48px; height: 48px; margin-right: -12px; padding: 12px; border: 0; background: none; color: inherit; cursor: pointer; }
.menue svg { width: 24px; height: 24px; }
.menue__zu { display: none; }
.menue[aria-expanded="true"] .menue__auf { display: none; }
.menue[aria-expanded="true"] .menue__zu { display: block; }

/* Knoepfe */
.knopf { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 22px 10px 18px; border-radius: 2px; background: var(--orange); color: var(--tinte); font-weight: 600; font-size: 1.25rem; line-height: 1; text-decoration: none; font-variant-numeric: lining-nums; white-space: nowrap; transition: background-color .15s ease-out; }
.knopf svg { width: 22px; height: 22px; flex: none; }
.knopf:hover { background: #f59531; }
.textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.textlink svg { width: 20px; height: 20px; transition: transform .2s ease-out; }
.textlink:hover svg { transform: translateX(3px); }

/* Start */
.start { padding-top: clamp(32px, 5vw, 60px); }
.start__kopf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalt); align-items: end; }
.start h1 { grid-column: span 6; font-size: clamp(2.75rem, 6.2vw, 4.75rem); line-height: 1.04; letter-spacing: -.015em; }
.start__text { grid-column: 7 / -1; }
.start__aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }
.start__bild { position: relative; margin-top: clamp(28px, 4vw, 44px); }
.start__bild img { width: 100%; height: auto; aspect-ratio: 1920 / 800; object-fit: cover; }
.start__bild::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgb(255 255 255 / .75); pointer-events: none; }
.start__bild figcaption { position: absolute; left: 22px; bottom: 20px; padding: 2px 8px; background: var(--weiss); font-size: .9375rem; line-height: 1.3; }

.eck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--spalt); border-bottom: 1px solid var(--haar); }
.eck li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 22px 0 24px; }
.eck li + li::before { content: ""; position: absolute; left: calc(var(--spalt) / -2); top: 22px; bottom: 24px; width: 1px; background: var(--haar); }
.eck svg { width: 24px; height: 24px; margin-top: 1px; }
.eck__titel { color: var(--leise); font-size: 1rem; line-height: 1.5; }
.eck__wert { display: grid; font: 600 1.25rem/1.3 var(--sans); font-variant-numeric: lining-nums; }
.eck__wert a { text-decoration: none; }
.eck__wert a:hover { text-decoration: underline; }
.eck__zusatz { margin-top: 2px; color: var(--leise); font-size: 1.0625rem; line-height: 1.4; }

/* Praxis */
.praxis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalt); align-items: center; padding-block: var(--abstand); }
.praxis__bild { grid-column: 1 / span 5; padding: 9px; border: 1px solid var(--haar); }
.praxis__bild img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.praxis__text { grid-column: 7 / -1; display: grid; gap: 16px; }
.praxis__name { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--haar); color: var(--leise); font-size: 1.0625rem; line-height: 1.4; }
.praxis__name span { display: block; color: var(--tinte); font: 600 1.375rem/1.25 var(--serif); }

/* Leistungen */
.leistungen { background: var(--stein); padding-block: var(--abstand); }
.leistungen__kopf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalt); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.leistungen__kopf h2 { grid-column: span 6; }
.leistungen__kopf p { grid-column: 7 / -1; }
.gruppe { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalt); border-top: 1px solid var(--tinte); }
.gruppe:last-child { border-bottom: 1px solid var(--tinte); }
.gruppe h3 { grid-column: span 2; padding-block: 12px 13px; font: 600 1.1875rem/1.45 var(--sans); }
.gruppe dl { grid-column: 3 / -1; display: grid; grid-template-columns: subgrid; }
.gruppe dl > div { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding-block: 12px 13px; }
.gruppe dl > div + div { border-top: 1px solid var(--haar); }
.gruppe dt { grid-column: span 4; font-weight: 600; line-height: 1.45; }
.gruppe dd { grid-column: 5 / -1; color: var(--leise); line-height: 1.45; }

/* Stimmen */
.stimmen { padding-block: var(--abstand); }
.stimmen ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--spalt); margin-top: clamp(24px, 3vw, 36px); }
.stimmen li { padding-top: 14px; border-top: 1px solid var(--tinte); }
.stimmen blockquote { font: italic 400 1.375rem/1.4 var(--serif); text-indent: -.36em; }

/* Sprechzeiten */
.zeiten { background: var(--stein); padding-block: var(--abstand); }
.zeiten__raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalt); }
.zeiten__tafel { grid-column: span 5; }
.zeiten table { width: 100%; margin-top: 20px; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.zeiten thead th { padding: 0 8px 8px; color: var(--leise); font-size: 1rem; font-weight: 400; text-align: left; }
.zeiten tbody tr { border-top: 1px solid var(--haar); }
.zeiten tbody tr:first-child { border-top-color: var(--tinte); }
.zeiten tbody tr:last-child { border-bottom: 1px solid var(--tinte); }
.zeiten tbody th, .zeiten tbody td { padding: 11px 8px 12px; font-weight: 400; text-align: left; white-space: nowrap; }
.zeiten tbody th { font-weight: 600; }
.zu { color: var(--leise); }
.heute { visibility: hidden; margin-left: 10px; padding: 1px 7px 2px; border-radius: 2px; background: var(--orange); color: var(--tinte); font-size: .9375rem; font-weight: 600; line-height: 1.2; }
tr.ist-heute .heute { visibility: visible; }
.zeiten__not { grid-column: 7 / -1; max-width: 30em; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.zeiten__not p.zeiten__klein { color: var(--leise); font-size: 1.0625rem; line-height: 1.45; }
.zeiten__klein a { white-space: nowrap; font-weight: 600; color: var(--tinte); font-variant-numeric: lining-nums; }

/* Anfahrt */
.anfahrt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalt); align-items: start; padding-block: var(--abstand); }
.anfahrt__text { grid-column: span 5; display: grid; gap: 12px; justify-items: start; }
.anfahrt__text dl { width: 100%; margin-top: 6px; border-top: 1px solid var(--tinte); }
.anfahrt__text dl > div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 8px; padding-block: 8px 9px; border-bottom: 1px solid var(--haar); line-height: 1.4; }
.anfahrt__text dt { color: var(--leise); }
.anfahrt__text dd { font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.anfahrt__karte { grid-column: 7 / -1; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f5f3ef; outline: 1px solid var(--haar); outline-offset: -1px; }
.anfahrt__karte svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.k-wiese { fill: #edf0e6; fill-rule: evenodd; }
.k-reben { fill: #fbe7cf; fill-rule: evenodd; }
.k-wald { fill: #dde6d6; fill-rule: evenodd; }
.k-wasser { fill: #cfe0e8; }
.k-fluss { fill: none; stroke: #cfe0e8; stroke-width: 3; }
.k-gebaeude { fill: #e6e2da; }
.k-weg { fill: none; stroke: #e6e2da; stroke-width: 1.5; }
.k-strasse { fill: none; stroke: #c9c4ba; stroke-width: 5; stroke-linecap: round; }
.k-gross { fill: none; stroke: #a9a498; stroke-width: 9; stroke-linecap: round; }
.k-bahn { fill: none; stroke: #55606a; stroke-width: 2.5; stroke-dasharray: 14 8; }
.k-route { fill: none; stroke: #1f2b33; stroke-width: 6; stroke-dasharray: 2 11; stroke-linecap: round; }
.k-praxis { fill: #ef7e04; }
.k-punkt { fill: #fff; stroke: #1f2b33; stroke-width: 5; }
.k-punkt--leise { stroke: #55606a; }
.k-ziel { fill: #ef7e04; stroke: #1f2b33; stroke-width: 6; }
.k-text { font: 500 40px/1 var(--sans); fill: #1f2b33; paint-order: stroke; stroke: #f5f3ef; stroke-width: 7px; stroke-linejoin: round; }
.k-text--leise { fill: #55606a; }
.k-text--ziel { font: 600 52px/1 var(--serif); fill: #1f2b33; }

/* Fuss */
.fuss { background: var(--stein); border-top: 1px solid var(--haar); font-size: 1.0625rem; line-height: 1.4; }
.fuss__innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; padding-block: 22px 24px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.fuss__quelle { flex-basis: 100%; color: var(--leise); font-size: 1rem; }

/* Anruf-Knopf am Handy */
.anruf { position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 20; display: none; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 2px; background: var(--orange); color: var(--tinte); font-weight: 600; font-size: 1.25rem; line-height: 1; text-decoration: none; font-variant-numeric: lining-nums; box-shadow: 0 2px 10px rgb(31 43 51 / .28); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease-out, transform .2s ease-out; }
.anruf svg { width: 22px; height: 22px; }
.anruf.zeigen { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 1040px) {
  .kopf__innen { gap: 20px; }
  .kopf__nav { gap: 20px; font-size: 1.0625rem; }
  .zeiten__tafel { grid-column: span 6; }
}
@media (max-width: 900px) {
  .kopf__innen { min-height: 72px; gap: 12px; }
  .menue { display: block; }
  .kopf__nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 0; padding: 4px var(--rand) 12px; background: var(--weiss); border-bottom: 1px solid var(--haar); box-shadow: 0 8px 16px rgb(31 43 51 / .08); font-size: 1.1875rem; }
  .kopf__nav.offen { display: flex; }
  .kopf__nav a { display: flex; align-items: center; min-height: 48px; padding: 0; background: none; }
  .kopf__nav a + a { border-top: 1px solid var(--haar); }
  html { scroll-padding-top: 88px; }

  .start__kopf { display: block; }
  .start__bild img { aspect-ratio: 16 / 9; object-position: 88% 50%; }
  .eck { grid-template-columns: 1fr; }
  .eck li + li { border-top: 1px solid var(--haar); }
  .eck li + li::before { display: none; }

  .praxis { align-items: start; }
  .praxis__bild { grid-column: 1 / span 4; }
  .praxis__text { grid-column: 5 / -1; padding-left: 8px; }
  .start__text { margin-top: 16px; }

  .leistungen__kopf { display: block; }
  .leistungen__kopf p { margin-top: 10px; }
  .gruppe h3 { grid-column: 1 / -1; padding-block: 12px 0; }
  .gruppe dl { grid-column: 1 / -1; display: block; }
  .gruppe dl > div { display: block; padding-block: 10px 11px; }
  .gruppe dl > div:first-child { padding-top: 6px; }

  .stimmen ul { grid-template-columns: 1fr; row-gap: 20px; }

  .zeiten__tafel, .zeiten__not { grid-column: 1 / -1; max-width: none; }
  .zeiten__not { margin-top: 40px; }

  .anfahrt__text, .anfahrt__karte { grid-column: 1 / -1; }
  .anfahrt__karte { margin-top: 28px; }
}
@media (max-width: 720px) {
  .leiste { display: none; }
  .kopf__tel { display: none; }
  .anruf { display: flex; }
  .fuss { padding-bottom: 76px; }
  .praxis__bild { grid-column: 1 / -1; max-width: 340px; }
  .praxis__text { grid-column: 1 / -1; padding-left: 0; margin-top: 36px; }
  .start__bild::after { inset: 8px; }
  .start__bild figcaption { left: 16px; bottom: 14px; }
  .zeiten tbody th, .zeiten tbody td, .zeiten thead th { padding-inline: 0 8px; }
  .heute { margin-left: 6px; padding-inline: 5px; }
  .anfahrt__karte { aspect-ratio: 1 / 1; }
}
@media (max-width: 420px) {
  body { font-size: 1.125rem; }
  .k-text { font-size: 44px; }
  .k-text--ziel { font-size: 50px; }
  .zeiten tbody th, .zeiten tbody td { font-size: 1.0625rem; }
  .heute { display: none; }
  tr.ist-heute th { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .2em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
