:root {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --tint: #e6f0f9;
  --ink: #1b2b3a;
  --muted: #58697a;
  --line: #dce7f1;
  --accent: #2f6fa8;
  --accent-dark: #245884;
  --accent-soft: #dcebf8;
  --sky-1: #cfe4f6;
  --sky-2: #eaf3fb;
  --sky-3: #f8fbfe;
  --glacier: #dfeaf5;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 60, 95, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Schreibschrift für das Motto – Great Vibes, SIL Open Font License (fonts/OFL-GreatVibes.txt), selbst gehostet */
@font-face {
  font-family: "Great Vibes";
  src: url("fonts/great-vibes-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 900px, var(--sky-3) 55%, var(--glacier) 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: rgba(255, 255, 255, .55); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.section-head { max-width: 640px; margin-bottom: 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { color: var(--accent); background: transparent; }
.btn--ghost:hover { background: var(--accent-soft); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240, 247, 253, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 88px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand__logo { height: 64px; width: auto; flex: none; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__call { padding: 10px 18px; }
/* Navigation: am Desktop direkt in der Kopfzeile, am Handy im Burgermenü */
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 12px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 90px) 0 clamp(120px, 14vw, 200px); }
.hero__mountains {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(140px, 18vw, 260px);
  pointer-events: none;
  opacity: .9;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.hero__mountains svg { width: 100%; height: 100%; display: block; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero__name { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 0 0 6px; }
.hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: 0; }
.hero h1 span { display: block; margin-top: .2em; }
.hero__img { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--tint); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.value__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.value__icon svg { width: 22px; height: 22px; }
.value p { color: var(--muted); margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.service:last-child { grid-column: 1 / -1; }
.service h3 { margin-bottom: .35em; }
.service p { color: var(--muted); margin: 0; font-size: .97rem; }


/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { text-align: center; }
.member__img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--tint); margin: 0 auto 18px; width: min(200px, 100%); border: 6px solid var(--surface); box-shadow: var(--shadow); }
.member__img img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin-bottom: .15em; font-size: 1.15rem; }
.member__role { color: var(--accent); font-size: .9rem; font-weight: 600; margin-bottom: .6em; }

.team__doctors { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: clamp(32px, 8vw, 120px); margin-bottom: 24px; }
.member--doctor .member__img { width: min(260px, 100%); }
.member--doctor h3 { font-size: 1.35rem; }

/* Leistungen: Notfall-Karte hervorgehoben */
.section-head--sub { margin-top: clamp(72px, 9vw, 110px); }
.service__call { white-space: nowrap; margin-top: 20px; }

/* Räumlichkeiten */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.room { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.room__img { aspect-ratio: 4 / 3; background: var(--tint); }
.room__img img { width: 100%; height: 100%; object-fit: cover; }
.room__body { padding: 24px 26px 28px; }
.room__body p { color: var(--muted); font-size: .97rem; margin: 0; }
.room h3 { display: flex; align-items: center; gap: 10px; }
.room__dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }

/* Hours + Contact */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 44px); }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.hours th { width: 40%; font-weight: 600; }
.hours td { color: var(--muted); }
.hours tr.closed td { color: #9aa5a8; }
.note { font-size: .93rem; color: var(--muted); background: var(--tint); border-radius: 12px; padding: 14px 16px; margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

/* CTA band */
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--accent) 0%, #4f93cc 100%); color: #fff; border-radius: 28px; padding: clamp(36px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta > * { position: relative; z-index: 1; }
.cta .cta__mountains { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; z-index: 0; opacity: .14; filter: blur(1px); }
.cta__mountains svg { width: 100%; height: 100%; display: block; }
.cta h2 { margin: 0 0 .2em; }
.cta p { margin: 0; opacity: .85; }
.cta .btn { background: #fff; color: var(--accent-dark); border-color: #fff; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; }
.footer__logo { height: 72px; width: auto; }
.footer a { color: var(--muted); margin-left: 20px; }
.footer a:first-child { margin-left: 0; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal .todo { background: #fff4d6; padding: 0 4px; border-radius: 4px; }

/* Responsive */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }

  .rooms { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: calc(100% + 8px); right: 0; width: 260px; z-index: 60; margin: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow); padding: 6px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .hero__grid, .info-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__logo { height: 46px; }
  .header__inner { height: 72px; }
  .header__call { padding: 9px 14px; font-size: .9rem; }
  .nav { left: 0; width: auto; }
  .services, .team, .rooms, .team__doctors { grid-template-columns: 1fr; }

  .footer a { margin-left: 0; margin-right: 20px; }
}
