/* =====================================================================
   Peter's Pflegedienst – eigene Vorlage für IONOS MyWebsite (klassischer Editor), v26
   Gehört zu vorlage-v26.html. Design nach Flyer/Visitenkarte V02 (08/2026),
   Regeln: Styleguide/styleguide.html, Bausteine: Styleguide/komponenten.md.
   - Keine externen Ressourcen, kein @import, keine Webfonts (Systemschriften).
   - Mobile first, Stufen 640 / 768 / 1024 / 1280 px. Dunkelmodus per prefers-color-scheme.
   - Markup des Baukastens: Navigation ul.mainNav1 > li > a.level_1 (.current/.parent) > span,
     Module div.n.module-type-*, Fußzeile #contentfooter, Mobilleiste table#mobile-infobar.
   - Regeln hängen an IDs (#container, #content …) und schlagen so die IONOS-Basis-CSS (.diyw …).
     !important nur gegen Inline-Styles.
   - Widgets (Modul „Widget/HTML“): alles unter #content .pp. Icons nur per CSS (IONOS filtert SVG):
     Klasse ico-<name> am Element, Farbe = Hintergrundfarbe der Maske.
   - Bilder aus dem Reiter „Dateien“ liegen unter /s/img/<name in Kleinbuchstaben>.
   Kontraste (WCAG 2.x) siehe Styleguide; Text überall mind. 4,5:1.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Flyer-Farben (gemessen); Hellblau #B9D6E2 nur für die QR-Pille (Druck), im Web nicht verwendet */
  --c-blue: #3E63AB;
  --c-orange: #E85223;   /* Fläche/Linie/Icon; als Schrift nur groß (≥ 24 px) oder fett ≥ 18,66 px auf Weiß */
  --c-gray: #C6C6C7;
  /* Rollen (Dunkelmodus stellt nur diese um) */
  --c-text: #2B2B2A;
  --c-bg: #FFFFFF;
  --c-surface: #EBECEC;  /* alle Flächen mit Text: Karten, Hinweise, Einsatzgebiet, Chips */
  --c-primary: #3E63AB;  /* Überschriften, Links, Icons */
  --c-primary-light: #EBECEC;
  --c-border: #C6C6C7;
  --c-footer-bg: #2B2B2A;
  --c-footer-muted: #EBECEC;

  --font: "Apparat", "Avenir Next", "Segoe UI", "Source Sans 3", "Fira Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-base: 18px;
  --fs-small: 17px;
  --fs-lead: 20px;
  --fs-h1: 34px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-btn: 19px;

  --gutter: 16px;
  --maxw: 1152px;
  --measure: 42rem;   /* Zeilenlänge Fließtext */
  --gap-y: 56px;      /* Abstand zwischen zwei Abschnitten (auch Seitenkopf → 1. Abschnitt, letzter Abschnitt → Kontakt-Band): 56 / 80 / 96 px */
  --gap-head: 32px;   /* Überschrift (mit Einleitung) bis Inhaltsblock: 32 / 40 / 48 px */
  --gap-grid: 24px;   /* Abstand zwischen Karten: 24 / 32 px */
  --radius: var(--band-R);   /* Rundung aller Flächen und Buttons = Außenradius des Bandes unter der Kopfzeile (Handy 40 px, ab 768 px 60 px) */
  --btn-h: 52px;
  /* Flyer-Band mit Knick (gemessen in der Druckdatei, Innenseite Mitte / Titelseite):
     Bandbreite w = 6 mm; Viertelbogen Außenradius 3,335 w (20 mm);
     Lücke zwischen geradem Band und Bogenstück w/3 (2 mm); gerader Vorlauf vor dem Bogen 1,08 w;
     Ausladung zur Seite 3,49 w; Farbwechsel an der Spitze; alle Enden eckig. */
  --band-w: 12px;
  --band-R: calc(var(--band-w) * 3.335);
  --band-gap: calc(var(--band-w) / 3);
  --band-lead: calc(var(--band-w) * 1.08);
  --band-bump: calc(var(--band-w) * 3.49);
  /* Visitenkarte: Lücke 0,6 v; oranges Stück: Schenkel 1,2 v, Innenradius 2,9 v, Außenradius 3,9 v. Im Web so dick wie das Band unter der Kopfzeile (12 / 18 px) */
  --vk-w: var(--band-w);

  --rosette: polygon(50.0% 0.0%,53.6% 4.1%,56.6% 8.5%,60.7% 5.3%,65.5% 2.4%,67.6% 7.5%,69.1% 12.6%,74.0% 10.8%,79.4% 9.5%,79.9% 15.0%,79.7% 20.3%,85.0% 20.1%,90.5% 20.6%,89.2% 26.0%,87.4% 30.9%,92.5% 32.4%,97.6% 34.5%,94.7% 39.3%,91.5% 43.4%,95.9% 46.4%,100.0% 50.0%,95.9% 53.6%,91.5% 56.6%,94.7% 60.7%,97.6% 65.5%,92.5% 67.6%,87.4% 69.1%,89.2% 74.0%,90.5% 79.4%,85.0% 79.9%,79.7% 79.7%,79.9% 85.0%,79.4% 90.5%,74.0% 89.2%,69.1% 87.4%,67.6% 92.5%,65.5% 97.6%,60.7% 94.7%,56.6% 91.5%,53.6% 95.9%,50.0% 100.0%,46.4% 95.9%,43.4% 91.5%,39.3% 94.7%,34.5% 97.6%,32.4% 92.5%,30.9% 87.4%,26.0% 89.2%,20.6% 90.5%,20.1% 85.0%,20.3% 79.7%,15.0% 79.9%,9.5% 79.4%,10.8% 74.0%,12.6% 69.1%,7.5% 67.6%,2.4% 65.5%,5.3% 60.7%,8.5% 56.6%,4.1% 53.6%,0.0% 50.0%,4.1% 46.4%,8.5% 43.4%,5.3% 39.3%,2.4% 34.5%,7.5% 32.4%,12.6% 30.9%,10.8% 26.0%,9.5% 20.6%,15.0% 20.1%,20.3% 20.3%,20.1% 15.0%,20.6% 9.5%,26.0% 10.8%,30.9% 12.6%,32.4% 7.5%,34.5% 2.4%,39.3% 5.3%,43.4% 8.5%,46.4% 4.1%);
  --icon-phone-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.8 2z'/%3E%3C/svg%3E");

  --icon-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
  --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
@media (min-width: 768px) {
  :root { --fs-h1: 42px; --fs-h2: 34px; --gutter: 32px; --gap-y: 80px; --gap-head: 40px; --band-w: 18px; }
}
@media (min-width: 1024px) {
  :root { --fs-base: 20px; --fs-lead: 22px; --fs-h1: 50px; --fs-h3: 22px; --fs-btn: 20px; --gap-grid: 32px; --gap-y: 96px; --gap-head: 48px; }
}

/* ---------- Basis ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--c-bg); }
body, #container { font-family: var(--font); font-size: var(--fs-base); line-height: 1.6; color: var(--c-text); }
#container, #container *, #container *::before, #container *::after { box-sizing: border-box; }
#container { width: 100%; overflow-x: hidden; background: var(--c-bg); }
#container img { max-width: 100%; height: auto; border: 0; }
#container .c { clear: both; height: 0; overflow: hidden; }

/* Überschriften wie im Flyer: Versalien, halbfett, Blau */
#container h1, #container h2, #container h3, #container h4 {
  font-family: var(--font); font-weight: 600; line-height: 1.15; letter-spacing: .01em;
  color: var(--c-primary); margin: 0 0 16px; padding: 0;
  text-transform: uppercase; overflow-wrap: break-word; text-wrap: balance;
}
#container h1 { font-size: var(--fs-h1); line-height: 1.08; }
#container h2 { font-size: var(--fs-h2); }
#container h3 { font-size: var(--fs-h3); line-height: 1.25; }
#container h4 { font-size: 17px; letter-spacing: .06em; color: var(--c-text); }
#container p, #container ul, #container ol { margin: 0 0 16px; }
#container ul, #container ol { padding-left: 1.25em; }
#container li + li { margin-top: .35em; }
#container strong, #container b { font-weight: 700; }

/* Links: Blau (dunkel: hell), immer unterstrichen; Hover dicker */
#container a { color: var(--c-primary); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
#container a:hover { text-decoration-thickness: 2px; }
#container a[href^="tel:"] { white-space: nowrap; }

/* Fokus: 3 px, 3 px Abstand, folgt der Rundung; auf Blau/Orange/Fußzeile weiß */
#container a:focus, #container button:focus, #container input:focus { outline: 3px solid var(--c-text); outline-offset: 3px; }
#container a:focus:not(:focus-visible), #container button:focus:not(:focus-visible) { outline: none; }

#container .skiplink {
  position: absolute; left: 16px; top: -200px; z-index: 1000;
  background: var(--c-text); color: var(--c-bg); font-weight: 700;
  padding: 8px 16px; border-radius: var(--radius); text-decoration: none;
}
#container .skiplink:focus { top: 8px; outline-color: var(--c-orange); }

/* ---------- Kopfzeile ---------- */
#header { background: var(--c-bg); position: relative; z-index: 50; }
#header_wrapper {
  max-width: var(--maxw); margin: 0 auto; padding: 8px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
}
/* Logo 960 × 480 px (@4x von 240 × 120) */
#logo { display: block; flex: none; line-height: 0; }
#logo img { display: block; height: 60px; width: auto; }
@media (min-width: 640px) { #logo img { height: 68px; } }
@media (min-width: 1024px) { #logo img { height: 76px; } }
@media (min-width: 1280px) { #logo img { height: 84px; } }

/* Telefon-Button (fester Link im Gerüst) */
#container #header_call {
  order: 2; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 18px 8px 44px;
  background: var(--c-orange) var(--icon-phone-white) no-repeat 16px center / 20px 20px;
  color: #fff; font-weight: 700; font-size: var(--fs-btn); line-height: 1.2; white-space: nowrap;
  border-radius: var(--radius); text-decoration: none;
}
#container #header_call:hover { color: #fff; text-decoration: underline; }
#header_call .call_label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* Hauptnavigation: <var>navigation[1|2|3]</var>. Nur Ebene 1; Unterseiten (Impressum, Datenschutz,
   Barrierefreiheit …) stehen im Kontakt-Band, nie im Menü. */
#header_wrapper #navigation ul ul, #header_wrapper #navigation li > div { display: none !important; }
#navigation { order: 3; width: 100%; }
#navigation ul { list-style: none; margin: 0; padding: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
#navigation li { display: contents; margin: 0; padding: 0; float: none; background: none; }
#navigation li + li { margin: 0; }
#navigation a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 8px 14px; white-space: nowrap;
  color: var(--c-text); font-weight: 600; text-decoration: none; line-height: 1.25;
  border: 0; border-radius: var(--radius); background: transparent;
}
#navigation a span { color: inherit; background: none; padding: 0; }
#navigation a:hover { color: var(--c-primary); text-decoration: underline; }
#navigation a.current, #navigation a.parent { color: var(--c-primary); background: var(--c-primary-light); font-weight: 700; }
#navigation .diyfeDropDownSubOpener, #navigation .clear { display: none; }
#navigation .navigationContent, #navigation .navigationContent > div { margin: 0; padding: 0; width: auto; float: none; }
/* Ausgeblendete Seiten (nur im Editor sichtbar) */
#navigation .cc-invisible { font-size: inherit; text-decoration: none; }
#navigation li:has(.cc-invisible) > a, #navigation a:has(.cc-invisible) { opacity: .45; }
/* Desktop: Logo, Menü und Telefon-Button in einer Zeile; Menü 18 px */
@media (min-width: 1024px) {
  #header { position: -webkit-sticky; position: sticky; top: 0; }
  #header_wrapper { flex-wrap: nowrap; }
  #navigation { order: 2; width: auto; flex: 1 1 auto; min-width: 0; margin-left: 8px; }
  #navigation ul { padding: 0; gap: 4px; justify-content: flex-end; }
  #navigation a { padding: 8px 12px; font-size: 18px; }
  #container #header_call { order: 3; flex: none; }
}
@media (min-width: 1280px) {
  #navigation ul { gap: 6px; }
  #navigation a { padding: 10px 14px; }
  #container #header_call { min-height: var(--btn-h); padding: 10px 24px 10px 52px; background-position: 22px center; }
}

/* ---------- Handy-Menü (Checkbox, ohne JavaScript) ----------
   Gerüst: <input type="checkbox" id="nav_toggle" class="nav-toggle" /><label for="nav_toggle" class="nav-toggle-label">…
   aria-expanded ist ohne JavaScript nicht möglich. */
#header_wrapper .nav-toggle {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  opacity: 0; overflow: hidden; clip: rect(0 0 0 0);
}
#header_wrapper .nav-toggle-label, #header_wrapper .nt-close { display: none; }
@media (max-width: 1023px) {
  #header_wrapper { position: relative; }
  #header_wrapper .nav-toggle-label {
    order: 1; display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    min-width: 48px; min-height: 48px; padding: 8px 4px 8px 40px; position: relative;
    color: var(--c-text); font-family: var(--font); font-size: 18px; font-weight: 600; line-height: 1.2;
    border: 0; background: transparent;
    cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
  }
  #header_wrapper .nav-toggle-label::before {
    content: ""; position: absolute; left: 8px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
    background: currentColor; -webkit-mask: var(--icon-menu) center / contain no-repeat; mask: var(--icon-menu) center / contain no-repeat;
  }
  #header_wrapper .nav-toggle-label:hover, #header_wrapper .nav-toggle:checked + .nav-toggle-label { color: var(--c-primary); }
  #header_wrapper .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--c-text); outline-offset: 3px; }
  #header_wrapper .nav-toggle:checked + .nav-toggle-label::before { -webkit-mask-image: var(--icon-close); mask-image: var(--icon-close); }
  /* geöffnet: „✕ Schließen“ statt „☰ Menü“ */
  #header_wrapper .nav-toggle:checked + .nav-toggle-label .nt-open { display: none; }
  #header_wrapper .nav-toggle:checked + .nav-toggle-label .nt-close { display: inline; }

  #header_wrapper #navigation { display: none; order: 3; width: 100%; flex: 0 0 100%; margin: 0; }
  #header_wrapper .nav-toggle:checked ~ #navigation { display: block; }
  #header_wrapper #navigation ul { display: block; margin: 0; padding: 0; border-top: 1px solid var(--c-border); }
  #header_wrapper #navigation li { display: block; margin: 0; padding: 0; }
  #header_wrapper #navigation a {
    display: flex; justify-content: flex-start; text-align: left;
    min-height: 52px; padding: 8px 16px 8px 13px; font-size: 19px; font-weight: 600; white-space: normal;
    color: var(--c-text); background: transparent;
    border: 0; border-left: 3px solid transparent; border-bottom: 1px solid var(--c-border); border-radius: 0;
  }
  #header_wrapper #navigation a:hover { color: var(--c-primary); background: var(--c-primary-light); text-decoration: none; }
  #header_wrapper #navigation a.current, #header_wrapper #navigation a.parent { color: var(--c-primary); font-weight: 700; background: transparent; border-left-color: var(--c-orange); }

  /* Telefon: runder oranger Button mit weißem Hörer-Icon rechts neben „Menü“; Nummer bleibt als Text für Screenreader */
  #container #header_call {
    order: 2; flex: none; margin: 0 0 0 10px; width: 46px; height: 46px; min-height: 46px; padding: 0;
    background: var(--c-orange) var(--icon-phone-white) center / 24px 24px no-repeat;
    text-indent: 110%; overflow: hidden; white-space: nowrap; border-radius: 50%; text-decoration: none;
  }
  #container #header_call:hover { text-decoration: none; }
}

/* ---------- Inhalt (Vorlagen-Module, z. B. Sitemap) ---------- */
#content { background: var(--c-bg); }
#content > .gutter { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter) var(--gap-y); }
@media (min-width: 1024px) { #content > .gutter { padding-top: 64px; } }
#container .n { margin: 0 0 24px; padding: 0; }
#container .n:last-child { margin-bottom: 0; }
#container h1 + p { font-size: var(--fs-lead); }
#content .module-type-text :is(p, ul, ol) { max-width: var(--measure); }
/* Alt-Formatierung aus dem Texteditor neutralisieren */
#container .n span[style*="font-size"], #container .n strong[style*="font-size"] { font-size: inherit !important; }
#container .n span[style*="color"], #container .n strong[style*="color"], #container .n font[color] { color: inherit !important; }
#container .n span[style*="font-family"], #container .n font[face] { font-family: inherit !important; }
#container .module-type-header .diyfeDecoration { color: inherit; background: none; padding: 0; border: 0; }
#container .module-type-hr { display: none; }
/* Aufzählungen in Textmodulen: blaue Haken (wie ul.checklist) */
#container .module-type-text ul { list-style: none; padding-left: 0; }
#container .module-type-text ul li { position: relative; padding-left: 2rem; }

/* ---------- Kontakt-Band (#sidebar, auf allen Seiten): Blau wie Flyer-Innenseite ---------- */
#sidebar { position: relative; overflow: hidden; background: var(--c-blue); color: #fff; }
#sidebar > .gutter { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--gutter) 24px; }
#sidebar > .gutter > * { position: relative; z-index: 1; }
/* Hände-Wasserzeichen (einzige Deko-Ausnahme, nur im blauen Kontakt-Bereich); endet über dem Visitenkarten-Band */
#sidebar > .gutter::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; left: 0; right: 0; top: 0; bottom: calc(var(--vk-w) * 4);
  background: url("/s/img/haende-gross.png") no-repeat right 4px center / 240px auto;
  filter: grayscale(1) invert(1) brightness(1.5); opacity: .13;
}
@media (min-width: 1024px) { #sidebar > .gutter::before { background-position: right max(0px, calc(50% - 480px)) center; background-size: auto 90%; opacity: .12; } }
@media (max-width: 1023px) { #sidebar > .gutter::before { background-size: auto 60%; background-position: right 24px top 20px; opacity: .14; } }
/* Handy: klein rechts neben „Alle Kontaktdaten“ (einzige kurze Zeile), nicht hinter Überschrift oder Nummern */
@media (max-width: 639px) { #sidebar > .gutter::before { background-size: 90px auto; background-position: right 16px top 168px; } }
/* Visitenkarten-Band (nur hier; Bogen wie auf der Visitenkarten-Rückseite vom Rand bei 3,63 v angeschnitten): grauer Balken, Lücke, oranges Stück mit Viertelbogen nach oben; Farben nie verändern */
#sidebar { padding-bottom: var(--vk-w); }
#sidebar::before, #sidebar::after { content: ""; position: absolute; bottom: 0; pointer-events: none; }
#sidebar::after { left: 0; right: calc(var(--vk-w) * 3.63); height: var(--vk-w); background: linear-gradient(to right, #C6C6C7 calc(100% - var(--vk-w) * .6), var(--c-footer-bg) 0); }  /* letzte 0,6 v = Lücke in Fußleistenfarbe */
#sidebar::before {
  z-index: 1; right: calc(var(--vk-w) * -1.47); width: calc(var(--vk-w) * 5.1); height: calc(var(--vk-w) * 4);
  border: solid #E85223; border-width: 0 var(--vk-w) var(--vk-w) 0; border-bottom-right-radius: calc(var(--vk-w) * 3.9);
}
/* Fläche außerhalb des Bogens (Ecke unten rechts) in Fußleistenfarbe */
#sidebar > .gutter::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; bottom: 0; right: calc(var(--vk-w) * -1.47); width: calc(var(--vk-w) * 5.1); height: calc(var(--vk-w) * 4);
  background: radial-gradient(circle at calc(var(--vk-w) * 1.2) calc(var(--vk-w) * .1), transparent calc(var(--vk-w) * 3.9 - .5px), var(--c-footer-bg) calc(var(--vk-w) * 3.9));
}
@media (min-width: 1024px) { #sidebar > .gutter { padding: 48px var(--gutter) 28px; } }
#sidebar :is(h1, h2, h3, h4, p, li, a), #sidebar a:hover { color: #fff; }
#sidebar a:focus { outline-color: #fff; }
#sidebar .module-type-header { margin-bottom: 8px; }
#sidebar .module-type-text { margin-bottom: 0; }
#sidebar .module-type-text p { margin: 0 0 4px; }
/* letzte Zeile (Impressum · Datenschutz · …): Tippfläche 44 px */
#sidebar .module-type-text p:last-child { margin: 8px 0 0; }
#sidebar .module-type-text p:last-child a, #sidebar a[href="/kontakt/"] { display: inline-block; padding: 8px 0; }
#sidebar a[href^="tel:"], #sidebar a[href="/kontakt/"] { font-weight: 700; }

/* ---------- Fußzeile ---------- */
#footer { background: var(--c-footer-bg); color: var(--c-footer-muted); }
#footer > .gutter { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter) 32px; font-size: var(--fs-small); line-height: 1.6; }
#footer p, #footer li, #footer span, #footer div { color: var(--c-footer-muted); }
#footer a, #footer a.diyw { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
#footer a:focus { outline-color: #fff; }
#footer #contentfooter { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
#footer #contentfooter .leftrow, #footer #contentfooter .rightrow { float: none; width: auto; text-align: left; margin: 0; padding: 0; }
#footer #contentfooter p { margin: 0; }
#footer #contentfooter img.inline { display: none; }
#footer .footer-separator { padding: 0 6px; }

/* ---------- Mobile Kontaktleiste (IONOS „Mobile Infobar“) ---------- */
#mobile-infobar, #mobile-infobar.light, #mobile-infobar.dark {
  height: 64px; background: var(--c-bg); border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, .1); table-layout: fixed; border-collapse: collapse;
}
#mobile-infobar-spacer { height: 64px; }
#mobile-infobar td { padding: 0; vertical-align: middle; }
#mobile-infobar td.mobile-infobar-button-phone { width: 50% !important; background: var(--c-orange); }
#mobile-infobar td.mobile-infobar-button-email, #mobile-infobar td.mobile-infobar-button-address { width: 25% !important; }
#mobile-infobar .mobile-infobar-link, #mobile-infobar.light .mobile-infobar-link, #mobile-infobar.dark .mobile-infobar-link {
  display: block; padding: 8px 4px; text-align: center; text-decoration: none;
  color: var(--c-primary); font-family: var(--font); font-size: 16px; font-weight: 700; line-height: 1.2;
}
#mobile-infobar .mobile-infobar-icon, #mobile-infobar.light .mobile-infobar-icon, #mobile-infobar.dark .mobile-infobar-icon { fill: var(--c-primary); }
#mobile-infobar td.mobile-infobar-button-phone .mobile-infobar-link { color: #fff; font-size: 19px; }
#mobile-infobar td.mobile-infobar-button-phone .mobile-infobar-icon { fill: #fff; }

/* =====================================================================
   Widgets (#content .pp) – Bausteine siehe Styleguide/komponenten.md
   ===================================================================== */
#content .pp {
  --ic-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  --ic-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
  --ic-map: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6v16l7-4 8 4 7-4V2l-7 4-8-4-7 4z'/%3E%3Cpath d='M8 2v16M16 6v16'/%3E%3C/svg%3E");
  --ic-award: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.5 13 17 22l-5-3-5 3 1.5-9'/%3E%3C/svg%3E");
  --ic-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
  --ic-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  --ic-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");
  --ic-care: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.5-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 11c0 5.5-7 10-7 10z'/%3E%3Cpath d='M9 12h6'/%3E%3C/svg%3E");
  --ic-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M9 22V12h6v10'/%3E%3C/svg%3E");
  --ic-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3Cpath d='M8 9h8M8 13h5'/%3E%3C/svg%3E");
  --ic-repeat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 1l4 4-4 4'/%3E%3Cpath d='M3 11V9a4 4 0 0 1 4-4h14'/%3E%3Cpath d='M7 23l-4-4 4-4'/%3E%3Cpath d='M21 13v2a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E");
  --ic-car: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2v-5l-2-5a2 2 0 0 0-1.9-1.4H6.9A2 2 0 0 0 5 7l-2 5v5h2'/%3E%3Cpath d='M3 12h18'/%3E%3Ccircle cx='7.5' cy='17' r='2'/%3E%3Ccircle cx='16.5' cy='17' r='2'/%3E%3Cpath d='M9.5 17h5'/%3E%3C/svg%3E");
  --ic-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.5 19 2c1 2 2 4.2 2 8 0 5.5-4.8 10-10 10z'/%3E%3Cpath d='M2 21c0-3 1.9-5.4 5.1-6'/%3E%3C/svg%3E");
  --ic-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E");
  --ic-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --ic-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
  --ic-printer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E");
  --ic-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");
  --ic-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --ic-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
  --ic-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E63AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6M10 14 21 3'/%3E%3C/svg%3E");
  --ic-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%233E63AB' d='M8 36V26c0-8 4-14 12-16l1.5 3.5C17 15.5 15 19 15 23h6v13zm19 0V26c0-8 4-14 12-16l1.5 3.5C36 15.5 34 19 34 23h6v13z'/%3E%3C/svg%3E");

}
#content .pp :is(p, ul, ol) { margin: 0 0 16px; max-width: none; }
#content .pp :is(ul, ol) { padding-left: 1.25em; }
#content .pp li + li { margin-top: .35em; }
#content .pp p { text-wrap: pretty; }
#content .pp :is(h1, h2, h3) { margin: 0 0 16px; }
#content .pp :focus-visible { outline: 3px solid var(--c-text); outline-offset: 3px; }
#content .pp .nowrap { white-space: nowrap; }
#content .pp .visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
#content .pp .container { width: auto; max-width: none; margin: 0; padding: 0; }
#content .pp .measure { max-width: var(--measure); }
#content .pp .center { text-align: center; margin-left: auto; margin-right: auto; }
#content .pp .lead { font-size: var(--fs-lead); }
#content .pp .small { font-size: var(--fs-small); }

/* ---------- Icons: Klasse ico-<name>; Maske, Farbe Blau (dunkel: hell) ----------
   Karte: 44 px über der Überschrift · Überschrift: 1,3 em links · Kontaktzeile: 1,5 em links · Button: 1,3 em, Schriftfarbe */
#content .pp [class*="ico-"]::before, #content .pp :is(.quote, .quotes)::before {
  content: ""; display: block; flex: none; width: 44px; height: 44px; background-color: var(--c-primary);
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
#content .pp .ico-clock { --m: var(--ic-clock); } #content .pp .ico-calendar { --m: var(--ic-calendar); }
#content .pp .ico-map { --m: var(--ic-map); } #content .pp .ico-award { --m: var(--ic-award); }
#content .pp .ico-heart { --m: var(--ic-heart); } #content .pp .ico-plus { --m: var(--ic-plus); }
#content .pp .ico-care { --m: var(--ic-care); } #content .pp .ico-home { --m: var(--ic-home); }
#content .pp .ico-mail { --m: var(--ic-mail); } #content .pp .ico-car { --m: var(--ic-car); }
#content .pp .ico-chat { --m: var(--ic-chat); } #content .pp .ico-repeat { --m: var(--ic-repeat); }
#content .pp .ico-leaf { --m: var(--ic-leaf); } #content .pp .ico-users { --m: var(--ic-users); }
#content .pp .ico-book { --m: var(--ic-book); } #content .pp .ico-shield { --m: var(--ic-shield); }
#content .pp .ico-printer { --m: var(--ic-printer); } #content .pp .ico-pin { --m: var(--ic-pin); }
#content .pp .ico-warn { --m: var(--ic-warn); } #content .pp .ico-ext { --m: var(--ic-ext); }
#content .pp .ico-phone { --m: var(--icon-phone-white); }
#content .pp .card[class*="ico-"]::before { margin-bottom: 20px; }
#content .pp :is(h2, h3)[class*="ico-"] { display: flex; align-items: center; gap: .45em; }
#content .pp :is(h2, h3)[class*="ico-"]::before { width: 1.3em; height: 1.3em; }
/* Handy: lange Leistungsnamen brauchen die volle Breite, Icon steht darüber */
@media (max-width: 639px) { #content .pp h2[class*="ico-"] { flex-direction: column; align-items: flex-start; gap: 12px; } }
/* Signal-Ausnahme: Warnsymbol der Notfall-Karte in Orange */
#content .pp .ico-warn::before { background-color: var(--c-orange); }

/* ---------- Slogan (Flyer: „Wir pflegen aus Freude an unserem Beruf!“) ---------- */
#content .pp .slogan {
  font-size: clamp(24px, calc(17px + 1vw), 28px); font-weight: 500; line-height: 1.3;
  color: var(--c-orange); margin: 0 0 16px;
}
#content .pp .quote + .slogan { text-align: center; margin: 32px 0 0; }

/* ---------- Abschnitt ---------- */
#content .pp .section { padding: 0 0 var(--gap-y); }
#content .pp section[id] { scroll-margin-top: 120px; }
#content .pp .section-head { max-width: var(--measure); margin-bottom: var(--gap-head); }
#content .pp .section-head p { font-size: var(--fs-lead); margin-bottom: 0; }
/* h2 direkt vor einem Inhaltsblock (Leistung, Raster, Zitat, Liste): gleicher Abstand wie nach .section-head; vor Fließtext bleibt 16 px (Margins fallen zusammen) */
#content .pp h2:not(.visually-hidden) + :is(.service-inner, .grid, .quote, .quali-list, .checklist) { margin-top: var(--gap-head); }
#content .pp > .section:last-child, #content .pp > .page-head:last-child { padding-bottom: 0; }
#content .pp > :last-child { margin-bottom: 0; }
#content .pp > .section:last-child .container > :last-child { margin-bottom: 0; }
/* letzter Absatz/letzte Liste eines Blocks ohne Außenabstand: Abstände entstehen nur aus --gap-y, --gap-head, --gap-grid */
#content .pp :is(.section, .page-head, .hero) :is(p, ul, ol, .hinweis):last-child, #content .pp .hero .btn-row { margin-bottom: 0; }

/* ---------- Seitenkopf: Hero (Startseite) und .page-head (alle Unterseiten), gleicher Abstand zum Band ---------- */
#content .pp :is(.hero, .page-head) { position: relative; padding: 64px 0 var(--gap-y); }
#content .pp > :is(.hero, .page-head):first-child { margin-top: -40px; }
#content .pp .hero .lead { max-width: 36em; }
#content .pp .page-head h1 { max-width: 80%; }
#content .pp .page-head h1:last-child { margin-bottom: 0; }
#content .pp .page-head p { font-size: var(--fs-lead); max-width: var(--measure); margin-bottom: 0; }
@media (min-width: 1024px) {
  #content .pp :is(.hero, .page-head) { padding-top: 80px; }
  #content .pp > :is(.hero, .page-head):first-child { margin-top: -64px; }
  #content .pp .hero .hero-text { max-width: 58%; }
}

/* ---------- Band mit Knick, waagerecht unter der Kopfzeile (Flyer-Band um 90° gedreht, Proportionen aus --band-*) ----------
   Orange gerade von links, Lücke, Blau: gerades Stück und Bogen nach unten zur Spitze, Grau: Bogen zurück nach oben und gerade nach rechts bis zum Rand.
   Auf der Kopfzeile (#header::before/::after, #header_wrapper::after), nur dort; Farben fest wie im Flyer. --kbt: gerader Auslauf rechts. */
:root { --kbt: 40px; }
@media (min-width: 768px) { :root { --kbt: 72px; } }
#header::before, #header::after, #header_wrapper::after { content: ""; position: absolute; top: 100%; pointer-events: none; }
#header::before { left: 0; height: var(--band-w); background: #E85223;
  right: calc(2 * var(--band-R) + var(--kbt) - var(--band-w) + var(--band-lead) + var(--band-gap)); }
#header::after { z-index: 1; right: calc(var(--band-R) + var(--kbt) - var(--band-w)); width: calc(var(--band-lead) + var(--band-R)); height: var(--band-bump);
  border: solid #3E63AB; border-width: var(--band-w) var(--band-w) 0 0; border-top-right-radius: var(--band-R); }
#header_wrapper::after { right: 0; width: calc(var(--band-R) + var(--kbt)); height: var(--band-bump);
  border: solid #C6C6C7; border-width: var(--band-w) 0 0 var(--band-w); border-top-left-radius: var(--band-R); }

/* ---------- Spalten und Raster ---------- */
#content .pp :is(.split, .service-inner) { display: grid; gap: 32px; align-items: center; }
#content .pp .service-inner { align-items: start; }
@media (min-width: 900px) { #content .pp :is(.split, .service-inner) { grid-template-columns: 1fr 1fr; gap: 64px; } }
#content .pp .grid { display: grid; gap: var(--gap-grid); grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
#content .pp .grid > li + li { margin-top: 0; }
@media (min-width: 640px) { #content .pp :is(.grid--2, .grid--3, .grid--4) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  #content .pp .grid--3 { grid-template-columns: repeat(3, 1fr); }
  #content .pp .grid--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* ---------- Karte (Standard): Hellgrau, voller Radius, ohne Rahmen ---------- */
#content .pp .card { background: var(--c-surface); color: var(--c-text); border-radius: var(--radius); padding: 32px 24px; }
@media (min-width: 1024px) { #content .pp .card { padding: 32px; } }
#content .pp .card h3 { margin-bottom: 8px; }
#content .pp .card h3 ~ h3 { margin-top: 28px; }
#content .pp .card :is(p, ul):last-child { margin-bottom: 0; }
#content .pp :not(.grid) > .card + .card { margin-top: var(--gap-grid); }
/* Kontakt (2 Spalten): rechte Spalte schließt oben und unten bündig mit der linken Karte ab; Notfall-Karte füllt die Resthöhe (Rahmen steht um --eo über) */
@media (min-width: 768px) {
  #content .pp .grid--2 > div:not(.card) { display: flex; flex-direction: column; }
  #content .pp .grid--2 > div:not(.card) > .emergency { flex: 1 1 auto; margin-bottom: var(--eo); }
}
/* Schritt-Nummer (So beginnt die Pflege) */
#content .pp .step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--c-orange); color: #fff; font-weight: 700; font-size: 24px; margin-bottom: 20px;
}

/* ---------- Listen: Haken (.checklist), Strich (ohne Klasse, Rechtstexte), Strich mit Trennlinie (.quali-list), Kontaktzeilen (.contact-list) ---------- */
#content .pp :is(.checklist, .quali-list, ul:not([class])) { list-style: none; padding-left: 0; }
#content .pp :is(.checklist, .quali-list, ul:not([class])) > li { position: relative; padding-left: 2rem; }
#container .module-type-text ul li::before, #content .pp .checklist > li::before {
  content: ""; position: absolute; left: .2rem; top: .42em; width: .95rem; height: .52rem;
  border-left: 3px solid var(--c-primary); border-bottom: 3px solid var(--c-primary); transform: rotate(-45deg);
}
#content .pp :is(.quali-list, ul:not([class])) > li::before { content: ""; position: absolute; left: .2rem; top: calc(.8em - 2px); width: .95rem; height: 4px; background: var(--c-primary); }
#content .pp .quali-list { max-width: var(--measure); }
#content .pp .quali-list > li { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--c-border); }
#content .pp ul.quali-list > li::before { top: calc(12px + .8em - 2px); }
#content .pp .quali-list > li + li { margin-top: 0; }
#content .pp .cols-list { columns: 1; column-gap: 32px; }
@media (min-width: 640px) { #content .pp .cols-list { columns: 2; } }
#content .pp .cols-list li { break-inside: avoid; margin: 0 0 .35em; }

#content .pp .contact-list { list-style: none; padding: 0; margin: 0; }
#content .pp .contact-list li { display: flex; gap: .85rem; align-items: flex-start; padding: .85rem 0; }
#content .pp .contact-list li:first-child { padding-top: 0; }
#content .pp .contact-list li:last-child { padding-bottom: 0; }
#content .pp .contact-list li + li { margin-top: 0; border-top: 1px solid var(--c-border); }
#content .pp .contact-list li::before { width: 1.5em; height: 1.5em; margin-top: .1em; }
#content .pp .contact-list .label { display: block; font-size: var(--fs-small); font-weight: 600; }
/* Kontaktzeile: Telefon, Notfall, E-Mail fett; Telefonnummern groß */
#content .pp :is(.contact-list, .emergency) a { font-weight: 700; }
#content .pp .contact-emph { font-size: var(--fs-lead); }

/* ---------- Buttons: Pille, Höhe 52 px. .btn = Sekundär (Rahmen Blau), .btn--call = Anrufen (Orange, weiß, fett) ---------- */
#content .pp .btn, #container a.diyfeLinkAsButton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--btn-h); max-width: 100%; margin: 0; padding: 10px 26px;
  background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); border-radius: var(--radius);
  font-family: var(--font); font-size: var(--fs-btn); font-weight: 700; line-height: 1.2;
  text-align: center; text-decoration: none; white-space: normal; cursor: pointer;
}
#content .pp .btn:hover, #container a.diyfeLinkAsButton:hover { background-color: var(--c-primary-light); text-decoration: underline; }
#content .pp .btn--call, #container a.diyfeLinkAsButton[href^="tel:"] { background: var(--c-orange); border-color: var(--c-orange); color: #fff; }
#content .pp .btn--call:hover, #container a.diyfeLinkAsButton[href^="tel:"]:hover { background: var(--c-orange); color: #fff; }
#content .pp .btn[class*="ico-"]::before { width: 1.3em; height: 1.3em; background-color: currentColor; }
#content .pp .btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 16px; }
#content .pp .btn-row:last-child { margin-bottom: 0; }
#content .pp :is(.steps + .btn-row, .cta .btn-row) { justify-content: center; }
/* Handlungsaufruf am Seitenende (Leistungen): zentrierte Zeile + Anruf-Button wie unter „So beginnt die Pflege“ */
#content .pp .cta { text-align: center; }
#content .pp .cta .lead { max-width: var(--measure); margin: 0 auto; }
@media (max-width: 479px) { #content .pp .btn-row .btn, #container a.diyfeLinkAsButton { display: flex; width: 100%; padding-left: 16px; padding-right: 16px; } }

/* ---------- Chips: Themen (.toc) und Etikett (.law), kleine hellgraue Pillen ---------- */
#content .pp :is(.toc a, .law) {
  background: var(--c-surface); border-radius: var(--radius); font-size: 15px; line-height: 1.3;
}
#content .pp .law { display: inline-block; margin-bottom: 12px; padding: 4px 14px; color: var(--c-primary); font-weight: 700; letter-spacing: .02em; }
#content .pp .toc-nav { margin-top: var(--gap-head); }
#content .pp .toc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#content .pp .toc li { margin: 0; display: flex; }
#content .pp .toc li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
#content .pp .toc a {
  width: 100%; min-height: 44px; padding: 8px 10px; display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--c-text); font-weight: 600; text-decoration: none; white-space: nowrap;
}
#content .pp .toc a:hover { text-decoration: underline; }
@media (min-width: 768px) {
  #content .pp .toc { display: flex; flex-wrap: wrap; }
  #content .pp .toc li:last-child:nth-child(odd) { width: auto; }
  #content .pp .toc a { width: auto; padding: 8px 18px; }
}

/* ---------- Sticker „24 Stunden · 7 Tage · 52 Wochen“: orange Rosette mit blauem Rand, bleibt Text ---------- */
#content .pp .badge-247 {
  position: relative; isolation: isolate; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  width: 10.7em; aspect-ratio: 1; margin: 28px auto 0; padding: 0; flex: none; max-width: 100%;
  color: #fff; font-size: 18.7px; font-weight: 800; font-style: italic; line-height: 1.05;
  text-transform: uppercase; transform: rotate(-10deg);
}
#content .pp .badge-247::before, #content .pp .badge-247::after { content: ""; position: absolute; z-index: -1; clip-path: var(--rosette); }
#content .pp .badge-247::before { inset: 0; background: var(--c-blue); }
#content .pp .badge-247::after { inset: 6px; background: var(--c-orange); }
#content .pp .badge-247 span { display: block; white-space: nowrap; letter-spacing: -.03em; }
#content .pp .hero .badge-247 { display: none; }
/* Handy: Sticker ragt in die erste Vorteil-Karte (Überschrift entfällt, steht im Sticker); ab 1024 px Sticker im Hero */
#content .pp .card.fact { position: relative; }
#content .pp .card.fact .badge-247 { position: absolute; top: -64px; right: -4px; margin: 0; }
@media (max-width: 1023px) {
  #content .pp .hero + .section { padding-top: 48px; }
  #content .pp .grid--4 > .card.fact:first-child { padding-top: 76px; }
  #content .pp .card.fact .fact-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
}
@media (min-width: 1024px) {
  #content .pp .card.fact .badge-247 { display: none; }
  #content .pp .hero .badge-247 { display: flex; position: absolute; margin: 0; font-size: 21px; right: calc(96px + (min(30%, 340px) - 10.7em) / 2); top: 165px; }
}

/* ---------- Rahmen-Kasten (Band-Rahmen): Einsatzgebiet, Notfall-Karte, Hinweis ----------
   Hellgrau, voller Radius. Rahmenstrich ca. 55 % der Bandbreite (--ew = 0,55 · --band-w; Handy ≈ 6,6 px, ab 768 px ≈ 9,9 px),
   2/3 innen (--ei), 1/3 außen (--eo), Radien konzentrisch (außen --radius + --eo). Orange nur gerade an der linken Kante
   (beginnt auf Höhe des Grau-Endes), Lücke, Blau unten links (Form wie Grau), Grau oben rechts am ersten Kind. Eckige Enden.
   --eleg: gerader Ansatz von Grau/Blau (Einsatzgebiet 3 · ew, sonst 1,5 · ew). */
#content .pp :is(section.einsatzgebiet, .emergency, .hinweis) {
  --ew: calc(var(--band-w) * 0.55); --eo: calc(var(--ew) / 3); --egap: calc(var(--ew) / 3); --eRo: calc(var(--radius) + var(--eo)); --eleg: calc(var(--ew) * 1.5);
  position: relative; overflow: visible; background: var(--c-surface); color: var(--c-text); border-radius: var(--radius);
}
#content .pp :is(section.einsatzgebiet, .emergency, .hinweis)::before, #content .pp :is(section.einsatzgebiet, .emergency, .hinweis)::after,
#content .pp :is(section.einsatzgebiet, .emergency, .hinweis) > :first-child::after { content: ""; position: absolute; pointer-events: none; border: 0 solid; }
/* Orange: gerade an der linken Kante */
#content .pp :is(section.einsatzgebiet, .emergency, .hinweis)::before { left: calc(var(--eo) * -1); top: calc(var(--radius) + var(--eleg)); width: var(--ew); height: calc(100% - 2 * var(--radius) - 2 * var(--eleg) - var(--egap)); background: #E85223; }
/* Blau: unten links, gleiche Form wie Grau */
#content .pp :is(section.einsatzgebiet, .emergency, .hinweis)::after { left: calc(var(--eo) * -1); bottom: calc(var(--eo) * -1); width: calc(var(--eRo) + var(--eleg)); height: calc(var(--eRo) + var(--eleg)); border-color: #3E63AB; border-width: 0 0 var(--ew) var(--ew); border-bottom-left-radius: var(--eRo); }
/* Grau: oben rechts */
#content .pp :is(section.einsatzgebiet, .emergency, .hinweis) > :first-child::after { right: calc(var(--eo) * -1); top: calc(var(--eo) * -1); width: calc(var(--eRo) + var(--eleg)); height: calc(var(--eRo) + var(--eleg)); border-color: #C6C6C7; border-width: var(--ew) var(--ew) 0 0; border-top-right-radius: var(--eRo); }

/* Einsatzgebiet (Startseite): großer Kasten, orange Überschrift, Orte in 2–4 Spalten */
#content .pp section.einsatzgebiet { --eleg: calc(var(--ew) * 3); margin: 0 0 var(--gap-y); padding: 48px 28px 40px; }
@media (min-width: 768px) { #content .pp section.einsatzgebiet { padding: 64px 56px 56px; } }
#content .pp .einsatzgebiet h2 { color: var(--c-orange); }
#content .pp .einsatzgebiet p { max-width: var(--measure); }
#content .pp .einsatzgebiet .cols-list { margin: 8px 0 20px; columns: 2; column-gap: 20px; }
@media (min-width: 900px) { #content .pp .einsatzgebiet .cols-list { columns: 3; } }
@media (min-width: 1200px) { #content .pp .einsatzgebiet .cols-list { columns: 4; } }
/* Hinweis: Mindesthöhe, damit beide Bögen passen und Orange ca. 1/3 der Höhe misst */
#content .pp .hinweis {
  display: flex; flex-direction: column; justify-content: center; min-height: calc(3 * var(--radius) + 4.5 * var(--ew) + .5 * var(--ew));
  padding: 24px 36px; margin: var(--gap-grid) 0;
}
#content .pp .hinweis:first-child { margin-top: 0; }
#content .pp .hinweis p { margin: 0 0 12px; }
#content .pp .hinweis p:last-child { margin-bottom: 0; }

/* ---------- Zitat: ohne Fläche, zentriert, oranges Anführungszeichen, Text 18 / 22 px ---------- */
#content .pp :is(.quote, .quotes) { max-width: 48rem; margin: 0 auto; text-align: center; }
#content .pp .quote blockquote { margin: 0; padding: 0; border: 0; max-width: none; font-size: inherit; }
#content .pp .quote blockquote p { margin-bottom: 12px; color: var(--c-text); font-size: 18px; line-height: 1.55; font-weight: 500; }
@media (min-width: 768px) { #content .pp .quote blockquote p { font-size: 22px; } }
#content .pp .quote figcaption { font-weight: 600; }
#content .pp :is(.quote, .quotes)::before { --m: var(--ic-quote); width: 48px; height: 48px; margin: 0 auto 16px; background-color: var(--c-orange); }
#content .pp .quotes .quote::before { content: none; }
#content .pp .quotes .quote { margin: 0; max-width: none; }
#content .pp .quotes-dots { display: none; }
@media (prefers-reduced-motion: reduce) { #content .pp .quotes .quote + .quote { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--c-border); } }
@media (prefers-reduced-motion: no-preference) {
  #content .pp .quotes-track { display: grid; align-items: center; overflow: hidden; }
  #content .pp .quotes .quote { grid-area: 1 / 1; opacity: 0; animation: v24-zitat 24s ease-in-out infinite both; }
  #content .pp .quotes .quote:nth-child(1) { opacity: 1; animation-delay: 0s; }
  #content .pp .quotes .quote:nth-child(2) { animation-delay: -16s; }
  #content .pp .quotes .quote:nth-child(3) { animation-delay: -8s; }
  #content .pp .quotes-dots { display: flex; justify-content: center; gap: 10px; margin: 20px 0 0; }
  #content .pp .quotes-dots span { display: block; width: 22px; height: 6px; font-size: 0; line-height: 0; color: transparent; overflow: hidden; background: var(--c-orange); opacity: .3; animation: v24-punkt 24s ease-in-out infinite both; }
  #content .pp .quotes-dots span:nth-child(2) { animation-delay: -16s; }
  #content .pp .quotes-dots span:nth-child(3) { animation-delay: -8s; }
  #content .pp .quotes:hover :is(.quote, .quotes-dots span), #content .pp .quotes:focus-within :is(.quote, .quotes-dots span) { animation-play-state: paused; }
}
/* waagerechtes Gleiten: von rechts herein, nach links hinaus */
@keyframes v24-zitat {
  0%, 29% { opacity: 1; transform: none; }
  33.333% { opacity: 0; transform: translateX(-32px); }
  95.833% { opacity: 0; transform: translateX(32px); }
  100% { opacity: 1; transform: none; }
}
@keyframes v24-punkt {
  0%, 29% { opacity: 1; transform: scale(1.25); }
  33.333%, 95.833% { opacity: .3; transform: none; }
  100% { opacity: 1; transform: scale(1.25); }
}

/* ---------- Foto ---------- */
#content .pp .photo { margin: 0; }
#content .pp .photo img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
#content .pp .photo figcaption { margin-top: 12px; font-size: 16px; line-height: 1.5; }

/* ---------- Rechtstext (Impressum, Datenschutz, Barrierefreiheit): Zeilenlänge --measure, Zwischenüberschriften in h3-Größe ---------- */
#content .pp .legal h2 { font-size: var(--fs-h3); line-height: 1.25; margin: 48px 0 12px; }
#content .pp .legal h2:first-child { margin-top: 0; }
#content .pp .legal a { overflow-wrap: anywhere; }
#content .pp .legal code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95em; background: var(--c-primary-light); padding: 0 .25em; border-radius: 4px; }

/* ---------- Einblenden beim Scrollen (nur mit Unterstützung, ohne reduzierte Bewegung) ---------- */
@keyframes v26-ein { from { opacity: 0; translate: 0 32px; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    #content .pp :is(.card, .section-head, .quote, .split > *, .hinweis) { animation: v26-ein linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    #content .pp .quotes .quote { animation-timeline: auto; }
  }
}

/* ---------- Bewegung / Druck ---------- */
@media (prefers-reduced-motion: reduce) {
  #container *, #container *::before, #container *::after { transition: none !important; animation: none !important; }
}
@media print {
  #header { position: static; }
  #navigation, #header_call, .nav-toggle-label, #mobile-infobar, #mobile-infobar-spacer, .skiplink,
  #content .pp .btn-row, #content .pp .toc-nav, #sidebar::before, #sidebar::after, #sidebar > .gutter::before, #sidebar > .gutter::after, #header::before, #header::after, #header_wrapper::after,
  #content .pp :is(section.einsatzgebiet, .emergency, .hinweis)::before, #content .pp :is(section.einsatzgebiet, .emergency, .hinweis)::after, #content .pp :is(section.einsatzgebiet, .emergency, .hinweis) > :first-child::after { display: none !important; }
  #sidebar { background: #fff; color: #2B2B2A; }
  #sidebar :is(h2, p, a) { color: #2B2B2A; }
  #content .pp :is(.section, .hero, .page-head) { padding: 16px 0; margin: 0; background: #fff; }
}

/* =====================================================================
   Dunkelmodus (nach Systemeinstellung, ohne JavaScript): nur Hintergründe und Textfarbe werden dunkel/hell.
   Markenfarben (Blau, Orange, Mittelgrau) bleiben exakt; Blau nur als Fläche/Band (3,0:1), nie als Schrift –
   Überschriften, Links und Icons in #ECEDEE (14,9 auf #151A23, 13,1 auf #1F2531). Weiß auf Blau 5,9, Weiß auf Orange 3,7 (nur groß/fett).
   ===================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --c-text: #ECEDEE;
    --c-bg: #151A23;
    --c-surface: #1F2531;
    --c-primary: #ECEDEE;
    --c-primary-light: #2B3240;
    --c-border: #313949;
    --c-footer-bg: #0E1117;
  }
  #logo { background: url("/s/img/logo-flyer-dunkel-4x.png") no-repeat left center / contain; }
  #logo img { opacity: 0; }
  #container .skiplink, #container .skiplink:focus { background: #ECEDEE; color: #151A23; }
  #content .pp .photo img { box-shadow: 0 0 0 1px var(--c-border); }
}