/* =========================================
   Freizeit
   Zusatzstyles auf Basis von coaching.css
   ========================================= */


/* ---------- Seite breiter machen ---------- */

.page-main{
  padding-left: 18px;
  padding-right: 18px;
}

.page-main .content-box{
  max-width: 1300px;
  width: 100%;
  margin: 16px auto;
}


/* Header-Logo etwas kleiner */

.site-header .logo{
  height: 100px;
}

@media (max-width: 780px){
  .site-header .logo{
    height: 58px;
  }
}


/* ---------- Einleitung ---------- */

.freizeit-intro{
  margin: 0 0 18px;
  color: rgba(15,37,66,.86);
  line-height: 1.5;
}


/* =========================================
   Übersicht / Karten
   ========================================= */

.freizeit-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.freizeit-card{
  background: rgba(255,255,255,.94);
  border: 1.5px solid rgba(18,58,99,.18);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(9,25,45,.08);
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.freizeit-image{
  height: 170px;
  background: #f3f3f3;
}

.freizeit-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.freizeit-top{
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(18,58,99,.12);
  border-bottom: 1px solid rgba(18,58,99,.12);
}

.datum-block,
.zeit-block{
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.datum-block{
  border-right: 1px solid rgba(18,58,99,.15);
}

.datum-lime{
  background: #bfdc00;
}

.zeit-lime-light{
  background: #dbe98b;
  color: #55707a;
}

.datum-brown{
  background: #7f6d67;
}

.datum-brown .datum-zahl,
.datum-brown .datum-text{
  color: #fff;
}

.zeit-beige{
  background: #d8cfcb;
  color: #5e504c;
}

.datum-zahl{
  font-size: 2.9rem;
  line-height: 1;
  font-weight: 900;
  color: #fff;
  margin-right: 10px;
  flex: 0 0 auto;
}

.datum-zahl.blue{
  color: #10a4d4;
}

.datum-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1rem;
  color: #fff;
  line-height: 1.1;
}

.datum-text span:first-child{
  border-bottom: 2px solid currentColor;
  padding-bottom: 4px;
}

.blue-text{
  color: #10a4d4;
}

.zeit-block{
  text-align: center;
  font-size: .95rem;
  line-height: 1.25;
}

.freizeit-age{
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 12px auto 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #10a4d4;
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  text-align: center;
}

.status-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 14px 10px;
}

.status-row.left{
  justify-content: flex-start;
  margin: 0;
}

.status-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .8rem;
  line-height: 1.15;
  color: #fff;
  text-align: center;
}

.status-open{
  background: #10a4d4;
}

.status-muted,
.status-full{
  background: #8f7c77;
}

.freizeit-card h2{
  margin: 6px 18px 10px;
  color: #10a4d4;
  font-size: 1.42rem;
  line-height: 1.08;
  word-break: break-word;
}

.freizeit-info{
  padding: 0 18px 18px;
  font-size: .92rem;
  min-width: 0;
}

.freizeit-info h3{
  margin: 8px 0 4px;
  font-size: .94rem;
  color: #222;
}

.freizeit-info ul{
  margin: 0 0 10px 16px;
  padding: 0;
}

.freizeit-info li{
  line-height: 1.35;
}

.freizeit-info p{
  margin: 0 0 10px;
  line-height: 1.35;
  word-break: break-word;
}

.freizeit-btn{
  margin: auto 18px 18px;
  background: #10a4d4;
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: .96rem;
  box-shadow: 0 6px 14px rgba(16,164,212,.18);
  transition: transform .12s ease, box-shadow .15s ease;
}

.freizeit-btn:hover{
  transform: translateY(-1px);
}

.freizeit-btn.disabled{
  background: #8f7c77;
  pointer-events: none;
  box-shadow: none;
}


/* =========================================
   Detailseite
   ========================================= */

.detail-layout{
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
}

.detail-sidebar{
  border: 1.5px solid rgba(18,58,99,.18);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255,255,255,.78);
}

.detail-date-row{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  border-bottom: 1px solid rgba(18,58,99,.18);
}

.detail-date-box,
.detail-time-box{
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.detail-date-box{
  border-right: 1px solid rgba(18,58,99,.18);
}

.detail-time-box{
  text-align: center;
  color: #10a4d4;
  font-size: 1.05rem;
  line-height: 1.35;
}

.detail-fact{
  padding: 18px 28px;
  border-bottom: 1px solid rgba(18,58,99,.18);
}

.detail-fact h3{
  margin: 0 0 8px;
  font-size: 1rem;
}

.detail-fact p{
  margin: 0;
  line-height: 1.45;
}

.detail-map-box{
  margin: 24px;
  min-height: 280px;
  border: 2px solid rgba(18,58,99,.28);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.7);
}

.detail-map-box iframe{
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
}

.detail-main{
  display: grid;
  gap: 24px;
}

.detail-image{
  min-height: 260px;
  background: #f3f3f3;
  border: 1.5px solid rgba(18,58,99,.18);
  overflow: hidden;
  border-radius: 18px;
}

.detail-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-content{
  display: grid;
  gap: 18px;
}

.detail-content h2{
  margin: 0 0 8px;
  color: var(--vzk-blue-dark);
}

.detail-content p{
  margin: 0;
  line-height: 1.5;
}

.booking-box h2{
  margin-bottom: 16px;
}

.booking-card{
  border: 1.5px solid rgba(18,58,99,.22);
  border-radius: 32px;
  padding: 28px;
  background: rgba(255,255,255,.9);
}

.booking-header h3{
  margin: 0 0 12px;
  color: #10a4d4;
  font-size: 2rem;
  line-height: 1.08;
}

.booking-date,
.booking-price{
  font-size: 1.15rem;
  margin: 0 0 18px;
}

.counter-row{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}

.counter-box{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.counter-box label{
  font-weight: 800;
  font-size: 1.1rem;
}

.counter-wrap{
  display: flex;
  align-items: center;
  border: 1px solid rgba(18,58,99,.45);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.counter-wrap button{
  width: 48px;
  height: 48px;
  border: 0;
  background: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.counter-wrap input{
  width: 72px;
  height: 48px;
  border: 0;
  border-left: 1px solid rgba(18,58,99,.35);
  border-right: 1px solid rgba(18,58,99,.35);
  text-align: center;
  font-size: 1.5rem;
  color: #10a4d4;
  background: #fff;
}

.booking-footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1.15rem;
}


/* =========================================
   Formularseite
   ========================================= */

.freizeit-form{
  display: grid;
  gap: 22px;
}

.freizeit-form-section{
  border: 1.5px solid rgba(18,58,99,.18);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.82);
}

.freizeit-form-section h2{
  margin-top: 0;
}

.freizeit-form textarea,
.freizeit-form select{
  width: 100%;
  border: 1.5px solid rgba(15,37,66,.22);
  border-radius: 10px;
  padding: 9px 11px;
  background: rgba(255,255,255,.94);
  color: #0b1d34;
  font: inherit;
}

.freizeit-form textarea{
  resize: vertical;
  min-height: 90px;
}


/* =========================================
   Responsive
   ========================================= */

/* 
   Ab grossem Bildschirm:
   4 Karten nebeneinander.
   Weitere Karten laufen automatisch in die nächste Zeile.
*/

@media (max-width: 1050px){
  .freizeit-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .freizeit-grid{
    grid-template-columns: 1fr;
  }

  .booking-footer,
  .counter-row{
    justify-content: flex-start;
  }

  .booking-header h3{
    font-size: 1.5rem;
  }
}