/* Hausarztpraxis Dr. Sommer & Kolleginnen – Demo (fiktiv) */
:root{
  --bg:#fbfaf6;
  --paper:#ffffff;
  --teal:#2f7a6d;
  --teal-deep:#215a50;
  --teal-soft:#e4efeb;
  --coral:#e07a5f;
  --coral-soft:#fbe7df;
  --ink:#1e2b2f;
  --muted:#4a5c60;
  --line:#e2dfd4;
  --r:18px;
  --shadow:0 1px 2px rgba(30,43,47,.06),0 10px 30px -18px rgba(30,43,47,.28);
  --f-display:"Literata",Georgia,"Times New Roman",serif;
  --f-text:"Atkinson Hyperlegible","Segoe UI",Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{font-size:100%;-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:96px}
html.gross{font-size:125%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-text);font-size:1.0625rem;line-height:1.6;min-height:100vh;overflow-x:hidden}
img,svg{max-width:100%;display:block}
a{color:var(--teal-deep);text-underline-offset:3px}
a:hover{color:var(--ink)}
h1,h2,h3,h4{font-family:var(--f-display);font-weight:600;line-height:1.2;color:var(--ink);margin:0 0 .5em;letter-spacing:-.005em}
h1{font-size:clamp(2rem,4.6vw,3.25rem)}
h2{font-size:clamp(1.6rem,3vw,2.25rem)}
h3{font-size:1.25rem}
p{margin:0 0 1em}
:focus-visible{outline:3px solid var(--coral);outline-offset:3px;border-radius:6px}
.skip{position:absolute;left:12px;top:-60px;background:var(--ink);color:#fff;padding:10px 14px;border-radius:8px;z-index:100}
.skip:focus{top:12px}
.wrap{width:100%;max-width:1120px;margin:0 auto;padding:0 16px}
.sec{padding:72px 0}
.sec-tight{padding:40px 0}
.sec-soft{background:var(--teal-soft)}
.eyebrow{font-size:.85rem;letter-spacing:.12em;text-transform:uppercase;color:var(--teal-deep);font-weight:700;margin:0 0 10px}
.lead{font-size:1.2rem;color:var(--muted);max-width:60ch}
.muted{color:var(--muted)}
.small{font-size:.9rem}
.grid{display:grid;gap:20px}
.g2{grid-template-columns:1fr}
.g3{grid-template-columns:1fr}
.g4{grid-template-columns:1fr}
@media (min-width:700px){.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1000px){.g4{grid-template-columns:repeat(4,1fr)}}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:24px;box-shadow:var(--shadow)}
.card h3{margin-bottom:.4em}
.card .ico{width:44px;height:44px;border-radius:14px;background:var(--teal-soft);display:grid;place-items:center;margin-bottom:14px}
.card .ico svg{width:24px;height:24px;stroke:var(--teal-deep);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hint{background:var(--coral-soft);border-left:5px solid var(--coral);border-radius:12px;padding:14px 18px;color:var(--ink)}
.hint strong{display:block;margin-bottom:2px}
.notice{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 22px;border-radius:999px;border:2px solid var(--teal);background:var(--teal);color:#fff;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;transition:background .2s,color .2s,transform .2s}
.btn:hover{background:var(--teal-deep);border-color:var(--teal-deep);color:#fff;transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--teal-deep);border-color:var(--teal-deep)}
.btn-ghost:hover{background:var(--teal-soft);color:var(--teal-deep)}
.btn-sm{min-height:40px;padding:8px 16px;font-size:.95rem}
.btn-coral{background:#fff;color:var(--ink);border-color:var(--coral)}
.btn-coral:hover{background:var(--coral-soft);color:var(--ink)}
.btnrow{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.tag{display:inline-block;background:var(--teal-soft);color:var(--teal-deep);border-radius:999px;padding:4px 12px;font-size:.85rem;font-weight:700}

/* Notbar */
.notbar{background:var(--ink);color:#f4f6f5;font-size:.92rem}
.notbar .wrap{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;justify-content:space-between;padding-top:8px;padding-bottom:8px}
.notbar a{color:#fff;font-weight:700}
.notbar .sep{opacity:.5}

/* Header */
.site-header{position:sticky;top:0;z-index:60;background:rgba(251,250,246,.96);border-bottom:1px solid transparent;transition:border-color .3s,box-shadow .3s}
.site-header.solid{border-color:var(--line);box-shadow:0 8px 24px -20px rgba(30,43,47,.5)}
.hdr{display:flex;align-items:center;gap:16px;min-height:76px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);margin-right:auto;min-width:0;white-space:nowrap;flex:none}
.nav,.hdr-tools{flex:none}
.brand svg{width:44px;height:44px;flex:none}
.brand .name{font-family:var(--f-display);font-weight:600;font-size:1.08rem;line-height:1.15;white-space:nowrap}
.brand .sub{display:block;font-family:var(--f-text);font-size:.82rem;color:var(--muted);font-weight:400;white-space:nowrap}
@media (max-width:1499px){.brand .sub{display:none}}
.nav{display:none;gap:2px;align-items:center}
.nav a{padding:9px 9px;border-radius:999px;color:var(--ink);text-decoration:none;font-weight:700;font-size:.93rem;white-space:nowrap}
.nav a:hover{background:var(--teal-soft)}
.nav a[aria-current="page"]{background:var(--teal);color:#fff}
.hdr-tools{display:flex;gap:8px;align-items:center}
.sizer{display:inline-flex;border:2px solid var(--line);border-radius:999px;overflow:hidden;background:#fff}
.sizer button{border:0;background:transparent;font:inherit;font-weight:700;min-height:40px;min-width:44px;padding:0 10px;cursor:pointer;color:var(--ink)}
.sizer button[aria-pressed="true"]{background:var(--ink);color:#fff}
.sizer button:nth-child(2){font-size:1.15rem}
.login{display:none}
.burger{width:48px;height:48px;border-radius:14px;border:2px solid var(--line);background:#fff;cursor:pointer;display:grid;place-items:center}
.burger span{display:block;width:20px;height:2px;background:var(--ink);margin:3px 0;border-radius:2px;transition:transform .2s,opacity .2s}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(5px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-5px) rotate(-45deg)}
.mmenu{display:none;border-top:1px solid var(--line);background:var(--bg);padding:8px 16px 20px}
.mmenu.open{display:block}
.mmenu a{display:block;padding:14px 4px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none;font-weight:700;font-size:1.05rem}
.mmenu a[aria-current="page"]{color:var(--teal-deep)}
@media (min-width:1100px) and (max-width:1299px){.nav a{padding:8px 7px;font-size:.9rem}.hdr{gap:10px}.brand .name{font-size:1rem}}
@media (min-width:1100px){
  .nav{display:flex}
  .burger{display:none}
  .login{display:inline-flex}
  .mmenu{display:none !important}
}

/* Breadcrumbs & page hero */
.crumbs{padding:18px 0 0;font-size:.92rem}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;color:var(--muted)}
.crumbs li+li::before{content:"›";margin-right:6px;color:var(--muted)}
.crumbs a{color:var(--muted)}
.page-hero{padding:28px 0 8px}
.page-hero h1{margin-bottom:.35em}

/* EKG divider (zeichnet sich beim Scrollen) */
.ekg{display:block;width:100%;height:56px;margin:8px 0}
.ekg path{fill:none;stroke:var(--teal);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--draw,0));pathLength:1}
.ekg .dot{fill:var(--coral);opacity:var(--draw,0)}
.ekg-wrap{padding:0 16px}
@media (prefers-reduced-motion:reduce){.ekg path{stroke-dashoffset:0}}

/* Reveal */
html.js-reveal .rv{opacity:0;transform:translateY(14px);transition:opacity .7s ease,transform .7s ease}
html.js-reveal .rv.in{opacity:1;transform:none}

/* Lists, tables, steps */
.check{list-style:none;padding:0;margin:0}
.check li{position:relative;padding-left:32px;margin-bottom:10px}
.check li::before{content:"";position:absolute;left:0;top:.45em;width:18px;height:18px;border-radius:50%;background:var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23215a50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat}
table.hours{width:100%;border-collapse:collapse;background:#fff;border-radius:var(--r);overflow:hidden;border:1px solid var(--line)}
table.hours th,table.hours td{text-align:left;padding:14px 18px;border-bottom:1px solid var(--line);vertical-align:top}
table.hours th{background:var(--teal-soft);font-size:.95rem;color:var(--ink)}
table.hours tr:last-child td{border-bottom:0}
.dl{display:grid;gap:14px;margin:0}
.dl div{display:grid;gap:2px}
.dl dt{font-weight:700}
.dl dd{margin:0;color:var(--muted)}
.person{display:flex;gap:16px;align-items:flex-start}
.avatar{flex:none;width:72px;height:72px;border-radius:50%;background:var(--teal-soft);display:grid;place-items:center;font-family:var(--f-display);font-weight:600;font-size:1.4rem;color:var(--teal-deep)}
.avatar.alt{background:var(--coral-soft);color:#7a3b28}
.avatar.gray{background:#ece9df;color:var(--ink)}

/* Stage (Startseite Scroll-Animation) */
.install{position:relative;height:520vh;background:#f2eee4}
.install-stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;background:linear-gradient(180deg,#fbfaf6 0%,#efebe0 100%)}
.install-canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.install-fallback{position:absolute;inset:0;display:none;place-items:center;padding:20px}
.install-fallback svg{width:min(760px,100%);height:auto;stroke:var(--teal);fill:none;stroke-width:2.2}
.no-gl .install-fallback{display:grid}
.install-head{position:absolute;top:0;left:0;right:0;z-index:2;padding:100px 16px 36px;pointer-events:none;background:linear-gradient(180deg,rgba(251,250,246,.96) 0%,rgba(251,250,246,.8) 60%,rgba(251,250,246,0) 100%)}
@media (min-width:700px){.install-head{padding:100px 40px 36px}}
.install-head h2{font-size:clamp(1.7rem,3.4vw,2.6rem);max-width:20ch;margin:0}
.install-head .eyebrow{margin-bottom:8px}
.install-card{position:absolute;z-index:2;left:16px;right:16px;bottom:24px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-left:5px solid var(--teal);border-radius:var(--r);padding:18px 20px;box-shadow:0 18px 40px -22px rgba(30,43,47,.5)}
.install-card .mono{color:var(--teal-deep);display:block;margin-bottom:4px;font-weight:700;font-size:.85rem;letter-spacing:.06em}
.install-card h3{font-size:1.45rem;margin-bottom:6px}
.install-card p{font-size:1rem;color:var(--muted);margin:0 0 8px}
.install-card .detail{display:inline-block;background:var(--teal-soft);color:var(--teal-deep);border-radius:999px;font-size:.85rem;padding:4px 12px;font-weight:700}
.seg{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:14px}
.seg i{height:5px;background:#d9d5c8;border-radius:3px;transition:background .3s}
.seg i.on{background:var(--teal)}
@media (min-width:1000px){
  .install-card{left:auto;right:48px;top:50%;bottom:auto;transform:translateY(-50%);width:min(380px,calc(100% - 96px));padding:24px 26px}
}
@media (max-width:800px){.install{height:420vh}}
.clean .install-head,.clean .install-card,.clean .seg,.clean .site-header,.clean .mbar,.clean .notbar{display:none !important}
.clean .install-stage{position:fixed;inset:0}
.install-static{display:none}
/* Ohne WebGL oder bei reduzierter Bewegung: statische Stationen untereinander */
.no-gl .install{height:auto}
.no-gl .install-stage{position:relative;height:auto;min-height:0;padding-bottom:12px}
.no-gl .install-canvas,.no-gl .install-card,.no-gl .seg{display:none}
.no-gl .install-head{position:relative;top:auto;padding:40px 16px 0}
.no-gl .install-static{display:block;padding:0 16px}
.no-gl .install-static .card{margin-top:16px}
.no-gl .install-fallback{position:relative;min-height:220px}

/* Footer */
.site-footer{background:var(--ink);color:#e9eeec;padding:56px 0 110px;margin-top:0}
.site-footer a{color:#fff}
.site-footer h3{color:#fff;font-size:1.05rem;font-family:var(--f-text);font-weight:700;letter-spacing:.02em;margin-bottom:12px}
.foot{display:grid;gap:28px}
@media (min-width:800px){.foot{grid-template-columns:1.4fr 1fr 1fr}}
.foot ul{list-style:none;padding:0;margin:0}
.foot li{margin-bottom:8px}
.foot .fine{font-size:.9rem;color:#c9d4d1;border-top:1px solid #3b4a4f;margin-top:32px;padding-top:18px}
.demo-badge{display:inline-block;background:var(--coral);color:#1e1a18;font-weight:700;border-radius:999px;padding:4px 12px;font-size:.85rem}

/* Mobile bottom bar */
.mbar{display:none}
@media (max-width:999px){
  body{padding-bottom:84px}
  .mbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:70;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:var(--bg);border-top:1px solid var(--line)}
  .mbar a{min-height:52px;display:flex;align-items:center;justify-content:center;border-radius:14px;text-decoration:none;font-weight:700;font-size:1.02rem;text-align:center;padding:6px}
  .mbar .m-call{background:var(--teal);color:#fff}
  .mbar .m-book{border:2px solid var(--teal);color:var(--teal-deep);background:#fff}
}

/* Forms */
.form{display:grid;gap:16px}
.field{display:grid;gap:6px}
.field label,.field .lbl{font-weight:700}
.field input,.field select,.field textarea{font:inherit;font-size:1rem;padding:12px 14px;border:2px solid #cfcabb;border-radius:12px;background:#fff;color:var(--ink);width:100%}
.field textarea{min-height:130px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--teal);outline:3px solid var(--coral);outline-offset:0}
.field .help{font-size:.9rem;color:var(--muted)}
.check-row{display:flex;gap:12px;align-items:flex-start}
.check-row input{width:22px;height:22px;margin-top:4px;flex:none;accent-color:var(--teal)}
.thanks{display:none;background:var(--teal-soft);border:2px solid var(--teal);border-radius:var(--r);padding:18px 20px;margin-top:8px}
.thanks.show{display:block}
.grid-2col-form{display:grid;gap:24px}
@media (min-width:900px){.grid-2col-form{grid-template-columns:1.1fr .9fr;align-items:start}}
.mapbox{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.mapbox svg{width:100%;height:auto}

/* Accordion (FAQ) */
details.faq{border-bottom:1px solid var(--line);padding:16px 0}
details.faq summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:1.05rem;min-height:44px}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::after{content:"+";font-size:1.5rem;line-height:1;color:var(--teal-deep)}
details.faq[open] summary::after{content:"–"}
details.faq p{margin:10px 0 0;color:var(--muted)}

/* Pflicht-Kasten */
.legal h2{font-size:1.4rem;margin-top:1.6em}
.legal h3{font-size:1.1rem;margin-top:1.2em}
.legal dl{margin:0}
.legal dt{font-weight:700;margin-top:10px}
.legal dd{margin:2px 0 0}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none !important;animation:none !important}
  html.js-reveal .rv{opacity:1;transform:none}
}
