/* ==========================================================
   Institut für Kinderneurologie – Dr. Jan O. Schönfeldt
   Statisches Stylesheet (Masterlayout: FireShot-PDFs 350–354)
   ========================================================== */

:root{
  --logo-green:#1b9ba5;   /* Grün der Logo-Illustration */
  --teal:#0099a1;          /* Hausfarbe (aus Footer gemessen) */
  --teal-dark:#007d84;
  --teal-soft:rgba(0,153,161,.32);
  --text:#444;
  --nav:#414141;
  --line:#8c8c8c;
  --red:#e00000;
  --container:890px;       /* Inhaltsbreite laut Master */
  --fs-body:15px;          /* Fließtext Desktop */
  --lh-body:1.6;
  --footer-link:#ffffff;   /* Master: #10c9c6 – zu wenig Kontrast, siehe Hinweise */
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:#fff;color:var(--text);
  font-family:Arial,"Helvetica Neue",Helvetica,"Liberation Sans",sans-serif;
  font-size:var(--fs-body);line-height:var(--lh-body);
}
img{max-width:100%;height:auto;display:block}
html,body{overflow-x:clip}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}
p{margin:0 0 .85em}
.container{max-width:calc(var(--container) + 40px);margin:0 auto;padding:0 20px}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:var(--teal);color:#fff;padding:8px 14px;z-index:99}
.skip:focus{left:10px}

/* ---------- Kopfbereich ---------- */
.site-header{border-bottom:1px solid var(--line);background:#fff}
.brand{display:flex;align-items:flex-start;padding-top:20px;height:194px;position:relative}
.brand a{display:block}
.brand .logo-schrift{width:420px}
.brand .logo-kinder{width:265px;position:absolute;left:515px;top:17px}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap}
.main-nav a{display:block;color:var(--nav);font-size:16.5px;padding:0 11.5px 16px;line-height:1.2}
.main-nav li:first-child a{padding-left:12px}
.main-nav a:hover,.main-nav a[aria-current="page"]{color:var(--teal);text-decoration:none}
.nav-toggle{display:none}

/* Leerraum zwischen Navigation und Headerbild (wie im Master) */
.pre-hero{height:90px}

/* ---------- Startseite: Hinweis ---------- */
.notice{text-align:center;color:var(--red);padding:42px 0 36px;border-bottom:1px solid #eee}
.notice p{margin:0 0 1.15em}
.notice a{color:var(--red);text-decoration:underline}

/* ---------- Headerbild mit Zoom links → rechts ---------- */
.hero{position:relative;overflow:hidden;aspect-ratio:3.5/1;min-height:240px;background:#e9eef0}
.hero.hero-start{aspect-ratio:2.73/1}
.hero .slide{position:absolute;inset:0;opacity:0;transition:opacity 1.6s ease}
.hero .slide.is-active{opacity:1}
.hero .slide img{
  width:100%;height:100%;object-fit:cover;
  transform-origin:50% 50%;
  will-change:transform;
}
.hero .slide.is-active img{animation:kenburns 14s ease-out forwards}
@keyframes kenburns{
  from{transform:scale(1.04) translateX(-2.2%)}
  to  {transform:scale(1.12) translateX(2.2%)}
}
/* Schlagwort: weiße Outline, Grundlinie exakt auf der Bildunterkante.
   Unterlängen (z. B. "p") ragen in den weißen Bereich und werden dort schwarz. */
.hero-wrap{position:relative}
.hero-title{
  --base:.8465em;                     /* Abstand Oberkante → Grundlinie bei line-height 1 (Arial) */
  position:absolute;left:0;right:0;top:100%;z-index:3;
  margin:0;height:1em;line-height:1;transform:translateY(calc(-1 * var(--base)));
  font-size:min(69.33px,5.2vw);       /* doppelt: 2 × (28 px + 5 pt); auf schmalen Screens einzeilig */
  font-weight:700;letter-spacing:.5px;text-align:center;pointer-events:none;
}
.hero-title .ht{
  position:absolute;inset:0;white-space:nowrap;color:transparent;
  -webkit-text-stroke:1.4px #fff;
}
.hero-title .ht-img{clip-path:inset(0 0 calc(1em - var(--base)) 0);filter:drop-shadow(0 1px 4px rgba(0,0,0,.6)) drop-shadow(0 0 1px rgba(0,0,0,.35))}
.hero-title .ht i{font-style:normal}
.hero-title .ht-below{clip-path:inset(var(--base) 0 -.35em 0);-webkit-text-stroke-color:transparent}
.hero-title .ht-below i.d{-webkit-text-stroke-color:var(--logo-green)}
@supports not (-webkit-text-stroke:1px #000){
  .hero-title .ht-img{color:#fff}.hero-title .ht-below i.d{color:var(--logo-green)}
}
.hero-title.upper{text-transform:uppercase}

/* ---------- Inhalt ---------- */
main{display:block}
.section{padding:33px 0 40px}
.section + .section{padding-top:0}
h1,h2,h3,h4{color:var(--teal);margin:0}
.lead-title{font-size:28px;font-weight:400;text-align:center;line-height:1.2;letter-spacing:.4px;margin:44px 0 14px}
.cols-2{display:grid;grid-template-columns:1fr 1fr;column-gap:53px}
.col-break-d{display:none}
.h-light{font-size:26px;font-weight:400;letter-spacing:.3px;line-height:1.25;margin:0 0 14px}
.h-bold{font-size:28px;font-weight:700;letter-spacing:.6px;line-height:1.15;margin:0 0 14px}
.h-sub{font-size:14px;font-weight:700;margin:12px 0 10px}
.topic{margin-bottom:58px}
.topic:last-child{margin-bottom:0}
strong.teal,.teal{color:var(--teal)}

/* Listen: Haken-Piktogramme im Kreis */
.check-list{list-style:none;margin:0 0 1em;padding:0;overflow-x:clip}  /* einfliegender Text erzeugt keinen Querscroll */
.check-list li{position:relative;padding-left:34px;margin:0 0 .45em}
.check-list li::before{ /* der vorhandene Kreis */
  content:"";position:absolute;left:0;top:.18em;width:21px;height:21px;border-radius:50%;
  border:1.5px solid var(--teal);background:#fff;
}
.check-list .chk{
  position:absolute;left:0;top:.18em;width:21px;height:21px;display:flex;align-items:center;justify-content:center;
  color:var(--teal);
}
.check-list .chk svg{width:12px;height:12px}
.check-list .txt{display:block}

/* Animation (nur wenn JS aktiv & keine reduzierte Bewegung) */
.js .anim-ready .chk{opacity:0;transform:translateY(-9px) scale(1.2)}
.js .anim-ready .txt{opacity:0;transform:translateX(28px)}
.js .anim-ready.is-in .chk{opacity:1;transform:none;transition:opacity .55s ease,transform .55s cubic-bezier(.2,.8,.25,1)}
.js .anim-ready.is-in .txt{opacity:1;transform:none;transition:opacity .55s ease .08s,transform .6s cubic-bezier(.2,.8,.25,1) .08s}
@media (prefers-reduced-motion:reduce){
  .js .anim-ready .chk,.js .anim-ready .txt{opacity:1;transform:none}
  .hero .slide.is-active img{animation:none}
}

/* ---------- Pinselstrich & Weg (Idee 1) ---------- */
.ip-head{position:relative;display:flex;align-items:center;gap:16px;margin:0 0 18px;padding:6px 0}
.ip-head .brush{position:absolute;left:48px;bottom:4px;width:min(330px,80%);height:30px;color:var(--logo-green);opacity:.17;z-index:0;pointer-events:none}
.ip-head.no-icon .brush{left:-10px;bottom:2px;width:min(280px,90%);height:22px}
.ip-head > h2,.ip-head > h3{position:relative;z-index:1;margin:0}
.ip-icon{position:relative;z-index:1;flex:none;width:52px;height:52px;border-radius:50%;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 14px rgba(0,0,0,.18)}
.ip-icon svg{width:26px;height:26px}
.ip-head:has(.h-sub) .ip-icon{width:42px;height:42px}
.ip-head:has(.h-sub) .ip-icon svg{width:21px;height:21px}
.ip-head .h-sub{font-size:16px}
.ip-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:44px;align-items:start}
.ip-grid p:last-child{margin-bottom:0}
.path{list-style:none;margin:0;padding:0 0 0 2px;position:relative}
.path li:not(:last-child)::after{content:"";position:absolute;left:17px;top:40px;bottom:4px;border-left:2px dashed var(--teal-soft)}
.path li{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);column-gap:14px;padding:0 0 22px}
.path li:last-child{padding-bottom:0}
.path .dot{grid-row:span 2;width:36px;height:36px;border-radius:50%;background:#fff;border:2px solid var(--teal);color:var(--teal);font-weight:700;display:flex;align-items:center;justify-content:center;position:relative;z-index:1}
.path li:last-child .dot{background:var(--teal);color:#fff}
.path b{color:var(--text);line-height:1.3;padding-top:7px}
.path small{color:#888;font-size:12.5px;line-height:1.4}
.path-text{margin:4px 0 24px}
.path-text b{color:var(--teal)}
.path-text .desc{display:block}
.path-text li:last-child .dot{background:#fff;color:var(--teal)}  /* Alternativen, kein Endpunkt */
.tile-head{position:relative;margin:0 0 10px}
.tile-head .brush{position:absolute;left:-6px;bottom:-6px;width:min(240px,90%);height:26px;color:var(--logo-green);opacity:.15;pointer-events:none}
.tile-head h2{position:relative;margin:0}
.h-legal{font-size:22px;font-weight:700;line-height:1.25}
.h-legal3{font-size:16px;font-weight:700;line-height:1.3}
.legal .ip-head{margin-top:38px}
.legal .ip-head.no-icon{margin-top:22px;margin-bottom:8px}
.legal .ip-head:first-child{margin-top:0}

/* ---------- Praxis: Galerie ---------- */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:84px 0 18px}
.gallery a{display:block;overflow:hidden;aspect-ratio:1/1;background:#f2f2f2}
.gallery img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease,opacity .3s}
.gallery a:hover img{transform:scale(1.05);opacity:.92}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.86);display:none;align-items:center;justify-content:center;z-index:100;padding:30px}
.lightbox.open{display:flex}
.lightbox img{max-width:min(92vw,1000px);max-height:86vh;width:auto;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.lightbox button{position:absolute;background:none;border:0;color:#fff;font-size:42px;line-height:1;cursor:pointer;padding:10px 16px}
.lightbox .lb-close{top:10px;right:14px}
.lightbox .lb-prev{left:6px;top:50%;transform:translateY(-50%)}
.lightbox .lb-next{right:6px;top:50%;transform:translateY(-50%)}

/* ---------- Team ---------- */
.member{display:grid;grid-template-columns:263px 1fr;column-gap:52px;margin:44px 0 95px}
.member:last-of-type{margin-bottom:60px}
.member .photo{border:1px solid #cfcfcf}
.member .photo img{width:100%;height:100%;object-fit:cover}
.photo.r12{aspect-ratio:1/2}
.photo.r23{aspect-ratio:2/3}
.photo.r1{aspect-ratio:197/202}
.member .h-bold{margin-top:-2px}
.split{display:grid;grid-template-columns:420px 1fr;column-gap:53px;align-items:center;margin:0 0 70px}
.split .text{max-width:265px}
.split.jobs{align-items:start}
.split.jobs .text{max-width:none;padding-top:70px}

/* ---------- Termine ---------- */
.termin-top{display:grid;grid-template-columns:1fr 420px;column-gap:53px;margin:44px 0 60px}
.termin-top .media{border:1px solid #cfcfcf;aspect-ratio:420/277;overflow:hidden}
.termin-top .media img{width:100%;height:100%;object-fit:cover}
.btn{display:inline-flex;align-items:center;gap:6px;background:var(--teal);color:#fff;border:0;border-radius:2px;font:inherit;cursor:pointer}
.btn:hover{background:var(--teal-dark);text-decoration:none}
.btn-small{font-size:12px;padding:6px 10px}
.btn-big{font-size:14px;padding:13px 40px}
.center{text-align:center}
.block{margin-bottom:68px}
.block:last-child{margin-bottom:10px}

/* ---------- Kontakt ---------- */
.kontakt{display:grid;grid-template-columns:1fr 420px;column-gap:53px;margin:44px 0 30px}
.tile{
  position:relative;border:1px solid var(--teal-soft);border-radius:10px;
  padding:42px 24px 20px;margin:0 0 46px;background:#fff;
}
.tile .pict{
  position:absolute;left:22px;top:-19px;  /* 1/3 der Piktogrammhöhe über dem Rahmen */
  width:57px;height:57px;border-radius:50%;background:var(--teal);color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 14px rgba(0,0,0,.20),0 2px 4px rgba(0,0,0,.12);
}
.tile .pict svg{width:27px;height:27px}
.tile h2{font-size:14px;font-weight:700;margin:0 0 10px}
.tile p:last-child{margin-bottom:0}
.hours{display:grid;grid-template-columns:150px 1fr;row-gap:6px;margin:0}
.hours dt{margin:0}.hours dd{margin:0}
.form-intro{color:var(--teal);font-size:14px;line-height:1.25;margin:0 0 14px}
.form label{display:block;font-size:13px;margin:0 0 4px}
.form label .req{color:var(--teal)}
.form input[type=text],.form input[type=email],.form textarea{
  width:100%;border:1px solid #dadada;border-radius:2px;padding:8px 9px;font:inherit;font-size:14px;color:var(--text);margin-bottom:20px;background:#fff
}
.form input:focus,.form textarea:focus{outline:2px solid var(--teal-soft);border-color:var(--teal)}
.form textarea{height:240px;resize:vertical}
.form .consent{display:flex;gap:8px;font-size:13px;margin:0 0 18px;line-height:1.4}
.form .consent input{margin-top:3px}
.form .hp{position:absolute;left:-5000px}
.form-msg{margin:12px 0 0;font-size:14px}
.form-msg.ok{color:var(--teal)}.form-msg.err{color:var(--red)}

/* Karte */
.map-wrap{position:relative;height:430px;margin:40px 0 0;background:#eef2f3;overflow:hidden;border-top:1px solid #e3e3e3}
.map-consent{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;gap:12px;
  background:linear-gradient(135deg,#f3f7f8 0%,#e3eef0 100%)}
.map-consent p{max-width:520px;font-size:13px;margin:0}
.map{position:absolute;inset:0;cursor:grab;touch-action:none}
.map.dragging{cursor:grabbing}
.map .tiles img{position:absolute;width:256px;height:256px;max-width:none;user-select:none;-webkit-user-drag:none}
.map .pin{position:absolute;width:38px;height:50px;margin:-50px 0 0 -19px;filter:drop-shadow(0 3px 4px rgba(0,0,0,.35));pointer-events:none}
.map .label{position:absolute;transform:translate(-50%,-100%);margin-top:-58px;background:#fff;border-radius:6px;padding:6px 10px;font-size:12.5px;line-height:1.35;white-space:nowrap;box-shadow:0 3px 10px rgba(0,0,0,.18);pointer-events:none;color:var(--text)}
.map .label b{color:var(--teal)}
.map-ui{position:absolute;right:12px;top:12px;display:flex;flex-direction:column;gap:4px;z-index:2}
.map-ui button{width:34px;height:34px;border:1px solid #ccc;background:#fff;font-size:20px;line-height:1;cursor:pointer;border-radius:4px;color:#333}
.map-attr{position:absolute;right:0;bottom:0;background:rgba(255,255,255,.85);font-size:11px;padding:2px 6px;z-index:2}
.map-links{position:absolute;left:12px;bottom:10px;z-index:2;display:flex;gap:8px}
.map-links a{background:#fff;border:1px solid #ccc;border-radius:4px;padding:5px 10px;font-size:12.5px}

/* ---------- Rechtstexte ---------- */
.legal h2{font-size:20px;font-weight:700;margin:34px 0 10px}
.legal h3{font-size:16px;font-weight:700;margin:24px 0 8px}
.legal{padding-bottom:30px}

/* ---------- Footer ---------- */
.site-footer{background:var(--teal);color:#fff;font-size:12.5px;line-height:1.55;padding:55px 0 62px;margin-top:0}
.site-footer .cols{display:grid;grid-template-columns:315px 315px 1fr}
.site-footer b{font-weight:700}
.site-footer a{color:var(--footer-link)}
.site-footer a:hover{text-decoration:underline}
.site-footer ul{list-style:none;margin:0;padding:0}

.to-top{position:fixed;right:46px;bottom:62px;width:38px;height:38px;background:rgba(255,255,255,.72);border:0;color:var(--teal-dark);
  font-size:16px;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .3s;z-index:40;border-radius:2px}
.to-top.show{opacity:1;pointer-events:auto}
.doctolib-float{position:fixed;right:0;bottom:0;background:#107aca;color:#fff;font-size:14px;padding:9px 22px;z-index:41;border-top-left-radius:4px}
.doctolib-float:hover{text-decoration:none;background:#0d68ad}
.doctolib-float i{font-style:italic;font-family:"Brush Script MT","Segoe Script",cursive;font-size:15px}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width:960px){
  .brand .logo-kinder{left:auto;right:0;width:220px}
}
@media (max-width:800px){
  :root{--fs-body:17px;--lh-body:1.55}
  .brand{height:auto;padding:18px 0 14px;justify-content:space-between;align-items:center}
  .brand .logo-schrift{width:min(62vw,300px)}
  .brand .logo-kinder{position:static;width:min(26vw,130px)}
  .nav-toggle{display:flex;align-items:center;gap:8px;background:none;border:0;font:inherit;font-size:16px;color:var(--nav);padding:6px 0 14px;cursor:pointer}
  .nav-toggle .bars{width:22px;height:2px;background:currentColor;position:relative;display:inline-block}
  .nav-toggle .bars::before,.nav-toggle .bars::after{content:"";position:absolute;left:0;width:22px;height:2px;background:currentColor}
  .nav-toggle .bars::before{top:-7px}.nav-toggle .bars::after{top:7px}
  .main-nav ul{display:none;flex-direction:column;padding-bottom:10px}
  .main-nav.open ul{display:flex}
  .main-nav a,.main-nav li:first-child a{padding:10px 0;border-top:1px solid #eee;font-size:17px}
  .pre-hero{height:24px}
  .hero,.hero.hero-start{aspect-ratio:auto;height:240px}
  .lead-title{font-size:24px;margin-top:30px}
  .col-break-d{display:inline}.col-cont{display:none}
  .cols-2,.termin-top,.kontakt,.split,.member{grid-template-columns:1fr}
  .member{row-gap:22px;margin-bottom:60px}
  .member .photo{max-width:263px}
  .photo.r12{aspect-ratio:2/3}
  .split .text,.split.jobs .text{max-width:none;padding-top:20px}
  .termin-top .media{margin-top:26px}
  .h-bold{font-size:24px}.h-light{font-size:23px}
  .ip-grid{grid-template-columns:1fr;gap:26px}
  .ip-icon{width:46px;height:46px}.ip-icon svg{width:23px;height:23px}
  .h-legal{font-size:20px}.h-legal3,.ip-head .h-sub{font-size:17px}
  .path small{font-size:14px}
  .gallery{grid-template-columns:repeat(2,1fr);gap:10px;margin-top:50px}
  .h-sub,.tile h2{font-size:16px}
  .form label{font-size:15px}
  .form input[type=text],.form input[type=email],.form textarea{font-size:16px}
  .form-intro{font-size:16px}
  .kontakt .form-col{margin-top:10px}
  .hours{grid-template-columns:120px 1fr}
  .site-footer{font-size:15px}
  .site-footer .cols{grid-template-columns:1fr;row-gap:22px}
  .to-top{right:14px;bottom:52px}
  .doctolib-float{left:0;right:0;text-align:center;border-radius:0}
  .site-footer{padding-bottom:80px}
  .map-wrap{height:340px}
}
