/* Warm, friendly medical practice in the Odenwald forest region */
:root {
  --bg: #FFFCF7;
  --bg-card: #FFFFFF;
  --bg-alt: #FEF7EE;
  --fg: #2A3328;
  --fg-muted: #6A7766;
  --accent: #5C8873;
  --accent-hover: #4C7362;
  --accent-soft: #E6EEE9;
  --warm: #E5943A;
  --warm-soft: #FFF4E0;
  --warm-hover: #D0832F;
  --border: #E6DFD5;
  --shadow: rgba(42, 51, 40, 0.06);
  --nav-bg: rgba(255,252,247,0.94);
  --hero-from: #E6F3E6;
  --hero-via: #F5F9EE;
  --hero-to: #FFFCF7;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;

  --container: 940px;
  --container-wide: 1180px;
  --gap: clamp(3rem, 8vw, 5.5rem);
  --r: 14px;
  --r-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141D15;
    --bg-card: #1C281E;
    --bg-alt: #1A2318;
    --fg: #E0ECDF;
    --fg-muted: #94A892;
    --accent: #7FAE94;
    --accent-hover: #6B9981;
    --accent-soft: #223129;
    --warm: #E8A450;
    --warm-soft: #2D2518;
    --warm-hover: #D99340;
    --border: #2C3E2E;
    --shadow: rgba(0,0,0,0.2);
    --nav-bg: rgba(20,29,21,0.94);
    --hero-from: #182319;
    --hero-via: #16201A;
    --hero-to: #141D15;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141D15;
  --bg-card: #1C281E;
  --bg-alt: #1A2318;
  --fg: #E0ECDF;
  --fg-muted: #94A892;
  --accent: #7FAE94;
  --accent-hover: #6B9981;
  --accent-soft: #223129;
  --warm: #E8A450;
  --warm-soft: #2D2518;
  --warm-hover: #D99340;
  --border: #2C3E2E;
  --shadow: rgba(0,0,0,0.2);
  --nav-bg: rgba(20,29,21,0.94);
  --hero-from: #182319;
  --hero-via: #16201A;
  --hero-to: #141D15;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font-body);
  font-size: 1.07rem; line-height: 1.7; margin: 0; padding: 0; -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: 20px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding-inline: 20px; }

/* ─── Navigation ─── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.nav-logo {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo img { width: 100%; height: 100%; object-fit: contain; }
.nav-brand-text { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 0.92rem; font-weight: 600; color: var(--fg-muted); text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--fg); line-height: 0;
}
@media (max-width: 720px) {
  .nav-brand-text { display: none; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; background: var(--nav-bg); backdrop-filter: blur(14px);
    padding: 8px 20px 16px; border-bottom: 1px solid var(--border); gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ─── Hero ─── */
.hero {
  background: linear-gradient(175deg, var(--hero-from) 0%, var(--hero-via) 40%, var(--hero-to) 100%);
  padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(2.5rem, 8vw, 4.5rem);
  text-align: center; position: relative; overflow: hidden;
}
.hero-deco {
  position: absolute; pointer-events: none; opacity: 0.06; color: var(--accent);
}
.hero-deco-1 { top: -20px; right: -30px; width: 260px; height: 260px; }
.hero-deco-2 { bottom: -40px; left: -50px; width: 200px; height: 200px; transform: rotate(40deg); }
@media (max-width: 600px) {
  .hero-deco-1 { width: 160px; height: 160px; }
  .hero-deco-2 { width: 120px; height: 120px; }
}
.hero-welcome {
  display: inline-block; background: var(--warm-soft); color: var(--warm);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 50px; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 14px; }
.hero h1 .highlight { color: var(--accent); }
.hero-subtitle {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--fg-muted); margin-bottom: 28px; font-style: italic;
}
.hero-cta {
  margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  padding: 13px 26px; border-radius: 50px; font-weight: 700; font-size: 0.98rem;
  font-family: var(--font-body); text-decoration: none; transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px var(--shadow); }
.btn-warm { background: var(--warm); color: #fff; }
.btn-warm:hover { background: var(--warm-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px var(--shadow); }
.btn svg { width: 16px; height: 16px; }

/* ─── Info strip ─── */
.info-strip {
  background: linear-gradient(135deg, var(--accent) 0%, #6B9980 100%);
  color: #fff; padding: 16px 0;
}
.info-strip-inner {
  max-width: var(--container); margin: 0 auto; padding-inline: 20px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px;
  font-size: 0.88rem; font-weight: 600;
}
.info-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.info-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.8; }
.info-item a { color: inherit; }

/* ─── Page header (subpages) ─── */
.page-header {
  background: linear-gradient(175deg, var(--hero-from) 0%, var(--hero-to) 100%);
  padding: clamp(1.5rem, 4vw, 2rem) 0 clamp(0.75rem, 2vw, 1rem); text-align: center;
}
.page-header h1 { margin-bottom: 8px; }
.page-header .subtitle { color: var(--fg-muted); max-width: 560px; margin: 0 auto; font-size: 0.98rem; line-height: 1.6; }
.page-header + .section { padding-top: clamp(0.75rem, 2vw, 1.25rem); }

/* ─── Sections ─── */
.section { padding: var(--gap) 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: clamp(1rem, 2.5vw, 1.5rem); }
.section-header h2 { margin-bottom: 10px; }
.section-header .subtitle {
  color: var(--fg-muted); max-width: 520px; margin: 0 auto; font-size: 0.95rem; line-height: 1.6;
}

/* ─── Aktuelles ─── */
.news-card {
  background: var(--warm-soft); border: 1px solid color-mix(in srgb, var(--warm), transparent 70%);
  border-radius: var(--r); padding: 24px 28px; max-width: 560px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 16px;
}
.news-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--warm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.news-icon svg { width: 20px; height: 20px; color: #fff; }
.news-card h3 { color: var(--warm); margin-bottom: 4px; font-family: var(--font-display); font-size: 1rem; }
.news-card p { font-size: 0.92rem; color: var(--fg-muted); }

/* ─── Quick links (home) ─── */
.quicklinks-layout { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 760px) { .quicklinks-layout { grid-template-columns: 1fr; } }
.quicklinks-photo {
  border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--border); min-height: 220px;
}
.quicklinks-photo img { width: 100%; height: 100%; object-fit: cover; }
.quicklinks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.quicklink-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px 24px; box-shadow: 0 2px 12px var(--shadow); text-decoration: none; color: var(--fg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.quicklink-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px var(--shadow); color: var(--fg); }
.quicklink-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.quicklink-icon svg { width: 22px; height: 22px; color: var(--accent); }
.quicklink-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.quicklink-card p { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.55; }
.quicklink-card .quicklink-arrow {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84rem; font-weight: 700; color: var(--accent);
}
.quicklink-card .quicklink-arrow svg { width: 14px; height: 14px; }

/* ─── Team ─── */
.team-photo-wrap {
  max-width: 860px; margin: 0 auto 28px; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow); border: 1px solid var(--border);
}
.team-photo-wrap img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center 20%; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px 24px; text-align: center;
  box-shadow: 0 2px 12px var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px var(--shadow); }
.team-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.team-avatar svg { width: 32px; height: 32px; }
.team-card:nth-child(1) .team-avatar { background: var(--accent-soft); color: var(--accent); }
.team-card:nth-child(2) .team-avatar { background: var(--warm-soft); color: var(--warm); }
.team-card:nth-child(3) .team-avatar { background: #E8E0F4; color: #7B61B8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .team-card:nth-child(3) .team-avatar { background: #2A2438; color: #A48BD4; }
}
:root[data-theme="dark"] .team-card:nth-child(3) .team-avatar { background: #2A2438; color: #A48BD4; }
.team-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; margin-bottom: 14px; color: var(--fg); }
.team-card ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.team-card li { font-size: 0.86rem; color: var(--fg-muted); }
.team-card li:first-child {
  font-weight: 700; color: var(--accent); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
}
.team-card:nth-child(2) li:first-child { color: var(--warm); }
.team-card:nth-child(3) li:first-child { color: #7B61B8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .team-card:nth-child(3) li:first-child { color: #A48BD4; }
}
:root[data-theme="dark"] .team-card:nth-child(3) li:first-child { color: #A48BD4; }

/* ─── Leistungen ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.service-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; border-radius: var(--r-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.9rem; line-height: 1.5;
  box-shadow: 0 1px 4px var(--shadow); transition: transform 0.15s, box-shadow 0.15s;
}
.service-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px var(--shadow); }
.service-icon-wrap {
  width: 36px; height: 36px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
}
.service-icon-wrap svg { width: 18px; height: 18px; color: var(--accent); }

/* ─── Sprechzeiten ─── */
.hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.hours-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px; box-shadow: 0 2px 12px var(--shadow);
}
.hours-card h3 { margin-bottom: 18px; color: var(--accent); font-family: var(--font-display); font-size: 1.05rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hours-table td { padding: 10px 0; vertical-align: top; }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); }
.hours-table tr + tr td { border-top: 1px solid var(--border); }

/* ─── Kontakt ─── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px; box-shadow: 0 2px 12px var(--shadow);
}
.contact-card h3 { margin-bottom: 18px; color: var(--accent); font-family: var(--font-display); font-size: 1.05rem; }
.contact-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 0.9rem; }
.contact-row + .contact-row { border-top: 1px solid var(--border); }
.contact-row-icon {
  width: 32px; height: 32px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
}
.contact-row-icon svg { width: 16px; height: 16px; color: var(--accent); }
.contact-row .label { color: var(--fg-muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.contact-value { word-break: normal; overflow-wrap: break-word; }
button.contact-row {
  width: 100%; background: none; border: none; font-family: var(--font-body);
  color: inherit; text-align: left; cursor: pointer; border-radius: var(--r-sm);
  transition: background 0.15s;
}
button.contact-row:hover, button.contact-row:focus-visible { background: var(--accent-soft); }
button.contact-row .contact-value { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
button.contact-row .copy-text { min-width: 0; }
.copy-feedback {
  font-size: 0.72rem; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  padding: 2px 9px; border-radius: 50px; opacity: 0; transform: translateY(2px);
  transition: opacity 0.15s, transform 0.15s;
}
button.contact-row.copied .copy-feedback { opacity: 1; transform: translateY(0); }

.map-placeholder {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; text-align: center; gap: 14px; min-height: 220px;
}
.map-placeholder svg { width: 48px; height: 48px; color: var(--warm); opacity: 0.7; }
.map-placeholder p { color: var(--fg-muted); font-size: 0.9rem; font-weight: 500; }
.map-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; padding: 11px 24px; border-radius: 50px;
  font-weight: 700; font-size: 0.88rem; text-decoration: none; transition: all 0.2s;
}
.map-link:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px var(--shadow); }
.map-link svg { width: 16px; height: 16px; }

.directions { margin-top: 24px; }
.directions h4 { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; margin-bottom: 12px; }
.directions ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.directions li { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.6; }

/* ─── Gallery ─── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.gallery-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; box-shadow: 0 2px 12px var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px var(--shadow); }
.gallery-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-card figcaption {
  padding: 12px 16px; font-size: 0.86rem; font-weight: 600; color: var(--fg);
  display: flex; align-items: center; gap: 8px;
}
.gallery-card figcaption svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ─── Footer ─── */
.site-footer {
  background: var(--fg); color: var(--bg); padding: 44px 0 28px; font-size: 0.84rem;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding-inline: 20px;
  display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between;
}
.footer-col h4 { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; margin-bottom: 10px; opacity: 0.9; }
.footer-col p, .footer-col a { opacity: 0.7; line-height: 1.7; }
.footer-col a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  max-width: var(--container); margin: 0 auto; padding: 20px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 28px;
  text-align: center; opacity: 0.45; font-size: 0.76rem;
}
