/* Physiotherapie am Aquari
 *
 * Die Farben stammen aus dem LOGO, nicht aus der Fassade — gemessen aus
 * `_datenbasis/logo-2020/`: das blaue Feld, die beiden Wellentöne und der helle
 * Grund. Das Logo ist die Marke; das rote Haus ist nur das Gebäude und kommt
 * deshalb ausschliesslich in den Fotos vor.
 *
 * ⚠ Abstände achsweise setzen. `.bahn{padding:0 28px}` würde das `padding` von
 * `section` überschreiben — der Fehler ist hier bewusst vermieden.
 */

@font-face {
  font-family: "Archivo";
  src: url("/schrift/archivo-latin-var.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  /* gemessen aus dem Logo 2020 */
  --blau: #00569c;        /* das blaue Feld */
  --welle: #abd4ef;       /* kräftige Welle */
  --welle-hell: #cbe1f3;  /* helle Welle */
  --papier: #f4f6f9;      /* heller Grund im Logo */

  /* daraus abgeleitet, damit Kontraste tragen */
  --blau-tief: #063f74;
  --blau-nacht: #0a2a44;
  --weiss: #ffffff;
  --tinte: #16242f;
  --grau: #5a6b78;
  --linie: #d6e0ea;

  --bahn: 1180px;
}

*,
*::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: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 3px;
}

.bahn {
  max-width: var(--bahn);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.schmal { max-width: 760px; }

.weiter-zum-inhalt {
  position: absolute;
  left: -9999px;
  background: var(--blau);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}
.weiter-zum-inhalt:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Kopf ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
}
.kopf .bahn {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.kopf .marke { display: block; flex: none; }
.kopf .marke img { height: 40px; width: auto; }
.kopf nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
  flex-wrap: wrap;
}
.kopf nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.kopf nav a:hover { border-bottom-color: var(--blau-tief); }
.kopf nav a[aria-current="page"] { border-bottom-color: var(--blau); }
.ruf {
  background: var(--blau);
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  flex: none;
}
.ruf:hover { background: var(--blau-tief); }

/* ---------- Zweite Ebene unter „Behandlung" ---------- */
.unterkopf {
  background: var(--welle-hell);
  border-bottom: 1px solid var(--linie);
}
.unterkopf .bahn {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  padding-top: 13px;
  padding-bottom: 13px;
}
.unterkopf a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--blau-tief);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.unterkopf a:hover { border-bottom-color: var(--blau); }
.unterkopf a[aria-current="page"] {
  border-bottom-color: var(--blau);
  font-weight: 600;
}

/* ---------- Aufschlag ---------- */
.aufschlag { background: var(--blau); }
.aufschlag figure {
  margin: 0;
  height: clamp(320px, 52vh, 540px);
  overflow: hidden;
}
.aufschlag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Der Bildausschnitt ist nach unten gezogen: oben stehen nur Bäume und Himmel,
     unten das Haus mit Eingang, Rampe und Terrasse. */
  object-position: 50% 80%;
}
.schild { position: relative; margin-top: -96px; z-index: 2; }
.schild .block {
  background: var(--blau);
  color: #fff;
  max-width: 760px;
  padding: 40px 44px 36px;
  box-shadow: 0 18px 50px rgba(6, 36, 60, 0.3);
}
.schild h1 { font-size: clamp(34px, 5.4vw, 60px); color: #fff; }
.schild h1 .ort { display: block; color: var(--welle); }
.schild .unter {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 400;
  color: #cfe2f2;
  max-width: 52ch;
}

/* Kopfzeile der Unterseiten */
.seitenkopf {
  background: var(--blau);
  color: #fff;
  padding-top: 54px;
  padding-bottom: 50px;
}
.seitenkopf h1 { font-size: clamp(30px, 4.6vw, 48px); color: #fff; max-width: 20ch; }
.seitenkopf p {
  margin: 16px 0 0;
  color: #cfe2f2;
  font-size: 18px;
  max-width: 58ch;
}
.brotkrumen {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #9cc3e0;
}
.brotkrumen a { color: #dcecf8; }

/* ---------- Zwei Türen ---------- */
.tueren {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--linie);
  margin-top: 60px;
}
.tuer {
  background: var(--papier);
  padding: 34px 36px 32px;
  text-decoration: none;
  display: block;
}
.tuer:hover { background: var(--weiss); }
.tuer h2 { font-size: 26px; margin-bottom: 10px; }
.tuer p { color: var(--grau); font-size: 16px; margin: 0; }
.tuer .marke { display: block; width: 46px; height: 5px; background: var(--blau-tief); margin-bottom: 20px; }
.tuer.selbst .marke { background: var(--blau); }

/* ---------- Abschnitte ---------- */
section { padding-top: 76px; padding-bottom: 76px; }
section.eng { padding-top: 52px; padding-bottom: 52px; }
.titel { font-size: clamp(27px, 3.5vw, 39px); margin-bottom: 18px; max-width: 22ch; }
.vor { color: var(--grau); max-width: 62ch; font-size: 18px; }

/* ---------- Leistungsliste ---------- */
.liste { border-top: 2px solid var(--tinte); margin-top: 30px; }
.zeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto;
  gap: 28px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--linie);
  text-decoration: none;
}
a.zeile:hover { background: var(--weiss); }
.zeile h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.zeile p { margin: 0; color: var(--grau); font-size: 16px; }
.marker { font-size: 13px; font-weight: 600; color: var(--blau); white-space: nowrap; }
.marker.selbst { color: var(--blau); }

/* ---------- Fließtext ---------- */
.fliess { max-width: 68ch; }
.fliess h2 { font-size: 26px; margin: 42px 0 14px; }
.fliess h2:first-child { margin-top: 0; }
.fliess p { font-size: 17.5px; }
.hinweiskasten {
  border-left: 4px solid var(--welle);
  background: var(--weiss);
  padding: 18px 22px;
  margin: 28px 0;
}
.hinweiskasten p:last-child { margin-bottom: 0; }
.verordnungslaut {
  background: var(--weiss);
  border: 1px solid var(--linie);
  padding: 20px 24px;
  margin: 30px 0;
}
.verordnungslaut b { display: block; font-size: 14px; color: var(--grau); font-weight: 600; margin-bottom: 4px; }
.verordnungslaut span { font-size: 20px; font-weight: 600; }

/* ---------- Team ---------- */
.team { background: var(--blau); color: #fff; }
.team .titel { color: #fff; }
.team .vor { color: #cfe2f2; }
/* ⚠ Neun Personen gehen nur als 9×1 oder 3×3 gleichmäßig auf. Ein automatisches
   Raster liess acht in der ersten Zeile und eine allein darunter stehen.
   Deshalb feste Spaltenzahlen statt `auto-fill`. Wird das Team grösser oder
   kleiner, gehört die Zahl hier angepasst. */
.koepfe {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.kopf-karte {
  background: var(--blau-tief);
  display: flex;
  flex-direction: column;
}
.kopf-karte img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; }
.kopf-karte div { padding: 12px 12px 16px; }
.kopf-karte b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.kopf-karte b,
.kopf-karte span {
  /* Die Karten sind schmal. „Geschäftsführung, Physiotherapeut“ lief sonst über
     die Kante hinaus — deshalb trennen statt überlaufen. */
  overflow-wrap: anywhere;
  hyphens: auto;
}
.kopf-karte span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #a9c9e2;
}

/* ⚠ Deckel bei 150 px — genau die Breite der Porträtvorlagen. Damit wird nie
   hochskaliert. Ohne Deckel wurden die Karten auf Tablets 270 px breit und die
   Gesichter sichtbar weich. Der Deckel steigt, sobald es neue Fotos gibt. */
@media (max-width: 1023px) {
  .koepfe {
    grid-template-columns: repeat(3, minmax(90px, 150px));
    justify-content: center;
    gap: 16px;
  }
  .kopf-karte b { font-size: 16px; }
  .kopf-karte span { font-size: 13.5px; }
}

/* ---------- Tabellen ---------- */
.tabellenrahmen { overflow-x: auto; margin-top: 30px; }
table { width: 100%; border-collapse: collapse; min-width: 420px; }
caption { text-align: left; font-size: 14.5px; color: var(--grau); caption-side: bottom; padding-top: 16px; }
thead th {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--grau);
  padding-bottom: 11px;
  border-bottom: 2px solid var(--tinte);
}
thead th.dauer, thead th.geld { text-align: right; }
td { padding: 13px 0; font-size: 16.5px; vertical-align: baseline; border-bottom: 1px solid var(--linie); }
td.dauer { text-align: right; color: var(--grau); white-space: nowrap; padding-right: 26px; width: 1%; }
td.geld { text-align: right; font-weight: 600; white-space: nowrap; width: 1%; }

/* ---------- Karten für Massagen ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 2px; background: var(--linie); margin-top: 32px; }
.karte { background: var(--papier); padding: 26px 28px; }
.karte h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.karte p { margin: 0; color: var(--grau); font-size: 16px; }

/* ---------- Bildpaar ---------- */
.bildpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 32px; }
.bildpaar img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: #d8e6f0; padding-top: 66px; padding-bottom: 40px; }
.fuss .bahn { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px; }
.fuss h2 { font-size: 14px; font-weight: 600; color: #8fb0c8; margin-bottom: 14px; letter-spacing: 0.01em; }
.fuss p { font-size: 16.5px; margin: 0 0 0.4em; }
.fuss a { color: #fff; }
.gross {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}
.zeiten { display: grid; grid-template-columns: auto auto; gap: 5px 20px; font-size: 16.5px; }
.zeiten span:nth-child(even) { text-align: right; }
.feinfuss {
  border-top: 1px solid #14405f;
  margin-top: 44px;
  padding-top: 22px;
  font-size: 14px;
  color: #7ea4bf;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.feinfuss a { color: #b3cfe4; }
/* Die Urheberzeile der Praxis links, die Gestaltungsangabe ganz rechts —
   so steht die Leistung von H.B.Media nicht zwischen den Rechtslinks. */
.feinfuss .gestaltung { margin-left: auto; }
@media (max-width: 700px) {
  .feinfuss .gestaltung { margin-left: 0; width: 100%; }
}

/* Auf dem Telefon soll der Preis ohne Wischen sichtbar sein. Die Namensspalte
   darf dafür umbrechen — „Ganzkörpermassage mit Aromaöl“ braucht dann zwei Zeilen. */
@media (max-width: 560px) {
  table { min-width: 0; }
  td { font-size: 15.5px; padding: 11px 0; }
  td.dauer { padding-right: 12px; font-size: 15px; }
  thead th { font-size: 13px; }
}

@media (max-width: 880px) {
  .tueren { grid-template-columns: 1fr; }
  .zeile { grid-template-columns: 1fr; gap: 6px; }
  .marker { order: -1; }
  .schild { margin-top: -62px; }
  .schild .block { padding: 28px 24px; }
  .kopf .bahn { flex-wrap: wrap; min-height: 0; padding-top: 14px; padding-bottom: 14px; }
  .kopf nav { order: 3; width: 100%; margin-left: 0; gap: 18px; }
  .ruf { margin-left: auto; }
  .bildpaar { grid-template-columns: 1fr; }
}
