/* ==========================================================================
   Eichtalpark Seniorenresidenz – statische Website
   Masterlayout: FireShot-Captures 123 (Start), 124 (Impressum), 125 (Datenschutz)
   Desktop-Referenz: 1920 px Viewport
   ========================================================================== */

/* --- Roboto lokal einbinden (DSGVO-konform, kein Google-Server) ---------
   Die woff2-Dateien gehören in den Ordner /fonts (siehe fonts/LIESMICH.txt).
   Ist Roboto auf dem Rechner installiert, wird sie über local() genutzt.   */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local("Roboto Light"), local("Roboto-Light"),
       url("../fonts/roboto-v30-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Roboto"), local("Roboto-Regular"),
       url("../fonts/roboto-v30-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local("Roboto Medium"), local("Roboto-Medium"),
       url("../fonts/roboto-v30-latin-500.woff2") format("woff2");
}

:root {
  --green: #00a44d;
  --text: #333333;
  --gray-bg: #edebec;
  --gray-dark: #727272;
  --link: #cc3366;
  --white: #ffffff;

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

  /* Fließtext: Desktop 13 px (Vorgabe), Tablet/Mobil 15 px */
  --body-size: 13px;
  --body-lh: 1.5;
  --p-gap: 12.5px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--gray-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 var(--p-gap); }

h1, h2, h3 { margin: 0; font-weight: 400; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff; padding: 8px 14px; z-index: 10000;
}
.skip-link:focus { left: 10px; top: 10px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- Kopf -------------------------------------------------------------- */
.site-header {
  background: var(--white);
  padding: 18px 0 17px;
  text-align: center;
}
.site-header a { display: block; width: 260px; margin: 0 auto; }
.site-header img { width: 260px; height: auto; margin: 0 auto; }

/* --- Hero (Startseite) -------------------------------------------------- */
.hero {
  position: relative;
  height: 441px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../img/hero-eichtalpark.jpg") center center / cover no-repeat;
  animation: heroZoom 10s ease-out both;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .25);
}
.hero__inner {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 20px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 70px;
  line-height: 1.2;
  margin: 0 0 9px;
}
.hero__sub {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* --- Willkommen / Text (grau) ------------------------------------------ */
.intro {
  background: var(--gray-bg);
  padding: 35px 0 18.5px;
}
.intro__box {
  /* Original: Inhaltsspalte 475–1465 px bei 1920 px (Mitte 970 px) */
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 5px 0 25px;
}
.intro h1 {
  font-family: var(--font-head);
  color: var(--green);
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
  margin: 0 -60px 41.5px; /* Reserve, damit die Umbrüche wie im Layout bleiben */
}
.intro h3 {
  font-family: var(--font-head);
  color: var(--green);
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 15px;
}

/* --- Leistungen (weiß, Pfeil oben) ------------------------------------ */
.services {
  position: relative;
  background: var(--white);
  padding: 52px 0 79px;
}
.services::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 80px; height: 26px;
  transform: translateX(-50%);
  background: var(--gray-bg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.services h2 {
  font-family: var(--font-head);
  color: var(--green);
  font-size: 30px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 18px;
}
.services__cols {
  width: 990px; max-width: 100%;
  margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
}
.services ul { list-style: none; margin: 0; padding: 0 12px; }
.services li {
  display: flex; align-items: center;
  height: 44.5px;
  font-size: 15px;
}
.services li svg { width: 26px; height: 26px; flex: none; margin-right: 9px; color: var(--green); }

/* --- Bildreihe --------------------------------------------------------- */
.gallery {
  background: var(--gray-bg);
  padding: 60px 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.gallery__item {
  height: 250px;
  overflow: hidden;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.gallery__item:hover img { transform: scale(1.1); }

/* --- Kontakt-Boxen ------------------------------------------------------ */
.contact {
  background: var(--white);
  padding: 47px 0 0;
}
.contact__row {
  width: 990px; max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17.5px;
}
.contact__box {
  position: relative;
  margin-top: 23px;
  background: var(--gray-dark);
  color: #fff;
  height: 147px;
  padding: 32px 10px 0;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 300;
}
.contact__icon {
  position: absolute; left: 50%; top: -25px;
  width: 50px; height: 50px; margin-left: -25px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.contact__icon svg { width: 26px; height: 26px; }
.contact__title {
  display: inline-block;
  font-size: 21px;
  line-height: 1.2;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  margin-bottom: 17px;
}
.contact__text {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
}
.contact__text a { color: #fff; }

/* --- Karte ------------------------------------------------------------- */
.map {
  background: var(--white);
  padding: 71px 0 0;
}
.map a {
  display: block;
  width: 1413px; max-width: 100%;
  margin: 0 auto;
}
.map img { width: 100%; height: auto; }

/* --- Unterseiten (Impressum / Datenschutz) ----------------------------- */
.page-banner {
  background: var(--green);
  color: #fff;
  height: 141px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 20px;
}
.page-banner__title {
  font-family: var(--font-head);
  font-size: 55px;
  line-height: 1.2;
  margin: 0 0 4px;
}
.legal {
  background: var(--white);
  padding: 67px 0 10px;
}
.legal__box {
  width: 990px; max-width: 100%;
  margin: 0 auto;
  overflow-wrap: break-word;
}
.legal h2 { hyphens: auto; -webkit-hyphens: auto; }
.legal a, .legal li, .legal p { overflow-wrap: anywhere; }
.legal h1 {
  font-family: var(--font-head);
  color: var(--green);
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 12.5px;
}
.legal h2 {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 14.5px;
}
.legal h1 + h2 { margin-top: 21px; }
.legal ul {
  margin: 0 0 var(--p-gap);
  padding-left: 36px;
}
.legal ul.tight { margin-bottom: 0; }
.legal li { margin: 0; }
.legal .gap-top { margin-top: 22px; }
.legal a[href^="tel:"], .legal a[href^="mailto:"] { color: inherit; }

/* --- Fuß --------------------------------------------------------------- */
.site-footer {
  background: var(--gray-dark);
  color: #fff;
  height: 50px;
}
.site-footer__inner {
  width: 1000px; max-width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.site-footer__copy {
  font-family: var(--font-body);
  font-size: 15px;
  margin: 0 0 0 -3px;
}
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; height: 50px; }
.site-footer nav a {
  position: relative;
  display: flex; align-items: center;
  height: 50px;
  padding: 0 17px 0 18px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  text-decoration: none;
}
.site-footer nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--green);
  opacity: 0; transition: opacity .2s;
}
.site-footer nav a:hover::after,
.site-footer nav a[aria-current="page"]::after { opacity: 1; }

/* Band unter dem Fuß (Original: Sticky-Kontaktleiste, Desktop leer) */
.contact-bar {
  background: var(--gray-bg);
  height: 63px;
}
.contact-bar ul { display: none; }

/* --- Nach-oben-Button ------------------------------------------------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  width: 40px; height: 40px; padding: 0; border: 0; background: transparent;
  cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top img { width: 40px; height: 40px; }

/* Zeilenumbrüche nur auf Desktop (wie im Masterlayout) */
.br-desktop { display: inline; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --body-size: 15px; }
  .br-desktop { display: none; }
  .hero { height: 380px; }
  .hero__title { font-size: 52px; }
  .intro__box, .legal__box { padding: 0 24px; }
  .intro h1 { font-size: 32px; margin-left: 0; margin-right: 0; }
  .services__cols, .contact__row { padding: 0 24px; }
  .gallery { padding: 40px 24px; gap: 20px; }
  .gallery__item { height: 200px; }
  .contact__row { gap: 12px; }
  .contact__box { height: auto; min-height: 147px; padding-bottom: 22px; }
  .contact__title { font-size: 19px; }
  .contact__text { font-size: 15px; }
  .map { padding-top: 50px; }
  .site-footer__inner { padding: 0 24px; }
  .site-footer__copy { margin-left: 0; }
}

/* ==========================================================================
   Mobil
   ========================================================================== */
@media (max-width: 767px) {
  .site-header { padding: 12px 0; }
  .site-header img { width: 200px; }
  .hero { height: 300px; }
  .hero__title { font-size: 34px; }
  .intro { padding-top: 30px; }
  .intro__box, .legal__box { padding: 0 16px; }
  .intro h1 { font-size: 26px; margin-bottom: 30px; }
  .intro h3 { font-size: 21px; }
  .services { padding: 46px 0 40px; }
  .services h2 { font-size: 24px; padding: 0 16px; }
  .services__cols { grid-template-columns: 1fr; padding: 0 16px; }
  .services ul { padding: 0; }
  .gallery { grid-template-columns: 1fr; padding: 30px 16px; gap: 16px; }
  .gallery__item { height: 220px; }
  .contact { padding-top: 30px; }
  .contact__row { grid-template-columns: 1fr; gap: 36px; padding: 0 16px; }
  .contact__box { height: auto; padding-bottom: 26px; }
  .map { padding-top: 40px; }
  .map img { height: 240px; object-fit: cover; object-position: 50% 50%; }
  .page-banner { height: 110px; }
  .page-banner__title { font-size: 38px; }
  .legal { padding-top: 40px; }
  .legal h1 { font-size: 30px; }
  .legal h2 { font-size: 22px; }
  .legal ul { padding-left: 24px; }
  .site-footer { height: auto; }
  .site-footer__inner { flex-direction: column; padding: 14px 16px 0; text-align: center; }
  .site-footer__copy { font-size: 14px; }
  .site-footer nav ul { height: 46px; }
  .site-footer nav a { height: 46px; }
  /* Mobile Kontaktleiste (Telefon / E-Mail) unten fixiert */
  .contact-bar {
    position: sticky; bottom: 0; z-index: 50;
    height: auto;
    background: var(--green);
  }
  .contact-bar ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; justify-content: center;
  }
  .contact-bar a {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px;
    color: #fff; font-size: 16px; text-decoration: none;
  }
  .contact-bar svg { width: 18px; height: 18px; }
  .to-top { bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
  .gallery__item img { transition: none; }
}
