/* ===== Praxis L. Vöhringer – Design System ===== */

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --petrol: #1E6B74;
  --petrol-dark: #14525A;
  --ink: #26343A;
  --muted: #5B6B70;
  --paper: #FAF8F4;
  --card: #FFFFFF;
  --line: #E4E0D6;
  --soft: #E9F1F0;
  --sand: #F3EEE5;
  --signal: #A8443A;
  --signal-soft: #F7EEEA;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;      /* 17px – gut lesbar, auch für ältere Augen */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--petrol-dark); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Typografie ===== */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 3.5vw, 1.9rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 0.7rem;
}

.section-intro {
  max-width: 44rem;
  color: var(--muted);
  margin-bottom: 2.2rem;
}

/* ===== Kopfzeile ===== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.brand {
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.25;
  padding: 0.4rem 0;
}
.brand strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; display: block; }
.brand span { font-size: 0.8rem; color: var(--muted); }
.nav { display: flex; gap: 1.3rem; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--petrol); color: var(--petrol-dark); }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--petrol);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.call-btn:hover { background: var(--petrol-dark); }
.call-btn svg { flex: 0 0 auto; }

@media (max-width: 880px) {
  .nav {
    order: 3;
    flex: 1 1 100%;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
}

/* ===== Abschnitte ===== */

.section { padding: 4.25rem 0; }
.section.tinted { background: var(--sand); }

/* ===== Hero ===== */

.hero {
  background: linear-gradient(180deg, var(--soft) 0%, var(--paper) 100%);
  padding: 4rem 0 6.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero-photo { justify-self: end; width: 100%; max-width: 400px; }
.hero-photo a {
  display: block;
  position: relative;
  border-radius: 16px;
}
.hero-photo img,
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  border: 5px solid #FFFFFF;
  box-shadow: 0 16px 44px rgba(38, 52, 58, 0.16);
}
.photo-tag {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  background: #FFFFFF;
  color: var(--petrol-dark);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(38, 52, 58, 0.18);
}
.hero-photo a:hover .photo-tag,
.hero-photo a:focus-visible .photo-tag {
  background: var(--petrol);
  color: #FFFFFF;
}

/* Ärztin-Unterseite */
.profile-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}
.portrait { width: 100%; max-width: 400px; }
.mini-head {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petrol);
  margin: 1.8rem 0 0.4rem;
}

/* Sprechzeiten-Streifen unter dem Hero */
.hours-strip {
  position: relative;
  z-index: 2;
  margin-top: -4.5rem;
}
.hours-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0 2.5rem;
}
.hours-grid h3:first-child { margin-top: 0.9rem; }
.hero p.sub {
  font-size: 1.15rem;
  max-width: 36rem;
  margin: 1.1rem 0 0.9rem;
}
.hero address {
  font-style: normal;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.hero address a {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.hero address a:hover { color: var(--petrol-dark); text-decoration-style: solid; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--petrol);
}

/* Termin-Popup */
dialog.termin-dialog {
  margin: auto;
  border: none;
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  padding: 2rem 2.2rem;
  max-width: 24rem;
  width: calc(100% - 2.5rem);
  box-shadow: 0 24px 64px rgba(38, 52, 58, 0.3);
}
dialog.termin-dialog::backdrop {
  background: rgba(38, 52, 58, 0.5);
}
.termin-dialog h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.termin-dialog .reach { margin-bottom: 0.9rem; }
.termin-dialog .phone-big {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--petrol-dark);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  margin-top: 0.2rem;
}
.termin-dialog .times {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.9rem;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.dialog-actions form { display: contents; }
.btn.primary { background: var(--petrol); color: #fff; }
.btn.primary:hover { background: var(--petrol-dark); border-color: var(--petrol-dark); }
.btn.ghost { color: var(--petrol-dark); background: transparent; }
.btn.ghost:hover { background: var(--soft); }

.notice-box {
  margin-top: 1.6rem;
  background: var(--card);
  border-left: 4px solid var(--petrol);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.1rem;
  max-width: 36rem;
}
.notice-box strong { display: block; margin-bottom: 0.15rem; }

/* Sprechzeiten-Karte */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 30px rgba(38, 52, 58, 0.07);
}
.card h2 { font-size: 1.3rem; }
.card h3 { font-family: var(--sans); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--petrol); margin: 1.3rem 0 0.4rem; }
.card h3:first-of-type { margin-top: 0.9rem; }

table.hours { width: 100%; border-collapse: collapse; }
table.hours td {
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.hours tr:last-child td { border-bottom: none; }
table.hours td.time {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.card p.small { font-size: 0.95rem; color: var(--muted); margin-top: 0.35rem; }
.card p.small + p.small { margin-top: 0.6rem; }

/* ===== Notfall ===== */

.notfall { background: var(--signal-soft); padding: 3.5rem 0; }
.notfall h2 { color: var(--signal); }
.notfall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.8rem;
}
.notfall-card {
  background: var(--card);
  border: 1px solid #EADDD6;
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
}
.notfall-card .number {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 0.3rem;
}
.notfall-card .number a { color: inherit; text-decoration: none; }
.notfall-card strong { display: block; margin-bottom: 0.3rem; }
.notfall-card p { font-size: 0.95rem; color: var(--muted); }
.notfall-card p a { font-variant-numeric: tabular-nums; }

/* ===== Leistungen ===== */

figure.wide-img { margin: 0 0 2.2rem; }
figure.wide-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
}

.leistungen-grid {
  columns: 2;
  column-gap: 1.2rem;
}
.leistung-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  break-inside: avoid;
  margin-bottom: 1.2rem;
}
.leistung-card ul { list-style: none; }
.leistung-card li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}
.leistung-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--petrol);
}
.leistung-card p.quiet { font-size: 0.92rem; color: var(--muted); margin-top: 0.7rem; }
.kassen-note {
  margin-top: 1.6rem;
  color: var(--muted);
  max-width: 46rem;
}

/* ===== Gut zu wissen ===== */

.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3.5rem;
}
.info-item {
  border-top: 2px solid #D9D2C2;
  padding-top: 0.95rem;
}
.info-item h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; margin-bottom: 0.3rem; }
.info-item p { font-size: 0.97rem; color: var(--muted); }
.sgb-note { margin-top: 1.6rem; color: var(--muted); font-size: 0.95rem; max-width: 46rem; }

/* ===== Ärztin ===== */

.aerztin-inner { max-width: 50rem; }
.vita { list-style: none; margin: 1.2rem 0 1.5rem; }
.vita li {
  padding: 0.55rem 0 0.55rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.vita li:last-child { border-bottom: none; }
.vita li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--petrol);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips span {
  background: var(--soft);
  color: var(--petrol-dark);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

/* ===== Anfahrt ===== */

.anfahrt-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}
.map-wrap { position: relative; }
.map-wrap a { display: block; border-radius: 14px; }
.map-wrap img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
}
.map-hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }
.anfahrt-block { margin-bottom: 1.6rem; }
.anfahrt-block h3 { font-family: var(--sans); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--petrol); margin-bottom: 0.45rem; }
.anfahrt-block p, .anfahrt-block li { font-size: 0.98rem; }
.anfahrt-block ul { list-style: none; }
.anfahrt-block li { margin-bottom: 0.3rem; }
.linien { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; vertical-align: middle; }
.linien b {
  background: var(--soft);
  color: var(--petrol-dark);
  border-radius: 6px;
  padding: 0.05rem 0.5rem;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* ===== Fußzeile ===== */

footer {
  background: var(--ink);
  color: #C9D6D4;
  padding: 3.2rem 0 2rem;
  margin-top: 2rem;
}
footer h3 {
  font-family: var(--sans);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.2rem;
}
footer a { color: #E8F0EF; }
footer address { font-style: normal; }
footer table.hours td { border-bottom-color: rgba(255, 255, 255, 0.12); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: #9DB0AE;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
footer .credit {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  text-align: right;
}
footer .credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #7F9391;
  text-decoration: none;
}
footer .credit a:hover { color: #FFFFFF; }
footer .credit img { width: 16px; height: 16px; opacity: 0.8; }

/* ===== Rechtsseiten ===== */

.legal { max-width: 46rem; margin: 0 auto; padding: 3.5rem 1.25rem 4.5rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 0.6rem; }
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 0.35rem; }
.legal p, .legal li { margin-bottom: 0.8rem; }
.legal ul { padding-left: 1.3rem; }
.legal .backlink { display: inline-block; margin-bottom: 2rem; }

/* ===== Responsiv ===== */

@media (max-width: 880px) {
  .hero-grid,
  .profile-grid,
  .anfahrt-grid { grid-template-columns: 1fr; gap: 2rem; }
  .portrait { max-width: 340px; }
  .hero { padding-bottom: 5.5rem; }
  .hero-photo { justify-self: start; max-width: 340px; }
  .hours-grid { grid-template-columns: 1fr; }
  .leistungen-grid { columns: 1; }
  .info-list { grid-template-columns: 1fr; }
  .notfall-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  figure.wide-img img { height: 220px; }
  .brand span { display: none; }
  .brand strong { font-size: 1.05rem; }
  .call-btn { padding: 0.6rem 0.95rem; font-size: 0.92rem; }
  .nav { gap: 1.1rem; }
  .nav a { font-size: 0.92rem; padding: 0.6rem 0; }

  /* Touch-Ziele vergrößern */
  .notfall-card p a,
  .footer-grid a,
  .footer-bottom a {
    display: inline-block;
    padding: 0.25rem 0;
  }
}

/* Anker nicht unter der Kopfzeile verschwinden lassen */
section[id], [id="sprechzeiten"] { scroll-margin-top: 6.5rem; }

/* ===== Feinschliff ===== */

/* Icons der Leistungsgruppen */
.leistung-card h3 { display: flex; align-items: center; gap: 0.6rem; }
.leistung-card .icon { width: 28px; height: 28px; flex: 0 0 auto; color: var(--petrol); }

/* Heutiger Wochentag in der Sprechzeiten-Tabelle */
table.hours tr.today td { color: var(--petrol-dark); font-weight: 700; }
table.hours tr.today td:first-child::after {
  content: " · heute";
  font-weight: 400;
  font-size: 0.85em;
  color: var(--muted);
}

/* Hover-Feinschliff – nur auf Geräten mit Maus */
@media (hover: hover) {
  .btn, .call-btn, .leistung-card, .hero-photo img {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  }
  .btn:hover, .call-btn:hover { transform: translateY(-1px); }
  .btn.primary:hover, .call-btn:hover { box-shadow: 0 8px 18px rgba(30, 107, 116, 0.28); }
  .leistung-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(38, 52, 58, 0.09); }
  .hero-photo a:hover img { box-shadow: 0 20px 50px rgba(38, 52, 58, 0.24); }
}

/* Sanftes Einblenden – nur wenn site.js läuft, nie bei reduzierter Bewegung */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.js-reveal .leistung-card:nth-child(2), .js-reveal .info-item:nth-child(2) { transition-delay: 0.06s; }
.js-reveal .leistung-card:nth-child(3), .js-reveal .info-item:nth-child(3) { transition-delay: 0.12s; }
.js-reveal .leistung-card:nth-child(4), .js-reveal .info-item:nth-child(4) { transition-delay: 0.18s; }
.js-reveal .leistung-card:nth-child(5), .js-reveal .info-item:nth-child(5) { transition-delay: 0.24s; }
.js-reveal .info-item:nth-child(6) { transition-delay: 0.3s; }
.js-reveal .info-item:nth-child(7) { transition-delay: 0.36s; }
.js-reveal .info-item:nth-child(8) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .call-btn, .leistung-card, .hero-photo img { transition: none; }
}
