/* Self-hosted fonts (no third-party requests to Google) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-variable.woff2') format('woff2');
}

:root {
  --bg: #94b0b7cc;
  --header-bg: #b4cdcdee;
  --header-border: #9db8bb;
  --section-alt-bg: #b4cdcdcc;
  --ink: #24343a;
  --ink-soft: #3d4f52;
  --ink-softer: #46595c;
  --ink-muted: #5c7477;
  --accent: #c19a6b;
  --dark: #2a3b3e;
  --dark-ink: #eef5f5;
  --footer-bg: #1c2a2d;
  --footer-ink: #9db8bb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: 'Manrope', sans-serif; margin: 0; }

section[id] { scroll-margin-top: 84px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  /* Reset native <button> chrome: unlike <a>, a real button element has an
     opaque UA background by default, which hid the outline variants' light
     text until :hover swapped in an explicit (near-transparent) one. */
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; background: #ab8259; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline-light { border: 1px solid var(--dark-ink); color: var(--dark-ink); }
.btn-outline-light:hover { color: var(--dark-ink); background: rgba(238,245,245,.08); }

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--header-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
}
.brand-text {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}
.brand-text .sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-softer);
  letter-spacing: .05em;
  text-transform: uppercase;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
nav.main-nav a.nav-link { font-size: 14px; white-space: nowrap; }

.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;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(36, 52, 58, .08); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Notfall banner */
.notfall-banner {
  background: #33474b;
  color: #eef5f5;
  text-align: center;
  padding: 10px 24px;
  font-size: 14px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 96px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.kicker-badge {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 24px;
  white-space: nowrap;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 24px;
}
.hero p.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Practice photography */
.photo {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.hero-photo { height: 420px; }
.doc-photo { height: 340px; margin-bottom: 24px; }

.map-embed-wrapper {
  display: block;
  width: 100%;
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
}
.map-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  padding: 24px;
  text-align: center;
  background: rgba(238, 245, 245, .06);
  border: 1.5px dashed rgba(238, 245, 245, .3);
  box-sizing: border-box;
}
.map-placeholder p {
  margin: 0;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark-ink);
  opacity: .85;
}
.map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--dark-ink);
  opacity: .75;
}
.map-link:hover { color: var(--accent); opacity: 1; }

/* Über uns */
.about {
  padding: 88px 48px;
  background: var(--section-alt-bg);
}
.about-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.about h2 { font-size: 34px; font-weight: 500; }
.about-body { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.about-body p { margin: 0 0 20px; }
.about-body p:last-child { margin-bottom: 0; }

/* Leistungen */
.services { padding: 88px 48px; }
.services-inner { max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: 34px; font-weight: 500; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--header-border);
  border: 1px solid var(--header-border);
}
.service-card { background: #fff; padding: 36px; }
.service-card .title {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 12px;
}
.service-card p { font-size: 15px; line-height: 1.6; color: var(--ink-softer); margin: 0; }

/* Team */
.team { padding: 88px 48px; background: var(--section-alt-bg); }
.team-inner { max-width: 1280px; margin: 0 auto; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.doc-name { font-family: 'Manrope', sans-serif; font-size: 24px; margin-bottom: 4px; }
.doc-role { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.doc-bio { font-size: 15px; line-height: 1.7; color: var(--ink-softer); margin: 0; }

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  text-align: center;
  background: rgba(36, 52, 58, .06);
  border: 1.5px dashed rgba(36, 52, 58, .3);
  border-radius: 4px;
  color: var(--ink-softer);
}
.photo-placeholder svg { opacity: .5; }
.photo-placeholder p { margin: 0; font-size: 13px; font-weight: 500; }

/* Öffnungszeiten */
.hours { padding: 88px 48px; }
.hours-inner { max-width: 820px; margin: 0 auto; }
.hours-list { display: flex; flex-direction: column; border-top: 1px solid var(--header-border); }
.hours-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 18px 8px;
  border-bottom: 1px solid var(--header-border);
  gap: 4px 16px;
}
.hours-row .day { font-size: 16px; color: var(--ink); font-weight: 600; }
.hours-row .time { font-size: 16px; color: var(--ink-soft); text-align: right; }
.hours-row .time.closed { color: var(--ink-muted); }
.booking-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  padding: 18px 28px;
  background: rgba(193, 154, 107, .12);
  border: 1px solid rgba(193, 154, 107, .4);
  border-radius: 4px;
  text-align: center;
}
.booking-hint svg { flex-shrink: 0; color: var(--accent); }
.booking-hint p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.hours-note {
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 14px;
}

/* Kontakt */
.contact { padding: 88px 48px; background: var(--dark); color: var(--dark-ink); }
.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact h2 { font-size: 34px; font-weight: 500; margin: 0 0 32px; }
.contact-details { font-size: 16px; line-height: 2; margin-bottom: 32px; }
.contact-details a { color: var(--dark-ink); }
.contact-details a:hover { color: var(--accent); }
.contact-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.contact-form-card {
  background: var(--section-alt-bg);
  border-radius: 4px;
  padding: 40px;
  color: var(--ink);
}
.contact-form-card .form-title {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  margin-bottom: 20px;
}
form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
form.contact-form input,
form.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--header-border);
  border-radius: 2px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
form.contact-form textarea { resize: vertical; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 13px; color: var(--ink-softer); font-weight: 500; }
form.contact-form button {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}
form.contact-form button:hover { background: #ab8259; }
.form-status { font-size: 13px; color: var(--ink-softer); min-height: 1em; }
.form-note { margin: -8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-softer); }
.form-note a { text-decoration: underline; }

/* Footer */
footer.site-footer {
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  font-size: 13px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--footer-ink); }
.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--footer-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.link-button:hover { color: var(--accent); }

/* Cookie-Consent-Banner */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--dark);
  color: var(--dark-ink);
  border-top: 1px solid rgba(238, 245, 245, .15);
  padding: 20px 24px;
}
.cookie-consent-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-consent p { margin: 0; font-size: 14px; line-height: 1.6; }
.cookie-consent-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-consent-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Rechtsseiten (Impressum, Datenschutz) */
.legal {
  max-width: 840px;
  margin: 0 auto;
  padding: 72px 48px 96px;
}
.legal-message { text-align: center; }
.legal h1 { font-size: 38px; font-weight: 500; margin: 0 0 8px; }
.legal .updated { font-size: 13px; color: var(--ink-muted); margin: 0 0 48px; }
.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 12px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal a { text-decoration: underline; }
.legal strong { color: var(--ink); }
.legal .placeholder {
  background: rgba(193, 154, 107, .18);
  color: var(--ink);
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.legal-back { margin-top: 16px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 56px 24px; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about, .services, .team, .hours, .contact { padding: 56px 24px; }
  .legal { padding: 48px 24px 72px; }
  .legal h1 { font-size: 30px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; }
  header.site-header { padding: 14px 20px; }

  /* Collapse the anchor nav behind a hamburger button. Five links plus two
     header buttons (Termin online, Befund abrufen) no longer fit on one
     line around here anyway, so this rides the same breakpoint as the
     content reflow above rather than leaving an awkward wrapped-but-inline
     zone between two separate breakpoints. */
  .nav-toggle { display: flex; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--header-bg);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--header-border);
    padding: 4px 20px 16px;
  }
  nav.main-nav.is-open { display: flex; }
  nav.main-nav a.nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(36, 52, 58, .1);
  }
  nav.main-nav .btn { margin-top: 14px; text-align: center; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }
  .hours-row .time { text-align: left; }
  .hero-photo { height: 280px; }
  .doc-photo { height: 260px; }
  .contact-form-card { padding: 24px; }
  .legal .placeholder { white-space: normal; }
}

/* Announcement popup (inc/announcement-popup.php).
   Default (no JS): a plain in-flow notice box below the header.
   With JS, main.js adds .is-modal and it becomes a centered overlay. */
.announcement { padding: 24px 32px 0; }
.announcement-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 24px 28px;
  color: var(--ink);
}
.announcement-item h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.announcement-item p {
  margin: 6px 0;
  color: var(--ink-soft);
  line-height: 1.55;
}
.announcement-item + .announcement-item {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--header-border);
}
.announcement-close { margin-top: 18px; }

.announcement.is-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 42, 45, .55);
}
.announcement.is-modal .announcement-box {
  background: var(--dark-ink);
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 18px 50px rgba(28, 42, 45, .35);
}

@media (max-width: 560px) {
  .announcement { padding: 16px 16px 0; }
  .announcement.is-modal { padding: 16px; }
  .announcement-box { padding: 20px; }
}
