/* HEOB – user.css für das Child-Template cassiopeia_heob (Joomla 6, Cassiopeia).
   Gleiche Datei wie components/bundle.css im HEOB Design System.
   Teil 1: Marken-Variablen. Teil 2: Cassiopeia an die Marke anpassen. Teil 3: HEOB-Komponenten (Klassen heob-*). Teil 4: Bewegung. */

/* ---------- 1. Marken-Variablen (Werte aus den Brand Guidelines v1.1) ---------- */
:root {
  /* Inhaltskante: die Hauptspalte von Cassiopeia ist 4 × 19,875rem plus 3 Abstände zu 1em (18px), mindestens 1em vom Rand.
     Alle vollbreiten Bereiche (Kopf, Bühne, Band, Infoband, Fuß, Knöpfe) richten sich mit --heob-rand an dieser Kante aus. */
  --heob-raster: calc(4 * 19.875rem + 3 * 1.125rem);
  --heob-rand: max(1.125rem, calc((100% - var(--heob-raster)) / 2));
  --heob-gelb: #fab200;          /* Narzissengelb, primäre Akzentfarbe */
  --heob-rot: #e30613;           /* Rot, Effektfarbe */
  --heob-rot-tief: #b8050f;      /* Hover/gedrückt auf Rot, Links im Hover */
  --heob-soft-black: #2e2e2e;    /* Schrift, dunkle Flächen */
  --heob-hintergrund: #f6f6f6;   /* Seitenhintergrund */
  --heob-weiss: #ffffff;
  --heob-grau: #5f5f5f;          /* zweitrangiger Text */
  --heob-linie: #dcdcdc;         /* Trennlinien, nie als einziger Rand eines Bedienelements */
  --heob-schatten-bild: rgba(46, 46, 46, 0.55); /* Abdunklung über Fotos */

  --heob-font: "Gilroy", "Century Gothic", "CenturyGothic", "Avenir Next", "Avenir", "Futura", "Segoe UI", system-ui, sans-serif;
  --heob-gewicht-text: 400;
  --heob-gewicht-sub: 700;
  --heob-gewicht-headline: 800;

  --heob-space-1: 4px;  --heob-space-2: 8px;  --heob-space-3: 12px; --heob-space-4: 16px;
  --heob-space-6: 24px; --heob-space-8: 32px; --heob-space-12: 48px; --heob-space-16: 64px; --heob-space-24: 96px;
  --heob-radius-0: 0;   --heob-radius-s: 4px; --heob-radius-rund: 999px;
  --heob-fokus: 3px solid var(--heob-soft-black);

  /* Cassiopeia-Variablen auf die Marke legen */
  --cassiopeia-color-primary: var(--heob-soft-black);
  --cassiopeia-color-hover: var(--heob-rot-tief);
  --cassiopeia-color-link: var(--heob-rot);
  --cassiopeia-font-family-body: var(--heob-font);
  --cassiopeia-font-family-headings: var(--heob-font);
  --cassiopeia-font-weight-headings: 800;
  --cassiopeia-font-weight-normal: 400;
  --link-color: #e30613; --link-color-rgb: 227, 6, 19;
  --link-hover-color: #b8050f; --link-hover-color-rgb: 184, 5, 15;
  --body-bg: #f6f6f6; --body-color: #2e2e2e;
}

/* ---------- 2. Cassiopeia an die Marke anpassen ---------- */
body.site { background: var(--heob-hintergrund); color: var(--heob-soft-black); font-family: var(--heob-font); font-size: 1.125rem; line-height: 1.6; }
.site h1, .site h2, .site h3, .site h4 { font-family: var(--heob-font); font-weight: var(--heob-gewicht-headline); color: var(--heob-soft-black); letter-spacing: -0.01em; text-wrap: balance; line-height: 1.12; }
.site h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.site h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.site h3 { font-size: 1.35rem; }
.site p, .site li { text-wrap: pretty; }
.site a { color: var(--heob-rot); text-underline-offset: 0.18em; }
.site a:hover { color: var(--heob-rot-tief); }
.site :focus-visible { outline: var(--heob-fokus); outline-offset: 3px; }

/* Kopfzeile: weiß, Logo in Vollfarbe, darunter die gelbe Linie als Lesefortschritt (wie oben auf jeder Seite der Guidelines) */
.container-header { background: var(--heob-weiss); background-image: none; box-shadow: none; color: var(--heob-soft-black); border-bottom: 1px solid var(--heob-linie); }
.container-header .navbar-brand, .container-header .navbar-brand a, .container-header .site-description { color: var(--heob-soft-black); }
.container-header .brand-logo img { height: 56px; width: auto; max-width: 60vw; }
/* Logo als Inline-SVG: Modul „Logo Kopfzeile“ (Position below-top, ersetzt die Marke des Templates) und „Logo Fußzeile“.
   Farben kommen aus Variablen, das O ist eine eigene Gruppe (.heob-logo__o) und lässt sich animieren. */
.heob-logo { display: block; margin: 0; line-height: 0; }
.heob-logo__bild { display: block; height: var(--heob-logo-h, 72px); width: auto; max-width: 60vw; }
.container-footer .heob-logo { --heob-logo-he: var(--heob-weiss); --heob-logo-ob: var(--heob-weiss); --heob-logo-zeile: var(--heob-weiss); }
.container-footer .heob-logo__bild { width: 220px; height: auto; max-width: 100%; }
@media (max-width: 991.98px) { footer.container-footer .grid-child { align-items: flex-start; } }
/* Schutzraum laut Guidelines: rundum Weißraum in der Breite des H, das sind 21 % der Logobreite = 0,554 × Logohöhe (72px → 40px, am Handy 54px → 30px) */
.site .container-header { --heob-logo-h: 72px; --heob-logo-schutz: calc(var(--heob-logo-h) * 0.554); column-gap: var(--heob-logo-schutz); }
@media (max-width: 575.98px) { .site .container-header { --heob-logo-h: 54px; } }
.container-header > .grid-child.container-below-top { padding-block: var(--heob-logo-schutz); }
.container-header .site-description { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
.container-header .mod-menu > li > a, .container-header .mod-menu > li > span, .container-header .metismenu > li > a, .container-header .metismenu > li > button { color: var(--heob-soft-black); font-weight: 700; text-decoration: none; }
.container-header .metismenu > li > a, .container-header .metismenu > li > button.mm-toggler { box-shadow: inset 0 -4px 0 transparent; transition: box-shadow .2s; border-radius: 0; }
.container-header .metismenu > li > a:hover, .container-header .metismenu > li.active > a, .container-header .metismenu > li > button.mm-toggler:hover { box-shadow: inset 0 -4px 0 var(--heob-gelb); color: var(--heob-soft-black); }
.container-header .metismenu > li.current > a { box-shadow: inset 0 -4px 0 var(--heob-rot); }
.container-header .metismenu .mm-collapse { background: var(--heob-weiss); border: 1px solid var(--heob-linie); border-top: 4px solid var(--heob-gelb); border-radius: 0; box-shadow: none; }
.container-header .metismenu .mm-collapse a { color: var(--heob-soft-black); font-weight: 400; }
/* Untermenü: die ganze Zeile ist der Link. Beim Darüberfahren heller Grund und links ein gelber Balken wie die gelbe Linie im Hauptmenü, kein Unterstrich. */
.container-header .metismenu.mod-menu .mm-collapse > li { padding: 0; }
.container-header .metismenu.mod-menu .mm-collapse > li > a { width: 100%; padding: 0.55em 1em; text-decoration: none; box-shadow: inset 4px 0 0 transparent; }
.container-header .metismenu.mod-menu .mm-collapse > li > a:is(:hover, :focus-visible) { background: var(--heob-hintergrund); box-shadow: inset 4px 0 0 var(--heob-gelb); color: var(--heob-soft-black); text-decoration: none; }
.container-header .metismenu.mod-menu .mm-collapse > li > a:focus-visible { outline-offset: -3px; }
.container-header .navbar-toggler { color: var(--heob-soft-black); border-color: var(--heob-soft-black); }
.container-header .metismenu li, .container-header .metismenu .mm-toggler { color: var(--heob-soft-black); }
/* Untermenü ohne Pfeil-Schalter: ab 992px öffnet es beim Darüberfahren und sobald ein Link darin den Tastatur-Fokus hat.
   Am Handy stehen die Unterpunkte im aufgeklappten Menü immer offen und eingerückt. */
.container-header .metismenu.mod-menu .mm-toggler { display: none; }
@media (min-width: 992px) {
  .container-header .metismenu.mod-menu > li.parent { position: relative; }
  .container-header .metismenu.mod-menu > li.parent > .mm-collapse { top: 100%; left: 0; min-width: 14rem; z-index: 10; }
  .container-header .metismenu.mod-menu > li.parent:is(:hover, :focus-within) > .mm-collapse { display: block; }
}
@media (max-width: 991.98px) {
  .container-header .metismenu.mod-menu .mm-collapse { display: block; position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 var(--heob-space-4); }
  .container-header .metismenu.mod-menu .mm-collapse a { font-size: 0.95rem; }
}
.container-header::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 4px; background: var(--heob-gelb); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
/* Logo links, Menü rechts in einer Zeile. Am Handy klappt das Menü unter der Kopfzeile auf. */
.container-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: var(--heob-space-6); padding-inline: max(var(--heob-logo-schutz, 40px), var(--heob-rand)) var(--heob-rand); }
.container-header > .grid-child { width: auto; max-width: none; margin: 0; padding: var(--heob-space-2) 0; }
.container-header > .container-nav { flex: 1 1 auto; justify-content: flex-end; }
.container-header .navbar, .container-header .navbar-collapse, .container-header .mod-menu { justify-content: flex-end; }
.container-header .navbar { margin: 0; padding: 0; }
@media (max-width: 991.98px) {
  .container-header .container-nav, .container-header .navbar { position: static; }
  .container-header .navbar-collapse { position: absolute; inset-inline: 0; top: 100%; background: var(--heob-weiss); padding: var(--heob-space-4) var(--heob-rand); border-bottom: 4px solid var(--heob-gelb); }
  .container-header .navbar-collapse .mod-menu { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 992px) {
  .container-header { flex-wrap: nowrap; }
  .container-header .metismenu.mod-menu > .metismenu-item { padding: 0.5em 0.7em; font-size: 1rem; }
  .container-header .metismenu.mod-menu > .metismenu-item:last-child { padding-inline-end: 0; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container-header .metismenu.mod-menu > .metismenu-item { padding-inline: 0.35em; font-size: 0.95rem; }
}

/* Brotkrumen leise */
.mod-breadcrumbs__wrapper .breadcrumb { background: transparent; padding-left: 0; font-size: 0.85rem; color: var(--heob-grau); }

/* Beitragsseiten: Titel mit gelbem Marker, Beitragsbild als Parallax-Kopf */
.item-page .page-header h1, .item-page .page-header h2 { display: inline; background: linear-gradient(transparent 62%, var(--heob-gelb) 62%, var(--heob-gelb) 92%, transparent 92%) no-repeat 0 0 / 100% 100%; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.item-page .page-header { margin-bottom: var(--heob-space-8); }
.item-page .item-image { float: none; margin: 0 auto var(--heob-space-12); width: min(85%, 26rem); }
.item-page .item-image .heob-pfuetze__form > img { --heob-weg: 6%; }
.item-page .com-content-article__body { max-width: none; }
.item-page .com-content-article__body > :is(p, ul, ol, h2, h3, h4, blockquote, table):not([class*="heob-"]) { max-width: 72ch; }
.site-grid { overflow-x: clip; }
.item-page .com-content-article__body img { height: auto; }
.item-page .com-content-article__body .table { --bs-table-bg: transparent; }
.item-page .com-content-article__body h2 { margin-top: var(--heob-space-12); scroll-margin-top: 180px; }
.item-page .com-content-article__body h3 { margin-top: var(--heob-space-8); }

/* Formulare (Komponente Kontakte): Einleitung vor dem Formular, doppelte Kern-Überschriften ausgeblendet */
.com-contact { display: flex; flex-direction: column; gap: var(--heob-space-6); max-width: 46rem; }
.com-contact > .page-header h1 { display: inline; background: linear-gradient(transparent 62%, var(--heob-gelb) 62%, var(--heob-gelb) 92%, transparent 92%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.com-contact > .com-contact__container, .com-contact > h2, .com-contact__miscinfo :is(h2, h3, dt) { display: none; }
.com-contact > .com-contact__miscinfo { order: 1; }
.com-contact > .com-contact__form { order: 2; }
.com-contact__form legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.com-contact__form .control-group { margin-bottom: var(--heob-space-4); }
.com-contact__form .control-label { font-weight: 700; font-size: 1rem; }
.com-contact__form .form-control, .com-contact__form .form-select { border: 2px solid #8a8a8a; border-radius: var(--heob-radius-s); min-height: 48px; font-size: 1rem; background: var(--heob-weiss); color: var(--heob-soft-black); }
.com-contact__form .form-control:focus, .com-contact__form .form-select:focus { border-color: var(--heob-soft-black); box-shadow: none; outline: var(--heob-fokus); outline-offset: 2px; }
.com-contact__form .form-check-input { width: 1.25em; height: 1.25em; border: 2px solid #8a8a8a; }
.com-contact__form .form-check-input:checked { background-color: var(--heob-soft-black); border-color: var(--heob-soft-black); }
.com-contact__form .btn-primary { min-height: 52px; padding: var(--heob-space-3) var(--heob-space-6); background: var(--heob-gelb); color: var(--heob-soft-black); border: 2px solid var(--heob-gelb); border-radius: var(--heob-radius-0); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.com-contact__form .btn-primary:hover, .com-contact__form .btn-primary:focus-visible { background: var(--heob-soft-black); border-color: var(--heob-soft-black); color: var(--heob-gelb); }

/* Banner-Position: volle Breite ohne Rand */
.container-banner { padding: 0; }

/* Infoband (Position bottom-a): volle Breite in Narzissengelb, Module als ruhige Spalten */
.site-grid > .container-bottom-a { grid-column: full-start / full-end; background: var(--heob-gelb); padding: var(--heob-space-16) var(--heob-rand); margin-top: var(--heob-space-16); position: relative; overflow: clip; display: flex; flex-wrap: wrap; gap: var(--heob-space-8); }
.site-grid > .container-bottom-a > .card { background: transparent; border: 0; box-shadow: none; flex: 1 1 260px; margin: 0; position: relative; z-index: 1; }
.site-grid > .container-bottom-a .card-header { background: transparent; border: 0; padding: 0 0 var(--heob-space-3); font-size: 1.6rem; color: var(--heob-soft-black); }
.site-grid > .container-bottom-a .card-body { padding: 0; }
.site-grid > .container-bottom-a a { color: var(--heob-soft-black); font-weight: 700; }
.site-grid > .container-bottom-a a:hover { color: var(--heob-soft-black); text-decoration-thickness: 3px; }
.site-grid > .container-bottom-a .heob-symbol { position: absolute; right: -40px; bottom: -70px; width: 260px; color: var(--heob-rot); z-index: 0; }
.site-grid > .container-bottom-a :focus-visible { outline-color: var(--heob-soft-black); }
#oeffnungszeiten { scroll-margin-top: 180px; }

/* Position bottom-b: volle Breite (für das Parallax-Band) */
.site-grid > .container-bottom-b { grid-column: full-start / full-end; padding: 0; }
.site-grid > .container-bottom-b > .card, .site-grid > .container-bottom-b > * { border: 0; margin: 0; background: transparent; }

/* Fußzeile: Soft Black, Logo einfarbig weiß */
.container-footer { background: var(--heob-soft-black); background-image: none; color: var(--heob-weiss); margin-top: 0; }
.container-footer { padding-bottom: 72px; }
.container-footer .grid-child { max-width: none; margin-inline: 0; padding-block: var(--heob-space-12); padding-inline: max(calc(220px * 0.211), var(--heob-rand)) var(--heob-rand); align-items: center; gap: var(--heob-space-6); flex-wrap: wrap; }
.container-footer a { color: var(--heob-weiss); text-decoration: none; }
.container-footer a:hover { color: var(--heob-gelb); text-decoration: underline; }
.container-footer :focus-visible { outline-color: var(--heob-gelb); }
.container-footer img { max-width: 220px; height: auto; }
.container-footer .mod-menu { gap: var(--heob-space-1); }
.container-footer .mod-menu > li { padding-block: 0; }
.container-footer .mod-menu > li > a { display: inline-block; padding-block: 0.35rem; }
/* Nach-oben-Button: runder Knopf ganz unten rechts in der Fensterecke, gleich wie der Cookie-Knopf ganz unten links. Am Seitenende steht er im freien Streifen unter der Fußzeile (padding-bottom 72px) und verdeckt keine Links. */
#back-top.back-to-top-link { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--heob-weiss); color: var(--heob-soft-black); border: 0; border-radius: var(--heob-radius-rund); box-shadow: 0 0 0 1.5px var(--heob-soft-black); font-size: 1.1rem; text-decoration: none; }
#back-top.back-to-top-link:hover { background: var(--heob-gelb); color: var(--heob-soft-black); }
#back-top.back-to-top-link:focus-visible { outline: var(--heob-fokus); outline-offset: 3px; }
.container-footer .mod-menu > li > a { font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- 3. HEOB-Komponenten ---------- */
.heob-slogan { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400; margin: 0; }
.heob-marker { background: linear-gradient(transparent 62%, var(--heob-gelb) 62%, var(--heob-gelb) 92%, transparent 92%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.heob-zahl { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--heob-rot); }

/* Button */
.heob-button { display: inline-flex; align-items: center; gap: var(--heob-space-2); min-height: 52px; padding: var(--heob-space-3) var(--heob-space-6); background: var(--heob-gelb); color: var(--heob-soft-black) !important; font-family: var(--heob-font); font-weight: 800; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none !important; border: 2px solid var(--heob-gelb); border-radius: var(--heob-radius-0); cursor: pointer; transition: background-color .18s, color .18s, border-color .18s; }
.heob-button:hover { background: var(--heob-soft-black); border-color: var(--heob-soft-black); color: var(--heob-gelb) !important; }
.heob-button:focus-visible { outline: var(--heob-fokus); outline-offset: 3px; }
.heob-button--dunkel { background: var(--heob-soft-black); border-color: var(--heob-soft-black); color: var(--heob-weiss) !important; }
.heob-button--dunkel:hover { background: var(--heob-weiss); border-color: var(--heob-soft-black); color: var(--heob-soft-black) !important; }
.heob-button--hell { background: transparent; border-color: var(--heob-weiss); color: var(--heob-weiss) !important; }
.heob-button--hell:hover { background: var(--heob-weiss); border-color: var(--heob-weiss); color: var(--heob-soft-black) !important; }
.heob-auf-dunkel .heob-button:focus-visible, .heob-button--hell:focus-visible { outline-color: var(--heob-gelb); }
/* Auf dunklem Grund (Bühne, Band-Tafel, Fußzeile) wird der gelbe Button beim Darüberfahren weiß statt soft-black, sonst verschwindet er im Grund */
:is(.heob-band__tafel, .heob-aktion, .heob-auf-dunkel, .container-footer) .heob-button:not(.heob-button--hell, .heob-button--dunkel):hover { background: var(--heob-weiss); border-color: var(--heob-weiss); color: var(--heob-soft-black) !important; }
.heob-button[disabled], .heob-button[aria-disabled="true"] { background: var(--heob-linie); border-color: var(--heob-linie); color: var(--heob-grau) !important; cursor: not-allowed; }
.heob-button__pfeil { width: 18px; height: 18px; }

/* Parallax-Bühne (Startseite, Position banner). Links oben liegt eine große weiße Pfütze (Form wie auf den Unterseiten) mit Text und Buttons;
   die Pfütze hängt am Inhalt und wächst mit dem Text mit. Das Foto liegt rechts daneben und darunter und endet unten mit einer geraden, leicht fallenden Kante.
   Das Schild „HEOB“ am Dach bleibt lesbar: Es liegt im Foto bei 51,6 % / 44,2 %, translate legt genau diesen Punkt auf left/top des Fotos. */
/* --heob-schraege: so viel höher endet die Bühne links als rechts (beim Scrollen). --heob-tropfzone: Platz unter der Kante für die Tropfen (user.js). */
:root { --heob-schraege: 3vw; --heob-tropfzone: 7.5rem; }
.heob-hero { --heob-band: 20rem; position: relative; overflow: clip; background: var(--heob-soft-black); color: var(--heob-soft-black); display: flex; align-items: flex-start; padding-bottom: var(--heob-band); isolation: isolate; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--heob-schraege))); }
.heob-hero__bild { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; z-index: -2; margin: 0 !important; max-width: none !important; --heob-weg: 11%; }
.heob-hero__inhalt > * { max-width: 46rem; }
.heob-hero__inhalt { width: fit-content; max-width: 100%; padding: var(--heob-space-12) 15rem 8rem var(--heob-rand); margin: 0; display: grid; gap: var(--heob-space-6); position: relative; z-index: 1; anchor-name: --heob-aussparung; }
.heob-hero__inhalt::before, .heob-hero__inhalt::after { content: ""; position: absolute; inset: -45% 0 0 -40%; z-index: -1; background: var(--heob-weiss); -webkit-mask: var(--heob-pfuetze-1) center / 100% 100% no-repeat; mask: var(--heob-pfuetze-1) center / 100% 100% no-repeat; }
/* Dahinter dieselbe Pfütze in Gelb, versetzt und gedreht wie bei den Bildern der Unterseiten */
.heob-hero__inhalt::after { z-index: -2; background: var(--heob-gelb); translate: 2.5% 3.5%; rotate: -3deg; }
/* Ab 992px steht das Schild knapp rechts der Einbuchtung der Pfütze (78,4 % der Inhaltsbreite, 58 % der Inhaltshöhe).
   Das Foto wird nur so weit vergrößert, dass es die Bühne samt Parallax-Weg (±8,25 % seiner Breite) deckt. Ohne Anchor Positioning bleibt das Foto wie bisher. */
@media (min-width: 992px) {
  @supports (anchor-name: --a) {
    .heob-hero__bild { height: auto; translate: -51.6% -44.2%; left: calc(anchor(--heob-aussparung right) * 0.784 + 7rem); top: calc(anchor(--heob-aussparung bottom) * 0.58);
      width: max(100%, calc((anchor-size(--heob-aussparung width) * 0.784 + 7rem) / 0.516), calc(anchor-size(--heob-aussparung height) * 0.58 / 0.249), calc((anchor-size(--heob-aussparung height) * 0.42 + var(--heob-band) + var(--heob-tropf, 0px)) / 0.336)); }
  }
}
/* Bis 991px: Text über die volle Breite auf Weiß, nur der untere Bogen der Pfütze ist sichtbar. Darunter ein Fotostreifen (--heob-band),
   das Schild sitzt in dessen Mitte bei 40 % der Breite, links vom Symbol. */
@media (max-width: 991.98px) {
  :root { --heob-schraege: 6vw; }
  .heob-hero { --heob-band: 18rem; }
  .heob-hero__inhalt { width: 100%; padding: var(--heob-space-8) var(--heob-rand) var(--heob-space-12); }
  .heob-hero__inhalt::before, .heob-hero__inhalt::after { inset: -45% -88% 0 -112%; }
  .heob-hero__bild { height: auto; translate: -51.6% -44.2%; left: 40%; top: calc(100% - var(--heob-tropf, 0px) - var(--heob-band) * 0.5); width: max(124%, calc((var(--heob-band) * 0.5 + 5rem) / 0.249), calc((var(--heob-band) * 0.5 + var(--heob-tropf, 0px)) / 0.336)); }
}
.heob-hero__titel { color: var(--heob-soft-black) !important; font-size: clamp(2.6rem, 7vw, 5.5rem) !important; line-height: 0.95 !important; margin: 0; letter-spacing: -0.02em; }
/* Gelber Marker unter der ersten Zeile; als dicke Unterstreichung, weil Chrome Hintergründe auf ::first-line nicht zeichnet */
.heob-hero__titel::first-line { text-decoration: underline var(--heob-gelb) 0.3em; text-underline-offset: -0.24em; text-decoration-skip-ink: none; }
.heob-hero__titel span { display: block; }
.heob-hero__text { font-size: 1.25rem; max-width: 34ch; margin: 0; }
.heob-hero__aktionen { display: flex; flex-wrap: wrap; gap: var(--heob-space-4); margin: 0; }
.heob-hero .heob-button--hell { border-color: var(--heob-soft-black); color: var(--heob-soft-black) !important; }
.heob-hero .heob-button--hell:hover { background: var(--heob-soft-black); color: var(--heob-weiss) !important; }
.heob-hero .heob-button--hell:focus-visible { outline-color: var(--heob-soft-black); }
/* Ölkante: Die Flüssigkeits-Simulation in user.js zeichnet zwei SVG-clipPaths in Pixelgröße der Bühne: heob-tropfclip (Foto, harte Kante) und
   heob-tropfclip-gelb (gelbe Schicht dahinter: dünner Ölfilm, aus dem sich Tropfen bilden). Die Bühne wird um --heob-tropfzone höher,
   der negative Rand hält das Layout gleich. Ohne JavaScript bleibt die gerade Schrägkante (clip-path oben). */
.heob-hero.hat-tropfen { --heob-tropf: var(--heob-tropfzone); clip-path: url(#heob-tropfclip); padding-bottom: calc(var(--heob-band) + var(--heob-tropf)); margin-bottom: calc(-1 * var(--heob-tropf)); }
.heob-tropfen-buehne { display: flow-root; position: relative; isolation: isolate; } /* flow-root: der negative Rand der Bühne darf nicht durch die Hülle kollabieren */
.heob-tropfen-buehne:has(> .hat-tropfen)::before { content: ""; position: absolute; inset: 0 0 calc(-1 * var(--heob-tropfzone)) 0; z-index: -1; background: var(--heob-gelb); clip-path: url(#heob-tropfclip-gelb); }
.heob-tropfen-anker { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; pointer-events: none; } /* an der Kante, in der Hülle */
.heob-tropfen { position: absolute; width: 0; height: 0; overflow: hidden; }
.heob-hero .heob-symbol { position: absolute; right: max(-120px, -8vw); bottom: calc(var(--heob-tropf, 0px) - 90px); width: clamp(260px, 42vw, 560px); color: var(--heob-rot); z-index: -1; }

/* Parallax-Band (Position bottom-b): Tafel rechts, links bleibt das Foto frei */
.heob-band { position: relative; overflow: clip; min-height: 440px; display: flex; align-items: center; background: var(--heob-soft-black); isolation: isolate; }
.heob-band__bild { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; object-fit: cover; z-index: -1; margin: 0 !important; max-width: none !important; --heob-weg: 14%; }
.heob-band__tafel { background: var(--heob-soft-black); color: var(--heob-weiss); padding: var(--heob-space-12); margin-block: var(--heob-space-16); margin-inline: auto var(--heob-rand); max-width: 34rem; display: grid; gap: var(--heob-space-4); }
.heob-band__tafel h2 { margin: 0; color: var(--heob-gelb) !important; }
.heob-band__tafel p { margin: 0; }
.heob-band__tafel .heob-slogan { color: var(--heob-weiss); }
.heob-band__tafel .heob-zahl { color: var(--heob-gelb); font-size: 3.5rem; line-height: 1; }
.heob-band__tafel .heob-button:focus-visible { outline-color: var(--heob-gelb); }

/* Kacheln (Leistungen auf der Startseite) */
.heob-kacheln { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--heob-space-6); margin: var(--heob-space-8) 0; padding: 0; list-style: none; }
@media (min-width: 576px) { .heob-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .heob-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.item-page .com-content-article__body:has(> .heob-kacheln) { max-width: none; }
.heob-kachel { display: grid; grid-template-rows: auto 1fr; background: var(--heob-weiss); color: var(--heob-soft-black) !important; text-decoration: none !important; border-bottom: 4px solid var(--heob-gelb); transition: border-color .2s; }
.heob-kachel__bild { position: relative; aspect-ratio: 4 / 3; min-height: 0; overflow: clip; display: block; background: var(--heob-linie); }
.heob-kachel .heob-kachel__bild img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; margin: 0 !important; }
.heob-kachel__text { padding: var(--heob-space-6); display: grid; gap: var(--heob-space-2); align-content: start; }
.heob-kachel__titel { font-size: 1.35rem; font-weight: 800; }
.heob-kachel__info { color: var(--heob-grau); font-size: 1rem; }
.heob-kachel:hover { border-bottom-color: var(--heob-rot); }
.heob-kachel:focus-visible { outline: var(--heob-fokus); outline-offset: 3px; }

/* Kraftstoff-Kennzeichnung nach EN 16942: Kreis = Benzin (E5, E10), Quadrat = Diesel (B7, B0) */
.heob-kennzeichen { display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; padding: 0 0.3em; border: 3px solid var(--heob-soft-black); color: var(--heob-soft-black); background: var(--heob-weiss); font-weight: 800; font-size: 0.55em; letter-spacing: 0; vertical-align: 0.35em; margin-left: 0.5em; line-height: 1; }
.heob-kennzeichen--benzin { border-radius: var(--heob-radius-rund); }
.heob-kennzeichen--diesel { border-radius: var(--heob-radius-0); }

/* Zahlen (z. B. E-Laden) */
.heob-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--heob-space-6); margin: var(--heob-space-8) 0; }
.heob-zahlen > div { border-top: 4px solid var(--heob-gelb); padding-top: var(--heob-space-3); display: grid; gap: var(--heob-space-1); }
.heob-zahlen .heob-zahl { font-size: 2.6rem; line-height: 1; }
.heob-zahlen span:last-child { color: var(--heob-grau); font-size: 0.95rem; }

/* Punkte: Leistungen mit Symbol links neben der Überschrift, Text darunter eingerückt. Zwei Spalten ab 768px. */
.heob-punkte { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--heob-space-12) var(--heob-space-16); margin-block: var(--heob-space-12); }
@media (min-width: 768px) { .heob-punkte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.heob-punkt { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--heob-space-6); row-gap: var(--heob-space-4); align-content: start; align-items: center; }
.heob-punkt__symbol { display: block; width: 56px; color: var(--heob-rot); }
.item-page .com-content-article__body .heob-punkt h2, .heob-punkt h2, .heob-punkt h3 { margin: 0; }
.heob-punkt__text { grid-column: 2; }
.heob-punkt__text p { margin: 0 0 var(--heob-space-4); }
.heob-punkt__text p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
  .heob-punkt { grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--heob-space-4); }
  .heob-punkt__symbol { width: 44px; }
  .heob-punkt__text { grid-column: 1 / -1; }
}
.item-page .com-content-article__body:has(> .heob-punkte) { max-width: none; }
.item-page .com-content-article__body:has(> .heob-punkte) > :not(.heob-punkte) { max-width: 72ch; }

/* Karte: Google Maps steckt in <template data-dls-service="googlemaps">. Bis zur Zustimmung zeigt die DLS Cookie Consent ihren Platzhalter in dieser Fläche, danach füllt das iframe sie aus. */
.heob-karte { position: relative; min-height: 320px; aspect-ratio: 16 / 9; background-color: var(--heob-soft-black); background-image: repeating-linear-gradient(90deg, transparent 0 63px, rgba(255, 255, 255, 0.07) 63px 64px), repeating-linear-gradient(0deg, transparent 0 63px, rgba(255, 255, 255, 0.07) 63px 64px); color: var(--heob-weiss); display: grid; place-items: center; overflow: clip; margin-block: var(--heob-space-4) var(--heob-space-2); }
.heob-karte > * { max-width: 100%; }
.heob-karte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.heob-karte a { color: var(--heob-gelb); }
.heob-karte :focus-visible { outline-color: var(--heob-gelb); }
.heob-karte__adresse { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--heob-space-2) var(--heob-space-6); margin: 0 0 var(--heob-space-8); font-size: 1rem; }
.heob-karte__adresse a { font-weight: 700; }
/* Anfahrt: Adresse links, Karte rechts daneben (4:3), am Handy untereinander */
.heob-anfahrt { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--heob-space-6); align-items: center; margin-block: var(--heob-space-4) var(--heob-space-8); }
@media (min-width: 768px) { .heob-anfahrt { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.heob-anfahrt .heob-karte { margin: 0; aspect-ratio: 4 / 3; min-height: 260px; }
.heob-anfahrt__adresse p { margin: 0 0 var(--heob-space-3); }
.heob-anfahrt__adresse a { font-weight: 700; }
/* Platzhalter der DLS Cookie Consent in der Kartenfläche */
.heob-karte .dls-cookie-placeholder { background: var(--heob-weiss); color: var(--heob-soft-black); border: 0; border-radius: 0; max-width: calc(100% - 2 * var(--heob-space-4)); font-family: var(--heob-font); font-size: 1rem; }
.heob-karte .dls-cookie-placeholder button { background: var(--heob-soft-black); color: var(--heob-weiss); border-radius: 0; font-family: var(--heob-font); font-weight: 700; }
.heob-karte .dls-cookie-placeholder button:focus-visible { outline: var(--heob-fokus); outline-offset: 3px; }

/* Danke-Seiten nach dem Formularversand: das Symbol spielt zur Bestätigung */
.heob-danke-symbol { width: 160px; color: var(--heob-rot); margin-block: 0 var(--heob-space-6); }

/* ---------- Unterseiten ---------- */
/* Pfütze: Bilder in organischer Form (auf heob.at waren die Bilder rund). Drei Formen: 1 nach Skizze, 2 gespiegelt, 3 gedreht.
   Dahinter liegt dieselbe Form in Gelb, versetzt und gedreht. Ohne mask-Unterstützung bleibt das Bild ein Rechteck. */
:root {
  --heob-pfuetze-1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3Cpath d='M0.372,0C0.45,0 0.51,0.025 0.566,0.056C0.62,0.085 0.66,0.094 0.707,0.094C0.868,0.094 1,0.222 1,0.381C1,0.47 0.96,0.55 0.89,0.609C0.86,0.635 0.846,0.66 0.846,0.697C0.846,0.866 0.708,1 0.539,1C0.41,1 0.3,0.92 0.256,0.821C0.22,0.74 0.17,0.67 0.121,0.625C0.045,0.555 0.003,0.46 0.003,0.362C0.003,0.16 0.168,0 0.372,0Z'/%3E%3C/svg%3E");
  --heob-pfuetze-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3Cpath d='M0.628,0C0.55,0 0.49,0.025 0.434,0.056C0.38,0.085 0.34,0.094 0.293,0.094C0.132,0.094 0,0.222 0,0.381C0,0.47 0.04,0.55 0.11,0.609C0.14,0.635 0.154,0.66 0.154,0.697C0.154,0.866 0.292,1 0.461,1C0.59,1 0.7,0.92 0.744,0.821C0.78,0.74 0.83,0.67 0.879,0.625C0.955,0.555 0.997,0.46 0.997,0.362C0.997,0.16 0.832,0 0.628,0Z'/%3E%3C/svg%3E");
  --heob-pfuetze-3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3Cpath d='M1,0.372C1,0.45 0.975,0.51 0.944,0.566C0.915,0.62 0.906,0.66 0.906,0.707C0.906,0.868 0.778,1 0.619,1C0.53,1 0.45,0.96 0.391,0.89C0.365,0.86 0.34,0.846 0.303,0.846C0.134,0.846 0,0.708 0,0.539C0,0.41 0.08,0.3 0.179,0.256C0.26,0.22 0.33,0.17 0.375,0.121C0.445,0.045 0.54,0.003 0.638,0.003C0.84,0.003 1,0.168 1,0.372Z'/%3E%3C/svg%3E");
}
.heob-pfuetze { --heob-form: var(--heob-pfuetze-1); position: relative; isolation: isolate; margin: 0; width: min(100%, 30rem); }
.heob-pfuetze--2 { --heob-form: var(--heob-pfuetze-2); }
.heob-pfuetze--3 { --heob-form: var(--heob-pfuetze-3); }
.heob-pfuetze::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--heob-gelb); -webkit-mask: var(--heob-form) center / 100% 100% no-repeat; mask: var(--heob-form) center / 100% 100% no-repeat; translate: 5% 6%; rotate: -8deg; }
.heob-pfuetze--rot::before { background: var(--heob-rot); }
.heob-pfuetze > img, .heob-pfuetze__form { display: block; width: 100%; aspect-ratio: 1; -webkit-mask: var(--heob-form) center / 100% 100% no-repeat; mask: var(--heob-form) center / 100% 100% no-repeat; }
.heob-pfuetze > img { height: auto; object-fit: cover; margin: 0 !important; }
.heob-pfuetze__form { position: relative; overflow: clip; background: var(--heob-linie); }
.heob-pfuetze .heob-pfuetze__form > img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; margin: 0 !important; }
/* Produktbild: freigestelltes PNG (z. B. der Tankschlüssel) ohne Pfütze und ohne Beschnitt */
.heob-produkt { margin: 0; width: min(100%, 26rem); }
.heob-produkt > img { display: block; width: 100%; height: auto; margin: 0 !important; }
.heob-pfuetze figcaption { margin-top: var(--heob-space-3); font-size: 0.9rem; color: var(--heob-grau); text-align: center; }

/* Seitenkopf: Titel, Einleitung (.heob-lead) und Fakten links, Beitragsbild als Pfütze rechts.
   Ab 992px wird der Beitrag ein Raster; der Textkörper gibt seine Kinder per display: contents an das Raster ab. */
.heob-lead { font-size: clamp(1.2rem, 1.1rem + 0.6vw, 1.45rem); line-height: 1.5; margin: 0 0 var(--heob-space-6); max-width: 42ch; }
.heob-fakten { list-style: none; padding: 0; margin: 0 0 var(--heob-space-8); display: flex; flex-wrap: wrap; gap: var(--heob-space-2); }
.heob-fakten > li { background: var(--heob-weiss); border-left: 4px solid var(--heob-gelb); padding: var(--heob-space-2) var(--heob-space-4); font-size: 1rem; font-weight: 700; line-height: 1.35; }
@media (min-width: 992px) {
  .item-page:has(> .item-image) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); grid-template-rows: auto auto auto 1fr; column-gap: var(--heob-space-16); align-items: start; }
  .item-page:has(> .item-image) > *, .item-page:has(> .item-image) > .com-content-article__body > * { grid-column: 1 / -1; }
  .item-page:has(> .item-image) > .page-header { grid-column: 1; grid-row: 1; margin-top: var(--heob-space-12); margin-bottom: var(--heob-space-6); }
  .item-page:has(> .item-image) > .item-image { grid-column: 2; grid-row: 1 / span 4; width: 86%; justify-self: center; margin: var(--heob-space-8) 0 var(--heob-space-12); }
  .item-page:has(> .item-image) > .com-content-article__body { display: contents; }
  .item-page:has(> .item-image) > .com-content-article__body > .heob-lead { grid-column: 1; grid-row: 2; }
  .item-page:has(> .item-image) > .com-content-article__body > .heob-fakten { grid-column: 1; grid-row: 3; }
}

/* Abschnitt: Text und Pfützen-Bild nebeneinander, mit --bild-links abwechselnd. Am Handy untereinander. */
.heob-abschnitt { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--heob-space-8) var(--heob-space-16); align-items: center; margin-block: var(--heob-space-16); }
.heob-abschnitt > :is(.heob-pfuetze, .heob-produkt) { justify-self: center; width: min(80%, 24rem); }
.heob-abschnitt .heob-abschnitt__text > :first-child { margin-top: 0; }
.heob-abschnitt .heob-abschnitt__text > :last-child { margin-bottom: 0; }
.heob-abschnitt__text > :is(p, ul, h2, h3) { max-width: 60ch; }
@media (min-width: 768px) {
  .heob-abschnitt { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .heob-abschnitt--bild-links { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .heob-abschnitt--bild-links > :is(.heob-pfuetze, .heob-produkt) { order: -1; }
  .heob-abschnitt > .heob-pfuetze { width: 86%; }
  .heob-abschnitt > .heob-produkt { width: 100%; }
}

/* Sorten: Sprungnavigation zu den Treibstoffen, mit Kennzeichnung nach EN 16942 */
.heob-sorten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: var(--heob-space-3); margin-block: var(--heob-space-8) var(--heob-space-12); }
.heob-sorte { display: grid; justify-items: start; align-content: start; gap: var(--heob-space-3); padding: var(--heob-space-4); background: var(--heob-weiss); border-bottom: 4px solid var(--heob-gelb); color: var(--heob-soft-black) !important; text-decoration: none !important; font-weight: 800; line-height: 1.2; }
.heob-sorte:hover { border-bottom-color: var(--heob-rot); }
.heob-sorte:focus-visible { outline: var(--heob-fokus); outline-offset: 3px; }
.heob-sorte .heob-kennzeichen { margin: 0; font-size: 1rem; vertical-align: 0; }
.heob-sorte__punkt { display: block; width: 2.2rem; height: 2.2rem; background: var(--heob-gelb); -webkit-mask: var(--heob-pfuetze-1) center / 100% 100% no-repeat; mask: var(--heob-pfuetze-1) center / 100% 100% no-repeat; }

/* Vorteile: Begriff fett, Erklärung darunter, als Karten */
.heob-vorteile { list-style: none; padding: 0; margin-block: var(--heob-space-6) var(--heob-space-8); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--heob-space-4); }
@media (min-width: 576px) { .heob-vorteile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .heob-vorteile { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.heob-vorteile > .heob-vorteile__hinweis { border-top-color: var(--heob-grau); }
.heob-vorteile > li { background: var(--heob-weiss); padding: var(--heob-space-6); border-top: 4px solid var(--heob-gelb); font-size: 1rem; line-height: 1.5; }
.heob-vorteile > li > strong:first-child { display: block; font-size: 1.15rem; margin-bottom: var(--heob-space-2); }

/* Paar: zwei gleichwertige Inhalte als Karten nebeneinander (z. B. Super 95 und Super 98) */
.heob-paar { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--heob-space-6); margin-block: var(--heob-space-12); }
@media (min-width: 768px) { .heob-paar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.heob-paar > * { background: var(--heob-weiss); padding: var(--heob-space-8); border-top: 4px solid var(--heob-gelb); }
.item-page .heob-paar > * > h2:first-child { margin-top: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.heob-paar > * > :last-child { margin-bottom: 0; }

/* Schritte: nummerierter Ablauf, die Zahl steht auf einer kleinen gelben Pfütze */
.heob-schritte { list-style: none; counter-reset: heob-schritt; padding: 0; margin-block: var(--heob-space-8) var(--heob-space-12); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--heob-space-8) var(--heob-space-6); }
.heob-schritte > li { counter-increment: heob-schritt; display: grid; align-content: start; gap: var(--heob-space-2); position: relative; }
/* Die gelbe Pfütze liegt hinter der Nummer und ist je Schritt anders geformt und gedreht; die Nummer steht aufrecht darüber */
.heob-schritte > li::before { content: ""; display: block; width: 64px; height: 64px; margin-bottom: var(--heob-space-2); background: var(--heob-gelb); -webkit-mask: var(--heob-schritt-form, var(--heob-pfuetze-2)) center / 100% 100% no-repeat; mask: var(--heob-schritt-form, var(--heob-pfuetze-2)) center / 100% 100% no-repeat; rotate: var(--heob-schritt-drehung, 0deg); }
.heob-schritte > li::after { content: counter(heob-schritt); position: absolute; top: 0; left: 0; width: 64px; height: 64px; display: grid; place-items: center; color: var(--heob-soft-black); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.heob-schritte > li:nth-child(4n+1) { --heob-schritt-form: var(--heob-pfuetze-1); --heob-schritt-drehung: -12deg; }
.heob-schritte > li:nth-child(4n+2) { --heob-schritt-form: var(--heob-pfuetze-2); --heob-schritt-drehung: 75deg; }
.heob-schritte > li:nth-child(4n+3) { --heob-schritt-form: var(--heob-pfuetze-3); --heob-schritt-drehung: 160deg; }
.heob-schritte > li:nth-child(4n+4) { --heob-schritt-form: var(--heob-pfuetze-1); --heob-schritt-drehung: 235deg; }
.item-page .heob-schritte > li > h3 { margin: 0; font-size: 1.2rem; }
.item-page .heob-schritte > li > p { margin: 0; font-size: 1rem; }
/* Cassiopeia schneidet Listen im Beitrag ab (overflow: hidden); die gedrehten Kleckse ragen über den Listenrand hinaus. */
.item-page .heob-schritte { overflow: visible; }

/* Hinweis und Zitat */
.heob-hinweis { background: var(--heob-gelb); color: var(--heob-soft-black); padding: var(--heob-space-6) var(--heob-space-8); margin-block: var(--heob-space-8); max-width: 72ch; font-weight: 600; }
.heob-hinweis > :first-child { margin-top: 0; }
.heob-hinweis > :last-child { margin-bottom: 0; }
.heob-hinweis a { color: var(--heob-soft-black); }
.heob-zitat { margin: 0 0 var(--heob-space-6); padding: 0 0 0 var(--heob-space-6); border-left: 6px solid var(--heob-gelb); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); line-height: 1.5; }
.heob-zitat p { margin: 0; }

/* Downloads: Liste mit PDF-Marke */
.heob-downloads { list-style: none; padding: 0; margin-block: var(--heob-space-4) var(--heob-space-8); max-width: 72ch; border-top: 1px solid var(--heob-linie); }
.heob-downloads > li { border-bottom: 1px solid var(--heob-linie); }
.heob-downloads a { display: flex; align-items: center; gap: var(--heob-space-4); padding: var(--heob-space-3) var(--heob-space-2); color: var(--heob-soft-black); font-weight: 700; text-decoration: none; }
.heob-downloads a::before { content: "PDF"; flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--heob-rot); color: var(--heob-weiss); font-size: 0.75rem; letter-spacing: 0.08em; }
.heob-downloads a:hover { background: var(--heob-weiss); color: var(--heob-soft-black); }

/* Standorte: Karten mit kleiner Pfütze, Adresse und Karte */
.heob-standorte { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--heob-space-8); margin-block: var(--heob-space-8); }
@media (min-width: 768px) { .heob-standorte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.heob-standort { background: var(--heob-weiss); padding: var(--heob-space-6); display: grid; grid-template-columns: clamp(110px, 34%, 190px) minmax(0, 1fr); gap: var(--heob-space-4) var(--heob-space-6); align-content: start; }
/* Bild links über zwei Zeilen, daneben Titel und Adresse; Karte und Link darunter über die volle Breite */
.heob-standort > .heob-pfuetze { width: 100%; grid-row: 1 / span 2; align-self: center; }
.item-page .heob-standort > h3 { margin: 0; align-self: end; }
.heob-standort > h3 + p { grid-column: 2; align-self: start; margin: 0; }
.heob-standort > :not(.heob-pfuetze, h3, h3 + p) { grid-column: 1 / -1; margin: 0; }
.heob-standort .heob-karte { aspect-ratio: 4 / 3; min-height: 240px; }

/* Aktion: dunkle Tafel am Seitenende mit Überschrift in Gelb und Button, rechts unten eine rote Pfütze */
.heob-aktion { position: relative; overflow: clip; isolation: isolate; background: var(--heob-soft-black); color: var(--heob-weiss); padding: var(--heob-space-12) var(--heob-space-8); margin-block: var(--heob-space-16) 0; display: grid; gap: var(--heob-space-4); justify-items: start; }
.heob-aktion::after { content: ""; position: absolute; right: -4rem; bottom: -5rem; width: min(45%, 20rem); aspect-ratio: 1; z-index: -1; background: var(--heob-rot); -webkit-mask: var(--heob-pfuetze-3) center / 100% 100% no-repeat; mask: var(--heob-pfuetze-3) center / 100% 100% no-repeat; }
.item-page .heob-aktion > h2 { margin: 0; color: var(--heob-gelb); }
.heob-aktion > p { margin: 0; max-width: 52ch; }
.heob-aktion a:not(.heob-button) { color: var(--heob-gelb); }
.heob-aktion :focus-visible { outline-color: var(--heob-gelb); }
@media (max-width: 767.98px) { .heob-aktion { padding: var(--heob-space-8) var(--heob-space-6) var(--heob-space-16); } .heob-aktion::after { width: 9rem; right: -2.5rem; bottom: -3.5rem; } }

/* Häufige Fragen: native details/summary, nicht exklusiv. Antworten bleiben auch zugeklappt für Suchmaschinen und die Browsersuche auffindbar.
   Der Pfeil steht direkt vor der Frage und dreht sich beim Öffnen. */
.heob-faq { max-width: 60rem; margin-block: var(--heob-space-16); }
.item-page .heob-faq > h2 { margin-top: 0; }
.heob-faq > details { border-bottom: 1px solid var(--heob-linie); }
.heob-faq > h2 + details { border-top: 1px solid var(--heob-linie); }
.heob-faq summary { list-style: none; display: flex; align-items: baseline; gap: 0.75rem; padding: var(--heob-space-4) var(--heob-space-2); font-weight: 800; font-size: 1.15rem; line-height: 1.35; cursor: pointer; }
.heob-faq summary::-webkit-details-marker { display: none; }
.heob-faq summary::before { content: ""; flex: none; width: 0.9em; height: 0.9em; translate: 0 0.12em; background: var(--heob-rot); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; rotate: -90deg; }
.heob-faq details[open] > summary::before { rotate: 0deg; }
.heob-faq summary:hover { background: var(--heob-weiss); }
.heob-faq summary:focus-visible { outline: var(--heob-fokus); outline-offset: -3px; }
.heob-faq__antwort { padding: 0 var(--heob-space-2) var(--heob-space-6) calc(0.9em + 0.75rem + var(--heob-space-2)); }
.heob-faq__antwort > :first-child { margin-top: 0; }
.heob-faq__antwort > :last-child { margin-bottom: 0; }
.heob-faq details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.heob-faq details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .heob-faq summary::before { transition: rotate 0.2s; }
  .heob-faq details::details-content { transition: block-size 0.3s ease-in-out, content-visibility 0.3s ease-in-out allow-discrete; }
}

/* DLS Cookie Consent im HEOB-Look, über die öffentlichen CSS-Variablen des Plugins. Ablehnen und Akzeptieren bleiben gleich sichtbar. */
#dls-cookie {
  --dls-cookie-ink: #2e2e2e;
  --dls-cookie-paper: #ffffff;
  --dls-cookie-accent: #b8050f;
  --dls-cookie-button: #2e2e2e;
  --dls-cookie-button-text: #ffffff;
  --dls-cookie-focus: #2e2e2e;
  --dls-cookie-radius: 0px;
  --dls-cookie-font: var(--heob-font);
  --dls-cookie-heading-font: var(--heob-font);
}
/* Cookie-Einstellungen unten links als Symbol statt Kasten: runder Knopf mit Keks. Der Text bleibt im Button und ist sein zugänglicher Name. */
section#dls-cookie .dls-cookie__reopen { width: 48px; height: 48px; min-width: 0; padding: 0; left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: var(--heob-radius-rund); background: var(--heob-weiss); color: var(--heob-soft-black); box-shadow: 0 0 0 1.5px var(--heob-soft-black); font-size: 0; line-height: 0; overflow: hidden; }
section#dls-cookie .dls-cookie__reopen::before { content: ""; width: 26px; height: 26px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.4A9 9 0 1 1 11.6 3a3 3 0 0 0 3.4 3.6 3 3 0 0 0 3.4 3.4 2.6 2.6 0 0 0 2.6 2.4z'/%3E%3Cpath d='M8.5 9h.01M15.5 15.5h.01M9.5 15h.01M12.5 12h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.4A9 9 0 1 1 11.6 3a3 3 0 0 0 3.4 3.6 3 3 0 0 0 3.4 3.4 2.6 2.6 0 0 0 2.6 2.4z'/%3E%3Cpath d='M8.5 9h.01M15.5 15.5h.01M9.5 15h.01M12.5 12h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
section#dls-cookie .dls-cookie__reopen:hover { background: var(--heob-gelb); }
section#dls-cookie .dls-cookie__reopen:focus-visible { outline: var(--heob-fokus); outline-offset: 3px; }

/* Das Symbol (eingefügt von user.js in .heob-symbol-slot) */
.heob-symbol { display: block; width: 100%; height: auto; overflow: visible; color: var(--heob-rot); --heob-feder: linear(0.000 0.0%, 0.034 2.5%, 0.124 5.0%, 0.249 7.5%, 0.394 10.0%, 0.544 12.5%, 0.688 15.0%, 0.817 17.5%, 0.928 20.0%, 1.016 22.5%, 1.083 25.0%, 1.128 27.5%, 1.153 30.0%, 1.163 32.5%, 1.159 35.0%, 1.146 37.5%, 1.127 40.0%, 1.103 42.5%, 1.079 45.0%, 1.055 47.5%, 1.034 50.0%, 1.015 52.5%, 1.000 55.0%, 0.988 57.5%, 0.980 60.0%, 0.976 62.5%, 0.974 65.0%, 0.974 67.5%, 0.976 70.0%, 0.979 72.5%, 0.982 75.0%, 0.986 77.5%, 0.990 80.0%, 0.994 82.5%, 0.997 85.0%, 1.000 87.5%, 1.002 90.0%, 1.003 92.5%, 1.004 95.0%, 1.004 97.5%, 1.000 100.0%); }
.heob-symbol :is(path, g) { transform-box: fill-box; }
.heob-symbol__koerper, .heob-symbol__tropfen { transform-origin: 50% 50%; }
.heob-symbol__tropfen { opacity: 0; }

/* ---------- 4. Bewegung: nur bei prefers-reduced-motion: no-preference, sonst bleibt alles in Ruhe ---------- */
/* Symbol „Tropfen“: Das Symbol steht um 26° gedreht, die Spitze des Auslaufs genau über der Mitte, der Punkt fehlt. Ein Tropfen bildet sich und fällt;
   währenddessen dreht das Symbol federnd in die Originallage zurück. Beim Aufprall wird der Punkt kurz zur Pfütze und zieht sich zum Kreis zusammen
   (Pfad-Morph per SMIL in user.js). Beim Darüberfahren fällt ein zweiter Tropfen auf den Punkt. */
@keyframes heob-symbol-drehen { 0%, 21% { transform: rotate(-26deg); animation-timing-function: var(--heob-feder); } 76%, 100% { transform: rotate(0deg); } }
@keyframes heob-tropfen-fall { 0% { opacity: 1; transform: translate(2px, -198px) scale(0); animation-timing-function: ease-out; } 15% { transform: translate(2px, -196px) scale(0.95, 1.08); animation-timing-function: ease-in-out; } 21% { transform: translate(2px, -193px) scale(1, 1.15); animation-timing-function: cubic-bezier(.55, 0, 1, .45); } 41% { opacity: 1; transform: translate(1px, -10px) scale(0.84, 1.26); } 42%, 100% { opacity: 0; transform: translate(0px, 0px) scale(0.84, 1.26); } }
@keyframes heob-punkt-zeigen { 0%, 40.5% { opacity: 0; } 41%, 100% { opacity: 1; } }
@keyframes heob-symbol-nachdrehen { 0% { transform: rotate(0deg); animation-timing-function: ease-in-out; } 20%, 35% { transform: rotate(-26deg); animation-timing-function: var(--heob-feder); } 88%, 100% { transform: rotate(0deg); } }
@keyframes heob-tropfen-nach { 0%, 20% { opacity: 0; transform: translate(2px, -198px) scale(0); } 21% { opacity: 1; transform: translate(2px, -198px) scale(0); animation-timing-function: ease-out; } 31% { transform: translate(2px, -196px) scale(0.95, 1.08); animation-timing-function: ease-in-out; } 35% { transform: translate(2px, -193px) scale(1, 1.15); animation-timing-function: cubic-bezier(.55, 0, 1, .45); } 49% { opacity: 1; transform: translate(1px, -118px) scale(0.84, 1.26); } 50%, 100% { opacity: 0; transform: translate(1px, -118px) scale(0.84, 1.26); } }
@keyframes heob-parallax { from { transform: translateY(calc(-1 * var(--heob-weg, 10%))); } to { transform: translateY(var(--heob-weg, 10%)); } }
@keyframes heob-fortschritt { to { transform: scaleX(1); } }
@keyframes heob-auftauchen { from { opacity: 0; translate: 0 2.5rem; } }
@keyframes heob-einschieben { from { opacity: 0; translate: 3rem 0; } }
@keyframes heob-markieren { from { background-size: 0% 100%; } }
@keyframes heob-pfuetze-drehen { from { rotate: -45deg; } to { rotate: 45deg; } }

@media (prefers-reduced-motion: no-preference) {
  .heob-symbol.is-wartend .heob-symbol__koerper { transform: rotate(-26deg); }
  .heob-symbol.is-wartend .heob-symbol__dot { opacity: 0; }
  .heob-symbol.is-playing .heob-symbol__koerper { animation: heob-symbol-drehen 2s both; }
  .heob-symbol.is-playing .heob-symbol__tropfen { animation: heob-tropfen-fall 2s both; }
  .heob-symbol.is-playing .heob-symbol__dot { animation: heob-punkt-zeigen 2s both; }
  .heob-symbol.is-tropft .heob-symbol__koerper { animation: heob-symbol-nachdrehen 1.8s both; }
  .heob-symbol.is-tropft .heob-symbol__tropfen { animation: heob-tropfen-nach 1.8s both; }
  .heob-button__pfeil { transition: transform .18s; }
  .heob-button:hover .heob-button__pfeil { transform: translateX(4px); }
  .heob-kachel__bild img { transition: transform .5s ease; }
  .heob-kachel:hover .heob-kachel__bild img { transform: scale(1.04); }
  .heob-kachel { transition: border-color .2s, translate .25s ease; }
  .heob-kachel:hover { translate: 0 -4px; }
  .heob-sorte { transition: border-color .2s, translate .25s ease; }
  .heob-sorte:hover { translate: 0 -4px; }
  .container-header .metismenu.mod-menu .mm-collapse > li > a { transition: background-color .15s, box-shadow .15s; }

  /* Beim Laden: der gelbe Marker zieht sich unter den Seitentitel, die Bühne der Startseite baut sich gestaffelt auf */
  .item-page .page-header h1, .item-page .page-header h2 { animation: heob-markieren .9s cubic-bezier(.65,0,.35,1) .15s backwards; }
  .heob-hero__inhalt > * { animation: heob-auftauchen .8s cubic-bezier(.2,.7,.2,1) backwards; }
  .heob-hero__inhalt > :nth-child(2) { animation-delay: .08s; }
  .heob-hero__inhalt > :nth-child(3) { animation-delay: .16s; }
  .heob-hero__inhalt > :nth-child(4) { animation-delay: .24s; }

  /* Parallax und Lesefortschritt mit CSS Scroll-Driven Animations. Rein dekorativ: Browser ohne Unterstützung zeigen das ruhige Bild. */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .heob-hero, .heob-band, .item-page .item-image { view-timeline: --heob-parallax; }
    .heob-hero__bild, .heob-band__bild, .item-page .item-image img { animation: heob-parallax linear both; animation-timeline: --heob-parallax; }

    /* Einblenden beim Scrollen: Bausteine tauchen beim Hereinscrollen von unten auf. Fertig ist der Baustein im ersten Viertel
       seines Wegs durchs Bild; danach gilt wieder der ruhige Normalzustand (Füllmodus backwards, kein Ausblenden beim Verlassen). */
    .heob-kacheln > *, .heob-punkte > *, .heob-zahlen > *, .heob-anfahrt > *, .heob-abschnitt > *, .heob-sorten > *, .heob-schritte > *,
    .heob-vorteile > *, .heob-paar > *, .heob-standorte > *, .heob-hinweis, .heob-aktion, .heob-downloads > li,
    .item-page .com-content-article__body > h2, .site-grid > .container-bottom-a > .card {
      animation: heob-auftauchen cubic-bezier(.25,.6,.3,1) backwards;
      animation-timeline: view();
      animation-range: cover 0% cover 25%;
    }
    /* Die gelbe Pfütze hinter Bildern dreht sich beim Scrollen um ihren eigenen Mittelpunkt; der Versatz nach rechts unten bleibt fest */
    .heob-pfuetze::before { animation: heob-pfuetze-drehen linear both; animation-timeline: view(); }
    .heob-band__tafel { animation: heob-einschieben cubic-bezier(.25,.6,.3,1) backwards; animation-timeline: view(); animation-range: cover 5% cover 35%; }
    /* Nebeneinander stehende Bausteine kommen leicht versetzt */
    @media (min-width: 576px) {
      .heob-kacheln > :nth-child(2n) { animation-range: cover 4% cover 29%; }
    }
    @media (min-width: 768px) {
      .heob-punkte > :nth-child(2n), .heob-anfahrt > :nth-child(2), .heob-abschnitt > :nth-child(2), .heob-paar > :nth-child(2), .heob-standorte > :nth-child(2) { animation-range: cover 4% cover 29%; }
    }
    @media (min-width: 992px) {
      .heob-kacheln > :nth-child(3n+1) { animation-range: cover 0% cover 25%; }
      .heob-kacheln > :nth-child(3n+2), .heob-zahlen > :nth-child(2), .heob-schritte > :nth-child(2), .site-grid > .container-bottom-a > .card:nth-child(2 of .card) { animation-range: cover 4% cover 29%; }
      .heob-kacheln > :nth-child(3n), .heob-zahlen > :nth-child(3), .heob-schritte > :nth-child(3), .site-grid > .container-bottom-a > .card:nth-child(3 of .card) { animation-range: cover 8% cover 33%; }
      .heob-zahlen > :nth-child(4), .heob-schritte > :nth-child(4), .site-grid > .container-bottom-a > .card:nth-child(4 of .card) { animation-range: cover 12% cover 37%; }
    }
  }
  @supports (animation-timeline: scroll()) {
    .container-header::after { animation: heob-fortschritt auto linear both; animation-timeline: scroll(root); }
  }
}

@media (max-width: 767.98px) {
  .heob-hero { --heob-band: 15rem; }
  .heob-hero .heob-symbol { width: 200px; right: -40px; bottom: calc(var(--heob-tropf, 0px) - 30px); }
  .heob-band__tafel { padding: var(--heob-space-8); }
  .heob-karte { aspect-ratio: auto; }
  .site-grid > .container-bottom-a .heob-symbol { width: 180px; right: -40px; bottom: -50px; }
}
