/* Basis-Styles der Seite: Dinge, die der alte Seitenbaukasten per Skript erzeugt hat. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Responsive Video-Rahmen (16:9), Hoehe kommt aus padding-top des Wrappers */
.fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; }
.fluid-width-video-wrapper iframe,
.fluid-width-video-wrapper object,
.fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* HubSpot-Formular: iframe volle Breite */
#hs-form-embed iframe { display: block; width: 100%; border: 0; }

/* Video-Popup */
.ghq-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .86); padding: 24px; }
.ghq-lightbox__box { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; background: #000; }
.ghq-lightbox__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ghq-lightbox__close { position: absolute; top: 8px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 0;
  background: transparent; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }
.ghq-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.elVideoModalWrapper a.swipebox { cursor: pointer; }

/* Inhaltselemente liegen im Original alle positioniert (relative), das entscheidet
   über Stapelreihenfolge und z-index der überlappenden Bilder. */
.de { position: relative; }



/* FAQ: Frage und Antwort als zusammengehörige Karte (Frage dunkelrot, Antwort hellrot).
   Höhere Spezifität als tb-ausbildung.css, die später geladen wird. */
.faq-container .faq-item {
  padding: 0;
  margin: 0 0 14px;
  border: 1px solid #d9c37d;
  border-radius: 10px;
  overflow: hidden;
  background: #fbeeec;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.faq-container .faq-question {
  gap: 16px;
  padding: 16px 20px;
  background: #590005;
  color: #fff;
  transition: background-color .2s ease;
}
.faq-container .faq-question:hover { background: #6e0711; }
.faq-container .faq-question > span { flex: 1 1 auto; line-height: 1.35; }
.faq-container .faq-question > div { flex: 0 0 auto; display: flex; align-items: center; }
.faq-container .faq-question img {
  width: 22px;
  height: 22px;
  /* rote Icons auf dunklem Grund in Weiß */
  filter: brightness(0) invert(1);
}
.faq-container .faq-answer {
  margin: 0;
  padding: 18px 20px 20px;
  color: #3b0004;
  background: #fbeeec;
}
.faq-container .faq-answer p { margin: 0; }
.faq-container .faq-answer p + p { margin-top: 10px; }
@media (max-width: 767px) {
  .faq-container .faq-question { padding: 14px 16px; }
  .faq-container .faq-answer { padding: 14px 16px 16px; }
}

/* Logo ganz oben: die Buchstaben blenden nacheinander ein (Schaerfe-Zoom), danach zieht ein goldener Glanz
   ueber das ganze Logo. Die Stuecke sind Ausschnitte des Original-Logos, build.py zerlegt es. */
.logo-effekt { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.logo-effekt > img { visibility: hidden; }
.logo-buchstabe {
  position: absolute; background-image: var(--logo); background-repeat: no-repeat;
  transform-origin: 50% 60%;
  animation: ghqBuchstabeEin .926s cubic-bezier(.16, .84, .3, 1) calc(.6s + var(--i) * .0926s) both;
}
.logo-effekt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 244, 205, .85) 50%, transparent 60%) 0 0 / 60% 100% no-repeat;
  -webkit-mask: var(--logo) center / 100% 100% no-repeat;
  mask: var(--logo) center / 100% 100% no-repeat;
  animation: ghqLogoGlanz 1.14s ease-out 3.28s both;
}
@keyframes ghqBuchstabeEin {
  0% { opacity: 0; transform: translateY(14px) scale(1.3); filter: blur(8px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes ghqLogoGlanz {
  0% { background-position: -160% 0; }
  100% { background-position: 260% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-buchstabe { animation: none; }
  .logo-effekt::after { display: none; }
}

/* Bewertungszeile (Text statt Bild, damit die Zahl stimmt): 4,8, fuenf Sterne, Anzahl */
.bewertung { display: inline-flex; align-items: center; white-space: nowrap; color: #fff; font: 400 13.6px/1 Lato, Helvetica, sans-serif; }
.bewertung img { flex: none; display: block; max-width: none; margin: 0 7px 0 11px; }
