:root {
  --colorOrange: #d17749;
  --colorGreen: #39593e;
  --colorRed:  #bc002f;
  --colorBlue: #435961;
  --colorLightgreen: #a9d2c0;
  --colorHardblue: #29aae1;
      --colorAlexgreen: #7bdbb5;
      --colorklein: #7bdcb5;
      --colorgross: #862e24;
      --colorarbeit: #977571;
      --colormehr: #c3f1df;

}

.mainCalender {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}


#weekdays div {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: black;
}

.iconRoom {
  width: 100%;
  height: auto; /* was fixed 40px */
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2px;
  height: clamp(8px, 2vw, 16px);
}
.roomsLabel {
  font-size: 12px;
  color: var(--color-text-secondary, #888);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}



.introText {
    font-family: "Chau Philomene One", sans-serif;
  width: 100%;
  color: black;
  font-size: 26px;
text-align: center;
  
}

.roomSelectM {
  cursor: pointer;
  transition: background 0.15s, outline 0.15s;
}

.roomSelectM.roomSelected {
  background: rgba(0, 0, 0, 0.08); /* or whatever fits your design */
  outline: 2px solid currentColor;
  border-radius: 4px;
}


.iconDot {
  width: clamp(8px, 2vw, 16px);
  height: clamp(8px, 2vw, 16px);
  border-radius: 50%;
  background: white;
}

#weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: clamp(0.6rem, 1.5vw, 0.85rem);
  padding: 4px 0;
  gap: 2px;
}

#calender {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 8px;
  font-size: clamp(0.7rem, 2vw, 1rem);
  min-width: 0;
  background: white;
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);

}

.day:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
}

.tagselected {
  border: clamp(2px, 0.5vw, 5px) solid var(--colorAlexgreen);
  transition: all 200ms;
}

#headercalender {
  padding: 1rem 0;
}

.calenderContainerMain {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.roomSelect {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 24px;
  cursor: pointer;
  color: black  ;
  border: 0.5px solid #d0d0d0;
  transition: background 0.1s, border-color 0.1s;
  box-sizing: border-box;
  min-width: 180px;
  flex: 1 1 180px; /* grow, shrink, base width */
}

.roomSelect input[type="checkbox"] {
  display: none; /* hide the raw checkbox, interaction handled by the div */
}

.roomSelect:hover {
cursor: pointer;
}

.roomSelect p {
  color: black;
  margin: 0;
  padding: 0;
}

#roomSelector {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
    flex-wrap: wrap;
  gap: 10px;
padding-bottom: 1rem;

}

.innerHeader {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
}


.gross {
  background: var(--colorgross)
}

.klein {
  background: var(--colorklein);
}

.mittel {
  background: var(--colorarbeit);
}

.mehrzweck
{
  background: var(--colormehr);
}


.dayRooms
{
  width: 100%;
height: 25px;
  display: flex;


}

.room {
  width: 100%;
  height: 25px
}

.dayNumber {
  position: relative;
  height: auto; /* was fixed 60px — kills mobile */
  flex: 1;
  font-family: "Chau Philomene One", sans-serif;
  font-weight: 400;
  font-style: italic;
  color: black;
  font-size: clamp(2.4rem, 10vw, 26px);
  display: flex;
  align-items: center;
  justify-content: center;
}


#monthDisplay {
  font-size: clamp(1.2rem, 4vw, 2rem);
  text-align: center;
  flex: 1;
  color: black;
}

.selectedDaysCounter {
  flex: 1;
  font-size: clamp(0.8rem, 2vw, 1rem);
  white-space: nowrap;
  color: black;
}

.selectedFooter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 3rem 0;
}

.headVermietung {
  height: 200px;

  width: 100%;
  display: flex;
  justify-content: center;
flex-direction: column;
color: black;

}

.btnMonth {
  font-family: "Chau Philomene One", serif;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-secondary);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btnMonth:hover {
  background: var(--color-background-secondary);
  color: black;
  cursor: pointer;
  border-color: var(--color-border-primary);
}
.btnMonth:active { transform: scale(0.94); }

.dialogVermietung input, textarea {
  background: white;
  border: 1px solid black;
  padding: 10px;
  width: 100%;
}
.anfrageText {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 0.5px solid #d0d0d0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  height: 480px;
}


.dialogVermietung input:focus, textarea:focus {
  outline: none !important;
  border:1px solid var(--colorGreen);
  box-shadow: 0 0 10px #719ECE;
}



.sendenBtn {
  padding: 10px 20px 10px 20px;

  animation: AnimationName 2s ease forwards;
  background: linear-gradient(106deg, #55a685, #ffffff);
  background-size: 400% 400%;
  animation-play-state: paused;
}


@keyframes AnimationName {
  0%{background-position:0% 31%}
  50%{background-position:100% 70%}
  100%{background-position:0% 31%}
}

.sendenBtn:hover {
cursor: pointer;
  animation-play-state: running;   
}

.sendenBtn:not(:hover) {
  animation-play-state: paused;   
  background: linear-gradient(106deg, #55a685, #ffffff);
}


#anfrage {
  margin-top: 20px;
  width: 90%;
}

.formZeile {
  padding: 10px 0 10px 0;
}
.roomDot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}


.bgmehrzweck {
  background: var(--colormehr);
}

.bggross {
  background: var(--colorgross);
  color: white !important;
}
.bgmittel {
  background: var(--colorarbeit);
  color: white;
}
.bgklein {
  background: var(--colorklein);
}
.sendBtn {
  margin: 10px 0 10px 0;
}

.closeBtn {


width: 100%;

}
.closeContainer {
  width: 30px;
  height: 30px;

  position:sticky;
  top: 0;
  left: 95%;
}



.dialogVermietung input, textarea {
  background: white;
  border: 1px solid black;
  width: 100% !important;
  padding: 10px;
}

.dialogVermietung input:focus, textarea:focus {
  outline: none !important;
  border:1px solid var(--colorGreen);
  box-shadow: 0 0 10px #719ECE;
}

.sendenBtn {
  padding: 10px 20px 10px 20px;

  animation: AnimationName 2s ease forwards;
  background: linear-gradient(106deg, #55a685, #ffffff);
  background-size: 400% 400%;
  animation-play-state: paused;
}


@keyframes AnimationName {
  0%{background-position:0% 31%}
  50%{background-position:100% 70%}
  100%{background-position:0% 31%}
}

.sendenBtn:hover {
cursor: pointer;
  animation-play-state: running;   
}

.sendenBtn:not(:hover) {
  animation-play-state: paused;   
  background: linear-gradient(106deg, #55a685, #ffffff);
}



.formZeile {
  padding: 10px 0 10px 0;
}




.sendBtn {
  margin: 10px 0 10px 0;
}

.closeBtn {


width: 100%;

}
.closeContainer {
  width: 30px;
  height: 30px;

  position:sticky;
  top: 0;
  left: 95%;
}
.dialogVermietung {

  position: fixed;
padding: 0;
margin: 0;
justify-content: center;
align-items: center;
  /*max-width: 800px;*/
  width: 100%;
flex-direction: column;
    color: #222;
    border: 0;
background: none;
  
}
.dialogInnerBooking {
  width: 80%;
  background: blue;
}

.botCheck {
  display: none;
}

/*
dialog {
  transform: translateX(-1000px);
  opacity: 0;
}

dialog[open] {
  animation: fadein 500ms ease-out forwards;
}
*/
@keyframes fadein{
  0%{
      opacity: 0;
      transform: translateX(-1000px);
  }
  100%{
      opacity: 1;
      transform: translateX(0);

  }
}


.direktBtn {
        display: flex;
    justify-content: center;
    border-radius: 40px;
    font-size: 14px;
    background: #BC002F;
    padding: 12px 20px 12px 20px;
    color: white;
    border: 0;
    width: 220px;
    gap: 10px;
}

.direktBtnInverse {
    border-radius: 40px;
    font-size: 14px;
    width: 220px;
    display: flex;
    justify-content: center;
    gap: 10px;
    background: white;
    padding: 10px 20px 10px 20px;
    color: #BC002F;
    border: 1px solid #BC002F;
}

.direktBtn,
.direktBtnInverse {
  flex: 1 1 auto;
  min-width: 140px;
  width: auto;
  font-size: clamp(0.7rem, 2vw, 14px);
  padding: 10px 16px;
  box-sizing: border-box;
}

/* new dialog */

  dialog {
    width: clamp(300px, 80vw, 700px);
    border: 0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
  }

  dialog[open]::backdrop {
    background: rgba(0, 0, 0, 0.5);
  }

.dialogHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 0.5px solid #e0e0e0;
}

.dialogHeader h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}


.closeButton {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #888;
  padding: 4px;
  border-radius: 6px;
}
  .form-group {
    width: 100%;
    margin-bottom: 1rem;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    width: 100% !important;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
  }

.fullW {
width: 100% !important;
}

  textarea {
    height: 200px;
    resize: none;
  }

  .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
  }

  .checkbox-group input[type="checkbox"] {
    accent-color: #007a5a;
  }

  .color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
  }

  .green { background: #00a86b; }
  .blue { background: #29b6f6; }
  .orange { background: #ff7043; }
  .red { background: #d32f2f; }

  .sendButton {
    background: #b30838;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
    cursor: pointer;
    float: right;
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  .sendButton:hover {
    background: #a10733;
  }

/*

#raumDialog.raum-dialog {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: clamp(320px, 84vw, 920px) !important;
  max-width: 920px !important;
  padding: 32px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18) !important;
  z-index: 99999 !important;
  box-sizing: border-box !important;
}



#raumDialog[open].raum-dialog::backdrop {
  background: rgba(0,0,0,0.55) !important;
}

.filledDay {
  background: #C0C7C9;
  border: 5px solid #C0C7C9;
}

*/

.raum-dialog {
  border: 0.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 0;
  width: 480px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.raum-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.dialogHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 0.5px solid #e0e0e0;
}

.dialogHeader h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}

.closeButton {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #888;
  padding: 4px;
  border-radius: 6px;
}

.vermietungFormular {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.vermietungFormular input,
.vermietungFormular textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 0.5px solid #d0d0d0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.vermietungFormular input:focus,
.vermietungFormular textarea:focus {
  border-color: #888;
}

.vermietungFormular textarea {
  height: 80px;
  resize: vertical;
}


.vermietungFormular textarea {
  height: 80px;
  resize: vertical;
}

/* Room selector container */
.checkbox-group {
  border: 0.5px solid #d0d0d0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Individual room rows — add these classes in your JS */
.roomSelectM {
  display: flex;
  align-items: center !important;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: black;
  border: 0.5px solid #d0d0d0;
  transition: background 0.1s, border-color 0.1s;
  width: 100%;           /* fix: stretch full width */
  box-sizing: border-box; /* fix: prevent overflow from padding */
}
.roomSelectM .roomDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.roomSelectM .checkCircle {
  margin-left: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 0.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
}

.roomSelectM.roomSelected .checkCircle {
  border: none;
}

.checkCircle {
  min-width: 16px;
}

.sendButton {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  border: 0.5px solid #d0d0d0;
  background: white;
  transition: background 0.15s;
}


.sendButton:hover {
  background: #f5f5f5;
}


@media (max-width: 800px) {

#roomSelector { 
  flex-direction: column;
  align-items: stretch;
  height: auto;
  width: 100% !important;
padding: 0 1rem;
    margin: 0;
}

.roomSelect {
  width: 100%;
    padding: 8px 10px;
  font-size: 14px;
  max-height: fit-content;
}

  .mainCalender {
  padding: 1rem 1rem;
  }
}

@media (max-width: 600px) {
  .selectedFooter {
    flex-direction: column;
    align-items: stretch;
  }

  .introText {
    font-size: clamp(1rem, 4vw, 14px);
  }
  .day {
    padding: 6px;
  }



.dayNumber {
  font-size: clamp(0.8rem, 4vw, 2rem);
}
  .direktBtn,
  .direktBtnInverse {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .selectedDaysCounter {
    text-align: center;

  }
}

.form--loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Optional overlay */
.form-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.form-overlay.hidden {
  display: none;
}

.form-overlay .spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #ccc;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}


.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* States */
.form-status.success {
  color: #2e7d32;
}

.form-status.error {
  color: #c62828;
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: #333;
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;

  display: flex;
  align-items: center;
  gap: 8px;

  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.25s forwards;
}

.toast.success { background: #2e7d32; }
.toast.error   { background: #c62828; }
.toast.loading { background: #555; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* spinner */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}