/* ==========================================================================
   Dr. med. Marianne Fischer-Horn – Praxis für Psychotherapie
   Masterlayout nach Vorlage "FireShot Capture 228" (1920 px Referenzbreite)
   Rahmen-Layout: grauer Kopfbereich, blauer Seitenrand, zentrierte 816-px-Spalte
   ========================================================================== */

:root {
  /* Farben – direkt aus der Vorlage gemessen */
  --blau: #123f92;          /* Rahmen, Headerlinie, Footer */
  --blau-logo: #0e4194;     /* Logo-Schrift, Hervorhebung */
  --blau-hell: #7390c8;     /* Listenpunkte, Icon-Kreise */
  --violett: #77217f;       /* Logo-Linie */
  --grau-aussen: #ededed;   /* Seitenhintergrund oben */
  --flaeche: #f2f5fa;       /* Header- und Inhaltsfläche */
  --karte: #eef0f5;         /* Kontaktboxen */
  --linie: #e2e5ea;         /* Trennlinien */
  --text: #222326;
  --text-weich: #3a3c40;
  --weiss: #ffffff;

  /* Schrift */
  --font-text: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --fs-body: 16px;          /* Fließtext Desktop */
  --lh-body: 1.5;

  /* Raster */
  --spalte: 816px;
  --rahmen: 17px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  /* grau oben, darunter blauer Rahmen – wie in der Vorlage */
  background: var(--blau) linear-gradient(var(--grau-aussen), var(--grau-aussen)) no-repeat top / 100% calc(181px + 33.7vw);
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blau-hell); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--weiss); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 16px; }

/* --------------------------------------------------------------------------
   Rahmen
   -------------------------------------------------------------------------- */
.seite {
  margin: 18px var(--rahmen) 0;
  background: var(--flaeche);
}

.innen {
  width: 100%;
  max-width: calc(var(--spalte) + 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* --------------------------------------------------------------------------
   Header mit Logo
   -------------------------------------------------------------------------- */
.kopf {
  background: var(--flaeche);
  border-bottom: 7px solid var(--blau);
  padding-block: 16px 20px;
}

.logo {
  display: block;
  width: min(810px, 100%);
  margin-inline: auto;
  text-decoration: none;
}

.logo__svg { display: block; width: 100%; height: auto; overflow: visible; }
.logo__ort {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: 118px;
  fill: var(--blau-logo);
}

/* --------------------------------------------------------------------------
   Hero mit Parallax
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1885 / 733;
  min-height: 220px;
  background: #b9d3dc;
}

.hero__bild {
  position: absolute;
  left: 0; right: 0;
  top: -12%;
  height: 124%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  will-change: transform;
}

.hero--klein { aspect-ratio: 1885 / 420; }

/* Leichter Zoom (Ken-Burns) – eigene "scale"-Eigenschaft, damit er sich mit dem Parallax-Transform verträgt */
@media (prefers-reduced-motion: no-preference) {
  .hero__bild { animation: hero-zoom 22s ease-in-out infinite alternate; transform-origin: 50% 45%; }
}
@keyframes hero-zoom { from { scale: 1; } to { scale: 1.15; } }

/* --------------------------------------------------------------------------
   Inhalt
   -------------------------------------------------------------------------- */
.inhalt { padding-block: 44px 0; }

.willkommen { text-align: center; }

.willkommen h1 {
  margin: 0;
  font-weight: 300;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1.1;
  text-wrap: balance;
}
.willkommen .z1 { display: block; font-size: 30px; letter-spacing: 0.01em; }
.willkommen .z2 { display: block; font-size: 46px; letter-spacing: 0.005em; margin-top: 2px; }

.willkommen .z3 {
  margin: 4px 0 18px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.willkommen p { margin: 0 0 11px; font-size: 15px; line-height: 24px; }
.willkommen a { text-decoration: none; white-space: nowrap; }
.willkommen a:hover { color: var(--blau-logo); }
.nowrap { white-space: nowrap; }

.netz-klein { width: 265px; margin: 14px auto 0; }

/* Zwei Spalten: Für wen? / Das Angebot umfasst */
.zweispaltig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
  padding-bottom: 48px;
}
.zweispaltig > div { min-width: 0; }

.titel-linie {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.titel-linie::after { content: ""; flex: 1; height: 1px; background: var(--linie); }

.punkte { list-style: none; margin: 0; padding: 0; }
.punkte li {
  position: relative;
  padding: 0 0 18px 47px;
  min-height: 66px;
  font-size: 15px;
  line-height: 24px;
}
.punkte li::before {               /* Punkt */
  content: "";
  position: absolute; left: 1px; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle, var(--weiss) 0 2.5px, var(--blau-hell) 3px);
  z-index: 1;
}
.punkte li::after {                /* senkrechte Linie */
  content: "";
  position: absolute; left: 28px; top: 0; bottom: 0;
  width: 1px; background: #e6e9ef;
}

/* Über mich */
.trenner { border: 0; height: 1px; background: var(--linie); margin: 0; }

.ueber {
  display: grid;
  grid-template-columns: 216px 1fr;
  gap: 0;
  padding: 36px 0 0;
}
.ueber__foto {
  width: 106px; height: 125px;
  margin: 0 0 0 31px;
  border-radius: 50%;
  object-fit: cover;
}
.ueber__text { max-width: 520px; min-width: 0; }
.ueber__text p { margin: 0 0 11px; font-size: 15px; line-height: 23.5px; }
.ueber__text strong { color: var(--blau-logo); font-weight: 600; }

.netz-lang { width: 100%; margin: 6px 0 44px; }

/* Laufband: Netzwerkgrafik über die volle Rahmenbreite, Endlosschleife */
.seite { overflow-x: clip; }
.laufband {
  margin: 6px calc(50% - 50vw + var(--rahmen)) 44px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.laufband__spur { display: flex; width: max-content; }
.laufband__spur img { width: 816px; max-width: none; height: auto; padding-right: 32px; box-sizing: content-box; }
@media (prefers-reduced-motion: no-preference) {
  .laufband__spur { animation: laufband 60s linear infinite; }
}
@keyframes laufband { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* Kontaktboxen */
.kontakt {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding: 54px 0 0;
  align-items: start;
}
.box {
  position: relative;
  background: var(--karte);
  border: 1px solid #e8ebf1;
  text-align: center;
  padding: 36px 8px 14px;
  font-size: 15px;
  line-height: 24px;
}
.box__icon {
  position: absolute; left: 50%; top: 0;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: var(--blau-hell);
  display: grid; place-items: center;
}
.box__icon svg { width: 16px; height: 16px; fill: var(--weiss); }
.box h3 {
  margin: 0 0 8px;
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1.2;
  hyphens: manual;
}
.box p { margin: 0; }
.box a { text-decoration: none; }
.box a:hover { color: var(--blau-logo); }

/* ÖPNV */
.oepnv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding: 62px 0 52px;
  text-align: center;
  font-size: 15px;
  line-height: 22px;
}
.oepnv svg { width: 26px; height: 26px; margin: 0 auto 18px; display: block; }
.oepnv small { display: block; font-size: 13px; color: var(--text-weich); margin-top: 4px; line-height: 19px; }

.anfahrt-hinweis { text-align: center; font-size: 15px; line-height: 24px; margin: -26px 0 0; padding-bottom: 44px; color: var(--text-weich); }

/* Karte */
.karte { display: block; position: relative; height: 352px; overflow: hidden; background: #eceff3; }
.karte img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s ease; }
.karte:hover img { transform: scale(1.03); }
.karte__route {
  position: absolute; right: 16px; bottom: 16px;
  background: var(--blau); color: var(--weiss);
  font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  padding: 8px 14px; text-decoration: none;
}

/* Unterseiten (Impressum / Datenschutz) */
.text { padding-bottom: 56px; }
.text h1 { text-align: center; margin-bottom: 36px; }
.text h2 { font-size: 19px; font-weight: 600; margin: 32px 0 8px; line-height: 1.3; }
.text h3 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; }
.text p, .text li { font-size: 15px; line-height: 24px; }
.text p { margin: 0 0 11px; }
.text a { color: var(--blau-logo); }
.hinweis { background: #fff6d6; border-left: 3px solid #d9a400; padding: 10px 14px; font-size: 14px !important; }

/* Footer */
.fuss { background: var(--blau); color: var(--weiss); }
.fuss .innen {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px;
  padding-block: 18px;
  font-size: 11px; line-height: 16px;
}
.fuss nav { display: flex; gap: 8px; }
.fuss a { color: var(--weiss); text-decoration: none; }
.fuss a:hover, .fuss a[aria-current] { text-decoration: underline; }
.fuss .sep { opacity: .7; }
.blau-rest { height: 150px; }

/* --------------------------------------------------------------------------
   Animationen – nur wenn JS aktiv und keine reduzierte Bewegung gewünscht
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .anim { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
  .js .anim.zoom { transform: scale(.94); }
  .js .anim.links { transform: translateX(-24px); }
  .js .anim.sichtbar { opacity: 1; transform: none; }
  .js .anim-load { animation: einblenden 1s cubic-bezier(.2,.7,.2,1) both; }
  .js .anim-load.v1 { animation-delay: .15s; }
  .js .anim-load.v2 { animation-delay: .3s; }
  .js .anim-load.v3 { animation-delay: .45s; }
  .netz-klein img, .netz-schweben { animation: schweben 7s ease-in-out infinite; }
}
@keyframes einblenden { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes schweben { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(1.5deg); } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  body { background-size: 100% calc(150px + 33.7vw); }
}

@media (max-width: 900px) {
  .kontakt, .oepnv { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
}

@media (max-width: 700px) {
  :root { --fs-body: 19px; --lh-body: 1.55; --rahmen: 0px; }
  body { background: var(--blau); }
  .seite { margin-top: 0; }
  .kopf { padding-block: 14px 14px; border-bottom-width: 5px; }
  .hero { aspect-ratio: auto; height: 62vw; min-height: 230px; }
  .hero--klein { height: 40vw; min-height: 160px; }
  .inhalt { padding-block: 34px 0; }

  /* Fließtext auf dem Handy 19 px */
  .willkommen p, .punkte li, .ueber__text p, .box, .oepnv, .text p, .text li, .anfahrt-hinweis { font-size: 19px; line-height: 29px; }
  .willkommen .z1 { font-size: 21px; }
  .willkommen .z2 { font-size: 30px; }
  .willkommen .z3 { font-size: 19px; }
  .willkommen p { margin-bottom: 12px; }

  .zweispaltig { grid-template-columns: 1fr; gap: 24px; }
  .punkte li { min-height: 0; padding-bottom: 20px; padding-left: 44px; }
  .punkte li::before { top: 4px; }

  .ueber { grid-template-columns: 1fr; justify-items: center; text-align: left; gap: 20px; }
  .ueber__foto { margin: 0; }
  .titel-linie { font-size: 21px; }
  .box h3 { font-size: 17px; }
  .oepnv small { font-size: 16px; line-height: 23px; }
  .karte { height: 300px; }
  .laufband__spur img { width: 540px; padding-right: 20px; }
  .laufband__spur { animation-duration: 45s; }
  .fuss .innen { font-size: 13px; justify-content: center; text-align: center; }
  .text h2 { font-size: 21px; }
}

@media (max-width: 480px) {
  .kontakt { grid-template-columns: 1fr; gap: 44px; }
  .oepnv { grid-template-columns: 1fr; gap: 28px; }
  .willkommen .z2 { font-size: 26px; }
}

@media print {
  body { background: #fff; }
  .hero, .karte, .laufband, .netz-klein { display: none; }
}
