/* ═══════════════════════════════════════════════
   IOL Ticketphasen – Frontend CSS  v1.3
   Stil: iols-highlights (border-bottom, glow unten)
   Prefix: iols-tp-
   PixelPanther · https://pixelpanther.eu
═══════════════════════════════════════════════ */

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

/* ═══════════════════════
   STEPPER
   Linie läuft als ::before von Mitte zu Mitte
   → erste/letzte Phase korrekt zentriert
═══════════════════════ */
.iols-tp-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 2rem;
}
.iols-tp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 160px;
}
/* Linie von Mitte des vorherigen Dots bis Mitte dieses Dots */
.iols-tp-step::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(-50%);
  right: calc(50%);
  height: 1px;
  background: rgba(255,255,255,0.1);
  z-index: 0;
}
.iols-tp-step:first-child::before { display: none; }
.iols-tp-step--done::before,
.iols-tp-step--active::before { background: rgba(201,168,76,0.45); }

.iols-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: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.35);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.iols-tp-dot--done   { background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.4); color: rgba(191, 167, 69, 1); }
.iols-tp-dot--active { background: rgba(191, 167, 69, 1); border-color: rgba(191, 167, 69, 1); color: #0e0d0b; box-shadow: 0 0 0 5px rgba(201,168,76,0.15); }
.iols-tp-dot--locked { opacity: 0.42; }

.iols-tp-step--locked { cursor: pointer; }
.iols-tp-step--locked:hover .iols-tp-dot--locked {
  opacity: 0.72;
  border-color: rgba(201,168,76,0.4);
  color: rgba(201,168,76,0.7);
}

.iols-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;
}
.iols-tp-step--done   .iols-tp-step__lbl { color: rgba(201,168,76,0.6); }
.iols-tp-step--active .iols-tp-step__lbl { color: rgba(191, 167, 69, 1); }

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

/* Wrapper: padding-bottom für Hover-Lift-Schutz */
.iols-tp-card-wrap {
  padding: 4px 4px 10px;
  margin-bottom: -10px;
  box-sizing: border-box;
  position: relative;
  z-index: 0;
}
.iols-tp-card-wrap:hover { z-index: 10; }

.iols-tp-card {
  background: linear-gradient(to bottom right, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(201,168,76,0.25);
  border-bottom: 2px solid rgba(191, 167, 69, 1);
  border-radius: 20px;
  padding: 28px 24px 28px 28px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  height: 100%;
}

.iols-tp-card:hover {
  border-color: rgba(201,168,76,0.6);
  border-bottom-color: rgba(191, 167, 69, 1);
  background: rgba(201,168,76,0.06);
  transform: translateY(-4px);
}
}
.iols-tp-card--feat { border-color: rgba(201,168,76,0.5); }
.iols-tp-card--feat:hover { border-color: rgba(201,168,76,0.7); }

/* Ribbon "Top Deal" auf der Featured-Karte */
.iols-tp-card--feat::after {
  content: 'Top Deal';
  position: absolute;
  width: 120px;
  text-align: center;
  top: 24px;
  right: -30px;
  background: rgba(191, 167, 69, 1);
  color: #0e0d0b;
  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 — p-Tag-Schrift vom Theme */
.iols-tp-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(201,168,76,0.08);
  color: rgba(191, 167, 69, 1);
  border: 1px solid rgba(201,168,76,0.22);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-size: 0.7em;
}

/* h3 — Theme-Styling bleibt, nur Farbe sichern */
.iols-tp-card h3 {
  color: #ffffff !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

/* p — Theme-Styling bleibt, keine Farbe */
.iols-tp-card p {
  margin: 0 0 1rem !important;
}

/* Preis — h3-Tag, nur Größe + Farbe überschreiben, Rest vom Theme */
.iols-tp-card h3.iols-tp-card__price {
  font-size: 40px !important;
  color: rgba(191, 167, 69, 1) !important;
  margin: 0 0 1.1rem !important;
  padding: 0 !important;
  line-height: 1.1;
}

/* Button — Solid Gold Stil */
.iols-tp-card__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  vertical-align: middle;
  overflow: hidden;
  font-size: 16px;
  padding: 1.05em 2.15em;
  margin: 0;
  line-height: 125%;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: #000000 !important;
  background-color: #C9A84C !important;
  border: 0 none;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease-in-out;
}
.iols-tp-card__btn:hover {
  background-color: #DBBE68 !important;
  color: #000000 !important;
  text-decoration: none !important;
}
.iols-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;
}
.iols-tp-card__btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══════════════════════
   PHASENÜBERSICHT LABEL
   h3-Tag vom Theme
═══════════════════════ */
.iols-tp-phases-label {
  text-align: center;
  margin-bottom: 2rem;
}
.iols-tp-phases-label h3 {
  color: rgba(191, 167, 69, 1) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ═══════════════════════
   PHASENLISTE
   border-bottom: 2px gold
   glow von unten
═══════════════════════ */
.iols-tp-plist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.iols-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;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(201,168,76,0.18);
  border-bottom: 2px solid rgba(201,168,76,0.35);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
/* Datum: im HTML vorhanden (interne Logik), für Besucher unsichtbar */
.iols-tp-prow__date {
  display: none;
}

.iols-tp-prow--locked { cursor: pointer; }
.iols-tp-prow--locked:hover {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.5);
  border-bottom-color: rgba(191, 167, 69, 1);
  transform: translateY(-2px);
}
.iols-tp-prow--locked:hover .iols-tp-prow__name { color: rgba(191, 167, 69, 1); }
.iols-tp-prow--locked:hover .iols-tp-prow__ico   { border-color: rgba(201,168,76,0.35); color: rgba(201,168,76,0.6); }

.iols-tp-prow--active {
  background: linear-gradient(to bottom right, rgba(201,168,76,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border-color: rgba(201,168,76,0.35);
  border-bottom-color: rgba(191, 167, 69, 1);
}
.iols-tp-prow--active:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.55);
  transform: translateY(-2px);
}
.iols-tp-prow--done {
  opacity: 0.44;
  border-bottom-color: rgba(201,168,76,0.2);
}

/* ── Icon ── */
.iols-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;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.iols-tp-ico--done   { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.28); color: rgba(191, 167, 69, 1); }
.iols-tp-ico--active { background: rgba(191, 167, 69, 1); color: #0e0d0b; font-family: 'Big Shoulders Display', sans-serif; font-size: 0.9rem; font-weight: 700; }
.iols-tp-ico--locked { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); color: rgba(255,255,255,0.25); }

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

.iols-tp-badge-aktiv {
  font-size: 0.5rem;
  background: rgba(201,168,76,0.15);
  color: rgba(191, 167, 69, 1);
  border: 1px solid rgba(201,168,76,0.32);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Spalte 3: Untertitel — Farbe vom Theme ── */
.iols-tp-prow__sub {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Spalte 4: Preis — Farbe vom Theme, weight bleibt, aktiv gold ── */
.iols-tp-prow__price {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  margin: 0 !important;
  padding: 0 !important;
}
.iols-tp-prow--active .iols-tp-prow__price { color: rgba(191, 167, 69, 1); }

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

  .iols-tp-step::before { left: calc(-50%); right: calc(50%); }
}


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

/* ═══════════════════════
   POPUP
   position:fixed + backdrop-filter blur
═══════════════════════ */
.iols-tp-popup {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px) brightness(0.45);
  -webkit-backdrop-filter: blur(6px) brightness(0.45);
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.iols-tp-popup--on {
  opacity: 1;
  pointer-events: all;
}
.iols-tp-popup__box {
  background: linear-gradient(to bottom right, rgba(20,16,8,0.97) 0%, rgba(12,10,4,0.97) 100%);
  border: 1px solid rgba(201,168,76,0.28);
  border-bottom: 2px solid rgba(191, 167, 69, 1);
  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);
}
.iols-tp-popup--on .iols-tp-popup__box {
  transform: scale(1) translateY(0);
}
/* Glow von unten auch im Popup */

.iols-tp-popup__close {
  position: absolute;
  top: 11px; right: 13px;
  background: none; border: none;
  color: rgba(255,255,255,0.22);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  display: flex;
  align-items: center;
  z-index: 1;
  transition: color 0.15s;
}
.iols-tp-popup__close:hover { color: rgba(255,255,255,0.65); }
.iols-tp-popup__ico {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.7rem;
  color: rgba(191, 167, 69, 1);
  position: relative; z-index: 1;
}
.iols-tp-popup__soon {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(191, 167, 69, 1);
  margin-bottom: 0.25rem;
  position: relative; z-index: 1;
}
.iols-tp-popup__name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.15rem;
  line-height: 1.1;
  position: relative; z-index: 1;
}
.iols-tp-popup__date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(201,168,76,0.6);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  position: relative; z-index: 1;
}
.iols-tp-popup__text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.44);
  line-height: 1.65;
  margin-bottom: 1.1rem;
  position: relative; z-index: 1;
}
.iols-tp-popup__text strong { color: rgba(255,255,255,0.82); }
.iols-tp-popup__btn {
  display: block;
  width: 100%;
  padding: 0.72rem;
  background: none;
  border: 1px solid rgba(201,168,76,0.38);
  border-radius: 7px;
  color: rgba(191, 167, 69, 1);
  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.3s ease, border-color 0.3s ease;
}
.iols-tp-popup__btn:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(191, 167, 69, 1);
}
