/* ==========================================================================
   Praxis für Logopädie Isabel Oelckers – statischer Neuaufbau
   Referenz: FireShot-Captures (Desktop-Viewport 1920 px)
   Inhaltsbreite 988 px · Fließtext Desktop 13 px
   ========================================================================== */

:root {
  --purple: #7a4792;          /* Flächen: Seitenband, Kontaktleiste, Sticker */
  --purple-text: #794691;     /* Überschriften, Links, Icons */
  --text: #333333;            /* Fließtext */
  --gray-text: #6e6e6e;       /* "Logopädie ist unsere Leidenschaft" */
  --gray-box: #727272;        /* Infoboxen + Footer */
  --gray-bg: #edebec;         /* Willkommen, Galerie, Fußleiste */
  --white: #ffffff;

  --font-head: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;

  --fs-body: 13px;            /* Vorgabe: Fließtext Desktop 13 px */
  --lh-body: 1.5;
  --container: 988px;
  --gutter: 16px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--white); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--gray-bg);          /* sichtbar nur als Streifen unter dem Footer */
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 12.5px; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--purple-text); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--purple); color: var(--white); padding: 8px 14px; text-decoration: none;
}
.skip-link:focus { left: 16px; top: 16px; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header { background: var(--white); padding-block: 17px 18px; }
.site-header .logo { display: block; width: fit-content; margin-left: -1px; }
.site-header .logo img { width: 328px; height: auto; }

/* ---------- Hero ---------- */
.hero {
  height: 442px;
  background: #b9a79c url("../img/titelbild.jpg") center center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  padding-inline: var(--gutter);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.2;
  color: var(--white);
  text-align: center;
}

/* ---------- Willkommen ---------- */
.welcome {
  position: relative;
  background: var(--gray-bg);
  padding-block: 68px 21px;
}
.welcome::after {                       /* Pfeil nach unten (Shape-Divider) */
  content: "";
  position: absolute; left: 50%; bottom: -28px; z-index: 2;
  transform: translateX(-50%);
  border-left: 42px solid transparent;
  border-right: 42px solid transparent;
  border-top: 28px solid var(--gray-bg);
}
.welcome-grid {
  display: grid;
  grid-template-columns: 70% 30%;
  align-items: start;
}
.welcome-text { min-width: 0; padding-top: 1px; }
.welcome h2 {
  margin: 0 0 17px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: var(--purple-text);
}
.welcome-badge { display: flex; justify-content: flex-end; margin-right: -4px; }
.welcome-badge img { width: 275px; margin-top: 2px; }

/* ---------- Leistungen ---------- */
.services { background: var(--white); padding-block: 51px 58px; }
.services h2 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--purple-text);
  text-align: center;
}
.check-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  grid-auto-flow: column; grid-template-rows: repeat(3, 44px);
}
.check-list li {
  display: flex; align-items: center; gap: 11px;
  padding-left: 13px;
  color: var(--text);
}
.check-list svg { width: 25px; height: 25px; flex: none; fill: var(--purple-text); }

.services .passion {
  margin: 96px 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.2;
  color: var(--gray-text);
  text-align: center;
}
.passion .circled { position: relative; display: inline-block; }
.passion .circled svg {
  position: absolute; left: 50%; top: 50%;
  width: calc(100% + 20px); height: calc(100% + 20px);
  transform: translate(-50%, -50%);
  overflow: visible; pointer-events: none;
}
.passion .circled path {
  fill: none; stroke: var(--purple-text); stroke-width: 9;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1500; stroke-dashoffset: 0;
}
.js .passion .circled path { animation: draw-circle 1.2s ease-out .3s both; }
@keyframes draw-circle { from { stroke-dashoffset: 1500; } to { stroke-dashoffset: 0; } }

/* ---------- Galerie ---------- */
.gallery {
  background: var(--gray-bg);
  padding: 62px 35px 62px 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px;
}
.gallery img { width: 100%; aspect-ratio: 593 / 247; object-fit: cover; object-position: center; }

/* ---------- Kontakt / Infoboxen ---------- */
.contact { background: var(--white); padding-block: 71px 0; }
.info-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.info-box {
  position: relative;
  background: var(--gray-box);
  color: var(--white);
  text-align: center;
  padding: 28px 18px 16px;
  min-height: 187px;
  font-family: var(--font-head);
  font-weight: 300;
}
.info-box .icon {
  position: absolute; left: 50%; top: -23px; transform: translateX(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--purple-text);
  border: 3px solid var(--white);
  display: flex; align-items: center; justify-content: center;
}
.info-box .icon svg { width: 22px; height: 22px; fill: var(--white); }
.info-box h3 {
  margin: 0 0 12px;
  font-size: 21px; line-height: 1.5; font-weight: 300;
}
.info-box h3 a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.info-box h3 a:hover { text-decoration-thickness: 2px; }
.info-box p { margin: 0; font-size: 16px; line-height: 1.4; }
.info-box p a { color: var(--white); text-decoration: none; }
.info-box p a:hover { text-decoration: underline; }

.community-link {
  margin: 80px 0 0; text-align: center;
  font-family: var(--font-head); font-weight: 400;
  font-size: 28px; line-height: 1.2;
}
.community-link a { color: var(--purple-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.community-link a:hover { text-decoration-thickness: 2px; }

/* ---------- Karte ---------- */
.map {
  position: relative;
  margin: 74px 9px 0;
  height: 542px;
  background: #f1f2f4;
}
.map > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.map-cta {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 345px; max-width: calc(100% - 32px); padding: 13px 0 12px;
  background: rgba(122, 71, 146, .2); border-radius: 3px;
  display: flex; justify-content: center;
}
.map-cta a {
  display: inline-flex; align-items: center; gap: 22px;
  height: 41px; padding: 0 22px 0 18px;
  background: var(--purple-text); color: var(--white);
  border-radius: 3px; text-decoration: none;
  font-family: var(--font-body); font-size: 15px; line-height: 1;
  transition: background-color .2s;
}
.map-cta a:hover { background: #5f3572; }
.map-cta svg { width: 15px; height: 15px; fill: var(--white); }

/* ---------- Seitenband (Unterseiten) ---------- */
.page-band {
  background: var(--purple);
  height: 141px;
  display: flex; align-items: center; justify-content: center;
  padding-inline: var(--gutter);
}
.page-band h2 {
  margin: 0;
  font-family: var(--font-head); font-weight: 400;
  font-size: 52px; line-height: 1.2; color: var(--white);
  text-align: center;
}
.legal { background: var(--white); padding-block: 66px 21px; }
.legal h1 {
  margin: 0 0 15px;
  font-family: var(--font-body); font-weight: 400;
  font-size: 36px; line-height: 1.2; color: var(--purple-text);
}
.legal .text { overflow-wrap: anywhere; }
.legal .text strong { font-weight: 400; }  /* wie Vorlage: Zwischenüberschriften nicht fett */
.legal .text ul { margin: 0; padding-left: 26px; }
.legal .text a { color: var(--purple-text); }
.legal .text a.plain { color: inherit; text-decoration: none; }
.legal .text a.plain:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-box); color: var(--white); }
.footer-inner {
  width: min(1006px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  min-height: 49px;
  padding-top: 3px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px; line-height: 1.2;
}
.footer-inner p { margin: 0; }
.footer-nav { display: flex; align-self: stretch; }
.footer-nav a {
  position: relative; display: flex; align-items: center;
  padding: 0 18px; color: var(--white); text-decoration: none;
}
.footer-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gray-bg); opacity: 0; transition: opacity .2s;
}
.footer-nav a:hover::after, .footer-nav a[aria-current="page"]::after { opacity: 1; }

/* ---------- Kontaktleiste (sticky unten) ---------- */
.contact-dock {
  position: sticky; bottom: 0; z-index: 50;
  width: 282px; height: 60px; margin: 4px auto 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--purple);
  border-radius: 20px 20px 0 0;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 15px; line-height: 1;
}
.contact-dock a {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.contact-dock a:hover span { text-decoration: underline; }
.contact-dock svg { width: 24px; height: 24px; fill: var(--white); flex: none; }
.contact-dock .mail svg { height: 20px; }

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed; z-index: 60;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  width: 40px; height: 40px; border: 0; padding: 0; border-radius: 4px;
  background: #000; opacity: 0; visibility: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s, visibility .2s;
}
.to-top.show { opacity: .6; visibility: visible; }
.to-top:hover { opacity: .85; }
.to-top svg { width: 18px; height: 18px; fill: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1366px) {
  .hero h1 { font-size: 56px; }
}

@media (max-width: 1024px) {
  :root { --fs-body: 14px; }
  .hero { height: 360px; }
  .hero h1 { font-size: 44px; }
  .welcome { padding-block: 56px 40px; }
  .welcome-grid { grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; }
  .welcome-badge img { width: 230px; }
  .welcome h2 { font-size: 32px; line-height: 1.1; }
  .gallery { padding: 40px var(--gutter); gap: 16px; }
  .info-box { padding-inline: 12px; }
  .info-box h3 { font-size: 19px; }
  .info-box p { font-size: 15px; }
  .community-link { font-size: 24px; }
  .map { height: 440px; }
  .page-band { height: 120px; }
  .page-band h2 { font-size: 44px; }
}

@media (max-width: 880px) {
  .info-boxes { grid-template-columns: 1fr; gap: 48px; max-width: 420px; margin-inline: auto; }
  .info-box { min-height: 0; padding-bottom: 24px; }
}

@media (max-width: 767px) {
  :root { --fs-body: 15px; }
  .site-header { padding-block: 12px; }
  .site-header .logo img { width: 240px; }
  .hero { height: 260px; }
  .hero h1 { font-size: 30px; }
  .welcome { padding-block: 40px 36px; }
  .welcome-grid { grid-template-columns: 1fr; gap: 24px; }
  .welcome h2 { font-size: 26px; line-height: 1.15; }
  .welcome-badge { justify-content: center; margin-right: 0; }
  .welcome-badge img { width: 180px; margin-top: 0; }
  .services { padding-block: 48px 48px; }
  .services h2 { font-size: 22px; margin-bottom: 18px; }
  .check-list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; grid-auto-rows: 44px; max-width: 320px; margin-inline: auto; }
  .check-list li { padding-left: 0; }
  .services .passion { margin-top: 56px; font-size: 26px; }
  .passion .circled svg { width: calc(100% + 14px); height: calc(100% + 14px); }
  .gallery { grid-template-columns: 1fr; padding: 32px var(--gutter); }
  .gallery img { aspect-ratio: 16 / 9; }
  .contact { padding-top: 56px; }
  .community-link { font-size: 20px; margin-top: 56px; }
  .map { height: 340px; margin: 48px 0 0; }
  .map > img { object-position: 46% top; }
  .map-cta { width: auto; padding: 10px 12px; top: 72%; }
  .map-cta a { white-space: nowrap; font-size: 14px; gap: 14px; padding-inline: 14px; }
  .page-band { height: 96px; }
  .page-band h2 { font-size: 32px; }
  .legal { padding-block: 40px 24px; }
  .legal h1 { font-size: 28px; }
  .footer-inner { flex-direction: column; justify-content: center; text-align: center; padding-block: 14px 6px; gap: 6px; }
  .footer-nav { align-self: center; }
  .footer-nav a { padding-block: 8px; }
  .to-top { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .js .passion .circled path { animation: none; }
  .to-top, .footer-nav a::after, .map-cta a { transition: none; }
}
