/* FAIST Entsperren: Baustein fuer gesperrte Inhalte (Borlabs Cookie) an Stelle des Inhalts.
   Selektoren bewusst spezifisch: sie muessen gegen Borlabs, Elementor-Widgets und das Theme gewinnen. */

/* Die Huelle von Borlabs bildet keine eigene Box. */
div.fes-huelle.brlbs-cmpnt-content-blocker{display:contents}

.fes[data-fes]{
  --fes-h:auto;--fes-pt:0;
  box-sizing:border-box;position:relative;display:grid;grid-template-columns:minmax(0,1fr);
  width:100%;max-width:100%;margin:0;padding:0;border:0;background:#eef0f2;color:#1a1a1a;
  font:400 15px/1.5 "D-DIN Pro",sans-serif;font-synthesis:none;text-align:left;letter-spacing:normal;text-transform:none;
  vertical-align:baseline;container:fes/inline-size;
}
/* Frei eingefuegtes iframe: verhaelt sich wie das iframe im Textfluss. */
.fes[data-fes][style*="--fes-hoehe"]{display:inline-grid;width:var(--fes-breite,100%);--fes-h:var(--fes-hoehe)}
.elementor .fes[data-fes][style*="--fes-hoehe"]{width:100%}
/* Elementor-Video-Widget; im Hochformat Standbild in 16:9, das Widget waechst erst nach dem Entsperren */
.elementor-widget-video .elementor-wrapper .fes[data-fes]{display:grid;width:100%;--fes-h:auto;--fes-ar:var(--video-aspect-ratio,16/9)}
.elementor-widget-video .elementor-wrapper .fes--hochkant[data-fes]{--fes-ar:16/9}
.elementor-widget-video .elementor-wrapper:has(.fes--hochkant){aspect-ratio:auto}
/* WordPress-Einbettung: dieselbe Rechnung wie die Huelle von WordPress, hochkant in 16:9 */
.wp-embed-responsive .wp-has-aspect-ratio .fes[data-fes]{display:grid;width:100%;--fes-h:0;--fes-pt:50%}
.wp-embed-responsive .wp-embed-aspect-21-9 .fes[data-fes]{--fes-pt:42.85%}
.wp-embed-responsive .wp-embed-aspect-4-3 .fes[data-fes]{--fes-pt:75%}
.wp-embed-responsive .wp-embed-aspect-1-1 .fes[data-fes]{--fes-pt:100%}
.wp-embed-responsive :is(.wp-embed-aspect-16-9,.wp-embed-aspect-9-16,.wp-embed-aspect-1-2) .fes[data-fes]{--fes-pt:56.25%}
.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:has(.fes[data-fes])::before{display:none}

.fes[data-fes] .fes__bild{
  position:relative;display:block;grid-area:1/1;align-self:start;width:100%;height:var(--fes-h);
  aspect-ratio:var(--fes-ar,16/9);padding:var(--fes-pt) 0 0;margin:0;overflow:hidden;background:#111;
}
.fes[data-fes] .fes__bild .fes__standbild{
  position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;
  box-shadow:none;object-fit:cover;opacity:0;transition:opacity .9s ease;
}
.fes[data-fes] .fes__bild .fes__standbild.ist-da{opacity:1}

.fes[data-fes] .fes__leiste{
  position:relative;grid-area:1/1;align-self:end;display:flex;align-items:center;justify-content:space-between;gap:40px;
  margin:0;padding:22px 28px;background:#eef0f2;
}
.fes[data-fes] .fes__leiste .fes__text{flex:0 1 auto;min-width:0}
/* !important: Borlabs setzt font-weight:400 !important auf alle Absaetze in seiner Huelle */
.fes[data-fes] .fes__leiste .fes__titel{margin:0 0 4px;padding:0;color:inherit;font-size:18px;line-height:1.3;font-weight:700 !important;overflow-wrap:break-word}
.fes[data-fes] .fes__leiste .fes__hinweis{margin:0;padding:0;max-width:64ch;color:inherit;font-size:15px;line-height:1.5;overflow-wrap:break-word}
.fes[data-fes] .fes__leiste .fes__hinweis a[href]{color:inherit;text-decoration:underline;text-underline-offset:.15em}
.fes[data-fes] .fes__leiste .fes__aktion{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.fes[data-fes] .fes__leiste .fes__knopf{
  box-sizing:border-box;appearance:none;display:inline-block;min-height:44px;margin:0;padding:12px 24px;border:0;border-radius:0;box-shadow:none;
  font-family:inherit;font-size:15px;line-height:1.35;font-weight:700;text-align:center;text-transform:none;text-decoration:none;
  white-space:nowrap;cursor:pointer;color:#fff;background:var(--e-global-color-primary,#FF0827);transition:background-color .15s ease;
}
.fes[data-fes] .fes__leiste .fes__knopf:hover{color:#fff;background:#d90621;background:color-mix(in srgb,var(--e-global-color-primary,#FF0827) 85%,#000)}
/* Haken-Zeile: sichtbar klein, Trefferflaeche 44px hoch, reicht bis an den Knopf */
.fes[data-fes] .fes__leiste .fes__immer{
  display:flex;align-items:center;gap:8px;margin:-10px 0 -16px;padding:10px 0 16px;cursor:pointer;
  color:inherit;font-size:14px;line-height:1.3;font-weight:400;
}
.fes[data-fes] .fes__leiste .fes__immer input[type=checkbox]{
  appearance:auto;flex:0 0 auto;width:16px;height:16px;margin:0;padding:0;border:0;background:none;box-shadow:none;accent-color:#1a1a1a;cursor:pointer;
}
.fes[data-fes] .fes__leiste .fes__dienst{display:none}
.fes[data-fes] .fes__leiste .fes__knopf:focus-visible,
.fes[data-fes] .fes__leiste .fes__hinweis a[href]:focus-visible,
.fes[data-fes] .fes__leiste .fes__immer input[type=checkbox]:focus-visible{outline:2px solid #1a1a1a;outline-offset:3px;box-shadow:none}

/* Baustein schmaler als 760px: Leiste unter dem Bild, als Spalte */
@container fes (width < 760px){
  .fes[data-fes] .fes__leiste{grid-area:2/1;flex-direction:column;align-items:flex-start;gap:14px;padding:16px 16px 18px}
  .fes[data-fes] .fes__leiste .fes__titel{font-size:17px}
}
/* Leiste wuerde mehr als ein Viertel des Bilds decken (setzt das Skript): unter dem Bild, Form bleibt */
.fes--leiste-unten[data-fes] .fes__leiste{grid-area:2/1}

/* Hintergrundvideo eines Elementor-Abschnitts: nur das erste Bild als Flaeche */
.elementor-background-video-container .fes[data-fes]{position:absolute;inset:0;display:block;width:100%;height:100%;background:#111}
.elementor-background-video-container .fes[data-fes] .fes__bild{height:100%;padding:0;aspect-ratio:auto}
.elementor-background-video-container .fes[data-fes] .fes__leiste,
.elementor-background-video-container .fes[data-fes] .fes__bild .fes__standbild:not(:first-child){display:none}

@media (prefers-reduced-motion:reduce){
  .fes[data-fes] .fes__bild .fes__standbild,.fes[data-fes] .fes__leiste .fes__knopf{transition:none}
}
