/* Praxis Dr. med. Nora Nibler – optimiertes Stylesheet */
/* Schrift wie auf der Original-Website: Open Sans (400 / 600 / 700).
   Lokal eingebunden (kein Google-Fonts-CDN -> DSGVO-konform). Dateien: siehe ../fonts/LIESMICH.txt */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: local("Open Sans"), local("OpenSans-Regular"), url("../fonts/open-sans-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: local("Open Sans SemiBold"), local("OpenSans-SemiBold"), url("../fonts/open-sans-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: local("Open Sans Bold"), local("OpenSans-Bold"), url("../fonts/open-sans-latin-700.woff2") format("woff2"); }

:root {
  /* Farben aus dem Praxis-Logo: Navy #2a317f (Schrift), Blau #2858a0 (Kreis-Symbol), Grau #9c9d9c (Untertitel) */
  --ink: #333333;      /* wie Original: Fließtext #333 */
  --muted: #545a6b;
  --brand: #2a317f;          /* Logo-Navy: Überschriften, Buttons, Footer-Band */
  --brand-dark: #1e2568;     /* Hover */
  --blue: #2858a0;           /* Logo-Blau: Links, Akzente */
  --brand-soft: #e9edf8;
  --accent: #2858a0;
  --btn-bg: #2a317f;
  --btn-bg-hover: #1e2568;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --line: #dde2ee;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(25, 35, 90, .06), 0 8px 24px rgba(25, 35, 90, .07);
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: var(--font-body);
  --wrap: 1100px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8ecf8; --muted: #b0b8d0; --brand: #b8c4f5; --brand-dark: #d6ddfa; --blue: #8fb0ee;
    --brand-soft: #1b2242; --accent: #8fb0ee; --btn-bg: #3a46a8; --btn-bg-hover: #4b58c0;
    --bg: #0e1220; --surface: #161c33; --line: #29314f; --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.7 var(--font-body);   /* Original: 16px / 1.7 */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }   /* Original: Links in Logo-Navy */
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--brand); margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: #2a317f; color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand img { height: 56px; width: auto; max-width: 62vw; }
.header-tel { display: none; font-weight: 700; text-decoration: none; background: var(--btn-bg); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; white-space: nowrap; }
.header-tel:hover { background: var(--btn-bg-hover); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem; font: inherit; color: var(--ink); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a { display: block; padding: .55rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { background: var(--brand-soft); }
.site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 700; }

@media (min-width: 1400px) { .header-tel { display: inline-block; } .wrap.header-inner { width: min(100% - 2rem, 1300px); } }
.site-nav a { white-space: nowrap; }
.site-nav ul { flex-wrap: nowrap; }
@media (max-width: 1100px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
}

/* Hero */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); background-color: var(--brand-soft);
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 50%, color-mix(in srgb, var(--bg) 40%, transparent) 100%), url("../img/hero-ekg-stethoskop.jpg");
  background-size: cover; background-position: center; }
@media (max-width: 899px) { .hero { background-image: linear-gradient(180deg, color-mix(in srgb, var(--bg) 94%, transparent), color-mix(in srgb, var(--bg) 82%, transparent)), url("../img/hero-ekg-stethoskop.jpg"); } }
.hero .photo { border: 4px solid var(--surface); justify-self: center; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.5fr .5fr; } }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--btn-bg); }
.btn-primary { background: var(--btn-bg); color: #fff; }
.btn-primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: #fff; }
.btn-ghost { color: var(--brand); background: transparent; border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: var(--brand-soft); width: 100%; }
.photo img { width: 100%; }

.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 1.75rem 0 0; color: var(--muted); font-size: .95rem; }
.facts li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: .4rem; }

/* Sections */
section { padding-block: clamp(2rem, 5vw, 3.75rem); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.3; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--brand); }
.card .more { color: var(--blue); font-weight: 700; margin-top: .75rem; display: inline-block; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 1rem; }
.card-icon svg { width: 24px; height: 24px; }

.band { background: #2a317f; color: #fff; }
.band h2, .band a { color: #fff; }
.band .grid { align-items: start; }
.band p { color: #dfe4f7; margin-bottom: .4em; }
.band strong { color: #fff; }

.quote { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.45; color: var(--brand); max-width: 46rem; margin: 0 auto; text-align: center; }

/* Unterseiten */
.page-hero { background: var(--brand-soft); padding-block: clamp(1.75rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 42rem; margin: 0; font-size: 1.1rem; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; }
.breadcrumb a { color: var(--muted); }
.two-col { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .two-col.two-col { grid-template-columns: 1.4fr .9fr; } .two-col.rev.rev { grid-template-columns: .9fr 1.4fr; } }
.sticky { position: sticky; top: 6rem; }

.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--brand-soft); }
.timeline li { position: relative; padding: 0 0 1.3rem 1rem; }
.timeline li::before { content: ""; position: absolute; left: -1.95rem; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--surface); }
.timeline .year { display: block; font-weight: 700; color: var(--accent); font-size: .95rem; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist > li { padding: .55rem 0 .55rem 1.9rem; position: relative; border-bottom: 1px solid var(--line); }
.checklist > li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 12px; height: 7px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }
.checklist ul { list-style: disc; padding-left: 1.2rem; margin: .4rem 0 0; color: var(--muted); font-size: .98rem; }
.checklist ul li { padding: .1rem 0; border: 0; }
.checklist ul li::before { content: none; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .75rem; }
summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; color: var(--brand); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
details[open] summary::after { content: "–"; }
details ul { margin: 0; padding: 0 1.25rem 1.1rem 2.5rem; color: var(--muted); }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; }
.info-list li:last-child { border: 0; }
.info-list .k { flex: 0 0 8rem; color: var(--muted); }
.callout { background: var(--brand-soft); border-left: 4px solid var(--blue); padding: 1rem 1.25rem; border-radius: 8px; margin-block: 1.5rem; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.prose h4 { margin-top: 1.1rem; font-size: 1rem; }
.notice { background: #fff6d6; color: #4a3b00; border: 1px solid #e6d28a; border-radius: 10px; padding: .9rem 1.1rem; font-size: .95rem; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 2rem; font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .3rem; }
.copyright { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer .footer-grid, .btn-row, .nav-toggle { display: none; } body { background: #fff; } }

.two-col { grid-template-columns: minmax(0, 1fr); } .two-col > * { min-width: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { background: #fff; border-radius: 8px; padding: 2px 8px; } }

/* ---- Mobil/Tablet (<900px): keine Schrift über Bildern, kein Sticky ---- */
@media (max-width: 899px) {
  .sticky { position: static; }
  .hero { background-image: none; padding-top: 0; }
  .hero::before { content: ""; display: block; height: clamp(120px, 32vw, 220px); margin-bottom: 1.75rem;
    background: url("../img/hero-ekg-stethoskop.jpg") center 40% / cover no-repeat; }
  .hero-grid { gap: 1.75rem; }
  .hero .photo { max-width: 260px !important; }
  .photo { margin-inline: auto; }
  .two-col > .photo, .two-col > .sticky { justify-self: center; }
  .btn-row .btn { text-align: center; }
}
@media (max-width: 480px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .band .btn-row { margin-top: 1rem !important; }
  section { padding-block: 2rem; }
}
@media (max-width: 899px) { .mfirst { order: -1; } }

/* Robustheit: lange Wörter (z. B. „Datenschutzerklärung“) brechen um statt zu überlaufen */
p, li, summary, address { overflow-wrap: break-word; hyphens: auto; }
/* Fließtext: am PC keine Silbentrennung; nur auf schmalen Displays (Handy) darf getrennt werden */
@media (min-width: 900px) { p, li, summary, address { hyphens: none; -webkit-hyphens: none; } }
/* Überschriften: am PC keine Silbentrennung; nur auf schmalen Displays (Handy) darf umbrochen werden */
h1, h2, h3 { hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; }
@media (max-width: 899px) { h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; } }
h1 { font-size: clamp(1.6rem, 4.2vw, 2.7rem); }

/* Notfall-Sicherung ohne Trennstrich: nur wenn ein einzelnes Wort wirklich nicht in die Karte passt */
@media (min-width: 900px) { .card h3 { overflow-wrap: anywhere; } }
