/* ============================================================
   LB Rückrufbitte – lb-rueckrufbitte.css (clean)
   - bereinigt, sortiert, ohne Funktions-/Layoutänderung
   ============================================================ */

:root {
  --lb-gold: #8b6e33;
  --lb-bg: var(--libitina-bg, #F6F4EE);
  --lb-text: var(--libitina-text, #111);
  --lb-shadow: 0 14px 40px rgba(0,0,0,.22);
  --lb-header-h: 78px;
}

html.lb-rueckruf-open,
html.lb-rueckruf-open body {
  overflow: hidden;
}

.lb-rueckruf-wrap {
  --lb-gold: #8b6e33;
}

.lb-rueckruf-wrap .lb-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  transform: none !important;
  accent-color: var(--lb-gold) !important;
}

.lb-rueckruf-wrap .lb-privacy label {
  align-items: center;
}

.lb-fab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  border: 1px solid rgba(0,0,0,.06);
  background: var(--lb-gold);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  -webkit-tap-highlight-color: transparent;
}

.lb-fab-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(202,165,104,.25), 0 8px 20px rgba(0,0,0,.18);
}

.lb-fab-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.lb-fab-callback {
  padding: 0 16px;
  border-radius: 16px 16px 0 0;
}

.lb-fab-text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
}

.lb-fab-top {
  width: 46px;
  padding: 0;
  border-radius: 14px 14px 0 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.lb-fab-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lb-rueckruf-fab .lb-fab-btn {
  height: 34px !important;
}

.lb-rueckruf-fab .lb-fab-callback {
  padding: 0 12px !important;
  border-radius: 14px 14px 0 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.lb-rueckruf-fab .lb-fab-ico {
  width: 16px !important;
  height: 16px !important;
}

.lb-rueckruf-fab .lb-fab-text {
  font-size: 13px !important;
  line-height: 1 !important;
}

.lb-rueckruf-fab .lb-fab-callback .lb-fab-ico {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.lb-rueckruf-fab .lb-fab-callback .lb-fab-ico svg {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
  transform: translateY(-2px) !important;
}

.lb-rueckruf-fab .lb-fab-callback .lb-fab-text {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  transform: translateY(-2px) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.lb-rueckruf-fab {
  position: fixed;
  right: 16px;
  bottom: -6px;
  z-index: 9999;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.lb-rueckruf-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9998;
  opacity: 0;
  transition: opacity .2s ease;
}

.lb-rueckruf-backdrop.is-open {
  opacity: 1;
}

.lb-rueckruf-panel {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  bottom: 0;
  width: min(1180px, calc(100% - 32px));
  background: var(--lb-bg);
  color: #111;
  border: 2px solid var(--lb-gold);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: var(--lb-shadow);
  z-index: 9999;
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
  overflow: hidden;
}

.lb-rueckruf-panel.is-open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.lb-rueckruf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
}

.lb-rueckruf-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .2px;
}

.lb-rueckruf-close {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lb-rueckruf-close span {
  display: inline-block;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  transform: translateY(-1px);
}

.lb-rueckruf-body {
  padding: 14px 14px 16px 14px;
  max-height: calc(86vh - 62px);
  overflow: auto;
  padding-bottom: 16px !important;
}

.lb-rueckruf-info {
  margin: 0 0 12px 0;
  color: rgba(0,0,0,.75);
  font-size: 14px;
  font-weight: 650;
}

.lb-field input,
.lb-field select,
.lb-rueckruf-form textarea {
  width: 100%;
  height: 42px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  color: #111;
  outline: none;
}

.lb-rueckruf-form textarea {
  height: auto;
  min-height: 84px;
  resize: vertical;
}

.lb-field input:focus,
.lb-field select:focus,
.lb-rueckruf-form textarea:focus {
  border-color: var(--lb-gold);
  box-shadow: 0 0 0 3px rgba(202,165,104,.18);
}

.lb-rueckruf-form .lb-privacy {
  margin-top: 14px;
}

.lb-rueckruf-form .lb-privacy label {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

.lb-rueckruf-form .lb-privacy input[type="checkbox"] {
  margin: 0;
  transform: translateY(-1px);
}

.lb-branches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.lb-branch-info-col {
  width: 72px;
}

.lb-branch-info-btn {
  width: 72px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: var(--lb-gold);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
  white-space: nowrap;
}

.lb-branch-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: end;
}

.lb-branch-details-btn {
  align-self: stretch;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(202,165,104,.95);
  background: #8b6e33;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.lb-branch-details-btn:hover {
  filter: brightness(0.95);
}

.lb-branch-btncol {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lb-branch-btnlabel {
  display: block;
  height: 22px;
  visibility: hidden;
  margin: 0 0 6px 0;
}

.lb-fieldset {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px 0;
  background: rgba(255,255,255,.55);
}

.lb-fieldset legend {
  padding: 0 8px;
  color: rgba(0,0,0,.78);
  font-size: 13px;
  font-weight: 800;
}

.lb-radio {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #111;
  font-weight: 700;
}

.lb-radio input {
  accent-color: var(--lb-gold);
}

.lb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lb-field label {
  display: block;
  font-size: 13px;
  color: rgba(0,0,0,.78);
  margin: 0 0 6px 0;
  font-weight: 800;
}

.lb-req {
  color: #111;
  margin-left: 2px;
}

.lb-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.lb-submit {
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: var(--lb-gold);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}

.lb-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.lb-status {
  font-size: 13px;
  color: rgba(0,0,0,.8);
  font-weight: 700;
}

.lb-status.is-error {
  color: #b00020;
}

.lb-status.is-success {
  color: #0b6b2f;
}

.lb-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.lb-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: rgba(0,0,0,.85);
  font-weight: 650;
}

.lb-check input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 2px 0 0 0;
  accent-color: var(--lb-gold);
}

#lb-message {
  height: 40px;
}

.lb-privacy-link {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lb-privacy-link:hover {
  color: #111;
  text-decoration-thickness: 2px;
}

.lb-actions--sticky {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px 14px 14px;
  background: var(--lb-bg);
  border-top: 1px solid rgba(0,0,0,.10);
  margin-top: 12px;
}

.lb-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.lb-actions--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.lb-actions--stack .lb-status {
  margin-top: -4px;
}

.lb-honey {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.lb-grid-branch {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.lb-field input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  height: 42px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  color: #111;
  outline: none;
}

.lb-privacy input[type="checkbox"] {
  padding: 0 !important;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
  transform: none !important;
  width: 18px;
  height: 18px;
  margin: 0 10px 0 0;
  accent-color: var(--lb-gold);
}

.lb-privacy-label {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (hover:hover) {
  .lb-rueckruf-close:hover {
    border-color: var(--lb-gold);
    box-shadow: 0 0 0 3px rgba(202,165,104,.18);
  }

  .lb-submit:hover {
    filter: brightness(0.98);
  }

  .lb-branch-info-btn:hover {
    border-color: var(--lb-gold);
    box-shadow: 0 0 0 3px rgba(202,165,104,.18);
    filter: brightness(.98);
  }
}

@media (max-width: 640px) {
  .lb-grid {
    grid-template-columns: 1fr;
  }

  .lb-rueckruf-panel {
    border-left: 0 !important;
    border-right: 0 !important;
    max-height: calc(100vh - var(--lb-header-h) - 16px);
    top: var(--lb-header-h, 76px);
    bottom: 0;
    height: auto;
    border-radius: 0;
    left: 0;
    width: 100%;
    transform: translateY(16px);
  }

  .lb-rueckruf-panel.is-open {
    transform: translateY(0);
  }

  .lb-rueckruf-body {
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - var(--lb-header-h) - 16px - 62px);
    padding-bottom: 170px;
    height: calc(100vh - var(--lb-header-h, 76px) - 50px);
    overflow: auto;
    padding: 12px 12px 14px 12px;
  }

  .lb-rueckruf-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .lb-rueckruf-close span {
    font-size: 20px;
    line-height: 1;
    display: block;
    transform: translateY(-1px);
  }

  .lb-grid--mobile-1col {
    grid-template-columns: 1fr !important;
  }

  .lb-actions--sticky {
    padding-bottom: 16px;
  }

  .lb-submit {
    width: 100%;
    justify-content: center;
  }

  .lb-status {
    width: 100%;
  }

  .lb-rueckruf-head {
    padding: 8px 10px;
  }

  .lb-rueckruf-title {
    font-size: 14px;
  }

  .lb-branch-info-col {
    width: 62px;
  }

  .lb-branch-info-btn {
    width: 62px;
  }

  .lb-branch-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .lb-branch-details-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .lb-rueckruf-form .lb-privacy {
    margin-top: 16px;
  }

  .lb-branch-row {
    row-gap: 6px;
  }
}

/* ==========================================================================
   Filialdetails – negativer Abstand, aber ohne Select zu blockieren
   ========================================================================== */

.lb-branch-btncol{
  margin-top: -30px;
  margin-bottom: 8px;

  /* Wichtig: Container darf keine Klicks abfangen */
  pointer-events: none;
}

#lb-branch-details-btn,
.lb-branch-details-btn{
  /* Button selbst bleibt klickbar */
  pointer-events: auto;

  /* Sicher über dem Hintergrund, aber ohne den Select zu blocken */
  position: relative;
  z-index: 2;
}




@media (max-width: 899px) {
  .lb-rueckruf-panel {
    height: 36vh;
    max-height: 520px;
    min-height: 340px;
  }

  .lb-rueckruf-body {
    padding: 14px 14px 16px 14px;
    height: calc(100% - 62px);
    overflow: auto;
  }
}

@media (min-width: 769px) {
  .lb-branch-row {
    margin-bottom: 18px;
  }
}

@media (min-width: 900px) {
  .lb-rueckruf-panel {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
  }

  .lb-rueckruf-body {
    padding: 14px 14px 16px 14px;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .lb-rueckruf-body,
  .lb-rueckruf-form {
    flex: none !important;
  }
}

/* ============================================================
   99) Kleine kosmetische Anpassungen (nur Abstände/Farben)
   ============================================================ */

/* Filialdetails Button: gleiche Goldfarbe wie Primary */
.lb-branch-details-btn{
  background: var(--lb-gold);
  border-color: var(--lb-gold);
  color: #fff;
}
.lb-branch-details-btn:hover{
  filter: brightness(0.95);
}

/* Datenschutz: etwas mehr Luft nach oben + saubere Ausrichtung */
.lb-privacy{
  margin-top: 18px;
}
.lb-privacy label{
  gap: 6px;
  align-items: center;
}
.lb-privacy input[type="checkbox"]{
  margin: 0;
}

/* Desktop: etwas mehr Abstand zwischen Filiale-Zeile und Anrede */
.lb-branch-row{
  margin-bottom: 12px;
}

/* Mobil: Button näher an Select, aber mit Luft zur nächsten Zeile */
@media (max-width: 768px){
  .lb-branch-details-btn{
    margin-top: 8px;
    margin-bottom: 10px;
    background: var(--lb-gold);
    border-color: var(--lb-gold);
  }
  .lb-branch-row{
    margin-bottom: 8px;
  }
}

/* ==========================================================================
   Mobile: Panel wieder vollflächig (unter Header bis unten)
   ========================================================================== */
@media (max-width: 820px){

  .lb-rueckruf-panel{
    /* volle Breite */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;

    /* volle Höhe unter dem Header */
    top: var(--lb-header-h, 88px) !important;
    bottom: 0 !important;
    height: calc(100dvh - var(--lb-header-h, 88px)) !important;
    max-height: none !important;

    /* Desktop-Positionierung/Transform zurücksetzen */
    transform: translateY(16px) !important;

    /* Optik */
    border-radius: 14px 14px 0 0 !important;
  }

  .lb-rueckruf-panel.is-open{
    transform: translateY(0) !important;
  }
}


/* =========================================================
   Rückrufbitte – stabile 2-Spalten-Felder
   Fix für PageSpeed / async CSS
   ========================================================= */

.lb-rueckruf-form .lb-grid{
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

/* Nachname + Telefon exakt gleich breit */
.lb-rueckruf-form .lb-field{
  min-width: 0;
}

/* Telefonfeld NICHT künstlich begrenzen */
.lb-rueckruf-form .input-lb-phone{
  max-width: none !important;
}

/* Einheitliche, stabile Höhe */
.lb-rueckruf-form input:not([type="checkbox"]):not([type="radio"]),
.lb-rueckruf-form select{
  height: 44px;
  line-height: 1.2;
  padding: 10px 12px;
  font-size: 16px;
  box-sizing: border-box;
}

/* =========================================================
   FIX: Filialdetails-Button vertikal mittig zum Select
   ========================================================= */

/* Desktop/Tablet: sauber mittig, kein negativer Versatz */
.lb-branch-row{
  align-items: center;
}

.lb-branch-btncol{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: auto; /* sicherheitshalber */
}

.lb-branch-details-btn{
  align-self: center;
}

/* Mobile: falls du den Button näher ans Select ziehen wolltest,
   dann nur hier (optional, moderat statt -30px) */
@media (max-width: 768px){
  .lb-branch-btncol{
    margin-top: -8px !important;
    margin-bottom: 8px !important;
  }
}

/* =========================================================
   Feinjustierung: Filialdetails-Button minimal nach oben
   ========================================================= */

.lb-branch-details-btn{
  position: relative;
  top: -3px;
}
