/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.apartment-booked-list {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.apartment-booked-list li {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 0;
  font-size: 14px;
  color: #721c24;
}

#calendar-container {
  max-width: 320px;
  margin: 1em 0;
  font-family: sans-serif;
}
.calendar-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5em;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day, .calendar-header {
  text-align: center;
  padding: 6px;
}
.calendar-day {
  border: 1px solid #ddd;
  border-radius: 0;
}
.calendar-day.free {
  cursor: pointer;
}
.calendar-day.booked {
  background: #f8d7da;
  color: #721c24;
  cursor: not-allowed;
}

.calendar-day.disabled {
  background: #f0f0f0;
  color: #999;
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}
.calendar-header {
  font-weight: bold;
  background: #f0f0f0;
}

.apartment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 1em;
}

.apartment-card {
  border: 1px solid #eee;
  border-radius: 0;
  padding: 16px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apartment-card img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.apartment-card .button {
  background: #0073aa;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 0;
  text-decoration: none;
  display: inline-block;
}

/* Für fade-in Effekt des Buchungshinweises */
#booking-summary {
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#booking-summary.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Für markierte Tage (Zeitraum nach Klick) */
.calendar-day.selected {
  background-color: #cce5ff;
  border: 1px solid #66afe9;
  color: #004085;
  border-radius: 0;
}

/* Hover für klickbare Tage */
.calendar-day.free:hover {
  background-color: #eef5ff;
  cursor: pointer;
}

.raum-img img {
  object-fit: cover;
  width: 100%;
  max-height: 800px;
}

.raum-einzelansicht {
width: 80%;
margin: 4% auto 0 auto;
}

.einzelansicht-content {
display: flex;
justify-content: space-evenly;
}

span.wpcf7-form-control-wrap.raum input {
pointer-events: none;
}

span.wpcf7-form-control-wrap.raum {
opacity: 0.2;
}

.raum-liste {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
gap: 2rem;
margin-top: 2rem;
}

.raum-box {
border: 0px solid #ddd;
padding: 1.5rem;
border-radius: 0;
background-color: #c8d5b5;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
transition: transform 0.2s ease;
}

.raum-box:hover {
transform: translateY(-4px);
}

.raum-box img {
max-width: 100%;
width: 100%;
height: auto;
margin-bottom: 1rem;
}

.raum-box h3 {
  font-family: "Walsheim", Sans-serif;
  font-size: 36px;
  font-weight: bold;
  line-height: 1.2em;
  color: #142310;
}

.raum-box p {
margin: 0.25rem 0;
color: #142310;
}

.raum-box button.mehr-erfahren-button {
  background: #7a9684;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 0;
}
.raum-box button.mehr-erfahren-button:hover {
  background: #ff6d00;
  color: #fff;
  border: 1px solid #fff;
}

.filter-grid select, .buchungskalender input {
margin-bottom: 1%;
}

.elementor-loop-container h4 {
font-size: 1.25rem !important;
}

@media (max-width: 1023px) {
.einzelansicht-content {
  display: block;
}
}

@media (min-width: 1024px) {
.acf-infos {
  flex-basis: 50%;
  padding: 0 10% 0 0;
}
}

.raum-carousel .swiper-wrapper {
display: flex !important;
}
.raum-carousel .swiper-slide {
flex-shrink: 0;
width: 100% !important;
}

.raum-loader {
  text-align: center;
  padding: 2em 0;
}

.raum-loader img {
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  opacity: 0.7;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === 3-Spalten-Layout für das Raum-Filterformular === */

#raum-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exakt drei Spalten */
  gap: 1.5rem;
  background: #AF2603;
  padding: 2rem;
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  width: 100%;
}

#raum-filter .filter-group {
  display: flex;
  flex-direction: column;
}

#raum-filter label {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

#raum-filter .ui-slider .ui-slider-range {
  background: #FF6D00;
}

#raum-filter select,
#raum-filter input[type="checkbox"],
#raum-filter input[type="text"],
#qm-slider {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0;
  border: 1px solid #AF2603;
  box-sizing: border-box;
}

#qm-slider {
  grid-column: span 3;
  margin-top: 0.5rem;
}

#qm-label {
  grid-column: span 3;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

#raum-filter h4 {
  grid-column: span 3;
  margin: 1rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}

.raum-filter-reset,
.show-more {
  grid-column: span 3;
  padding: 0.75rem;
  background: #FF6D00;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 0;
  cursor: pointer;
  text-align: center;
}

button.raum-filter-reset {
    width: 32% !important;
    background: transparent !important;
}



/* Mobilansicht: alles untereinander */
@media (max-width: 768px) {
  .raum-liste {
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  }
  #raum-filter {
    grid-template-columns: repeat(auto-fit, minmax(30%, 2fr));
  }
  button.raum-filter-reset {
    width: 100% !important;
  }

}

@media (max-width: 576px) {
  .mobile-order .mo-1 {
    order: 1;
  }
  .mobile-order .mo-2 {
    order: 2;
  }
  .mobile-order .mo-3 {
    order: 3;
  }
  .mobile-order .mo-4 {
    order: 4;
  }
  .mobile-order .mo-5 {
    order: 5;
  }
  .mobile-order .mo-6 {
    order: 6;
  }
}

.raum-mehr-button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 2rem;
  background: transparent;
  border: 1px solid #FF6D00;
  color: #FF6D00;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.raum-mehr-button:hover {
  background: #FF6D00;
  color: white;
}


[type=submit] {
  background: #FF6D00;
  color: #fff;
  border: 1px solid #fff;
}

[type=submit]:hover {
  background: #fff;
  color: #FF6D00;
  border: 1px solid #FF6D00;
}

button.mehr-erfahren-button {
  background: #FF6D00;
  margin-top: 5%;
  color: #fff;
  border: 0px !important;
}
button.mehr-erfahren-button:hover {
  background: #fff;
  margin-top: 5%;
  color: #FF6D00;
}

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
  background: #FF6D00;
  color: #fff;
}

input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
  margin-bottom: 25px;
  border: 1px solid #142310;
  color: #142310;
  border-radius: 0;
}

input::placeholder {
  color: #142310;
}

#bewerbungsformular *, button, #raum-filter  {
  font-family: var( --e-global-typography-text-font-family ), Sans-serif !important;
}

/* Grundstruktur */
.wpcf7 form {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 0;
}

/* Labels & Felder */
.wpcf7 form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.wpcf7-form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0;
  font-size: 1rem;
  margin-top: 0.2rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-group {
  flex: 1;
  min-width: 250px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

legend.form-legend {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.wpcf7-checkbox,
.wpcf7-radio {
  margin-bottom: 1rem;
}

.wpcf7-list-item {
  margin-top: 20px;
  margin-bottom: 20px;
}

.wpcf7-checkbox {
  border: 0px;
}

* {
  border-radius: 0 !important;
}