/* =========================================================
   1. Grundlagen: Farben, Typografie und allgemeine Helfer
   ========================================================= */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #eaf0f7;
  --ink: #172b49;
  --ink-soft: #53637a;
  --blue: #294d7d;
  --blue-hover: #3d6294;
  --line: #d7e0eb;
  --notice-bg: #fff0b3;
  --notice-border: #efc34f;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(23, 43, 73, .08);
  --display: Arial, Helvetica, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only, .skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid #b13d33;
  outline-offset: 3px;
}

/* =========================================================
   2. Kopfbereich und Hauptnavigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 250, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  white-space: nowrap;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.brand small {
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
}

.primary-nav a:hover { color: var(--blue); }

.primary-nav .nav-cta {
  padding: 10px 17px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  white-space: nowrap;
}

.primary-nav .nav-cta:hover {
  color: #fff;
  background: var(--blue-hover);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* =========================================================
   3. Hinweisbanner und Hero-Bereich
   ========================================================= */
.hero {
  padding: 90px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.035em;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 1.02;
}

h1 em {
  color: var(--blue);
  font-style: normal;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.lead {
  max-width: 650px;
  margin: 24px 0 32px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(217, 119, 6, .13);
}

.note-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  /* ändert das originale Grau in das Hinweis-Orange */
  filter: brightness(0) saturate(100%) invert(48%) sepia(93%) saturate(1768%) hue-rotate(7deg) brightness(96%) contrast(95%);
}

.note-content {
  min-width: 0;
}

.note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: .92rem;
}

.note p {
  margin: 0;
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.4;
}

.site-progress-note {
  margin-top: 20px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: .18s ease;
}

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
}

.btn-secondary:hover { border-color: var(--blue); }

.hero-side {
  display: grid;
  gap: 18px;
}

.logo-card {
  display: flex;
  justify-content: center;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.logo-card img {
  display: block;
  width: min(100%, 360px);
  height: auto;
}

.quick-contact {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quick-address {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.quick-contact > :last-child { border-bottom: 0; }

.quick-contact strong {
  display: block;
  margin-top: 2px;
  font-size: .95rem;
}

/* =========================================================
   4. Gemeinsamer Aufbau der Inhaltsabschnitte
   ========================================================= */
.section {
  padding: 82px 0;
}

.section-soft { background: var(--surface-soft); }

.section-heading {
  margin-bottom: 34px;
}

/* =========================================================
   5. Online-Rezeption
   ========================================================= */
.reception-panel {
  max-width: 920px;
}

.reception-panel h2 {
  margin-bottom: 14px;
}

.reception-panel > p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
}

.reception-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.reception-action {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: .18s ease;
}

.reception-action:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.reception-action img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  filter: brightness(0) saturate(100%) invert(27%) sepia(24%) saturate(1667%) hue-rotate(174deg) brightness(91%) contrast(91%);
}

/* =========================================================
   6. Sprechzeiten
   ========================================================= */
.hours-card {
  overflow: hidden;
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hours-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 19px 28px;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.hours-row:last-child { border-bottom: 0; }

.hours-row strong { font-size: .96rem; }

.hours-row span { color: rgba(255,255,255,.86); }

.hours-extra {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.hours-extra div {
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hours-extra span,
.hours-extra strong {
  display: block;
}

.hours-extra span {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: .75rem;
}

.hours-extra strong { font-size: .9rem; }

.infection-note {
  margin-top: 22px;
}

/* =========================================================
   7. Praxisurlaub
   ========================================================= */
.holiday-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.holiday-note { margin-bottom: 20px; }

.holiday-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.holiday-card h3 {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.holiday-date {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: none;
}

.holiday-label {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.holiday-replacement {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.holiday-replacement + .holiday-replacement {
  margin-top: 18px;
}

.holiday-replacement > strong {
  color: var(--blue);
  font-size: .92rem;
  font-weight: 700;
}

.holiday-replacement p {
  margin: 5px 0 0;
  color: var(--ink-soft);
}

.holiday-replacement a {
  color: var(--blue);
  text-decoration: none;
}

.holiday-replacement a:hover {
  text-decoration: underline;
}

/* =========================================================
   8. Kontakt und Karte
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
}

.contact-card,
.map-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card { padding: 10px 28px; }

.contact-item {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-item:last-child { border-bottom: 0; }

.contact-label {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.contact-item strong { font-size: .96rem; }

.contact-item small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
}

.map-card { min-height: 390px; }

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  border: 0;
}

.map-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  padding: 32px;
  background:
    linear-gradient(rgba(234, 240, 247, .94), rgba(234, 240, 247, .94)),
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(41, 77, 125, .06) 14px, rgba(41, 77, 125, .06) 28px);
}

.map-placeholder {
  max-width: 520px;
  text-align: center;
}

.map-placeholder h3 {
  margin: 4px 0 10px;
  color: var(--ink);
  font-size: 1.25rem;
}

.map-placeholder p {
  margin: 0 auto 22px;
  color: var(--ink-soft);
}

.map-placeholder small {
  display: block;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: .78rem;
}

.map-placeholder small a {
  color: var(--blue);
}

.map-link {
  display: block;
  padding: 9px 12px;
  background: var(--surface);
  text-align: right;
}

.map-link a {
  color: var(--blue);
  font-size: .78rem;
  text-decoration: none;
}

.map-link a:hover { text-decoration: underline; }

.contact-item strong a,
.quick-contact strong a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   9. Fußbereich
   ========================================================= */
.site-footer {
  padding: 42px 0 24px;
  background: var(--ink);
  color: rgba(255,255,255,.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-inner strong,
.footer-inner span {
  display: block;
}

.footer-inner strong { color: #fff; }

.footer-inner span {
  margin-top: 2px;
  font-size: .85rem;
}

.footer-inner nav {
  display: flex;
  gap: 24px;
}

.footer-inner a {
  text-decoration: none;
  font-size: .88rem;
}

.footer-inner a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  font-size: .78rem;
}

/* =========================================================
   10. Impressum und Datenschutz
   ========================================================= */
.legal-main {
  min-height: 65vh;
  padding: 70px 0 90px;
}

.legal-content {
  max-width: 780px;
}

.legal-content h1 {
  margin-bottom: 28px;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
}

.legal-content h2 {
  margin-top: 36px;
  font-size: 1.45rem;
}

.legal-content h3 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-content ul {
  margin: 12px 0 24px;
  padding-left: 1.25rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
}

.legal-content li {
  margin-bottom: 7px;
  list-style: disc;
}

.legal-content a { color: var(--blue); }

/* =========================================================
   11. Responsive Anpassungen
   ========================================================= */

/* Navigation etwas vor dem tatsächlichen Platzmangel umschalten. */
@media (max-width: 860px) {
  .wrap { width: min(100% - 36px, 1120px); }

  .brand small { display: none; }

  .menu-toggle { display: block; }

  .primary-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    padding: 14px 18px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .primary-nav.legal-nav {
    position: static;
    inset: auto;
    display: flex;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .primary-nav a {
    padding: 13px 8px;
  }

  .primary-nav.legal-nav a {
    padding: 10px 0;
    white-space: nowrap;
  }

  .primary-nav .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .hero {
    padding: 58px 0 64px;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hours-extra {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .reception-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .holiday-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1120px); }

  .header-inner { min-height: 68px; }

  .primary-nav { top: 68px; }

  h1 { font-size: clamp(2.45rem, 12vw, 3.35rem); }

  .lead { font-size: 1rem; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .note {
    padding: 14px;
  }

  .note p {
    font-size: .82rem;
  }

  .btn { width: 100%; }

  .logo-card { padding: 18px; }

  .logo-card img { width: min(100%, 280px); }

  .quick-contact { padding: 20px; }

  .section { padding: 60px 0; }

  .hours-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 16px 20px;
  }

  .hours-extra { grid-template-columns: 1fr; }

  .reception-actions { grid-template-columns: 1fr; }

  .holiday-card { padding: 22px; }

  .contact-card { padding-inline: 20px; }

  .map-card,
  .map-card iframe { min-height: 300px; }

  .map-consent {
    min-height: 300px;
    padding: 24px 18px;
  }

  .footer-inner,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-inner nav { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
