/* Hero Banner (pichler_hero_pro)
   Aufbau: 1. Basis  2. Folien (Splide)  3. Effekte  4. Bedienleiste  5. Handy (unter 768 px)
           6. Textebene  7. Textebene am Handy  8. Reduzierte Bewegung  9. Editor
           10. Bewegtbild  11. Pfeile und Punkte  12. Vorschaubilder  13. Text aus dem Editor (seit 3.0.0)
   Format am Desktop (--phero-ratio), am Handy (--phero-ratio-m) und die Akzentfarbe (--phero-bar) setzt das
   Portlet als Variablen. Das Skript setzt --p (Fortschritt 0 bis 1) am aktiven Balken.
   Splide (4.1.4, MIT) bringt der Shop mit, sein Core-CSS nicht: es blendete den Banner bis zum Start aus
   (visibility: hidden), die nötigen Regeln daraus stehen deshalb hier. Splide setzt am Rahmen .is-initialized und .splide--<typ>, an der Spur
   .splide__track--<typ>, an der Liste die Verschiebung und an den Folien .is-active.
   Textebene: alle Werte kommen als Variablen vom Server, je Block (--pt-*) und je Zeile (--ff Schrift, --fw Stärke,
   --c Farbe, --tt Großbuchstaben, --ls Buchstabenabstand, --fs/--fs-m/--fs-b Größe Desktop/Handy auf dem Bild/
   Handy unter dem Bild, --gap Abstand nach unten). Größen in cqw der Folie, deshalb ist die Folie ein Container. */

/* ------------------------------------------------------------- 1. Basis */
/* Seit 2.1.0 lesen die Farben und der Bildradius die Variablen des Templates PICHLER 2027 (--p27-*). Der zweite Wert
   ist der bisherige: ohne das Template bleibt der Banner wie in 2.0.0. Die Akzentfarbe im Portlet (--phero-bar) geht vor. */
.opc-phero {
  --phero-accent: var(--phero-bar, var(--p27-brand, #0090ff));
  --phero-fill: var(--phero-bar, var(--p27-ink, #0090ff));
  --phero-ink: var(--p27-ink, #1b232b);
  --phero-field: var(--p27-hangar, #f2f5f8);
  --phero-field-hover: var(--p27-hangar-2, #e2e8ed);
  --phero-rail: var(--p27-line, #e7ecf1);
  --phero-rail-active: var(--p27-line, #cdd5dd);
  --phero-radius: var(--p27-r-img, 0px);
  position: relative;
  width: 100%;
}
.opc-phero,
.opc-phero *,
.opc-phero *::before,
.opc-phero *::after { box-sizing: border-box; }

.opc-phero .phero-frame { position: relative; }
/* Seit 3.2.1: das Theme pichler.css bringt das Splide-Core-CSS mit (.splide { visibility: hidden } bis zum Start). Der Banner
   braucht es nicht (Folie 1 steht ohne Skript an ihrem Platz) und ohne Skript blieb er leer: in der OPC-Vorschau und bei
   einer einzigen Folie. Deshalb immer sichtbar. */
.opc-phero .phero-frame.splide { visibility: visible; }

/* --------------------------------------------------- 2. Folien (Splide) */
/* Vor dem Start (und ohne JavaScript) wie bisher: Folie 1 sichtbar, Höhe aus dem Format, Wischen per Scroll-Snap */
.opc-phero .phero-track {
  position: relative;
  z-index: 0;
  aspect-ratio: var(--phero-ratio, 2400 / 440);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--phero-radius);
  background: var(--phero-field);
}
.opc-phero .phero-track::-webkit-scrollbar { display: none; }
.opc-phero .phero-list {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  backface-visibility: hidden;
}
.opc-phero .phero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  backface-visibility: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
/* Splide läuft: es verschiebt die Liste, die Spur scrollt nicht mehr */
.opc-phero .is-initialized > .phero-track {
  overflow: hidden;
  scroll-snap-type: none;
}
.opc-phero .splide__track--draggable {
  -webkit-touch-callout: none;
  user-select: none;
}
.opc-phero .splide__track--draggable img,
.opc-phero .splide__track--draggable a { -webkit-user-drag: none; }
/* Ansage für Screenreader nach einem Wechsel (Splide hängt sie an die Spur) */
.opc-phero .splide__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.opc-phero .phero-link,
.opc-phero .phero-slide picture {
  display: block;
  height: 100%;
}
.opc-phero .phero-slide img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.opc-phero .phero-link:focus-visible {
  outline: 3px solid var(--phero-accent);
  outline-offset: -3px;
}

/* ------------------------------------------------------------- 3. Effekte */
/* Überblenden: Splide legt die Folien übereinander, die Dauer setzt es selbst. Schieben braucht nichts. */
.opc-phero .splide--fade .phero-slide {
  z-index: 0;
  opacity: 0;
}
.opc-phero .splide--fade .phero-slide.is-active {
  z-index: 1;
  opacity: 1;
}
/* Ziehen mit der Maus: Splide setzt is-dragging an den Rahmen */
@media (hover: hover) and (pointer: fine) {
  .opc-phero .is-initialized.splide--draggable > .phero-track { cursor: grab; }
  .opc-phero .is-initialized.is-dragging > .phero-track { cursor: grabbing; }
}

/* ---------------------------------------------------------- 4. Bedienleiste */
.opc-phero .phero-ui {
  display: flex;
  align-items: center;
  gap: 6px;
}
.opc-phero--bar-inside .phero-ui {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  padding: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .94);
}
.opc-phero .phero-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
/* Playbar: unter dem Banner. Drei Spalten, die leere linke gleicht die Pause rechts aus, so stehen Pfeile und Balken genau mittig */
.opc-phero--bar-below .phero-ui {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding-top: 6px;
}
.opc-phero--bar-below .phero-ctrl { grid-column: 2; }
.opc-phero--bar-below .phero-ui .phero-pause { grid-column: 3; justify-self: start; }

.opc-phero .phero-btn {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--phero-ink);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.opc-phero .phero-btn:hover { background: var(--phero-accent); color: #fff; }
.opc-phero .phero-btn svg { width: 20px; height: 20px; }
.opc-phero .phero-btn:focus-visible,
.opc-phero .phero-bar:focus-visible {
  outline: 2px solid var(--phero-accent);
  outline-offset: 2px;
}
.opc-phero .phero-pause .phero-icon-play,
.opc-phero.is-paused .phero-pause .phero-icon-pause { display: none; }
.opc-phero.is-paused .phero-pause .phero-icon-play { display: block; }
.opc-phero.is-paused .phero-pause { background: var(--phero-field); }
.opc-phero.is-paused .phero-pause:hover { background: var(--phero-accent); }

/* Fortschrittsbalken: einer je Folie, der aktive füllt sich während der Anzeigedauer */
.opc-phero .phero-bars {
  display: flex;
  gap: 4px;
  min-width: 0;
  padding: 0 6px;
}
/* Feste Breite: ein leerer Knopf hätte sonst keine Inhaltsbreite und schrumpfte auf die Mindestbreite.
   Mindestens 24 px, damit er sich am Handy gut antippen lässt. */
.opc-phero .phero-bar {
  display: grid;
  flex: 0 1 auto;
  align-items: center;
  width: 28px;
  min-width: 24px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.opc-phero .phero-bar-fill {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--phero-rail);
}
.opc-phero .phero-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--phero-fill);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.opc-phero .phero-bar:hover .phero-bar-fill,
.opc-phero .phero-bar[aria-current="true"] .phero-bar-fill { background: var(--phero-rail-active); }

/* Leiste „Unter dem Banner, breit“ (PICHLER 2027, seit 2.1.0): links lange Balken je Folie (bis 110 px), rechts
   runde Knöpfe zurück, Pause, weiter auf heller Fläche. Die Reihenfolge stellt order her, das Markup bleibt. */
.opc-phero--bar-wide .phero-ui {
  display: flex;
  gap: 8px;
  padding-top: 10px;
}
.opc-phero--bar-wide .phero-ctrl { display: contents; }
.opc-phero--bar-wide .phero-bars {
  flex: 1 1 auto;
  order: 0;
  gap: 6px;
  padding: 0;
}
.opc-phero--bar-wide .phero-bar {
  flex: 1 1 0;
  width: auto;
  max-width: 110px;
  height: 24px;
}
.opc-phero--bar-wide .phero-arrow[data-phero-prev] { order: 1; }
.opc-phero--bar-wide .phero-pause { order: 2; }
.opc-phero--bar-wide .phero-arrow[data-phero-next] { order: 3; }
.opc-phero--bar-wide .phero-btn {
  border-radius: 999px;
  background: var(--phero-field);
}
.opc-phero--bar-wide .phero-btn svg { width: 18px; height: 18px; }
.opc-phero--bar-wide .phero-btn:hover,
.opc-phero--bar-wide.is-paused .phero-pause,
.opc-phero--bar-wide.is-paused .phero-pause:hover { background: var(--phero-field-hover); color: var(--phero-ink); }

/* Leiste „Haarlinie im Bild“ (seit 2.2.0): Linien je Folie an der Bildunterkante, abgelaufene Folien voll, Pfeile
   links und rechts erst beim Drüberfahren, Pause klein in der Ecke unten rechts. Farbe: Akzentfarbe, sonst Weiß.
   Leiste und Steuerung lösen sich per display: contents auf, die Teile stehen absolut im Rahmen, das Markup bleibt. */
.opc-phero--bar-line { --phero-line: var(--phero-bar, #fff); }
.opc-phero--bar-line .phero-ui,
.opc-phero--bar-line .phero-ctrl { display: contents; }
.opc-phero--bar-line .phero-bars {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  gap: 4px;
  padding: 0;
}
.opc-phero--bar-line .phero-ui:has(.phero-pause) .phero-bars { right: 40px; }
.opc-phero--bar-line .phero-bar {
  flex: 1 1 0;
  align-items: end;
  width: auto;
  min-width: 0;
  height: 22px;
}
.opc-phero--bar-line .phero-bar .phero-bar-fill {
  height: 3px;
  border-radius: 0;
  background: color-mix(in srgb, var(--phero-line) 38%, transparent);
}
.opc-phero--bar-line .phero-bar[aria-current="true"] .phero-bar-fill { background: color-mix(in srgb, var(--phero-line) 38%, transparent); }
.opc-phero--bar-line .phero-bar:hover .phero-bar-fill { background: color-mix(in srgb, var(--phero-line) 62%, transparent); }
.opc-phero--bar-line .phero-bar-fill::after { background: var(--phero-line); }
.opc-phero--bar-line .phero-bar:has(~ .phero-bar[aria-current="true"]) .phero-bar-fill::after { transform: none; }
.opc-phero--bar-line .phero-bar:focus-visible { outline-color: var(--phero-line); outline-offset: -2px; }
.opc-phero--bar-line .phero-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--phero-ink);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease, background-color .16s ease;
}
.opc-phero--bar-line .phero-arrow[data-phero-prev] { left: 16px; transform: translateX(-6px); }
.opc-phero--bar-line .phero-arrow[data-phero-next] { right: 16px; transform: translateX(6px); }
.opc-phero--bar-line .phero-frame:hover .phero-arrow,
.opc-phero--bar-line .phero-arrow:focus-visible { opacity: 1; transform: none; }
.opc-phero--bar-line .phero-arrow:hover { background: #fff; color: var(--phero-ink); }
.opc-phero--bar-line .phero-pause,
.opc-phero--bar-line.is-paused .phero-pause {
  position: absolute;
  z-index: 2;
  right: 6px;
  bottom: 4px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.opc-phero--bar-line .phero-pause svg { width: 13px; height: 13px; }
.opc-phero--bar-line .phero-pause:hover,
.opc-phero--bar-line.is-paused .phero-pause:hover { background: rgba(0, 0, 0, .5); color: #fff; }
.opc-phero--bar-line .phero-pause:focus-visible { outline-color: #fff; }

/* Leiste „Kapsel unter dem Banner“ (seit 2.2.0): Pfeile, Punkte und Pause in einer runden Kapsel, mittig unter dem
   Banner. Der aktive Punkt zieht sich lang und füllt sich in der Akzentfarbe. Schatten: --shadow-none/soft/strong. */
.opc-phero--bar-pill .phero-ui {
  width: max-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: var(--phero-field);
}
.opc-phero--shadow-soft .phero-ui { box-shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 3px 10px rgba(16, 24, 32, .08); }
.opc-phero--shadow-strong .phero-ui { box-shadow: 0 2px 6px rgba(16, 24, 32, .08), 0 10px 28px rgba(16, 24, 32, .16); }
.opc-phero--bar-pill .phero-ctrl { gap: 2px; }
.opc-phero--bar-pill .phero-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}
.opc-phero--bar-pill .phero-btn svg { width: 16px; height: 16px; }
.opc-phero--bar-pill .phero-btn:hover,
.opc-phero--bar-pill.is-paused .phero-pause,
.opc-phero--bar-pill.is-paused .phero-pause:hover { background: var(--phero-field-hover); color: var(--phero-ink); }
.opc-phero--bar-pill .phero-pause { position: relative; margin-left: 5px; }
.opc-phero--bar-pill .phero-pause::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -4px;
  width: 1px;
  background: var(--phero-rail-active);
}
.opc-phero--bar-pill .phero-bars { gap: 0; padding: 0 4px; }
.opc-phero--bar-pill .phero-bar {
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 0 3px;
}
.opc-phero--bar-pill .phero-bar .phero-bar-fill {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--phero-rail-active);
  transition: width .35s cubic-bezier(.2, .7, .2, 1), background-color .2s ease;
}
.opc-phero--bar-pill .phero-bar:hover .phero-bar-fill { background: color-mix(in srgb, var(--phero-fill) 30%, var(--phero-rail-active)); }
.opc-phero--bar-pill .phero-bar[aria-current="true"] .phero-bar-fill { width: 34px; background: var(--phero-rail-active); }
.opc-phero--bar-pill .phero-bar-fill::after { border-radius: inherit; }

/* Leiste „Player“ (PICHLER 2027 Himmel-Glas, seit 3.1.0): dunkle Glas-Kapsel, oben der Name der Folie (Alt-Text),
   darunter die Balken, rechts hinter einem Strich zurück, Pause, weiter. „Player im Banner“ sitzt unten rechts im
   Bild, „Player unter dem Banner“ mittig darunter. Am Handy immer mittig darunter (Regel in Abschnitt 5). */
.opc-phero--bar-player .phero-ui,
.opc-phero--bar-player-below .phero-ui {
  --phero-ink: #fff;
  display: grid;
  grid-template-columns: minmax(0, auto) auto auto auto;
  align-items: center;
  column-gap: 2px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 7px 6px 5px 14px;
  border-radius: 10px;
  background: rgba(27, 35, 43, .74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 30px -18px rgba(0, 0, 0, .6);
  color: #fff;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.opc-phero--bar-player .phero-ui {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
}
.opc-phero--bar-player-below .phero-ui { margin: 10px auto 0; }
.opc-phero--bar-player .phero-ctrl,
.opc-phero--bar-player-below .phero-ctrl { display: contents; }
.opc-phero .phero-titles {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding-right: 10px;
}
.opc-phero .phero-title {
  display: block;
  overflow: hidden;
  max-width: 240px;
  font: 600 13px/1.25 Montserrat, system-ui, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Sichtbar ist der Name der aktiven Folie: das Skript setzt aria-current am Balken, das CSS zeigt den passenden Namen
   (bis 20 Folien). Ohne :has() bleibt der erste Name stehen. */
.opc-phero .phero-title + .phero-title { display: none; }
.opc-phero .phero-ui:has(.phero-bar[aria-current="true"]) .phero-title { display: none; }
.opc-phero .phero-ui:has(.phero-bar:nth-child(1)[aria-current="true"]) .phero-title:nth-child(1),
.opc-phero .phero-ui:has(.phero-bar:nth-child(2)[aria-current="true"]) .phero-title:nth-child(2),
.opc-phero .phero-ui:has(.phero-bar:nth-child(3)[aria-current="true"]) .phero-title:nth-child(3),
.opc-phero .phero-ui:has(.phero-bar:nth-child(4)[aria-current="true"]) .phero-title:nth-child(4),
.opc-phero .phero-ui:has(.phero-bar:nth-child(5)[aria-current="true"]) .phero-title:nth-child(5),
.opc-phero .phero-ui:has(.phero-bar:nth-child(6)[aria-current="true"]) .phero-title:nth-child(6),
.opc-phero .phero-ui:has(.phero-bar:nth-child(7)[aria-current="true"]) .phero-title:nth-child(7),
.opc-phero .phero-ui:has(.phero-bar:nth-child(8)[aria-current="true"]) .phero-title:nth-child(8),
.opc-phero .phero-ui:has(.phero-bar:nth-child(9)[aria-current="true"]) .phero-title:nth-child(9),
.opc-phero .phero-ui:has(.phero-bar:nth-child(10)[aria-current="true"]) .phero-title:nth-child(10),
.opc-phero .phero-ui:has(.phero-bar:nth-child(11)[aria-current="true"]) .phero-title:nth-child(11),
.opc-phero .phero-ui:has(.phero-bar:nth-child(12)[aria-current="true"]) .phero-title:nth-child(12),
.opc-phero .phero-ui:has(.phero-bar:nth-child(13)[aria-current="true"]) .phero-title:nth-child(13),
.opc-phero .phero-ui:has(.phero-bar:nth-child(14)[aria-current="true"]) .phero-title:nth-child(14),
.opc-phero .phero-ui:has(.phero-bar:nth-child(15)[aria-current="true"]) .phero-title:nth-child(15),
.opc-phero .phero-ui:has(.phero-bar:nth-child(16)[aria-current="true"]) .phero-title:nth-child(16),
.opc-phero .phero-ui:has(.phero-bar:nth-child(17)[aria-current="true"]) .phero-title:nth-child(17),
.opc-phero .phero-ui:has(.phero-bar:nth-child(18)[aria-current="true"]) .phero-title:nth-child(18),
.opc-phero .phero-ui:has(.phero-bar:nth-child(19)[aria-current="true"]) .phero-title:nth-child(19),
.opc-phero .phero-ui:has(.phero-bar:nth-child(20)[aria-current="true"]) .phero-title:nth-child(20) { display: block; }
.opc-phero--bar-player .phero-bars,
.opc-phero--bar-player-below .phero-bars {
  grid-column: 1;
  grid-row: 2;
  gap: 4px;
  padding: 0 10px 0 0;
}
/* Ohne Namen (Häkchen „Name der Folie im Player“ aus, seit 3.2.0): Balken mittig über beide Zeilen, Kapsel gleichmäßig */
.opc-phero--bar-player .phero-ui:not(:has(.phero-titles)),
.opc-phero--bar-player-below .phero-ui:not(:has(.phero-titles)) { padding-top: 5px; }
.opc-phero--bar-player .phero-ui:not(:has(.phero-titles)) .phero-bars,
.opc-phero--bar-player-below .phero-ui:not(:has(.phero-titles)) .phero-bars { grid-row: 1 / span 2; }
/* … und wie im Entwurf: zurück, Balken, weiter, dann hinter einem Strich die Pause (am Handy ohne Pfeile, Abschnitt 5) */
@media (min-width: 768px) {
  .opc-phero--bar-player .phero-ui:not(:has(.phero-titles)),
  .opc-phero--bar-player-below .phero-ui:not(:has(.phero-titles)) { padding-left: 6px; }
  .opc-phero--bar-player .phero-ui:not(:has(.phero-titles)) [data-phero-prev],
  .opc-phero--bar-player-below .phero-ui:not(:has(.phero-titles)) [data-phero-prev] { grid-column: 1; margin: 0 6px 0 0; }
  .opc-phero--bar-player .phero-ui:not(:has(.phero-titles)) .phero-bars,
  .opc-phero--bar-player-below .phero-ui:not(:has(.phero-titles)) .phero-bars { grid-column: 2; padding: 0; }
  .opc-phero--bar-player .phero-ui:not(:has(.phero-titles)) [data-phero-next],
  .opc-phero--bar-player-below .phero-ui:not(:has(.phero-titles)) [data-phero-next] { grid-column: 3; margin-left: 6px; }
  .opc-phero--bar-player .phero-ui:not(:has(.phero-titles)) [data-phero-prev]::before,
  .opc-phero--bar-player-below .phero-ui:not(:has(.phero-titles)) [data-phero-prev]::before { content: none; }
  .opc-phero--bar-player .phero-ui:not(:has(.phero-titles)) .phero-pause,
  .opc-phero--bar-player-below .phero-ui:not(:has(.phero-titles)) .phero-pause { grid-column: 4; position: relative; margin-left: 13px; }
  .opc-phero--bar-player .phero-ui:not(:has(.phero-titles)) .phero-pause::before,
  .opc-phero--bar-player-below .phero-ui:not(:has(.phero-titles)) .phero-pause::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: -7px;
    width: 1px;
    background: rgba(255, 255, 255, .22);
  }
}
.opc-phero--bar-player .phero-bar,
.opc-phero--bar-player-below .phero-bar {
  width: 30px;
  min-width: 18px;
  height: 14px;
}
.opc-phero--bar-player .phero-bar-fill,
.opc-phero--bar-player-below .phero-bar-fill {
  height: 3px;
  background: rgba(255, 255, 255, .3);
}
.opc-phero--bar-player .phero-bar-fill::after,
.opc-phero--bar-player-below .phero-bar-fill::after { background: #fff; }
.opc-phero--bar-player .phero-bar:hover .phero-bar-fill,
.opc-phero--bar-player .phero-bar[aria-current="true"] .phero-bar-fill,
.opc-phero--bar-player-below .phero-bar:hover .phero-bar-fill,
.opc-phero--bar-player-below .phero-bar[aria-current="true"] .phero-bar-fill { background: rgba(255, 255, 255, .45); }
.opc-phero--bar-player [data-phero-prev],
.opc-phero--bar-player-below [data-phero-prev] { grid-column: 2; grid-row: 1 / span 2; position: relative; margin-left: 6px; }
.opc-phero--bar-player [data-phero-prev]::before,
.opc-phero--bar-player-below [data-phero-prev]::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: -6px;
  width: 1px;
  background: rgba(255, 255, 255, .22);
}
.opc-phero--bar-player .phero-pause,
.opc-phero--bar-player-below .phero-pause { grid-column: 3; grid-row: 1 / span 2; }
.opc-phero--bar-player [data-phero-next],
.opc-phero--bar-player-below [data-phero-next] { grid-column: 4; grid-row: 1 / span 2; }
.opc-phero--bar-player .phero-btn,
.opc-phero--bar-player-below .phero-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #fff;
}
.opc-phero--bar-player .phero-btn:hover,
.opc-phero--bar-player-below .phero-btn:hover,
.opc-phero--bar-player.is-paused .phero-pause,
.opc-phero--bar-player-below.is-paused .phero-pause,
.opc-phero--bar-player.is-paused .phero-pause:hover,
.opc-phero--bar-player-below.is-paused .phero-pause:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.opc-phero--bar-player .phero-btn:focus-visible,
.opc-phero--bar-player-below .phero-btn:focus-visible,
.opc-phero--bar-player .phero-bar:focus-visible,
.opc-phero--bar-player-below .phero-bar:focus-visible { outline-color: #7fd3f2; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .opc-phero--bar-player .phero-ui,
  .opc-phero--bar-player-below .phero-ui { background: rgba(27, 35, 43, .94); }
}

/* ------------------------------------------- 5. Handy (unter 768 px Breite) */
/* Wie das <source> der Handy-Bilder: Format der ersten Folie, Leiste immer darunter, keine Pfeile */
@media (max-width: 767px) {
  .opc-phero .phero-track { aspect-ratio: var(--phero-ratio-m, var(--phero-ratio, 2400 / 440)); }
  .opc-phero .phero-ui,
  .opc-phero--bar-inside .phero-ui {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 4px 0 0;
    background: transparent;
  }
  .opc-phero .phero-ctrl { grid-column: 2; }
  .opc-phero .phero-ui .phero-pause { grid-column: 3; justify-self: start; }
  .opc-phero .phero-arrow { display: none; }
  .opc-phero .phero-bar { height: 28px; }
  /* Breit: auch am Handy Balken links, Pause rechts */
  .opc-phero.opc-phero--bar-wide .phero-ui { display: flex; padding: 8px 0 0; }
  .opc-phero.opc-phero--bar-wide .phero-bar { height: 24px; }
  /* Haarlinie: bleibt im Bild; Kapsel: bleibt mittig unter dem Banner, ohne Pfeile */
  .opc-phero.opc-phero--bar-line .phero-ui { display: contents; }
  .opc-phero.opc-phero--bar-line .phero-bar { height: 22px; }
  .opc-phero.opc-phero--bar-pill .phero-ui {
    display: flex;
    padding: 4px;
    background: var(--phero-field);
  }
  .opc-phero.opc-phero--bar-pill .phero-bar { height: 32px; }
  /* Player: immer mittig unter dem Banner, ohne Pfeile (es wird gewischt) */
  .opc-phero.opc-phero--bar-player .phero-ui,
  .opc-phero.opc-phero--bar-player-below .phero-ui {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, auto) auto;
    margin: 8px auto 0;
    padding: 6px 4px 4px 12px;
    background: rgba(27, 35, 43, .9);
  }
  .opc-phero.opc-phero--bar-player .phero-title,
  .opc-phero.opc-phero--bar-player-below .phero-title { max-width: 180px; }
  .opc-phero.opc-phero--bar-player .phero-bar,
  .opc-phero.opc-phero--bar-player-below .phero-bar { height: 22px; }
  .opc-phero.opc-phero--bar-player .phero-ui .phero-pause,
  .opc-phero.opc-phero--bar-player-below .phero-ui .phero-pause { grid-column: 2; grid-row: 1 / span 2; justify-self: auto; }
  /* Text unter dem Bild: die Haarlinie stünde unter dem Text, deshalb dort als Leiste unter dem Banner in Schriftfarbe */
  .opc-phero--bar-line.opc-phero--below-m { --phero-line: var(--phero-bar, var(--phero-ink)); }
  .opc-phero.opc-phero--bar-line.opc-phero--below-m .phero-ui { display: flex; padding-top: 8px; }
  .opc-phero--bar-line.opc-phero--below-m .phero-bars,
  .opc-phero--bar-line.opc-phero--below-m .phero-pause,
  .opc-phero--bar-line.opc-phero--below-m.is-paused .phero-pause { position: static; flex: 1 1 auto; }
  .opc-phero--bar-line.opc-phero--below-m .phero-pause,
  .opc-phero--bar-line.opc-phero--below-m.is-paused .phero-pause { flex: 0 0 auto; background: var(--phero-field); color: var(--phero-ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------------------------------------------------------- 6. Textebene */
.opc-phero .phero-slide.has-text { container-type: inline-size; }
/* Über dem Bild, Klicks gehen durch auf den Link der Folie, nur der Knopf fängt sie ab */
.opc-phero .phero-text {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  padding: max(8px, var(--pt-pad));
  pointer-events: none;
}
.opc-phero .phero-text--x-left { justify-content: flex-start; }
.opc-phero .phero-text--x-center { justify-content: center; }
.opc-phero .phero-text--x-right { justify-content: flex-end; }
.opc-phero .phero-text--y-top { align-items: flex-start; }
.opc-phero .phero-text--y-middle { align-items: center; }
.opc-phero .phero-text--y-bottom { align-items: flex-end; }
.opc-phero .phero-text-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: var(--pt-w);
  text-align: left;
}
.opc-phero .phero-text--a-center .phero-text-inner { align-items: center; text-align: center; }
.opc-phero .phero-text--a-right .phero-text-inner { align-items: flex-end; text-align: right; }

/* Zeilen: gegen Theme-Regeln für h1/h2/p und Links abgesichert */
.opc-phero .phero-line,
.opc-phero .phero-cta {
  margin: 0;
  padding: 0;
  font-family: var(--ff);
  font-size: max(9px, var(--fs));
  font-style: normal;
  font-weight: var(--fw);
  color: var(--c);
  letter-spacing: var(--ls);
  text-transform: var(--tt);
  overflow-wrap: break-word;
}
.opc-phero .phero-line { margin-bottom: var(--gap); line-height: 1.25; }
.opc-phero .phero-headline { line-height: 1.02; text-wrap: balance; }
.opc-phero .phero-subline { line-height: 1.3; }
.opc-phero .phero-text-inner > :last-child { margin-bottom: 0; }

/* Knopf: echter Link, Fokus-Ring weiß und in der Akzentfarbe, sichtbar auf hellen und dunklen Bildern */
.opc-phero .phero-cta {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .65em 1.35em;
  border: 2px solid var(--cta-bg);
  border-radius: var(--cta-r);
  background: var(--cta-bg);
  line-height: 1.1;
  text-decoration: none;
  pointer-events: auto;
  transition: background-color .16s ease, border-color .16s ease;
}
.opc-phero .phero-cta--pad-s { padding: .5em 1em; }
.opc-phero .phero-cta--pad-l { padding: .9em 1.85em; }
.opc-phero .phero-cta--outline { background: transparent; }
.opc-phero .phero-cta:hover,
.opc-phero .phero-cta:focus { color: var(--c); text-decoration: none; }
.opc-phero .phero-cta--hover-darker:hover { --cta-hover: color-mix(in srgb, var(--cta-bg) 86%, #000); }
.opc-phero .phero-cta--hover-lighter:hover { --cta-hover: color-mix(in srgb, var(--cta-bg) 80%, #fff); }
.opc-phero .phero-cta--filled:hover { border-color: var(--cta-hover, var(--cta-bg)); background: var(--cta-hover, var(--cta-bg)); }
.opc-phero .phero-cta--outline:hover { border-color: var(--cta-hover, var(--cta-bg)); }
.opc-phero .phero-cta--outline.phero-cta--hover-darker:hover,
.opc-phero .phero-cta--outline.phero-cta--hover-lighter:hover { background: color-mix(in srgb, var(--cta-bg) 18%, transparent); }
.opc-phero .phero-cta:focus-visible {
  outline: 3px solid var(--phero-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

/* Lesbarkeitshilfe in --pt-aid (Farbe mit Stärke als Deckkraft) */
.opc-phero .phero-text--aid-shadow .phero-line { text-shadow: 0 .04em .35em var(--pt-aid), 0 0 .08em var(--pt-aid); }
.opc-phero .phero-text--aid-gradient { background: linear-gradient(to right, var(--pt-aid), transparent 72%); }
.opc-phero .phero-text--aid-gradient.phero-text--x-right { background: linear-gradient(to left, var(--pt-aid), transparent 72%); }
.opc-phero .phero-text--aid-gradient.phero-text--x-center.phero-text--y-top { background: linear-gradient(to bottom, var(--pt-aid), transparent 80%); }
.opc-phero .phero-text--aid-gradient.phero-text--x-center.phero-text--y-bottom { background: linear-gradient(to top, var(--pt-aid), transparent 80%); }
.opc-phero .phero-text--aid-gradient.phero-text--x-center.phero-text--y-middle { background: radial-gradient(ellipse at center, var(--pt-aid), transparent 70%); }
.opc-phero .phero-text--aid-box .phero-text-inner {
  padding: max(8px, 1.5cqw) max(10px, 2cqw);
  border-radius: 6px;
  background: var(--pt-aid);
}
/* Die Fläche wächst in den Randabstand hinein, der Text bleibt an derselben Stelle wie ohne Fläche */
.opc-phero .phero-text--aid-box { padding: max(4px, calc(var(--pt-pad) - 1.5cqw)) max(4px, calc(var(--pt-pad) - 2cqw)); }

/* Einblenden beim Folienwechsel: erst nach dem ersten Wechsel (Skript setzt is-moved), nicht nach dem Wischen */
@keyframes phero-text-in {
  from { opacity: 0; transform: translateY(.5em); }
  to { opacity: 1; transform: none; }
}
.opc-phero--anim.is-moved:not(.is-swiped) .phero-slide.is-active .phero-text-inner > * { animation: phero-text-in .55s cubic-bezier(.2, .7, .2, 1) both; }
.opc-phero--anim.is-moved:not(.is-swiped) .phero-slide.is-active .phero-text-inner > :nth-child(2) { animation-delay: .09s; }
.opc-phero--anim.is-moved:not(.is-swiped) .phero-slide.is-active .phero-text-inner > :nth-child(3) { animation-delay: .18s; }
.opc-phero--anim.is-moved:not(.is-swiped) .phero-slide.is-active .phero-text-inner > :nth-child(4) { animation-delay: .27s; }
.opc-phero--anim.is-moved:not(.is-swiped) .phero-slide.is-active .phero-text-inner > :nth-child(5) { animation-delay: .36s; }
.opc-phero--anim.is-moved:not(.is-swiped) .phero-slide.is-active .phero-text-inner > :nth-child(n+6) { animation-delay: .45s; }

/* ------------------------------------------- 7. Textebene am Handy (unter 768 px) */
@media (max-width: 767px) {
  /* Auf dem Bild: Größen bezogen auf 390 px, Block mindestens drei Viertel breit */
  .opc-phero .phero-text--m-overlay .phero-line,
  .opc-phero .phero-text--m-overlay .phero-cta { font-size: max(9px, var(--fs-m)); }
  .opc-phero .phero-text--m-overlay .phero-text-inner { max-width: max(var(--pt-w), 75%); }

  /* Unter dem Bild: Folie wird Bild plus Textfläche, alle Folien so hoch wie die höchste (nebeneinander von selbst) */
  .opc-phero--below-m .phero-track { aspect-ratio: auto; }
  .opc-phero--below-m .phero-slide {
    display: flex;
    flex-direction: column;
    background: var(--phero-below);
  }
  .opc-phero--below-m .phero-slide > .phero-link,
  .opc-phero--below-m .phero-slide > picture {
    flex: none;
    height: auto;
    aspect-ratio: var(--phero-ratio-m, var(--phero-ratio, 2400 / 440));
  }
  .opc-phero--below-m .phero-text--m-overlay {
    bottom: auto;
    aspect-ratio: var(--phero-ratio-m, var(--phero-ratio, 2400 / 440));
  }
  .opc-phero .phero-slide > .phero-text.phero-text--m-below {
    position: static;
    flex: 1 0 auto;
    align-items: flex-start;
    padding: 16px;
    background: var(--pt-below);
    pointer-events: auto;
  }
  .opc-phero .phero-text--m-below .phero-text-inner {
    max-width: none;
    padding: 0;
    background: none;
  }
  .opc-phero .phero-text--m-below .phero-line,
  .opc-phero .phero-text--m-below .phero-cta { font-size: var(--fs-b); text-shadow: none; }
}

/* ------------------------------------------------- 8. Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
  .opc-phero *,
  .opc-phero *::before,
  .opc-phero *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------- 9. Editor */
.opc-phero--preview .phero-btn,
.opc-phero--preview .phero-bar { pointer-events: none; }
.opc-phero .phero-empty,
.opc-phero .phero-issues {
  margin: 10px 0 0;
  padding: 10px 14px;
  border: 1px dashed #cfd6de;
  background: #f5f7fa;
  color: #6b7680;
  font-size: 12px;
  list-style: none;
}
.opc-phero .phero-issues { border-color: #e7c873; background: #fdf8ea; color: #7a5b0c; }

/* ------------------------------------------------------- 10. Bewegtbild */
/* Video über dem Standbild der Folie, sichtbar erst, wenn es läuft (das Skript setzt is-playing). Bis dahin, ohne
   JavaScript und bei reduzierter Bewegung steht das Standbild mit seinem Alt-Text. */
.opc-phero .phero-media {
  position: relative;
  display: block;
  height: 100%;
}
.opc-phero .phero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.opc-phero .phero-video.is-playing { opacity: 1; }
@media (max-width: 767px) {
  .opc-phero--below-m .phero-slide > .phero-media {
    flex: none;
    height: auto;
    aspect-ratio: var(--phero-ratio-m, var(--phero-ratio, 2400 / 440));
  }
}
@media (prefers-reduced-motion: reduce) {
  .opc-phero .phero-video { display: none; }
}

/* ------------------------------------------------- 11. Pfeile und Punkte */
/* Bedienung „Pfeile“: runde Pfeile links und rechts im Bild (erst nach dem Start, vorher bewegen sie nichts), am Handy
   nicht (dort wird gewischt). Darunter Punkte je Folie und der Pause-Knopf. */
.opc-phero .phero-arrows {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 16px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}
.opc-phero .phero-round {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid #d5dce3;
  border-radius: 50%;
  background: #fff;
  color: var(--phero-ink);
  box-shadow: 0 2px 8px rgba(27, 35, 43, .08);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color .16s ease, color .16s ease, transform .16s ease;
}
.opc-phero .phero-round:hover { border-color: var(--phero-accent); color: var(--phero-accent); }
.opc-phero .phero-round:active { transform: scale(.94); }
.opc-phero .phero-round:focus-visible {
  outline: 2px solid var(--phero-accent);
  outline-offset: 2px;
}
.opc-phero .phero-round svg { width: 20px; height: 20px; }
/* Text nicht unter die Pfeile */
@media (min-width: 768px) {
  .opc-phero--nav-arrows .phero-text {
    padding-right: max(76px, var(--pt-pad));
    padding-left: max(76px, var(--pt-pad));
  }
}
@media (max-width: 767px) {
  .opc-phero .phero-arrows { display: none; }
}

.opc-phero .phero-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.opc-phero .phero-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
}
.opc-phero .phero-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}
.opc-phero .phero-dot::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #c5ced8;
  transition: width .28s cubic-bezier(.2, .7, .2, 1), background-color .16s ease;
}
.opc-phero .phero-dot:hover::before { background: var(--phero-ink); }
.opc-phero .phero-dot[aria-current="true"]::before { width: 22px; background: var(--phero-accent); }
.opc-phero .phero-dot:focus-visible { outline: 2px solid var(--phero-accent); outline-offset: 0; }

/* ----------------------------------------------------- 12. Vorschaubilder */
/* Unter dem Banner (und bei „im Bild“ am Handy): eine Reihe, mittig, solange sie passt, sonst wischbar. Die
   automatischen Ränder am ersten und letzten Bild zentrieren, ohne beim Überlaufen den Anfang abzuschneiden. */
.opc-phero .phero-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.opc-phero .phero-thumbs-list {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  padding: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.opc-phero .phero-thumbs-list::-webkit-scrollbar { display: none; }
.opc-phero .phero-thumb {
  flex: 1 0 64px;
  max-width: 160px;
  aspect-ratio: 3 / 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: var(--phero-field);
  opacity: .6;
  cursor: pointer;
  transition: opacity .16s ease, border-color .16s ease;
}
.opc-phero .phero-thumb:first-child { margin-left: auto; }
.opc-phero .phero-thumb:last-child { margin-right: auto; }
.opc-phero .phero-thumb img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.opc-phero .phero-thumb:hover,
.opc-phero .phero-thumb[aria-current="true"] { opacity: 1; }
.opc-phero .phero-thumb[aria-current="true"] { border-color: var(--phero-accent); }
.opc-phero .phero-thumb:focus-visible { outline: 2px solid var(--phero-accent); outline-offset: 1px; }

/* Im Bild (ab 768 px): eine Spalte oben rechts wie bei Salepix, bei vielen Folien scrollt sie in sich. Die Textebene
   hält rechts so viel Abstand, dass sie nicht darunter liegt. */
@media (min-width: 768px) {
  .opc-phero--nav-thumbs-in { --phero-thumbs-w: clamp(112px, 12%, 180px); }
  .opc-phero--nav-thumbs-in .phero-thumbs {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: flex-end;
    width: var(--phero-thumbs-w);
    margin: 0;
    pointer-events: none;
  }
  .opc-phero--nav-thumbs-in .phero-thumbs-list {
    flex: 0 1 auto;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    pointer-events: auto;
  }
  .opc-phero--nav-thumbs-in .phero-thumb {
    flex: none;
    width: 100%;
    max-width: none;
    margin: 0;
    border-color: rgba(255, 255, 255, .75);
    box-shadow: 0 2px 10px rgba(13, 18, 23, .28);
    opacity: .85;
  }
  .opc-phero--nav-thumbs-in .phero-thumb:hover,
  .opc-phero--nav-thumbs-in .phero-thumb[aria-current="true"] { opacity: 1; }
  .opc-phero--nav-thumbs-in .phero-thumb[aria-current="true"] { border-color: var(--phero-accent); }
  .opc-phero--nav-thumbs-in .phero-pause {
    flex: none;
    background: rgba(255, 255, 255, .94);
    pointer-events: auto;
  }
  .opc-phero--nav-thumbs-in .phero-text { padding-right: calc(var(--phero-thumbs-w) + 28px); }
}

/* Editor-Vorschau: stehend, nichts klickbar */
.opc-phero--preview .phero-dot,
.opc-phero--preview .phero-thumb { pointer-events: none; }

/* ------------------------------------------------ 13. Text aus dem Editor (seit 3.0.0) */
/* Blöcke direkt in .phero-text-inner: p.ph-kicker (Dachzeile), .ph-h (Überschrift, h1/h2/p), p (Text), darin strong,
   span mit Farbe und Links (a.ph-btn = Knopf). Schriften vom Template: die Überschrift erbt die Überschrift-Schrift
   des Shops, alles andere die Grundschrift. Größen in cqw wie die alte Textebene (Pixel bei 1440 px Bannerbreite),
   Randabstand, Breite und Lesbarkeit fest. Gegen Theme-Regeln für h1/h2/p/a abgesichert. */
.opc-phero .phero-text--rich {
  --pt-pad: 2.222cqw;
  --pt-w: 50%;
  --pt-aid: rgba(0, 0, 0, .5);
  --pt-below: var(--phero-below, #1b232b);
  /* Seit 3.3.0: Standardknopf in der CI-Farbe (Schalter in Pichler Template und QoL), ohne Schalter Gelb wie bisher.
     Eine Farbe pro Folie setzt --pt-btn und --pt-btn-c am Element und geht vor. */
  --pt-btn: var(--p27-buy, #ffd400);
  --pt-btn-c: #111111;
}
/* Schrift auf dem Standardknopf hell oder dunkel nach der Helligkeit der Knopffarbe (CI-Blau weiß, Gelb schwarz) */
@supports (color: oklch(from red l c h)) {
  .opc-phero .phero-text--rich { --pt-btn-c: oklch(from var(--pt-btn) clamp(0, (0.72 - l) * 1000, 1) 0 0); }
}
.opc-phero .phero-text--rich.phero-text--x-center { --pt-w: 72%; }
.opc-phero .phero-text--rich .phero-text-inner { color: #fff; }
.opc-phero .phero-text--rich .phero-text-inner > * {
  margin: 0 0 .6em;
  padding: 0;
  color: inherit;
  font-size: max(9px, 1.389cqw);
  font-style: normal;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: break-word;
}
.opc-phero .phero-text--rich .phero-text-inner > .ph-kicker {
  margin-bottom: .6em;
  color: #ffd400;
  font-size: max(9px, .972cqw);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.opc-phero .phero-text--rich .phero-text-inner > .ph-h {
  margin-bottom: .22em;
  font-size: max(14px, 3.889cqw);
  line-height: 1.04;
  text-wrap: balance;
}
.opc-phero .phero-text--rich .phero-text-inner > p.ph-h { font-weight: 600; }
/* Schrift der Überschrift (seit 3.0.1), sonst die des Templates; Schnitte lädt das Portlet nur bei Bedarf */
.opc-phero .phero-text--rich.phero-text--f-barlow .phero-text-inner > .ph-h { font-family: "PHero Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; }
.opc-phero .phero-text--rich.phero-text--f-oswald .phero-text-inner > .ph-h { font-family: "PHero Oswald", "Arial Narrow", sans-serif; font-weight: 700; }
.opc-phero .phero-text--rich.phero-text--f-bebas .phero-text-inner > .ph-h { font-family: "PHero Bebas Neue", Impact, sans-serif; font-weight: 400; }
.opc-phero .phero-text--rich.phero-text--f-anton .phero-text-inner > .ph-h { font-family: "PHero Anton", Impact, sans-serif; font-weight: 400; }
.opc-phero .phero-text--rich .phero-text-inner > :last-child { margin-bottom: 0; }
.opc-phero .phero-text--rich strong { font-weight: 700; }
.opc-phero .phero-text--rich a {
  color: inherit;
  text-decoration: underline;
  pointer-events: auto;
}
.opc-phero .phero-text--rich a:hover { color: inherit; }
/* Knopf wie der CTA der alten Textebene (Standard gelb, abgerundet); Farbe seit 3.0.1 wählbar, Schrift hell oder dunkel vom Portlet */
.opc-phero .phero-text--rich .ph-btn {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: .25em 0;
  padding: .65em 1.35em;
  border: 2px solid var(--pt-btn);
  border-radius: 8px;
  background: var(--pt-btn);
  color: var(--pt-btn-c);
  font-size: max(10px, 1.042cqw);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  pointer-events: auto;
  transition: background-color .16s ease, border-color .16s ease;
}
.opc-phero .phero-text--rich .ph-btn + .ph-btn { margin-left: .6em; }
.opc-phero .phero-text--rich .ph-btn:hover,
.opc-phero .phero-text--rich .ph-btn:focus {
  border-color: color-mix(in srgb, var(--pt-btn) 86%, var(--pt-btn-c));
  background: color-mix(in srgb, var(--pt-btn) 86%, var(--pt-btn-c));
  color: var(--pt-btn-c);
  text-decoration: none;
}
.opc-phero .phero-text--rich a:focus-visible {
  outline: 3px solid var(--phero-accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
.opc-phero .phero-text--rich.phero-text--aid-shadow .phero-text-inner > * { text-shadow: 0 .04em .35em var(--pt-aid), 0 0 .08em var(--pt-aid); }
@media (max-width: 767px) {
  .opc-phero .phero-text--rich.phero-text--m-overlay .phero-text-inner > * { font-size: max(9px, 3.846cqw); }
  .opc-phero .phero-text--rich.phero-text--m-overlay .phero-text-inner > .ph-kicker { font-size: max(9px, 3.077cqw); }
  .opc-phero .phero-text--rich.phero-text--m-overlay .phero-text-inner > .ph-h { font-size: max(14px, 7.692cqw); }
  .opc-phero .phero-text--rich.phero-text--m-overlay .ph-btn { font-size: max(10px, 3.59cqw); }
  .opc-phero .phero-text--rich.phero-text--m-below .phero-text-inner > * { font-size: 15px; text-shadow: none; }
  .opc-phero .phero-text--rich.phero-text--m-below .phero-text-inner > .ph-kicker { font-size: 12px; }
  .opc-phero .phero-text--rich.phero-text--m-below .phero-text-inner > .ph-h { font-size: 26px; }
  .opc-phero .phero-text--rich.phero-text--m-below .ph-btn { font-size: 14px; }
}
/* Editor-Vorschau: Links sind span */
.opc-phero--preview .phero-text--rich .ph-a { text-decoration: underline; }
