/* Praxis Dr. Stern: ein Stylesheet, mobile first, ohne JavaScript.
   Bei Änderungen Dateinamen hochzählen (site.v2.css) und in allen Seiten ersetzen,
   weil Assets ein Jahr im Browser-Cache liegen (.htaccess). */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blau: #009de0;       /* Logo, Linien, Fokus, große Überschriften (3,0:1, nur groß) */
  --blau-tief: #0072a8;  /* Links im Fließtext (5,3:1) */
  --text: #1e2327;
  --grau: #5a6570;       /* Nebentext (6,0:1) */
  --linie: #dce3e8;
  --flaeche: #f2f5f7;
  --weiss: #ffffff;
  --breite: 1104px;
  --rand: 20px;
}

@media (min-width: 768px) {
  :root { --rand: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--weiss);
}

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

a {
  color: var(--blau-tief);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--text); }

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

h1, h2, h3 { text-wrap: balance; }

p, ul, ol, dl, table { margin: 0; }

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

.sprunglink {
  position: absolute;
  left: var(--rand);
  top: -100px;
  padding: 8px 14px;
  background: var(--weiss);
  z-index: 10;
}
.sprunglink:focus { top: 8px; }

/* ---------- Kopf ---------- */

.kopf { border-bottom: 1px solid var(--linie); }

.kopf__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  padding-top: 16px;
}

.kopf__logo { display: block; line-height: 0; }
.kopf__logo img { width: 140px; height: auto; }

.kopf__tel {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.kopf__tel-label { display: none; }

.nav {
  display: flex;
  gap: 20px;
  width: 100%;
  padding-top: 8px;
  overflow-x: auto;
  font-size: 1rem;
  font-weight: 500;
}
.nav a {
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--linie); }
.nav a[aria-current="page"] { border-bottom-color: var(--blau); }

@media (min-width: 768px) {
  .kopf__innen {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo tel" "logo nav";
    align-items: end;
    row-gap: 6px;
    padding-top: 28px;
    padding-bottom: 12px;
  }
  .kopf__logo { grid-area: logo; align-self: center; }
  .kopf__logo img { width: 187px; }
  .kopf__tel {
    grid-area: tel;
    justify-self: end;
    padding: 4px 0;
    font-weight: 400;
    color: var(--grau);
  }
  .kopf__tel-label { display: inline; }
  .kopf__tel-nummer { font-weight: 600; color: var(--text); }
  .nav {
    grid-area: nav;
    justify-self: end;
    width: auto;
    gap: 32px;
    padding-top: 0;
    overflow: visible;
    font-size: 1.0625rem;
  }
  .nav a { padding: 6px 0; }
}

/* ---------- Banner ---------- */

.banner { padding-top: 20px; }
.banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.banner--start img { object-position: 72% 30%; }
.banner--portrait img { object-position: 24% 30%; }

@media (min-width: 768px) {
  .banner { padding-top: 40px; }
  .banner img { height: auto; aspect-ratio: 960 / 318; }
}

/* ---------- Inhalt ---------- */

.inhalt { padding-top: 32px; padding-bottom: 56px; }

@media (min-width: 768px) {
  .inhalt { padding-top: 56px; padding-bottom: 96px; }
}

.dachzeile, .label {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grau);
}

h1 {
  margin: 0;
  font-size: 1.875rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.untertitel { margin-top: 8px; font-size: 1rem; color: var(--grau); }

.ueberschrift {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 650;
  color: var(--blau);
}
.ueberschrift::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--linie);
}

h3 {
  margin: 0 0 6px;
  font-size: 1.1875rem;
  line-height: 1.35;
  font-weight: 600;
}

.text { max-width: 34em; }
.text p + p { margin-top: 12px; }
.einleitung { margin-top: 20px; }

.hinweis { font-size: 1rem; color: var(--grau); }

.inhalt p + p,
.inhalt .liste + p { margin-top: 12px; }
.inhalt p + .liste { margin-top: 8px; }
.inhalt table + p { margin-top: 18px; }
.inhalt dl + p { margin-top: 20px; }

.abschnitt { margin-top: 44px; }
.abschnitt--erster { margin-top: 32px; }

@media (min-width: 768px) {
  .dachzeile, .label { font-size: 0.9375rem; }
  h1 { font-size: 2.75rem; line-height: 1.12; }
  .ueberschrift { gap: 20px; margin-bottom: 20px; font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  .einleitung { margin-top: 24px; }
  .abschnitt { margin-top: 72px; }
  .abschnitt--erster { margin-top: 48px; }
}

/* ---------- Startseite ---------- */

.start {
  display: grid;
  grid-template-areas: "intro" "blick" "liste";
  gap: 36px;
}
.start__intro { grid-area: intro; min-width: 0; }
.start__liste { grid-area: liste; min-width: 0; }
.blick { grid-area: blick; min-width: 0; }

@media (min-width: 900px) {
  .start {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    grid-template-areas: "intro blick" "liste blick";
    gap: 48px 80px;
    align-items: start;
  }
}

.blick {
  align-self: start;
  padding-top: 18px;
  border-top: 2px solid var(--blau);
}
.blick__name { font-weight: 600; }
.blick p + p { margin-top: 14px; }
.blick .blick__fach { margin-top: 0; font-size: 1rem; color: var(--grau); }
.blick h3 { margin: 24px 0 6px; font-size: 1.125rem; }
.blick table + p { margin-top: 12px; }

.kontaktdaten .hinweis { margin-top: 4px; line-height: 1.6; }

/* Inhaltsverzeichnis statt Kacheln */
.verzeichnis {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--linie);
}
.verzeichnis li { border-bottom: 1px solid var(--linie); }
.verzeichnis a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  color: var(--text);
  text-decoration: none;
}
.verzeichnis__titel { display: block; font-size: 1.1875rem; font-weight: 600; }
.verzeichnis__info { display: block; font-size: 1rem; color: var(--grau); }
.verzeichnis__pfeil { font-size: 1.375rem; color: var(--blau); }
.verzeichnis a:hover .verzeichnis__titel { text-decoration: underline; text-underline-offset: 3px; }
.verzeichnis--schmal { max-width: 40rem; }

@media (min-width: 768px) {
  .verzeichnis a { gap: 24px; padding: 18px 0; }
  .verzeichnis__titel { font-size: 1.25rem; }
}

/* ---------- Sprechzeiten ---------- */

/* Keine tabular-nums: Die Tabellenziffern dieser Schrift wirken wie Schreibmaschinenschrift. */
.zeiten {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.zeiten th, .zeiten td {
  padding: 11px 12px 11px 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--linie);
}
.zeiten td:last-child { padding-right: 0; }
.zeiten tbody tr:last-child > * { border-bottom: 1px solid var(--linie); }
.zeiten tbody th { font-weight: 600; }
.zeiten thead th {
  padding-top: 0;
  padding-bottom: 8px;
  border-top: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grau);
}

.zeiten--kurz th, .zeiten--kurz td { padding-top: 8px; padding-bottom: 8px; }
.zeiten--kurz tbody th { padding-right: 20px; font-weight: 500; white-space: nowrap; }

@media (min-width: 768px) {
  .zeiten:not(.zeiten--kurz) { font-size: 1.125rem; }
  .zeiten:not(.zeiten--kurz) th,
  .zeiten:not(.zeiten--kurz) td { padding-top: 12px; padding-bottom: 12px; padding-right: 16px; }
  .zeiten thead th { font-size: 0.875rem; padding-bottom: 10px; }
}

/* ---------- Zweispaltige Bereiche ---------- */

.spalten {
  display: flex;
  flex-wrap: wrap;
  gap: 44px 80px;
}
.spalten > * { flex: 1 1 360px; min-width: 0; }
.spalten > .spalte--breit { flex-basis: 460px; }

.kontakt-start { margin-top: 32px; }

@media (min-width: 768px) {
  .kontakt-start { margin-top: 48px; }
  /* Sprechzeiten stehen im Quelltext vorn (wichtigste Information), auf breiten Bildschirmen rechts */
  .spalten--kontakt > .kontaktdaten { order: -1; }
}

.daten {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin-top: 24px;
}
.daten dt { color: var(--grau); }
.daten dd { margin: 0; }

.liste { padding-left: 22px; }
.liste li + li { margin-top: 2px; }

/* ---------- Leistungen ---------- */

.leistungen div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 48px;
  padding: 18px 0;
  border-bottom: 1px solid var(--linie);
}
.leistungen dt {
  flex: 0 1 300px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
}
.leistungen dd {
  flex: 1 1 440px;
  min-width: 0;
  max-width: 38em;
  margin: 0;
}

@media (min-width: 768px) {
  .leistungen div { padding: 20px 0; }
  .leistungen dt { font-size: 1.25rem; }
}

/* ---------- Werdegang und Qualifikationen ---------- */

.werdegang { list-style: none; padding: 0; }
.werdegang li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--linie);
}
.werdegang__zeit { font-weight: 600; }

.quali {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 48px;
}
.quali .label { margin: 20px 0 6px; }

@media (min-width: 768px) {
  .werdegang li { grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
}

/* ---------- Rechtstexte ---------- */

.rechtstext { max-width: 42em; }
.rechtstext h2 {
  margin: 40px 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 650;
}
.rechtstext h3 { margin: 24px 0 6px; font-size: 1.0625rem; }
.rechtstext p + p, .rechtstext p + ul, .rechtstext ul + p { margin-top: 10px; }
.rechtstext .stand { margin-top: 12px; font-size: 1rem; color: var(--grau); }

@media (min-width: 768px) {
  .rechtstext h2 { font-size: 1.375rem; }
}

/* ---------- Fuß ---------- */

.fuss {
  font-size: 1rem;
  background: var(--flaeche);
  border-top: 1px solid var(--linie);
}
.fuss__spalten {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  padding-top: 36px;
}
.fuss__spalten > * { flex: 1 1 100%; }
.fuss__titel { margin-bottom: 6px; font-weight: 600; }
.fuss__text { color: var(--grau); }
.fuss__seiten {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  list-style: none;
  padding: 0;
  line-height: 2.4;
}
.fuss__unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 24px;
  padding-top: 16px;
  padding-bottom: 24px;
  font-size: 0.9375rem;
  color: var(--grau);
  border-top: 1px solid var(--linie);
}
.fuss__recht { display: flex; gap: 20px; list-style: none; padding: 0; }

@media (min-width: 768px) {
  .fuss__spalten { padding-top: 48px; }
  .fuss__spalten > * { flex: 1 1 200px; }
  .fuss__spalten > :first-child { flex-basis: 240px; }
  .fuss__seiten { display: block; line-height: 1.9; }
  .fuss__unten { margin-top: 40px; padding-bottom: 28px; }
}

@media print {
  .kopf__tel, .nav, .banner, .fuss__spalten, .sprunglink { display: none; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
}
