/* Kochkurse-Detail-Modal – eigenständig (kd- Präfix), passt zu allen Design-Varianten */
.kd-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 8, 26, 0.66);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(.8rem, 4vw, 3rem);
  overflow-y: auto;
}
.kd-overlay.kd-show { display: flex; }

.kd-modal {
  background: #ffffff;
  color: #2e2430;
  width: min(760px, 100%);
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
  overflow: hidden;
  margin: auto;
  animation: kd-in .28s cubic-bezier(.22, 1, .36, 1);
}
@keyframes kd-in { from { opacity: 0; transform: translateY(22px) scale(.98); } }

.kd-head {
  position: relative;
  background: linear-gradient(135deg, #6d3f96 0%, #481b6c 60%, #2d0f4a 100%);
  color: #fff;
  padding: 1.4rem 3.2rem 1.4rem 1.6rem;
}
.kd-head h2 {
  font-family: 'Red Hat Display', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: .4rem 0 0;
  color: #fff;
  letter-spacing: -.01em;
}
.kd-chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.kd-chip {
  font-family: 'Red Hat Display', system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
}
.kd-chip--ok { background: rgba(156, 204, 106, .25); border-color: rgba(156, 204, 106, .55); color: #d8f0be; }
.kd-chip--wait { background: rgba(232, 185, 92, .22); border-color: rgba(232, 185, 92, .55); color: #f7dfae; }
.kd-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.kd-close:hover { background: rgba(255, 255, 255, .3); }

.kd-body { padding: 1.5rem 1.6rem 1.7rem; }
.kd-date {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  background: #f6f1fa;
  border: 1px solid #e7e0f0;
  border-radius: 14px;
  padding: .85rem 1.1rem;
  margin-bottom: 1.2rem;
}
.kd-date .kd-cal {
  font-family: 'Red Hat Display', system-ui, sans-serif;
  font-weight: 800;
  color: #481b6c;
  font-size: 1.05rem;
}
.kd-date .kd-time { color: #6b5f52; font-size: .92rem; }
.kd-desc { font-family: Georgia, 'Times New Roman', serif; line-height: 1.75; margin-bottom: 1.3rem; }

.kd-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .7rem;
  margin-bottom: 1.3rem;
}
.kd-fact {
  background: #faf7f2;
  border: 1px solid #eee5d8;
  border-radius: 12px;
  padding: .7rem .95rem;
}
.kd-fact .kd-lab {
  font-family: 'Red Hat Display', system-ui, sans-serif;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #61339e;
  margin-bottom: .15rem;
}
.kd-fact .kd-val { font-size: .93rem; }
.kd-fact .kd-val small { color: #6b5f52; }

.kd-sec { margin-bottom: 1.25rem; }
.kd-sec h3 {
  font-family: 'Red Hat Display', system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #481b6c;
  margin-bottom: .55rem;
}
.kd-terms { width: 100%; border-collapse: collapse; font-size: .9rem; }
.kd-terms th {
  text-align: left;
  font-family: 'Red Hat Display', system-ui, sans-serif;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b5f52;
  padding: .4rem .6rem;
  border-bottom: 2px solid #e7e0f0;
}
.kd-terms td { padding: .55rem .6rem; border-bottom: 1px solid #f0e9dd; }
.kd-terms tr:last-child td { border-bottom: 0; }

.kd-bring {
  background: #f4f8ec;
  border: 1px solid #dde8cc;
  border-radius: 12px;
  padding: .8rem 1rem;
  font-size: .92rem;
}
.kd-bring .kd-lab {
  font-family: 'Red Hat Display', system-ui, sans-serif;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5d8a34;
  margin-bottom: .2rem;
}

.kd-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.kd-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Red Hat Display', system-ui, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}
.kd-btn--primary {
  background: linear-gradient(135deg, #7a4fb4, #481b6c);
  color: #fff;
  box-shadow: 0 10px 24px rgba(72, 27, 108, .3);
}
.kd-btn--primary:hover { transform: translateY(-2px); color: #fff; }
.kd-btn--ghost { border: 2px solid #481b6c; color: #481b6c; }
.kd-btn--ghost:hover { background: #481b6c; color: #fff; }

.kd-fineprint {
  margin-top: 1.2rem;
  font-size: .78rem;
  color: #8a7d70;
}

@media (max-width: 560px) {
  .kd-head { padding: 1.2rem 3rem 1.2rem 1.2rem; }
  .kd-body { padding: 1.15rem 1.15rem 1.4rem; }
  .kd-modal { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .kd-modal { animation: none; }
}