/* Privatärztlicher Notdienst Schleswig-Holstein – statische Seite
   Keine externen Schriften, keine Cookies, keine Fremdanbieter. */

:root {
  --blue: #2f6197;
  --blue-dark: #1b3e66;
  --navy: #0f2540;
  --ink: #1c2b3d;
  --muted: #55657a;
  --paper: #f6f3ec;
  --card: #ffffff;
  --line: #ddd8cc;
  --alert: #a8261c;
  --alert-bg: #fbeceb;
  --ok-bg: #e8f3ea;
  --ok: #1f6b34;
  --radius: 14px;
  --maxw: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.nowrap { white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { flex-wrap: wrap; padding-block: .3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand img { width: 42px; height: 42px; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.brand span small { display: block; font-family: var(--sans); font-weight: 400; font-size: .78rem; color: var(--muted); }
.nav { flex: 0 1 auto; flex-wrap: wrap; display: flex; align-items: center; gap: 1.25rem; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink); padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue-dark); }
.nav .nav-call { background: var(--blue-dark); color: #fff; padding: .55rem 1rem; border-radius: 999px; border: 0; white-space: nowrap; }
.nav .nav-call:hover { background: var(--blue); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--blue-dark); color: #fff; text-decoration: none; font-weight: 700;
  padding: .9rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-phone { white-space: nowrap; font-size: min(2.2rem, 6vw); font-family: var(--serif); padding: .8em 1.1em; letter-spacing: .01em; box-shadow: 0 8px 24px rgba(27, 62, 102, .28); }
.btn-ghost { background: transparent; color: var(--blue-dark); box-shadow: inset 0 0 0 2px var(--blue-dark); }
.btn-ghost:hover { background: var(--blue-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .9rem; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 34em; }
.hero-call { margin: 1.6rem 0 .9rem; }
.hours { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-weight: 600; margin: 0 0 1.2rem; }
.hours span::before { content: "●"; color: #2f9e55; margin-right: .45rem; font-size: .7em; vertical-align: .12em; }
.jingle { max-width: 360px; }
.jingle label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
.jingle audio { width: 100%; height: 40px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 50px -20px rgba(15, 37, 64, .5); }
.hero-media::before { content: ""; position: absolute; inset: 1.2rem -1rem -1rem 1.2rem; border-radius: 22px; background: var(--blue); opacity: .13; z-index: -1; }
.hero-badge {
  position: absolute; left: -.5rem; bottom: 1.2rem; background: var(--card); border-radius: 12px; padding: .65rem 1rem;
  box-shadow: 0 10px 30px rgba(15, 37, 64, .25); font-size: .92rem; font-weight: 600; max-width: 15rem; line-height: 1.35;
}
.hero-badge strong { display: block; font-family: var(--serif); color: var(--blue-dark); font-size: 1.05rem; }

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}

/* ---------- 112-Hinweis ---------- */
.emergency { background: var(--alert-bg); border-block: 1px solid #efc9c6; color: #5c1510; }
.emergency .wrap { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; padding-block: .85rem; font-size: .98rem; align-items: center; }
.emergency strong { color: var(--alert); }

/* ---------- Sections ---------- */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.symptoms { display: grid; gap: 1rem; }
.symptom { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; }
.symptom .ico { width: 44px; height: 44px; border-radius: 12px; background: #e3ecf6; color: var(--blue-dark); display: grid; place-items: center; margin-bottom: .9rem; }
.symptom .ico svg { width: 24px; height: 24px; }
.symptom h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.symptom p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (min-width: 760px) { .symptoms { grid-template-columns: repeat(3, 1fr); } }

.callout { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; justify-content: space-between;
  background: var(--navy); color: #fff; border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.2rem); }
.callout h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 3.2vw, 1.9rem); max-width: 22em; }
.callout .btn { background: #fff; color: var(--navy); }
.callout .btn:hover { background: #e3ecf6; color: var(--navy); }

.about .wrap { display: grid; gap: 2.5rem; align-items: start; }
.about p { max-width: 38em; }
.quote { margin: 0; background: var(--card); border-radius: 20px; border: 1px solid var(--line); padding: 1.6rem; display: grid; gap: 1.2rem; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--navy); }
.quote figcaption { font-size: .95rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); display: block; }
.person { display: flex; align-items: center; gap: 1rem; }
.person span { min-width: 0; overflow-wrap: anywhere; }
.person img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid #e3ecf6; flex: none; }
.jameda-link { display: inline-block; margin-top: 1.5rem; }
.person a { flex: none; line-height: 0; }
.jameda { width: 230px; border-radius: 12px; box-shadow: 0 6px 18px rgba(15,37,64,.12); }
@media (min-width: 900px) { .about .wrap { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }

/* ---------- Kosten ---------- */
.cost-grid { display: grid; gap: 2rem; align-items: start; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; text-align: center; }
.price .big { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.2rem); color: var(--blue-dark); line-height: 1.1; display: block; }
.price small { color: var(--muted); display: block; margin-top: .4rem; }
.note { background: #eef3f9; border-left: 4px solid var(--blue); border-radius: 8px; padding: .9rem 1.1rem; margin-top: 1.2rem; }
@media (min-width: 900px) { .cost-grid { grid-template-columns: 1.3fr .7fr; gap: 4rem; } }

/* ---------- Unterseiten ---------- */
.page { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.page .wrap { max-width: 820px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; font-family: var(--sans); font-weight: 700; }
.legal ul { padding-left: 1.2rem; }
.legal address { max-width: 100%; overflow-wrap: anywhere; font-style: normal; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; display: inline-block; min-width: min(100%, 22rem); }

/* ---------- Formular ---------- */
.emergency-box { border: 1px solid #efc9c6; border-radius: 12px; margin-top: 1rem; }
.emergency-box .box-in { padding: .8rem 1rem; font-size: .98rem; }
.field label.plain { font-weight: 400; margin: 0; }
.req-note { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.2rem, 4vw, 2rem); margin-top: 1.5rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fbfaf7; border: 1.5px solid #b9b3a5; border-radius: 10px; padding: .75rem .9rem;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid #f2a900; outline-offset: 1px; border-color: var(--blue); background: #fff; }
.field .hint { font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; flex: none; accent-color: var(--blue-dark); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req { color: var(--alert); }

.status { display: none; border-radius: 12px; padding: 1rem 1.2rem; margin: 1.2rem 0 0; font-weight: 600; }
.status.show, .status:target { display: block; }
.status.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #b7d9bf; }
.status.err { background: var(--alert-bg); color: #6a1710; border: 1px solid #efc9c6; }
.status a { color: inherit; }

/* ---------- Statistik ---------- */
.page .wrap.stats { max-width: 900px; }
.stats h2 { font-size: 1.3rem; margin-top: 1.8em; }
.tiles { display: grid; gap: .8rem; grid-template-columns: repeat(3, 1fr); margin: 1.5rem 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; color: var(--muted); font-size: .9rem; }
.tile strong { font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--blue-dark); line-height: 1.1; font-weight: 700; margin-right: .5rem; }
.chart { width: 100%; height: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.cols { display: grid; gap: 0 2rem; }
@media (min-width: 700px) { .cols { grid-template-columns: 1fr 1fr; } }
table.data { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.data td { padding: .55rem .9rem; border-bottom: 1px solid var(--line); }
table.data td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c7d8; padding: 2.2rem 0 5.5rem; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer .tag { font-family: var(--serif); color: #fff; font-size: 1.1rem; margin: 0 0 .2rem; }
.site-footer nav { flex-wrap: wrap; display: flex; gap: 1.4rem; }
.site-footer a { color: #fff; }
.site-footer .copy a { text-decoration-thickness: 1px; }
.site-footer .copy { width: 100%; border-top: 1px solid #25405f; padding-top: 1rem; margin: 0; font-size: .85rem; }
@media (min-width: 760px) { .site-footer { padding-bottom: 2.2rem; } }

/* ---------- Mobile Anruf-Leiste ---------- */
.callbar { position: fixed; inset: auto 0 0 0; z-index: 60; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
.callbar .btn { width: 100%; justify-content: center; font-size: min(1.15rem, 4.4vw); padding: .8em 1em; gap: .5em; }
@media (min-width: 760px) { .callbar { display: none; } }
@media (max-width: 759px) { .nav .nav-call { display: none; } .nav { gap: 1rem; } .brand span small { display: none; } }

@media (max-width: 380px) {
  .callout .btn-phone { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .callbar, .jingle { display: none; }
  body { background: #fff; }
}
