/* Osteopathie Bordelius – eigenes Stylesheet (kein Theme-Code). */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/roboto-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/lato-400.woff2") format("woff2"); }

:root {
  --accent: #1ea4bb;
  --text: #222222;
  --heading-muted: #4d4d4d;
  --grey-section: #d1d1d1;
  --map-outer: #dedede;
  --map-inner: #8f8f8f;
  --footer: #afafaf;
  --page-bottom: #222222;
  --field-bg: #f7f7f7;
  --line: #e4e4e4;
  --header-h: 120px;
  --frame: 12px;
  --container: 1014px;
  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page-bottom); scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (max-width: 767px) { html { scroll-padding-top: 0; } } /* Header ist mobil nicht sticky */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--text); font: 300 14px/20px var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
p { margin: 0 0 20px; }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { margin: 0 0 20px; }
h1 { font: 300 40px/36px var(--font); letter-spacing: 2px; }
h2 { font: 400 20px/30px var(--font); }
h3 { font: 400 18px/24px var(--font); }
h4 { font: 400 16px/20px var(--font); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 10px 15px; }
.skip-link:focus { left: 10px; }

.frame { margin: 0 var(--frame); }
.container { max-width: var(--container); margin: 0 auto; }
.section { padding: 40px 0 60px; }
.section--grey { background: var(--grey-section); }
.section--grey .section__title { color: #fff; }
.section--white { background: #fff; }
.section__title { text-transform: uppercase; margin-bottom: 30px; }
.section--white .section__title { color: var(--heading-muted); }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; font: 700 13px/1 var(--font);
  padding: 16px 22px; cursor: pointer; }
.btn:hover { background: #1890a4; text-decoration: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--accent);
  display: flex; align-items: center; justify-content: space-between; padding: 0 25px 0 50px; }
/* Das Icon hat einen Rand; 81px Hoehe ergeben die Figurgroesse des Originals (64px). */
.site-logo img { height: 81px; width: auto; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.site-nav a { position: relative; display: block; padding: 0 15px; line-height: var(--header-h);
  color: #fff; font: 400 16px/var(--header-h) var(--font); }
.site-nav a:hover { text-decoration: none; }
.site-nav a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: #fff;
  transform: scaleX(0); transition: transform .2s; }
.site-nav a.is-active::before, .site-nav a:hover::before { transform: scaleX(1); }
.site-header :focus-visible { outline-color: #fff; }

@media (max-width: 767px) {
  .site-header { padding: 0 20px; position: relative; }
  /* Mobil kleiner und buendig im Balken (kein Ueberstand ins Foto). */
  .site-logo img { height: 72px; }
  .nav-toggle { display: block; position: relative; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 10px; width: 24px; height: 2px; background: #fff; content: ""; transition: transform .2s; }
  .nav-toggle__bar { top: 21px; }
  .nav-toggle__bar::before { left: 0; top: -7px; }
  .nav-toggle__bar::after { left: 0; top: 7px; }
  body.nav-open .nav-toggle__bar { background: transparent; }
  body.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 300px); background: var(--page-bottom);
    transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility 0s .3s; padding-top: 80px; z-index: 60; }
  body.nav-open .site-nav { transform: none; visibility: visible; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { line-height: 50px; padding: 0 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav a::before { display: none; }
  .site-nav a.is-active { color: var(--accent); }
  .nav-toggle { z-index: 70; }
  .container { padding: 0 15px; }
  .frame { margin: 0; }
  h1 { font-size: 34px; line-height: 38px; }
}
/* Ohne JS: Mobil-Menü als normale Liste unter dem Header (nicht als Off-Canvas-Panel) */
@media (max-width: 767px) {
  html:not(.js) .site-header { height: auto; flex-wrap: wrap; }
  html:not(.js) .site-nav { position: static; transform: none; visibility: visible; width: 100%; padding: 0; background: var(--accent); }
  html:not(.js) .nav-toggle { display: none; }
}

/* Must stay below header transitions to prevent cascade override */
@media (prefers-reduced-motion: reduce) {
  .site-nav, .site-nav a::before, .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { transition: none; }
}

/* ---------- Home / Hero ---------- */
.hero { position: relative; height: calc(100vh - var(--header-h)); min-height: 560px; max-height: 780px; overflow: hidden; background: #9a9a9a; }
.hero__slides, .hero__slide, .hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; object-position: center 30%; }
.hero__slide { opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-visible { opacity: 1; }
.hero__box { position: absolute; left: 135px; bottom: 0; width: 516px; max-width: calc(100% - 40px); background: #fff; padding: 18px 25px 25px; }
.hero__title { color: var(--accent); margin-bottom: 18px; }
.hero__box p { margin-bottom: 30px; line-height: 18px; }
.hero__call { color: var(--accent); margin: 0; line-height: 24px; }
.hero__call a { color: inherit; }
@media (max-width: 767px) {
  .hero { height: auto; min-height: 0; max-height: none; background: #fff; }
  .hero__slides { position: relative; height: auto; }
  /* Beide Bilder liegen uebereinander; das erste gibt die Hoehe vor. */
  .hero__slide { position: absolute; inset: 0; display: block; }
  .hero__slide:first-child { position: relative; }
  .hero__slide img { position: relative; height: auto; }
  .hero__box { position: static; width: auto; max-width: none; padding: 30px 15px 20px; }
  .hero__title { font-size: 38px; line-height: 44px; }
}

/* Online-Terminvergabe: am Desktop als Flaeche am rechten Bildrand,
   am Handy als Schaltflaeche im Willkommen-Kasten (jeweils nur eine sichtbar). */
.hero__booking { display: block; background: var(--accent); color: #fff; text-align: center;
  font: 400 16px/22px var(--font); padding: 14px 18px; }
.hero__booking:hover { background: #1890a4; text-decoration: none; }
/* Platzhalter ohne Adresse: sieht gleich aus, reagiert aber nicht. */
.hero__booking--inactive { cursor: default; }
.hero__booking--inactive:hover { background: var(--accent); }
.hero__booking--edge { position: absolute; right: 0; top: 58%; width: 150px; }
.hero__booking--inbox { display: none; }
@media (max-width: 767px) {
  .hero__booking--edge { display: none; }
  /* Oben und unten derselbe Abstand wie ueber "Termine nach Vereinbarung" (30px);
     unten ergaenzt die Kasten-Innenkante (20px) die restlichen 10px. */
  .hero__booking--inbox { display: block; margin: 30px 0 10px; }
}

/* ---------- Osteopathie / Akkordeon ---------- */
#osteopathie { padding: 60px 0; }
.faq-list { border-top: 1px solid rgba(0,0,0,.1); }
.faq { border-bottom: 1px solid rgba(0,0,0,.1); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 16px 40px 16px 0;
  font: 500 14px/20px var(--font); color: #555; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 13px; height: 13px; margin-top: -6px;
  background: linear-gradient(#777,#777) center/13px 1px no-repeat, linear-gradient(#777,#777) center/1px 13px no-repeat; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--text); }
.faq__body { padding: 0 40px 10px 0; }
@media (max-width: 767px) { #osteopathie { padding: 40px 0; } .faq summary::after { right: 5px; } }

/* ---------- Praxis ---------- */
#praxis { padding: 40px 0 50px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
/* Vier Fotos in einer Reihe, gleich hoch; die Breite folgt dem Seitenverhaeltnis
   (flex-grow steht am Element, weil es aus den Bildmassen berechnet wird). */
.gallery { list-style: none; margin: 30px 0 0; padding: 0; display: flex; gap: 10px; height: 360px; }
.gallery li { flex-basis: 0; min-width: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .cols-2 { grid-template-columns: 1fr; gap: 0; }
  .gallery { flex-direction: column; height: auto; gap: 15px; padding: 0 15px; }
  .gallery li { flex: none; }
  .gallery img { height: auto; }
}

/* ---------- Über mich ---------- */
/* Geteiltes Layout nach dem Entwurf 2026: Text links, Foto rechts ueber die
   volle Hoehe des Abschnitts. Die Hoehe gibt die Textspalte vor. */
.about { display: grid; grid-template-columns: 42% 58%; align-items: stretch; }
.about__photo { position: relative; order: 2; min-height: 100%; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about__box { order: 1; padding: 55px 60px 60px; }
.about__box .section__title { color: var(--text); margin-bottom: 25px; }
/* Unter 1024px wird die Textspalte zu schmal: Foto oben, Text darunter. */
@media (max-width: 1023px) {
  .about { grid-template-columns: 1fr; }
  /* Gestapelt steht das Foto oben, der Text darunter. */
  .about__photo { order: 0; min-height: 0; }
  .about__box { order: 1; }
  .about__photo img { position: static; height: auto; }
  .about__box { padding: 35px 30px 40px; }
}

.dash-list { list-style: none; margin: 0 0 20px; padding: 0; }
.dash-list li::before { content: "- "; }
.about__hpo { width: 250px; margin-top: 10px; }
@media (max-width: 767px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { min-height: 0; }
  .about__photo img { position: static; height: auto; }
  .about__box { padding: 30px 15px; }
}

/* ---------- Kontakt ---------- */
.contact { padding: 40px 0 45px; }
.contact__grid { display: grid; grid-template-columns: 4fr 2fr 4fr 2fr; }
.contact__info { grid-column: 1; }
.contact__form { grid-column: 3; }
.contact__phone { color: var(--accent); }
.contact__mail { color: var(--text); }
.contact__legal { margin-top: 60px; font-weight: 700; }
.contact__legal a { color: #444; text-transform: uppercase; }
.contact__legal span { margin: 0 12px; }
.contact label { display: block; margin-bottom: 8px; }
.contact input[type="text"], .contact input[type="email"], .contact input[type="tel"], .contact textarea {
  display: block; width: 100%; height: 36px; border: 1px solid var(--line); background: var(--field-bg);
  font: 300 14px/20px var(--font); padding: 6px 10px; color: var(--text); }
.contact textarea { height: 214px; resize: vertical; }
.contact [aria-invalid="true"] { border-color: #c0392b; }
.contact__consent label { font-weight: 700; padding-left: 14px; text-indent: -14px; }
.contact__consent input { margin: 0 4px 0 0; }
.contact__hp { position: absolute; left: -9999px; }
.contact__submit { text-align: right; margin: 0; }
.contact__status { margin-top: 15px; font-weight: 400; }
.contact__status[data-state="ok"] { color: #2e7d32; }
.contact__status[data-state="fehler"], .contact__status[data-state="ungueltig"] { color: #c0392b; }
.field-error { display: block; color: #c0392b; font-size: 12px; margin-top: 4px; }
@media (max-width: 767px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__info, .contact__form { grid-column: 1; }
  .contact__legal { margin: 30px 0 50px; }
}
/* ---------- Karte ---------- */
.map { background: var(--map-outer); padding-bottom: 25px; }
.map__inner { position: relative; height: 500px; background: var(--map-inner); display: flex; align-items: center; justify-content: center; text-align: center; }
.map__inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent { color: #fff; max-width: 420px; padding: 0 15px; }
.map__consent a { color: #fff; text-decoration: underline; }
@media (max-width: 767px) { .map__inner { height: 350px; } }

/* ---------- Impressum / Datenschutz ---------- */
.legal { padding: 40px 0 60px; }
.legal .section__title { color: var(--text); }
.legal__sub { font: 400 14px/20px var(--font); text-transform: uppercase; margin: 60px 0 25px; }
.legal h3 { font: 700 14px/20px var(--font); margin: 0; }
.page-datenschutz .legal > .container > h2 { font: 700 14px/20px var(--font); margin: 0; }
.legal__link { color: #444; }
.page-datenschutz .legal { padding-top: 60px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #fff; padding: 40px 15px 60px; }
.site-footer__inner { max-width: 1110px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: start; }
.site-footer__address p { margin: 0 0 20px; }
.site-footer__address a { color: #fff; }
.site-footer__copy { font: 700 10px/16px var(--font); text-transform: uppercase; margin-top: 40px !important; }
@media (max-width: 767px) { .site-footer__inner { grid-template-columns: 1fr; } .site-footer__col:empty { display: none; } }
