/* Sprach-Sprung — Praxis Angelika Seiler, Petershagen-Eggersdorf
   Farben aus dem Praxis-Logo gemessen: Lavendel #9b9ac8, Violett #8e61b3 / #8658aa.
   Grundsatz: ruhig, sehr gut lesbar, mobil zuerst. Viele, die hier lesen, tun das
   nach einem Schlaganfall, mit Parkinson oder als Eltern zwischen Tür und Angel. */

:root {
  --tinte:        #2b2338;   /* Fließtext */
  --tinte-leise:  #574c68;   /* Nebentext */
  --violett:      #6b3f96;   /* Primär, trägt Kontrast auf Weiß */
  --violett-tief: #4a2a6a;
  --lavendel:     #9b9ac8;   /* Logo-Grund */
  --lavendel-hell:#eceaf5;
  --grund:        #fbfafd;
  --flaeche:      #ffffff;
  --linie:        #e3dfee;

  --rand: clamp(1.15rem, 5vw, 2.5rem);
  --schatten: 0 1px 2px rgba(43,35,56,.05), 0 8px 24px -12px rgba(43,35,56,.18);
  --rund: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* Systemschrift: bringt optische Größen und Legibility-Tuning schon mit */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  line-height: 1.62;
  color: var(--tinte);
  background: var(--grund);
  overflow-x: hidden;          /* nichts läuft je seitlich aus dem Fenster */
}

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

/* ---------- Tastatur-Sprung ---------- */
.sprung {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--violett); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--rund) 0;
}
.sprung:focus { left: 0; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--linie);
}
.kopf__zeile {
  max-width: 68rem; margin: 0 auto; padding: .7rem var(--rand);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; margin-right: auto; }
.marke img { width: 46px; height: 46px; border-radius: 11px; }
.marke b {
  display: block; font-size: 1.16rem; font-weight: 650;
  letter-spacing: -0.015em; color: var(--violett-tief); line-height: 1.15;
}
.marke small { display: block; font-size: .8rem; color: var(--tinte-leise); letter-spacing: .01em; }

/* Anrufen ist die Haupthandlung dieser Seite — sie steht immer sichtbar */
.ruf {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--violett); color: #fff; text-decoration: none;
  padding: .62rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .97rem;
  white-space: nowrap; box-shadow: var(--schatten);
  transition: transform 110ms ease-out, background-color 110ms ease-out;
}
.ruf:hover { background: var(--violett-tief); }
.ruf:active { transform: scale(.97); }   /* Rückmeldung beim Drücken, nicht erst beim Loslassen */

nav.wege { width: 100%; }
nav.wege ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem .35rem;
}
nav.wege a {
  display: block; padding: .42rem .8rem; border-radius: 999px;
  text-decoration: none; color: var(--tinte-leise); font-size: .96rem; font-weight: 500;
  transition: background-color 110ms ease-out, color 110ms ease-out;
}
nav.wege a:hover { background: var(--lavendel-hell); color: var(--violett-tief); }
nav.wege a:active { transform: scale(.98); }
nav.wege a[aria-current="page"] { background: var(--lavendel-hell); color: var(--violett-tief); font-weight: 640; }

@media (min-width: 56rem) {
  nav.wege { width: auto; order: 0; }
  .ruf { order: 1; }
}

/* ---------- Grundraster ---------- */
main { display: block; }
/* padding-inline, nicht die Kurzform — sonst löscht .bahn den Abschnittsabstand */
.bahn { max-width: 68rem; margin: 0 auto; padding-inline: var(--rand); }
section { padding-block: clamp(2.2rem, 6vw, 3.6rem); }

h1, h2, h3 { color: var(--violett-tief); text-wrap: balance; }
/* Tracking ist größenabhängig: großer Text will enger stehen, kleiner etwas weiter */
h1 {
  font-size: clamp(1.85rem, 1.25rem + 2.6vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 .6em;
}
h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem);
  line-height: 1.2; letter-spacing: -0.018em; font-weight: 660; margin: 0 0 .5em;
}
h3 {
  font-size: clamp(1.12rem, 1.05rem + 0.35vw, 1.28rem);
  line-height: 1.3; letter-spacing: -0.008em; font-weight: 640; margin: 0 0 .4em;
}
p { margin: 0 0 1.05em; max-width: 62ch; }   /* Zeilen bleiben lesbar kurz */
a { color: var(--violett); }
a:focus-visible, button:focus-visible, .ruf:focus-visible {
  outline: 3px solid var(--violett); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Empfang ---------- */
.empfang {
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(155,154,200,.30), transparent 62%),
    linear-gradient(180deg, var(--lavendel-hell), var(--grund));
  border-bottom: 1px solid var(--linie);
}
.empfang__satz { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
@media (min-width: 52rem) { .empfang__satz { grid-template-columns: 1.25fr .75fr; } }
.empfang p.gross { font-size: 1.12em; color: var(--tinte-leise); }
.empfang img { border-radius: 20px; box-shadow: var(--schatten); margin-inline: auto; max-width: 300px; }

.ueberschrift-klein {
  text-transform: uppercase; letter-spacing: .11em; font-size: .76rem; font-weight: 660;
  color: var(--violett); margin: 0 0 .8rem;
}

.knopfreihe { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.knopf {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none; font-weight: 600;
  background: var(--violett); color: #fff; box-shadow: var(--schatten);
  transition: transform 110ms ease-out, background-color 110ms ease-out;
}
.knopf:active { transform: scale(.97); }
.knopf:hover { background: var(--violett-tief); }
.knopf--leise { background: var(--flaeche); color: var(--violett-tief); border: 1px solid var(--linie); box-shadow: none; }
.knopf--leise:hover { background: var(--lavendel-hell); }

/* ---------- Karten ---------- */
.karten { display: grid; gap: 1rem; }
@media (min-width: 42rem) { .karten--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 58rem) { .karten--3 { grid-template-columns: repeat(3, 1fr); } }
.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund);
  padding: clamp(1.15rem, 3vw, 1.6rem); box-shadow: var(--schatten);
}
.karte h3 { margin-top: 0; }
.karte p:last-child { margin-bottom: 0; }
.karte__nr {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--lavendel-hell); color: var(--violett-tief); font-weight: 700; font-size: .95rem;
  margin-bottom: .7rem;
}

/* ---------- Listen ---------- */
ul.haken { list-style: none; padding: 0; margin: 0 0 1.1em; }
ul.haken li {
  position: relative; padding-left: 1.7rem; margin-bottom: .55rem; max-width: 62ch;
}
ul.haken li::before {
  content: ""; position: absolute; left: .35rem; top: .72em;
  width: .45rem; height: .45rem; border-radius: 50%; background: var(--lavendel);
}

/* ---------- Sprechzeiten ---------- */
.zeiten { border-collapse: collapse; width: 100%; max-width: 34rem; }
.zeiten th, .zeiten td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--linie); }
.zeiten th { font-weight: 620; color: var(--violett-tief); }
.zeiten td { color: var(--tinte-leise); }

/* ---------- Hinweiskasten ---------- */
.hinweis {
  background: var(--lavendel-hell); border-left: 4px solid var(--lavendel);
  border-radius: 0 var(--rund) var(--rund) 0; padding: 1.1rem 1.3rem;
}
.hinweis p:last-child { margin-bottom: 0; }

/* ---------- Formular ---------- */
form.anfrage { display: grid; gap: 1rem; max-width: 38rem; }
.feld { display: grid; gap: .35rem; }
.feld label { font-weight: 600; font-size: .95rem; color: var(--violett-tief); }
.feld input, .feld textarea, .feld select {
  font: inherit; color: inherit;
  padding: .72rem .85rem; border: 1px solid var(--linie); border-radius: 10px;
  background: var(--flaeche); width: 100%;
  transition: border-color 110ms ease-out, box-shadow 110ms ease-out;
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: none; border-color: var(--violett); box-shadow: 0 0 0 3px rgba(107,63,150,.16);
}
.feld textarea { min-height: 7rem; resize: vertical; }
.zustimmung { display: flex; gap: .65rem; align-items: flex-start; font-size: .93rem; color: var(--tinte-leise); }
.zustimmung input { margin-top: .28rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--violett); }
button.senden {
  font: inherit; font-weight: 640; cursor: pointer;
  background: var(--violett); color: #fff; border: 0; border-radius: 999px;
  padding: .85rem 1.6rem; justify-self: start; box-shadow: var(--schatten);
  transition: transform 110ms ease-out, background-color 110ms ease-out;
}
button.senden:active { transform: scale(.97); }
button.senden:hover { background: var(--violett-tief); }

/* ---------- Fuß ---------- */
.fuss {
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
  background: var(--violett-tief); color: #ded8ea;
  padding-block: clamp(2rem, 5vw, 3rem);
}
.fuss a { color: #fff; }
.fuss__satz { display: grid; gap: 1.6rem; }
@media (min-width: 46rem) { .fuss__satz { grid-template-columns: repeat(3, 1fr); } }
.fuss h3 { color: #fff; font-size: 1rem; margin-bottom: .5em; }
.fuss p { margin-bottom: .5em; font-size: .95rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .4rem; font-size: .95rem; }
.fuss__unten {
  border-top: 1px solid rgba(255,255,255,.16); margin-top: 2rem; padding-top: 1.2rem;
  font-size: .87rem; color: #b6acc9;
}

/* ---------- Rücksicht auf Systemeinstellungen ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .kopf { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --tinte-leise: #3b3149; --linie: #b9b0cd; }
  .kopf { background: #fff; backdrop-filter: none; }
}
