.bf-schulanfragen {
  --bf-bg: #ffffff;
  --bf-border: rgba(0, 0, 0, 0.08);
  --bf-text: #1b1f24;
  --bf-muted: #5b6470;
  --bf-primary: #1e7df1;
  --bf-primary-2: #0d5bd7;
  --bf-ok: #1f8a4c;
  --bf-warn: #b46a00;
  --bf-err: #b42318;
  --bf-radius: 14px;
  color: var(--bf-text);
}

.bf-schulanfragen__card {
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius);
  box-shadow: 0 12px 35px rgba(16, 24, 40, 0.12);
  padding: 22px;
}

.bf-schulanfragen__header {
  margin-bottom: 14px;
}

.bf-schulanfragen__title {
  margin: 0 0 6px 0;
  font-size: 24px;
  line-height: 1.2;
}

.bf-schulanfragen__subtitle {
  margin: 0;
  color: var(--bf-muted);
}

.bf-schulanfragen__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 14px;
}

.bf-schulanfragen__grid--groups {
  margin-top: 14px;
  align-items: start;
}

.bf-group {
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.55);
  padding: 14px;
  margin: 0;
}

.bf-group__legend {
  font-weight: 800;
  padding: 0 8px;
  color: #0f172a;
}

.bf-group__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 10px;
}

.bf-group__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bf-field--full {
  grid-column: 1 / -1;
}

.bf-field__label {
  display: block;
  font-weight: 650;
  margin-bottom: 6px;
}

.bf-field__hint {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: var(--bf-muted);
}

.bf-field__input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  padding: 12px 12px;
  background: #fff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

/* iOS/Safari: Select-Text wird sonst manchmal vertikal abgeschnitten */
select.bf-field__input {
  min-height: 48px;
  line-height: 1.2;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 42px; /* Platz für Pfeil */
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15, 23, 42, 0.55) 50%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.bf-field__input:focus {
  outline: none;
  border-color: rgba(30, 125, 241, 0.6);
  box-shadow: 0 0 0 4px rgba(30, 125, 241, 0.14);
}

.bf-field__textarea {
  min-height: 120px;
  resize: vertical;
}

.bf-field__error {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: var(--bf-err);
  min-height: 18px;
}

.bf-divider {
  margin: 16px 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.bf-fieldset {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  background: rgba(248, 250, 252, 0.6);
}

.bf-fieldset--inline {
  margin: 0;
}

.bf-fieldset__legend {
  font-weight: 700;
  padding: 0 6px;
}

.bf-fieldset__text {
  margin: 8px 0 10px 0;
  color: var(--bf-muted);
  font-size: 14px;
}

.bf-choice {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.bf-choice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.bf-availability {
  margin-top: 10px;
}

.bf-availability__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  font-weight: 650;
  font-size: 13px;
}

.bf-availability__pill[data-kind="ok"] {
  border-color: rgba(31, 138, 76, 0.25);
  background: rgba(31, 138, 76, 0.08);
  color: var(--bf-ok);
}

.bf-availability__pill[data-kind="warn"] {
  border-color: rgba(180, 106, 0, 0.25);
  background: rgba(180, 106, 0, 0.08);
  color: var(--bf-warn);
}

.bf-availability__pill[data-kind="error"] {
  border-color: rgba(180, 35, 24, 0.25);
  background: rgba(180, 35, 24, 0.08);
  color: var(--bf-err);
}

.bf-availability__pill[data-kind="loading"] {
  border-color: rgba(30, 125, 241, 0.25);
  background: rgba(30, 125, 241, 0.08);
  color: var(--bf-primary-2);
}

.bf-availability__alts {
  margin-top: 10px;
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.14);
  border-radius: 12px;
  padding: 12px;
}

.bf-availability__alts-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.bf-availability__alts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bf-alt {
  border: 1px solid rgba(30, 125, 241, 0.35);
  background: rgba(30, 125, 241, 0.08);
  color: var(--bf-primary-2);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 650;
  cursor: pointer;
}

.bf-alt:hover {
  background: rgba(30, 125, 241, 0.14);
}

.bf-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.bf-btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: linear-gradient(180deg, #2f8cff 0%, #0a63e6 100%);
  color: #fff;
  cursor: pointer;
  min-width: 180px;
  box-shadow:
    0 10px 24px rgba(10, 99, 230, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(0);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  position: relative;
  overflow: hidden;
}

.bf-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.45), transparent 45%),
    radial-gradient(circle at 80% 120%, rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0.95;
  pointer-events: none;
}

.bf-btn:hover {
  transform: translateY(-0.5px);
  filter: brightness(1.02) saturate(1.02);
  box-shadow:
    0 12px 28px rgba(10, 99, 230, 0.32),
    0 3px 8px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.40);
}

.bf-btn:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.98) saturate(0.98);
  box-shadow:
    0 8px 18px rgba(10, 99, 230, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.bf-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(47, 140, 255, 0.22),
    0 12px 28px rgba(10, 99, 230, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.bf-btn[disabled],
.bf-btn[data-loading="1"] {
  opacity: 0.75;
  cursor: not-allowed;
}

.bf-actions__status {
  font-weight: 600;
  color: var(--bf-muted);
}

.bf-actions__status[data-type="ok"] {
  color: var(--bf-ok);
}
.bf-actions__status[data-type="error"] {
  color: var(--bf-err);
}

.bf-hp {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.bf-modal[hidden] {
  display: none !important;
}

.bf-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}

.bf-modal__dialog {
  position: relative;
  max-width: 560px;
  width: min(560px, 100%);
  margin: 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  padding: 18px;
  outline: none;
}

.bf-modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 138, 76, 0.12);
  color: var(--bf-ok);
  font-weight: 900;
  margin-bottom: 10px;
}

.bf-modal__title {
  margin: 0 0 6px 0;
  font-size: 20px;
}

.bf-modal__desc {
  margin: 0 0 14px 0;
  color: var(--bf-muted);
  line-height: 1.45;
}

.bf-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.bf-btn--ghost {
  background: rgba(2, 6, 23, 0.06);
  color: var(--bf-text);
  min-width: 140px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

@media (max-width: 760px) {
  .bf-schulanfragen__grid {
    grid-template-columns: 1fr;
  }
  .bf-group__grid--3 {
    grid-template-columns: 1fr;
  }
  .bf-actions {
    grid-template-columns: 1fr;
  }
  .bf-btn {
    width: 100%;
  }

  .bf-modal {
    padding: 14px;
  }
}

