/* ==========================================================================
   IceFighter design 2: landing page hockey-manager-simulation.php
   (templates/sf/if2/simulation.php), layout "Sammelalbum". Bright ice, jersey
   colours per chapter, trading cards to flip, highlight reel, stadium steps,
   quiz. Prefix ifhs-; ifx- for the parts the feature page shares (same rules
   in css/if2-features.css). Margins of p/h with element + class, because
   .if2 p / .if2 hN set their own (see docs/redesign.md).
   ========================================================================== */

/* ---------- Shared: registration card, reveal, confetti ---------- */
/* the registration card keeps its look from if2-public.css, only wider */
.ifx-register { width: 100%; max-width: 400px; margin: 0 auto; }

/* scroll reveal (js/if2-features.js sets .ifx-js and .is-in) */
.ifx-js [data-ifx-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.ifx-js [data-ifx-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .ifx-js [data-ifx-reveal] { opacity: 1; transform: none; transition: none; }
}

/* confetti of the quiz result */
.ifx-confetti {
    position: absolute; top: -10px; z-index: 5; width: 9px; height: 14px; border-radius: 2px; pointer-events: none;
    animation: ifx-confetti 2.2s cubic-bezier(.2, .6, .4, 1) forwards;
}
@keyframes ifx-confetti {
    0% { opacity: 1; transform: translate(0, 0) rotate(0); }
    100% { opacity: 0; transform: translate(var(--ifx-dx, 0), 420px) rotate(var(--ifx-rot, 360deg)); }
}


.ifx-main { padding-bottom: 0; }
.ifhs {
    --ifhs-ink: #0D1B3A; --ifhs-dim: #4A5878; --ifhs-ice: #F2F7FC; --ifhs-line: rgba(13, 27, 58, .1);
    --ifhs-r: #E1252F; --ifhs-b: #1478D4; --ifhs-g: #F2A900; --ifhs-v: #6A3DE8; --ifhs-t: #0FA971;
    color: var(--ifhs-ink); background: var(--ifhs-ice); overflow: clip;
}
.ifhs a { text-decoration: none !important; }
.ifhs [hidden] { display: none !important; }

/* jersey colour of each chapter: --c, --c2 (gradient), --cink (text on it) */
.ifhs-c--spieltag { --c: #E1252F; --c2: #FF6B3D; --cink: #fff; }
.ifhs-c--mannschaft { --c: #1478D4; --c2: #3FC1F0; --cink: #fff; }
.ifhs-c--verein { --c: #E89A00; --c2: #FFD54A; --cink: #2B1D00; }
.ifhs-c--wettbewerbe { --c: #6A3DE8; --c2: #A574FF; --cink: #fff; }
.ifhs-c--erlebnis { --c: #0FA971; --c2: #4FDCA6; --cink: #fff; }

/* ---------- Buttons, tags, headings ---------- */
.ifhs-btn {
    display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; border: 0; border-radius: 30px; cursor: pointer;
    font: 800 italic 19px/1 var(--if-font-head); text-transform: uppercase; letter-spacing: .03em; transition: transform .2s, box-shadow .2s, background .2s;
}
.ifhs-btn .if-icon { width: 22px; height: 22px; }
.ifhs-btn--hot { color: #fff !important; background: linear-gradient(135deg, #FF4D3D, var(--if-red) 55%, #C0101B); box-shadow: 0 12px 30px rgba(225, 37, 47, .38), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.ifhs-btn--hot:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 18px 40px rgba(225, 37, 47, .5), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.ifhs-btn--light { color: var(--ifhs-ink) !important; background: #fff; box-shadow: 0 10px 26px rgba(13, 27, 58, .12), inset 0 0 0 2px rgba(13, 27, 58, .08); }
.ifhs-btn--light:hover { transform: translateY(-3px) rotate(1deg); }
.ifhs-btn--line { color: var(--ifhs-ink); background: transparent; box-shadow: inset 0 0 0 2px var(--ifhs-ink); }
.ifhs-btn--line:hover { background: var(--ifhs-ink); color: #fff; }

.ifhs p.ifhs-tag {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 8px 16px 8px 12px; border-radius: 30px;
    font: 800 14px/1 var(--if-font-head); text-transform: uppercase; letter-spacing: .12em; color: #fff;
    background: linear-gradient(135deg, var(--ifhs-v), var(--ifhs-b)); box-shadow: 0 8px 20px rgba(106, 61, 232, .3); transform: rotate(-2deg);
}
.ifhs-tag .if-icon { width: 18px; height: 18px; color: #FFD54A; }
.ifhs p.ifhs-tag--light { color: var(--ifhs-ink); background: #FFD54A; box-shadow: 0 8px 20px rgba(242, 169, 0, .35); }
.ifhs-tag--light .if-icon { color: var(--ifhs-ink); }

.ifhs h2.ifhs-h2 { margin: 0 0 12px; font: 800 italic clamp(38px, 4.6vw, 64px)/.95 var(--if-font-head); text-transform: uppercase; color: var(--ifhs-ink); }
.ifhs-h2 > span { display: block; margin-bottom: 8px; font-size: 18px; font-style: normal; letter-spacing: .16em; color: var(--ifhs-r); }
.ifhs h2.ifhs-h2--light { color: #fff; }
.ifhs-h2--light > span { color: #FFD54A; }
.ifhs p.ifhs-sub { max-width: 640px; margin: 0 0 34px; font-size: 18px; line-height: 1.55; color: var(--ifhs-dim); }
.ifhs p.ifhs-sub--light { color: rgba(232, 241, 250, .78); }

/* ---------- Hero ---------- */
.ifhs-hero { position: relative; overflow: hidden; isolation: isolate; padding: 70px 0 90px; }
.ifhs-hero__ice {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(520px 380px at 8% 18%, rgba(63, 193, 240, .28), transparent 70%),
        radial-gradient(460px 360px at 92% 12%, rgba(255, 107, 61, .22), transparent 70%),
        radial-gradient(560px 420px at 70% 100%, rgba(165, 116, 255, .22), transparent 70%),
        linear-gradient(90deg, transparent calc(50% - 5px), rgba(225, 37, 47, .1) calc(50% - 5px), rgba(225, 37, 47, .1) calc(50% + 5px), transparent calc(50% + 5px)),
        linear-gradient(180deg, #FFFFFF 0%, var(--ifhs-ice) 100%);
}
.ifhs-hero__ice::after { content: ''; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(20, 120, 212, .1); }
.ifhs-hero__in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.ifp .ifhs-hero__h1 { margin: 0 0 12px; font: 700 18px/1.25 var(--if-font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--ifhs-b); }
.ifhs p.ifhs-hero__claim { margin: 0 0 22px; font: 800 italic clamp(56px, 7.4vw, 112px)/.86 var(--if-font-head); text-transform: uppercase; letter-spacing: -.01em; color: var(--ifhs-ink); }
.ifhs-hero__claim span {
    display: block; padding-right: .08em; background: linear-gradient(100deg, var(--ifhs-r) 0%, #FF6B3D 45%, var(--ifhs-v) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ifhs p.ifhs-hero__lead { max-width: 580px; margin: 0 0 30px; font-size: 17.5px; line-height: 1.6; color: var(--ifhs-dim); }
.ifhs-hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.ifhs-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ifhs-pill {
    display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 30px;
    font: 700 13px/1 var(--if-font-head); text-transform: uppercase; letter-spacing: .08em; color: #fff;
}
.ifhs-pill b { font: 800 italic 24px/1 var(--if-font-head); letter-spacing: 0; }
.ifhs-pill--0 { background: var(--ifhs-r); transform: rotate(-2deg); }
.ifhs-pill--1 { background: var(--ifhs-b); transform: rotate(1.5deg); }
.ifhs-pill--2 { background: var(--ifhs-v); transform: rotate(-1deg); }
.ifhs-pill--3 { background: var(--ifhs-g); color: #2B1D00; transform: rotate(2deg); }

.ifhs-hero__stage { position: relative; padding: 40px 30px; }
.ifhs-hero__frame {
    position: relative; aspect-ratio: 16 / 10.5; padding: 12px 12px 56px; border-radius: 22px; background: #fff;
    box-shadow: 0 40px 80px rgba(13, 27, 58, .22), 0 0 0 1px rgba(13, 27, 58, .06); transform: rotate(-4deg);
    animation: ifhs-tilt 7s ease-in-out infinite alternate;
}
.ifhs-hero__frame video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: #DDE8F3; }
.ifhs-hero__label { position: absolute; left: 22px; right: 22px; bottom: 16px; display: flex; align-items: center; gap: 12px; font: 800 italic 20px/1 var(--if-font-head); text-transform: uppercase; color: var(--ifhs-ink); }
.ifhs-hero__label b { padding: 5px 10px; border-radius: 8px; font-size: 16px; color: #fff; background: var(--ifhs-r); }
@keyframes ifhs-tilt { from { transform: rotate(-4deg); } to { transform: rotate(-2deg) translateY(-6px); } }

.ifhs-sticker { position: absolute; z-index: 2; height: auto; filter: drop-shadow(0 18px 24px rgba(13, 27, 58, .25)); animation: ifhs-float 5s ease-in-out infinite alternate; pointer-events: none; }
.ifhs-sticker--puck { left: -40px; top: -6px; width: 190px; --r: -8deg; }
.ifhs-sticker--pokal { right: -24px; top: -30px; width: 160px; --r: 10deg; animation-delay: -1.5s; }
.ifhs-sticker--taktik { left: -16px; bottom: -14px; width: 150px; --r: -12deg; animation-delay: -3s; }
.ifhs-sticker--stadion { right: -10px; bottom: -26px; width: 170px; --r: 6deg; animation-delay: -2.2s; }
@keyframes ifhs-float { from { transform: rotate(var(--r)) translateY(0); } to { transform: rotate(calc(var(--r) * -.4)) translateY(-14px); } }

/* ---------- Second paragraph of the intro as a note ---------- */
.ifhs-foreword { padding: 20px 0 90px; }
.ifhs-note {
    position: relative; padding: 46px 52px 40px; border-radius: 6px; background: #fff;
    box-shadow: 0 30px 60px rgba(13, 27, 58, .12), 0 0 0 1px rgba(13, 27, 58, .05);
}
.ifx-js .ifhs-note.is-in { transform: rotate(-.6deg); }
.ifhs-note__tape { position: absolute; left: 50%; top: -16px; width: 150px; height: 34px; margin-left: -75px; background: rgba(255, 213, 74, .75); transform: rotate(-3deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.ifhs-note__icon { position: absolute; left: -22px; top: 28px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: linear-gradient(150deg, var(--ifhs-r), #FF6B3D); box-shadow: 0 0 0 4px #fff, 0 10px 22px rgba(225, 37, 47, .3); transform: rotate(-8deg); }
.ifhs-note__icon .if-icon { width: 28px; height: 28px; }
.ifhs p.ifhs-note__text { margin: 0; font-size: 19px; line-height: 36px; font-style: italic; color: #2C3A58; background: repeating-linear-gradient(180deg, transparent 0 35px, rgba(20, 120, 212, .1) 35px 36px); }

/* ---------- Album: filter ---------- */
.ifhs-album { padding: 0 0 100px; }
.ifhs-filter {
    position: sticky; top: var(--ifp-top-h); z-index: 20; margin-bottom: 34px; padding: 12px 0;
    background: rgba(242, 247, 252, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ifhs-line);
}
.ifhs-filter__in { display: flex; align-items: center; gap: 10px; }
.ifhs-chip {
    --c: var(--ifhs-ink); --c2: #33466E; --cink: #fff;
    display: inline-flex; flex: none; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 16px; border: 0; border-radius: 24px; cursor: pointer;
    font: 800 16px/1 var(--if-font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--ifhs-ink);
    background: #fff; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent), 0 4px 12px rgba(13, 27, 58, .06); transition: transform .2s, background .2s, color .2s;
}
.ifhs-chip .if-icon { width: 18px; height: 18px; color: var(--c); }
.ifhs-chip i { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; font: 800 14px/1 var(--if-font-head); font-style: normal; color: var(--cink); background: var(--c); }
.ifhs-chip:hover { transform: translateY(-2px); }
.ifhs-chip.is-on { color: var(--cink); background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 40%, transparent); }
.ifhs-chip.is-on .if-icon { color: var(--cink); }
.ifhs-chip.is-on i { color: var(--c); background: #fff; }
.ifhs-filter__count { margin-left: auto; flex: none; font: 700 15px/1 var(--if-font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--ifhs-dim); }

/* ---------- Album: trading cards ---------- */
/* chapter groups: "1. Drittel: Spieltag" ... with their cards */
.ifhs-group { margin: 0 0 64px; }
.ifhs-group:last-child { margin-bottom: 0; }
.ifhs h2.ifhs-group__title {
    display: flex; align-items: center; gap: 16px; margin: 0 0 26px; padding-bottom: 14px; border-bottom: 4px solid color-mix(in srgb, var(--c) 30%, transparent);
    font: 800 italic clamp(28px, 3.2vw, 42px)/1 var(--if-font-head); text-transform: uppercase; color: var(--ifhs-ink);
}
.ifhs-group__icon { display: grid; flex: none; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--cink); background: linear-gradient(150deg, var(--c), var(--c2)); box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 35%, transparent); transform: rotate(-6deg); }
.ifhs-group__icon .if-icon { width: 28px; height: 28px; }
.ifhs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
.ifhs-card { --ifx-rx: 0deg; --ifx-ry: 0deg; --ifx-mx: 50%; --ifx-my: 30%; --turn: 0deg; display: grid; perspective: 1400px; scroll-margin-top: calc(var(--ifp-top-h) + 90px); }
.ifhs-card.is-flipped { --turn: 180deg; }
.ifhs-card__flip { position: relative; display: flex; flex-direction: column; gap: 14px; outline: none; }
.ifhs-card__face {
    display: flex; flex-direction: column; padding: 7px; border-radius: 18px;
    background: linear-gradient(150deg, var(--c), var(--c2)); box-shadow: 0 18px 40px rgba(13, 27, 58, .16);
}
.ifhs-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px 10px; font: 800 13px/1 var(--if-font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--cink); }
.ifhs-card__top span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ifhs-card__top .if-icon { flex: none; width: 16px; height: 16px; }
.ifhs-card__top b { font: 800 italic 18px/1 var(--if-font-head); letter-spacing: 0; }
.ifhs-card__top small { font-size: 12px; opacity: .7; }
.ifhs-card__pic { position: relative; flex: 1 1 auto; min-height: 190px; border-radius: 12px 12px 0 0; overflow: hidden; background: #DDE8F3; }
.ifhs-card__pic img, .ifhs-card__pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ifhs-card__pic video { opacity: 0; transition: opacity .6s; }
.ifhs-card__pic video.is-playing { opacity: 1; }
.ifhs-card__shine { position: absolute; inset: 0; opacity: 0; mix-blend-mode: overlay; transition: opacity .3s; background: radial-gradient(circle at var(--ifx-mx) var(--ifx-my), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 45%), linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 62%); }
.ifhs-card:hover .ifhs-card__shine { opacity: 1; }
.ifhs-card__name { position: relative; padding: 36px 16px 18px; border-radius: 0 0 12px 12px; background: #fff; }
.ifhs-card__icon {
    position: absolute; left: 14px; top: -28px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    color: var(--cink); background: linear-gradient(150deg, var(--c), var(--c2)); box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(13, 27, 58, .2);
}
.ifhs-card__icon .if-icon { width: 26px; height: 26px; }
.ifhs h3.ifhs-card__title { margin: 0 0 6px; font: 800 italic 25px/1 var(--if-font-head); text-transform: uppercase; color: var(--ifhs-ink); }
.ifhs p.ifhs-card__claim { margin: 0; font-size: 14.5px; line-height: 1.4; font-weight: 600; color: var(--ifhs-dim); }
.ifhs-card__turn {
    position: absolute; right: 16px; bottom: 16px; display: none; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 16px;
    font: 800 12px/1 var(--if-font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff);
}
.ifhs-card__turn .if-icon { width: 14px; height: 14px; }
.ifhs-card__name .ifhs-card__turn { top: -14px; right: 12px; bottom: auto; box-shadow: 0 0 0 3px #fff; }
.ifhs-card__face { position: relative; }
.ifhs-card__sheet { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 58px; border-radius: 12px; background: #fff; }
.ifhs p.ifhs-card__text { margin: 0; font-size: 14.5px; line-height: 1.55; color: #2C3A58; }
.ifhs-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ifhs-card__facts div { padding: 10px 4px 8px; border-radius: 10px; text-align: center; background: color-mix(in srgb, var(--c) 12%, #fff); }
.ifhs-card__facts b { display: block; font: 800 italic 24px/1 var(--if-font-head); color: var(--c); }
.ifhs-card__facts span { display: block; margin-top: 4px; font: 700 10.5px/1.15 var(--if-font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--ifhs-dim); }
.ifhs-card__points { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ifhs-card__points li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--ifhs-ink); }
.ifhs-card__points .if-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 3px; border-radius: 50%; color: #fff; background: var(--c); }
.ifhs-card__more { display: flex; align-items: center; gap: 6px; margin-top: auto; font: 800 15px/1 var(--if-font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--c) !important; }
.ifhs-c--verein .ifhs-card__more, .ifhs-c--verein .ifhs-card__turn, .ifhs-c--verein .ifhs-card__facts b { color: #A86E00 !important; }
.ifhs-card__more .if-icon { width: 18px; height: 18px; transition: transform .2s; }
.ifhs-card__more:hover .if-icon { transform: translateX(4px); }

/* with script: both faces in one cell, flip in 3D, tilt with the pointer */
.ifx-js .ifhs-card__flip {
    display: grid; gap: 0; cursor: pointer; transform-style: preserve-3d;
    transform: rotateX(var(--ifx-rx)) rotateY(calc(var(--ifx-ry) + var(--turn))); transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.ifx-js .ifhs-card:hover .ifhs-card__flip { transition: transform .15s ease-out; }
.ifx-js .ifhs-card.is-flipped .ifhs-card__flip, .ifx-js .ifhs-card.is-flipped:hover .ifhs-card__flip { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.ifx-js .ifhs-card__face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ifx-js .ifhs-card__back { transform: rotateY(180deg); }
.ifx-js .ifhs-card__turn { display: inline-flex; }
.ifx-js .ifhs-card__flip:focus-visible .ifhs-card__face { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--c), 0 18px 40px rgba(13, 27, 58, .16); }
.ifhs-card.is-hit .ifhs-card__face { animation: ifhs-hit 1.2s ease 2; }
@keyframes ifhs-hit { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 45%, transparent), 0 18px 40px rgba(13, 27, 58, .16); } }
.ifx-js .ifhs-grid > .ifhs-card:nth-child(3n+2).is-in { transition-delay: .08s; }
.ifx-js .ifhs-grid > .ifhs-card:nth-child(3n).is-in { transition-delay: .16s; }

/* ---------- Highlight reel ---------- */
.ifhs-reel {
    position: relative; padding: 100px 0 110px; color: #fff;
    background: radial-gradient(600px 400px at 10% 0%, rgba(63, 193, 240, .3), transparent 70%), radial-gradient(600px 420px at 95% 100%, rgba(225, 37, 47, .32), transparent 70%), linear-gradient(160deg, #0D1B3A, #142B5C);
}
.ifhs-reel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.ifhs-tile {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 8px solid #fff; border-radius: 14px; overflow: hidden; cursor: pointer;
    background: #0A1630; box-shadow: 0 24px 50px rgba(0, 0, 0, .4); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.ifhs-tile--0 { transform: rotate(-2deg); }
.ifhs-tile--1 { transform: rotate(1.5deg) translateY(10px); }
.ifhs-tile--2 { transform: rotate(-1deg); }
.ifx-js .ifhs-tile[data-ifx-reveal].is-in.ifhs-tile--0 { transform: rotate(-2deg); }
.ifx-js .ifhs-tile[data-ifx-reveal].is-in.ifhs-tile--1 { transform: rotate(1.5deg) translateY(10px); }
.ifx-js .ifhs-tile[data-ifx-reveal].is-in.ifhs-tile--2 { transform: rotate(-1deg); }
.ifhs .ifhs-tile:hover, .ifhs .ifhs-tile.is-playing { z-index: 2; transform: rotate(0) scale(1.05); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 4px var(--ifhs-r); }
.ifhs-tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ifhs-tile__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; color: #fff; background: rgba(225, 37, 47, .92); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: opacity .3s, transform .3s; }
.ifhs-tile__play .if-icon { width: 28px; height: 28px; margin-left: 4px; }
.ifhs-tile.is-playing .ifhs-tile__play { opacity: 0; transform: scale(.6); }
.ifhs-tile__name { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 8px; font: 800 italic 18px/1 var(--if-font-head); text-transform: uppercase; color: var(--ifhs-ink); background: #FFD54A; }

/* ---------- Stadium steps ---------- */
.ifhs-stadium { padding: 110px 0 100px; }
.ifhs-stadium__box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: center; }
.ifhs-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.ifhs-step {
    width: 54px; height: 54px; border: 0; border-radius: 50%; cursor: pointer; font: 800 italic 24px/1 var(--if-font-head); color: var(--ifhs-ink);
    background: #fff; box-shadow: inset 0 0 0 2px rgba(232, 154, 0, .4), 0 6px 14px rgba(13, 27, 58, .08); transition: transform .2s, background .2s;
}
.ifhs-step:hover { transform: translateY(-3px); }
.ifhs-step.is-on { color: #2B1D00; background: linear-gradient(150deg, #E89A00, #FFD54A); box-shadow: 0 10px 24px rgba(232, 154, 0, .45); transform: scale(1.1); }
.ifhs p.ifhs-stadium__caption { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.ifhs-stadium__caption b { font: 800 16px/1 var(--if-font-head); text-transform: uppercase; letter-spacing: .14em; color: #A86E00; }
.ifhs-stadium__caption span { font: 800 italic 34px/1.05 var(--if-font-head); text-transform: uppercase; color: var(--ifhs-ink); }
.ifhs-stadium__stage { position: relative; aspect-ratio: 16 / 10; border: 10px solid #fff; border-radius: 20px; background: #DDE8F3; box-shadow: 0 40px 80px rgba(13, 27, 58, .2); }
.ifhs-stadium__stage img[data-ifx-stadium-img] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; opacity: 0; transform: scale(1.04); transition: opacity .6s, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.ifhs-stadium__stage img.is-on { opacity: 1; transform: none; }
.ifhs-stadium__sticker { position: absolute; right: -40px; top: -56px; z-index: 2; width: 150px; height: auto; filter: drop-shadow(0 14px 20px rgba(13, 27, 58, .25)); transform: rotate(8deg); }

/* ---------- Quiz ---------- */
.ifhs-quiz-wrap { padding: 20px 0 110px; }
.ifhs-quiz {
    position: relative; overflow: hidden; padding: 54px 56px 50px; border-radius: 28px; text-align: center;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--ifhs-r), #FF6B3D, var(--ifhs-g), var(--ifhs-t), var(--ifhs-b), var(--ifhs-v)) border-box;
    border: 6px solid transparent; box-shadow: 0 40px 90px rgba(13, 27, 58, .16);
}
.ifhs-quiz__sticker { position: absolute; right: 24px; top: 20px; width: 120px; height: auto; transform: rotate(10deg); filter: drop-shadow(0 10px 16px rgba(13, 27, 58, .2)); }
.ifhs h2.ifhs-quiz__title { margin: 0 0 18px; font: 800 italic clamp(36px, 4.4vw, 58px)/.95 var(--if-font-head); text-transform: uppercase; color: var(--ifhs-ink); }
.ifhs-quiz__dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; }
.ifhs-quiz__dots span { width: 34px; height: 8px; border-radius: 4px; background: var(--ifhs-line); transition: background .3s; }
.ifhs-quiz__dots span.is-on { background: linear-gradient(90deg, var(--ifhs-r), #FF6B3D); }
.ifhs p.ifhs-quiz__q { max-width: 640px; margin: 0 auto 26px; font: 800 italic 30px/1.1 var(--if-font-head); text-transform: uppercase; color: var(--ifhs-ink); }
.ifhs-quiz__q small { display: block; margin-bottom: 8px; font: 700 14px/1 var(--if-font-head); font-style: normal; letter-spacing: .14em; color: var(--ifhs-dim); }
.ifhs-quiz__answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; text-align: left; }
.ifhs-answer {
    --a: var(--ifhs-r);
    display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 18px 12px 12px; border: 0; border-radius: 16px; cursor: pointer;
    font: 600 16px/1.35 var(--if-font-body); color: var(--ifhs-ink); text-align: left;
    background: color-mix(in srgb, var(--a) 7%, #fff); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--a) 30%, transparent); transition: transform .2s, box-shadow .2s, background .2s;
}
.ifhs-answer i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font: 800 italic 22px/1 var(--if-font-head); color: #fff; background: var(--a); }
.ifhs-answer--1 { --a: var(--ifhs-b); }
.ifhs-answer--2 { --a: #E89A00; }
.ifhs-answer--3 { --a: var(--ifhs-v); }
.ifhs-answer:hover { transform: translateY(-3px) rotate(-.5deg); background: color-mix(in srgb, var(--a) 14%, #fff); box-shadow: inset 0 0 0 2px var(--a), 0 12px 24px color-mix(in srgb, var(--a) 25%, transparent); }
.ifhs-quiz__result { position: relative; }
.ifhs p.ifhs-type__kick { margin: 0 0 6px; font: 700 15px/1 var(--if-font-head); text-transform: uppercase; letter-spacing: .16em; color: var(--ifhs-dim); }
.ifhs p.ifhs-type__name {
    margin: 0 0 12px; font: 800 italic clamp(44px, 6vw, 76px)/.95 var(--if-font-head); text-transform: uppercase;
    background: linear-gradient(100deg, var(--ifhs-r), #FF6B3D 45%, var(--ifhs-v)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ifhs p.ifhs-type__text { max-width: 520px; margin: 0 auto 28px; font-size: 18px; line-height: 1.5; color: var(--ifhs-dim); }
.ifhs-type__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 14px 0 32px; }
.ifhs-mini { display: block; padding: 6px; border-radius: 14px; background: linear-gradient(150deg, var(--c), var(--c2)); box-shadow: 0 12px 26px rgba(13, 27, 58, .16); transition: transform .25s; }
.ifhs-mini:nth-child(1) { transform: rotate(-3deg); }
.ifhs-mini:nth-child(3) { transform: rotate(3deg); }
.ifhs-mini:hover { transform: translateY(-6px) rotate(0); }
.ifhs-mini img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 9px 9px 0 0; }
.ifhs-mini span { display: block; padding: 10px 8px; border-radius: 0 0 9px 9px; font: 800 italic 17px/1.05 var(--if-font-head); text-transform: uppercase; color: var(--ifhs-ink); background: #fff; }
.ifhs-quiz__end { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- A manager's day ---------- */
.ifhs-day { padding: 0 0 110px; }
.ifhs p.ifhs-day__text { max-width: 880px; }
.ifhs-day__list { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.ifhs-day__list::before { content: ''; position: absolute; left: 4%; right: 4%; top: 22px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ifhs-r), #FF6B3D, var(--ifhs-g), var(--ifhs-t), var(--ifhs-b), var(--ifhs-v)); opacity: .5; }
.ifhs-day__item { --d: var(--ifhs-r); position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 6px 20px; text-align: center; }
.ifhs-day__item--1 { --d: #FF6B3D; }
.ifhs-day__item--2 { --d: #E89A00; }
.ifhs-day__item--3 { --d: var(--ifhs-t); }
.ifhs-day__item--4 { --d: var(--ifhs-b); }
.ifhs-day__item--5 { --d: var(--ifhs-v); }
.ifhs-day__item--6 { --d: var(--ifhs-ink); }
.ifhs-day__item time { position: relative; padding: 12px 14px; border-radius: 24px; font: 800 italic 22px/1 var(--if-font-head); color: #fff; background: var(--d); box-shadow: 0 10px 22px color-mix(in srgb, var(--d) 35%, transparent); }
.ifhs-day__icon { display: grid; place-items: center; width: 58px; height: 58px; margin-top: 6px; border-radius: 18px; color: var(--d); background: #fff; box-shadow: 0 10px 24px rgba(13, 27, 58, .1); transform: rotate(-4deg); }
.ifhs-day__item:nth-child(2n) .ifhs-day__icon { transform: rotate(4deg); }
.ifhs-day__icon .if-icon { width: 28px; height: 28px; }
.ifhs-day__item b { font: 800 italic 20px/1 var(--if-font-head); text-transform: uppercase; color: var(--ifhs-ink); }
.ifhs-day__item small { font-size: 13.5px; line-height: 1.4; color: var(--ifhs-dim); }

/* ---------- Registration ---------- */
.ifhs-final {
    position: relative; padding: 110px 0 120px; overflow: hidden; color: #fff; scroll-margin-top: var(--ifp-top-h);
    background: radial-gradient(520px 420px at 0% 0%, rgba(255, 107, 61, .45), transparent 70%), radial-gradient(640px 480px at 100% 100%, rgba(165, 116, 255, .45), transparent 70%), linear-gradient(140deg, #1478D4 0%, #0D1B3A 70%);
}
.ifhs-final__in { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 70px; align-items: center; }
.ifp .ifhs-final__title { margin: 0 0 18px; font: 800 italic clamp(46px, 6vw, 88px)/.9 var(--if-font-head); text-transform: uppercase; color: #fff; }
.ifhs-final__title span { display: block; color: #FFD54A; }
.ifhs p.ifhs-final__lead { max-width: 560px; margin: 0 0 28px; font-size: 19px; line-height: 1.55; color: rgba(232, 241, 250, .88); }
.ifhs-final__pack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; margin: 0 0 26px; padding: 0; list-style: none; }
.ifhs-final__pack li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; font-size: 15px; line-height: 1.35; font-weight: 600; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ifhs-final__pack b { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #2B1D00; background: #FFD54A; }
.ifhs-final__pack li:nth-child(2) b { color: #fff; background: var(--ifhs-r); }
.ifhs-final__pack li:nth-child(3) b { color: #fff; background: var(--ifhs-t); }
.ifhs-final__pack li:nth-child(4) b { color: #fff; background: var(--ifhs-v); }
.ifhs-final__pack .if-icon { width: 22px; height: 22px; }
.ifhs p.ifhs-final__fair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: rgba(232, 241, 250, .8); }
.ifhs-final__fair .if-icon { width: 20px; height: 20px; color: #7FE3BD; }
.ifhs-final__fair a { font-weight: 700; color: #fff !important; text-decoration: underline !important; }
.ifhs-final__form { position: relative; }
.ifhs-final__form .ifx-register { position: relative; color: var(--if-navy); box-shadow: 0 40px 90px rgba(0, 0, 0, .4); }
.ifhs-final__form .ifx-register a { color: var(--if-eisblau) !important; text-decoration: underline !important; }
.ifhs-final__sticker { position: absolute; right: -54px; top: -96px; z-index: 3; width: 112px; height: auto; transform: rotate(12deg); filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .35)); pointer-events: none; }

/* floating call to action (phones) */
.ifhs-float { display: none; }

@media (prefers-reduced-motion: reduce) {
    .ifhs-hero__frame, .ifhs-sticker { animation: none; }
    .ifx-js .ifhs-card__flip { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
    .ifhs-filter__count { display: none; }
}
@media (max-width: 1180px) {
    .ifhs-hero__in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .ifhs-hero__stage { max-width: 680px; margin: 0 auto; width: 100%; }
    .ifhs-filter__in { overflow-x: auto; scrollbar-width: none; }
    .ifhs-filter__in::-webkit-scrollbar { display: none; }
    .ifhs-stadium__box { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .ifhs-day__list { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 26px; }
    .ifhs-day__list::before { display: none; }
    .ifhs-final__in { grid-template-columns: minmax(0, 1fr); gap: 50px; }
    .ifhs-final__form { max-width: 420px; }
    .ifhs-float {
        position: fixed; left: 16px; right: 84px; bottom: 16px; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 26px;
        font: 800 italic 18px/1 var(--if-font-head); text-transform: uppercase; color: #fff !important; background: linear-gradient(135deg, #FF4D3D, var(--if-red)); box-shadow: 0 12px 30px rgba(225, 37, 47, .45);
        transform: translateY(120px); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    }
    .ifhs-float.is-on { transform: none; }
    .ifhs-float .if-icon { width: 22px; height: 22px; }
}
@media (max-width: 860px) {
    .ifhs-hero { padding: 40px 0 60px; }
    .ifhs p.ifhs-hero__lead { font-size: 17px; }
    .ifhs-btn { height: 52px; padding: 0 22px; font-size: 17px; }
    .ifhs-hero__stage { padding: 30px 18px 20px; }
    .ifhs-sticker--puck { width: 120px; left: -14px; top: 0; }
    .ifhs-sticker--pokal { width: 100px; right: -6px; top: -10px; }
    .ifhs-sticker--taktik { width: 96px; left: -4px; bottom: -6px; }
    .ifhs-sticker--stadion { width: 110px; right: -4px; bottom: -14px; }
    .ifhs-hero__label { font-size: 16px; }
    .ifhs-hero__frame { padding-bottom: 48px; }
    .ifhs-note { padding: 40px 22px 30px; }
    .ifhs-note__icon { left: 50%; top: -30px; width: 46px; height: 46px; margin-left: 60px; }
    .ifhs p.ifhs-note__text { font-size: 17px; line-height: 32px; background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(20, 120, 212, .1) 31px 32px); }
    .ifhs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
    .ifx-js .ifhs-grid > .ifhs-card.is-in { transition-delay: 0s; }
    .ifhs-group { margin-bottom: 44px; }
    .ifhs h2.ifhs-group__title { gap: 12px; margin-bottom: 18px; padding-bottom: 10px; font-size: 26px; }
    .ifhs-group__icon { width: 44px; height: 44px; border-radius: 13px; }
    .ifhs-group__icon .if-icon { width: 22px; height: 22px; }
    .ifhs-reel { padding: 70px 0 80px; }
    .ifhs-reel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .ifhs-tile { border-width: 5px; }
    .ifhs-tile__name { font-size: 15px; }
    .ifhs-stadium { padding: 80px 0 70px; }
    .ifhs-stadium__sticker { width: 96px; right: -8px; top: -40px; }
    .ifhs-stadium__caption span { font-size: 28px; }
    .ifhs-quiz { padding: 40px 18px 34px; }
    .ifhs-quiz__sticker { width: 74px; right: 8px; top: 8px; }
    .ifhs p.ifhs-quiz__q { font-size: 24px; }
    .ifhs-quiz__answers { grid-template-columns: minmax(0, 1fr); }
    .ifhs-type__cards { gap: 8px; }
    .ifhs-mini span { font-size: 14px; padding: 8px 4px; }
    .ifhs-day__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .ifhs-day__item { display: grid; grid-template-columns: 76px 46px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 0; text-align: left; }
    .ifhs-day__item time { grid-row: 1 / 3; padding: 10px 0; font-size: 20px; text-align: center; }
    .ifhs-day__icon { grid-row: 1 / 3; width: 46px; height: 46px; margin: 0; border-radius: 14px; }
    .ifhs-day__icon .if-icon { width: 22px; height: 22px; }
    .ifhs-day__item b { align-self: end; font-size: 18px; }
    .ifhs-day__item small { align-self: start; font-size: 13px; }
    .ifhs-pill { padding: 8px 12px; font-size: 11px; }
    .ifhs-pill b { font-size: 19px; }
    .ifhs-step { width: 44px; height: 44px; font-size: 20px; }
    .ifhs-steps { gap: 8px; }
    .ifhs-final { padding: 80px 0 110px; }
    .ifhs-final__pack { grid-template-columns: minmax(0, 1fr); }
    .ifhs-final__sticker { width: 90px; right: -6px; top: -50px; }
}
/* phones: the album becomes a deck to swipe */
@media (max-width: 640px) {
    .ifhs-grid {
        display: flex; gap: 14px; margin: 0; padding: 6px 18px 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .ifhs-grid::-webkit-scrollbar { display: none; }
    .ifhs-card { flex: 0 0 84%; scroll-snap-align: start; scroll-margin-top: calc(var(--ifp-top-h) + 80px); }
    .ifhs-card__pic { min-height: 210px; }
    .ifx-js .ifhs-grid > .ifhs-card[data-ifx-reveal] { opacity: 1; transform: none; }
    .ifhs-chip { height: 40px; font-size: 15px; }
}
