/* Compare Hero – professional effects (themes, backgrounds, glass deck, entrance, headline accent, CTA shine, badges).
 * Everything is additive: remove the tf-hx classes and the hero looks as before. Motion = transform/opacity only. */
.tarifly-hero-compare.tf-hx{position:relative;isolation:isolate;--tf-hx-acc:var(--tf-accent,var(--wd-primary-color,var(--ts-acc,#fa7320)));--tf-hx-ease:cubic-bezier(.2,.7,.2,1)}
.tf-hx-bg{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;border-radius:inherit}

/* ---- themes ---- */
.tf-hx-theme-tinted{background:radial-gradient(60% 80% at 100% 0%,color-mix(in srgb,var(--tf-hx-acc) 11%,transparent),transparent 70%),linear-gradient(180deg,#f7f7fb,#fff)}
.tf-hx-theme-mesh{background:radial-gradient(40% 50% at 0% 0%,color-mix(in srgb,var(--tf-hx-acc) 16%,transparent),transparent 70%),radial-gradient(45% 55% at 100% 10%,rgba(13,6,37,.06),transparent 70%),radial-gradient(40% 50% at 50% 100%,rgba(16,185,129,.1),transparent 70%),#fff}

.tf-hx-theme-dark .tarifly-hero-compare__intro,.tf-hx-theme-dark .tarifly-hero-compare__trust-footer{--tf-ink:#fff;--tf-muted:rgba(255,255,255,.8);--tf-text:rgba(255,255,255,.8);color:rgba(255,255,255,.85)}
.tf-hx-theme-dark .tarifly-hero-compare__headline-line,.tf-hx-theme-dark .tarifly-hero-compare__headline{color:#fff}

.tf-hx-theme-dark .tarifly-hero-compare__trust-footer{color:rgba(255,255,255,.7)}

/* ---- background effects ---- */
.tf-hx-bg-aurora .tf-hx-bg::before,.tf-hx-bg-aurora .tf-hx-bg::after{content:"";position:absolute;width:52%;aspect-ratio:1;border-radius:50%;filter:blur(80px);will-change:transform}
.tf-hx-bg-aurora .tf-hx-bg::before{top:-26%;right:-8%;background:var(--tf-hx-acc);opacity:.18;animation:tf-hx-aurora-a 18s ease-in-out infinite alternate}
.tf-hx-bg-aurora .tf-hx-bg::after{bottom:-30%;left:-8%;background:var(--ts-ink,#0d0625);opacity:.1;animation:tf-hx-aurora-b 22s ease-in-out infinite alternate}
.tf-hx-theme-dark.tf-hx-bg-aurora .tf-hx-bg::before{opacity:.3}.tf-hx-theme-dark.tf-hx-bg-aurora .tf-hx-bg::after{background:var(--tf-hx-acc);opacity:.16}
@keyframes tf-hx-aurora-a{to{transform:translate3d(-12%,14%,0) scale(1.15)}}
@keyframes tf-hx-aurora-b{to{transform:translate3d(14%,-10%,0) scale(1.1)}}
.tf-hx-bg-grid .tf-hx-bg{background-image:linear-gradient(to right,currentColor 1px,transparent 1px),linear-gradient(to bottom,currentColor 1px,transparent 1px);background-size:44px 44px;color:rgba(13,6,37,.045);-webkit-mask-image:radial-gradient(70% 90% at 50% 20%,#000,transparent);mask-image:radial-gradient(70% 90% at 50% 20%,#000,transparent)}
.tf-hx-bg-dots .tf-hx-bg{background-image:radial-gradient(currentColor 1.2px,transparent 1.4px);background-size:22px 22px;color:rgba(13,6,37,.14);-webkit-mask-image:radial-gradient(80% 100% at 80% 0%,#000,transparent 75%);mask-image:radial-gradient(80% 100% at 80% 0%,#000,transparent 75%)}
.tf-hx-theme-dark.tf-hx-bg-grid .tf-hx-bg{color:rgba(255,255,255,.1)}.tf-hx-theme-dark.tf-hx-bg-dots .tf-hx-bg{color:rgba(255,255,255,.22)}

/* ---- entrance ----
   The hero picture (the LCP element) never animates from opacity:0: it is painted as soon as it arrives. */
.tf-hx-intro-stagger .tarifly-hero-compare__intro>*,.tf-hx-intro-stagger .tarifly-hero-compare__feature,.tf-hx-intro-stagger .tarifly-hero-compare__product{animation:tf-hx-in .8s var(--tf-hx-ease) both}
.tf-hx-intro-stagger .tarifly-hero-compare__intro>*:nth-child(1){animation-delay:.04s}
.tf-hx-intro-stagger .tarifly-hero-compare__intro>*:nth-child(2){animation-delay:.12s}
.tf-hx-intro-stagger .tarifly-hero-compare__intro>*:nth-child(3){animation-delay:.2s}
.tf-hx-intro-stagger .tarifly-hero-compare__intro>*:nth-child(4){animation-delay:.28s}
.tf-hx-intro-stagger .tarifly-hero-compare__feature:nth-child(1){animation-delay:.36s}
.tf-hx-intro-stagger .tarifly-hero-compare__feature:nth-child(2){animation-delay:.42s}
.tf-hx-intro-stagger .tarifly-hero-compare__feature:nth-child(3){animation-delay:.48s}
.tf-hx-intro-stagger .tarifly-hero-compare__feature:nth-child(4){animation-delay:.54s}
.tf-hx-intro-stagger .tarifly-hero-compare__product{animation-delay:.5s;animation-duration:.9s}
.tf-hx-intro-rise .tarifly-hero-compare__lead,.tf-hx-intro-rise .tarifly-hero-compare__product{animation:tf-hx-in .9s var(--tf-hx-ease) both}
@keyframes tf-hx-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

/* ---- headline accent ---- */
.tf-hx-title-underline .tarifly-hero-compare__headline-accent{background-image:linear-gradient(var(--tf-hx-acc),var(--tf-hx-acc));background-repeat:no-repeat;background-position:0 100%;background-size:0 .1em;padding-bottom:.06em;-webkit-box-decoration-break:clone;box-decoration-break:clone;animation:tf-hx-underline 1.1s .7s var(--tf-hx-ease) forwards}
@keyframes tf-hx-underline{to{background-size:100% .1em}}
.tf-hx-title-gradient .tarifly-hero-compare__headline-accent{background-image:linear-gradient(95deg,var(--tf-hx-acc),color-mix(in srgb,var(--tf-hx-acc) 70%,#ffb347));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
@keyframes tf-hx-shift{to{background-position:-220% 0}}

/* ---- CTA ---- */
.tf-hx-cta-shine .tarifly-hero-compare__submit{position:relative;overflow:hidden}
.tf-hx-cta-shine .tarifly-hero-compare__submit::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(105deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-18deg);animation:tf-hx-shine 5.5s 2s ease-in-out infinite;pointer-events:none}
@keyframes tf-hx-shine{0%,70%{left:-60%}100%{left:130%}}
.tf-hx-cta-pulse .tarifly-hero-compare__submit{animation:tf-hx-pulse 3.4s ease-out infinite}
@keyframes tf-hx-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--tf-hx-acc) 32%,transparent)}70%,100%{box-shadow:0 0 0 10px transparent}}

/* ---- floating badges over the hero image ---- */
.tarifly-hero-compare__side:has(.tf-hx-badges){position:relative}
.tf-hx-badges{position:absolute;inset:0;pointer-events:none;z-index:2}
.tf-hx-badge{position:absolute;display:inline-flex;align-items:center;gap:10px;padding:9px 14px 9px 9px;border-radius:99px;font-family:inherit;line-height:1.15;white-space:nowrap;animation:tf-hx-float 6.5s ease-in-out infinite}
.tf-hx-badges--glass .tf-hx-badge{background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 0 0 1px rgba(13,6,37,.07),0 18px 36px -18px rgba(13,6,37,.45)}
.tf-hx-badges--solid .tf-hx-badge{background:var(--ts-ink,#0d0625);color:#fff;box-shadow:0 18px 36px -16px rgba(13,6,37,.6)}
.tf-hx-badge__icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--tf-hx-acc);color:#fff}
.tf-hx-badge__icon svg{width:17px;height:17px}
.tf-hx-badge__copy{display:grid;gap:1px;text-align:left}
.tf-hx-badge strong{font-size:14px;font-weight:750;color:inherit}
.tf-hx-badges--glass .tf-hx-badge strong{color:var(--ts-ink,#0d0625)}
.tf-hx-badge small{font-size:12px;font-weight:500;opacity:.7;color:inherit}
.tf-hx-badges--glass .tf-hx-badge small{color:var(--ts-text,#3a3f4f);opacity:1}
.tf-hx-badge--1{top:8%;left:2%;animation-delay:0s}
.tf-hx-badge--2{top:44%;right:2%;animation-delay:1.4s;animation-duration:7.5s}
.tf-hx-badge--3{bottom:8%;left:4%;animation-delay:.7s;animation-duration:8s}
.tf-hx-badge--4{top:2%;right:8%;animation-delay:2.1s}
@keyframes tf-hx-float{50%{transform:translateY(-5px)}}
@media (max-width:760px){.tf-hx-badge--3,.tf-hx-badge--4{display:none}.tf-hx-badge{padding:7px 12px 7px 7px}.tf-hx-badge--1{top:0;left:0}.tf-hx-badge--2{top:auto;bottom:0;right:0}.tf-hx-badge__icon{width:28px;height:28px}}

@media (prefers-reduced-motion:reduce){
	.tf-hx *,.tf-hx *::before,.tf-hx *::after{animation:none!important}
	.tf-hx-title-underline .tarifly-hero-compare__headline-accent{background-size:100% .1em}
	.tf-hx-title-gradient .tarifly-hero-compare__headline-accent{background-position:0 0}
}
@media print{.tf-hx-bg,.tf-hx-badges{display:none}}

/* Options the base stylesheet hard-codes in the showcase layout: let the surface colour apply. */
.tarifly-hero-compare.is-showcase .tarifly-hero-compare__deck{background:var(--tf-surface,#fff)}

/* Phones and tablets: lighter, cheaper background (no animated blur layers) and calmer motion. */
@media (max-width:820px){
	.tf-hx-bg-aurora .tf-hx-bg::before,.tf-hx-bg-aurora .tf-hx-bg::after{filter:blur(48px);animation:none;will-change:auto}
	.tf-hx-bg-aurora .tf-hx-bg::before{width:70%;top:-12%;right:-18%}
	.tf-hx-bg-aurora .tf-hx-bg::after{width:70%;bottom:-14%;left:-18%}
	.tf-hx-badge{animation-duration:9s}
}

/* 1.47.0 dark = Apple "liquid glass" hero (skill apple-liquid-glass): navy ground like the tarifly.de header, soft accent orbs,
 * glass only where layers overlap (eyebrow, feature chips, image badges), the compare card stays solid white on an overlay shadow.
 * Themes beat the showcase reset (background:transparent!important) of the hero stylesheet. */
.tarifly-hero-compare.tf-hx-theme-tinted,.tarifly-hero-compare.tf-hx-theme-mesh{background-color:transparent}
.tarifly-hero-compare.is-showcase.tf-hx-theme-tinted{background:radial-gradient(60% 80% at 100% 0%,color-mix(in srgb,var(--tf-hx-acc) 11%,transparent),transparent 70%),linear-gradient(180deg,#f7f7fb,#fff)!important}
.tarifly-hero-compare.is-showcase.tf-hx-theme-mesh{background:radial-gradient(40% 50% at 0% 0%,color-mix(in srgb,var(--tf-hx-acc) 16%,transparent),transparent 70%),radial-gradient(40% 50% at 50% 100%,rgba(13,6,37,.05),transparent 70%),#fff!important}
.tarifly-hero-compare.tf-hx-theme-dark,.tarifly-hero-compare.is-showcase.tf-hx-theme-dark{background:linear-gradient(180deg,var(--ts-ink,#0d0625) 0%,color-mix(in srgb,var(--ts-ink,#0d0625) 88%,#2a2150) 100%)!important;color:#fff;padding-top:clamp(36px,6vw,84px);padding-bottom:clamp(28px,4.5vw,56px)}
.tf-hx-theme-dark .tarifly-hero-compare__headline{font-weight:700;letter-spacing:-.035em}
.tf-hx-theme-dark .tarifly-hero-compare__subtitle{color:rgba(255,255,255,.92)}
.tf-hx-theme-dark .tarifly-hero-compare__desc{color:rgba(255,255,255,.72)}
.tf-hx-theme-dark .tarifly-hero-compare__badge{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18);color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.tf-hx-theme-dark .tarifly-hero-compare__feature{background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);-webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px);--tf-ink:#fff;--tf-text:rgba(255,255,255,.68);--tf-muted:rgba(255,255,255,.68);color:#fff}
.tf-hx-theme-dark .tarifly-hero-compare__feature strong{color:#fff}
.tf-hx-theme-dark .tarifly-hero-compare__feature small{color:rgba(255,255,255,.66)}
.tf-hx-theme-dark .tarifly-hero-compare__feature-icon{background:rgba(255,255,255,.1);color:color-mix(in srgb,var(--tf-hx-acc) 70%,#fff)}
.tf-hx-theme-dark.is-showcase .tarifly-hero-compare__deck{box-shadow:0 2px 8px rgba(0,0,0,.18),0 40px 90px -24px rgba(0,0,0,.6)}
.tf-hx-theme-dark .tf-hx-badges--glass .tf-hx-badge{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 18px 36px -18px rgba(0,0,0,.5);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px)}
.tf-hx-theme-dark .tf-hx-badge strong,.tf-hx-theme-dark .tf-hx-badge small{color:inherit}
.tf-hx-theme-dark .tf-hx-badge small{opacity:.75}

/* 1.48.0 full width: background edge to edge (the page wrapper already clips overflow-x), content stays on the container grid. */
.tarifly-hero-compare.tf-hx-full{width:100vw;max-width:none;margin-inline:calc(50% - 50vw);border-radius:0;padding-inline:max(16px,calc((100vw - 1200px)/2 + 15px))}
@media (max-width:768.98px){.tarifly-hero-compare.tf-hx-full{padding-inline:16px}}
/* Phones: the comparison form comes right after the headline, the feature list follows it (form above the fold). */
@media (max-width:768.98px){.tarifly-hero-compare.tf-hx .tarifly-hero-compare__showcase-top,.tarifly-hero-compare.tf-hx .tarifly-hero-compare__lead{display:contents}.tarifly-hero-compare.tf-hx .tarifly-hero-compare__features{order:3}}

/* ---- animated SVG backgrounds (assets/css/hero-bg.css) on the compare hero ---- */
.tarifly-hero-compare .tf-hxsvg.tf-hx-bg{opacity:.55}
.tf-hx-theme-dark .tf-hxsvg.tf-hx-bg{opacity:1}
.tf-hx-theme-dark .tf-hxsvg.tf-hx-bg::before{content:"";position:absolute;inset:0;background:radial-gradient(46% 62% at 82% 38%,color-mix(in srgb,var(--tf-hx-acc) 20%,transparent),transparent 72%),radial-gradient(40% 50% at 0% 100%,rgba(122,108,255,.12),transparent 70%)}

/* ---- dark hero: the four feature cards become one calm glass strip (desktop/tablet) ---- */
@media (min-width:761px){
	.tf-hx-theme-dark .tarifly-hero-compare__features{gap:0;padding:0;overflow:hidden;border-radius:18px;background:rgba(255,255,255,.045);box-shadow:inset 0 0 0 1px rgba(255,255,255,.11);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
	.tf-hx-theme-dark .tarifly-hero-compare__feature{border-radius:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;min-height:64px;padding:12px 16px}
	.tf-hx-theme-dark .tarifly-hero-compare__feature:nth-child(odd){border-inline-end:1px solid rgba(255,255,255,.1)}
	.tf-hx-theme-dark .tarifly-hero-compare__feature:nth-child(n+3){border-block-start:1px solid rgba(255,255,255,.1)}
}
