/*
 * Widget 17 „Nebenkostenabrechnung" — Biberkopf über dem easyAsset-Tool.
 * Topbar/Pitch kommen aus /widget-anfrage/anfrage.css + /widget-kopf/biber-hero.css;
 * hier nur, was die volle Tool-Breite braucht. Das Tool setzt zur Laufzeit eigene
 * :root-Variablen (--bg, --ink, --radius, --shadow …) und die Schrift Outfit auf
 * <body> — Kopf deshalb mit festen Werten statt Variablen.
 */
body:has(.nk-kopf) .page.nk {
  display: block;
  max-width: 1180px;
  padding-bottom: 0;
}
.topbar,
.nk-kopf {
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
.topbar .secure {
  border-color: #e4e9f0;
}

/* Desktop: Text links, rechts die Beraterkarte mit dem Biber darüber */
.pitch.biber-hero.nk-kopf {
  display: grid;
  grid-template-columns: minmax(0, 620px) 360px;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding: 36px 40px !important;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 40, 64, 0.04), 0 8px 28px rgba(16, 40, 64, 0.06);
  /* Biber mittig über der Kartenspalte: rechts = Polster + halbe Spalte − halbe Biberbreite */
  --biber-hoehe: 270px;
  --biber-rechts: 85px;
  --biber-unten: 150px;
}
.pitch.biber-hero.nk-kopf::after {
  top: auto;
  transform: none;
}
.nk-kopf .nk-text .vorteile {
  margin-bottom: 0;
}
@media (min-width: 901px) and (max-width: 1180px) {
  .pitch.biber-hero.nk-kopf {
    grid-template-columns: minmax(0, 1fr) 320px;
    --biber-hoehe: 240px;
    --biber-rechts: 80px;
  }
}

/* Schmal: Biber oben mittig (wie die anderen Pitch-Widgets), Karte/Vorteile aus */
@media (max-width: 900px) {
  .pitch.biber-hero.nk-kopf {
    display: block;
    padding: 210px 20px 22px !important;
    --biber-hoehe: 220px;
    --biber-rechts: 50%;
  }
  .pitch.biber-hero.nk-kopf::after {
    top: -6px;
    transform: translateX(50%);
  }
  .nk-kopf .facts {
    margin-bottom: 0;
  }
  /* Kopf kompakt halten, damit das Tool schnell sichtbar ist */
  .pitch.biber-hero.nk-kopf {
    padding-top: 170px !important;
    --biber-hoehe: 180px;
  }
  .pitch.biber-hero.nk-kopf h1 {
    font-size: clamp(24px, 7vw, 32px) !important;
    margin-bottom: 12px !important;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  .pitch.biber-hero.nk-kopf .lead {
    font-size: 15px !important;
    margin-bottom: 16px;
  }
}

/* Werkzeugleiste des Tools (Logo · Widget-Modus | Dark · Neustart) ist inline
   gestylt und bricht schmal nicht um — mobil: Logo oben, Knöpfe darunter rechts. */
@media (max-width: 600px) {
  .nk-tool .app-root > header > div {
    flex-wrap: wrap !important;
    row-gap: 10px;
    padding: 12px 16px !important;
  }
  .nk-tool .app-root > header > div > div:last-child {
    margin-left: auto;
  }
}

/* Tool direkt unter dem Kopf */
.nk-tool {
  margin-top: 8px;
}

/* Fehlermelde-Knopf links unten — rechts unten sitzt der Bibi-Chat */
#eaBugFab {
  right: auto;
  left: 20px;
}
#eaBugPanel {
  right: auto;
  left: 20px;
}
@media (max-width: 480px) {
  #eaBugPanel {
    left: 8px;
    right: 8px;
  }
}
