/* =========================================================
   Tagespflege WIR – Stylesheet
   Layout nach Designvorlage.pdf (Raster bei 1440 px gemessen)
   ========================================================= */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

/* ---------- Farben ---------- */
:root {
  --green: #158f0f;        /* Grün aus USP_WIR.png – Flächen, Icons, Badge */
  --green-text: #13800e;   /* etwas dunkler: Text/Boxen, Kontrast ≥ 5:1 auf Weiß */
  --green-dark: #23591e;   /* Footer */
  --mint: #eef6ea;         /* helle Bänder (statt Grau der Vorlage) */
  --mint-soft: #f7fbf4;    /* Seitenhintergrund unter dem Footer */
  --sun: #fff8e6;          /* warmer Akzent */
  --text: #333a31;
  --text-soft: #4a5347;
  --white: #ffffff;

  --container: 740px;      /* Inhaltsbreite der Vorlage */
  --fs-body: 14px;         /* Fließtext Desktop */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mint-soft);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.page { background: var(--white); }

/* ---------- Header (140 px) ---------- */
.site-header { height: 140px; background: var(--white); display: flex; align-items: center; justify-content: center; }
.brand { display: flex; align-items: flex-end; gap: 14px; text-decoration: none; padding-left: 70px; }
.brand img { width: 150px; height: auto; }
.brand__claim { font-size: 15px; color: var(--text); padding-bottom: 18px; white-space: nowrap; }

/* ---------- Slider (332 px) ---------- */
.hero { position: relative; height: 332px; overflow: hidden; background: var(--mint); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero__slide.is-active img { transform: scale(1); }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.30) 0%, rgba(0,0,0,.12) 60%, rgba(0,0,0,.05) 100%); }
.hero__text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--white); padding: 0 70px; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 0 18px rgba(0,0,0,.35); }
.hero__title { margin: 0; font-size: 28px; font-weight: 500; line-height: 1.15; }
.hero__sub { margin: 6px 0 0; font-size: 20px; font-weight: 400; line-height: 1.3; }
.hero__btn { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: rgba(255,255,255,.85); display: grid; place-items: center; transition: color .2s, transform .2s; }
.hero__btn:hover { color: #fff; }
.hero__btn--prev { left: 6px; } .hero__btn--next { right: 6px; }
.hero__btn--prev:hover { transform: translateY(-50%) translateX(-2px); }
.hero__btn--next:hover { transform: translateY(-50%) translateX(2px); }
.hero__btn svg { width: 22px; height: 34px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

/* ---------- Willkommen (Band 280 px mit Pfeil) ---------- */
.welcome { position: relative; background: var(--mint); min-height: 280px; padding: 56px 0 50px; }
.welcome::after { content: ""; position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); border-left: 30px solid transparent; border-right: 30px solid transparent; border-top: 18px solid var(--mint); }
.welcome__grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.welcome__text { max-width: 520px; }
.welcome h2 { margin: 0 0 14px; color: var(--green-text); font-size: 26px; font-weight: 400; line-height: 1.15; }
.welcome p { margin: 0; color: var(--text-soft); }
.badge { width: 168px; flex: 0 0 168px; margin-top: 8px; margin-right: -20px; }
.badge img { width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }

/* ---------- Leistungen ---------- */
.services { padding: 42px 0 28px; }
.services h2 { margin: 0 0 18px; text-align: center; color: var(--green-text); font-size: 20px; font-weight: 400; line-height: 1.3; }
.services__list { list-style: none; margin: 0 auto; padding: 0 0 0 10px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; max-width: 740px; }
.services__list li { display: flex; align-items: center; gap: 8px; min-height: 33px; }
.check { width: 19px; height: 19px; flex: 0 0 19px; color: var(--green); }

/* ---------- Zwischenzeile mit Handkreis ---------- */
.claim { padding: 26px 16px 40px; text-align: center; }
.claim h2 { margin: 0; font-size: 26px; font-weight: 300; color: var(--text); line-height: 1.3; }
.circled { position: relative; display: inline-block; padding: 0 4px; margin-left: 8px; }
.circled svg { position: absolute; left: -10px; top: -8px; width: calc(100% + 20px); height: calc(100% + 16px); overflow: visible; pointer-events: none; }
.circled path { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 0; }

/* ---------- Galerie (Band 275 px) ---------- */
.gallery { background: var(--mint); padding: 46px 26px 45px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1388px; margin: 0 auto; }
.gallery figure { margin: 0; overflow: hidden; height: 185px; background: #dfe9da; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- Info-Boxen ---------- */
.info { padding: 56px 0 50px; }
.info__grid { display: grid; grid-template-columns: repeat(3, 238px); justify-content: center; gap: 13px; }
.info__box { position: relative; background: var(--green-text); color: var(--white); text-align: center; min-height: 156px; padding: 24px 12px 16px; font-weight: 300; border-radius: 2px; transition: transform .25s ease, box-shadow .25s ease; }
.info__box:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(19,128,14,.25); }
.info__icon { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--green); border: 2px solid var(--white); display: grid; place-items: center; }
.info__icon svg { width: 20px; height: 20px; color: var(--white); }
.info__title { display: block; margin: 0 0 8px; font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.info__box p { margin: 0; font-size: 14px; line-height: 1.4; }
.info__box a { color: var(--white); text-decoration: none; }
.info__box a:hover { text-decoration: underline; }

/* ---------- Stadt-Link ---------- */
.city { text-align: center; padding: 0 16px 6px; }
.city a { color: var(--green-text); font-size: 22px; font-weight: 400; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.city a:hover { color: var(--green); }

/* ---------- Karte (390 px) ---------- */
.map { position: relative; margin: 6px 8px 0; height: 390px; overflow: hidden; background: #e6eee3; }
.map > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.map__credit { display: none; position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.85); color: #444; font-size: 10px; line-height: 1; padding: 3px 6px; }
.map__card { position: absolute; top: 8px; left: 8px; background: var(--white); padding: 9px 12px 8px; width: 245px; box-shadow: 0 1px 4px rgba(0,0,0,.25); font-size: 11px; line-height: 1.35; }
.map__card strong { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 2px; }
.map__card a { color: #1a73e8; text-decoration: none; display: inline-block; margin-top: 8px; }
.map__cta { position: absolute; left: 37%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; background: rgba(20,20,20,.82); color: #fff; text-decoration: none; padding: 4px 10px 5px; font-size: 20px; line-height: 1.2; border-radius: 3px; transition: background .2s, transform .2s; }
.map__cta:hover { background: var(--green-text); transform: translate(-50%, -52%); }
.map__cta svg { width: 20px; height: 20px; }

/* ---------- Footer (37 px) ---------- */
.site-footer { background: var(--green-dark); color: #fff; font-size: 12px; }
.site-footer .inner { max-width: 760px; margin: 0 auto; min-height: 37px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 26px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-space { height: 48px; background: var(--mint-soft); }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.legal { background: var(--mint); padding: 50px 0 60px; }
.legal h1 { margin: 0 0 18px; color: var(--green-text); font-size: 26px; font-weight: 400; line-height: 1.2; }
.legal h2 { margin: 26px 0 6px; color: var(--green-text); font-size: 17px; font-weight: 500; }
.legal p, .legal li { color: var(--text-soft); margin: 0 0 8px; }
.legal ul { padding-left: 20px; margin: 0 0 8px; }
.legal a { color: var(--green-text); }
.todo { background: var(--sun); border-left: 3px solid #e3b23c; padding: 1px 6px; }
.back { display: inline-block; margin-top: 24px; color: var(--green-text); }

/* ---------- Animationen (dezent) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal--zoom { transform: scale(.97); }
.js .reveal--badge { transform: rotate(-14deg) scale(.85); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .circled path { stroke-dashoffset: 520; transition: stroke-dashoffset 1.4s ease .3s; }
.js .claim.is-in .circled path { stroke-dashoffset: 0; }
.js .hero__text > * { opacity: 0; transform: translateY(12px); animation: heroIn 1s ease forwards; }
.js .hero__text > *:nth-child(2) { animation-delay: .25s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.badge img { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .circled path { stroke-dashoffset: 0; }
  .js .hero__text > * { opacity: 1; transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 860px) {
  .info__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px 13px; padding: 0 16px; }
  .gallery__grid { gap: 14px; }
  .gallery { padding: 30px 16px; }
}

/* ---------- Handy ---------- */
@media (max-width: 640px) {
  :root { --fs-body: 16px; }
  .site-header { height: auto; padding: 18px 16px 14px; }
  .brand { flex-direction: column; align-items: center; gap: 6px; padding-left: 0; text-align: center; }
  .brand img { width: 150px; }
  .brand__claim { padding-bottom: 0; white-space: normal; font-size: 15px; }
  .hero { height: 240px; }
  .hero__text { padding: 0 48px; }
  .hero__title { font-size: 24px; }
  .hero__sub { font-size: 17px; }
  .hero__btn { width: 40px; } .hero__btn--prev { left: 0; } .hero__btn--next { right: 0; }
  .welcome { padding: 36px 0 44px; }
  .welcome__grid { flex-direction: column; align-items: center; gap: 22px; }
  .welcome h2 { font-size: 22px; }
  .badge { width: 140px; flex-basis: auto; margin: 0; }
  .services { padding-top: 38px; }
  .services h2 { font-size: 19px; }
  .services__list { grid-template-columns: 1fr; padding: 0 16px; max-width: 420px; }
  .services__list li { min-height: 38px; }
  .claim h2 { font-size: 22px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery figure { height: 200px; }
  .info { padding-top: 46px; }
  .info__grid { grid-template-columns: 1fr; gap: 34px; }
  .info__box p { font-size: 15px; }
  .info__title { font-size: 16px; }
  .city a { font-size: 18px; }
  .map { height: 300px; margin: 6px 0 0; }
  .map__card { width: 200px; }
  .map__cta { font-size: 16px; white-space: nowrap; }
  .site-footer { font-size: 13px; }
  .site-footer .inner { flex-direction: column; text-align: center; padding: 14px 16px; }
  .site-footer .sep { display: none; }
  .site-footer .part { display: block; }
  .map__card { display: none; }
  .map__cta { left: 50%; top: 72%; }
  .map__credit { display: block; }
  .map > img { object-position: 50% 50%; }
  .legal h1 { font-size: 22px; }
}
