/* Tierarztpraxis – Design-System "Blaues Heft"
   Für einen neuen Kunden zuerst die Tokens in :root anpassen. */

:root {
  --pass: #1f3d8a;
  --pass-dark: #172f6e;
  --ink: #17213f;
  --ink-soft: #4f5a78;
  --page: #e8efea;
  --page-line: #d3ddd6;
  --paper: #ffffff;
  --stamp: #c8323e;
  --label: #f3d34a;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --measure: 34rem;
  --wide: 1200px;
  --radius: 6px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
a { color: var(--pass); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--pass-dark); }
h1, h2, h3 { margin: 0 0 0.45em; color: var(--ink); line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
:focus-visible { outline: 3px solid var(--pass); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); max-width: var(--measure); }
.measure { max-width: var(--measure); }
.block { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.block--page { background: var(--page); }
.note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--label);
  padding-left: 0.75rem;
  max-width: var(--measure);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid var(--pass);
  font: 700 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--pass); color: var(--paper); }
.btn-primary:hover { background: var(--pass-dark); border-color: var(--pass-dark); color: var(--paper); }
.btn-secondary { background: transparent; color: var(--pass); }
.btn-secondary:hover { background: var(--pass); color: var(--paper); }
.btn-inverse { background: var(--paper); border-color: var(--paper); color: var(--pass); }
.btn-inverse:hover { background: var(--label); border-color: var(--label); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--page-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.logo img { height: 42px; width: auto; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.9rem;
  background: none;
  border: 1.5px solid var(--page-line);
  border-radius: var(--radius);
  font: 700 0.95rem var(--font);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.nav-toggle[aria-expanded="true"] span { box-shadow: none; }
.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--page-line);
  display: none;
  padding: 0.5rem clamp(20px, 4vw, 40px) 1.25rem;
}
.primary-nav.is-open { display: block; }
.primary-nav ul a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--page-line);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.primary-nav ul a[aria-current="page"] { color: var(--pass); }
.nav-cta { margin-top: 1rem; width: 100%; }

/* Seitenkopf der Unterseiten */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--page-line); }
.page-head__grid { display: grid; gap: 2rem; align-items: end; }
.back { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; font-size: 0.95rem; }

/* Passfoto (Unterseiten) */
.photo {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 4 / 3;
  background: #dce6f2;
  border: 8px solid var(--paper);
  box-shadow: 0 0 0 1px var(--page-line), 0 18px 30px -18px rgba(23, 33, 63, 0.45);
  overflow: hidden;
}
.photo__dog, .photo__cat { position: absolute; bottom: -2%; width: 70%; height: auto; }
.photo__dog { left: -6%; }
.photo__cat { right: -10%; width: 58%; }

/* Einträge: Leistungsliste als Zeilen */
.entries { border-top: 2px solid var(--ink); }
.entry {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--page-line);
}
.entry h3 { margin: 0; }
.entry p { margin: 0; color: var(--ink-soft); max-width: var(--measure); }

.aside-note {
  background: var(--page);
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  max-width: 44rem;
}
.aside-note h2 { font-size: 1.3125rem; margin-bottom: 0.4rem; }
.aside-note p:last-child { margin-bottom: 0; }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; font-weight: 600; }

/* Übersicht Lebensphasen */
.stages { display: grid; gap: 2.5rem; }
.stage { display: grid; gap: 1.25rem; align-content: start; }
.stage h2 { font-size: 1.6rem; margin: 0; }
.stage p { margin: 0; color: var(--ink-soft); }

.plain-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--page-line); }
.plain-list li:first-child { border-top: 2px solid var(--ink); }
.plain-list strong { display: block; }

/* Team */
.team { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.member img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #dce6f2;
  border: 8px solid var(--paper);
  box-shadow: 0 0 0 1px var(--page-line);
  margin-bottom: 1rem;
}
.member h2 { font-size: 1.3125rem; margin-bottom: 0.15rem; }
.member__role { color: var(--pass); font-weight: 600; margin-bottom: 0.5rem; }
.member p:last-child { color: var(--ink-soft); }

/* Galerie */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Kontakt */
.contact { display: grid; gap: 3rem; }
.contact dl { margin: 0; }
.contact dt { font-weight: 700; margin-top: 1.25rem; }
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 0.15rem 0 0; }
.hours { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.hours th, .hours td { text-align: left; padding: 0.75rem 0; border-bottom: 1px solid var(--page-line); font-weight: 400; }
.hours th { font-weight: 700; width: 11rem; padding-right: 1rem; }
.hours .is-emergency td { color: var(--stamp); font-weight: 600; }
.map { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--page); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Termin-Bereich: ruhig, wie ein Sprechzeiten-Aushang */
.booking { padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--page-line); }
.booking__grid { display: grid; gap: 3.5rem; }
.booking h3 { font-size: 1.3125rem; margin-bottom: 0.9rem; }
.booking__intro { color: var(--ink-soft); max-width: var(--measure); margin-bottom: 2rem; }
.booking__ways { margin: 0 0 2rem; border-top: 2px solid var(--ink); max-width: 36rem; }
.booking__ways > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--page-line);
}
.booking__ways dt { font-weight: 700; }
.booking__ways dd { margin: 0; }
.booking__phone { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
.booking__phone:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--pass-dark); color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }
.footer-inner { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-block: 3rem; }
.site-footer h2 { font-size: 1rem; color: var(--paper); margin-bottom: 0.6rem; letter-spacing: 0; }
.site-footer a { color: var(--paper); }
.site-footer li { margin-bottom: 0.3rem; }
.footer-logo { height: 40px; width: auto; background: var(--paper); padding: 4px 10px; border-radius: var(--radius); margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-block: 1.1rem; font-size: 0.875rem; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }

/* Rechtliches */
.legal { max-width: 44rem; }
.legal h2 { margin-top: 2.5rem; }
.legal dt { font-weight: 700; margin-top: 1rem; }
.legal dd { margin: 0.15rem 0 0; color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }

@media (min-width: 768px) {
  .page-head__grid { grid-template-columns: 1fr minmax(260px, 380px); }
  .entry { grid-template-columns: minmax(12rem, 1fr) 2fr; align-items: baseline; }
  .stages { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; }
  .booking__grid { grid-template-columns: 1.15fr 1fr; column-gap: clamp(3rem, 8vw, 7rem); align-items: start; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .primary-nav { position: static; display: flex; align-items: center; gap: 2rem; padding: 0; border: 0; background: none; }
  .primary-nav ul { display: flex; gap: 1.75rem; }
  .primary-nav ul a { padding: 0.35rem 0; border: 0; text-decoration: none; }
  .primary-nav ul a:hover { color: var(--pass); }
  .primary-nav ul a[aria-current="page"] { color: var(--pass); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
  .nav-cta { margin: 0; width: auto; min-height: 44px; }
}
