.t2k-story{
  --text:#1E2857;
  --muted:rgba(30,40,87,.75);
  --gold:#d6b45d;
  --gold-fill:#FAE492;
  --gold-text:#A8842C;
  --red:#e0685e;
  --red-deep:#C0473C;

  background:#ffffff;
  padding:24px 20px 80px;
  overflow:hidden;
  font-family:'Montserrat',sans-serif;
}

.t2k-story-flow{
  max-width:1100px;
  margin:auto;
}

/* ---------- row with the two problem cards ---------- */
.t2k-row{
  display:grid;
  grid-template-columns:1fr 52px 1fr;
  gap:14px;
  align-items:stretch;
}

/* ---------- cards ---------- */
.t2k-card{
  background:#ffffff;
  border:1px solid rgba(30,40,87,.08);
  border-radius:22px;
  padding:30px 32px;
  box-shadow:0 10px 30px rgba(30,40,87,.07);
  opacity:0;
  transform:translateY(36px);
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.22,.9,.35,1.1),
    box-shadow .3s ease;
}

.t2k-story.in .t2k-card{
  opacity:1;
  transform:translateY(0);
}

.t2k-story.in .t2k-row .t2k-card:nth-child(1){transition-delay:.05s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(3){transition-delay:.5s;}
.t2k-story.in .t2k-card--answer{transition-delay:1.8s;}

.t2k-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(30,40,87,.13);
}

/* problem cards: warm red tint */
.t2k-card--problem{
  display:flex;
  flex-direction:column;
  background:linear-gradient(165deg,#FFFCFB 0%,#FCEFEB 100%);
  border:1px solid rgba(224,104,94,.30);
}

.t2k-card--problem ul{
  flex:1;
  align-content:center;
}

.t2k-card--problem .t2k-cnum{
  border-color:rgba(224,104,94,.5);
}

.t2k-story.in .t2k-card--problem .t2k-cnum{
  background:#FADFD9;
  box-shadow:0 0 0 4px rgba(224,104,94,.15);
}

/* answer card: gold highlight, narrow and centered */
.t2k-card--answer{
  max-width:540px;
  margin:0 auto;
  background:linear-gradient(155deg,#fdf8ec 0%,#f7ecd2 100%);
  border:1px solid rgba(214,180,93,.55);
}

.t2k-story.in .t2k-card--answer{
  animation:t2kGlow 3.2s ease-in-out 2.4s infinite;
}

@keyframes t2kGlow{
  0%,100%{box-shadow:0 10px 30px rgba(30,40,87,.07), 0 0 0 0 rgba(214,180,93,.35);}
  50%{box-shadow:0 10px 30px rgba(30,40,87,.07), 0 0 0 10px rgba(214,180,93,0);}
}

.t2k-card--answer:hover{
  transform:translateY(-6px);
}

/* ---------- card head ---------- */
.t2k-card-head{
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}

.t2k-cnum{
  flex:0 0 auto;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(168,132,44,.45);
  background:#fff;
  color:var(--text);
  font-size:14px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .5s ease .2s, box-shadow .5s ease .2s;
}

.t2k-story.in .t2k-cnum{
  background:var(--gold-fill);
  box-shadow:0 0 0 4px rgba(250,228,146,.35);
}

/* kicker as badge pill */
.t2k-kicker{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:5px 12px;
  border-radius:999px;
  background:rgba(224,104,94,.14);
  color:var(--red-deep);
  margin:0 0 8px;
}

.t2k-card--answer .t2k-kicker{
  background:rgba(214,180,93,.22);
  color:var(--gold-text);
}

.t2k-card h3{
  margin:0;
  font-size:21px;
  font-weight:800;
  line-height:1.25;
  color:var(--text);
}

.t2k-card h3 em{
  font-style:normal;
  color:var(--gold-text);
}

.t2k-card p{
  margin:0 0 18px;
  font-size:14.5px;
  line-height:1.55;
  color:var(--muted);
}

.t2k-card--answer .t2k-card-side p{
  margin:0 0 18px;
}

/* ---------- bullets ---------- */
.t2k-card ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:1fr;
  gap:13px;
}

/* problem cards: two flowing bullet columns, compact */
.t2k-card--problem ul{
  display:block;
  columns:2;
  column-gap:30px;
}

.t2k-card--problem li{
  break-inside:avoid;
  margin-bottom:13px;
}

.t2k-card li{
  position:relative;
  padding-left:24px;
  font-size:14.5px;
  line-height:1.5;
  color:var(--muted);
  opacity:0;
  transform:translateX(-14px);
  transition:opacity .5s ease, transform .5s ease;
}

.t2k-card li::before{
  content:"";
  position:absolute;
  left:2px;
  top:8px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--red);
  transform:scale(0);
  transition:transform .4s cubic-bezier(.34,1.56,.64,1);
}

.t2k-story.in .t2k-card li{
  opacity:1;
  transform:translateX(0);
}

.t2k-story.in .t2k-card li::before{transform:scale(1);}

/* stagger bullets per card */
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(1),
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(1)::before{transition-delay:.35s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(2),
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(2)::before{transition-delay:.43s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(3),
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(3)::before{transition-delay:.51s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(4),
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(4)::before{transition-delay:.59s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(5),
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(5)::before{transition-delay:.67s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(6),
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(6)::before{transition-delay:.75s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(7),
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(7)::before{transition-delay:.83s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(8),
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(8)::before{transition-delay:.91s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(9),
.t2k-story.in .t2k-row .t2k-card:nth-child(1) li:nth-child(9)::before{transition-delay:.99s;}

.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(1),
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(1)::before{transition-delay:.8s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(2),
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(2)::before{transition-delay:.9s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(3),
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(3)::before{transition-delay:1s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(4),
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(4)::before{transition-delay:1.1s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(5),
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(5)::before{transition-delay:1.2s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(6),
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(6)::before{transition-delay:1.3s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(7),
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(7)::before{transition-delay:1.4s;}
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(8),
.t2k-story.in .t2k-row .t2k-card:nth-child(3) li:nth-child(8)::before{transition-delay:1.5s;}

/* ---------- answer checks (stacked) ---------- */
.t2k-checks{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.t2k-check{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:14.5px;
  font-weight:600;
  line-height:1.45;
  color:var(--text);
  opacity:0;
  transform:translateX(-14px);
  transition:opacity .5s ease, transform .5s ease;
}

.t2k-story.in .t2k-check{opacity:1;transform:translateX(0);}
.t2k-story.in .t2k-check:nth-child(1){transition-delay:2.1s;}
.t2k-story.in .t2k-check:nth-child(2){transition-delay:2.25s;}
.t2k-story.in .t2k-check:nth-child(3){transition-delay:2.4s;}

.t2k-check svg{
  flex:0 0 auto;
  width:22px;
  height:22px;
  margin-top:1px;
}

.t2k-check svg circle{
  stroke:var(--gold);
  stroke-dasharray:70;
  stroke-dashoffset:70;
  transition:stroke-dashoffset .6s ease;
}

.t2k-check svg path{
  stroke:var(--gold-text);
  stroke-dasharray:22;
  stroke-dashoffset:22;
  transition:stroke-dashoffset .35s ease;
}

.t2k-story.in .t2k-check:nth-child(1) svg circle{stroke-dashoffset:0;transition-delay:2.1s;}
.t2k-story.in .t2k-check:nth-child(1) svg path{stroke-dashoffset:0;transition-delay:2.55s;}
.t2k-story.in .t2k-check:nth-child(2) svg circle{stroke-dashoffset:0;transition-delay:2.25s;}
.t2k-story.in .t2k-check:nth-child(2) svg path{stroke-dashoffset:0;transition-delay:2.7s;}
.t2k-story.in .t2k-check:nth-child(3) svg circle{stroke-dashoffset:0;transition-delay:2.4s;}
.t2k-story.in .t2k-check:nth-child(3) svg path{stroke-dashoffset:0;transition-delay:2.85s;}

/* ---------- horizontal arrow between 01 and 02 ---------- */
.t2k-arrow{
  width:52px;
  height:26px;
  opacity:0;
  transition:opacity .4s ease;
}

.t2k-arrow--h{
  align-self:center;
}

.t2k-story.in .t2k-arrow{opacity:1;}
.t2k-story.in .t2k-arrow--h{transition-delay:.4s;}

.t2k-arrow svg{
  width:100%;
  height:100%;
  overflow:visible;
}

.t2k-arrow path{
  stroke:var(--gold);
  stroke-width:2.5;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:70;
  stroke-dashoffset:70;
  transition:stroke-dashoffset .7s ease;
}

.t2k-story.in .t2k-arrow--h path{stroke-dashoffset:0;transition-delay:.45s;}

/* arrow between the problem cards: red */
.t2k-arrow--h path{
  stroke:var(--red);
}

.t2k-story.in .t2k-arrow svg{
  animation:t2kNudge 2.4s ease-in-out 2.4s infinite;
}

@keyframes t2kNudge{
  0%,100%{transform:translateX(0);}
  50%{transform:translateX(7px);}
}

/* ---------- merge connector: 01 + 02 flow into 03 ---------- */
.t2k-merge{
  max-width:1100px;
  margin:2px auto 4px;
}

.t2k-merge svg{
  display:block;
  width:100%;
  height:auto;
  overflow:visible;
}

.t2k-merge path{
  stroke:var(--gold);
  stroke-width:2.5;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:102;
  stroke-dashoffset:102;
  transition:stroke-dashoffset .8s ease;
}

.t2k-story.in .t2k-merge .t2k-merge-a,
.t2k-story.in .t2k-merge .t2k-merge-b{stroke-dashoffset:0;transition-delay:1.1s;}
.t2k-story.in .t2k-merge .t2k-merge-c{stroke-dashoffset:0;transition-delay:1.6s;}

/* glowing junction dot */
.t2k-merge-dot{
  fill:var(--gold);
  opacity:0;
  transition:opacity .4s ease;
  filter:drop-shadow(0 0 5px rgba(214,180,93,.8));
}

.t2k-story.in .t2k-merge-dot{
  opacity:1;
  transition-delay:1.55s;
}

/* mobile fallback arrow (hidden on desktop) */
.t2k-arrow--down{
  display:none;
  margin:2px auto 8px;
  transform:rotate(90deg);
}

.t2k-story.in .t2k-arrow--down{transition-delay:1.25s;}
.t2k-story.in .t2k-arrow--down path{stroke-dashoffset:0;transition-delay:1.3s;}

@media(prefers-reduced-motion:reduce){
  .t2k-card,
  .t2k-card li,
  .t2k-card li::before,
  .t2k-check,
  .t2k-merge,
  .t2k-arrow{opacity:1 !important;transform:none !important;transition:none !important;}
  .t2k-arrow--down{transform:rotate(90deg) !important;}
  .t2k-check svg circle,
  .t2k-check svg path,
  .t2k-merge path,
  .t2k-arrow path{stroke-dashoffset:0 !important;transition:none !important;}
  .t2k-merge-dot{opacity:1 !important;transition:none !important;}
  .t2k-story.in .t2k-card--answer,
  .t2k-story.in .t2k-arrow svg{animation:none !important;}
}

/* ---------- mobile ---------- */
@media(max-width:900px){

  .t2k-story{
    padding:0 6px 60px;
  }

  .t2k-row{
    grid-template-columns:1fr;
    gap:6px;
  }

  .t2k-card{
    padding:26px 22px;
  }

  .t2k-card--problem ul{
    columns:1;
  }

  .t2k-arrow--h{
    justify-self:center;
    transform:rotate(90deg);
    margin:10px 0;
  }

  .t2k-merge{
    display:none;
  }

  .t2k-arrow--down{
    display:block;
    margin:12px auto;
  }

  .t2k-card--answer{
    max-width:none;
  }

}

/* --- Schriftgroessen aus den Widget-Einstellungen --- */
.nvm-t2k-story .t2k-kicker{font-size:var(--t2ks-kicker,11px)}
.nvm-t2k-story .t2k-card h3{font-size:var(--t2ks-title,21px)}
.nvm-t2k-story .t2k-card p{font-size:var(--t2ks-text,14.5px)}
.nvm-t2k-story .t2k-card li{font-size:var(--t2ks-list,14.5px)}
.nvm-t2k-story .t2k-check{font-size:var(--t2ks-list,14.5px)}
