:root {
  /* Farbpalette */
  --bg: #f8fafc;            /* Off-White Hintergrund */
  --surface: #ffffff;       /* Karten, Panels */
  --primary: #0f4c5c;       /* Tiefes Petrol (Seriosität) */
  --primary-dark: #0b3a47;
  --secondary: #e6f4f1;     /* Mint (Sanftheit) */
  --secondary-2: #e0f2fe;   /* Eisblau */
  --accent: #0d9488;        /* Türkis (CTA / Buttons) */
  --accent-dark: #0f766e;   /* Türkis für kleine Schrift (bessere Lesbarkeit) */
  --accent-light: #7dd3c8;  /* Akzent auf dunklem Petrol */
  --coral: #e07a5f;         /* sparsamer Warmton, z. B. "geschlossen" */
  --ink: #1e293b;           /* Anthrazit statt Schwarz */
  --muted: #475569;
  --tint: #f1f8f6;
  --line: #e2e8f0;
  --radius: 18px;
  --shadow: 0 14px 34px -16px rgba(15, 76, 92, .28);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.15; font-weight: 400; color: var(--primary); }
h1 { font-size: clamp(44px, 5.4vw, 72px); line-height: 1.06; letter-spacing: -.045em; margin-bottom: 26px; }
h1 em { font: italic 400 .84em/1.16 var(--serif); letter-spacing: -.03em; color: var(--accent); }
h2 { font: 400 clamp(30px, 3.4vw, 44px)/1.18 var(--serif); letter-spacing: -.025em; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
p { color: var(--muted); }

.wrap { width: min(1180px, 100% - 64px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--accent-dark); margin-bottom: 18px; }
.small { font-size: 13px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--accent);
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; }
.btn-small { padding: .55em 1.1em; font-size: 14px; }
.btn-emergency { font-size: 12px; padding: .45em .9em; background: #c62828; border-color: #c62828; color: #fff; }
.btn-emergency:hover { background: #a11d1d; border-color: #a11d1d; color: #fff; }.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--secondary); color: var(--primary); border-color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light:hover { background: var(--tint); border-color: var(--tint); color: var(--primary); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 92px; }
.brand { width: 260px; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero {
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 7vw, 96px);
  background: radial-gradient(800px 420px at 88% 8%, var(--secondary-2), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.lead { font-size: 18px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.status { display: inline-flex; align-items: center; gap: .6em; font-size: 14px; font-weight: 600; margin: 0; min-height: 1.6em; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, transparent); box-shadow: 0 0 0 4px var(--dot-ring, transparent); }
.status.open { --dot: var(--accent); --dot-ring: rgba(13, 148, 136, .18); color: var(--accent-dark); }
.status.closed { --dot: var(--coral); --dot-ring: rgba(224, 122, 95, .2); color: #b4533a; }

/* Urlaubshinweis */
.vacation { background: #fdf1ec; border-bottom: 1px solid #f5d5c8; padding: 22px 0; }
.vacation-inner { display: flex; align-items: center; gap: 22px; }
.vacation-inner > div:nth-child(2) { flex: 1; }
.vacation-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(224, 122, 95, .15); }
.vacation-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round; }
.vacation h2 { font: 600 13px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #b4533a; margin-bottom: 2px; }
.vacation p { margin: 0; }
.vacation-dates { color: var(--ink); font-size: 18px; font-weight: 600; }
.vacation-text { margin-top: 4px !important; }
.vacation .btn-light { flex-shrink: 0; border-color: #f5d5c8; }
@media (max-width: 600px) {
  .vacation-inner { flex-wrap: wrap; gap: 14px 16px; }
  .vacation-inner > div:nth-child(2) { flex: 1 1 calc(100% - 64px); }
  .vacation-dates { font-size: 16px; }
}

.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 26px 0 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.facts li { flex: 1 1 140px; padding-right: 20px; font-size: 14px; }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong { display: block; color: var(--primary); font-weight: 600; }
.facts span { color: var(--muted); }

.hours-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 30px 32px 26px; box-shadow: var(--shadow); }
.hours-card .eyebrow { margin-bottom: 10px; }
.hours-card h2 { font-size: 30px; margin-bottom: 18px; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; }
.hours td { text-align: right; }
.hours .closed { color: var(--muted); }
.hours tr.today { background: var(--secondary); }
.hours tr.today th { font-weight: 700; }
.hours tr.today th::after { content: "heute"; margin-left: .6em; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.note { font-size: 13px; margin: 16px 0 8px; }
.panel-phone { display: flex; justify-content: space-between; align-items: center; font-size: 24px; color: var(--primary); text-decoration: none; letter-spacing: -.02em; padding-top: 12px; border-top: 1px solid var(--line); }
.panel-phone span { color: var(--accent-dark); }

/* Sections */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 40px; }
.section-heading h2 { margin: 0; }
.section-heading > p { font-size: 15px; max-width: 360px; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.two-col > div > p:not(.eyebrow) { max-width: 430px; }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.card-number { color: var(--accent-dark); font-size: 12px; letter-spacing: .1em; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14px; margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--secondary); display: grid; place-items: center; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Foto-Platzhalter (später durch <img class="photo …"> ersetzen) */
.photo {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(15, 76, 92, .045) 14px 28px), var(--secondary);
  border: 1px dashed rgba(15, 76, 92, .3);
  color: var(--primary); font-size: 14px; font-weight: 600;
}
.photo span { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 12px; }
.photo span::before {
  content: ""; width: 32px; height: 32px; opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C5C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
img.photo { object-fit: cover; width: 100%; border: 0; }

/* Ordination */
.about-section { background: var(--primary); color: #fff; }
.about-section h2, .about-section h3 { color: #fff; }
.about-section .eyebrow { color: var(--accent-light); }
.about-section p { color: #c9e1e4; }
.about-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about-section .photo { background-color: #13606f; background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .04) 14px 28px); border-color: rgba(255, 255, 255, .25); color: #d7ebee; }
.about-section .photo span::before { filter: invert(1); }
.portrait { aspect-ratio: 5 / 6; }
.about-copy .large-copy { font: 26px/1.4 var(--serif); color: #fff; }
.practical { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); margin-top: 28px; padding: 24px 26px; }
.practical h3 { font-size: 17px; }
.practical p { font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }

/* Wahlarzt */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 600; }
.steps strong { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 14px; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 36px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.contact-label { font-size: 13px; margin-bottom: 4px; }
.big-phone { display: inline-block; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.2; letter-spacing: -.04em; color: var(--primary); text-decoration: none; margin-bottom: 14px; }
.big-phone span { font-size: .6em; color: var(--accent-dark); margin-left: 10px; }
.contact-card > p { font-size: 15px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.contact-list span { color: var(--muted); font-size: 13px; padding-top: .15em; }
.contact-list a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 300px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; left: 14px; right: 14px; bottom: 14px; background: #fff; padding: 14px 16px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.map-consent p { margin: 0; flex: 1 1 200px; color: #333; }
.map-link { position: absolute; right: 14px; bottom: 14px; background: #fff; color: var(--primary); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: var(--shadow); }

/* Notdienst */
.emergency { background: var(--primary); color: #c9e1e4; padding: 44px 0; }
.emergency h2 { color: #fff; font: 500 20px/1.4 var(--sans); letter-spacing: 0; margin-bottom: 6px; }
.emergency p { color: #c9e1e4; font-size: 15px; margin: 0; }
.emergency-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.emergency .btn { flex-shrink: 0; }

/* Footer */
.site-footer { padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner strong { color: var(--primary); font-family: var(--serif); font-size: 17px; font-weight: 400; }
.footer-inner > div { font-size: 14px; color: var(--muted); }
.footer-brand { width: 230px; }
.footer-info { display: flex; flex-wrap: wrap; gap: 24px 48px; font-size: 14px; color: var(--muted); }
.footer-title { margin: 0 0 6px; color: var(--primary); font-family: var(--serif); font-size: 17px; }
.footer-hours { display: grid; grid-template-columns: auto auto; gap: 2px 16px; margin: 0; }
.footer-hours dd { margin: 0; }
.footer-info address { font-style: normal; line-height: 1.6; }
.footer-info a { text-decoration: none; }
.footer-nav { display: flex; gap: 24px; font-size: 14px; }
.footer-nav a { text-decoration: none; }
.footer-inner > .small { width: 100%; padding-top: 20px; border-top: 1px solid var(--line); margin: 0; font-size: 12px; }

/* Rechtliche Seiten */
.legal { padding: 64px 0 90px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(36px, 5vw, 50px); }
.legal h2 { font: 600 21px/1.3 var(--sans); letter-spacing: 0; margin-top: 40px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; overflow-wrap: anywhere; }

/* Responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 20px; }
  .brand { width: 230px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 90px; }
  .header-inner { min-height: 80px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 32px 22px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-inner, .two-col, .about-layout, .contact-grid { grid-template-columns: 1fr; }
  .portrait { aspect-ratio: 4 / 3; max-width: 520px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .nav { padding-inline: 16px; }
  .brand { width: 200px; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .facts { display: grid; gap: 12px; }
  .facts li, .facts li + li { padding: 0; border: 0; }
  .hours-card, .contact-card { padding: 24px 20px; }
  .hours th, .hours td { padding: 10px 8px; }
  .emergency-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 12px; }
  .legal .header-inner .btn-small { font-size: 12px; padding: .5em .9em; }
  .footer-brand { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 900px) { .nav .btn-emergency + .btn { margin-top: 8px; } }

/* Kalender (Urlaube & Feiertage), auch im Admin-Panel verwendet */
.calendar-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.kal-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kal-titel { font: 400 22px/1.2 var(--serif); color: var(--primary); }
.kal-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--primary); font-size: 22px; line-height: 1; cursor: pointer; }
.kal-nav:hover { background: var(--tint); }
.kal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kal-wt { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); padding-bottom: 4px; }
.kal-tag { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 1px solid transparent; padding: 0; }
button.kal-tag { cursor: pointer; }
button.kal-tag:hover { border-color: var(--accent); }
.kal-tag.we { color: var(--muted); }
.kal-tag.feiertag { background: var(--secondary-2); color: var(--primary); font-weight: 700; }
.kal-tag.urlaub { background: #fdf1ec; color: #b4533a; font-weight: 700; }
.kal-tag.geschlossen { background: #f1f2f4; color: #9aa1ab; }
.kal-tag.heute { border-color: var(--primary); }
.kal-tag.auswahl { background: var(--accent); color: #fff; }
.kal-legende { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.kal-legende li { display: flex; align-items: center; gap: 6px; }
.kal-punkt { width: 12px; height: 12px; border-radius: 4px; border: 1px solid transparent; }
.kal-punkt.urlaub { background: #fdf1ec; border-color: #f5d5c8; }
.kal-punkt.feiertag { background: var(--secondary-2); border-color: #bae6fd; }
.kal-punkt.geschlossen { background: #f1f2f4; border-color: #dfe2e6; }
.kal-punkt.heute { border-color: var(--primary); }
.kal-liste { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 14px; display: grid; gap: 6px; }
.kal-liste span { display: inline-block; min-width: 92px; font-weight: 600; color: var(--primary); }
.kal-liste .urlaub span { color: #b4533a; }
.kal-liste .leer { color: var(--muted); }
@media (max-width: 600px) { .calendar-card { padding: 18px 14px; } .kal-tag { font-size: 14px; border-radius: 8px; } }
