/* =========================================================================
   Dr. med. Hanno Jaeger – Praxis für Schmerz- und Psychotherapie
   Masterlayout nach Designvorlage.pdf (Seitenbreite 1200 px, Rand 10 px)
   ========================================================================= */

@font-face { font-family: "Carlito"; src: url("../fonts/carlito-regular.woff") format("woff"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("../fonts/carlito-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  /* Farben (aus der PDF gemessen) */
  --blau: #2556ac;          /* Überschriften, Bullets, Footer, Icons */
  --blau-dunkel: #1b3f80;
  --orange: #f68b1e;        /* Balken unter dem Kopfbereich */
  --nav: #28292a;           /* Navigation (Arial Bold) */
  --text: #333436;          /* Fließtext (Calibri Light) */
  --linie: #6b6e75;         /* Unterstreichung Infozeile */
  --weiss: #ffffff;
  --flaeche: #f3f6fb;

  /* Schriften: Calibri ist nicht web-lizenzierbar -> Carlito (metrisch identisch, OFL) */
  --f-text: "Carlito", "Calibri", "Segoe UI", Arial, sans-serif;
  --f-nav: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;

  /* Schriftgrößen – Fließtext laut Vorgabe: Desktop 14 px, Handy 16 px */
  --fs-body: 19px;
  --fs-h1: 38px;
  --fs-nav: 22.4px;
  --fs-info-h: 17.4px;
  --fs-footer: 13px;
  --lh-body: 1.5;

  --seite: 1200px;
  --rand: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--f-text);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blau); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }

.wrap { max-width: var(--seite); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }

/* ---------- Kopfbereich ------------------------------------------------- */
.kopf { position: relative; height: 203px; }
.logo { position: absolute; left: 0; top: 9px; display: block; width: 710px; height: 182px; text-decoration: none; }
.logo__bild { position: absolute; left: 2px; top: 2px; width: 127px; height: 179px; object-fit: cover; }
.logo__schrift { position: absolute; left: 150px; top: 67px; width: 555px; height: auto; }
.nav { position: absolute; right: 4px; top: 165px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 17px; }
.nav a { font-family: var(--f-nav); font-weight: 700; font-size: var(--fs-nav); line-height: 1.2; color: var(--nav); text-decoration: none; letter-spacing: -.1px; position: relative; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blau); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.burger { display: none; }
.balken { height: 21px; background: var(--orange); }

/* ---------- Hero / Slider mit Parallax ---------------------------------- */
.hero { position: relative; height: 398px; overflow: hidden; background: #1e2b54; }
.hero--unter { height: 300px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slide.ist-aktiv { opacity: 1; z-index: 1; }
.parallax { position: absolute; left: 0; right: 0; bottom: 0; height: 127.1%; width: 100%; object-fit: cover; object-position: 50% 0; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.hero--unter .parallax { height: 135%; object-position: 50% 50%; }
.hero--team { height: 400px; }
.hero--team .parallax { height: 106%; }
.caption { position: absolute; left: 418px; top: 136px; z-index: 2; display: grid; gap: 20px; margin: 0; }
.caption span { display: block; width: 391px; height: 62px; background: rgba(255,255,255,.42); font-weight: 700; font-size: 37px; line-height: 62px; color: #262626; text-align: center; letter-spacing: .1px; }
.slide.ist-aktiv .caption span { animation: capIn .9s cubic-bezier(.2,.7,.2,1) both; }
.slide.ist-aktiv .caption span:nth-child(2) { animation-delay: .25s; }
@keyframes capIn { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.pfeil { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.95); background: rgba(255,255,255,.35); cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.pfeil:hover { background: rgba(255,255,255,.6); }
.pfeil svg { width: 26px; height: 26px; stroke: #2a2a2a; fill: none; stroke-width: 1.4; }
.pfeil--l { left: 15px; }
.pfeil--r { right: 15px; }

/* ---------- Inhalte ----------------------------------------------------- */
.h1, .h2 { font-family: var(--f-text); font-weight: 700; color: var(--blau); font-size: var(--fs-h1); line-height: 1.22; text-align: center; letter-spacing: .55px; margin: 0; text-wrap: balance; }
.h1 { padding-top: 11px; }
.h3 { font-weight: 700; color: var(--blau); font-size: 22px; line-height: 1.25; margin: 0 0 6px; }

.trenner { width: 306px; height: 3px; margin: 0 auto; background-image: radial-gradient(circle, var(--blau) 1px, transparent 1.3px); background-size: 4.3px 3px; background-repeat: repeat-x; }

.intro { position: relative; min-height: 247px; margin-top: 15px; }
.intro__bild { position: absolute; left: 5px; top: 0; width: 138px; height: 184px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px #e6e8ee; }
.intro__text { margin-left: 170px; max-width: 960px; padding-top: 0; }
.intro__text p { line-height: 1.39; }
.intro__text p { margin: 0 0 1.2em; }

.angebot { display: grid; grid-template-columns: 613px 1fr; margin: 41px 0 0 188px; }
.angebot ul { list-style: none; margin: 0; padding: 0; }
.angebot li { position: relative; height: 55px; padding-left: 49px; display: flex; align-items: center; transform: translateY(-14px); }
.angebot li::before { content: ""; position: absolute; left: 0; top: 50%; width: 29px; height: 29px; margin-top: -14.5px; border-radius: 50%; background: var(--blau); transition: transform .3s; }
.angebot li:hover::before { transform: scale(1.12); }
.angebot li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: calc(50% + 17px); width: 2px; height: 21px; background-image: radial-gradient(circle, var(--blau) 1px, transparent 1.3px); background-size: 2px 4.75px; }

.verfahren { list-style: none; margin: 30px 0 0; padding: 0; text-align: center; line-height: 31.2px; }

.kreise { display: flex; justify-content: space-between; padding: 0 16px 0 16px; margin-top: 0; }
.kreise a { display: block; width: 208px; height: 208px; border-radius: 50%; overflow: hidden; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.kreise a:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 14px 30px rgba(37,86,172,.35); }
.kreise img { width: 100%; height: 100%; object-fit: cover; }

.info { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 90px 0 80px; text-align: center; }
.info__icon { width: 54px; height: 54px; margin: 0 auto 4px; display: block; color: var(--blau); }
.info h2 { display: inline-block; margin: 0 0 9px; padding-bottom: 3px; border-bottom: 1px solid var(--linie); font-weight: 700; font-size: var(--fs-info-h); letter-spacing: .9px; color: var(--blau); text-transform: uppercase; line-height: 1.25; }
.info p { margin: 0; font-weight: 400; font-size: 14px; line-height: 19px; color: var(--text); }
.info a { color: inherit; text-decoration: none; }
.info a:hover { color: var(--blau); text-decoration: underline; }

/* ---------- Karte + Telefonbutton + Footer ------------------------------ */
.karte { position: relative; height: 331px; background: #e8eaed; }
.karte__bild { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95); }
.karte__laden { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; }
.karte__hinweis { opacity: 0; transition: opacity .3s; background: rgba(255,255,255,.95); color: var(--text); font: 400 14px/1.45 var(--f-text); padding: 14px 18px; border-radius: 6px; max-width: 420px; box-shadow: 0 6px 22px rgba(0,0,0,.18); text-align: center; }
.karte__laden:hover .karte__hinweis, .karte__laden:focus-visible .karte__hinweis { opacity: 1; }
.karte__hinweis strong { color: var(--blau); display: block; font-size: 16px; }
.karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.anrufen { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); z-index: 6; width: 348px; height: 63px; display: flex; align-items: center; gap: 16px; padding: 0 18px 0 16px; border-radius: 14px 14px 0 0; color: #fff; text-decoration: none; background: linear-gradient(180deg, #eef3fb 0%, #9ab5e0 14%, #4f7cc6 40%, #2556ac 72%, #1d4790 100%); box-shadow: 0 -2px 10px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.7); transition: filter .25s; }
.anrufen:hover { filter: brightness(1.08); }
.anrufen__nr { font: 400 33px/1 var(--f-text); letter-spacing: .3px; flex: 1; white-space: nowrap; }
.anrufen svg { flex: none; }

.fuss { background: var(--blau); color: #fff; }
.fuss .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 43px; padding-top: 4px; padding-bottom: 4px; }
.fuss p { margin: 0; font: 400 var(--fs-footer)/1.3 var(--f-text); }
.fuss nav { display: flex; gap: 18px; }
.fuss a { font: 400 var(--fs-footer)/1.3 var(--f-nav); color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }

.stick-call { display: none; }

/* ---------- Unterseiten ------------------------------------------------- */
.lead { text-align: center; max-width: 720px; margin: 14px auto 0; }
.abschnitt { margin-top: 44px; }

.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.galerie a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; position: relative; max-width: 100%; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.galerie a:hover img { transform: scale(1.06); }
.galerie figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(transparent, rgba(16,36,80,.75)); }

.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.links a { display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; border: 1.5px solid var(--blau); border-radius: 8px; text-decoration: none; color: var(--text); transition: background .25s, transform .25s; }
.links a:hover { background: var(--flaeche); transform: translateY(-3px); }
.links b { font-size: 26px; color: var(--blau); letter-spacing: 1px; }
.links span { font-weight: 400; font-size: 17px; line-height: 1.4; }
.links small { color: var(--blau); font-weight: 700; font-size: 13px; margin-top: auto; }

.leistungen { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px; margin-top: 30px; }
.leistung { display: grid; grid-template-columns: 80px 1fr; gap: 22px; align-items: start; scroll-margin-top: 20px; }
.leistung img { width: 80px; height: 80px; border-radius: 4px; }
.leistung p { margin: 0; }
.leistung:target .h3 { color: var(--orange); }

.platzhalter { position: relative; outline: 2px dashed var(--orange); outline-offset: 6px; }
.platzhalter::before { content: "Platzhalter – Text vom Kunden folgt"; position: absolute; top: -18px; right: 0; background: var(--orange); color: #fff; font: 700 11px/1 var(--f-nav); padding: 4px 6px; border-radius: 3px; }

.chef { display: grid; grid-template-columns: 302px 1fr; gap: 46px; margin-top: 40px; align-items: start; }
.chef img { border-radius: 6px; }
.chef .rolle { margin: 0; font-weight: 400; color: var(--text); }
.chef h2 { margin: 0 0 18px; font-size: 32px; color: var(--blau); }
.chef h3 { margin: 18px 0 4px; font-size: 17px; font-weight: 700; color: var(--blau); }
.chef ul { margin: 0; padding-left: 18px; }
.team { display: grid; grid-template-columns: repeat(3, 240px); justify-content: center; gap: 44px 90px; margin-top: 34px; }
.team figure { margin: 0; text-align: center; }
.team img { width: 220px; transition: transform .45s cubic-bezier(.2,.7,.2,1); height: 220px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; box-shadow: 0 0 0 6px #fff, 0 0 0 7.5px var(--blau); }
.team b { display: block; font-size: 20px; color: var(--blau); }

/* Kontakt (Vorlage S. 2) */
.kontakt { position: relative; padding-top: 20px; min-height: 790px; }
.kontakt__h1 { font-weight: 700; font-size: 33px; line-height: 1.25; color: var(--blau); margin: 0 0 14px; letter-spacing: .5px; }
.kontakt__h2 { white-space: nowrap; font-weight: 700; font-size: 33px; line-height: 1.25; color: var(--blau); margin: 0; letter-spacing: .5px; }
.kontakt__spalten { display: grid; grid-template-columns: 351px 1fr; gap: 40px; }
.form { margin-top: 18px; display: grid; gap: 15px; }
.feld { position: relative; }
.feld input, .feld textarea { width: 100%; height: 40px; border: 1.5px solid var(--blau); border-radius: 8px; padding: 18px 12px 4px; font: 400 16px/1.2 var(--f-text); color: var(--text); background: #fff; transition: box-shadow .2s; }
.feld textarea { height: 190px; resize: vertical; padding-top: 26px; }
.feld label { position: absolute; left: 12px; top: 9px; font: 400 16px/1 var(--f-text); color: #6a6f78; letter-spacing: .6px; pointer-events: none; transition: transform .2s, font-size .2s, color .2s; transform-origin: left top; }
.feld input:focus, .feld textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(37,86,172,.18); }
.feld input:focus + label, .feld input:not(:placeholder-shown) + label, .feld textarea:focus + label, .feld textarea:not(:placeholder-shown) + label { transform: translateY(-6px) scale(.72); color: var(--blau); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; letter-spacing: .4px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blau); flex: none; }
.senden { justify-self: start; border: 0; border-radius: 8px; background: var(--blau); color: #fff; font: 700 16px/1 var(--f-text); letter-spacing: .6px; padding: 12px 22px; cursor: pointer; transition: background .25s; }
.senden:hover { background: var(--blau-dunkel); }
.form__status { margin: 0; font-weight: 400; min-height: 1.4em; }
.form__status.ok { color: #1b7a3a; }
.form__status.fehler { color: #b3261e; }
.hp { position: absolute; left: -5000px; }
.anruf { position: absolute; right: 22px; top: 81px; text-align: right; }
.anruf__nr { display: block; font-weight: 700; font-size: 33px; line-height: 1.25; color: var(--blau); text-decoration: none; letter-spacing: .5px; }
.anruf__mehr { margin: 6px 0 0; font-weight: 400; line-height: 1.5; }
.anruf__mehr a { color: inherit; text-decoration: none; }
.kontakt__bild { position: absolute; right: -10px; top: 246px; width: 600px; }

.rechtliches { max-width: 820px; margin: 30px auto 60px; }
.rechtliches h2 { color: var(--blau); font-size: 22px; margin: 28px 0 6px; }
.rechtliches p { margin: 0 0 10px; }
.fehlt { background: #fff1e0; border-bottom: 1px dashed var(--orange); padding: 0 3px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(12,22,48,.9); display: grid; place-items: center; padding: 40px 70px; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: lbIn .35s ease both; }
.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; font-weight: 400; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 10px; }
.lb-zu { top: 10px; right: 16px; }
.lb-l { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-r { right: 10px; top: 50%; transform: translateY(-50%); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Leichte Animationen ---------------------------------------- */
.js [data-anim] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js [data-anim="links"] { transform: translateX(-30px); }
.js [data-anim="zoom"] { transform: scale(.88); }
.js [data-anim].ist-sichtbar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim] { opacity: 1; transform: none; transition: none; }
  .parallax { transform: none !important; }
  .slide, .slide.ist-aktiv .caption span { transition: none; animation: none; }
}

/* ---------- Tablet ------------------------------------------------------ */
@media (max-width: 1199px) {
  .nav { right: 6px; }
  .nav ul { gap: 0 14px; }
  :root { --fs-nav: 20px; }
  .logo__schrift { width: 440px; top: 72px; left: 130px; }
  .logo__bild { width: 104px; height: 147px; }
  .caption { left: 50%; transform: translateX(-50%); }
  .angebot { margin-left: 40px; grid-template-columns: 1fr 1fr; }
  .kreise { padding: 0; gap: 12px; }
  .kreise a { width: 18.5vw; height: 18.5vw; }
  .info { padding: 0 20px; }
  .kontakt__bild { width: 48%; }
}

/* ---------- Handy ------------------------------------------------------- */
@media (max-width: 860px) {
  :root { --fs-body: 18px; --fs-h1: 28px; --fs-nav: 18px; --rand: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .kopf { height: auto; display: flex; align-items: center; justify-content: space-between; padding-block: 10px; }
  .logo { position: relative; top: 0; width: auto; height: auto; display: flex; align-items: center; gap: 10px; }
  .logo__bild { position: static; width: 46px; height: 64px; }
  .logo__schrift { position: static; width: min(230px, 56vw); }
  .burger { display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 0; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 26px; height: 3px; background: var(--blau); border-radius: 2px; position: relative; transition: transform .3s, background .3s; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -8px; } .burger span::after { top: 8px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.12); display: none; }
  .nav.ist-offen { display: block; animation: lbIn .25s ease both; }
  .nav ul { flex-direction: column; gap: 0; padding: 6px 16px 14px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid #e6e9f0; }
  .nav a::after { display: none; }
  .balken { height: 10px; }

  .hero { height: auto; aspect-ratio: 2.96; max-width: 100%; }
  .hero--unter { aspect-ratio: 3; }
  .caption { top: 50%; left: 50%; transform: translate(-50%, -50%); gap: 6px; }
  .caption span { width: auto; min-width: 200px; height: auto; font-size: clamp(17px, 5vw, 26px); line-height: 1.6; padding: 0 16px !important; }
  .pfeil { width: 34px; height: 34px; margin-top: -17px; }
  .pfeil--l { left: 8px; } .pfeil--r { right: 8px; }

  .h1 { padding-top: 22px; letter-spacing: .2px; }
  .intro { min-height: 0; margin-top: 18px; }
  .intro__bild { position: static; float: left; width: 96px; height: 128px; margin: 4px 16px 8px 0; }
  .intro__text { margin-left: 0; }
  .intro__text br { display: none; }
  .angebot { grid-template-columns: 1fr; margin: 26px 0 0; }
  .angebot li { height: auto; min-height: 50px; padding-left: 46px; transform: none; }
  .angebot ul + ul li:first-child::before { }
  .angebot ul:first-child li:last-child::after { content: ""; position: absolute; left: 13.5px; top: calc(50% + 17px); width: 2px; height: 16px; background-image: radial-gradient(circle, var(--blau) 1px, transparent 1.3px); background-size: 2px 4.75px; }
  .verfahren { margin-top: 18px; line-height: 1.9; }
  .kreise { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .kreise a { width: calc((100% - 28px) / 3); height: auto; aspect-ratio: 1; max-width: 100%; }
  .info { grid-template-columns: 1fr; gap: 30px; padding: 0; }
  .info p { font-size: 16px; line-height: 1.5; }
  .karte { height: 240px; }
  .anrufen { display: none; }
  .fuss .wrap { flex-direction: column; gap: 6px; padding-top: 12px; padding-bottom: 84px; text-align: center; }
  .fuss p, .fuss a { font-size: 13px; }
  .stick-call { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(255,255,255,.96); box-shadow: 0 -4px 18px rgba(0,0,0,.12); }
  .stick-call a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 8px; background: var(--blau); color: #fff; text-decoration: none; font: 700 17px/1 var(--f-text); }
  .stick-call a + a { flex: 0 0 56px; background: var(--orange); }

  .galerie { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .links { grid-template-columns: 1fr 1fr; }
  .leistungen { grid-template-columns: 1fr; gap: 26px; }
  .leistung { grid-template-columns: 60px 1fr; gap: 16px; }
  .leistung img { width: 60px; height: 60px; }
  .chef { grid-template-columns: 1fr; gap: 24px; }
  .chef img { max-width: 260px; margin: 0 auto; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .team img { width: 100%; max-width: 160px; height: auto; aspect-ratio: 1; }
  .chef-karte img { width: 200px; height: 200px; }
  .kontakt { min-height: 0; }
  .kontakt__h1, .kontakt__h2, .anruf__nr { font-size: 25px; white-space: normal; }
  .hero--team { aspect-ratio: 2.85; }
  .kontakt__spalten { grid-template-columns: 1fr; gap: 26px; }
  .anruf { position: static; text-align: left; margin-top: 30px; }
  .kontakt__bild { position: static; width: 100%; max-width: 420px; margin: 20px auto 30px; }
  .lightbox { padding: 50px 10px; }
  .platzhalter::before { right: auto; left: 0; }
}
@media (max-width: 520px) {
  .links { grid-template-columns: 1fr; }
  .kreise a { width: calc((100% - 14px) / 2); }
  .kreise a:last-child { width: calc((100% - 14px) / 2); }
}

/* Abstände aus der Vorlage (px-genau auf Desktop, auf dem Handy gestaucht) */
.mt { margin-top: var(--mt, 0); }
@media (max-width: 860px) { .mt { margin-top: calc(var(--mt, 0px) * .55); } }
.wrap-voll { position: relative; z-index: 5; }
.karte__bild, .karte iframe { overflow: hidden; }

/* ---------- Teamseite ---------- */
.chef-karte { text-align: center; margin-top: 34px; }
.chef-karte img { width: 260px; height: 260px; object-fit: cover; border-radius: 50%; margin: 0 auto 16px; box-shadow: 0 0 0 7px #fff, 0 0 0 9px var(--blau), 0 18px 40px rgba(37,86,172,.25); }
.chef-karte .rolle { margin: 0; font-weight: 400; }
.chef-karte h2 { margin: 2px 0 0; font-size: 32px; color: var(--blau); }
.team figure:hover img { transform: translateY(-6px) scale(1.04); }
.team figcaption { font-weight: 400; }

/* ---------- Schmerztherapeutische Verfahren: stärkere Bildanimation ---------- */
.leistung__icon { position: relative; display: block; width: 80px; height: 80px; border-radius: 4px; overflow: hidden; }
.leistung__icon img { width: 100%; height: 100%; }
.leistung--animiert { perspective: 600px; }
.leistung--animiert .leistung__icon { transition: transform .4s cubic-bezier(.3,1.6,.5,1), box-shadow .4s; box-shadow: 0 0 0 0 rgba(37,86,172,0); }
.leistung--animiert .leistung__icon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); }
.js .leistung--animiert[data-anim] .leistung__icon { transform: rotateY(90deg) scale(.6); opacity: 0; }
.js .leistung--animiert.ist-sichtbar .leistung__icon { animation: iconFlip .9s cubic-bezier(.3,1.5,.5,1) both, iconPuls 3.6s ease-in-out 1.2s infinite; animation-delay: calc(var(--n, 0) * .12s + .15s), calc(var(--n, 0) * .45s + 1.2s); }
.js .leistung--animiert.ist-sichtbar .leistung__icon::after { animation: iconGlanz 4.5s ease-in-out infinite; animation-delay: calc(var(--n, 0) * .6s + 1.4s); }
.leistung--animiert:hover .leistung__icon { animation: iconWackel .6s ease both !important; box-shadow: 0 10px 22px rgba(37,86,172,.35); }
@keyframes iconFlip { 0% { opacity: 0; transform: rotateY(90deg) scale(.6); } 60% { opacity: 1; transform: rotateY(-12deg) scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes iconPuls { 0%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(37,86,172,0); } 50% { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(37,86,172,.28); } }
@keyframes iconGlanz { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes iconWackel { 0% { transform: none; } 25% { transform: rotate(-8deg) scale(1.12); } 50% { transform: rotate(6deg) scale(1.12); } 75% { transform: rotate(-3deg) scale(1.1); } 100% { transform: scale(1.1); } }

/* ---------- Kreisbilder Startseite: lebendiger ---------- */
.kreise a img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.js .kreise a[data-anim] { transform: scale(.55) rotate(-30deg); }
.js .kreise a.ist-sichtbar { transform: none; transition: opacity .8s ease, transform 1s cubic-bezier(.3,1.5,.5,1), box-shadow .4s; transition-delay: var(--d, 0s); animation: kreisSchweben 5s ease-in-out infinite, kreisPuls 3.4s ease-out infinite; animation-delay: calc(var(--d, 0s) * 6 + 1.2s), calc(var(--d, 0s) * 8 + 1s); }
.kreise a.ist-sichtbar:hover { animation-play-state: paused; transform: translateY(-8px) scale(1.06); transition-delay: 0s; }
.kreise a:hover img { transform: scale(1.12) rotate(3deg); }
@keyframes kreisSchweben { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes kreisPuls { 0% { box-shadow: 0 0 0 0 rgba(37,86,172,.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37,86,172,0); } }

@media (prefers-reduced-motion: reduce) {
  .js .leistung--animiert[data-anim] .leistung__icon, .js .kreise a[data-anim] { transform: none; opacity: 1; animation: none !important; }
  .js .leistung--animiert.ist-sichtbar .leistung__icon, .js .leistung--animiert.ist-sichtbar .leistung__icon::after, .js .kreise a.ist-sichtbar, 
}
@media (max-width: 860px) {
  .chef-karte img { width: 200px; height: 200px; }
  .chef-karte h2 { font-size: 26px; }
  .team figcaption b { font-size: 18px; }
}
