/*
 * Hero-Varianten: with-image, centered, theme-color.
 */

.bf-hero {
  position: relative;
  /* kein padding-inline — der Verlauf soll bis an die Viewport-Kante reichen.
   * Der zentrale Content bekommt sein eigenes max-width + padding-inline. */
  padding: 80px 0 100px !important;
  overflow: hidden;
  background: #fff;
}
.bf-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 12% 90%, rgba(0,195,214,.06) 0%, transparent 50%),
    radial-gradient(circle at 88% 10%, rgba(221,31,90,.04) 0%, transparent 45%),
    #fff;
  pointer-events: none;
}
/* WordPress' .is-layout-constrained zwingt Section-Children auf max-width:1240px
 * — der Background-Layer soll aber volle Breite einnehmen. Hier explizit lifften. */
.bf-hero > .bf-hero__bg {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.bf-hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 32px;          /* zentraler Content hält Abstand */
}
.bf-hero__grid.wp-block-columns {
  align-items: center;
  gap: 64px;
}
.bf-hero__content { display: flex; flex-direction: column; gap: 22px; }
.bf-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--bf-gray-80);
  background: var(--bf-white);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.bf-hero__eyebrow-badge {
  background: linear-gradient(135deg, var(--bf-turquoise), var(--bf-green));
  color: var(--bf-white);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}
.bf-hero__title {
  font-size: clamp(40px, 5.5vw, 72px) !important;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
.bf-hero__title em {
  font-style: italic;
  color: var(--bf-green-dark-1);
}
.bf-hero__lead,
.bf-hero__lead.is-style-bf-lead {
  max-width: 540px;
  font-size: 19px;
}
.bf-hero__ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.bf-hero__visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--bf-turquoise-20), var(--bf-beige));
  width: 100%;
  height: 100%;
}

/* Hero-Image (figure) — wie in der Vorlage. */
.bf-hero__image {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.bf-hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}
.bf-hero__image-tag {
  position: absolute;
  bottom: 22px; left: 22px; right: 22px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
}
.bf-hero__image-tag-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--bf-turquoise), var(--bf-green));
  color: #fff; display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 18px;
}
.bf-hero__image-tag-icon i { line-height: 1; }
.bf-hero__trust-check     { font-size: 16px; line-height: 1; color: var(--bf-green); flex-shrink: 0; }
.bf-hero__image-tag-text {
  font-size: 13px; line-height: 1.45; color: var(--bf-gray-80);
}
.bf-hero__image-tag-text strong {
  display: block; color: var(--bf-gray-dark); font-size: 14.5px;
}

/* Hero-spezifischer Ghost-Button: dunkler Fill + weiße Schrift.
 * Hover-Lift + Shadow erbt vom .btn-Base.
 * Maximal-spezifischer Selektor (body-Prefix + a-Tag + alle 3 Klassen am Link)
 * gegen WP-globale Element-Styles, die manchmal nach unserem CSS injected werden. */
body .bf-hero .btn--ghost,
body .bf-hero .wp-block-button.is-style-bf-ghost > a.wp-block-button__link,
body .bf-hero .wp-block-button.is-style-bf-ghost > .wp-block-button__link.wp-element-button {
  background-color: #263237 !important;
  color: #ffffff !important;
  border-color: #263237 !important;
}
.bf-hero .btn--ghost:hover,
.bf-hero .wp-block-button.is-style-bf-ghost > .wp-block-button__link:hover {
  background: var(--bf-green-dark-1);
  border-color: var(--bf-green-dark-1);
  color: var(--bf-white);
  box-shadow: 0 10px 24px rgba(11, 105, 110, 0.28);
}

/* Hero-Context: Buttons sind --lg (gleiche Größe wie .btn--lg). */
.bf-hero .wp-block-buttons > .wp-block-button > .wp-block-button__link {
  padding: 14.5px 30px;
  font-size: 16px;
}

/* Trust-Line unter Hero-CTAs. */
.bf-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--bf-gray-20);
}
.bf-hero__trust-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--bf-gray-60); font-weight: 500;
}
.bf-hero__trust-check {
  width: 16px; height: 16px;
  color: var(--bf-green);
  flex-shrink: 0;
}

/* Centered */
.bf-hero--centered {
  padding-block: 80px 80px;
  text-align: center;
}
.bf-hero--centered .bf-hero__eyebrow { margin-inline: auto; }
.bf-hero--centered .bf-hero__lead { margin-inline: auto; }

/* Theme-Color */
.bf-hero--theme {
  background: linear-gradient(155deg, var(--bf-theme-from, #0B696E) 0%, var(--bf-theme-to, #00BF9A) 100%);
  color: var(--bf-white);
  padding-block: 110px;
}
.bf-hero--theme::before { display: none; }
.bf-hero--theme .bf-hero__title { color: var(--bf-white); }
.bf-hero--theme .bf-hero__title em { color: rgba(255,255,255,0.85); }
.bf-hero--theme .bf-hero__lead { color: rgba(255,255,255,0.86); max-width: 620px; }
.bf-hero__theme-short {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 0.95;
  color: rgba(255,255,255,0.92);
  margin: 0;
  letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
  .bf-hero__grid,
  .bf-hero__grid.wp-block-columns {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .bf-hero { padding: 40px 0 60px !important; }
  /* Bild ZUERST, über volle Breite, ohne 600px-Begrenzung. */
  .bf-hero__image {
    order: -1;
    max-width: none;
    margin-inline: 0;
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 768px) {
  .bf-hero { padding: 40px 0 60px !important; }
  .bf-hero__grid,
  .bf-hero__grid.wp-block-columns { flex-direction: column; gap: 40px; padding-inline: 24px; }
  .bf-hero__title { font-size: clamp(34px, 8vw, 48px) !important; }
}
