.workshop-category-group {
  margin-top: 36px;
}

.workshop-category-heading {
  color: #1a237e;
  font-size: 1.45rem;
  margin: 0 0 18px;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

#dynamicWorkshopGrid {
  display: block;
  margin-top: 28px;
}

.workshop-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #1f2937;
}

.workshop-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #edf2f7;
}

.workshop-card-body {
  padding: 22px;
}

.workshop-card h3 {
  color: #1a237e;
  margin: 14px 0 10px;
  font-size: 1.35rem;
}

.workshop-card p {
  color: #4a5568;
  line-height: 1.58;
}

.workshop-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workshop-pill,
.workshop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef2ff;
  color: #1a237e;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-expand,
.btn-interest-sub,
.btn-crm-trigger {
  font-family: inherit;
}

.btn-expand {
  background: #e8eaf6;
  color: #1a237e;
  border: none;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  margin-top: 18px;
  width: 100%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-expand:hover {
  background: #c5cae9;
  transform: translateY(-1px);
}

.workshop-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  animation: fadeIn 0.25s ease;
}

.workshop-details h4 {
  color: #1a237e;
  margin: 18px 0 8px;
}

.workshop-detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin: 14px 0;
}

.termin-table-container {
  width: 100%;
  overflow-x: auto;
  margin: 15px 0;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.termin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.termin-table th,
.termin-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #333;
}

.termin-table th {
  background: #f4f6f9;
  color: #4a5568;
  font-weight: 700;
}

.btn-book-table {
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-block;
  text-align: center;
}

.btn-book-table.active-booking {
  background: #1a237e;
  color: #fff !important;
}

.btn-book-table.waitlist-booking {
  background: #e65100;
  color: #fff !important;
}

.btn-interest-sub {
  background: none;
  border: 2px dashed #1a237e;
  color: #1a237e;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  width: 100%;
  margin-top: 15px;
}

.btn-interest-sub:hover {
  background: rgba(26, 35, 126, 0.05);
}

.date-empty,
.loading-state,
.empty-state,
.error-state {
  text-align: center;
  color: #4a5568;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
}

.error-state {
  color: #9b1c1c;
  border-color: #fecaca;
}

.crm-section-btn {
  text-align: center;
  margin: 30px 0 5px;
}

.btn-crm-trigger {
  background: linear-gradient(135deg, #1a237e, #0dccb1);
  color: white !important;
  border: none;
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
}

.crm-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.crm-modal {
  background: white;
  padding: 32px;
  border-radius: 14px;
  max-width: 540px;
  width: min(100%, 540px);
  max-height: 90vh;
  overflow-y: auto;
  color: #333;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.14);
}

.crm-modal h3 {
  margin-top: 0;
  color: #1a237e;
}

.crm-modal .form-group {
  margin-bottom: 16px;
}

.crm-modal label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #1e293b;
}

.crm-modal input[type="text"],
.crm-modal input[type="email"],
.crm-modal input[type="tel"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  box-sizing: border-box;
  font-family: inherit;
}

.workshop-checkboxes {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  padding: 12px;
  border-radius: 7px;
  margin-bottom: 20px;
  background: #f8f9fa;
}

.checkbox-item,
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.checkbox-item input,
.checkbox-group input {
  width: auto;
  margin-top: 3px;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.45;
}

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

  .termin-table-container {
    border: 0;
    overflow: visible;
  }

  .termin-table,
  .termin-table thead,
  .termin-table tbody,
  .termin-table th,
  .termin-table td,
  .termin-table tr {
    display: block;
  }

  .termin-table thead {
    display: none;
  }

  .termin-table tr {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: #fff;
  }

  .termin-table td {
    border: 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 4px;
  }

  .termin-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #4a5568;
  }

  .btn-book-table {
    width: 100%;
  }

  .crm-modal {
    padding: 22px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Feature Update: Sticky Terminbereich, Kontaktseite, FAQ und Markdown */
.workshop-card:has(.workshop-details.active) {
  align-self: start;
}

.workshop-details.active {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 920px);
  overflow: hidden;
}

.workshop-details-scroll {
  overflow-y: auto;
  padding-right: 6px;
  flex: 1 1 auto;
  min-height: 0;
}

.workshop-sessions-sticky {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  margin-top: 18px;
  padding-top: 12px;
  box-shadow: 0 -10px 18px rgba(15, 23, 42, 0.06);
}

.termin-details summary {
  cursor: pointer;
  font-weight: 800;
  color: #1a237e;
  padding: 10px 0;
}

.termin-details .termin-table-container {
  max-height: 35vh;
  overflow: auto;
}

.individual-request-row td {
  background: #f8fafc;
  font-weight: 600;
}

.btn-book-table.request-booking {
  background: #0f766e;
  color: #fff !important;
}

.markdown-content p,
.markdown-content ul {
  color: #4a5568;
  line-height: 1.65;
}

.markdown-content ul {
  padding-left: 1.2rem;
}

.markdown-content a {
  color: #1a237e;
  font-weight: 700;
}

.workshop-abstract {
    margin: 0 0 1.1rem;
    color: #4a5568;
    line-height: 1.6;
}

.workshop-abstract p {
    margin: 0;
}


.contact-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.contact-choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.contact-choice strong {
  color: #1a237e;
  font-size: 1.05rem;
}

.contact-panel {
  border-top: 1px solid #e2e8f0;
  margin-top: 22px;
  padding-top: 22px;
}

.contact-panel.hidden,
.hidden {
  display: none !important;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.faq-category {
  color: #1a237e;
  margin: 30px 0 4px;
}

.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.faq-item summary {
  cursor: pointer;
  color: #1a237e;
  font-weight: 800;
}

@media (max-width: 720px) {
  .workshop-details.active {
    max-height: none;
    overflow: visible;
  }

  .workshop-details-scroll,
  .workshop-sessions-sticky,
  .termin-details .termin-table-container {
    max-height: none;
    overflow: visible;
  }

  .workshop-sessions-sticky {
    position: static;
    box-shadow: none;
  }
}




.testimonials{padding:64px 20px;background:#f6f8fb}.testimonial-carousel{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 18px}.testimonial-card{scroll-snap-align:start;min-width:min(100%,420px);display:flex;gap:16px;padding:22px;background:#fff;border-radius:14px;box-shadow:0 5px 18px rgba(15,23,42,.08)}.testimonial-avatar{width:68px;height:68px;object-fit:cover;border-radius:50%;flex:0 0 68px}.testimonial-fallback{display:grid;place-items:center;background:#d7f0ee;color:#1a237e;font-weight:700;font-size:1.5rem}.testimonial-stars{color:#e6a700;letter-spacing:2px}.testimonial-card blockquote{margin:8px 0 12px;font-size:1.05rem;line-height:1.55}.testimonial-name{margin:0;color:#1a237e;font-weight:700}.testimonial-workshop{margin:3px 0 0;color:#667085;font-size:.9rem}

.section-title{color:#1b4f8a!important}.ueber-mich .section-title,.blue-background .section-title{color:#f5cf5b!important}.inspiration-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem;align-items:start}.inspiration-category-card{padding:1rem;border-radius:1rem;background:#fff;box-shadow:0 8px 30px rgba(18,51,84,.1)}.inspiration-category-card h3{color:#1b4f8a;margin:1rem 0 .4rem}.inspiration-category-card p{margin:0;line-height:1.55}.inspiration-empty{display:grid;place-items:center;min-height:180px;border-radius:.75rem;background:#eef4fb;color:#52657a}.modern-carousel{position:relative;overflow:hidden;border-radius:.75rem;background:#e9eef5}.carousel-slide[hidden]{display:none!important}.modern-carousel img,.modern-carousel iframe{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border:0}.carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:2.6rem;height:2.6rem;border:0;border-radius:50%;background:rgba(9,31,57,.78);color:#fff;font-size:2rem;line-height:1;cursor:pointer}.carousel-prev{left:.65rem}.carousel-next{right:.65rem}.carousel-status{position:absolute;right:.65rem;bottom:.55rem;padding:.18rem .45rem;border-radius:99px;background:rgba(9,31,57,.72);color:#fff;font-size:.76rem}.testimonial-card{padding:1.5rem;background:#fff}.crm-section-btn{margin:2rem 0 3rem;text-align:center}@media(max-width:650px){.inspiration-grid{grid-template-columns:1fr}}

#inspirationMedia{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem;align-items:start}


/* Feature pack 2: reusable detail, testimonial and editable homepage blocks */
.homepage-usp { padding: 54px 20px; background: #ffffff; }
.homepage-usp-inner { max-width: 940px; text-align: center; }
.homepage-usp .section-title { margin-bottom: 1rem; }
.homepage-usp-copy { max-width: 760px; margin: 0 auto; color: #334155; }
.homepage-usp-copy p { margin: 0.5rem 0; }

.about-layout { max-width: 1040px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr); align-items: center; gap: 44px; }
.about-media { min-height: 220px; display: grid; place-items: center; }
.about-media img { width: min(100%, 300px); max-height: min(50vh, 340px); border-radius: 18px; object-fit: cover; box-shadow: 0 12px 28px rgba(15,23,42,.15); }
.about-media-fallback { display: grid; place-items: center; inline-size: 190px; block-size: 190px; border-radius: 50%; font-size: 4rem; background: #e9eef8; }
.about-copy .section-title { text-align: left; margin: 0 0 1rem; }
.about-copy h3 { margin: 0 0 1rem; color: #1a237e; font-size: 1.35rem; }

.workshop-testimonial-tag { border: 1px solid #93c5fd; background: #eff6ff; color: #1e40af; padding: 6px 10px; border-radius: 999px; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.workshop-testimonial-tag:hover, .workshop-testimonial-tag:focus-visible { background: #dbeafe; outline: 3px solid #bfdbfe; outline-offset: 2px; }


.testimonials { padding: 70px 20px; background: #f6f8fb; }
.testimonial-carousel .modern-carousel, .testimonial-modal .modern-carousel { max-width: 1180px; margin: 0 auto; overflow: visible; background: transparent; }
.testimonial-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 22px; padding: 4px 42px 10px; }
.testimonial-card { min-width: 0; scroll-snap-align: none; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; padding: 22px; color: #1f2937; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 8px 24px rgba(15,23,42,.09); }
.testimonial-card-media { align-self: center; }
.testimonial-card-media img, .testimonial-avatar { display: block; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.testimonial-fallback { display: grid; place-items: center; background: #e0edff; color: #1a237e; font-weight: 800; font-size: 1.4rem; }
.testimonial-card-content { min-width: 0; }
.testimonial-stars { color: #d97706; letter-spacing: 2px; font-size: 1.05rem; }
.testimonial-card blockquote { margin: 8px 0 12px; color: #334155; font-size: 1rem; line-height: 1.6; }
.testimonial-name { margin: 0; color: #1a237e; font-weight: 800; }
.testimonial-workshop { margin: 4px 0 0; color: #64748b; font-size: .9rem; }

.testimonial-modal-overlay { position: fixed; inset: 0; z-index: 4300; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.62); backdrop-filter: blur(4px); }
.testimonial-modal { width: min(1160px, 100%); max-height: min(90vh, 900px); overflow: auto; background: #f8fafc; color: #1f2937; border-radius: 20px; box-shadow: 0 28px 80px rgba(15,23,42,.28); }
.testimonial-modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.testimonial-modal-header h2 { margin: 0; color: #1a237e; font-size: clamp(1.35rem, 3vw, 2rem); }
.testimonial-modal-header .eyebrow { margin: 0 0 5px; color: #475569; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
.testimonial-modal-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #cbd5e1; background: #fff; color: #1f2937; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.testimonial-modal-content { padding: 26px 20px; }
body.testimonial-modal-open { overflow: hidden; }
.testimonial-consent-page { max-width: 760px; padding: 64px 20px; }
.testimonial-consent-page #testimonialPreview { margin: 24px 0; }



/* Feature pack 2.1: editorial Markdown headings and non-scrolling workshop detail layout. */
.homepage-usp { background: #ffffff; }
.homepage-usp-heading,
.about-heading,
.about-subheading { margin: 0; }
.homepage-usp-heading > :first-child,
.about-heading > :first-child,
.about-subheading > :first-child { margin-top: 0; }
.homepage-usp-heading h2,
.homepage-usp-heading h3,
.homepage-usp-heading h4,
.homepage-usp-heading p {
  color: #1b4f8a;
  font-size: clamp(1.8rem, 3.5vw, 2.45rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 1rem;
}
.homepage-usp-copy { color: #334155; font-weight: 500; }
.ueber-mich {
  background: linear-gradient(135deg, #1e1b4b 0%, #173d69 100%);
  border-color: rgba(255,255,255,.16);
}
.ueber-mich .about-heading h2,
.ueber-mich .about-heading h3,
.ueber-mich .about-heading h4,
.ueber-mich .about-heading p {
  color: #f5cf5b !important;
  font-size: clamp(1.8rem, 3.5vw, 2.45rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 1rem;
}
.ueber-mich .about-subheading h2,
.ueber-mich .about-subheading h3,
.ueber-mich .about-subheading h4,
.ueber-mich .about-subheading p {
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 700;
  margin: 0 0 1rem;
}
.ueber-mich .about-body-copy,
.ueber-mich .about-body-copy p,
.ueber-mich .about-body-copy li,
.ueber-mich .about-body-copy h2,
.ueber-mich .about-body-copy h3,
.ueber-mich .about-body-copy h4 { color: #ffffff; font-weight: 500; }
.ueber-mich .about-body-copy strong { color: #ffffff; font-weight: 800; }
.ueber-mich .about-body-copy a { color: #f5cf5b; }
.ueber-mich .about-media-fallback { background: rgba(255,255,255,.15); color: #ffffff; }

/* The testimonial copy is centered inside the right grid column, without moving the portrait. */
.testimonial-card { grid-template-columns: minmax(88px, .56fr) minmax(0, 1.44fr); }
.testimonial-card-media { justify-self: center; }
.testimonial-card-content { justify-self: center; width: min(100%, 360px); text-align: center; }
.testimonial-card-content .testimonial-stars { text-align: center; }
.testimonial-card-content blockquote { text-align: center; }

/* Workshop-Detaildialog: zentrale, responsive Definition */
body.workshop-modal-open {
  overflow: hidden;
}

.workshop-detail-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}

.workshop-detail-modal {
  width: min(1360px, calc(100vw - 48px));
  height: min(92dvh, 940px);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #1f2937;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.workshop-modal-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.workshop-modal-header h2 {
  margin: 12px 0 0;
  color: #1a237e;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.workshop-modal-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: #1f2937;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.workshop-modal-close:hover {
  background: #f1f5f9;
}

/*
 * Breiter Desktop: Beschreibung nutzt den freien Raum.
 * Die Terminspalte ist absichtlich begrenzt, damit die Tabelle nur so breit
 * wie nötig bleibt und nicht den gesamten Dialog dominiert.
 */
.workshop-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(460px, 34vw, 520px);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.workshop-modal-content {
  min-width: 0;
  min-height: 0;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-right: 1px solid #e2e8f0;
  background:
    linear-gradient(#fff 30%, rgba(255,255,255,0)),
    linear-gradient(rgba(255,255,255,0), #fff 70%) 0 100%,
    radial-gradient(farthest-side at 50% 0, rgba(15,23,42,.18), rgba(15,23,42,0)),
    radial-gradient(farthest-side at 50% 100%, rgba(15,23,42,.18), rgba(15,23,42,0)) 0 100%;
  background-repeat: no-repeat;
  background-color: #fff;
  background-size: 100% 44px, 100% 44px, 100% 14px, 100% 14px;
  background-attachment: local, local, scroll, scroll;
}

.workshop-modal-content::-webkit-scrollbar {
  width: 12px;
}

.workshop-modal-content::-webkit-scrollbar-track {
  background: #eef2f7;
}

.workshop-modal-content::-webkit-scrollbar-thumb {
  border: 3px solid #eef2f7;
  border-radius: 999px;
  background: #64748b;
}

.workshop-modal-content h3,
.workshop-modal-sessions h3 {
  margin-top: 0;
  color: #1a237e;
}

.workshop-modal-sessions {
  min-width: 0;
  min-height: 0;
  padding: 24px 20px;
  overflow: visible;
  background: #f8fafc;
}

.workshop-modal-sessions-details {
  display: block;
}

.workshop-modal-sessions-details > summary {
  display: none;
}

.workshop-modal-sessions-details[open] > summary {
  list-style: none;
}

.workshop-modal-sessions-header {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.workshop-modal-sessions-header .btn-interest-sub {
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

.workshop-modal-sessions .termin-table-container {
  max-height: none;
  margin: 0;
  overflow: visible;
  border-radius: 10px;
}

.workshop-modal-sessions .termin-table {
  width: 100%;
  table-layout: fixed;
  font-size: .79rem;
}

.workshop-modal-sessions .termin-table th,
.workshop-modal-sessions .termin-table td {
  padding: 9px 5px;
  overflow-wrap: break-word;
  vertical-align: top;
}

/* Datum/Uhrzeit */
.workshop-modal-sessions .termin-table th:nth-child(1),
.workshop-modal-sessions .termin-table td:nth-child(1) {
  width: 23%;
}

/* Dauer */
.workshop-modal-sessions .termin-table th:nth-child(2),
.workshop-modal-sessions .termin-table td:nth-child(2) {
  width: 9%;
}

/* Ort */
.workshop-modal-sessions .termin-table th:nth-child(3),
.workshop-modal-sessions .termin-table td:nth-child(3) {
  width: 18%;
}

/* Preis */
.workshop-modal-sessions .termin-table th:nth-child(4),
.workshop-modal-sessions .termin-table td:nth-child(4) {
  width: 11%;
}

/* Plätze */
.workshop-modal-sessions .termin-table th:nth-child(5),
.workshop-modal-sessions .termin-table td:nth-child(5) {
  width: 11%;
}

/* Aktion */
.workshop-modal-sessions .termin-table th:nth-child(6),
.workshop-modal-sessions .termin-table td:nth-child(6) {
  width: 28%;
}

.workshop-modal-sessions .termin-table td:last-child {
  overflow-wrap: normal;
  white-space: nowrap;
}

.workshop-modal-sessions .btn-book-table {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 8px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .78rem;
}

.workshop-detail-modal .modern-carousel {
  display: grid;
  width: min(100%, 720px);
  place-items: center;
  margin: 1.25rem auto;
  overflow: hidden;
  border-radius: .75rem;
  background: #eef2f7;
}

.workshop-detail-modal .carousel-track,
.workshop-detail-modal .carousel-slide {
  display: grid;
  width: 100%;
  place-items: center;
}

.workshop-detail-modal .modern-carousel img,
.workshop-detail-modal .modern-carousel iframe {
  display: block;
  width: auto;
  height: auto;
  max-width: min(68vw, 720px);
  max-height: min(56dvh, 560px);
  border: 0;
  aspect-ratio: auto;
  object-fit: contain;
}

.workshop-detail-modal .modern-carousel iframe {
  width: min(100%, 680px);
  aspect-ratio: 16 / 9;
}

/*
 * Responsive: Termine sind am unteren Dialogrand verankert.
 * Der Detailtext bleibt immer der einzige primäre Scrollbereich.
 */
@media (max-width: 1280px) {
  .workshop-detail-modal {
    width: min(1080px, calc(100vw - 32px));
    height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
  }

  .workshop-modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .workshop-modal-content {
    grid-row: 1;
    border-right: 0;
  }

  .workshop-modal-sessions {
    grid-row: 2;
    max-height: min(52dvh, 500px);
    padding: 0;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.10);
  }

  .workshop-modal-sessions-details {
    max-height: inherit;
  }

  .workshop-modal-sessions-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 14px 20px;
    list-style: none;
    color: #1a237e;
    background: #f8fafc;
    font-weight: 800;
    cursor: pointer;
  }

  .workshop-modal-sessions-details > summary::-webkit-details-marker {
    display: none;
  }

  .workshop-modal-sessions-details > summary::after {
    content: "⌄";
    flex: 0 0 auto;
    font-size: 1.35rem;
    transition: transform .18s ease;
  }

  .workshop-modal-sessions-details[open] > summary::after {
    transform: rotate(180deg);
  }

  .workshop-modal-sessions-details[open] > summary {
    border-bottom: 1px solid #e2e8f0;
  }

  .workshop-modal-sessions-details > :not(summary) {
    padding: 16px 20px 20px;
  }

  .workshop-modal-sessions-details[open] {
    max-height: inherit;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .workshop-modal-sessions .termin-table-container {
    overflow-x: auto;
  }

  .workshop-modal-sessions .termin-table {
    font-size: .82rem;
  }
}

@media (max-width: 700px) {
  .workshop-detail-modal-overlay {
    padding: 0;
  }

  .workshop-detail-modal {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .workshop-modal-header {
    padding: 18px 16px 12px;
  }

  .workshop-modal-content {
    padding: 18px 16px;
  }

  .workshop-modal-sessions-details > summary {
    min-height: 54px;
    padding: 12px 16px;
  }

  .workshop-modal-sessions-details > :not(summary) {
    padding: 14px 16px 18px;
  }

  .workshop-modal-sessions .termin-table,
  .workshop-modal-sessions .termin-table thead,
  .workshop-modal-sessions .termin-table tbody,
  .workshop-modal-sessions .termin-table th,
  .workshop-modal-sessions .termin-table td,
  .workshop-modal-sessions .termin-table tr {
    display: block;
    width: auto;
  }

  .workshop-modal-sessions .termin-table thead {
    display: none;
  }

  .workshop-modal-sessions .termin-table tr {
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
  }

  .workshop-modal-sessions .termin-table td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 4px;
    border: 0;
    white-space: normal;
  }

  .workshop-modal-sessions .termin-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #4a5568;
    font-weight: 700;
  }

  .workshop-modal-sessions .termin-table td:last-child {
    display: block;
  }

  .workshop-modal-sessions .btn-book-table {
    width: 100%;
    margin-top: 4px;
    white-space: nowrap;
  }

  .workshop-detail-modal .modern-carousel {
    width: min(100%, 620px);
  }

  .workshop-detail-modal .modern-carousel img,
  .workshop-detail-modal .modern-carousel iframe {
    max-width: 76vw;
    max-height: 52dvh;
  }
}

/* Responsive layout retained for the feature-pack homepage blocks. */
@media (max-width: 920px) {
  .testimonial-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-copy .section-title {
    text-align: center;
  }

  .about-media {
    min-height: 160px;
  }

  .ueber-mich {
    padding: 58px 0;
  }

  .testimonial-card-grid {
    grid-template-columns: 1fr;
    padding-inline: 36px;
  }

  .testimonial-card {
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 18px;
  }

  .testimonial-card-media img,
  .testimonial-avatar {
    width: 74px;
    height: 74px;
  }

  .testimonial-card-content {
    width: 100%;
  }

  .testimonial-modal-overlay {
    padding: 0;
  }

  .testimonial-modal {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .testimonial-modal-header {
    padding: 18px 16px;
  }

  .testimonial-modal-content {
    padding: 20px 4px;
  }
}
