/* Terminbuchungs-Widget — gemeinsame Stile
 *
 * Eine Quelle fuer /tradeshows, Startseite und Kontaktseite.
 * Wortgleich aus tradeshows/index.html ausgelagert (Etappe 4d, 09.08.2026),
 * damit sich dort optisch nichts aendert.
 *
 * Setzt die Variablen aus styles.css voraus (--muted, --serif) sowie .btn.
 */


.booking-open-row{
  margin-top:22px;
  display:flex;
  justify-content:center;
}
.booking-inline-success{
  display:none;
  margin:22px auto 0;
  max-width:820px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(191,255,195,.30);
  background:rgba(80,255,130,.08);
  color:#bfffc3;
  line-height:1.6;
  text-align:center;
  font-weight:700;
}
.booking-inline-success.is-visible{
  display:block;
}
.booking-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(8px);
}
.booking-modal.is-open{
  display:flex;
}
.booking-modal-panel{
  width:min(1080px, 100%);
  max-height:min(88vh, 900px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.14);
  border-radius:28px;
  background:#070707;
  box-shadow:0 30px 120px rgba(0,0,0,.72);
  position:relative;
  padding:24px;
}
.booking-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.04);
  color:#fff;
  cursor:pointer;
  font-size:24px;
  line-height:1;
}
.booking-modal-head{
  text-align:center;
  max-width:760px;
  margin:0 auto 22px;
  padding:0 46px;
}
.booking-modal-head h3{
  font-family:var(--serif);
  font-size:clamp(32px,4vw,48px);
  line-height:1.05;
  margin:0 0 8px;
}
.booking-modal-head p{
  color:var(--muted);
  line-height:1.65;
  margin:0;
}
.booking-month-nav{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin:12px 0 20px;
  flex-wrap:wrap;
}
.booking-month-tab{
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(255,255,255,.035);
  color:#fff;
  padding:10px 14px;
  cursor:pointer;
  font:inherit;
  font-weight:700;
}
.booking-month-tab.is-active{
  background:#fff;
  color:#000;
  border-color:#fff;
}
.booking-calendar-layout{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:18px;
  align-items:start;
}
.booking-calendar{
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  background:rgba(255,255,255,.025);
  padding:16px;
}
.booking-weekdays,
.booking-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}
.booking-weekdays{
  margin-bottom:8px;
  color:#8fb8ff;
  font-size:12px;
  font-weight:800;
  text-align:center;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.booking-day-btn{
  min-height:54px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.035);
  color:#fff;
  cursor:pointer;
  font:inherit;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}
.booking-day-btn:hover:not(:disabled),
.booking-day-btn.is-selected{
  background:#fff;
  color:#000;
  border-color:#fff;
}
.booking-day-btn:disabled{
  opacity:.28;
  cursor:not-allowed;
}
.booking-day-btn.has-slots:after{
  content:"";
  position:absolute;
  bottom:7px;
  left:50%;
  transform:translateX(-50%);
  width:5px;
  height:5px;
  border-radius:999px;
  background:#8fb8ff;
}
.booking-day-btn.is-selected:after{
  background:#000;
}
.booking-day-empty{
  min-height:54px;
}
.booking-side{
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  background:rgba(255,255,255,.025);
  padding:16px;
  min-height:280px;
}
.booking-side-title{
  color:#d7e6ff;
  font-weight:900;
  margin-bottom:12px;
  text-align:center;
}
.booking-side-empty{
  color:var(--muted);
  line-height:1.6;
  text-align:center;
  padding:30px 10px;
}
.booking-time-slots{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}
.booking-slot{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.04);
  color:#fff;
  border-radius:999px;
  padding:9px 12px;
  cursor:pointer;
  font:inherit;
  font-size:14px;
}
.booking-slot:hover,
.booking-slot.is-selected{
  background:#fff;
  color:#000;
  border-color:#fff;
}
.booking-form{
  margin-top:18px;
  border-top:1px solid rgba(255,255,255,.10);
  padding-top:18px;
  display:none;
}
.booking-form.is-open{
  display:block;
}
.booking-selected{
  margin-bottom:14px;
  color:#d7e6ff;
  font-weight:800;
  text-align:center;
}
.booking-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.booking-field label{
  display:block;
  margin:0 0 7px;
  font-size:13px;
  color:#fff;
}
.booking-field input,
.booking-field textarea{
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  background:#fff;
  color:#000;
  padding:12px;
  font-size:14px;
  outline:none;
}
.booking-field textarea{
  min-height:92px;
  resize:vertical;
}
.booking-actions{
  margin-top:16px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}
.booking-note{
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
  text-align:center;
  margin-top:12px;
}
.booking-result{
  display:none;
  margin-top:14px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  line-height:1.55;
  text-align:center;
}
.booking-result.ok{
  color:#bfffc3;
  border-color:rgba(191,255,195,.28);
  background:rgba(80,255,130,.08);
}
.booking-result.err{
  color:#ffb6b6;
  border-color:rgba(255,182,182,.30);
  background:rgba(255,80,80,.08);
}
body.booking-modal-open{
  overflow:hidden;
}
@media(max-width:900px){
  .booking-calendar-layout{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .booking-modal{
    padding:10px;
  }
  .booking-modal-panel{
    max-height:92vh;
    padding:16px;
    border-radius:22px;
  }
  .booking-modal-head{
    padding:0 42px 0 0;
    text-align:left;
  }
  .booking-calendar{
    padding:12px;
  }
  .booking-weekdays,
  .booking-calendar-grid{
    gap:5px;
  }
  .booking-day-btn,
  .booking-day-empty{
    min-height:42px;
    border-radius:12px;
    font-size:13px;
  }
  .booking-grid{
    grid-template-columns:1fr;
  }
}


/* PATCH BOOKING CTA CLEANUP: remove redundant contact CTA */
#termin .booking-open-row{
  margin-top:26px;
}
#termin .booking-open-row .btn{
  min-width:190px;
}


/* Rahmen um das Widget auf Startseite und Kontaktseite.
   Auf /tradeshows kommen die entsprechenden Stile aus der Seite selbst. */
.booking-block-note{
  margin:10px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
  opacity:.85;
}
.booking-inline-cta{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}
.booking-inline-cta p{
  margin:0;
}
/* Links buendig statt zentriert — der Hinweis steht neben dem Formular,
   nicht als Abschluss einer Sektion. */
.booking-inline-cta .booking-open-row{
  margin-top:10px;
  justify-content:flex-start;
}
