/* ═══════════════════════════════════════════════════════════════════
   Startseite – instaTrader-Schaufenster (template-parts/startseite-instatrader.php)
   Mobile-first: Collage ab 900 px als gestaffelte Bühne, darunter als Kartenraster.
   ═══════════════════════════════════════════════════════════════════ */
.ith {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: linear-gradient(180deg, var(--c-navy-900) 0%, #071228 45%, var(--c-navy-900) 100%);
  color: var(--c-gray-200);
}
.ith__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 720px 420px at 18% 30%, rgba(30, 107, 230, .20), transparent 70%),
    radial-gradient(ellipse 560px 480px at 84% 55%, rgba(96, 165, 250, .12), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 100%;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}
.ith .container { position: relative; z-index: 1; }

/* Kopf */
.ith__head { text-align: center; max-width: 820px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.ith__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-blue-300); margin: 0 0 1rem;
}
.ith__title {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(2rem, 6vw, 3.6rem); color: #fff; margin: 0 0 1.1rem;
}
.ith__title span {
  background: linear-gradient(90deg, #60A5FA 0%, #3B82F6 45%, #A5F3FC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ith__sub { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.7; color: var(--c-gray-300); margin: 0 auto 1.6rem; max-width: 700px; }
.ith__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.ith__actions .btn { display: inline-flex; align-items: center; gap: .5rem; }
.ith__facts {
  list-style: none; padding: 0; margin: 1.4rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .6rem;
}
.ith__facts li {
  font-size: .8rem; color: var(--c-gray-300);
  padding: .35rem .75rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
}
.ith__facts .ith__deal { border-color: rgba(16, 185, 129, .45); color: #6EE7B7; background: rgba(16, 185, 129, .10); }
.ith__facts .ith__deal s { color: var(--c-gray-400); margin-left: .2rem; }

/* Rahmen und Karten */
.ith-frame, .ith-card {
  margin: 0; border-radius: 14px; overflow: hidden;
  background: #0b1a33; border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(96, 165, 250, .08);
}
.ith-frame img, .ith-card img { display: block; width: 100%; height: auto; }
.ith-frame__bar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  background: linear-gradient(180deg, #16294a, #0f2040); border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ith-frame__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ith-frame__bar span:nth-child(1) { background: #FF5F57; } .ith-frame__bar span:nth-child(2) { background: #FEBC2E; } .ith-frame__bar span:nth-child(3) { background: #28C840; }
.ith-frame__bar em { margin-left: auto; margin-right: auto; font-style: normal; font-size: .7rem; letter-spacing: .08em; color: var(--c-gray-400); text-transform: uppercase; }

/* Schwebende Hinweise */
.ith-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 600; color: #fff;
  padding: .45rem .8rem; border-radius: 999px;
  background: rgba(10, 22, 40, .85); border: 1px solid rgba(96, 165, 250, .35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(6px);
}
.ith-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 4px rgba(16, 185, 129, .25); animation: ith-puls 1.6s ease-in-out infinite; }
@keyframes ith-puls { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Reihenfolge am Handy (Wadim, 01.10.2026): Überschrift → Collage → Beschreibung → Knöpfe → Fakten */
@media (max-width: 899px) {
  .ith .container { display: flex; flex-direction: column; }
  .ith .container > * { width: 100%; }                   /* auto-Ränder dürfen Flex-Kinder nicht auf Inhaltsbreite schrumpfen (Collage wäre 0 breit) */
  .ith__head { display: contents; }                      /* Kinder werden direkte Flex-Kinder, Zentrierung bleibt vererbt */
  .ith__title { order: 1; text-align: center; margin-bottom: .25rem; }
  .ith-collage { order: 2; margin: 1.1rem 0 0; }
  .ith__sub { order: 3; text-align: center; margin-top: 2.6rem; }   /* Abstand zur Collage: die gedrehten Karten ragen unten etwas über die Bühne */
  .ith__actions { order: 4; }
  .ith__facts { order: 5; }
  .ith-tiles { order: 6; }
  .ith__foot { order: 7; }
}

/* Collage – Handy: kleine gestaffelte Bühne (gleiche Idee wie am Desktop, enger gesetzt) */
.ith-collage { position: relative; aspect-ratio: 10 / 9; max-width: 1120px; margin: 0 auto; }
.ith-collage > * { position: absolute; }
.ith-frame--main  { left: 0; top: 0; width: 90%; z-index: 2; }
.ith-card--ticket { right: 0; top: 13%; width: 27%; height: 50%; z-index: 3; transform: rotate(3deg); transform-origin: bottom left; }
.ith-card--ticket img { height: 100%; object-fit: cover; object-position: top; }
.ith-card--multi  { left: 1%; bottom: 0; width: 50%; z-index: 4; transform: rotate(-3deg); }
.ith-card--copy   { right: 3%; bottom: 5%; width: 42%; z-index: 4; transform: rotate(2deg); }
.ith-pill--live { left: 3%; top: 6%; z-index: 5; }
.ith-pill--ki, .ith-pill--risk { display: none; }
.ith-pill { font-size: .72rem; padding: .35rem .65rem; }

/* Collage – Desktop: gestaffelte Bühne */
@media (min-width: 900px) {
  .ith-collage { aspect-ratio: 1120 / 660; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
  .ith-frame--main  { left: 3%;  top: 4%;   width: 70%; z-index: 2; }
  .ith-card--ticket { right: 1%; top: 0;    width: 19%; height: auto; z-index: 3; transform: rotate(3deg);  transform-origin: bottom left; }
  .ith-card--ticket img { height: auto; object-fit: initial; }
  .ith-pill--ki, .ith-pill--risk { display: inline-flex; }
  .ith-pill { font-size: .78rem; padding: .45rem .8rem; }
  .ith-card--multi  { left: 0;   bottom: 0; width: 33%; z-index: 4; transform: rotate(-3deg); }
  .ith-card--copy   { right: 6%; bottom: 3%; width: 31%; z-index: 4; transform: rotate(2deg); }
  .ith-pill--live { left: 6%;  top: 12%; z-index: 5; }
  .ith-pill--ki   { right: 22%; top: 46%; z-index: 5; }
  .ith-pill--risk { right: 3%; bottom: 40%; z-index: 5; }
  .ith-card { transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
  .ith-collage:hover .ith-card--ticket { transform: rotate(0) translateY(-6px); }
  .ith-collage:hover .ith-card--multi  { transform: rotate(0) translateY(-6px); }
  .ith-collage:hover .ith-card--copy   { transform: rotate(0) translateY(-6px); }
  .ith-frame--main::after {
    content: ""; position: absolute; inset: -30% -20% auto; height: 70%; pointer-events: none; z-index: -1;
    background: radial-gradient(ellipse at 50% 100%, rgba(59, 130, 246, .35), transparent 70%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ith-pill i { animation: none; }
  .ith-card { transition: none; }
}

/* Kacheln */
.ith-tiles {
  list-style: none; padding: 0; margin: clamp(2rem, 5vw, 3.5rem) auto 0; max-width: 1120px;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.ith-tile {
  border-radius: 14px; padding: .75rem .75rem 1rem;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .3s, transform .3s, background .3s;
}
.ith-tile:hover { border-color: rgba(96, 165, 250, .4); background: rgba(255, 255, 255, .06); transform: translateY(-3px); }
.ith-tile__img {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 9px; margin-bottom: .85rem;
  background: #0b1a33; border: 1px solid rgba(255, 255, 255, .08);
}
.ith-tile__img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.ith-tile__img--hoch img { object-position: center top; }
.ith-tile h3 { font-size: .98rem; font-weight: 700; color: #fff; margin: 0 0 .4rem; line-height: 1.3; }
.ith-tile p { font-size: .86rem; line-height: 1.55; color: var(--c-gray-400); margin: 0; }

/* Fuß */
.ith__foot { margin-top: clamp(1.75rem, 4vw, 2.5rem); display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.ith__more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--c-blue-300); text-decoration: none; }
.ith__more:hover { color: #fff; }
.ith__more svg { transition: transform .3s; }
.ith__more:hover svg { transform: translateX(4px); }
.ith__hint { font-size: .8rem; color: var(--c-gray-500); }
