/* ═══════════════════════════════════════════════
   IOL Ticketphasen – Frontend CSS  v2.3
   Stil: Light / Weiß – Gelb + Blau
   Prefix: iol-tp-
   PixelPanther · https://pixelpanther.eu
═══════════════════════════════════════════════ */

/* ── VARIABLEN ── */
:root {
  --iol-yellow: rgb(249, 208, 1);
  --iol-blue:   #4a80f9;
  --iol-white:  #ffffff;
}

/* ── WRAPPER ── */
.iol-tp {
  padding: 0 0 2rem;
  box-sizing: border-box;
}

/* ═══════════════════════
   STEPPER
═══════════════════════ */
.iol-tp-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 2rem;
}
.iol-tp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 160px;
}
.iol-tp-step::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(-50%);
  right: calc(50%);
  height: 2px;
  background: #e8e8e8;
  z-index: 0;
}
.iol-tp-step:first-child::before { display: none; }
.iol-tp-step--done::before   { background: var(--iol-blue); }
.iol-tp-step--active::before { background: linear-gradient(90deg, var(--iol-blue), var(--iol-yellow)); }

.iol-tp-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid #e0e0e0;
  background: #f5f5f5;
  color: #bbb;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.iol-tp-dot--done {
  background: var(--iol-blue);
  border-color: var(--iol-blue);
  color: var(--iol-white);
}
.iol-tp-dot--active {
  background: var(--iol-yellow);
  border-color: var(--iol-yellow);
  color: rgba(66, 66, 66, 1);
  box-shadow: 0 0 0 5px rgba(249, 208, 1, 0.22);
}
.iol-tp-dot--locked { opacity: 0.4; }

.iol-tp-step--locked { cursor: pointer; }
.iol-tp-step--locked:hover .iol-tp-dot--locked {
  opacity: 0.75;
  border-color: var(--iol-blue);
  color: var(--iol-blue);
}

.iol-tp-step__lbl {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
  text-align: center;
}
.iol-tp-step--done   .iol-tp-step__lbl { color: var(--iol-blue); }
.iol-tp-step--active .iol-tp-step__lbl { color: rgba(66, 66, 66, 1); font-weight: 700; }

/* ═══════════════════════
   TICKET-KARTEN
═══════════════════════ */
.iol-tp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 2rem;
}
@media (max-width: 540px) {
  .iol-tp-cards { grid-template-columns: 1fr; }
}

.iol-tp-card-wrap {
  padding: 4px 4px 10px;
  margin-bottom: -10px;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
}
.iol-tp-card-wrap:hover { z-index: 10; }

.iol-tp-card {
  border-radius: 16px;
  padding: 28px 24px 28px 28px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
  height: 100%;
  border: none;
}

/* Linke Karte – gelber Hintergrund */
.iol-tp-card:not(.iol-tp-card--feat) {
  background: var(--iol-yellow);
}
.iol-tp-card:not(.iol-tp-card--feat):hover {
  background: #f5ca00;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(249, 208, 1, 0.4);
}

/* Rechte Karte – blauer Hintergrund */
.iol-tp-card--feat {
  background: rgba(81, 151, 237, 1);
}
.iol-tp-card--feat:hover {
  background: #3d74ee;
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(74, 128, 249, 0.35);
}

/* Ribbon */
.iol-tp-card--feat::after {
  content: 'Top Deal';
  position: absolute;
  width: 120px;
  text-align: center;
  top: 24px;
  right: -30px;
  background: var(--iol-yellow);
  color: rgba(66, 66, 66, 1);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  transform: rotate(45deg);
  transform-origin: center;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

/* Badge */
.iol-tp-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-size: 0.7em;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
}
.iol-tp-card:not(.iol-tp-card--feat) .iol-tp-card__badge {
  background: rgba(66, 66, 66, 0.12);
  color: rgba(66, 66, 66, 1);
  border: 1px solid rgba(66, 66, 66, 0.2);
}
.iol-tp-card--feat .iol-tp-card__badge {
  background: rgba(255, 255, 255, 0.18);
  color: var(--iol-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* h3 – Titel */
.iol-tp-card h3 {
  margin: 0 0 10px !important;
  padding: 0 !important;
}
.iol-tp-card:not(.iol-tp-card--feat) h3 { color: rgba(66, 66, 66, 1) !important; }
.iol-tp-card--feat h3                    { color: var(--iol-white) !important; }

/* p – linke Karte dunkel, rechte Karte weiß */
.iol-tp-card p { margin: 0 0 1rem !important; }
.iol-tp-card:not(.iol-tp-card--feat) p { color: rgba(66, 66, 66, 0.75) !important; }
.iol-tp-card--feat p                    { color: rgba(255, 255, 255, 0.82) !important; }

/* Preis */
.iol-tp-card h3.iol-tp-card__price {
  font-size: 40px !important;
  margin: 0 0 1.1rem !important;
  padding: 0 !important;
  line-height: 1.1;
}
.iol-tp-card:not(.iol-tp-card--feat) h3.iol-tp-card__price { color: rgba(66, 66, 66, 1) !important; }
.iol-tp-card--feat h3.iol-tp-card__price                    { color: var(--iol-yellow) !important; }

/* Button */
.iol-tp-card__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  vertical-align: middle;
  font-size: 14px;
  padding: 0.9em 1.5em;
  margin: 0;
  line-height: 125%;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 0 none;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease-in-out;
}
/* Linke Karte → blauer Button */
.iol-tp-card:not(.iol-tp-card--feat) .iol-tp-card__btn {
  background-color: var(--iol-blue) !important;
  color: var(--iol-white) !important;
}
.iol-tp-card:not(.iol-tp-card--feat) .iol-tp-card__btn:hover {
  background-color: #3d74ee !important;
  color: var(--iol-white) !important;
  text-decoration: none !important;
}
/* Rechte Karte → gelber Button */
.iol-tp-card--feat .iol-tp-card__btn {
  background-color: var(--iol-yellow) !important;
  color: rgba(66, 66, 66, 1) !important;
}
.iol-tp-card--feat .iol-tp-card__btn:hover {
  background-color: #f5ca00 !important;
  color: rgba(66, 66, 66, 1) !important;
  text-decoration: none !important;
}
.iol-tp-card__btn i {
  padding-left: 10px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
}
.iol-tp-card__btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══════════════════════
   PHASENÜBERSICHT LABEL
═══════════════════════ */
.iol-tp-phases-label {
  text-align: center;
  margin-bottom: 1.5rem;
}
.iol-tp-phases-label h3 {
  color: rgba(128, 128, 128, 1) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ═══════════════════════
   PHASENLISTE
═══════════════════════ */
.iol-tp-plist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.iol-tp-prow {
  display: grid;
  grid-template-columns: 40px 170px 1fr 150px;
  align-items: center;
  column-gap: 1rem;
  padding: 0 1.25rem;
  height: 64px;
  box-sizing: border-box;
  text-decoration: none;
  position: relative;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.iol-tp-prow__date { display: none; }

/* done → blauer Hintergrund */
.iol-tp-prow--done {
  background: var(--iol-blue);
  opacity: 1;
}
/* active → gelber Hintergrund */
.iol-tp-prow--active {
  background: var(--iol-yellow);
  cursor: pointer;
}
.iol-tp-prow--active:hover {
  background: #f5ca00;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(249, 208, 1, 0.4);
}
/* locked → blauer Hintergrund, gedimmt */
.iol-tp-prow--locked {
  background: var(--iol-blue);
  opacity: 0.55;
  cursor: pointer;
}
.iol-tp-prow--locked:hover {
  opacity: 0.75;
  transform: translateY(-2px);
}

/* ── Icon ── */
.iol-tp-prow__ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.iol-tp-ico--done   { background: rgba(255, 255, 255, 0.2); color: var(--iol-white); }
.iol-tp-ico--active { background: rgba(66, 66, 66, 0.15); color: rgba(66, 66, 66, 1); font-family: 'Big Shoulders Display', sans-serif; font-size: 0.9rem; font-weight: 700; }
.iol-tp-ico--locked { background: rgba(255, 255, 255, 0.2); color: var(--iol-white); }

/* ── Name + Badge ── */
.iol-tp-prow__namecol {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.iol-tp-prow__name {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.iol-tp-prow--done   .iol-tp-prow__name { color: var(--iol-white); }
.iol-tp-prow--active .iol-tp-prow__name { color: rgba(66, 66, 66, 1); }
.iol-tp-prow--locked .iol-tp-prow__name { color: var(--iol-white); }

.iol-tp-badge-aktiv {
  font-size: 0.5rem;
  background: rgba(66, 66, 66, 0.15);
  color: rgba(66, 66, 66, 1);
  border: 1px solid rgba(66, 66, 66, 0.25);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}

/* ── Untertitel ── */
.iol-tp-prow__sub {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 !important;
  padding: 0 !important;
}
.iol-tp-prow--done   .iol-tp-prow__sub { color: rgba(255, 255, 255, 0.7); }
.iol-tp-prow--active .iol-tp-prow__sub { color: rgba(66, 66, 66, 0.65); }
.iol-tp-prow--locked .iol-tp-prow__sub { color: rgba(255, 255, 255, 0.7); }

/* ── Preis ── */
.iol-tp-prow__price {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  margin: 0 !important;
  padding: 0 !important;
}
.iol-tp-prow--done   .iol-tp-prow__price { color: rgba(255, 255, 255, 0.9); }
.iol-tp-prow--active .iol-tp-prow__price { color: rgba(66, 66, 66, 1); }
.iol-tp-prow--locked .iol-tp-prow__price { color: rgba(255, 255, 255, 0.9); }

/* ═══════════════════════
   MOBILE ≤ 720px
═══════════════════════ */
@media (max-width: 720px) {
  .iol-tp-plist { max-width: 100%; }
  .iol-tp-prow {
    grid-template-columns: 32px 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding: 0.85rem 1rem;
    gap: 0.3rem 0.75rem;
  }
  .iol-tp-prow__ico     { grid-row: 1 / 3; grid-column: 1; align-self: center; }
  .iol-tp-prow__namecol { grid-row: 1;     grid-column: 2; }
  .iol-tp-prow__price   { grid-row: 1; grid-column: 3; font-family: 'Big Shoulders Display', sans-serif; font-size: 0.9rem; }
  .iol-tp-prow__sub     { grid-row: 2;     grid-column: 2 / 4; }
  .iol-tp-step::before  { left: calc(-50%); right: calc(50%); }
}

/* ═══════════════════════
   FUßNOTE – erbt Theme p-Farbe
═══════════════════════ */
.iol-tp-foot {
  text-align: center;
  margin-top: 1.4rem;
}
.iol-tp-foot p {
  margin: 0 !important;
  padding: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════
   POPUP
═══════════════════════ */
.iol-tp-popup {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px) brightness(0.6);
  -webkit-backdrop-filter: blur(6px) brightness(0.6);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.iol-tp-popup--on {
  opacity: 1;
  pointer-events: all;
}
.iol-tp-popup__box {
  background: var(--iol-white);
  border: 1.5px solid #eeeeee;
  border-bottom: 3px solid var(--iol-yellow);
  border-radius: 20px;
  padding: 2rem 1.6rem 1.6rem;
  width: 320px;
  max-width: 92vw;
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}
.iol-tp-popup--on .iol-tp-popup__box {
  transform: scale(1) translateY(0);
}
.iol-tp-popup__close {
  position: absolute;
  top: 11px; right: 13px;
  background: none; border: none;
  color: #bbb;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  display: flex;
  align-items: center;
  z-index: 1;
  transition: color 0.15s;
}
.iol-tp-popup__close:hover { color: rgba(66, 66, 66, 1); }
.iol-tp-popup__ico {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(74, 128, 249, 0.08);
  border: 1.5px solid rgba(74, 128, 249, 0.28);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.7rem;
  color: var(--iol-blue);
  position: relative; z-index: 1;
}
.iol-tp-popup__soon {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--iol-blue);
  margin-bottom: 0.25rem;
  position: relative; z-index: 1;
}
.iol-tp-popup__name {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(66, 66, 66, 1);
  margin-bottom: 0.15rem;
  line-height: 1.1;
  text-transform: uppercase;
  position: relative; z-index: 1;
}
.iol-tp-popup__date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--iol-blue);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  position: relative; z-index: 1;
}
.iol-tp-popup__text {
  font-size: 0.8rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
  position: relative; z-index: 1;
}
.iol-tp-popup__text strong { color: rgba(66, 66, 66, 1); }
.iol-tp-popup__btn {
  display: block;
  width: 100%;
  padding: 0.72rem;
  background: var(--iol-blue);
  border: none;
  border-radius: 7px;
  color: var(--iol-white) !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative; z-index: 1;
  transition: background 0.2s ease;
}
.iol-tp-popup__btn:hover { background: #3d74ee; }