/* FullCalendar */
.fc-col-header-cell-cushion {
    color: black;
}
.fc-event-past {
    opacity: 0.4; 
}
.fc-event-future.slot-available {
    cursor: pointer;
}
.fc-event-future.slot-booked {
    
}
.fc-timegrid-event .fc-event-time {
    line-height: 100%;
}
.fc-scrollgrid-section-header .fc-scroller {
    overflow: hidden !important;
}

/* PtBooking */
.tx-pt-booking > .container {
    padding-left: 0px; 
    padding-right: 0px;
}

.booking-form .form-group {
    display: flex;
    flex-direction: column; /* Labels über Inputs */
    margin-bottom: 15px;
}

/* Inputs und Textareas
.booking-form input,
.booking-form textarea {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
} */
/* Input Fokus 
.booking-form input:focus,
.booking-form textarea:focus {
    box-shadow: 0 0 2px rgba(0, 123, 255, 0.5);
}*/


.booking-calendar {
    min-height: 550px;
    margin-bottom: 40px;
}
.booking-overlay {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none; /* Startet als unsichtbar */
  justify-content: center;
  align-items: center;
}

.booking-overlay-content {
  position: relative;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  z-index: 100;
  width: 500px; 
  max-width: 95%;
}

.booking-overlay-content-ajax {
    max-height: 90vh;
}

.booking-overlay-content .booking-form-container {
    max-height: 90vh;
    overflow-y: auto;
}

/* Overlay schließt‑Button */
.overlay-close{
  position:absolute;          /* oben rechts in der Box */
  top:0.5rem;
  right:0.5rem;
  z-index:2;
  padding-top: 0px;
  padding-right: 6px;
  border:none;
  background:transparent;
  font-size:2rem;             /* schönes großes ×‑Zeichen */
  line-height:1;
  cursor:pointer;

  color:#666;
  transition:color .2s ease;
}
.overlay-close:hover,
.overlay-close:focus{
  color:#000;
}

/* Form */
/*.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:1rem;
}
.form-field{
  display:flex;
  flex-direction:column;
} */

.booking-form-container .form-field { 
    min-height: unset;
}

/* === Grundlayout ======================================================= */
.booking-form-container{
  max-width:420px;               /* Gesamte Breite beschränken */
  margin:auto;                   /* in der Mitte zentrieren */
  padding-bottom:1.5rem;
}

/* === Überschrift / Datum ============================================== */
.booking-form-container h3{
  margin:0 0 .25rem 0;
  font-size:1.25rem;
}
.booking-form-container h3 b {
  color:#666;
  font-weight:500;
  display:block;
  margin-bottom:1rem;
}

/* === Flex‑Grid für Felder ============================================= */
.booking-form-container form{
    display:grid;
    gap: 6px;
}

/* Zwei‑Spalten‑Layout nur für die Zeitfelder */
.time-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}

/* === Einzelnes Feld ==================================================== */
.form-field{
  display:flex;
  flex-direction:column;
}
.form-field label{
  margin-bottom:.25rem;
  color:#333;
}


/* === Inputs / Selects ================================================== */
.booking-form-container input[type="text"],
.booking-form-container input[type="password"],
.booking-form-container input[type="email"],
.booking-form-container select{
  padding:.5rem .75rem;
  border:1px solid #ccc;
  border-radius:.5rem;
  font-size:1rem;
}
.booking-form-container input[type="text"]:focus,
.booking-form-container select:focus{
  outline:none;
  border-color:#0077c8;
  box-shadow:0 0 0 2px rgba(0,119,200,.2);
}
.booking-form-container label.booking-terms p {
    line-height: 150%;
}
.booking-form-container .checkbox-wrapper {
    display: flex; 
    align-items: flex-start; 
    gap: 14px;
    margin-top: 10px;
}
.booking-form-container .checkbox-wrapper  input[type="checkbox"] {
    margin-left: 2px;
    margin-top: 10px;
}

.booking-resources-filter {
   
}
.booking-resources-filter-info {
    margin-bottom: 30px;
    min-height: 270px;
    display: none;
}


.booking-resources-filter-info.active {
    display: block;
}
.booking-resources-filter-info > .container {
    padding-left: 0px; 
    padding-right: 0px;
}
.booking-resources-filter .button {
    margin-top: 2px; 
    margin-bottom: 2px;
}

/* === Submit‑Button ===================================================== */
/*
.booking-form-container input[type="submit"]{
  margin-top:.5rem;
  padding:.65rem 1.25rem;
  border:none;
  color:#fff;
  border-radius:.5rem;
  font-size:1rem;
  cursor:pointer;
  transition:background .2s ease;
}
.booking-form-container input[type="submit"]:hover{
  background:#005d9f;
}
*/
/* === Mobile Optimierung =============================================== */
@media (max-width:480px){
  .time-row{
    grid-template-columns:1fr;   /* übereinander unter 480 px */
  }
}

.booking-error-message {
    color: red; 
    font-weight: bold; 
}
.booking-success-message, .booking-success-message p {
    color: green; 
    font-weight: bold;
}


.booking-preview-image {
    max-width: 100% !important;
    height: auto;
}

.booking-resource-show {
    padding-top: 20px;
    padding-bottom: 20px;
}

.booking-resource-show:nth-child(odd) {
    /*background-color: #ffffff;  Weiß für gerade */
}

.booking-resource-show:nth-child(odd) {
    
    background-color: #f0f0f0; /* Hellgrau für ungerade */
}

.resource-technical-details .col-sm-2 {
    padding-bottom: 6px;
}
.resource-technical-details .col-sm-10 {
    padding-bottom: 6px;
}
.resource-technical-details .col-sm-2 {
    word-break: break-word;
}

.booking-watchlist-item {
    margin-bottom: 20px;
    
}


/* === Overwrites =============================================== */
.tx-pt-booking table {
    border-spacing: 0px !important;
}


@media (max-width: 768px) {
    .fc .fc-toolbar {
        flex-flow: wrap;
    }
    
    .fc .fc-toolbar *:first-child {
        flex: 0 0 100%; /* nimmt volle Breite */
        width: 100%;    /* fallback */
    }
    
    .fc .fc-prev-button, .fc .fc-next-button {
        max-width: 50px;
    }
    
    
}

@media (max-width: 400px) {
    .header-inner {
        padding-top: 4px;
        align-items: flex-start;
    }
    .login-nav {
        margin-left: 0px;
    }
    .login-nav a:first-child {
        margin-left: 0px;
    }
    .logo {
        top: 30px;
    }
    .background-slider .slide {
        background-size: contain;
    }
}
