/* =====================================================================
   INVESTICOM 2027 · TICKETSEITE AM EVENTTAG
   Laedt nach /assets/invc.css und nutzt dessen Token, Buttons, Chips,
   Haekchen-Liste und Footer. Hier steht nur, was die Seite neu braucht.
   ===================================================================== */

/* hidden muss gegen die display-Werte unten gewinnen */
.t27 [hidden] { display: none !important; }

/* =====================================================================
   Intro beim Laden
   Alles mit .t27-in steigt nacheinander auf, gestaffelt ueber --i.
   Reine CSS-Animation: ohne JavaScript steht am Ende trotzdem alles da.
   ===================================================================== */
@keyframes t27-auf {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.t27-in {
  animation: t27-auf 900ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 110ms + 150ms);
}

/* =====================================================================
   1 · Hero
   ===================================================================== */
.t27-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 72px 0 96px;
  background: radial-gradient(120% 90% at 50% 40%, var(--hero-mid) 0%, #01020F 46%, var(--bg) 78%);
}
.t27-hero-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.t27-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .75; }
.t27-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 92%);
  z-index: -1;
  pointer-events: none;
}

/* Lichtkegel hinter der Headline, atmet langsam */
@keyframes t27-atmen {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: .9;  transform: translate(-50%, -50%) scale(1.12); }
}
.t27-glow {
  position: absolute;
  left: 50%; top: 46%;
  width: 900px; height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(1, 14, 204, .55) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: t27-atmen 7s ease-in-out infinite;
}

.t27-hero-inner { text-align: center; }
.t27-logo { width: 240px; height: auto; margin: 0 auto 40px; }

/* Aktionsmarke ueber der Headline, Punkt pulsiert */
.t27-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 8px 16px 8px 13px;
  border-radius: var(--r-pill);
  background: rgba(225, 255, 32, .1);
  box-shadow: inset 0 0 0 1px var(--line-lime);
  color: var(--lime);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
}
@keyframes t27-puls {
  0%   { box-shadow: 0 0 0 0 rgba(225, 255, 32, .7); }
  70%  { box-shadow: 0 0 0 10px rgba(225, 255, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 255, 32, 0); }
}
.t27-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lime);
  animation: t27-puls 1.8s ease-out infinite;
}

/* Headline: jede Zeile steigt aus ihrer eigenen Maske */
.t27-h1 {
  font-size: 104px;
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0 0 22px;
}
.t27-ln {
  display: block;
  overflow: hidden;
  /* Luft fuer Unterlaengen, sonst schneidet die Maske sie ab */
  padding-bottom: .06em;
  margin-bottom: -.06em;
}
.t27-ln > span { display: inline-block; animation: t27-maske 1100ms var(--ease) both; }
.t27-ln:nth-child(1) > span { animation-delay: 260ms; }
.t27-ln:nth-child(2) > span { animation-delay: 380ms; }
@keyframes t27-maske {
  from { transform: translateY(105%); }
  to   { transform: none; }
}

/* Jahreszahl: die letzte Ziffer rollt von 6 auf 7. Das Band traegt beide
   Ziffern untereinander und faehrt um eine Ziffernhoehe nach oben. Ohne
   Animation steht es schon auf der 7. */
.t27-jahr { display: inline-block; white-space: nowrap; }
.t27-roll {
  display: inline-block;
  vertical-align: top;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  color: var(--lime);
  -webkit-text-fill-color: var(--lime);
}
.t27-roll-band { display: flex; flex-direction: column; transform: translateY(-50%); animation: t27-rollen 1000ms cubic-bezier(.7, 0, .2, 1) 1350ms both; }
.t27-roll-band > span { display: block; height: 1em; line-height: 1; }
/* Gleiche Box wie die Rollziffer, sonst sitzt die 7 hoeher als die 202:
   ein Inline-Span misst die volle Schrifthoehe, der Block nur 1em. */
.t27-jahr .grad { display: inline-block; vertical-align: top; height: 1em; line-height: 1; }
@keyframes t27-rollen {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.t27-sub {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0 0 24px;
}
.t27-hero .chips { margin-bottom: 40px; }

/* =====================================================================
   Countdown
   Grosse Ziffern, jede Aenderung kippt von oben herein.
   ===================================================================== */
.t27-cd { margin: 0 auto 36px; }
.t27-cd-label {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.t27-cd-reihe { display: inline-flex; align-items: flex-start; gap: 10px; }
.t27-cd-i {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 104px;
  padding: 16px 10px 12px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -24px rgba(1, 14, 204, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.t27-cd-i b {
  display: block;
  font-family: var(--display);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.t27-cd-i i {
  margin-top: 6px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.t27-cd-sep {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  padding-top: 18px;
  color: var(--fg-mute);
}
@keyframes t27-kippen {
  from { transform: translateY(-55%) rotateX(70deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.t27-flip { animation: t27-kippen 420ms var(--ease) both; transform-origin: 50% 100%; }

.t27-hero-btn { font-size: 18px; padding: 18px 34px; }

/* =====================================================================
   2 · Tickets
   ===================================================================== */
.t27-tickets {
  padding: 40px 0 110px;
  background:
    radial-gradient(70% 45% at 50% 35%, rgba(12, 26, 150, .5) 0%, transparent 68%),
    var(--bg);
}
.t27-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 920px;
  margin: 72px auto 0;
}

.t27-card {
  --mx: 50%; --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 150px 32px 30px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #141C4E 0%, #0A0F2E 55%, #070A1E 100%);
  box-shadow: inset 0 0 0 1px rgba(140, 160, 255, .28), 0 26px 60px -26px rgba(0, 0, 0, .9);
  isolation: isolate;
}
.t27-card--b {
  background: linear-gradient(180deg, #0A18FF 0%, var(--blue) 55%, #060B59 100%);
  box-shadow: 0 0 80px -18px var(--blue-glow), inset 0 0 0 1px rgba(255, 255, 255, .18),
              0 26px 60px -26px rgba(0, 0, 0, .9);
}
/* Licht, das der Maus folgt. Sitzt unter dem Inhalt. */
.t27-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .12), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* Ticket-Abriss als Grafik, ragt oben aus der Karte. Aus CSS statt Bild,
   weil die Ticketbilder der LP "Classic" und "Premium" eingebrannt haben. */
.t27-stub {
  position: absolute;
  top: -48px; left: 50%;
  width: 82%;
  aspect-ratio: 2.05 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  isolation: isolate;
  /* Schatten am Wrapper, Flaeche mit Maske im ::before. Auf demselben
     Element wuerde die Maske den Schatten mit wegschneiden. */
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .65));
  transform: translateX(-50%) rotate(-4deg);
  transition: transform 900ms var(--ease);
}
/* Flaeche mit den zwei halbrunden Kerben links und rechts */
.t27-stub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(135deg, #06081C 0%, #0B1250 60%, #121C7A 100%);
  box-shadow: inset 0 0 0 1px rgba(140, 160, 255, .35);
  -webkit-mask:
    radial-gradient(circle 15px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 15px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 15px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 15px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.t27-card--b .t27-stub {
  color: var(--lime-ink);
  transform: translateX(-50%) rotate(3deg);
}
.t27-card--b .t27-stub::before {
  background: linear-gradient(135deg, #C8F216 0%, var(--lime) 60%, #EEFF7A 100%);
  box-shadow: none;
}
.t27-stub img { width: 54%; height: auto; }
.t27-card--b .t27-stub img { filter: brightness(0); }
.t27-stub-jahr {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.t27-stub-name {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}
.t27-stub-name .todo { letter-spacing: 0; text-transform: none; font-size: 12px; }
/* Gestrichelte Abrisskante quer durchs Ticket. Haengt am Namen statt
   absolut am Ticket, sonst lief sie je nach Hoehe mitten durch die
   Schrift. So steht sie immer zwischen Jahreszahl und Namen. */
.t27-stub-name {
  position: relative;
  align-self: stretch;
  text-align: center;
  padding-top: 12px;
}
.t27-stub-name::before {
  content: "";
  position: absolute;
  top: 0; left: 4px; right: 4px;
  border-top: 1.5px dashed currentColor;
  opacity: .3;
}

/* Beim Einblenden kippt das Ticket aus der Schraeglage herein */
.t27-card.rv .t27-stub { transform: translateX(-50%) translateY(26px) rotate(-12deg); }
.t27-card--b.rv .t27-stub { transform: translateX(-50%) translateY(26px) rotate(11deg); }
.t27-card.rv.in .t27-stub { transform: translateX(-50%) rotate(-4deg); transition-delay: calc(var(--d, 0ms) + 120ms); }
.t27-card--b.rv.in .t27-stub { transform: translateX(-50%) rotate(3deg); }
@media (hover: hover) {
  .t27-card:hover .t27-stub { transform: translateX(-50%) translateY(-6px) rotate(-2deg); }
  .t27-card--b:hover .t27-stub { transform: translateX(-50%) translateY(-6px) rotate(1deg); }
}

.t27-card .tk-name { margin-bottom: 16px; }
.t27-card .list-check { margin-bottom: 26px; }

/* Preis: der Strich zieht sich durch den alten Preis, dann landet der neue */
.t27-price {
  margin: auto 0 6px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--display);
}
.t27-price s {
  position: relative;
  font-size: 28px;
  font-weight: 600;
  opacity: .55;
  text-decoration: none;
}
.t27-price s::after {
  content: "";
  position: absolute;
  left: -4%; top: 52%;
  width: 108%;
  height: 2.5px;
  background: var(--lime);
  border-radius: 2px;
  transform: rotate(-8deg) scaleX(1);
  transform-origin: 0 50%;
}
.t27-card--b .t27-price s::after { background: #fff; }
/* Mit JavaScript startet der Strich leer und zieht sich beim Einblenden */
.t27-card[data-karte] .t27-price s::after { transition: transform 520ms var(--ease); }
.t27-card[data-karte]:not(.t27-strich) .t27-price s::after { transform: rotate(-8deg) scaleX(0); }
.t27-now {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
@keyframes t27-landen {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); text-shadow: 0 0 26px rgba(225, 255, 32, .55); }
  100% { transform: scale(1); }
}
.t27-landet { display: inline-block; animation: t27-landen 600ms var(--ease); }

.t27-stufe {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
}
.t27-card--b .t27-stufe { color: #fff; }

.t27-card .tk-form { margin-bottom: 0; }
.t27-card .tk-form .btn { width: 100%; }
.t27-card .btn[disabled] {
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .7);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* =====================================================================
   Preisleiter
   Linie unter den Stufen, die sich bis zur aktuellen Stufe fuellt.
   ===================================================================== */
.t27-leiter {
  --p: 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 720px;
  margin: 64px auto 0;
  padding: 0;
  list-style: none;
}
.t27-leiter::before,
.t27-leiter::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px; right: 9px;
  height: 2px;
  border-radius: 2px;
}
.t27-leiter::before { background: var(--line); }
.t27-leiter::after {
  background: var(--lime);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1200ms var(--ease) 300ms;
}
.t27-leiter.in::after { transform: scaleX(var(--p)); }

.t27-leiter li {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 14px;
  color: var(--fg-mute);
}
.t27-leiter li:first-child { align-items: flex-start; text-align: left; }
.t27-leiter li:last-child { align-items: flex-end; text-align: right; }
.t27-leiter b { font-family: var(--display); font-size: 17px; color: var(--fg-dim); }
.t27-leiter-punkt {
  width: 20px; height: 20px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--line);
}
.t27-leiter .ist-vorbei .t27-leiter-punkt { background: var(--lime); box-shadow: none; }
.t27-leiter .ist-jetzt .t27-leiter-punkt {
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(225, 255, 32, .2);
  animation: t27-puls 1.8s ease-out infinite;
}
.t27-leiter .ist-jetzt b { color: #fff; }
.t27-leiter .ist-jetzt .t27-leiter-wann { color: var(--lime); font-weight: 600; }
.t27-leiter .ist-vorbei { opacity: .55; }

/* =====================================================================
   Tablet und Handy
   ===================================================================== */
@media (max-width: 1023px) {
  .t27-h1 { font-size: 80px; }
}

@media (max-width: 760px) {
  .t27-grid { grid-template-columns: 1fr; max-width: 460px; gap: 84px; margin-top: 66px; }
}

@media (max-width: 640px) {
  /* Erstes Bild auf 375 x 640: Flag, Headline, Countdown und Button
     muessen ohne Scrollen sichtbar sein. */
  .t27-hero { padding: 34px 0 56px; }
  .t27-logo { width: 170px; margin-bottom: 24px; }
  .t27-flag { font-size: 13px; margin-bottom: 18px; padding: 7px 13px 7px 11px; }
  .t27-h1 { font-size: 50px; margin-bottom: 14px; }
  .t27-sub { font-size: 19px; margin-bottom: 16px; }
  .t27-hero .chips { margin-bottom: 24px; gap: 8px; }
  .t27-cd { margin-bottom: 22px; }
  .t27-cd-label { font-size: 12px; margin-bottom: 9px; }
  .t27-cd-reihe { gap: 6px; }
  .t27-cd-i { min-width: 74px; padding: 11px 6px 9px; border-radius: var(--r-md); }
  .t27-cd-i b { font-size: 34px; }
  .t27-cd-i i { font-size: 10px; }
  .t27-cd-sep { font-size: 28px; padding-top: 12px; }
  .t27-hero-btn { width: 100%; max-width: 340px; }

  .t27-tickets { padding: 24px 0 80px; }
  .t27-card { padding: 128px 22px 24px; }
  .t27-stub-jahr { font-size: 36px; }
  .t27-now { font-size: 40px; }

  .t27-leiter { margin-top: 52px; }
  .t27-leiter li { font-size: 12px; }
  .t27-leiter b { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .t27-in, .t27-ln > span, .t27-roll-band, .t27-dot, .t27-glow,
  .t27-flip, .t27-landet, .t27-leiter .ist-jetzt .t27-leiter-punkt { animation: none !important; }
  .t27-card.rv .t27-stub { transform: translateX(-50%) rotate(-4deg); }
  .t27-card--b.rv .t27-stub { transform: translateX(-50%) rotate(3deg); }
  .t27-card[data-karte]:not(.t27-strich) .t27-price s::after { transform: rotate(-8deg); }
  .t27-leiter::after { transition: none; transform: scaleX(var(--p)); }
}
