/* ==========================================================================
   Physiotherapie Jutta Carstensen – Stylesheet
   Masterlayout: FireShot Capture 212 (Desktop-Ansicht, Viewport 1800 px)
   Alle Desktop-Maße 1:1 aus dem Master abgeleitet.
   ========================================================================== */

/* ---------- Schriften (lokal eingebunden, kein Google-Server) ---------- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/roboto-300.woff") format("woff");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-500.woff") format("woff");
}

/* ---------- Variablen ---------- */
:root {
  --yellow: #ffc703;
  --text: #292929;
  --grey-bg: #f3f3f3;
  --line: #9a9a9a;
  --footer: #727272;
  --totop: #626262;
  --container: 926px;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-roboto: "Roboto", Arial, Helvetica, sans-serif;
  --fs-body: 14px;       /* Fließtext Desktop */
  --lh-body: 1.5;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grey-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 12.5px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #000; color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: #fff; }
.site-header .container { padding: 16px 0 17px; }
.site-header .logo { display: block; width: 169px; }
.site-header .logo img { width: 169px; height: 80px; object-fit: contain; }

/* ==========================================================================
   Hero / Slider
   ========================================================================== */
.hero-wrap { background: var(--grey-bg); padding-top: 16px; }
.hero {
  position: relative;
  height: 415px;
  overflow: hidden;
  background: #e9b93b;
}
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity .5s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide--therapieraum { background-image: url("../img/hero-therapieraum.jpg"); }
.hero__slide--foehr { background-image: url("../img/hero-foehr.jpg"); }
.hero__title {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  margin: 0;
  padding: 5px 20px 0;
  font-family: var(--font-roboto);
  font-weight: 500;
  font-size: 61px;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  z-index: 2;
}
.hero__dots {
  position: absolute; left: 0; right: 0; bottom: 9px;
  display: flex; justify-content: center; gap: 10px;
  z-index: 3;
}
.hero__dots button {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%;
  background: #000; opacity: .2; cursor: pointer;
}
.hero__dots button[aria-current="true"] { opacity: 1; }
.hero__dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro { background: var(--grey-bg); }
.intro .container {
  position: relative;
  min-height: 335px;
  padding-top: 66px;
  display: flex;
}
.intro__text { flex: 0 0 618px; max-width: 618px; }
.intro__text h1 {
  color: var(--yellow);
  font-size: 33px;
  line-height: 1.2;
  margin-bottom: 18px;
}
.intro__sticker {
  position: absolute;
  left: 680px; top: 66px;
  width: 237px;
}

/* ==========================================================================
   Leistungen + Über mich
   ========================================================================== */
.services {
  position: relative;
  background: #fff;
  padding: 50px 0 87px;
}
/* Formteiler: graues Dreieck oben mittig */
.services::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 75px; height: 25px;
  transform: translateX(-50%);
  background: var(--grey-bg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.services h2 {
  color: var(--yellow);
  font-size: 28px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 25px;
}
.checklist {
  display: grid;
  grid-template-columns: 463px 463px;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, auto);
  row-gap: 17.25px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex; align-items: center;
  min-height: 24px;
  padding-left: 8px;
}
.checklist li:nth-child(n+7) { padding-left: 9px; }
.checklist svg { flex: 0 0 24px; width: 24px; height: 24px; margin-right: 12px; }

.rule { height: 0; border: 0; border-top: 1px solid var(--line); margin: 0; }

.about {
  display: flex;
  padding: 37px 0 20px;
}
.about__photo { flex: 0 0 463px; padding-left: 7.5px; }
.about__photo img { width: 354px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.about__text { flex: 1 1 auto; padding-left: 9px; margin-top: -1.5px; }

/* ==========================================================================
   Galerie
   ========================================================================== */
.gallery {
  background: var(--grey-bg);
  padding: 58px 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.gallery figure { margin: 0; height: 231px; overflow: hidden; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .6s ease;
}
.gallery figure:hover img { transform: scale(1.04); }

/* ==========================================================================
   Kontakt-Boxen
   ========================================================================== */
.contact { background: #fff; padding: 65.5px 0 75.5px; }
.contact .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.cbox {
  position: relative;
  min-height: 158px;
  background: var(--yellow);
  color: #000;
  text-align: center;
  font-family: var(--font-roboto);
  font-weight: 300;
  padding: 31px 12px 20px;
}
.cbox__icon {
  position: absolute; top: -22px; left: 50%;
  width: 43px; height: 43px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1.5px var(--yellow), inset 0 0 0 3.5px #fff;
  display: flex; align-items: center; justify-content: center;
}
.cbox__icon svg { width: 26px; height: 26px; fill: #fff; }
.cbox h2 {
  font-weight: 300;
  font-size: 20px;
  line-height: 24px;
  margin-bottom: 14.5px;
}
.cbox h2 a, .cbox h2 span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cbox p { font-size: 16px; line-height: 20.6px; margin: 0; }
.cbox a { text-decoration: none; }
.cbox a:hover { text-decoration: underline; }

/* ==========================================================================
   Karte
   ========================================================================== */
.map { background: #fff; padding: 0 9px 9px; }
.map__inner { position: relative; }
.map__inner img { width: 100%; aspect-ratio: 3548 / 1024; object-fit: cover; }
.map__btn {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  height: 35px; padding: 0 21px;
  background: var(--yellow); color: #fff;
  font-size: 13px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.map__btn svg { width: 12px; height: 12px; fill: #fff; }
.map__btn:hover, .map__btn:focus-visible { background: #e6b300; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--footer); color: #fff; }
.site-footer .inner {
  max-width: 942px; margin: 0 auto;
  min-height: 47.5px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 19px 0 0;
}
.site-footer p { margin: 0; font-size: 14px; line-height: 1.5; }
.site-footer nav { display: flex; gap: 36px; }
.site-footer nav a { text-decoration: none; font-size: 14px; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { text-decoration: underline; }
.page-end { height: 58px; background: var(--grey-bg); }

.to-top {
  position: fixed; right: 19px; bottom: 16px;
  width: 33px; height: 33px;
  display: flex; align-items: center; justify-content: center;
  background: var(--totop); border-radius: 2px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
  z-index: 50;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 16px; height: 16px; fill: #fff; }

/* Mobiler Anruf-Button (nur Smartphone) */
.call-btn { display: none; }

/* ==========================================================================
   Unterseiten (Impressum / Datenschutz)
   ========================================================================== */
.legal { background: #fff; padding: 50px 0 87px; border-top: 16px solid var(--grey-bg); }
.legal h1 { color: var(--yellow); font-size: 33px; line-height: 1.2; margin-bottom: 25px; }
.legal h2 { color: var(--yellow); font-size: 20px; line-height: 1.3; margin: 30px 0 10px; }
.legal h3 { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 20px 0 6px; }
.legal ul { margin: 0 0 12.5px; padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--text); text-decoration: underline; word-break: break-word; }
.legal .todo {
  background: #fff3b0; outline: 1px dashed #c99a00; padding: 0 3px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__slide--therapieraum { background-image: url("../img/hero-therapieraum-1920.jpg"); }
  .hero__slide--foehr { background-image: url("../img/hero-foehr-1200.jpg"); }
  .container { padding-left: 20px; padding-right: 20px; }
  .site-header .container { padding: 16px 20px 17px; }
  .hero { height: 360px; }
  .hero__title { font-size: 44px; }
  .intro .container { padding-top: 50px; padding-bottom: 50px; min-height: 0; gap: 30px; align-items: flex-start; }
  .intro__text { flex: 1 1 auto; max-width: none; }
  .intro__sticker { position: static; flex: 0 0 210px; width: 210px; margin-top: -10px; }
  .checklist { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .about__photo { flex: 0 0 50%; padding-left: 0; padding-right: 20px; }
  .about__photo img { width: 100%; }
  .gallery { padding: 40px 20px; gap: 20px; }
  .gallery figure { height: 200px; }
  .site-footer .inner { padding: 12px 20px; }
}

@media (max-width: 767px) {
  :root { --fs-body: 16px; }   /* Fließtext Smartphone */
  .hero { height: 260px; }
  .hero__title { font-size: 32px; }
  .intro .container { flex-direction: column; padding-top: 40px; padding-bottom: 40px; }
  .intro__text h1 { font-size: 26px; }
  .intro__sticker { align-self: center; flex: none; width: 200px; margin-top: -10px; }
  .services { padding: 50px 0 50px; }
  .services h2 { font-size: 24px; }
  .checklist { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; row-gap: 14px; }
  .checklist li, .checklist li:nth-child(n+7) { padding-left: 0; }
  .about { flex-direction: column; gap: 24px; padding-top: 30px; }
  .about__photo { flex: none; padding: 0; }
  .about__text { padding: 0; }
  .gallery { grid-template-columns: 1fr; padding: 30px 20px; }
  .gallery figure { height: auto; aspect-ratio: 16 / 9; }
  .contact { padding: 50px 0 50px; }
  .contact .container { grid-template-columns: 1fr; row-gap: 44px; }
  .cbox h2 { font-size: 20px; }
  .map__inner img { aspect-ratio: 4 / 3; object-position: 46% 50%; }
  .site-footer .inner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 20px; }
  .site-footer p, .site-footer nav a { font-size: 16px; }
  .site-footer .sep { display: none; }
  .site-footer .addr { display: block; }
  .page-end { height: 72px; }
  .to-top { bottom: 80px; }
  .legal h1 { font-size: 26px; }
  .call-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: 56px; background: var(--yellow); color: #000;
    font-family: var(--font-roboto); font-weight: 500; font-size: 17px;
    text-decoration: none; box-shadow: 0 -2px 8px rgba(0,0,0,.12);
  }
  .call-btn svg { width: 20px; height: 20px; fill: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide, .gallery img { transition: none; }
}
