:root {
  --teal-900: #0a4250;
  --teal-700: #0e5b6e;
  --teal-600: #14738a;
  --teal-500: #1c93ad;
  --teal-100: #d9eef2;
  --teal-50:  #eef7f9;
  --accent:   #f0a35e;
  --ink:      #15323a;
  --body:     #45565b;
  --muted:    #6b7d82;
  --line:     #e2eaec;
  --bg:       #ffffff;
  --bg-alt:   #f4f9fa;
  --white:    #ffffff;
  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 10px 30px -12px rgba(10, 66, 80, .18);
  --shadow-lg:0 24px 60px -20px rgba(10, 66, 80, .28);
  --maxw:     1140px;
  --serif:    "Fraunces", Georgia, serif;
  --sans:     "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .6em; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
a { color: var(--teal-600); text-decoration: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--teal-500);
  margin-bottom: .8rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--teal-700); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Top bar */
.topbar { background: var(--teal-900); color: #cfe6eb; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-block: 9px; }
.topbar__item { color: #cfe6eb; }
a.topbar__item:hover { color: #fff; }
.topbar__item--muted { color: #8fb6bf; margin-left: auto; }
.topbar__sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--teal-700); }
.brand__mark { color: var(--teal-600); display: grid; place-items: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--serif); }
.brand__text strong { font-size: 1.2rem; color: var(--ink); font-weight: 600; }
.brand__text small { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-500); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .95rem; padding: 9px 14px; border-radius: 8px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--teal-50); color: var(--teal-700); }
.nav__cta { background: var(--teal-700); color: #fff !important; }
.nav__cta:hover { background: var(--teal-900) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.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); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: .98rem; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.btn--primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--teal-900); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-100); }
.btn--ghost:hover { background: var(--teal-50); border-color: var(--teal-500); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--teal-50) 0%, #fff 60%); }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 88% -8%, rgba(28,147,173,.16), transparent 70%),
    radial-gradient(520px 360px at 6% 110%, rgba(240,163,94,.12), transparent 70%);
}
.hero__inner { position: relative; padding-block: clamp(56px, 9vw, 120px); }
.hero__content { max-width: 760px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); margin-bottom: .35em; font-weight: 600; }
.hero h1 span { color: var(--teal-600); }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--body); max-width: 60ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 3rem; }
.hero__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 36px; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero__stats strong { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--teal-700); font-weight: 600; }
.hero__stats span { font-size: .9rem; color: var(--muted); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 100px); }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head__lead { font-size: 1.1rem; color: var(--body); }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.grid-2--reverse > div:first-child { order: 2; }

.ticks { list-style: none; display: grid; gap: 12px; margin-top: 1.2rem; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--teal-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e5b6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* Info card (Sprechzeiten) */
.card-stack { display: grid; gap: 20px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.info-card h3 { margin-bottom: 16px; color: var(--teal-700); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 0; border-bottom: 1px dashed var(--line); white-space: nowrap; }
.hours td { text-align: right; color: var(--ink); padding: 8px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.info-card__note { font-size: .8rem; color: var(--muted); margin-top: 14px; margin-bottom: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.doctor { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.doctor:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.doctor__avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-600), var(--teal-500)); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; margin-bottom: 18px; }
.doctor__role { color: var(--teal-600); font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.doctor__cv { font-size: .9rem; color: var(--muted); }

/* Quote card */
.quote-card { background: var(--teal-700); color: #fff; border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow-lg); position: relative; }
.quote-card::before { content: "\201C"; font-family: var(--serif); font-size: 6rem; line-height: 1; color: rgba(255,255,255,.18); position: absolute; top: 10px; left: 24px; }
.quote-card blockquote { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; position: relative; }

/* Diagnose cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.mini-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--teal-500); border-radius: var(--radius-sm); padding: 28px; }
.mini-card h3 { color: var(--teal-700); margin-bottom: 10px; }
.mini-card p { margin: 0; font-size: .95rem; }

.causes { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.causes h3 { margin-bottom: 18px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100); padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal-100); }
.service__num { font-family: var(--serif); font-size: 1rem; color: var(--accent); font-weight: 600; display: inline-block; margin-bottom: 12px; letter-spacing: .05em; }
.service h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Anfahrt */
.address { font-style: normal; line-height: 1.8; margin: 1.2rem 0; color: var(--ink); }
.link { font-weight: 600; }
.link:hover { text-decoration: underline; }
.map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.map-card iframe { width: 100%; height: 380px; border: 0; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 22px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list__label { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; color: var(--teal-500); }
.contact-list a, .contact-list span:not(.contact-list__label) { font-size: 1.1rem; color: var(--ink); }
.contact-list a:hover { color: var(--teal-700); }

.btn--block { width: 100%; margin-bottom: 12px; }
.contact-info .btn--block:last-of-type { margin-bottom: 28px; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select { font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 3px var(--teal-100); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.checkbox input { margin-top: 3px; accent-color: var(--teal-700); flex: 0 0 auto; }
.checkbox a { font-weight: 600; }
.form-note { font-size: .9rem; margin: 0; min-height: 1.2em; }
.form-note.ok { color: var(--teal-600); font-weight: 600; }
.form-note.err { color: #c0492f; font-weight: 600; }
.form-hint { font-size: .78rem; color: var(--muted); margin: 0; }
/* Honeypot – für Menschen unsichtbar, für Bots ein Köder */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Footer */
.footer { background: var(--teal-900); color: #b9d6dd; padding-top: 56px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; }
.brand--footer { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.brand--footer strong { color: #fff; }
.footer__inner p { max-width: 42ch; font-size: .92rem; margin-top: 10px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.footer__nav a { color: #b9d6dd; font-size: .92rem; }
.footer__nav a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; }
.footer__bottom p { font-size: .82rem; color: #89b2bb; margin: 0; }

/* Legal pages (Impressum / Datenschutz) */
.legal { padding-block: clamp(48px, 7vw, 84px); }
.legal__inner { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6em; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; color: var(--teal-700); }
.legal p, .legal li { color: var(--body); }
.legal ul { margin: 0 0 1rem 1.2rem; }
.legal a { color: var(--teal-600); }
.legal a:hover { text-decoration: underline; }
.legal .placeholder { background: #fff7ec; border: 1px dashed var(--accent); border-radius: 8px; padding: 2px 8px; color: #9a5a18; font-weight: 600; }
.legal .back { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; }

/* To top */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--teal-700); color: #fff; display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--teal-900); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 940px) {
  .grid-2, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-2--reverse > div:first-child { order: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .topbar__item--muted { display: none; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .35s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 13px 14px; }
  .nav__cta { text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .topbar__inner { font-size: .78rem; gap: 10px; }
  .topbar__sep { display: none; }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
