/* ==========================================================================
   Pflegedienst 2000 Halle (Saale) – Stylesheet
   Layout-Basis: Designvorlage.pdf (Referenzbreite 1920 px)
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, DSGVO-konform, keine 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: 400; font-display: swap;
  src: url("../fonts/roboto-400.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"); }

/* ---------- Design-Tokens */
:root {
  /* CI Pflegedienst 2000 (aus Logo/Sticker abgeleitet) */
  --blau: #074ea2;          /* Logo-Blau – Überschriften, Links */
  --orange: #e2650c;        /* Sticker-Orange, für Icons leicht abgedunkelt (Kontrast ≥ 3:1) */
  --gelb: #fff21b;          /* Logo-Gelb */
  /* Neutrale Töne 1:1 aus der Designvorlage */
  --grau-hell: #edebec;     /* Flächen Willkommen / Galerie / Seitenende */
  --grau-box: #727272;      /* Infoboxen, Footer */
  --text: #333333;
  --weiss: #ffffff;

  --container: 990px;
  --fs-body: 14px;          /* Fließtext Desktop */
  --lh-body: 1.6;
  --font-head: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-body: Tahoma, Verdana, "Segoe UI", Geneva, sans-serif;
}

/* ---------- Basis */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--grau-hell); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--weiss); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; margin: 0; }
p { margin: 0 0 .9em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blau); color: #fff; padding: 10px 16px; font-family: var(--font-head); }
.skip-link:focus { top: 16px; }
.nobr { white-space: nowrap; }

/* ---------- Header (Vorlage: 188 px hoch, Logo + Slogan mittig) */
.site-header { background: var(--weiss); height: 188px; display: flex; align-items: center; justify-content: center; }
.site-header__inner { display: flex; align-items: flex-end; gap: 22px; }
.site-header__logo img { width: 491px; height: auto; }
.site-header__slogan {
  font-family: var(--font-body); font-size: 20px; line-height: 1.2; color: #222;
  margin: 0 0 4px; white-space: nowrap;
}

/* ---------- Header-Banner (Vorlage: 442 px hoch bei 1920 px Breite) */
.banner { margin: 0; background: #dfe6d8; }
.banner img {
  width: 100%; height: clamp(200px, 23vw, 442px);
  object-fit: cover; object-position: 55% 50%;
}

/* ---------- Willkommen (Vorlage: graue Fläche mit Pfeil-Spitze nach unten) */
.welcome { position: relative; background: var(--grau-hell); padding: 70px 0 64px; }
.welcome::after {
  content: ""; position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%);
  border-left: 41px solid transparent; border-right: 41px solid transparent; border-top: 26px solid var(--grau-hell);
}
.welcome__grid { display: grid; grid-template-columns: 1fr 230px; gap: 50px; align-items: start; }
.welcome__title { color: var(--blau); font-size: 36px; line-height: 1; margin-bottom: 28px; }
.welcome__text { max-width: 560px; }
.welcome__text p:last-child { margin-bottom: 0; }
.welcome__sticker { margin-top: 25px; margin-right: 0; }
.welcome__sticker img { width: 230px; }

/* ---------- Leistungen (Vorlage: 2 Spalten, Haken-Icons) */
.services { padding: 52px 0 0; }
.services__title { color: var(--blau); font-size: 28px; line-height: 1.2; text-align: center; }
.services__list {
  list-style: none; margin: 25px 0 0; padding: 0 12px;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(3, auto);
  column-gap: 30px;
}
.services__list li { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.services__list svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--orange); }

/* ---------- Claim "Pflege ist unsere Passion" */
.claim { padding: 82px 0 20px; text-align: center; }
.claim__text { font-size: 40px; line-height: 1.2; color: var(--text); display: inline-block; }
.claim__mark { position: relative; display: inline-block; padding: 0 6px; }
.claim__mark svg {
  position: absolute; left: -8px; top: -12px; width: calc(100% + 16px); height: calc(100% + 20px);
  color: var(--orange); pointer-events: none; overflow: visible;
}

/* ---------- Infoboxen (Vorlage: 3 × 318 × 210 px, Icon-Kreis auf Oberkante) */
.info { padding: 72px 0 0; }
.info__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info__box {
  position: relative; background: var(--grau-box); color: var(--weiss); text-align: center;
  min-height: 210px; padding: 33px 18px 26px;
  font-family: var(--font-head); font-weight: 300; font-size: 16px; line-height: 1.35;
}
.info__icon {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: var(--orange); border: 3px solid var(--weiss);
  display: flex; align-items: center; justify-content: center;
}
.info__icon svg { width: 22px; height: 22px; color: var(--weiss); }
.info__title { font-family: var(--font-head); font-weight: 300; font-size: 20px; line-height: 32px; margin: 0 0 8px; }
.info__title, .info__title a { color: var(--weiss); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.info__box p { margin: 0; }
.info__box a { color: var(--weiss); }
.info__box .info__plain { text-decoration: none; }
.info__box .info__plain:hover { text-decoration: underline; }

/* ---------- Stadt-Link + Karte */
.city { padding: 75px 0 18px; text-align: center; }
.city a { font-family: var(--font-head); font-size: 32px; line-height: 1.2; color: var(--blau); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.map { padding: 0 10px; }
.map__link { position: relative; display: block; height: 510px; overflow: hidden; }
.map__link img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.map__btn {
  position: absolute; left: 21%; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(30,30,30,.88); color: #fff; padding: 2px 8px 3px 10px; border-radius: 2px;
  font-family: var(--font-head); font-size: 27px; line-height: 1.2; white-space: nowrap;
}
.map__btn svg { width: 24px; height: 24px; }
.map__link:hover .map__btn, .map__link:focus-visible .map__btn { background: var(--blau); }

/* ---------- Footer (Vorlage: 50 px, #727272, Text links, Links rechts) */
.site-footer { background: var(--grau-box); color: var(--weiss); margin-top: 10px; }
.site-footer__inner { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px 0; font-size: 15px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 36px; margin-right: 8px; }
.site-footer a { color: var(--weiss); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { text-decoration: underline; }
.page-end { height: 64px; background: var(--grau-hell); }

/* ---------- Unterseiten (Impressum / Datenschutz) */
.legal { background: var(--grau-hell); padding: 70px 0 80px; }
.legal h1 { color: var(--blau); font-size: 36px; line-height: 1.1; margin-bottom: 28px; }
.legal h2 { color: var(--blau); font-size: 22px; line-height: 1.3; margin: 32px 0 10px; }
.legal h3 { font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--text); margin: 22px 0 6px; }
.legal ul { margin: 0 0 .9em; padding-left: 1.3em; }
.legal li { margin-bottom: .35em; }
.legal a { overflow-wrap: anywhere; }
.legal .stand { margin-top: 32px; font-size: .9em; color: #555; }
.legal .back { display: inline-block; margin-top: 30px; font-family: var(--font-head); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1060px) {
  .container { padding: 0 24px; }
  .site-header__logo img { width: 400px; }
  .site-header__slogan { font-size: 17px; }
  .map__btn { font-size: 22px; }
}

@media (max-width: 860px) {
  .site-header { height: auto; padding: 28px 16px 22px; }
  .site-header__inner { flex-direction: column; align-items: center; gap: 12px; }
  .site-header__logo img { width: min(420px, 86vw); }
  .site-header__slogan { white-space: normal; text-align: center; }
  .info__grid { grid-template-columns: 1fr; gap: 46px; max-width: 420px; margin: 0 auto; }
  .info__box { min-height: 0; }
}

/* Smartphone: Fließtext 16 px */
@media (max-width: 767px) {
  :root { --fs-body: 16px; }
  .container { padding: 0 16px; }
  .site-header__slogan { font-size: 16px; }
  .welcome { padding: 44px 0 52px; }
  .welcome__grid { grid-template-columns: 1fr; gap: 26px; }
  .welcome__title { font-size: 26px; line-height: 1.15; margin-bottom: 18px; }
  .welcome__text { max-width: none; }
  .welcome__sticker { margin: 0 auto; }
  .welcome__sticker img { width: 190px; }
  .services { padding-top: 48px; }
  .services__title { font-size: 22px; }
  .services__list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; padding: 0; }
  .claim { padding: 56px 0 12px; }
  .claim__text { font-size: 26px; }
  .info { padding-top: 54px; }
  .info__box { font-size: 16px; }
  .info__title { font-size: 19px; line-height: 28px; }
  .city { padding: 56px 0 16px; }
  .city a { font-size: 21px; }
  .map { padding: 0; }
  .map__link { height: 300px; }
  .map__link img { object-position: 50% 50%; }
  .map__btn { left: 50%; top: auto; bottom: 18px; transform: translateX(-50%); font-size: 18px; padding: 6px 12px; }
  .map__btn svg { width: 18px; height: 18px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; font-size: 14px; }
  .site-footer nav { gap: 24px; margin: 0; }
  .site-footer a { display: inline-block; padding: 6px 0; }
  .legal { padding: 44px 0 56px; }
  .legal h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
}

@media print {
  html, body, .welcome { background: #fff; }
}
