/* ========================================================================== 
   HÄUSLICHE PFLEGE PRIVAT GMBH – GEMEINSAMES STYLESHEET
   01 Grundeinstellungen  | 02 Schriften / Elemente | 03 Kopfbereich
   04 Einstieg           | 05 Philosophie          | 06 Leistungen
   07 Kontakt            | 08 Fußbereich           | 09 Responsive / Druck
   10 Aktive Navigation  | 11 Unterseiten          | 12 Tabellen / Inhalte
   13 Unterseiten mobil  | 14 Unterseiten im Druck

   Alle Farben, Abstände und Schriften können hier zentral angepasst werden.
   Keine externen Schriftanbieter und keine CSS-Framework-Abhängigkeiten.
   ========================================================================== */

/* Lokale Schriften: Tinos ähnelt Times, Arimo ähnelt Arial.
   Die Dateien und Lizenztexte werden mitgeliefert; keine externen Aufrufe. */
@font-face {
  font-family: 'Tinos'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../schriften/tinos-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Tinos'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../schriften/tinos-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Arimo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../schriften/arimo-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Arimo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../schriften/arimo-latin-700-normal.woff2') format('woff2');
}

/* 01 – GRUNDEINSTELLUNGEN --------------------------------------------------- */
:root {
  color-scheme: light;
  /* GRÜNE VARIANTE: #1d6a29 ist der häufigste Grünton in Bild-26-grün.png.
     #d5f1d3 stammt aus den hellen Kreisen von Bild-27-grün(1).png.
     Weitere Töne sind für Kontrast, Hintergründe und Hover davon abgeleitet.
     Die gelieferten PNGs bleiben unverändert, ohne Filter oder Farbmischung. */
  --color-heading: #163e24;
  --color-accent: #1d6a29;
  --color-accent-hover: #165520;
  --color-text: #3f4e43;
  --color-muted: #4c6652;
  --color-icon-light: #d5f1d3;
  --color-pale: #edf8ec;
  --color-pale-light: #f3faf2;
  --color-pale-strong: #e7f5e4;
  --color-line: #d6e6d3;
  --color-white: #fff;
  --hero-wash-start: rgba(237, 248, 236, .65);
  --hero-wash-end: rgba(237, 248, 236, .25);
  --hero-tablet-start: rgba(237, 248, 236, .90);
  --hero-tablet-end: rgba(237, 248, 236, .70);
  --shadow-card: 0 4px 14px rgba(22, 62, 36, .03);
  --shadow-navigation: 0 12px 18px rgba(22, 62, 36, .07);
  --font-body: 'Arimo', Arial, Helvetica, sans-serif;
  --font-heading: 'Tinos', Georgia, 'Times New Roman', serif;
  --content-width: 80rem;
  --wide-width: 84rem;
  --page-gutter: clamp(1.25rem, 5.6vw, 5rem);
  --radius: .65rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font: 400 1.125rem / 1.42 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--color-accent); }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 5px; }
::selection { color: var(--color-heading); background: var(--color-icon-light); }
.container { width: min(calc(100% - 2 * var(--page-gutter)), var(--content-width)); margin-inline: auto; }
.container--wide { width: min(calc(100% - clamp(2.5rem, 7.5vw, 6.75rem)), var(--wide-width)); }
.skip-link {
  position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .75rem 1rem;
  transform: translateY(-180%); background: var(--color-heading); color: white;
}
.skip-link:focus { transform: translateY(0); color: white; }

/* 02 – TYPOGRAFIE UND WIEDERKEHRENDE ELEMENTE ------------------------------- */
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--color-heading); }
h1, h2 { font-family: var(--font-heading); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.12; letter-spacing: -.045em; }
p + p { margin-top: .8rem; }
.eyebrow {
  margin: 0 0 .7rem; color: var(--color-muted); font-family: var(--font-body);
  font-size: .875rem; font-weight: 600; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  min-height: 3.65rem; padding: .8rem 2rem; border: 1px solid transparent;
  border-radius: .65rem; color: white; background: var(--color-accent);
  font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.button:hover { background: var(--color-accent-hover); color: white; }
.button__arrow { font-size: 1.55rem; line-height: 1; font-weight: 400; }
.button--outline { color: var(--color-heading); border-color: var(--color-accent); background: rgba(255, 255, 255, .18); font-weight: 400; }
.button--outline:hover { color: var(--color-heading); background: var(--color-pale-strong); border-color: var(--color-heading); }
.button--small { min-height: 2.9rem; padding: .65rem 1.7rem; border-radius: 99rem; background: var(--color-accent); }

/* 03 – KOPFBEREICH, WORTMARKE UND DESKTOP-NAVIGATION ------------------------ */
.site-header { position: relative; z-index: 10; background: white; }
.site-header__inner { min-height: 6.2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; max-width: 100%; color: var(--color-heading); text-decoration: none; }
.brand:hover { color: var(--color-heading); }
.brand__name { font: 700 clamp(1.5rem, 2.48vw, 2.125rem) / .98 var(--font-heading); letter-spacing: -.055em; }
.brand__mark { width: clamp(3.7rem, 6.15vw, 5.4rem); max-width: 25%; height: auto; }
.primary-navigation { max-width: 100%; }
.primary-navigation ul { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.5rem); list-style: none; padding: 0; margin: 0; }
.primary-navigation a, .navigation-planned {
  display: inline-block; padding: .8rem 0; border-bottom: 2px solid transparent;
  font-size: 1rem; white-space: nowrap; text-decoration: none;
}
.primary-navigation a:hover { border-bottom-color: var(--color-icon-light); }
.primary-navigation [aria-current="page"] { color: var(--color-accent); font-weight: 700; border-bottom-color: var(--color-accent); }
.navigation-planned { cursor: default; }
.nav-toggle { display: none; }

/* 04 – EINSTIEG / HERO ----------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--color-pale); }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--hero-wash-start), var(--hero-wash-end) 39%, transparent 64%);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(3rem, 4.8vw, 4.4rem) clamp(2.6rem, 4vw, 3.7rem); }
.hero__copy { width: 48%; max-width: 39rem; }
.hero .eyebrow { margin-bottom: 1rem; font-size: .875rem; letter-spacing: .19em; }
.hero h1 { font-size: clamp(3.1rem, 5.65vw, 5.05rem); line-height: .96; letter-spacing: -.045em; }
.hero__subtitle { margin-top: .55rem; color: var(--color-accent); font: 400 clamp(1.65rem, 3vw, 2.55rem) / 1.14 var(--font-heading); letter-spacing: -.025em; }
.hero__text { max-width: 36rem; margin-top: 1.15rem; font-size: 1.125rem; line-height: 1.23; }
.hero__text p + p { margin-top: .8rem; }
.hero__contact { color: var(--color-heading); }
.hero__contact a { text-decoration: none; overflow-wrap: anywhere; }
.hero__contact a:hover { text-decoration: underline; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.05rem; margin-top: 1.3rem; }

/* 05 – PHILOSOPHIE UND DREI VERTRAUENSARGUMENTE ----------------------------- */
.philosophy { display: grid; grid-template-columns: 38% minmax(0, 1fr); column-gap: clamp(2rem, 3.2vw, 3rem); max-width: 100rem; margin: 1.75rem auto 1.2rem; }
.philosophy__photo { min-height: 100%; }
.philosophy__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.philosophy__copy { align-self: center; padding: 1.1rem clamp(2rem, 5vw, 5rem) 1.6rem 0; }
.philosophy h2 { margin-bottom: 1rem; }
.philosophy__copy > p:not(.eyebrow) { line-height: 1.35; }
.values { display: flex; flex-wrap: wrap; row-gap: 1rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.values__item { display: flex; flex: 1 1 9rem; min-width: 0; align-items: flex-start; gap: .8rem; padding-inline: 1.1rem; border-left: 1px solid var(--color-line); }
.values__item > div { min-width: 0; }
.values__item:first-child { padding-left: 0; border-left: 0; }
.values__item:last-child { flex: 1.4 1 13rem; padding-right: 0; }
.values h3 { margin: .3rem 0 .35rem; font: 700 1rem / 1.2 var(--font-heading); letter-spacing: -.025em; }
.values p { font-size: .875rem; line-height: 1.3; }

/* Unveränderte grüne PNG-Bildstreifen: Jede Position zeigt ein geliefertes Symbol. */
.symbol { display: block; flex-shrink: 0; background-repeat: no-repeat; background-size: 300% 100%; }
.symbol--first { background-position: left center; }
.symbol--second { background-position: center; }
.symbol--third { background-position: right center; }
.symbol--values { width: 4.25rem; height: 4.25rem; margin: -.2rem -.2rem 0 -.35rem; background-image: url('../bilder/pflege-erfahrung-zuverlaessigkeit-betreuung-symbole-gruen.png'); border-radius: 50%; }
.symbol--services { width: 6rem; height: 6rem; background-image: url('../bilder/pflegedienst-beatmung-service-symbole-gruen.png'); border-radius: 50%; background-color: white; }

/* 06 – LEISTUNGSKARTEN ----------------------------------------------------- */
.services { padding: 1.7rem 0 1.8rem; background: linear-gradient(105deg, var(--color-pale), var(--color-pale-light) 55%, var(--color-pale-strong)); }
.section-intro { text-align: center; margin-bottom: 1.7rem; }
.section-intro .eyebrow { margin-bottom: .35rem; color: var(--color-accent); }
.section-intro > p:last-child { margin-top: .4rem; color: var(--color-muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.service-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-card); scroll-margin-top: 1.5rem; }
.service-card__photo { aspect-ratio: 1.72; overflow: hidden; }
.service-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.service-card__photo--ventilation img { object-position: center 42%; }
/* Nur das neue Foto der Pflegedienst-Kachel: Gesichter im oberen Bildbereich. */
.service-card__photo--care img { object-position: center 12%; }
.service-card__body { position: relative; display: flex; flex-direction: column; flex-grow: 1; align-items: flex-start; padding: 3.65rem 1.85rem 1.65rem; }
.service-card .symbol { position: absolute; top: -3rem; left: 1.35rem; }
.service-card h3 { font: 700 clamp(1.5rem, 2.35vw, 2rem) / 1.14 var(--font-heading); letter-spacing: -.04em; margin: 0 0 .65rem; }
.service-card p { margin: 0 0 1.05rem; line-height: 1.35; }
.service-card .button { margin-top: auto; max-width: 100%; flex-wrap: wrap; padding-inline: 8%; }

/* 07 – KONTAKTBAND --------------------------------------------------------- */
/* Kein mix-blend-mode: Der Grünton des gelieferten Telefon-Symbols bleibt erhalten. */
.contact-section { padding: .8rem 0 1.6rem; }
.contact-band { display: flex; align-items: center; gap: 2.5rem; padding: 1.1rem 2.65rem; border-radius: .8rem; background: var(--color-pale-strong); }
.contact-band__icon { width: 6.6rem; height: 6.6rem; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.contact-band .eyebrow { color: var(--color-accent); font-size: .875rem; letter-spacing: .12em; margin-bottom: .55rem; }
.contact-band__lead { color: var(--color-heading); font-size: 1.4rem; line-height: 1.3; }
.contact-band__lead a { text-decoration: none; font-weight: 500; }
.contact-band__lead a:hover { text-decoration: underline; }
.contact-band p + p { color: var(--color-muted); margin-top: .45rem; }

/* 08 – FUSSBEREICH --------------------------------------------------------- */
.site-footer { padding: 1.3rem 0 2.2rem; border-top: 1px solid var(--color-line); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0; }
.footer-contact { padding-right: 1.7rem; }
.brand--footer { gap: .45rem; margin-bottom: 1rem; }
.brand--footer .brand__name { font-size: 1.65rem; }
.brand--footer .brand__mark { width: 4rem; }
.site-footer address { font-size: 1rem; font-style: normal; line-height: 1.28; }
.footer-contact__details { display: grid; grid-template-columns: auto 1fr; gap: 0 .5rem; margin: .65rem 0 0; }
.footer-contact__details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.footer-contact__details a { text-decoration: none; }
.footer-contact__details a:hover { text-decoration: underline; }
.footer-column { min-width: 0; padding: .45rem clamp(1rem, 3vw, 2.7rem); border-left: 1px solid var(--color-line); }
.footer-column:last-child { padding-right: 0; }
.footer-column h2 { margin-bottom: 1.2rem; font: 700 1rem / 1.35 var(--font-body); letter-spacing: -.025em; }
.opening-hours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem 1.3rem; margin: 0; font-size: 1rem; line-height: 1.25; }
.opening-hours dd { margin: 0; }
.emergency { display: flex; align-items: center; gap: 1rem; padding-top: .25rem; }
.emergency img { width: 3rem; height: 3rem; object-fit: contain; }
.emergency p { color: var(--color-accent); font-size: 1rem; line-height: 1.4; font-weight: 500; }
.footer-legal ul { list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.footer-legal li + li { margin-top: .55rem; }
.footer-legal span { text-decoration: underline; text-underline-offset: .12em; cursor: default; }
.footer-legal a { text-decoration: underline; text-underline-offset: .12em; }

/* 09 – RESPONSIVE ANPASSUNGEN --------------------------------------------- */
/* Desktop ab 1024 px: Der gesamte Inhalt zwischen Kopfbereich und Footer
   steht mittig auf 80 % der Fensterbreite. Der weiße Seitenhintergrund bildet
   die jeweils 10 % breiten Außenränder. Mobil und Tablet bleiben unverändert. */
@media screen and (min-width: 64rem) {
  /* Gemeinsame Außenkanten: Logo, Hauptinhalt und Footer stehen auf 80 %.
     Nur die inneren Container werden begrenzt. Der äußere Footer bleibt
     fensterbreit; dadurch läuft seine obere Trennlinie weiterhin über 100 %. */
  .site-header .site-header__inner,
  .site-footer .footer-grid,
  #hauptinhalt { width: 80%; margin-inline: auto; }

  /* Die Navigation behält lesbare Schriftgrößen und großzügige Abstände.
     Wird es eng, darf die komplette Navigation unter das Logo umbrechen. */
  .site-header .site-header__inner { gap: .75rem clamp(1.5rem, 2vw, 2.5rem); padding-block: 1rem; }
  .site-header .primary-navigation { margin-left: auto; }
  .site-header .primary-navigation ul { gap: .5rem clamp(1.5rem, 2vw, 2.5rem); }

  /* Die kurze Rechtsspalte erhält ihre tatsächliche Inhaltsbreite. So endet
     der sichtbare Footer-Inhalt rechts an derselben Kante wie der Content.
     Bürozeiten bleiben zusammenhängend, die übrigen Spalten teilen den Platz. */
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1.4fr) max-content minmax(0, 1.2fr) max-content; }
  .site-footer .footer-contact { min-width: 0; padding-right: clamp(1rem, 2vw, 2.7rem); }
  .site-footer .footer-column { padding-inline: clamp(1rem, 2vw, 2.7rem); }
  .site-footer .footer-column:last-child { padding-right: 0; }
  .site-footer .opening-hours { grid-template-columns: max-content max-content; }

  /* Bei starker Schriftvergrößerung erhalten die Footer-Inhalte zwei Reihen.
     Die rem-Grenze wächst mit der Schrift; bei normaler Desktop-Schriftgröße
     bleiben alle vier Spalten nebeneinander und die Außenkanten unverändert. */
  .site-footer { container: fussbereich / inline-size; }
  @container fussbereich (max-width: 60rem) {
    .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .site-footer .footer-column:nth-child(3) { border-left: 0; padding-left: 0; }
  }

  #hauptinhalt {
    container: seiteninhalt / inline-size;
    font-size: clamp(1rem, 1vw, 1.125rem);
  }

  /* Schriftgrößen und Innenabstände richten sich jetzt nach der Contentbreite.
     cqw = ein Prozent der Breite des darüberliegenden Inhaltscontainers.
     Kopfbereich und Footer sind von diesen Regeln ausdrücklich ausgenommen. */
  #hauptinhalt .container { --page-gutter: clamp(1.25rem, 5.6cqw, 5rem); }
  #hauptinhalt .container--wide { width: min(calc(100% - clamp(2.5rem, 7.5cqw, 6.75rem)), var(--wide-width)); }
  #hauptinhalt .philosophy h2, #hauptinhalt .section-intro h2 { font-size: clamp(2rem, 3.3cqw, 2.9rem); }
  #hauptinhalt .hero__inner { padding-block: clamp(2rem, 4.8cqw, 4.4rem) clamp(2rem, 4cqw, 3.7rem); }
  #hauptinhalt .hero h1 { font-size: clamp(2.5rem, 5.65cqw, 5.05rem); }
  #hauptinhalt .hero__subtitle { font-size: clamp(1.5rem, 3cqw, 2.55rem); }
  #hauptinhalt .hero__text { font-size: clamp(1rem, 1.25cqw, 1.125rem); }
  #hauptinhalt .service-card h3 { font-size: clamp(1.5rem, 2.35cqw, 2rem); }

  /* Vorhandene kompakte Desktop-Abstände greifen nach der verfügbaren
     Inhaltsbreite, nicht erst nach der gesamten Fensterbreite. */
  @container seiteninhalt (max-width: 84rem) {
    #hauptinhalt .hero__copy { width: 50%; }
    #hauptinhalt .hero__text { line-height: 1.35; }
    #hauptinhalt .hero__actions { gap: .8rem; }
    #hauptinhalt .hero__actions .button { min-height: 3rem; padding: .7rem 1rem; font-size: .875rem; }
    #hauptinhalt .philosophy { column-gap: 2rem; }
    #hauptinhalt .philosophy__copy { padding-right: 2.5rem; }
    #hauptinhalt .values { margin-top: 1.55rem; }
    #hauptinhalt .values__item { flex-basis: 10.5rem; gap: .55rem; padding-inline: .7rem; }
    #hauptinhalt .values__item:first-child { padding-left: 0; }
    #hauptinhalt .values__item:last-child { flex-basis: 14rem; padding-right: 0; }
    #hauptinhalt .values h3 { font-size: .875rem; }
    #hauptinhalt .symbol--values { width: 3.5rem; height: 3.5rem; }
    #hauptinhalt .service-card__body { padding: 3.1rem 1.4rem 1.4rem; }
    #hauptinhalt .symbol--services { width: 5.2rem; height: 5.2rem; }
    #hauptinhalt .service-card .symbol { top: -2.6rem; left: 1rem; }
    #hauptinhalt .button--small { padding-inline: 1.3rem; font-size: .9375rem; }
    #hauptinhalt .contact-band { gap: 2rem; padding-inline: 2rem; }
    #hauptinhalt .contact-band__lead { font-size: 1.15rem; }
    #hauptinhalt .contact-band__icon { width: 5.5rem; height: 5.5rem; }
  }

}

/* Kleinere Desktops: Abstände reduzieren, ohne den Aufbau zu verändern. */
@media (max-width: 75rem) {
  body { font-size: 1rem; }
  .site-header__inner { min-height: 5.1rem; gap: 1rem; }
  .primary-navigation ul { gap: 1.35rem; }
  .primary-navigation a, .navigation-planned { font-size: .875rem; }
  .hero__copy { width: 50%; }
  .hero__text { font-size: 1rem; line-height: 1.26; }
  .hero__actions { gap: .8rem; }
  .hero__actions .button { min-height: 3rem; padding: .7rem 1.35rem; }
  .philosophy { column-gap: 2rem; }
  .philosophy__copy { padding-right: 2.5rem; }
  .values { margin-top: 1.55rem; }
  .values__item { gap: .55rem; padding-inline: .7rem; }
  .values h3 { font-size: .875rem; }
  .symbol--values { width: 3.5rem; height: 3.5rem; }
  .service-card__body { padding: 3.1rem 1.4rem 1.4rem; }
  .symbol--services { width: 5.2rem; height: 5.2rem; }
  .service-card .symbol { top: -2.6rem; left: 1rem; }
  .button--small { padding-inline: 1.3rem; font-size: .9375rem; }
  .contact-band { gap: 2rem; padding-inline: 2rem; }
  .contact-band__lead { font-size: 1.15rem; }
  .contact-band__icon { width: 5.5rem; height: 5.5rem; }
  .footer-column { padding-inline: 1.15rem; }
  .footer-contact { padding-right: 1rem; }
  .brand--footer .brand__name { font-size: 1.35rem; }
  .brand--footer .brand__mark { width: 3.3rem; }
  .site-footer address, .opening-hours, .footer-legal ul, .emergency p { font-size: .875rem; }
  .footer-column h2 { font-size: .875rem; }
  .opening-hours { gap: .5rem 1rem; }
  .emergency { gap: .7rem; }
}

/* Tablets: Navigation klappt auf; Philosophie und Footer erhalten mehr Platz. */
@media (max-width: 56.25rem) {
  .values { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 1.4rem; }
  .values__item { border-left: 0; padding: 0; align-items: center; }
  .values h3 { margin: 0 0 .2rem; }
  .values__item > div { min-width: 0; }
  .values p { max-width: 22rem; }
  .symbol--values { width: 3.2rem; height: 3.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 0; }
  .footer-contact { padding-right: 2rem; }
  .footer-column { padding-inline: 2rem; }
  .footer-column:nth-child(3) { border-left: 0; padding-left: 0; }
  .opening-hours { max-width: 15rem; }
}

@media (max-width: 51.25rem) {
  :root { --page-gutter: 1.5rem; }
  .site-header__inner { position: relative; min-height: 5.2rem; flex-wrap: wrap; padding-block: .8rem; }
  .brand__name { font-size: 1.65rem; }
  .brand__mark { width: 4rem; }
  .primary-navigation { width: 100%; }
  .primary-navigation ul { gap: .1rem 1rem; flex-wrap: wrap; }
  .primary-navigation a, .navigation-planned { font-size: 1rem; }
  .js .primary-navigation { display: none; position: absolute; top: 100%; left: calc(-1 * var(--page-gutter)); width: calc(100% + 2 * var(--page-gutter)); padding: .65rem var(--page-gutter) 1rem; background: white; border-top: 1px solid var(--color-line); box-shadow: var(--shadow-navigation); }
  .js .primary-navigation.is-open { display: block; }
  .js .primary-navigation ul { display: block; }
  .js .primary-navigation a, .js .navigation-planned { display: block; width: fit-content; padding: .65rem 0; }
  .js .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .55rem .3rem; border: 0; background: white; color: var(--color-heading); font-size: .875rem; }
  .nav-toggle__lines { width: 1.35rem; height: .9rem; border-block: 2px solid currentColor; position: relative; }
  .nav-toggle__lines::after { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: currentColor; transform: translateY(-50%); }
  .hero__copy { width: 55%; }
  .hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.5rem); }
  .hero__subtitle { font-size: 1.65rem; }
  .hero .eyebrow { font-size: .8125rem; }
  .hero::after { background: linear-gradient(90deg, var(--hero-tablet-start) 0%, var(--hero-tablet-end) 48%, transparent 76%); }
  .hero__actions .button { padding-inline: 1rem; }
  .philosophy { grid-template-columns: 34% 1fr; column-gap: 1.5rem; }
  .philosophy__copy { padding-right: 1.5rem; }
  .philosophy h2 { font-size: 2rem; }
  .service-grid { gap: .9rem; }
  .service-card__body { padding: 2.7rem 1rem 1.15rem; }
  .service-card h3 { font-size: 1.45rem; }
  .service-card .symbol { left: .6rem; }
  .service-card .button { gap: .55rem; padding-inline: 1rem; font-size: .875rem; }
  .contact-band { padding: 1.3rem 1.5rem; gap: 1.5rem; }
  .contact-band__break { display: none; }
}

/* Smartphones: Foto oberhalb der Einleitung, Karten und Inhalte untereinander. */
@media (max-width: 40rem) {
  :root { --page-gutter: 1.25rem; }
  body { font-size: 1rem; }
  .container--wide { width: calc(100% - 2.5rem); }
  .site-header__inner { min-height: 4.8rem; gap: .6rem; }
  .brand { gap: .4rem; }
  .brand__name { font-size: 1.3rem; }
  .brand__mark { width: 3.4rem; }
  .hero { display: flex; flex-direction: column; background: var(--color-pale-light); }
  .hero__image { position: static; width: 160%; max-width: none; align-self: flex-end; height: clamp(15rem, 70vw, 24rem); object-position: right top; }
  .hero::after { display: none; }
  .hero__inner { padding-block: 1.65rem 2rem; }
  .hero__copy { width: 100%; max-width: none; }
  .hero .eyebrow { font-size: .75rem; letter-spacing: .13em; margin-bottom: .75rem; }
  .hero h1 { font-size: clamp(2.45rem, 9.8vw, 3.7rem); line-height: 1; }
  .hero__subtitle { margin-top: .65rem; font-size: clamp(1.5rem, 5.7vw, 2rem); }
  .hero__text { line-height: 1.5; margin-top: 1.2rem; max-width: none; }
  .hero__text p + p { margin-top: .9rem; }
  .hero__contact { line-height: 1.5; }
  .hero__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .7rem; margin-top: 1.3rem; }
  .hero__actions .button { font-size: .875rem; min-height: 3rem; gap: .6rem; padding-inline: .65rem; }
  .philosophy { display: flex; flex-direction: column; margin-top: 1.4rem; margin-bottom: 1.8rem; gap: 1.5rem; }
  .philosophy__photo { width: calc(100% - 2.5rem); margin-inline: auto; height: 15rem; }
  .philosophy__photo img { object-position: center; }
  .philosophy__copy { padding: 0 1.25rem; align-self: stretch; }
  .philosophy h2 { font-size: 2rem; line-height: 1.14; margin-bottom: .9rem; }
  .philosophy__copy > p:not(.eyebrow) { line-height: 1.5; }
  .values { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
  .values__item { gap: 1rem; }
  .symbol--values { width: 3.8rem; height: 3.8rem; }
  .values h3 { font-size: 1rem; }
  .values p { font-size: .9375rem; }
  .services { padding-block: 1.8rem; }
  .section-intro { margin-bottom: 1.4rem; }
  .section-intro h2 { font-size: 2.2rem; }
  .section-intro > p:last-child { margin-top: .65rem; }
  .service-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .service-card__photo { aspect-ratio: 1.75; }
  .service-card__body { padding: 3.2rem 1.5rem 1.5rem; }
  .service-card h3 { font-size: 1.85rem; }
  .service-card .symbol { left: 1.15rem; }
  .service-card .button { font-size: 1rem; padding-inline: 1.6rem; }
  .contact-section { padding: 1.25rem 0 1.6rem; }
  .contact-band { align-items: flex-start; gap: .75rem; padding: 1.3rem 1rem; }
  .contact-band__icon { width: 3.8rem; height: 3.8rem; }
  .contact-band .eyebrow { font-size: .75rem; }
  .contact-band__lead { font-size: 1rem; line-height: 1.5; }
  .contact-band a { overflow-wrap: anywhere; }
  .contact-band p + p { margin-top: .75rem; font-size: .9375rem; line-height: 1.45; }
  .site-footer { padding: 1.6rem 0 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-contact { padding-right: 0; }
  .brand--footer { margin-bottom: 1rem; }
  .brand--footer .brand__name { font-size: 1.6rem; }
  .brand--footer .brand__mark { width: 4.1rem; }
  .site-footer address { font-size: 1rem; line-height: 1.45; }
  .footer-contact__details { grid-template-columns: auto 1fr; width: fit-content; }
  .footer-column, .footer-column:nth-child(3), .footer-column:last-child { padding: 1.25rem 0 0; border-left: 0; border-top: 1px solid var(--color-line); }
  .footer-column h2 { font-size: 1rem; margin-bottom: .85rem; }
  .opening-hours, .footer-legal ul, .emergency p { font-size: 1rem; }
  .opening-hours { max-width: 19rem; }
  .emergency { gap: 1rem; }
  .footer-legal ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
  .footer-legal li + li { margin: 0; }
}

/* Sehr schmale Geräte und starke Textvergrößerung. */
@media (max-width: 22rem) {
  .brand__name { font-size: 1.14rem; }
  .brand__mark { width: 2.7rem; }
  .nav-toggle__label { font-size: .8125rem; }
  .hero h1 { font-size: 2.15rem; }
  .hero__actions { grid-template-columns: 1fr; }
  .contact-band { flex-direction: column; gap: 1rem; }
}

/* Bewegungsarme Bedienung respektieren. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Druckansicht: Kontaktdaten und Texte bleiben lesbar. */
@media print {
  body { color: #111; font-size: 11pt; }
  .nav-toggle, .primary-navigation, .hero__actions, .service-card .button, .skip-link { display: none !important; }
  .hero__image, .hero::after { display: none; }
  .hero__copy { width: 100%; max-width: none; }
  .hero__inner { padding-block: 1rem; }
  .hero h1 { font-size: 30pt; }
  .services, .contact-band { background: white; }
  .service-card { break-inside: avoid; box-shadow: none; }
  .philosophy { grid-template-columns: 30% 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  a { text-decoration: none; }
}

/* 10 – AKTIVE HAUPTNAVIGATION -------------------------------------------- */
/* Die Hauptnavigation bleibt ein gemeinsamer PHP-Include. Das data-section
   am body markiert den aktuellen Bereich auch ohne JavaScript. Das Skript
   ergänzt aria-current für Screenreader. Auf Unterseiten bleibt der Bereich
   (z. B. Service) erkennbar, ohne zusätzliche Menüpunkte oben einzuschieben. */
body[data-section="startseite"] [data-nav="startseite"],
body[data-section="pflegedienst"] [data-nav="pflegedienst"],
body[data-section="pv"] [data-nav="pv"],
body[data-section="service"] [data-nav="service"],
body[data-section="jobs"] [data-nav="jobs"],
body[data-section="kontakt"] [data-nav="kontakt"] {
  color: var(--color-accent); font-weight: 700; border-bottom-color: var(--color-accent);
}

/* 11 – UNTERSEITEN: SEITENKOPF, BEREICHSNAVIGATION UND LESEBREITE ----------- */
/* Die 80-%-Außenbreite kommt unverändert aus Abschnitt 09. Diese Regeln
   betreffen nur Elemente innerhalb von main; Logo und Footer bleiben gleich. */
.subpage-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); background: var(--color-pale); }
.subpage-hero__copy { padding: clamp(1.5rem, 3.5vw, 3.8rem); align-self: center; min-width: 0; }
.subpage-hero__image { width: 100%; height: 100%; min-height: 21rem; max-height: 30rem; object-fit: cover; object-position: var(--subpage-image-position, center 38%); }
/* Die großen Titel sind gegenüber der ersten Unterseitenfassung um rund
   12 % reduziert. H2 im Text bleiben kleiner; .hero h1 der Startseite bleibt gleich. */
.subpage-hero h1 { margin: 0; font-size: clamp(2.1rem, 3.15vw, 3.675rem); line-height: 1.07; letter-spacing: -.04em; hyphens: auto; overflow-wrap: anywhere; }
/* Bildausschnitte nur für Unterseiten: Die Originalbilder bleiben vollständig.
   Bei Wundversorgung liegt der Fokus auf Händen und Verband; beim Einkauf
   auf den Gesichtern. Kleine Displays können einen eigenen Fokus verwenden. */
body[data-page="behandlungspflege-saarlouis"] { --subpage-image-position: 50% 65%; --subpage-image-position-mobile: 50% 85%; }
body[data-page="grundpflege-zuhause"] { --subpage-image-position: 50% 25%; }
body[data-page="individuelle-pflegeleistungen"] { --subpage-image-position: 50% 15%; }
body[data-page="pflegeversicherung-leistungen"] { --subpage-image-position: 55% 35%; }
.subpage-hero__lead { margin-top: 1.15rem; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.5; max-width: 44ch; }
.subpage-hero--text { grid-template-columns: 1fr; }
.subpage-hero--text .subpage-hero__copy { padding-block: 2rem 2.5rem; }
.subpage-hero--text .subpage-hero__lead { max-width: none; }
.breadcrumb { margin-bottom: 2rem; font-size: .875rem; line-height: 1.5; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; gap: .4rem .65rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: .65rem; color: var(--color-muted); }
.breadcrumb a { text-decoration-thickness: 1px; }
.breadcrumb [aria-current] { color: var(--color-muted); }
.section-navigation { border-bottom: 1px solid var(--color-line); padding: .75rem clamp(1.25rem, 3.5vw, 3.8rem); }
.section-navigation ul { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.section-navigation a { display: block; padding: .65rem 0; border-bottom: 2px solid transparent; text-decoration: none; font-size: 1rem; }
.section-navigation a:hover { border-bottom-color: var(--color-icon-light); }
.section-navigation [aria-current] { font-weight: 700; color: var(--color-accent); border-bottom-color: var(--color-accent); }
.subpage-content { width: min(calc(100% - 2.5rem), 76ch); margin: clamp(1.8rem, 3vw, 3rem) auto; line-height: 1.65; }
.subpage-content--wide { width: calc(100% - clamp(2.5rem, 7vw, 7.6rem)); max-width: 90rem; }
.content-section { margin-block: 0 2.4rem; scroll-margin-top: 1.5rem; }
.content-section + .content-section { padding-top: 1.8rem; border-top: 1px solid var(--color-line); }
.content-section h2 { font-size: clamp(1.75rem, 2.4vw, 2.35rem); line-height: 1.2; letter-spacing: -.025em; margin-bottom: 1rem; hyphens: auto; }
.content-section h3 { font-size: 1.2rem; margin: 1.8rem 0 1rem; }
.content-section > p, .content-section > .text-list { max-width: 76ch; }
.text-list { padding-left: 1.4rem; margin: 1rem 0; }
.text-list li { padding-left: .3rem; margin-bottom: .65rem; }
.text-list li::marker { color: var(--color-accent); font-weight: 700; }
.text-link { display: inline-block; color: var(--color-accent); font-weight: 700; margin-block: .65rem; }
.text-link span { display: inline-block; margin-left: .35rem; }
.content-section .button { margin-top: 1rem; max-width: 100%; text-align: center; }

/* Ergänzende Fotos bleiben dem jeweiligen Textabschnitt zugeordnet.
   Einzelbilder zeigen das vollständige Motiv; zwei Haushaltsmotive stehen
   nebeneinander und werden auf kleinen Displays untereinander angeordnet. */
.subpage-photo { max-width: 42rem; margin: 1.5rem 0 0; }
.subpage-photo img { display: block; width: 100%; height: auto; border-radius: .35rem; }
.subpage-photo figcaption { margin-top: .5rem; color: var(--color-muted); font-size: .9375rem; line-height: 1.5; }
.subpage-photo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 1.5rem 0 .5rem; }
.subpage-photo-row .subpage-photo { margin: 0; min-width: 0; }
.subpage-photo-row img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }

/* Inhaltsverzeichnis: bewusst natives details, damit es ohne JavaScript
   per Maus, Touch und Tastatur funktioniert. Keine Texte werden versteckt. */
.contents-index { padding: 1rem 1.25rem; margin-bottom: 2.5rem; border-left: 3px solid var(--color-accent); background: var(--color-pale-light); }
.contents-index summary { color: var(--color-heading); font-weight: 700; cursor: pointer; }
.contents-index ul { margin: 1rem 0 .25rem; padding-left: 1.3rem; }
.contents-index li { margin-bottom: .65rem; }
.contents-index a { text-decoration-thickness: 1px; }

/* 12 – TABELLEN, EINZUGSGEBIET, BEWERBUNG UND REDAKTIONELLE STELLEN ---------- */
/* Tabellen bleiben echte HTML-Tabellen mit caption, thead und scope.
   Der Scrollbereich begrenzt breite Tabellen auf das Smartphone-Display.
   Zahlen bleiben exakt erhalten: kein Runden, keine Ergänzung leerer Preise. */
.table-scroll { max-width: 100%; margin: 1.2rem 0 1.5rem; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--color-line); border-radius: .35rem; }
.price-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; text-align: left; }
.price-table caption { text-align: left; padding: 1rem 1.15rem; font-weight: 700; color: var(--color-heading); background: var(--color-pale-light); }
.price-table th, .price-table td { padding: .8rem 1rem; vertical-align: top; border-bottom: 1px solid var(--color-line); }
.price-table thead th { color: white; background: var(--color-accent); font-weight: 700; }
.price-table tbody th { font-weight: 400; min-width: 4rem; }
.price-table tbody tr:nth-child(even) { background: var(--color-pale-light); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table .numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table td { min-width: 7rem; }
.price-table td:nth-child(2) { min-width: 15rem; }
/* Kleine Tabellen mit nur zwei Spalten benötigen keinen breiten Textblock. */
.price-table tr > :nth-child(2):last-child { min-width: 7rem; }
.missing-value { color: var(--color-muted); }
.price-date, .table-footnote { font-size: .9375rem; color: var(--color-muted); }
.content-note { background: var(--color-pale-light); border-left: 3px solid var(--color-accent); padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: 1rem; }
.service-area { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; font-size: 1rem; }
.service-area > div { padding-block: 1rem; border-top: 1px solid var(--color-line); }
.service-area dt { font-weight: 700; color: var(--color-heading); margin-bottom: .4rem; }
.service-area dd { margin: 0; }
.application-panel { padding: clamp(1.25rem, 3vw, 2rem); background: var(--color-pale-light); border-left: 3px solid var(--color-accent); }
.related-links { list-style: none; padding: 0; margin: 1rem 0; }
.related-links li { border-bottom: 1px solid var(--color-line); padding-block: .65rem; }
.contact-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.contact-details-grid .content-section { margin: 0; padding: 1.25rem 0; border-top: 1px solid var(--color-line); }
.contact-details-grid a, .subpage-content a[href^="mailto:"] { overflow-wrap: anywhere; }
.draft-note { margin-bottom: 2.5rem; padding: 1.25rem; border: 1px solid #d4c79a; background: #fffaf0; font-size: 1rem; }
.draft-note p:first-child { font-weight: 700; }
.review-mark { background: #fff1aa; color: #342b12; padding: .1em; }
.right-to-object { font-weight: 700; }

/* 13 – UNTERSEITEN AUF TABLETS UND SMARTPHONES ----------------------------- */
/* Desktop: normale Textspalten bleiben zentriert und sind mit 95 statt 76ch
   um 25 % breiter. Auch die innere Absatz-/Listenbegrenzung wird angepasst.
   Die äußeren 80 %, breite Tabellenseiten und mobile Textbreiten bleiben gleich. */
@media screen and (min-width: 64rem) {
  .subpage-content:not(.subpage-content--wide) { width: min(calc(100% - 2.5rem), 95ch); }
  .subpage-content:not(.subpage-content--wide) .content-section > p,
  .subpage-content:not(.subpage-content--wide) .content-section > .text-list { max-width: 95ch; }
}
@media (max-width: 64rem) {
  .subpage-hero__copy { padding: 1.5rem; }
  .subpage-hero h1 { font-size: clamp(2rem, 3.675vw, 2.9rem); }
  .subpage-hero__image { min-height: 20rem; }
  .subpage-content--wide { width: calc(100% - 3rem); }
}
@media (max-width: 40rem) {
  .subpage-hero { grid-template-columns: 1fr; }
  .subpage-hero__copy { padding: 1.35rem 1.25rem 1.6rem; }
  .subpage-hero__image { height: 13rem; min-height: 0; object-position: var(--subpage-image-position-mobile, var(--subpage-image-position, center 35%)); }
  .subpage-hero h1 { font-size: clamp(1.875rem, 7.7vw, 2.625rem); }
  .subpage-hero__lead { font-size: 1.05rem; margin-top: .85rem; }
  .subpage-hero .eyebrow { font-size: .75rem; }
  .breadcrumb { margin-bottom: 1.4rem; font-size: .8125rem; }
  .section-navigation { padding-inline: 1.25rem; }
  .section-navigation ul { gap: .2rem 1.1rem; }
  .section-navigation a { font-size: .9375rem; }
  .subpage-content, .subpage-content--wide { width: calc(100% - 2.5rem); margin-block: 1.6rem 2rem; }
  .content-section h2 { font-size: 1.7rem; }
  .content-section + .content-section { padding-top: 1.3rem; }
  .price-table { font-size: .9375rem; }
  .price-table th, .price-table td { padding: .7rem .8rem; }
  .service-area, .contact-details-grid { grid-template-columns: 1fr; gap: 0; }
  .subpage-photo-row { grid-template-columns: 1fr; }
  .contents-index { margin-bottom: 1.8rem; padding: .9rem 1rem; }
}

/* 14 – DRUCK: Lange Preislisten ohne abgeschnittene Scrollbereiche. */
@media print {
  .subpage-hero { display: block; background: white; }
  .subpage-hero__image, .subpage-photo, .subpage-photo-row, .breadcrumb, .section-navigation, .contents-index { display: none; }
  .subpage-hero__copy { padding: 1rem 0; }
  .subpage-hero h1 { font-size: 23pt; }
  .subpage-content, .subpage-content--wide { width: 100%; max-width: none; }
  .content-section h2 { font-size: 18pt; break-after: avoid; }
  .table-scroll { overflow: visible; border: 0; }
  .price-table { font-size: 9pt; }
  .price-table td, .price-table td:nth-child(2), .price-table tr > :nth-child(2):last-child { min-width: 0; }
  .price-table th, .price-table td { padding: .35rem; }
  .price-table tbody th { white-space: normal; }
  .price-table thead { display: table-header-group; }
  .price-table tr { break-inside: avoid; }
  .price-table thead th { color: #111; background: #eee; }
}
