/* XD tokens */
:root{
  --dipa-4c7484:#4C7484;
  --dipa-d80b4a:#D80B4A;
  --dipa-214668:#214668;
  --dipa-ffffff:#FFFFFF;
  --dipa-e9eef4:#E9EEF4;
  --dipa-77c8da:#77C8DA;
  --dipa-232038:#232038;
}

/* layout */
.dipa-theme-wrap{max-width:1200px;margin:0 auto;padding:40px 20px 60px;}
.dipa-theme-h1{
  font: normal normal bold 30px/39px Roboto, sans-serif;
  font-size: 30px !important;
  font-style: normal !important; 
  letter-spacing:0.6px;
  color:var(--dipa-4c7484);
  margin:0 0 26px;
}

/* HERO */
.dipa-hero{
  position:relative;
  background:#fff;
  border:2px solid var(--dipa-e9eef4);
  border-radius:46px;
  overflow:hidden;
  display:grid;
  grid-template-columns:295px 1fr;
  min-height:520px;
}
.dipa-hero-img{
  background:#cfe6ee;
  border-radius:46px 0 0 46px;
  overflow:hidden;
}
.dipa-hero-img img{width:100%;height:100%;object-fit:cover;display:block;}

.dipa-hero-body{padding:42px 46px 34px 46px;}
.dipa-hero-title{
  font: italic normal 900 24px/32px Roboto, sans-serif;
  letter-spacing:0.48px;
  font-size: 24px !important;
  font-weight: 600 !important;
  color:var(--dipa-4c7484);
  margin:0 0 40px;
}
.dipa-hero-text{
  font: normal normal 300 16px/24px Roboto, sans-serif;
  letter-spacing:0.28px;
  color:var(--dipa-214668);
  margin:0 0 40px;
  margin-bottom: 50px !important;
  max-width:620px;
}

.dipa-hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 5px;
  margin:8px 0 26px;
  max-width:760px;
}
.dipa-hero-item{
  display:flex;gap:12px;align-items:flex-start;
  font: italic normal 500 16px/24px Roboto, sans-serif;
  color:var(--dipa-4c7484);
}
.dipa-hero-item .ico{
  width:22px;flex:0 0 22px;
  color:var(--dipa-77c8da);
  font-size:16px;
  margin-top:3px;
}
.dipa-hero-logos{
  display:flex;
  gap:30px;
  align-items:center;
  margin-top:16px;
}

.dipa-hero-logos img{
  height:55px;
  width:auto;
  object-fit:contain;
  filter:grayscale(10%);
  opacity:.9;
  transition:all .2s ease;
}


.dipa-hero-actions{
  position:absolute;
  right:46px;
  bottom:34px;
  display:flex;gap:14px;
}
.dipa-pill{
  display:inline-flex;align-items:center;justify-content:center;
  height:39px;padding:0 18px;
  border-radius:18px;
  background:var(--dipa-77c8da);
  color:#fff;
  text-decoration:none !important;
  font: italic normal 700 14px/19px Roboto, sans-serif;
  letter-spacing:0.28px;
}
.dipa-pill:hover{filter:brightness(.98);}

/* HERO back button */
.dipa-hero-wrap{position:relative;}
.dipa-back-top{
  position:absolute;
  top:-46px;
  right:6px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 14px;
  border-radius:18px;
  background:#fff;
  color:var(--dipa-4c7484);
  text-decoration:none !important;
  font: italic normal 600 13px/18px Roboto, sans-serif;
  border:1px solid rgba(76,116,132,.2);
  box-shadow:0 4px 10px rgba(0,0,0,.06);
  z-index:5;
  transition:all .15s ease;
}
.dipa-back-top .fa{font-size:12px;}
.dipa-back-top:hover{box-shadow:0 6px 14px rgba(0,0,0,.08);}

@media (max-width: 980px){
  .dipa-hero{grid-template-columns:1fr;min-height:auto}
  .dipa-hero-img{height:260px;border-radius:46px 46px 0 0}
  .dipa-hero-body{padding:26px}
  .dipa-hero-actions{position:static;margin-top:18px;justify-content:flex-start}
}

/* TERMINE */
.dipa-sec-title{
  font: normal normal bold 30px/39px Roboto, sans-serif;
  letter-spacing:0.6px;
  color:var(--dipa-4c7484);
  margin:65px 0 14px;
}

.dipa-term-filters{display:flex;gap:14px;align-items:center;margin:0 0 18px;}
.dipa-term-filters select{
  height:34px;min-width:180px;
  border:1px solid #cdd9e3;
  border-radius:12px;
  padding:0 12px;
  background:#fff;
  font: italic normal 500 14px/19px Roboto, sans-serif;
  color:var(--dipa-4c7484);
}

.dipa-terms-list{display:flex;flex-direction:column;gap:14px;}

/* ✅ FIX: give last column enough space for waitlist pill */
.dipa-term-row{
  background:#f4f7fa;
  border:1px solid #e0e8ef;
  border-radius:12px;
  padding:10px 18px;

  display:grid;
  grid-template-columns: 280px 1fr 90px 120px 190px; /* last column widened */
  align-items:center;
  column-gap:16px;

  box-sizing:border-box;
}

.dipa-term-date,
.dipa-term-loc{
  font: normal normal 300 14px/19px Roboto, sans-serif;
  color:var(--dipa-4c7484);
}

.dipa-term-details a{
  font: normal normal 300 14px/19px Roboto, sans-serif;
  color:var(--dipa-77c8da);
  text-decoration:underline;
}

.dipa-term-price{
  font: normal normal bold 14px/19px Roboto, sans-serif;
  color:var(--dipa-4c7484);
  text-align:right;
  white-space:nowrap;
}

.dipa-term-cart{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.dipa-cart-icon{
  width:46px;height:33px;border-radius:18px;
  display:flex;align-items:center;justify-content:center;
  background:var(--dipa-d80b4a);
  color:#fff;text-decoration:none;
}
.dipa-cart-icon .fa{font-size:16px;}

.dipa-term-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:33px;
  border-radius:18px;
  padding:0 12px;
  font: normal normal 700 12px/1 Roboto, sans-serif;
  letter-spacing:.2px;
  white-space:nowrap;
  box-sizing:border-box;
}

.dipa-term-badge.is-soldout{background:#e9eef4;color:var(--dipa-4c7484);}

.dipa-term-badge.is-disabled{background:#e9eef4;color:var(--dipa-4c7484);}
/* ✅ Proper waitlist CTA pill */
.dipa-term-badge.is-waitlist{
  height: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: #D21F4A;
  color: #fff !important;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  border: 0;
  text-decoration: none !important;
}

.dipa-term-badge.is-waitlist:hover{
  filter: brightness(0.97);
}

.dipa-term-badge.is-waitlist:active{
  transform: translateY(0);
}

.dipa-term-badge.is-waitlist:focus,
.dipa-term-badge.is-waitlist:focus-visible{
  outline: 3px solid rgba(210, 31, 74, 0.28);
  outline-offset: 3px;
}
/* "Weitere Termine" */
.dipa-more-wrap{margin:18px 0 0;text-align:center;}
.dipa-more-btn{
  background:none;border:none;
  font: normal normal 300 18px/24px Roboto, sans-serif;
  color:var(--dipa-4c7484);
  text-decoration:underline;
  cursor:pointer;
}
.dipa-more-btn .fa{margin-left:8px;color:var(--dipa-4c7484);}

/* BESCHREIBUNG */
.dipa-desc-title{
  font: normal normal bold 30px/39px Roboto, sans-serif;
  letter-spacing:0.6px;
  color:var(--dipa-4c7484);
  margin:65px 0 18px;
}

.dipa-box-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:18px;
}
.dipa-info-box{
  background:#fff;border:1px solid #e0e8ef;border-radius:12px;overflow:hidden;
}
.dipa-info-box .hd{
  background:#f4f7fa;border-bottom:1px solid #e0e8ef;
  padding:12px 18px;
  font: italic normal bold 18px/24px Roboto, sans-serif;
  color:var(--dipa-4c7484);
}
.dipa-info-box .bd{padding:16px 18px;font-size:16px;}
.dipa-check{display:flex;gap:12px;align-items:flex-start;margin:10px 0;}
.dipa-check .fa{color:var(--dipa-77c8da);margin-top:2px;font-size:12px!important;}
.dipa-check span{font: normal normal 300 14px/19px Roboto, sans-serif;color:var(--dipa-4c7484);}

.dipa-price-big{
  font: normal normal bold 22px/30px Roboto, sans-serif;
  color:var(--dipa-77c8da);
}
.dipa-price-sub{
  font: normal normal 300 14px/19px Roboto, sans-serif;
  color:var(--dipa-4c7484);
  margin-left:6px;
}

.dipa-long{
  margin-top:28px;
  font: normal normal 300 16px/24px Roboto, sans-serif;
  color:var(--dipa-4c7484);
}
.dipa-long p{margin-bottom:10px;}
.dipa-long h3{
  font: normal normal bold 18px/24px Roboto, sans-serif;
  color:var(--dipa-4c7484);
  margin:40px 0 20px;
}
.dipa-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:14px 0 0;}
.dipa-ul{margin:0;padding-left:18px;}
.dipa-ul li{margin:6px 0;list-style:"- " !important;}

@media (max-width: 980px){
  .dipa-term-row{
    grid-template-columns:1fr;
    row-gap:10px;
    text-align:left;
  }
  .dipa-term-price{text-align:left;}
  .dipa-term-cart{justify-content:flex-start;}
  .dipa-box-grid{grid-template-columns:1fr;}
  .dipa-theme-wrap{
	max-width:100%;    
    padding: 30px 0;
 }
  .dipa-two-cols{display:block;}

  .dipa-back-top{
    position: static;
    margin: 0 0 12px;
  }
	#main {
		padding: 0;
	}
}

/* Default Waitlist Form (Plugin) verstecken – wir nutzen unser Modal */
.tribe-tickets__waitlist,
.tribe-tickets__waitlist-form,
.tribe-tickets__waitlist-attendee,
form[id*="waitlist"],
form[class*="waitlist"]{
  display:none !important;
}


/* Detail page waitlist modal only */
.dipa-wl{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.dipa-wl.is-open{
  display: block;
}

.dipa-wl__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(24, 38, 64, 0.35);
}

.dipa-wl__box{
  position: relative;
  z-index: 2;
  width: min(520px, calc(100% - 32px));
  margin: 28vh auto 0;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.dipa-wl__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #eef2f6;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.dipa-wl__title{
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
}

.dipa-wl__form label{
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}

.dipa-wl__form input{
  width: 100%;
  border: 1px solid #d7e6ee;
  border-radius: 12px;
  padding: 12px 14px;
}

.dipa-wl__form button[type="submit"]{
  margin-top: 16px;
  background: #7cc7d8;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.dipa-wl__msg{
  margin-top: 12px;
}

.dipa-th-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}
.dipa-th-modal.is-open{
  display: block;
}
.dipa-th-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.dipa-th-modal__box{
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 25% auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.dipa-th-modal__title{
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}
.dipa-th-modal__content{
  white-space: pre-line;
  line-height: 1.6;
  color: #344b58;
}
.dipa-th-modal__close{
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
body.dipa-modal-open{
  overflow: hidden;
}

#termine,
#beschreibung {
  scroll-margin-top: 210px;
}

html {
  scroll-behavior: smooth;
}

.dipa-term-cart a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e53950; /* dein rot */
  color: #fff;
  transition: all 0.2s ease;
}

/* ICON */
.dipa-term-cart a i,
.dipa-term-cart a .fa {
  color: #fff;
  transition: all 0.2s ease;
}

/* HOVER – subtiler Effekt */
.dipa-term-cart a:hover {
  background: #c6283e; /* etwas dunkler */
  transform: scale(1.05);
}

/* optional: Icon leicht heller beim Hover */
.dipa-term-cart a:hover i,
.dipa-term-cart a:hover .fa {
  color: #ffffff;
}

.fusion-tb-header .fusion-sticky-container {
	z-index: 999999 !important;
}