/* Reha Rühl – Stylesheet
   Mobile first. Farben aus dem bisherigen Design, für Text auf mindestens 4,5:1 abgedunkelt
   (Abweichungen dokumentiert in docs/phase-4-designabweichungen.md). Kein Framework, kein Build-Schritt. Grav-Theme „reharuehl“. */

/* ---------- Schrift: Raleway, lokal (SIL Open Font License) ---------- */
@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway/raleway-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  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;
}
@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway/raleway-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway/raleway-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  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;
}

/* ---------- Gestaltungswerte ---------- */
:root {
  --c-text: #4f5f5d;        /* bisher #6b7c7a (4,38:1) – jetzt 6,7:1 auf Weiß */
  --c-titel: #3c5858;       /* Schriftzug im Logo, für Überschriften und Menü (7,7:1) */
  --c-link: #0a6b37;        /* bisher Grün #14904c (4,1:1) – jetzt 6,6:1 */
  --c-marke: #08a04c;       /* Logo-Grün, nur für Flächen und Linien */
  --c-linie: #a9b8b6;
  --c-fuss: #cbe3ca;        /* Fußzeile wie bisher */
  --c-fokus: #12331f;
  --c-schatten: #dbdbdb;
  --c-weiss: #ffffff;

  --schrift: "Raleway", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --breite: 73.125rem;      /* 1170 px wie bisher */
  --breite-text: 57rem;     /* 912 px, bisherige Breite der Behandlungen */
  --rand: clamp(1rem, 4vw, 2rem);
  --abstand: clamp(1.5rem, 4vw, 2.5rem);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--c-weiss);
  color: var(--c-text);
  font-family: var(--schrift);
  font-size: 1.125rem;      /* 18 px statt bisher 14 px */
  font-weight: 500;
  line-height: 1.6;
  font-variant-numeric: lining-nums; /* Raleway hat sonst Mediävalziffern – schlecht lesbar bei Telefonnummern */
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--c-titel); line-height: 1.25; font-weight: 600; margin: 0 0 .75rem; }
p, ul, ol, dl, address { margin: 0 0 1rem; }
address { font-style: normal; }
a { color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-fokus); outline-offset: 3px; border-radius: 2px; }
.inhalt:focus { outline: none; }

.sprunglink {
  position: absolute; left: 1rem; top: -10rem; z-index: 10;
  padding: .75rem 1rem; background: var(--c-weiss); color: var(--c-titel);
  font-weight: 700; border: 3px solid var(--c-fokus);
}
.sprunglink:focus { top: 1rem; }

/* ---------- Hintergrund mit Wirbelsäulenfoto ----------
   Bisher lag Text direkt auf dem Foto. Eine weiße Lasur von 65 % sorgt dafür,
   dass jede Textfarbe auch an der dunkelsten Bildstelle mindestens 4,5:1 erreicht. */
.hintergrund {
  background-color: var(--c-weiss);
  background-image:
    linear-gradient(rgba(255, 255, 255, .65), rgba(255, 255, 255, .65)),
    image-set(url("../images/wirbelsaeule-bg.webp") type("image/webp"), url("../images/wirbelsaeule-bg.jpg") type("image/jpeg"));
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  padding-bottom: var(--abstand);
}

/* ---------- Kopf ---------- */
.kopf {
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: 1.5rem var(--rand) 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem;
}
.kopf__logo { display: block; flex: 0 1 19.375rem; }
.kopf__logo img { width: 100%; max-width: 19.375rem; }
.hauptnav ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .75rem;
}
.hauptnav a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 2.75rem; padding: .375rem .5rem;
  color: var(--c-titel); text-decoration: none;
  font-size: .9375rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.hauptnav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.hauptnav a[aria-current="page"] {
  color: var(--c-link);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em;
}
@media (min-width: 40em) {
  .hauptnav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.75rem; }
}
@media (min-width: 64em) {
  .kopf { justify-content: space-between; flex-wrap: nowrap; }
  .hauptnav ul { gap: .25rem 2.5rem; }
}

/* ---------- Seitenanfang ---------- */
.inhalt { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); }
.einleitung { text-align: center; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(1.25rem, 3vw, 2rem); }
.einleitung h1 {
  font-size: clamp(1.625rem, 1.3rem + 1.6vw, 2.375rem);
  font-weight: 500; letter-spacing: .04em; margin-bottom: .75rem;
  hyphens: auto; overflow-wrap: break-word;
}
.einleitung__text { font-size: 1.1875rem; max-width: 42rem; margin: 0 auto; }

/* ---------- Kacheln (Startseite) ---------- */
.kacheln {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}
.kachel { display: flex; flex-direction: column; height: 100%; color: var(--c-titel); text-decoration: none; }
.kachel__bild { display: block; border: 3px solid var(--c-weiss); box-shadow: 0 0 4px 4px var(--c-schatten); background: var(--c-weiss); }
.kachel__bild img { width: 100%; aspect-ratio: 270 / 323; object-fit: cover; }
.kachel__titel {
  flex: 1; display: flex; align-items: flex-start; justify-content: center; text-align: center;
  margin-top: .5rem; padding: 1.25rem 1rem; background: var(--c-weiss);
  font-size: 1.0625rem; font-weight: 700; letter-spacing: .05em; line-height: 1.4;
  hyphens: auto; overflow-wrap: break-word;
}
.kachel:hover .kachel__titel { text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Textinhalte ---------- */
.text { max-width: 44em; }
.text h2 { font-size: 1.375rem; margin-top: 2rem; }
.text h3 { font-size: 1.125rem; margin-top: 1.5rem; }
.text ul, .text ol { padding-left: 1.25rem; }
.text li + li { margin-top: .25rem; }
.text--seite { max-width: var(--breite-text); margin: 0 auto; }
.text table { border-collapse: collapse; margin: 1rem 0; }
.text th, .text td { border: 1px solid var(--c-linie); padding: .375rem .75rem; text-align: left; vertical-align: top; }
/* Ungeklärte Stellen in Entwürfen (Rechtstexte). Vor dem Livegang dürfen keine mehr vorhanden sein. */
mark.offen { background: #fde68a; color: #1f2a29; padding: 0 .25em; outline: 1px dashed #8a6d00; }

/* ---------- Behandlungen ---------- */
.sprungliste { max-width: var(--breite-text); margin: 0 auto 2rem; padding: 1.25rem 1.5rem; background: rgba(255, 255, 255, .85); box-shadow: 0 0 4px 2px var(--c-schatten); }
.sprungliste__titel { font-size: 1.125rem; margin-bottom: .75rem; }
.sprungliste ul { list-style: none; margin: 0; padding: 0; columns: 15rem auto; column-gap: 2rem; }
.sprungliste li { break-inside: avoid; }
.sprungliste a { display: inline-block; padding: .25rem 0; }
.behandlungen { max-width: var(--breite-text); margin: 0 auto; }
.behandlung { border-top: 1px solid var(--c-linie); padding: 1.75rem 0 1rem; scroll-margin-top: 1rem; }
.behandlung__titel { font-size: 1.375rem; font-weight: 500; }  /* 22 px wie bisher */
.behandlung__inhalt { display: grid; gap: 1.25rem; }
.behandlung__bild { justify-self: start; align-self: start; border: 3px solid var(--c-weiss); box-shadow: 0 0 4px 4px var(--c-schatten); }
@media (min-width: 48em) {
  .behandlung__inhalt { grid-template-columns: 15.625rem minmax(0, 1fr); gap: 1.75rem; }
  .behandlung__inhalt--ohne-bild { grid-template-columns: minmax(0, 1fr); }
}
.behandlung__nach-oben { font-size: 1rem; margin-top: .5rem; }

/* ---------- Karten: Team und Kurse ---------- */
.karten {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; gap: 2rem 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}
.person__name, .kurstag__tag { color: var(--c-titel);  /* bisher Blau #086399, auf Wunsch an das Logo angeglichen */ font-size: 1.0625rem; font-weight: 700; letter-spacing: .05em; margin-bottom: .75rem; }
.person__foto { width: max-content; max-width: 100%; border: 3px solid var(--c-weiss); box-shadow: 0 0 4px 4px var(--c-schatten); margin-bottom: 1rem; }
.person__beruf { font-weight: 700; margin-bottom: 0; }
.person__label { margin-bottom: .25rem; }
.person__liste { padding-left: 1.25rem; list-style: disc; }
.kurstag__liste { list-style: none; margin: 0; padding: 0; }
.termin { display: flex; flex-direction: column; margin-bottom: 1rem; }
.termin__zeit { font-weight: 700; }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; gap: 2rem; }
.kontakt h2 { font-size: 1.1875rem; color: var(--c-titel); }
@media (min-width: 64em) { .kontakt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; } }
.zeiten { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; }
.zeiten dt { font-weight: 700; }
.zeiten dd { margin: 0; }
.karte { border: 3px solid var(--c-weiss); box-shadow: 0 0 4px 4px var(--c-schatten); background: #eef4ee; min-height: 20rem; display: grid; place-items: center; padding: 1.5rem; text-align: center; }
.karte__titel { font-weight: 700; color: var(--c-titel); font-size: 1.1875rem; margin-bottom: .75rem; }
.karte .karte__titel { color: var(--c-titel); }
.karte--geladen { padding: 0; display: block; }
.karte__rahmen { display: block; width: 100%; height: 26rem; border: 0; }
.knopf { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.knopf:focus-visible { outline-offset: 3px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem;
  padding: .5rem 1.25rem; background: var(--c-link); color: var(--c-weiss);
  font-weight: 700; text-decoration: none; border-radius: 3px;
}
.knopf:hover { background: #075128; text-decoration: underline; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--c-fuss); padding: 2rem var(--rand) 2.5rem; }
.fuss__spalten {
  max-width: var(--breite); margin: 0 auto;
  display: grid; gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.fuss__titel { font-size: 1rem; font-weight: 700; letter-spacing: .05em; color: var(--c-link); margin-bottom: .5rem; }
.fuss__titel a { color: inherit; text-decoration: none; display: inline-block; padding-block: .1875rem; margin-block: -.1875rem; }  /* Klickfläche ≥ 24 px (WCAG 2.5.8), Abstände unverändert */
.fuss__titel a:hover { text-decoration: underline; }
.fuss__liste { list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.fuss__liste a { display: inline-block; padding: .2rem 0; color: var(--c-text); text-decoration: none; }
.fuss__liste a::before { content: "›" / ""; display: inline-block; margin-right: .3em; }
.fuss__liste a:hover, .fuss__liste a[aria-current="page"] { text-decoration: underline; }
.fuss__liste--hervorgehoben a { color: var(--c-link); font-weight: 700; letter-spacing: .05em; }
.fuss .adresse { font-size: 1rem; }
.fuss .adresse a { color: var(--c-text); }

/* ---------- Druck ---------- */
@media print {
  .sprunglink, .hauptnav, .sprungliste, .karte, .fuss nav { display: none; }
  .hintergrund { background: none; }
  a { color: inherit; }
}
