/* Neurologie am Moorhof – eigenes Design auf Bootstrap-Basis
   Alle Schriften und Bibliotheken werden lokal ausgeliefert (DSGVO). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --nm-ink: #1c2540;
  --nm-blue: #2b3a67;
  --nm-lapis: #33409b;
  --nm-green: #7fa74c;
  --nm-green-soft: #eaf1de;
  --nm-paper: #fbfaf7;
  --nm-mist: #eef1f5;
  --nm-line: #dfe3ea;
  --nm-muted: #5c6577;
  --nm-purple: #55476d;
  --nm-purple-deep: #605671;

  --bs-body-font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: #333a4a;
  --bs-body-bg: var(--nm-paper);
  --bs-link-color: var(--nm-blue);
  --bs-link-hover-color: var(--nm-lapis);
}

body {
  font-family: var(--bs-body-font-family);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--bs-body-color);
  background: var(--nm-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--nm-purple);
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--nm-green);
}

.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
  scroll-margin-top: 84px;
}
.section--mist { background: var(--nm-mist); }
.section--white { background: #fff; }

.lead-serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.4;
  color: var(--nm-blue);
}

/* ---------- Navigation ---------- */
.nm-nav {
  background: rgba(85, 71, 109, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nm-nav.is-stuck {
  border-bottom-color: rgba(255, 255, 255, .14);
  box-shadow: 0 8px 30px rgba(28, 37, 64, .06);
  padding-top: .55rem !important;
  padding-bottom: .55rem !important;
}
.nm-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  text-decoration: none;
  transition: font-size .3s ease;
}
.nm-brand small {
  display: block;
  font-family: var(--bs-body-font-family);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  font-weight: 400;
  margin-top: .35rem;
  transition: font-size .3s ease, margin-top .3s ease;
}
.nm-nav.is-stuck .nm-brand { font-size: 1.3rem; }
.nm-nav.is-stuck .nm-brand small { font-size: .62rem; margin-top: .2rem; }
.nm-nav .nav-link {
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
  padding: .4rem 0;
  margin: 0 .9rem;
  position: relative;
}
.nm-nav .nav-link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: .1rem;
  height: 1px; background: #fff;
  transition: right .3s ease;
}
.nm-nav .nav-link:hover,
.nm-nav .nav-link.active { color: #fff; }
.nm-nav .nav-link:hover::after,
.nm-nav .nav-link.active::after { right: 0; }
.nm-nav .navbar-toggler {
  width: 46px;
  height: 46px;
  padding: .55rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 37, 64, .08);
}
.nm-nav .navbar-collapse { text-align: center; }
.nm-nav .navbar-nav { padding: .35rem 0 .6rem; }

/* ---------- Buttons ---------- */
.btn-nm {
  background: #5e5276;
  color: #fff;
  border-radius: 999px;
  padding: .7rem 1.6rem;
  font-weight: 400;
  border: 1px solid #5e5276;
  transition: background .25s ease, transform .25s ease;
}
.btn-nm:hover { background: var(--nm-green); border-color: var(--nm-green); color: #fff; transform: translateY(-1px); }
.nm-nav .btn-nm {
  background: #fff;
  color: #55476d;
  border-color: #fff;
}
.nm-nav .btn-nm:hover { background: #fff; color: var(--nm-green); border-color: #fff; }
.btn-nm-outline {
  background: transparent;
  color: var(--nm-blue);
  border: 1px solid var(--nm-line);
  border-radius: 999px;
  padding: .7rem 1.6rem;
}
.btn-nm-outline:hover { border-color: var(--nm-blue); color: var(--nm-ink); background: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(7rem, 13vw, 11rem) 0 clamp(4rem, 8vw, 7rem);
  background: linear-gradient(135deg, var(--nm-green-soft) 0%, var(--nm-mist) 48%, var(--nm-paper) 100%);
}
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
.hero .btn-nm-outline { background: #fff; }
.hero .btn-nm-outline:hover { background: var(--nm-paper); }
.hero-mosaic {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  grid-template-rows: repeat(3, 1fr);
  gap: .75rem;
  height: clamp(470px, 48vw, 620px);
}
.hero-mosaic__item {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 20px 45px -28px rgba(28, 37, 64, .42);
}
.hero-mosaic__item--portrait { grid-row: 1 / 4; border-bottom-left-radius: 72px; }
.hero-mosaic__item--detail { border-top-right-radius: 72px; }
.hero-mosaic__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-mosaic__item--portrait img { object-position: center 18%; }
.hero-mosaic__item--detail img { object-position: center 34%; }
.hero-mosaic__item--exam img { object-position: center; }
.hero-mosaic__item--calm img { object-position: center 30%; }
.hero-card {
  background: #fff;
  border: 1px solid var(--nm-line);
  border-radius: 4px;
  padding: 1.35rem 1.5rem;
}
.hero-card dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--nm-green); font-weight: 600; }
.hero-card dd { margin: .15rem 0 0; color: var(--nm-ink); }

.rule {
  width: 56px; height: 2px; background: var(--nm-green); border: 0; opacity: 1; margin: 1.5rem 0;
}

/* ---------- Diagnostik ---------- */
.diagnostics {
  position: relative;
  overflow: hidden;
  background: var(--nm-paper);
}
.diagnostics-bg,
.diagnostics-shade { position: absolute; inset: 0; }
.diagnostics-bg {
  background: url("../img/untersuchung.webp") center 44% / cover no-repeat;
  opacity: .22;
  filter: grayscale(1) brightness(1.08);
}
.diagnostics-shade {
  background: linear-gradient(to top right,
    var(--nm-paper) 0%,
    rgba(251, 250, 247, .92) 45%,
    rgba(251, 250, 247, .3) 100%);
}
.diagnostics-content { position: relative; z-index: 1; }
.diagnostics .feature {
  background: rgba(255, 255, 255, .58);
  border-color: rgba(255, 255, 255, .8);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px -20px rgba(28, 37, 64, .28);
}
.diagnostics .feature:hover {
  background: rgba(255, 255, 255, .82);
  border-color: #d8e3c4;
  box-shadow: 0 24px 50px -30px rgba(28, 37, 64, .35);
}
.feature-icon {
  width: 52px;
  height: 52px;
  padding: 11px;
  color: var(--nm-green);
  background: rgba(181, 209, 136, .22);
  border-radius: 12px;
}
.feature-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.diagnostics-quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.35;
  color: var(--nm-lapis);
  font-style: italic;
  text-align: center;
}
.diagnostics-media {
  position: relative;
  height: clamp(300px, 39vw, 500px);
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 28px 60px -36px rgba(28, 37, 64, .42);
}
.diagnostics-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 37, 64, .8), rgba(28, 37, 64, .02) 62%);
}
.diagnostics-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.diagnostics-media figcaption {
  position: absolute;
  z-index: 1;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(1.5rem, 5vw, 3.5rem);
  left: clamp(1.5rem, 5vw, 4rem);
}
.diagnostics-media .diagnostics-quote { max-width: 52rem; margin-inline: auto; color: #fff; }

/* ---------- Karten / Leistungen ---------- */
.feature {
  background: #fff;
  border: 1px solid var(--nm-line);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: #cfd8c3;
  box-shadow: 0 24px 50px -30px rgba(28, 37, 64, .3);
}
.feature-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem; color: var(--nm-green); line-height: 1;
}
.feature h3 { font-size: 1.3rem; margin: .85rem 0 .5rem; }
.feature p { margin: 0; font-size: 1rem; }

.quote-figure { border-radius: 4px; overflow: hidden; }
.quote-figure img { width: 100%; display: block; }

.signature {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: var(--nm-blue);
}

/* ---------- Vita Portrait ---------- */
.vita-portrait {
  max-width: 240px;
}
.vita-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  border-radius: 6px;
  border-bottom-left-radius: 56px;
  box-shadow: 0 20px 45px -28px rgba(28, 37, 64, .42);
}

/* ---------- Vita Timeline ---------- */
.vita { position: relative; }
.vita::before {
  content: ""; position: absolute; top: .4rem; bottom: .4rem; left: 7.5rem;
  width: 1px; background: linear-gradient(180deg, var(--nm-green), var(--nm-line));
}
.vita-item {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0 2.25rem;
  padding: .9rem 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.vita-item.is-in { opacity: 1; transform: none; }
.vita-year {
  text-align: right;
  font-weight: 600;
  color: var(--nm-blue);
  font-size: .98rem;
  padding-top: .1rem;
}
.vita-body { padding-left: .25rem; }
.vita-body strong { font-weight: 600; color: var(--nm-ink); display: block; }
.vita-body span { color: var(--nm-muted); font-size: .98rem; }
.vita-item::after {
  content: "";
  position: absolute;
  left: calc(7.5rem - 4px);
  top: 1.35rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--nm-green);
}
.vita-item--now::after { background: var(--nm-green); box-shadow: 0 0 0 5px var(--nm-green-soft); }
.vita-item--now .vita-year { color: var(--nm-green); }

.vita-group {
  grid-column: 1 / -1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  color: var(--nm-ink);
  border-top: 1px solid var(--nm-line);
  padding-top: 1.6rem;
  margin-top: 1.4rem;
}

@media (max-width: 767.98px) {
  .vita::before { left: .25rem; }
  .vita-item { grid-template-columns: 1fr; gap: .15rem; padding-left: 1.75rem; }
  .vita-year { text-align: left; }
  .vita-item::after { left: 0; top: 1.5rem; }
}

/* ---------- Kontakt ---------- */
.contact-panel {
  background: #fff;
  border: 1px solid var(--nm-line);
  border-radius: 4px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .7rem 0; border-bottom: 1px solid var(--nm-line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span {
  display: block; font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--nm-green); font-weight: 600;
}
.contact-list a { color: var(--nm-ink); text-decoration: none; border-bottom: 1px solid var(--nm-line); }
.contact-list a:hover { border-color: var(--nm-green); }

.form-label { font-size: .85rem; letter-spacing: .04em; color: var(--nm-muted); font-weight: 600; }
.form-control, .form-select {
  border-radius: 3px;
  border-color: var(--nm-line);
  padding: .7rem .9rem;
  background: var(--nm-paper);
}
.form-control:focus {
  border-color: var(--nm-green);
  box-shadow: 0 0 0 .2rem rgba(127, 167, 76, .18);
  background: #fff;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Karte mit Zwei-Klick-Lösung ---------- */
.map-shell {
  position: relative;
  min-height: 420px;
  height: 100%;
  border: 1px solid var(--nm-line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--nm-mist);
}
#map { position: absolute; inset: 0; }
.map-consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; text-align: center; padding: 2rem;
  background:
    repeating-linear-gradient(45deg, #e8ecf1 0 12px, #eef1f5 12px 24px);
}
.map-consent p { max-width: 24rem; font-size: .95rem; color: var(--nm-muted); margin: 0; }
.leaflet-container { font: inherit; }

/* ---------- Footer ---------- */
.nm-footer {
  background: var(--nm-purple-deep);
  color: rgba(255, 255, 255, .72);
  padding: 3.5rem 0 2rem;
  font-size: .95rem;
}
.nm-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.nm-footer a:hover { color: #fff; }
.nm-footer .nm-brand, .nm-footer h2 { color: #fff; }
.nm-footer .nm-brand small { color: rgba(255, 255, 255, .55); }
.footer-line { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(7rem, 12vw, 10rem) 0 5rem; }
.legal h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.75rem; font-family: var(--bs-body-font-family); font-weight: 600; }
.legal p, .legal li { font-size: 1rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .vita-item { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 767.98px) {
  .nm-brand { font-size: 1.35rem; }
  .nm-brand small { font-size: .6rem; }
  .hero-mosaic { height: 430px; grid-template-columns: 1.12fr .88fr; gap: .5rem; }
  .hero-mosaic__item--portrait { border-bottom-left-radius: 48px; }
  .hero-mosaic__item--detail { border-top-right-radius: 48px; }
  .diagnostics { min-height: 0; }
  .diagnostics-bg { background-position: 42% center; }
  .diagnostics-shade { background: rgba(251, 250, 247, .88); }
  .diagnostics-media { height: 360px; }
  .diagnostics-media img { object-position: center; }
}

/* ---------- Bildformate ---------- */
.img-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.img-wide {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.img-cover-tall {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 560px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.vita-year { padding-right: 1.15rem; }
@media (max-width: 767.98px) { .vita-year { padding-right: 0; } }
.img-portrait, .img-wide { height: auto; }

/* Inhalte auch ohne JavaScript für Leser und Suchmaschinen sichtbar. */
@media (max-width: 991.98px) {
  .hero > .container > .row { --bs-gutter-x: 1.5rem; }
}
@media (scripting: none) {
  .reveal, .vita-item { opacity: 1; transform: none; }
}
