/* Dr. Jeannette Kraemer – static rebuild of the YOOtheme "Fuse" look (no UIkit).
   Breakpoints as in the original: s = 640px, m = 960px, l = 1200px. */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/open-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/open-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --text: #6f6f6f;
  --emph: #2d2e33;
  --muted-head: #666666;
  --nav: #666666;
  --nav-active: #bd739e;
  --primary: #b76695;
  --footer-link: #cc6699;
  --teal: #b0cccd;
  --border: #e5e5e7;
  --icon: #b4b5ba;
  --bg: #fefefe;
  --white: #ffffff;
  --doctolib: #107aca;
  --font: "Open Sans", sans-serif;
  --font-head: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 20px;
  --section: 40px;
  --pad: 15px;
}
@media (min-width: 640px) { :root { --pad: 20px; } }
@media (min-width: 960px) { :root { --section: 70px; --pad: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font); font-size: 16px; line-height: 1.625; color: var(--text); background: var(--bg);
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth; overflow-y: scroll; }
body { margin: 0; overflow-x: clip; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
picture { display: contents; }
a { color: var(--emph); text-decoration: none; }
a:hover { color: var(--emph); text-decoration: underline; }
p, ul, ol { margin: 0 0 20px; }
* + p, * + ul, * + ol { margin-top: 20px; }
p + p { margin-top: 20px; }
:where(p, ul, ol):last-child { margin-bottom: 0; }
em, i { font-style: italic; }
strong { font-weight: bolder; }

h1, h2, h3, h4, h5, h6, .h1, .h3 { margin: 0 0 20px; font-family: var(--font-head); font-weight: 400; color: var(--emph); text-transform: none; }
* + :is(h1, h2, h3, h4, h5, h6) { margin-top: 40px; }
h1, .h1 { font-size: 36.54px; line-height: 1.2; }
h2 { font-size: 32.04px; line-height: 1.3; }
h3, .h3 { font-size: 28px; line-height: 1.4; }
@media (min-width: 960px) { h1, .h1 { font-size: 42px; } h2 { font-size: 36px; } }
h2.h1 { font-size: 36.54px; line-height: 1.2; }
@media (min-width: 960px) { h2.h1 { font-size: 42px; } }
.muted { color: var(--muted-head); }
.accent { color: var(--primary); }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 20000; background: #fff; padding: 8px 12px; }

/* ---------- layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); box-sizing: content-box; }
.section { padding: var(--section) 0; background: var(--bg); }
.bg-white { background: var(--white); }
.spacer { height: calc(var(--section) * 2); background: var(--bg); }
.grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
.grid + .grid { margin-top: 20px; }
.grid-1-2 > div:empty { display: none; }
@media (min-width: 960px) { .grid-1-2 > div:empty { display: block; } }
.mt-section { margin-top: 20px; }
@media (min-width: 960px) {
  /* UIkit column math: width x (100% + gutter) - gutter */
  .grid-1-3 { grid-template-columns: calc((100% + var(--gutter)) / 3 - var(--gutter)) 1fr; }
  .grid-1-3.reasons, .grid-1-3.contact { grid-template-columns: repeat(3, 1fr); }
  .grid-1-2 { grid-template-columns: 1fr 1fr; }
  .grid-3-4 { grid-template-columns: calc((100% + var(--gutter)) * .75 - var(--gutter)) 1fr; }
}
.hidden-desktop { display: block; }
.visible-desktop { display: none; }
@media (min-width: 960px) { .hidden-desktop { display: none; } .visible-desktop { display: block; } }

/* ---------- header */
.site-header { position: relative; z-index: 980; background: var(--white); }
@media (min-width: 960px) { .site-header { position: sticky; top: 0; } }
.header-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 80px; max-width: 1400px; margin: 0 auto; padding: 0 15px; }
@media (min-width: 960px) { .header-bar { padding: 0 var(--pad); } }
.logo { display: flex; align-items: center; justify-content: center; min-height: 80px; grid-column: 2; }
.logo img { width: 160px; height: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.nav > ul > li { position: relative; }
.nav > ul > li > a { display: flex; align-items: center; min-height: 80px; font-size: 16px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--nav); transition: color .1s ease-in-out; }
.nav > ul > li > a:hover, .nav > ul > li > a.active, .nav > ul > li:hover > a { color: var(--nav-active); text-decoration: none; }
.nav-left { grid-column: 1; justify-self: end; margin-right: 20px; }
.nav-right { grid-column: 3; justify-self: start; margin-left: 20px; }
.nav .sub { position: absolute; top: 100%; left: -25px; display: none; flex-direction: column; gap: 0; width: 220px; padding: 25px; background: var(--white); box-shadow: 0 5px 12px rgba(0, 0, 0, .15); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }
.nav .sub a { display: block; padding: 5px 0; color: var(--text); font-size: 16px; }
.nav .sub a:hover { color: var(--emph); text-decoration: none; }
.nav-toggle { grid-column: 1; justify-self: start; display: flex; align-items: center; min-height: 80px; padding: 0; border: 0; background: none; color: var(--emph); cursor: pointer; }
@media (min-width: 960px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}

/* offcanvas */
.offcanvas { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .1); }
.offcanvas[hidden] { display: none; }
.offcanvas-bar { position: absolute; top: 0; bottom: 0; left: 0; width: 270px; padding: 20px; background: var(--white); overflow-y: auto; }
.offcanvas-close { position: absolute; top: 20px; right: 20px; padding: 5px; border: 0; background: none; color: var(--text); cursor: pointer; }
.offcanvas-nav { margin: 60px 0 0; padding: 0; list-style: none; }
.offcanvas-nav a { display: block; padding: 5px 0; color: var(--text); }
.offcanvas-nav a.active { color: var(--emph); }
.offcanvas-sub { margin: 0; padding: 5px 0 5px 15px; list-style: none; }
.offcanvas-sub a { padding: 2px 0; }

/* ---------- intro: address / SPRECHZEITEN / Doctolib */
.grid-intro { margin-bottom: 20px; row-gap: 20px; }
@media (min-width: 640px) { .grid-intro { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-intro { grid-template-columns: repeat(4, 1fr); } }
.info { margin: 0; font-family: var(--font); font-size: 11px; line-height: 1.4; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--emph); }
.doctolib { position: fixed; top: 180px; right: 0; z-index: 10000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100px; min-height: 80px; padding: 10px; border-radius: 4px 0 0 4px; background: var(--doctolib); opacity: .85;
  color: #fff; font-size: 14px; line-height: 1.4; text-align: center; text-decoration: none; }
.doctolib:hover { color: #fff; text-decoration: none; opacity: 1; }
.doctolib img { width: auto; height: 15px; margin-top: 10px; }

/* hero slideshow */
.slideshow { position: relative; overflow: hidden; width: 100%; height: max(300px, calc(min(1200px, 100vw - 2 * var(--pad)) * 9 / 16)); }
.slideshow ul { margin: 0; padding: 0; list-style: none; }
.slideshow .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s linear; }
.slideshow .slide.is-active { opacity: 1; }
.slideshow img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- praxis */
@media (min-width: 960px) { #praxis .col-img { position: relative; top: 78px; } }
.button { display: inline-block; padding: 0 20px; border: 1px solid transparent; background: rgba(176, 204, 205, .5);
  font-size: 11px; line-height: 38px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--text);
  transition: background-color .1s ease-in-out; }
.button:hover { background: rgba(176, 204, 205, .8); color: var(--text); text-decoration: none; }

/* ---------- LEISTUNGEN desktop (accordions) */
/* original used nested <h1><h1>, which added 40px above these headings */
#leistungen-titel h2 { margin: 40px 0 0; }
.grid-leistungen { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gutter); row-gap: calc(var(--section) * 2); }
.leistung img.shadow, .leistung .shadow { box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.leistung > picture img { width: 300px; height: 300px; }
.accordion { margin-top: 20px; }
.accordion summary { display: block; list-style: none; cursor: pointer; font-family: var(--font-head); font-size: 20px; line-height: 1.4; color: var(--emph); overflow: hidden; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; float: right; width: 1.4em; height: 1.4em; margin-left: 10px;
  background: no-repeat 50% 50% url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20fill%3D%22%236F6F6F%22%20width%3D%2213%22%20height%3D%221%22%20x%3D%220%22%20y%3D%226%22%2F%3E%3Crect%20fill%3D%22%236F6F6F%22%20width%3D%221%22%20height%3D%2213%22%20x%3D%226%22%20y%3D%220%22%2F%3E%3C%2Fsvg%3E"); }
.accordion[open] summary::after { background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2213%22%20height%3D%2213%22%20viewBox%3D%220%200%2013%2013%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20fill%3D%22%236F6F6F%22%20width%3D%2213%22%20height%3D%221%22%20x%3D%220%22%20y%3D%226%22%2F%3E%3C%2Fsvg%3E"); }
.accordion summary:hover { color: var(--text); }
.accordion-content { margin-top: 20px; }

/* LEISTUNGEN mobile (markers) */
.marker-list { display: flex; flex-direction: column; align-items: center; gap: 20px; }
/* visual offsets from the original layout (relative "top" per item, flow unchanged) */
.marker-item:nth-child(1), .marker-item:nth-child(6), .marker-item:nth-child(8) { top: 10px; }
.marker-item:nth-child(2), .marker-item:nth-child(5), .marker-item:nth-child(9) { top: 20px; }
.marker-item:nth-child(3), .marker-item:nth-child(7), .marker-item:nth-child(10) { top: 30px; }
.marker-item:nth-child(4) { top: 40px; }
.marker-item { position: relative; display: inline-block; max-width: 100%; }
.marker-item img { width: 330px; }
.marker { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; padding: 5px; border: 0; border-radius: 500px; background: var(--teal); color: var(--text); cursor: pointer; transition: background-color .1s ease-in-out; }
.marker:hover, .marker[aria-expanded="true"] { background: #9dbfc0; }
.marker-drop { position: absolute; top: calc(50% + 25px); left: 50%; transform: translateX(-50%); z-index: 20; min-width: 220px; padding: 20px; background: var(--bg); border: 1px solid var(--border); text-align: center; }
.marker-drop[hidden] { display: none; }
.card-title { margin: 0; font-size: 28px; line-height: 1.4; color: var(--primary); }

/* ---------- TEAM + PATIENTENSTIMMEN slider */
.lead-sub { margin: 0; }
#team h2 { margin: 40px 0 20px; }
.slider { position: relative; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--gutter); margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider-track::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .slider-3 { grid-auto-columns: calc((100% - 2 * var(--gutter)) / 3); } }
.slider-item { scroll-snap-align: start; }
.team-member img { width: 100%; }
.team-name { margin: 20px 0 0; font-size: 28px; line-height: 1.4; }
.team-text { margin-top: 20px; }
.dotnav { display: flex; justify-content: center; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.dotnav button { display: block; width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(111, 111, 111, .2); cursor: pointer; transition: background-color .2s ease-in-out; }
.dotnav button:hover { background: rgba(111, 111, 111, .4); }
.dotnav .is-active button { background: var(--teal); }
.dotnav-hide-mobile { display: none; }
@media (min-width: 640px) { .dotnav-hide-mobile { display: flex; } }

.testimonial { padding: 20px; background: var(--bg); text-align: center; }
.testimonial img { width: 210px; }
.testimonial-text { margin-top: 20px; margin-bottom: 44px; } /* original had two empty paragraphs here */
#patientenstimmen h2 { margin-bottom: 20px; }

/* interview */
.interview-title { font-weight: 700; margin: 40px 0 20px; }

/* ---------- 9 GUTE GRÜNDE */
#gutegruende h2 { margin-bottom: 20px; }
#gutegruende .container { position: relative; top: 30px; } /* original: bottom:-30px offset */
#gutegruende p { margin: 0; }
.reason-col { display: flex; flex-direction: column; gap: 20px; }
.reason { text-align: center; }
.reason img { display: block; margin: 0 auto; }
.reason p { margin: 28px 0 0; }

/* ---------- GALERIE */
.gallery-title { margin-bottom: calc(20px + 1.2em); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { position: relative; margin: 0; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-item::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(183, 102, 149, .8); opacity: 0; transition: opacity .35s linear; }
.gallery-item figcaption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center;
  font-family: var(--font-head); font-size: 28px; line-height: 1.4; color: #fff; opacity: 0; transition: opacity .35s linear; }
.gallery-item:hover::before, .gallery-item:focus::before, .gallery-item:hover figcaption, .gallery-item:focus figcaption { opacity: 1; }

/* ---------- Termin-Bildband */
.termin-band { display: flex; align-items: center; min-height: max(400px, calc(100vh - 180px)); padding: var(--section) 0; background: var(--bg) center / cover no-repeat;
  background-image: url(../img/termin-bg-1000.jpg);
  background-image: image-set(url(../img/termin-bg-1000.webp) type("image/webp"), url(../img/termin-bg-1000.jpg) type("image/jpeg")); }
@media (min-width: 1000px) {
  .termin-band { background-size: 2000px auto; background-image: url(../img/termin-bg-2000.jpg);
    background-image: image-set(url(../img/termin-bg-2000.webp) type("image/webp"), url(../img/termin-bg-2000.jpg) type("image/jpeg")); }
}
.termin-band .container { width: 100%; }
.termin-band h2 { margin: 0; }

/* ---------- KONTAKT */
#kontakt h2 { margin: 40px 0 0; }
.contact { text-align: center; row-gap: 40px; }
.contact-icon { display: inline-block; color: var(--icon); }
.contact-icon:hover { color: var(--text); }
.contact p { margin: 0; }
.contact .contact-icon + p { margin-top: 13px; }
.contact p + p { margin-top: 20px; }
.contact > div + div .contact-icon + p { margin-top: 22px; }
.contact p a { color: var(--emph); }
.map { display: block; height: 300px; overflow: hidden; }
.map img { display: block; width: 100%; height: 300px; object-fit: cover; }

/* ---------- footer */
.band-secondary { height: calc(var(--section) * 2); background: var(--teal); }
.site-footer { padding: var(--section) 0; background: var(--bg); }
.footer-link { display: inline-block; padding: 8px 0; font-family: var(--font-head); font-size: 12px; line-height: 1.625; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--footer-link); }
.footer-link:hover { color: var(--emph); text-decoration: none; }

/* ---------- Impressum / Datenschutz */
.legal h3 { font-size: 32.04px; line-height: 1.3; }
@media (min-width: 960px) { .legal h3 { font-size: 36px; } }
.legal h4 { font-size: 28px; line-height: 1.4; }
.legal .legal-title { font-size: 22px; line-height: 1.4; }
.legal .indent { padding-left: 10px; padding-right: 10px; }
.legal a { word-break: break-word; }
.legal-note { margin: 20px 0; padding: 10px 15px; border-left: 3px solid var(--teal); background: #f7f7f7; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slideshow .slide, .gallery-item::before, .gallery-item figcaption { transition: none; }
}
.legal-stand { margin-top: 40px; font-size: 14px; }

/* sticky header (80px) must not cover anchor targets */
@media (min-width: 960px) { [id] { scroll-margin-top: 80px; } }
