
/* ======================
   WORKSHOP DETAIL PAGE - RAMI STYLE
   Black date blocks like rami-ceramics.com
   ====================== */

/* Workshop Detail Container */
.workshop-detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  background-color: #fff;
}

/* Main Grid Layout */
.workshop-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}

/* LEFT COLUMN - Images */
.workshop-images {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workshop-main-image {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.workshop-main-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Thumbnail Gallery */
.workshop-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.thumbnail {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnail:hover {
  border-color: #000;
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: #000;
}

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

/* RIGHT COLUMN - Info Panel */
.workshop-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #000;
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: #ccc;
}

/* Workshop Title */
.workshop-info-panel h1 {
  font-size: 2rem;
  font-weight: 400;
  color: #000;
  margin: 0.5rem 0 1.5rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* Price Display */
.workshop-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 400;
  color: #000;
  letter-spacing: -0.5px;
}

.price-note {
  font-size: 0.9rem;
  color: #666;
  font-weight: 300;
}

/* Workshop Intro */
.workshop-intro {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* DATES SECTION - RAMI STYLE */
.dates-section {
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid #eee;
}

.dates-section h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: #000;
  margin: 0 0 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Dates List Container */
.dates-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .dates-list {
    flex-direction: column;
  }
}

/* Date Block - PILL STYLE */
.date-block {
  background-color: #fff;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 1.5px solid #d0d0d0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
  min-height: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}

.date-block.available {
  cursor: pointer;
}

.date-block.available:hover {
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hide radio button but keep it functional */
.date-block input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Selected state - black background */
.date-block:has(input[type="radio"]:checked) {
  background-color: #000;
  border-color: #000;
}

.date-block:has(input[type="radio"]:checked):hover {
  background-color: #1a1a1a;
}

.date-block input[type="radio"]:checked ~ .date-content .date-text {
  color: #fff;
}

/* Date Content Wrapper */
.date-content {
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
}

/* Single line date text */
.date-text {
  font-size: 0.9rem;
  font-weight: 400;
  color: #000;
  letter-spacing: 0;
  transition: color 0.25s ease;
  line-height: 1;
}

/* Hide old date-header structure */
.date-header {
  display: none;
}

.date-day {
  display: none;
}

.date-time {
  display: none;
}

/* QUANTITY SECTION */
.quantity-section {
  margin: 2rem 0 1.5rem;
}

.quantity-section label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #000;
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #d0d0d0;
  border-radius: 50px;
  overflow: hidden;
  width: fit-content;
  margin: 0 auto;
}

.qty-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: none;
  font-size: 1.3rem;
  color: #000;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 300;
}

.qty-btn:hover {
  background-color: #000;
  color: #fff;
}

.qty-btn:active {
  transform: scale(0.95);
}

.quantity-selector input[type="text"] {
  width: 60px;
  height: 45px;
  text-align: center;
  border: none;
  border-left: 1.5px solid #d0d0d0;
  border-right: 1.5px solid #d0d0d0;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  background-color: #fff;
  cursor: default;
}

/* Lösche diese Zeilen - nicht mehr nötig */
/* 
.quantity-selector input[type="number"]::-webkit-outer-spin-button,
.quantity-selector input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-selector input[type="number"] {
  -moz-appearance: textfield;
}
*/

/* Sold Out Style - Pill Version */
.date-block.sold-out {
  background-color: #fafafa;
  color: #999;
  border: 1.5px solid #e5e5e5;
  cursor: not-allowed;
  opacity: 0.6;
}

.date-block.sold-out:hover {
  transform: none;
  background-color: #fafafa;
  box-shadow: none;
}

.date-block.sold-out .date-text {
  color: #999;
  text-decoration: line-through;
}

/* Past Date Style (automatically added by JavaScript) */
.date-block.past-date {
  background-color: #f5f5f5;
  border-color: #d5d5d5;
  opacity: 0.5;
  pointer-events: none;
}

.date-block.past-date .date-text {
  color: #aaa;
}

.sold-badge {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Main Booking Button */
.workshop-book-btn {
  display: inline-block;
  width: auto;
  padding: 0.9rem 2rem;
  background-color: #000;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 6px;
  border: 2px solid #000;
  transition: all 0.25s ease;
  cursor: pointer;
  margin: 0.5rem auto 0;
  display: block;
  max-width: 280px;
}

.workshop-book-btn:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.workshop-book-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Booking Note */
.booking-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  font-weight: 300;
  line-height: 1.5;
}

/* Shipping Note */
.shipping-note {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
  margin-top: 1.5rem;
  font-weight: 300;
  text-align: center;
  padding: 0 1rem;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

/* DESCRIPTION SECTION */
.workshop-description {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.workshop-description h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #000;
  margin: 0 0 1.5rem;
  letter-spacing: -0.5px;
}

.workshop-description h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #000;
  margin: 2.5rem 0 1rem;
  letter-spacing: 0;
}

.workshop-description p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.workshop-description ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.workshop-description ul li {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  font-weight: 300;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.workshop-description ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #000;
  font-weight: 600;
}

.workshop-description ul li strong {
  font-weight: 500;
  color: #000;
}

/* Workshop Note Box */
.workshop-note {
  background-color: #fafafa;
  border-left: 3px solid #000;
  padding: 1.5rem 1.8rem;
  margin-top: 2.5rem;
  border-radius: 0;
}

.workshop-note p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

.workshop-note strong {
  font-weight: 500;
  color: #000;
}

/* ======================
   RESPONSIVE DESIGN
   ====================== */

@media (max-width: 1024px) {
  .workshop-detail-grid {
    gap: 3rem;
  }
  
  .workshop-info-panel h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 900px) {
  .workshop-detail-container {
    padding: 4rem 2rem 3rem;
  }
  
  .workshop-detail-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .workshop-images {
    position: relative;
    top: 0;
  }
  
  .workshop-thumbnails {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .workshop-description {
    padding: 3rem 1rem 2rem;
  }
}

@media (max-width: 600px) {
  .workshop-detail-container {
    padding: 3rem 1.5rem 2.5rem;
  }
  
  .workshop-detail-grid {
    gap: 2.5rem;
  }
  
  .workshop-info-panel h1 {
    font-size: 1.5rem;
  }
  
  .price-amount {
    font-size: 1.5rem;
  }
  
  .dates-section {
    padding: 1.5rem 0;
  }
  
  .dates-list {
    gap: 0.6rem;
  }
  
  .date-block {
    padding: 0.9rem 1rem;
  }
  
  .date-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .date-block.available:hover {
    transform: none;
  }
  
  .date-day {
    font-size: 0.9rem;
  }
  
  .date-time {
    font-size: 0.8rem;
  }
  
  .sold-badge {
    position: static;
    transform: none;
    margin-top: 0.25rem;
    font-size: 0.75rem;
  }
  
  .workshop-book-btn {
    padding: 0.85rem 1.75rem;
    font-size: 0.85rem;
    max-width: 100%;
  }
  
  .workshop-description {
    padding: 2.5rem 0 2rem;
  }
  
  .workshop-description h2 {
    font-size: 1.5rem;
  }
  
  .workshop-description h3 {
    font-size: 1.15rem;
  }
}

/* ======================
   ACCESSIBILITY & FOCUS STATES
   ====================== */

.workshop-book-btn:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.date-block:focus-within {
  outline: 2px solid #666;
  outline-offset: 2px;
}

/* ======================
   PRINT STYLES
   ====================== */

@media print {
  .dates-section {
    border-top: 1px solid #ddd;
  }
  
  .date-block {
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
  }
  
  .date-block .date-day,
  .date-block .date-time {
    color: #000;
  }
  
  .workshop-book-btn {
    display: none;
  }
  
  .workshop-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .workshop-images {
    page-break-inside: avoid;
  }
}

