/* Schrift lokal eingebunden – keine Verbindung zu Google & Co. */
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/*
  Farbe: warme Neutraltöne, ein Akzent (Petrol aus dem Logo) für Anruf und Links.
  Orange ist reine Bedeutungsfarbe für den Notfall.
*/
:root {
  --bg: #F7F5F1;          /* Seite */
  --paper: #FFFFFF;       /* Karten */
  --raised: #F0ECE6;      /* Flächen in Karten, Hover */
  --line: rgba(23, 42, 44, .1);
  --ink: #172A2C;         /* Primärtext */
  --muted: #4F6163;       /* Sekundärtext */
  --faint: #66777A;       /* Meta, Icons */

  --petrol: #006F7A;
  --petrol-700: #00575F;
  --petrol-900: #0C3A3F;
  --mint-50: #E8F4EE;
  --teal-50: #EEF3F1;     /* Hintergrund Sprechzeiten/Praxis/FAQ – dezenter Türkis-Einschlag (vorher #E5F1F1) */
  --fox: #B04A17;
  --fox-700: #933D12;
  --fox-50: #F9F2EC;      /* Hintergrund Notfall – dezent (vorher #FBF0E8) */

  --r-sm: 8px;
  --r: 10px;
  --r-card: 16px;
  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;  /* 17 */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, picture { display: block; max-width: 100%; height: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--petrol-700); }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 20px; } }

/* ---------- Icons (lucide-Stil, 1,5er Strich) ---------- */
.ico { width: 18px; height: 18px; flex: none; color: var(--faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px;
  border-radius: var(--r); border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1; text-decoration: none;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .ico { color: currentColor; }
.btn-primary, .btn-primary:hover { color: #fff; }
.btn-primary { background: var(--petrol); }
.btn-primary:hover { background: var(--petrol-700); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); background: var(--raised); }
.btn-fox, .btn-fox:hover { color: #fff; }
.btn-fox { background: var(--fox); }
.btn-fox:hover { background: var(--fox-700); }

/* ---------- Kopfzeile ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 1rem; font-weight: 500; transition: color 150ms var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a.nav-notfall { color: var(--fox); }
.nav .btn { height: 40px; padding: 0 16px; }
.nav .btn, .nav .btn:hover { color: #fff; }
@media (max-width: 920px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 920px) { .logo img { height: 48px; } .top .wrap { height: 80px; } }
@media (max-width: 560px) { .nav { display: none; } .logo img { height: 44px; } .top .wrap { height: 72px; } }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.kicker { color: var(--muted); font-size: 1rem; font-weight: 500; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.25rem, 4.8vw, 3.5rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.025em; }
.hero h1 span { white-space: nowrap; }
.lead { margin-top: 20px; font-size: 1.25rem; line-height: 1.5; color: var(--muted); max-width: 32ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-media img, .hero-media video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 72% 50%; border-radius: var(--r-card); background: #E9ECEA; }
.hero-media video { object-position: 45% 40%; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.375rem; }
  .lead { font-size: 1.125rem; }
  .hero-media img, .hero-media video { aspect-ratio: 16 / 10; }
}

/* ---------- Abschnitte ---------- */
section.block { padding: 80px 0; border-top: 1px solid var(--line); }
.head { max-width: 640px; margin-bottom: 32px; }
.head h2, .about h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; }
.head p { margin-top: 12px; color: var(--muted); font-size: 1.125rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.card p + p { margin-top: 8px; }
.muted { color: var(--muted); }
@media (max-width: 560px) { section.block { padding: 56px 0; } .card { padding: 20px; } }

/* ---------- Notfall ---------- */
#notfall { background: var(--fox-50); }
.emergency { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.emergency .card p { color: var(--muted); }
.emergency .card .btn { margin-top: 20px; }
.kzv { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.kzv a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--raised); color: var(--ink); text-decoration: none; font-weight: 600;
  transition: background-color 150ms var(--ease);
}
.kzv a:hover { background: #E7E2DA; color: var(--ink); }
.kzv small { display: block; font-weight: 400; color: var(--muted); font-size: .875rem; }
.note-112 { margin-top: 24px; font-size: 1rem; color: var(--muted); }
.note-112 strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .emergency { grid-template-columns: 1fr; } }

/* ---------- Sprechzeiten ---------- */
.hours-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.hours-card { padding: 8px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; width: 36%; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours td.closed { color: var(--faint); }
.facts { list-style: none; margin: 0; display: grid; gap: 20px; }
.facts li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; }
.facts .ico { margin-top: 4px; }
.facts b { display: block; font-weight: 600; }
.facts span { color: var(--muted); }
@media (max-width: 860px) { .hours-grid { grid-template-columns: 1fr; } }
.hours .nw { white-space: nowrap; }
@media (max-width: 420px) {
  .hours th, .hours td { padding: 12px; }
  .hours .sep { display: none; }
  .hours .nw { display: block; }
}

/* ---------- Kontakt & Anfahrt ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.35fr; gap: 16px; }
.bigphone { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 8px; font-size: 2rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.bigphone:hover { color: var(--petrol); }
.bigphone .ico { width: 28px; height: 28px; color: var(--petrol); }
.hint { margin-top: 8px; }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.contact-grid .actions { margin-top: 20px; }
.place { display: grid; grid-template-columns: 0.85fr 1.15fr; overflow: hidden; padding: 0; }
.place picture { height: 100%; }
.place img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; min-height: 320px; }
.place .body { padding: 24px; display: flex; flex-direction: column; }
.place address { font-style: normal; line-height: 1.6; }
.park { margin-top: 16px; display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.park .ico { margin-top: 4px; }
.place .actions { margin-top: auto; padding-top: 24px; }
.place .btn { height: 44px; padding: 0 16px; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .place { grid-template-columns: 1fr; } .place img { min-height: 0; aspect-ratio: 16 / 11; } .place .body { padding: 20px; } }

/* ---------- Leistungen: ruhige Liste statt Kacheln ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; margin: 0; border-top: 1px solid var(--line); }
.services div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.services dt { font-weight: 600; }
.services dd { margin: 0; color: var(--muted); }
.for-all { margin-top: 32px; color: var(--muted); max-width: 640px; }
.for-all strong { color: var(--ink); font-weight: 600; }
@media (max-width: 920px) { .services { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .services div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Häufige Fragen ---------- */
#zeiten, #praxis, #fragen { background: var(--teal-50); }
.faq { max-width: 820px; display: grid; gap: 8px; }
.faq details {
  background: var(--paper); border: 1px solid rgba(0, 111, 122, .12); border-radius: 12px;
  padding: 0 20px; transition: border-color 150ms var(--ease);
}
.faq details:hover, .faq details[open] { border-color: rgba(0, 111, 122, .28); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem;
  transition: color 150ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
  border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--petrol); }
.faq details p { padding: 0 32px 16px 0; color: var(--muted); max-width: 68ch; }

/* ---------- Praxis / Team ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.about img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 62% 40%; border-radius: var(--r-card); }
.about h2 { margin-bottom: 20px; }
.about p { color: var(--muted); }
.about p + p { margin-top: 12px; }
.about .sig { margin-top: 20px; color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Fußzeile ---------- */
footer { background: var(--petrol-900); color: #C9DADB; padding: 56px 0 32px; font-size: 1rem; }
footer a { color: #fff; }
footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot h3 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.foot address { font-style: normal; }
.foot-logo { height: 44px; width: auto; margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #A3BFC1; font-size: .875rem; }
@media (max-width: 1000px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Mobile Aktionsleiste ---------- */
.mobilebar { display: none; }
@media (max-width: 560px) {
  body { padding-bottom: 80px; }
  .mobilebar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .mobilebar .btn { width: 100%; }
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.nav a.nav-back { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 920px) { .nav a.nav-back { display: inline-flex; } }
.legal-page { padding: 64px 0 80px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.prose .stand { color: var(--muted); margin-bottom: 40px; }
.prose h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.0625rem; margin: 24px 0 8px; }
.prose p, .prose ul, .prose address { margin: 0 0 12px; }
.prose address { font-style: normal; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 4px; }
.prose .box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; margin-bottom: 12px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 20px; margin: 0; }
.prose dt { font-weight: 600; }
.prose dd { margin: 0; }
/* Im Entwurf sichtbar markiert: Angaben, die vor dem Livegang geprüft/ergänzt werden müssen */
.todo { background: #FFF3C4; border-radius: 4px; padding: 0 4px; font-weight: 600; color: #6B4E00; }
@media (max-width: 560px) { .legal-page { padding: 40px 0 56px; } .prose dl { grid-template-columns: 1fr; gap: 0; } .prose dd { margin-bottom: 8px; } }
.legal:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
