/* =========================================================
   Dr. Ulrike Stelzl – Ordination Graz-Waltendorf
   Farben und Schriften werden hier zentral gesteuert.
   ========================================================= */

@font-face {
  font-family: "Atkinson";
  src: url("../fonts/atkinson-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("../fonts/atkinson-Italic.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("../fonts/atkinson-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff") format("woff");
  font-weight: 500 800; font-style: normal; font-display: swap;
}

:root {
  /* Farben */
  --kobalt: #2236d8;       /* Hauptblau (Nachfolger des alten #3a3aff) */
  --kobalt-tief: #1a2aa8;  /* Hover, Linien auf Blau */
  --tinte: #0e1850;        /* Text, Fußzeile */
  --himmel: #e9eeff;       /* helle Flächen */
  --himmel-linie: #c9d3fb;
  --weiss: #ffffff;
  --faecher: #e2412b;      /* Rot vom Fächer im Wartezimmer – nur sparsam */
  --grau: #4a5480;         /* Nebentext */

  /* Schrift */
  --text: "Atkinson", "Segoe UI", system-ui, sans-serif;
  --titel: "Bricolage", "Atkinson", system-ui, sans-serif;

  --breite: 72rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.1875rem;          /* 19px – gut lesbar, auch für ältere Patient:innen */
  line-height: 1.6;
  color: var(--tinte);
  background: var(--weiss);
}

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

h1, h2, h3 {
  font-family: var(--titel);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.005em; }

p { margin: 0 0 1em; max-width: 38em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.3em; }

a { color: var(--kobalt); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--kobalt-tief); text-decoration-thickness: 3px; }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.springen {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--tinte); color: var(--weiss); padding: 0.6rem 1rem; border-radius: 6px;
}
.springen:focus { top: 1rem; }

/* ---------- Hinweisleiste (z. B. Urlaub) ---------- */
.hinweis {
  background: var(--faecher);
  color: var(--weiss);
  font-weight: 700;
  padding: 0.7rem 0;
}
.hinweis p { margin: 0; max-width: none; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--weiss);
  border-bottom: 1px solid var(--himmel-linie);
}
.kopf .huelle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.marke { text-decoration: none; color: var(--tinte); line-height: 1.15; }
.marke:hover { color: var(--tinte); }
.marke strong { display: block; font-family: var(--titel); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.marke span { font-size: 0.9rem; color: var(--grau); }

.navi ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem; }
.navi li { margin: 0; }
.navi a {
  display: block; padding: 0.5rem 0.7rem; border-radius: 8px;
  text-decoration: none; color: var(--tinte); font-size: 1rem; font-weight: 700;
}
.navi a:hover { background: var(--himmel); }
.navi a[aria-current="page"] { background: var(--himmel); color: var(--kobalt); }

.knopf {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--kobalt); color: var(--weiss);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  padding: 0.65rem 1.1rem; border-radius: 999px;
}
.knopf:hover { background: var(--kobalt-tief); color: var(--weiss); }
.knopf svg { width: 1.1em; height: 1.1em; flex: none; }

.menue-knopf {
  display: none;
  font: inherit; font-weight: 700; color: var(--tinte);
  background: var(--himmel); border: 0; border-radius: 8px; padding: 0.55rem 0.9rem; cursor: pointer;
}

@media (max-width: 62rem) {
  .menue-knopf { display: inline-block; }
  .kopf .knopf-tel span { display: none; }
  .kopf .knopf-tel { padding: 0.65rem; }
  .navi {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--weiss); border-bottom: 1px solid var(--himmel-linie);
    padding: 0.5rem var(--rand) 1rem;
  }
  .navi.offen { display: block; }
  .navi ul { flex-direction: column; }
  .navi a { font-size: 1.15rem; padding: 0.75rem 0.5rem; }
  .kopf-rechts { display: flex; gap: 0.5rem; align-items: center; }
}
@media (min-width: 62.01rem) {
  .kopf-rechts { display: flex; gap: 1rem; align-items: center; }
}

/* ---------- Startseite: blauer Bereich mit Wochentafel ---------- */
.buehne {
  background: var(--kobalt);
  color: var(--weiss);
  padding: clamp(2.5rem, 7vw, 5.5rem) 0;
}
.buehne .huelle {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 56rem) {
  .buehne .huelle { grid-template-columns: 1.15fr 1fr; }
}
.buehne h1 { color: var(--weiss); margin-bottom: 0.35em; }
.buehne .titelzeile { font-size: 1.15rem; opacity: 0.92; margin-bottom: 1.6rem; }
.buehne .titelzeile b { display: block; font-family: var(--titel); font-size: 1.35rem; opacity: 1; }

.tel-gross {
  display: inline-block;
  font-family: var(--titel); font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.9rem); letter-spacing: -0.02em;
  color: var(--weiss); text-decoration: none; line-height: 1.05;
  border-bottom: 4px solid rgba(255,255,255,0.45);
  padding-bottom: 0.1em;
}
.tel-gross:hover { color: var(--weiss); border-bottom-color: var(--weiss); }
.buehne .tel-hinweis { margin-top: 0.8rem; font-size: 1.05rem; opacity: 0.92; }
.buehne .kassen {
  display: inline-block; margin-top: 1.2rem;
  background: var(--weiss); color: var(--kobalt);
  font-weight: 700; padding: 0.35rem 0.85rem; border-radius: 6px;
}

/* Wochentafel – das zentrale Element */
.tafel {
  background: var(--kobalt-tief);
  border-radius: 18px;
  padding: clamp(1.2rem, 3vw, 1.9rem);
}
.tafel h2 { font-size: 1.35rem; color: var(--weiss); margin-bottom: 0.9rem; }
.tafel table { width: 100%; border-collapse: collapse; }
.tafel th, .tafel td {
  text-align: left; padding: 0.7rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  vertical-align: top;
}
.tafel tr:first-child th, .tafel tr:first-child td { border-top: 0; }
.tafel th { font-family: var(--titel); font-weight: 700; width: 7.5rem; }
.tafel td { font-variant-numeric: tabular-nums; font-size: 1.15rem; }
.tafel td span { display: block; }
.tafel tr.heute th, .tafel tr.heute td { background: var(--weiss); color: var(--kobalt); border-top-color: transparent; }
.tafel tr.heute th { border-radius: 10px 0 0 10px; }
.tafel tr.heute td { border-radius: 0 10px 10px 0; font-weight: 700; }
.tafel tr.heute + tr th, .tafel tr.heute + tr td { border-top-color: transparent; }
.tafel .heute-marke {
  display: block; font-family: var(--text); font-size: 0.8rem; font-weight: 700;
  color: var(--faecher);
}
.tafel .heute-marke[hidden] { display: none; }
.tafel .fuss { margin: 1rem 0 0; font-size: 1rem; opacity: 0.9; }

/* Uhrzeiten in der Titelschrift: ruhigere Ziffern ohne durchgestrichene Null */
.tafel td, .zeiten td { font-family: var(--titel); font-weight: 500; }
.tafel tr.heute td { font-weight: 700; }

/* Kleine Ordinationszeiten-Tabelle (Kontakt, Fußzeile) */
.zeiten { border-collapse: collapse; }
.zeiten th, .zeiten td { text-align: left; padding: 0.3rem 1.2rem 0.3rem 0; vertical-align: top; }
.zeiten td { font-variant-numeric: tabular-nums; }
.zeiten tr.heute { color: var(--kobalt); font-weight: 700; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.abschnitt-hell { background: var(--himmel); }

.vorstellung {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) { .vorstellung { grid-template-columns: auto 1fr; } }

.portrait { position: relative; justify-self: start; margin: 0 1.2rem 1.2rem 0; }
.portrait::before {
  content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  background: var(--kobalt); border-radius: 14px;
}
.portrait img { position: relative; border-radius: 14px; width: 249px; }

.zitat {
  font-family: var(--titel); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.05rem); line-height: 1.25; letter-spacing: -0.015em;
  margin: 0 0 1.2rem; max-width: 24em;
}
.zitat-quelle { color: var(--grau); }

/* Leistungsübersicht: Liste mit Linien, keine Kartenoptik */
.bereiche {
  display: grid; gap: 0 clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 48rem) { .bereiche { grid-template-columns: 1fr 1fr; } }
.bereich { border-top: 3px solid var(--kobalt); padding: 1.3rem 0 2rem; }
.bereich h3 { font-size: 1.55rem; margin-bottom: 0.4em; }
.bereich h3 a { color: var(--tinte); text-decoration: none; }
.bereich h3 a:hover { color: var(--kobalt); }
.bereich p { color: var(--grau); }
.bereich .mehr { font-weight: 700; }

/* Praktische Infos */
.infos {
  display: grid; gap: 1.5rem clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) { .infos { grid-template-columns: repeat(3, 1fr); } }
.infos h3 { margin-bottom: 0.35em; }
.infos p { font-size: 1.05rem; }

/* Bücher */
.buecher-streifen {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) { .buecher-streifen { grid-template-columns: auto 1fr; } }
.cover { display: flex; gap: 1rem; align-items: flex-end; }
.cover img { width: 120px; border-radius: 4px; box-shadow: 0 10px 24px rgba(14, 24, 80, 0.18); }

/* ---------- Unterseiten ---------- */
.seitenkopf {
  background: var(--kobalt); color: var(--weiss);
  padding: clamp(2.2rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3.2rem);
}
.seitenkopf h1 { color: var(--weiss); font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: 0.3em; }
.seitenkopf p { font-size: 1.2rem; opacity: 0.95; margin: 0; max-width: 34em; }

.mit-index {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
@media (min-width: 60rem) {
  .mit-index { grid-template-columns: 15rem 1fr; gap: 4rem; }
}
.seitenindex { font-size: 1rem; }
.seitenindex h2 { font-family: var(--text); font-size: 1rem; font-weight: 700; color: var(--grau); letter-spacing: 0; margin-bottom: 0.6rem; }
.seitenindex ul { list-style: none; padding: 0; margin: 0; }
.seitenindex li { margin: 0; }
.seitenindex a { display: block; padding: 0.35rem 0 0.35rem 0.8rem; border-left: 3px solid var(--himmel-linie); text-decoration: none; color: var(--tinte); }
.seitenindex a:hover { border-left-color: var(--kobalt); color: var(--kobalt); }
@media (min-width: 60rem) {
  .seitenindex nav { position: sticky; top: 6.5rem; }
}
@media (max-width: 59.99rem) {
  .seitenindex ul { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .seitenindex a { border: 1px solid var(--himmel-linie); border-radius: 999px; padding: 0.3rem 0.85rem; background: var(--himmel); }
}

.inhalt > section { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--himmel-linie); }
.inhalt > section:last-child { border-bottom: 0; margin-bottom: 0; }
.inhalt h2 { margin-bottom: 0.6em; }
.inhalt h3 { margin-top: 1.6em; }
.inhalt h2 + h3, .inhalt h2 + .eintrag h3 { margin-top: 0.4em; }

.eintrag { display: grid; gap: 0 2rem; grid-template-columns: 1fr; }
.eintrag + .eintrag { margin-top: 1.8rem; }
.eintrag h3 { margin-top: 0; }
@media (min-width: 40rem) {
  .eintrag.mit-bild { grid-template-columns: 1fr 190px; }
}
.eintrag figure { margin: 0; }
.eintrag figure img { border-radius: 10px; width: 190px; }
.eintrag p:last-child { margin-bottom: 0; }

.leistungsliste {
  list-style: none; padding: 0;
  columns: 2 16rem; column-gap: 2rem;
}
.leistungsliste li { break-inside: avoid; padding-left: 1.1em; position: relative; }
.leistungsliste li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--kobalt);
}

.kasten {
  background: var(--himmel); border-left: 5px solid var(--kobalt);
  border-radius: 0 12px 12px 0; padding: 1.1rem 1.3rem; margin: 1.5rem 0;
}
.kasten p { margin: 0; }
.kasten p + p { margin-top: 0.6em; }

.team { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); margin-top: 1.5rem; }
.team figure { margin: 0; }
.team img { border-radius: 12px; width: 100%; max-width: 300px; aspect-ratio: 3 / 4; object-fit: cover; }
.team figcaption { margin-top: 0.7rem; line-height: 1.35; }
.team figcaption b { display: block; font-family: var(--titel); font-size: 1.2rem; }

.bilderreihe { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.bilderreihe img { border-radius: 10px; height: 230px; width: auto; }

.buch { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 44rem) { .buch { grid-template-columns: 200px 1fr; } }
.buch img { width: 200px; border-radius: 4px; box-shadow: 0 14px 30px rgba(14, 24, 80, 0.2); }
.buch .untertitel { font-size: 1.2rem; color: var(--grau); margin-top: -0.3em; }
.buch .daten { font-size: 0.95rem; color: var(--grau); }
.buch blockquote { margin: 0 0 1em; padding-left: 1rem; border-left: 3px solid var(--faecher); font-style: italic; }

.kontakt-raster { display: grid; gap: 2.5rem 4rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .kontakt-raster { grid-template-columns: 1fr 1fr; } }
.kontakt-raster .tel-gross { color: var(--kobalt); border-bottom-color: var(--himmel-linie); }
.kontakt-raster .tel-gross:hover { border-bottom-color: var(--kobalt); }
.plan { border: 1px solid var(--himmel-linie); border-radius: 12px; }

.rechtstext h2 { font-size: 1.5rem; margin-top: 1.8em; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); max-width: 46rem; }

/* ---------- Fußzeile ---------- */
.fuss-bereich { background: var(--tinte); color: #dfe5ff; padding: 3.5rem 0 2rem; font-size: 1.02rem; }
.fuss-bereich a { color: var(--weiss); }
.fuss-raster { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .fuss-raster { grid-template-columns: 1.2fr 1fr 1fr; } }
.fuss-bereich h2 { font-size: 1.15rem; color: var(--weiss); margin-bottom: 0.6rem; }
.fuss-bereich p { margin-bottom: 0.4em; }
.fuss-bereich .zeiten th, .fuss-bereich .zeiten td { padding: 0.15rem 1rem 0.15rem 0; font-weight: 400; }
.fuss-bereich .zeiten tr.heute { color: var(--weiss); font-weight: 700; }
.fuss-unten {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.95rem;
}
.fuss-unten p { margin: 0; margin-right: auto; }

@media print {
  .kopf, .menue-knopf, .fuss-unten, .seitenindex { display: none !important; }
  .buehne, .seitenkopf { background: none; color: #000; }
  .buehne h1, .seitenkopf h1, .tel-gross { color: #000; }
}

/* Startseite: kompakte Linkreihe zu den Bereichen */
.schnellwahl { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.schnellwahl a {
  display: inline-block; padding: 0.55rem 1rem;
  border: 2px solid var(--kobalt); border-radius: 999px;
  font-weight: 700; text-decoration: none; color: var(--kobalt);
}
.schnellwahl a:hover { background: var(--kobalt); color: var(--weiss); }

/* Startseite: Foto gleich oben im blauen Bereich, wie eine Visitenkarte */
.visitenkarte { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.6rem); margin-bottom: 1.8rem; }
.visitenkarte img {
  width: clamp(120px, 22vw, 190px); flex: none;
  border: 5px solid var(--weiss); border-radius: 16px;
  box-shadow: 0 16px 32px rgba(8, 14, 70, 0.35);
}
.visitenkarte .titelzeile { margin: 0; line-height: 1.45; }
.visitenkarte .titelzeile b { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: 0.3rem; line-height: 1.15; }
.vorstellung-text { max-width: 46rem; }

/* Lange Wörter (z. B. Gesundheitsberatung) dürfen am Handy umbrechen */
.inhalt, .rechtstext { overflow-wrap: break-word; }
.inhalt { min-width: 0; }
