/* Bling Schule – Empfehlungsformular (#bse-root). Farben wie Site und Kontaktfunnel:
   Blau #495bfd, Fläche #edf1fc, Eingabefelder grau. */

/* Webflow wickelt jedes Embed in .w-embed, im Flex-Container fällt das auf Breite 0. */
.brochure_form > .w-embed { width: 100%; min-width: 0; }

/* Die Scroll-Animation der Site (GSAP) setzt per JS erzeugten Elementen inline
   opacity 0 und einen Versatz. Im Formular gibt es nichts, das unsichtbar sein
   muss (Checkboxen werden per clip versteckt, nicht per opacity). */
#bse-root, #bse-root * { opacity: 1 !important; transform: none !important; }

#bse-root { width: 100%; color: #14163a; font-size: 16px; line-height: 1.45; }
#bse-root .bse-titel { margin: 0 0 10px; font-size: 28px; line-height: 1.15; letter-spacing: .25px; }
#bse-root .bse-intro { margin: 0 0 18px; color: #4a4d68; }
#bse-root .bse-empfohlen {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 100px;
  background: #edf1fc; color: #495bfd; font-size: 14px;
}

#bse-root .bse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; }
#bse-root .bse-feld.is-breit { grid-column: 1 / -1; }
#bse-root .bse-label { display: block; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 600; color: #14163a; }
#bse-root .bse-input {
  display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 13px 16px;
  border: 1.5px solid transparent; border-radius: 10px; background: #f2f3f7;
  font: inherit; color: inherit; outline: none; transition: border-color .15s ease, background .15s ease;
}
#bse-root textarea.bse-input { resize: vertical; min-height: 92px; }
#bse-root select.bse-input { appearance: auto; }
#bse-root .bse-input:focus { border-color: #495bfd; background: #fff; }
#bse-root .bse-input[aria-invalid="true"] { border-color: #d93a3a; }
#bse-root .bse-fehler { min-height: 0; margin-top: 4px; font-size: 13px; color: #d93a3a; }
#bse-root .bse-fehler:empty { display: none; }

#bse-root .bse-interessen { margin: 18px 0 14px; padding: 0; border: 0; }
#bse-root .bse-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#bse-root .bse-chip {
  position: relative; display: inline-flex; align-items: center; margin: 0; padding: 9px 16px;
  border: 1.5px solid #edf1fc; border-radius: 100px; background: #edf1fc; color: #495bfd;
  font-size: 15px; font-weight: 500; cursor: pointer; user-select: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
#bse-root .bse-chip-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#bse-root .bse-chip:has(.bse-chip-input:checked) { background: #495bfd; border-color: #495bfd; color: #fff; }
#bse-root .bse-chip:has(.bse-chip-input:focus-visible) { border-color: #14163a; }

#bse-root .bse-feld + .bse-consent, #bse-root .bse-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: 14px; color: #4a4d68; }
#bse-root .bse-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #495bfd; }
#bse-root .bse-consent a { color: #495bfd; text-decoration: underline; }

#bse-root .bse-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

#bse-root .bse-submit {
  display: block; width: 100%; box-sizing: border-box; margin: 18px 0 0; padding: 14px 25px;
  border: 0; border-radius: 100px; background: #495bfd; color: #fff;
  font: inherit; font-size: 18px; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
#bse-root .bse-submit:hover { background: #3647e6; }
#bse-root .bse-submit:disabled { background: #9aa4fb; cursor: default; }
#bse-root .bse-sendefehler { margin-top: 10px; }
#bse-root .bse-danke:focus { outline: none; }
#bse-root .bse-termin { margin-top: 8px; }

/* ---- Runde 2: Tipp-Formular (#bse-tipp) und Terminkarte (#bse-termin) ---- */
#bse-tipp, #bse-tipp *, #bse-termin, #bse-termin * { opacity: 1 !important; transform: none !important; }
#bse-tipp, #bse-termin { width: 100%; color: #14163a; font-size: 16px; line-height: 1.45; }
#bse-tipp .bse-abschnitt { margin: 22px 0 12px; font-size: 18px; line-height: 1.3; color: #495bfd; }
#bse-tipp .bse-abschnitt:first-child { margin-top: 0; }
#bse-tipp .bse-code { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-radius: 10px; background: #edf1fc; color: #495bfd; font-size: 15px; }

/* Gemeinsame Formular-Regeln aus Runde 1 auch für die neuen Container */
#bse-tipp .bse-titel, #bse-termin .bse-titel { margin: 0 0 12px; font-size: 28px; line-height: 1.15; letter-spacing: .25px; }
#bse-tipp .bse-intro, #bse-termin .bse-intro { margin: 0 0 18px; color: #4a4d68; }
#bse-tipp .bse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 16px; }
#bse-tipp .bse-feld.is-breit { grid-column: 1 / -1; }
#bse-tipp .bse-label { display: block; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 600; color: #14163a; }
#bse-tipp .bse-input {
  display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 13px 16px;
  border: 1.5px solid transparent; border-radius: 10px; background: #f2f3f7;
  font: inherit; color: inherit; outline: none; transition: border-color .15s ease, background .15s ease;
}
#bse-tipp textarea.bse-input { resize: vertical; min-height: 92px; }
#bse-tipp .bse-input:focus { border-color: #495bfd; background: #fff; }
#bse-tipp .bse-input[aria-invalid="true"] { border-color: #d93a3a; }
#bse-tipp .bse-fehler, #bse-termin .bse-fehler { margin-top: 4px; font-size: 13px; color: #d93a3a; }
#bse-tipp .bse-fehler:empty { display: none; }
#bse-tipp .bse-interessen { margin: 18px 0 14px; padding: 0; border: 0; }
#bse-tipp .bse-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#bse-tipp .bse-chip {
  position: relative; display: inline-flex; align-items: center; margin: 0; padding: 9px 16px;
  border: 1.5px solid #edf1fc; border-radius: 100px; background: #edf1fc; color: #495bfd;
  font-size: 15px; font-weight: 500; cursor: pointer; user-select: none;
}
#bse-tipp .bse-chip-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#bse-tipp .bse-chip:has(.bse-chip-input:checked) { background: #495bfd; border-color: #495bfd; color: #fff; }
#bse-tipp .bse-consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 2px; font-size: 14px; color: #4a4d68; }
#bse-tipp .bse-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #495bfd; }
#bse-tipp .bse-consent a, #bse-termin .bse-note a { color: #495bfd; text-decoration: underline; }
#bse-tipp .bse-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
#bse-tipp .bse-submit, #bse-termin .bse-submit {
  display: block; width: 100%; box-sizing: border-box; margin: 18px 0 0; padding: 14px 25px;
  border: 0; border-radius: 100px; background: #495bfd; color: #fff;
  font: inherit; font-size: 18px; text-align: center; text-decoration: none; cursor: pointer;
}
#bse-tipp .bse-submit:hover, #bse-termin .bse-submit:hover { background: #3647e6; }
#bse-tipp .bse-submit:disabled { background: #9aa4fb; cursor: default; }
#bse-tipp .bse-zweit { background: #edf1fc; color: #495bfd; }
#bse-tipp .bse-zweit:hover { background: #dfe5fb; }
#bse-tipp .bse-danke:focus { outline: none; }

/* Terminkarte (v5): Startzustand mittig in der weißen Kalenderkarte (.empf2_calbox) */
.empf2_calbox > .w-embed { width: 100%; min-width: 0; }
#bse-termin .bse-start { display: flex; flex-direction: column; align-items: center; max-width: 440px; margin: 0 auto; text-align: center; }
#bse-termin .bse-start-icon {
  display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin: 0 0 22px;
  border-radius: 22px; background: #edf1fc; color: #495bfd;
}
#bse-termin .bse-start-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #495bfd; }
#bse-termin .bse-start-titel { margin: 0 0 12px; font-size: 32px; line-height: 1.12; letter-spacing: .25px; color: #14163a; }
#bse-termin .bse-start-text { margin: 0; font-size: 17px; line-height: 1.5; color: #4a4d68; }
#bse-termin .bse-start .bse-submit { width: auto; min-width: 260px; margin-top: 26px; }
#bse-termin .bse-note { display: block; margin: 16px 0 0; font-size: 13px; line-height: 1.45; color: #6b6e86; }
#bse-termin .bse-start .bse-note { max-width: 380px; }
#bse-termin .bse-link { color: #495bfd; text-decoration: underline; }
#bse-termin .bse-cal { width: 100%; min-width: 280px; height: 700px; }
#bse-termin.is-kalender .bse-note { text-align: center; }
@media (max-width: 767px) {
  #bse-termin .bse-start-titel { font-size: 26px; }
  #bse-termin .bse-start .bse-submit { width: 100%; min-width: 0; }
  #bse-termin .bse-cal { height: 760px; }
}

/* ---- Runde 3: Kopier-Button am Textvorschlag (/empfehlen) ---- */
.bse-kopieren {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 22px;
  border: 0; border-radius: 100px; background: #495bfd; color: #fff;
  font: inherit; font-size: 16px; cursor: pointer; opacity: 1 !important; transform: none !important;
  transition: background-color .15s ease;
}
.bse-kopieren:hover { background: #3647e6; }
.bse-kopieren.is-kopiert { background: #1f9d6b; }
.bse-kopieren.is-kopiert::before { content: "✓"; }
