/* ==========================================================================
   HSA Reinigung – Startseite (Bühne, Bewegung, interaktive Elemente)
   ========================================================================== */

/* ---------- Kopfzeile über der dunklen Bühne ---------- */
.fx .site-header { position: fixed; left: 0; right: 0; }
.fx .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
html:not(.nav-open) .fx .site-header:not(.is-scrolled) .icon-btn,
html:not(.nav-open) .fx .site-header:not(.is-scrolled) .header-phone { color: #fff; border-color: rgba(255, 255, 255, .28); }
html:not(.nav-open) .fx .site-header:not(.is-scrolled) .brand img { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .6)) drop-shadow(0 0 16px rgba(90, 160, 255, .35)); }
.nav-open .fx .site-header { background: var(--bg); }
@media (min-width: 1021px) {
  .fx .site-header:not(.is-scrolled) .nav-list > li > a,
  .fx .site-header:not(.is-scrolled) .nav-parent > a,
  .fx .site-header:not(.is-scrolled) .sub-toggle { color: #fff; }
  .fx .site-header:not(.is-scrolled) .nav-list a::after { background: var(--aqua); }
}

/* Lesefortschritt */
.progress { position: fixed; left: 0; top: 0; z-index: 120; width: 100%; height: 3px; background: linear-gradient(90deg, var(--aqua), #6fd3ff, var(--royal)); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- Bühne ---------- */
.hx { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 10%, #123a8f 0%, #0a1f4d 38%, #050d22 78%); padding-top: var(--header-h); }
.hx-bubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hx-glow { position: absolute; z-index: -2; border-radius: 50%; filter: blur(70px); opacity: .75; will-change: transform; }
.hx-glow-a { width: 46vw; height: 46vw; right: -8vw; top: -14vw; background: radial-gradient(circle, #18aeeb 0%, rgba(24, 174, 235, 0) 68%); animation: drift-a 16s ease-in-out infinite alternate; }
.hx-glow-b { width: 38vw; height: 38vw; left: -12vw; bottom: -16vw; background: radial-gradient(circle, #2b62ff 0%, rgba(43, 98, 255, 0) 68%); animation: drift-b 20s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-9vw, 7vw, 0) scale(1.18); } }
@keyframes drift-b { to { transform: translate3d(10vw, -6vw, 0) scale(1.12); } }
/* Fensterraster, das langsam vorbeizieht */
.hx-lines { position: absolute; inset: -2px; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 88px 88px; -webkit-mask-image: radial-gradient(90% 80% at 70% 40%, #000 0%, transparent 78%); mask-image: radial-gradient(90% 80% at 70% 40%, #000 0%, transparent 78%); animation: lines 28s linear infinite; }
@keyframes lines { to { background-position: 88px 88px, 88px 88px; } }

.hx-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; min-height: min(86vh, 860px); padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hx-badge { display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 1.6rem; padding: .5rem 1.05rem .4rem; font-weight: 700; font-size: 1rem; color: #d9ecff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hx-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #3fe08d; }
.hx-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3fe08d; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { transform: scale(3.4); opacity: 0; } }
.hx h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: 1.03; letter-spacing: -.028em; text-shadow: 0 2px 40px rgba(5, 13, 34, .6); }
.hx h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hx h1 .w > span { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: left bottom; transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(.55s + var(--i, 0) * 60ms); }
.hx.is-ready h1 .w > span { transform: none; }
.hx h1 .w.is-accent > span { background: linear-gradient(100deg, #18aeeb, #9fe6ff 45%, #18aeeb 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 5s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.hx-lead { margin: 1.6rem 0 0; max-width: 34em; font-size: clamp(1.15rem, 1.5vw, 1.32rem); line-height: 1.55; color: #c3d3ee; }
.js .hx-badge, .js .hx-lead, .js .hx-buttons, .js .hx-claims { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .hx.is-ready .hx-badge { opacity: 1; transform: none; transition-delay: .35s; }
.js .hx.is-ready .hx-lead { opacity: 1; transform: none; transition-delay: 1.15s; }
.js .hx.is-ready .hx-buttons { opacity: 1; transform: none; transition-delay: 1.3s; }
.js .hx.is-ready .hx-claims { opacity: 1; transform: none; transition-delay: 1.45s; }
.hx-claims { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2.1rem; font-weight: 700; color: #e6f1ff; }
.hx-claims li { display: inline-flex; align-items: center; gap: .5rem; }
.hx-claims svg { padding: 3px; width: 24px; height: 24px; color: #06122c; background: var(--aqua); border-radius: 50%; }

/* Schaltflächen der Bühne */
.btn-glow { color: #06122c; background: linear-gradient(100deg, #6fd3ff, #18aeeb 45%, #6fd3ff); background-size: 200% 100%; box-shadow: 0 0 0 0 rgba(24, 174, 235, .55), 0 14px 34px -12px rgba(24, 174, 235, .8); animation: glow-ring 2.6s ease-out infinite; transition: background-position .5s var(--ease), transform .25s var(--ease); }
.btn-glow:hover { background-position: 100% 0; }
.btn-glow svg { transition: transform .3s var(--ease); }
.btn-glow:hover svg { transform: translateX(5px); }
@keyframes glow-ring { 0% { box-shadow: 0 0 0 0 rgba(24, 174, 235, .55), 0 14px 34px -12px rgba(24, 174, 235, .8); } 70%, 100% { box-shadow: 0 0 0 18px rgba(24, 174, 235, 0), 0 14px 34px -12px rgba(24, 174, 235, .8); } }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* Logo-Bühne mit Ringen und Umlaufbahn */
.hx-stage { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 1; display: grid; place-items: center; transition: transform .3s ease-out; transform-style: preserve-3d; }
.js .hx-stage { opacity: 0; scale: .86; transition: opacity 1.1s var(--ease) .3s, scale 1.3s cubic-bezier(.2, .9, .2, 1) .3s, transform .3s ease-out; }
.js .hx.is-ready .hx-stage { opacity: 1; scale: 1; }
.hx-ring { position: absolute; border-radius: 50%; }
.hx-ring-1 { inset: 4%; background: conic-gradient(from 0deg, transparent 0 55%, rgba(24, 174, 235, .9) 78%, #fff 84%, transparent 86%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); animation: spin 9s linear infinite; }
.hx-ring-2 { inset: 13%; border: 1px dashed rgba(255, 255, 255, .22); animation: spin 60s linear infinite reverse; }
.hx-ring-3 { inset: 20%; background: radial-gradient(circle, rgba(24, 174, 235, .34) 0%, rgba(20, 80, 200, .18) 45%, transparent 70%); animation: breathe 5s ease-in-out infinite alternate; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { to { transform: scale(1.14); opacity: .7; } }
.hx-logo { position: relative; width: 82%; animation: float 6s ease-in-out infinite alternate; }
.hx-logo img { width: 100%; height: auto; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .7)) drop-shadow(0 24px 40px rgba(2, 8, 24, .7)) drop-shadow(0 0 46px rgba(60, 150, 255, .45)); }
@keyframes float { from { transform: translateY(-10px); } to { transform: translateY(12px); } }
.hx-orbit { position: absolute; inset: -2%; animation: spin 46s linear infinite; }
.hx-chip { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.hx-chip i { position: absolute; left: 0; top: 0; translate: -50% -50%; padding: .42rem .95rem .32rem; font-style: normal; font-weight: 700; font-size: .95rem; white-space: nowrap; color: #eaf5ff; background: rgba(10, 31, 77, .72); border: 1px solid rgba(120, 190, 255, .45); border-radius: 999px; box-shadow: 0 8px 22px -10px rgba(24, 174, 235, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: spin 46s linear infinite reverse; }
.hx-stage { container-type: inline-size; }
.hx-chip-1 { transform: rotate(0deg) translateY(-51cqw) rotate(0deg); }
.hx-chip-2 { transform: rotate(60deg) translateY(-51cqw) rotate(-60deg); }
.hx-chip-3 { transform: rotate(120deg) translateY(-51cqw) rotate(-120deg); }
.hx-chip-4 { transform: rotate(180deg) translateY(-51cqw) rotate(-180deg); }
.hx-chip-5 { transform: rotate(240deg) translateY(-51cqw) rotate(-240deg); }
.hx-chip-6 { transform: rotate(300deg) translateY(-51cqw) rotate(-300deg); }
.hx-spark { position: absolute; color: #bfe9ff; filter: drop-shadow(0 0 10px rgba(120, 210, 255, .9)); animation: twinkle 2.6s ease-in-out infinite; }
.hx-spark svg { fill: currentColor; stroke: none; }
.hx-spark-1 { right: 9%; top: 16%; }
.hx-spark-2 { left: 12%; top: 26%; animation-delay: .9s; }
.hx-spark-3 { right: 20%; bottom: 14%; animation-delay: 1.7s; }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0deg); opacity: .15; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }

/* Abzieher-Wischer über die ganze Bühne (einmal beim Laden) */
.hx-wipe { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: none; }
.js .hx-wipe { display: block; }
.hx-wipe-dust { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(180, 192, 210, .5), rgba(120, 136, 160, .42)); backdrop-filter: blur(9px) saturate(.35); -webkit-backdrop-filter: blur(9px) saturate(.35); animation: hx-dust 1.5s .15s cubic-bezier(.65, .02, .3, 1) both; }
.hx-wipe-track { position: absolute; inset: 0; will-change: transform; animation: hx-blade 1.5s .15s cubic-bezier(.65, .02, .3, 1) both; }
.hx-wipe-blade { position: absolute; top: -5%; bottom: -5%; left: 0; width: 14px; margin-left: -7px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 45%, #8fdcff 55%, rgba(143, 220, 255, 0)); box-shadow: 0 0 40px 10px rgba(120, 210, 255, .75); transform: rotate(4deg); }
@keyframes hx-dust { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes hx-blade { 0% { transform: translateX(0); opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }

/* Laufband */
.marquee { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(5, 13, 34, .5); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: .65rem; padding: 1.05rem 1.9rem .95rem; font-weight: 700; font-size: 1.05rem; color: #cfe2ff; white-space: nowrap; }
.marquee svg { color: var(--aqua); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .hx-inner { grid-template-columns: 1fr; min-height: 0; }
  .hx-stage { order: -1; width: min(74%, 330px); margin-top: .5rem; }
  .hx-chip i { font-size: .8rem; padding: .3rem .7rem .22rem; }
  .hx-glow-a { width: 90vw; height: 90vw; }
  .hx-glow-b { width: 80vw; height: 80vw; }
}

/* ---------- Kennzahlen ---------- */
.stats { position: relative; z-index: 2; margin-top: -1px; background: linear-gradient(180deg, #050d22, #0a1a3a); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.4rem 1.5rem 2.2rem 0; }
.stat + .stat { padding-left: 1.75rem; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat strong { display: block; font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; background: linear-gradient(120deg, #fff 20%, #6fd3ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: .55rem; color: #b9c6dc; line-height: 1.35; max-width: 15em; }
@media (max-width: 820px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.6rem 1rem 1.5rem 0; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .stat + .stat { padding-left: 1.1rem; }
  .stat:nth-child(3) { padding-left: 0; }
}

/* ---------- Überschriften mit gezeichneter Linie ---------- */
.h-draw { position: relative; display: inline-block; padding-bottom: .38em; }
.h-draw::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(100%, 5.2em); height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--royal), var(--aqua)); transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2, .8, .2, 1) .25s; }
.is-in .h-draw::after, .is-in.h-draw::after, html:not(.js) .h-draw::after { transform: scaleX(1); }

/* Varianten für das Einblenden */
.js .reveal-left { transform: translateX(-44px); }
.js .reveal-right { transform: translateX(44px); }
.js .reveal-pop { transform: translateY(34px) scale(.94); }
.js .reveal-left.is-in, .js .reveal-right.is-in, .js .reveal-pop.is-in { transform: none; }

/* ---------- Leistungen als Kartenraster ---------- */
.filter { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter button { padding: .6rem 1.1rem .5rem; font-weight: 700; font-size: 1rem; color: var(--text); background: var(--bg-mist); border: 1px solid transparent; border-radius: 999px; transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.filter button:hover { transform: translateY(-2px); border-color: var(--line); }
.filter button.is-active { color: #fff; background: linear-gradient(110deg, var(--royal), #1f7bf0); box-shadow: 0 10px 24px -10px rgba(20, 80, 200, .8); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc.is-off { display: none; }
.svc.is-pop { animation: svc-pop .55s cubic-bezier(.2, .9, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes svc-pop { from { opacity: 0; transform: translateY(26px) scale(.93); } }
.svc a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.75rem 1.75rem 1.6rem; color: var(--text); text-decoration: none; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; isolation: isolate; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, border-color .3s; }
.svc a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(24, 174, 235, .2), transparent 62%); opacity: 0; transition: opacity .35s; }
.svc a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--royal), var(--aqua)); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.svc a:hover, .svc a:focus-visible { transform: translateY(-8px); border-color: rgba(24, 174, 235, .6); box-shadow: 0 30px 50px -28px rgba(20, 80, 200, .55), 0 0 0 1px rgba(24, 174, 235, .25); }
.svc a:hover::before, .svc a:focus-visible::before { opacity: 1; }
.svc a:hover::after, .svc a:focus-visible::after { transform: scaleX(1); }
.svc-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 1.3rem; color: #fff; background: linear-gradient(140deg, #1f7bf0, var(--royal-deep)); border-radius: 14px; box-shadow: 0 14px 26px -14px rgba(20, 80, 200, .9); transition: transform .55s cubic-bezier(.2, .9, .2, 1.2); }
.svc a:hover .svc-icon { transform: translateY(-4px) rotate(-8deg) scale(1.08); }
.svc-group { font-size: .9rem; font-weight: 700; color: var(--link); }
.svc strong { margin: .15rem 0 .5rem; font-size: 1.4rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.svc-text { color: var(--text-soft); font-size: 1.0625rem; line-height: 1.45; }
.svc-go { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: 1.2rem; font-weight: 700; color: var(--link); }
.svc-go svg { transition: transform .35s var(--ease); }
.svc a:hover .svc-go svg, .svc a:focus-visible .svc-go svg { transform: translateX(7px); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } .svc a { padding: 1.4rem; } }

/* ---------- Dunkle Abschnitte mit Lichtkegel ---------- */
.section-spot, .section-map { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(100% 120% at 0% 0%, #10307a 0%, #0a1a3a 45%, #050d22 100%); }
.section-spot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(24, 174, 235, .22), transparent 65%); }
.split-even { grid-template-columns: 1fr 1fr; align-items: center; }
.split-map { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.split-map .radar { position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 900px) { .split-even, .split-map { grid-template-columns: 1fr; } }
.ink-lead { margin: 1.25rem 0 1.75rem; font-size: 1.2rem; color: var(--band-soft); max-width: 32em; }
.tick-list { display: grid; gap: 1rem; margin-bottom: 2.1rem; }
.tick-list li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; color: #c8d5ea; }
.tick-list strong { color: #fff; }
.tick-list svg { margin-top: .12rem; padding: 3px; width: 26px; height: 26px; color: #06122c; background: var(--aqua); border-radius: 50%; }

/* Vorher-Nachher-Regler */
.ba { --pos: 50%; position: relative; aspect-ratio: 5 / 4; border-radius: 16px; overflow: hidden; background: #0a1a3a; border: 10px solid #0e2552; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(120, 190, 255, .25), 0 0 80px -20px rgba(24, 174, 235, .5); touch-action: pan-y; }
.ba-layer { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 1fr); gap: 8px; }
.ba-layer span { box-shadow: 0 0 0 4px #0e2552; }
.ba-clean { background: linear-gradient(165deg, #b4e6ff 0%, #56b4f6 30%, #1b63d6 65%, #0d3a96 100%); }
.ba-clean::before { content: ""; position: absolute; inset: -10%; background: linear-gradient(112deg, transparent 20%, rgba(255, 255, 255, .5) 21%, rgba(255, 255, 255, .5) 29%, transparent 30%, transparent 37%, rgba(255, 255, 255, .25) 38%, rgba(255, 255, 255, .25) 42%, transparent 43%); animation: ba-shine 5s ease-in-out infinite alternate; }
@keyframes ba-shine { from { transform: translateX(-12%); } to { transform: translateX(22%); } }
.ba-dirty { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: radial-gradient(40% 35% at 25% 30%, rgba(96, 104, 92, .85), transparent 70%), radial-gradient(45% 40% at 70% 70%, rgba(110, 112, 98, .8), transparent 70%), radial-gradient(30% 30% at 80% 20%, rgba(86, 96, 88, .7), transparent 70%), repeating-linear-gradient(96deg, rgba(60, 66, 62, .22) 0 3px, transparent 3px 19px), linear-gradient(165deg, #8f9aa2, #5f6c78 55%, #46525f); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 24px 4px rgba(140, 215, 255, .9); }
.ba-handle span { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; color: #0a1a3a; background: #fff; border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .25); }
.ba-handle svg:first-child { transform: rotate(90deg); margin-right: -2px; }
.ba-handle svg:last-child { transform: rotate(-90deg); margin-left: -2px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.ba-tag { position: absolute; top: 1rem; padding: .3rem .8rem .2rem; font-weight: 700; font-size: .95rem; color: #fff; background: rgba(5, 13, 34, .7); border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ba-tag-before { left: 1rem; }
.ba-tag-after { right: 1rem; }
.ba-note { margin: .9rem 0 0; font-size: .9rem; color: #8fa2c4; text-align: right; }

/* ---------- Zielgruppen ---------- */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.who { position: relative; display: flex; flex-direction: column; padding: 2rem 1.75rem 1.75rem; color: #fff; text-decoration: none; background: linear-gradient(160deg, #123a8f, #0a1a3a 70%); border-radius: 16px; overflow: hidden; isolation: isolate; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.who::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(24, 174, 235, .5), transparent 65%); opacity: 0; transition: opacity .35s; }
.who::after { content: ""; position: absolute; right: -40px; bottom: -40px; z-index: -1; width: 150px; height: 150px; border: 22px solid rgba(255, 255, 255, .06); border-radius: 50%; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.who:hover { transform: translateY(-10px); box-shadow: 0 34px 60px -30px rgba(20, 80, 200, .85); }
.who:hover::before { opacity: 1; }
.who:hover::after { transform: scale(1.9); }
.who-icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 1.4rem; color: var(--aqua); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; transition: transform .5s cubic-bezier(.2, .9, .2, 1.2), background-color .3s, color .3s; }
.who:hover .who-icon { transform: scale(1.1) rotate(6deg); background: var(--aqua); color: #06122c; }
.who h3 { margin-bottom: .6rem; }
.who p { color: #c0cee6; font-size: 1.0625rem; }
.who-go { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; font-weight: 700; color: #8fdcff; }
.who-go svg { transition: transform .3s var(--ease); }
.who:hover .who-go svg { transform: translateX(6px); }
@media (max-width: 1020px) { .who-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .who-grid { grid-template-columns: 1fr; } }

/* ---------- Ablauf mit mitlaufender Linie ---------- */
.flow { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.flow::before, .flow::after { content: ""; position: absolute; left: 32px; right: calc(25% - 2rem - 32px); top: 31px; height: 4px; border-radius: 2px; }
.flow::before { background: var(--line); }
.flow::after { background: linear-gradient(90deg, var(--royal), var(--aqua)); transform: scaleX(var(--p)); transform-origin: left; box-shadow: 0 0 16px rgba(24, 174, 235, .7); }
.flow li { position: relative; z-index: 1; }
.flow-no { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 1.4rem; padding-top: .12em; font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--text-soft); background: var(--bg); border: 3px solid var(--line); border-radius: 50%; transition: transform .6s cubic-bezier(.2, .9, .2, 1.4), background-color .4s, border-color .4s, color .4s, box-shadow .4s; }
.flow li.is-on .flow-no { color: #fff; background: linear-gradient(140deg, #1f7bf0, var(--royal-deep)); border-color: transparent; transform: scale(1.12); box-shadow: 0 0 0 8px rgba(24, 174, 235, .18), 0 16px 30px -12px rgba(20, 80, 200, .9); }
.flow h3 { margin-bottom: .5rem; }
.flow p { margin: 0; color: var(--text-soft); font-size: 1.0625rem; }
.js .flow li h3, .js .flow li p { opacity: .35; transform: translateY(10px); transition: opacity .6s, transform .6s var(--ease); }
.js .flow li.is-on h3, .js .flow li.is-on p { opacity: 1; transform: none; }
html:not(.js) .flow { --p: 1; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before, .flow::after { left: 31px; right: auto; top: 12px; bottom: 60px; width: 4px; height: auto; }
  .flow::after { transform: scaleY(var(--p)); transform-origin: top; }
  .flow li { display: grid; grid-template-columns: 66px 1fr; column-gap: 1.25rem; padding-bottom: 2.25rem; }
  .flow-no { grid-row: span 2; margin: 0; }
  .flow h3 { align-self: end; }
}

/* ---------- Einsatzgebiet als Radar ---------- */
.region-list-ink { margin-bottom: 2rem; }
.region-list-ink .region h3 { border-bottom-color: var(--aqua); }
.region-list-ink .region ul { color: #b9c6dc; }
.region-list-ink .region a { color: #fff; }
.radar svg { display: block; width: 100%; height: auto; overflow: visible; }
.radar-rings circle { fill: none; stroke: rgba(140, 200, 255, .16); stroke-width: 1; stroke-dasharray: 3 7; }
.radar-pulse circle { fill: none; stroke: #18aeeb; stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; animation: radar 4.5s cubic-bezier(.2, .6, .3, 1) infinite; }
.radar-pulse circle:nth-child(2) { animation-delay: 1.5s; }
.radar-pulse circle:nth-child(3) { animation-delay: 3s; }
@keyframes radar { 0% { transform: scale(.15); opacity: .9; } 100% { transform: scale(5.4); opacity: 0; } }
.radar-links line { stroke: rgba(111, 211, 255, .65); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.3, .7, .2, 1) .5s; }
.radar.is-in .radar-links line, html:not(.js) .radar-links line { stroke-dashoffset: 0; }
.radar-city circle { fill: #7f9cc9; transform-box: fill-box; transform-origin: center; }
.radar-city text { fill: #9fb3d6; font-family: var(--font); font-size: 15px; font-weight: 500; }
.radar-city.is-feat circle { fill: #6fd3ff; filter: drop-shadow(0 0 6px rgba(111, 211, 255, .95)); animation: dot 2.4s ease-in-out infinite alternate; }
.radar-city.is-feat text { fill: #fff; font-size: 17px; font-weight: 700; }
.radar-city.is-home circle { fill: #fff; filter: drop-shadow(0 0 12px #6fd3ff); }
.radar-city.is-home text { font-size: 22px; font-weight: 800; }
@keyframes dot { to { transform: scale(1.5); } }
.js .radar-city { opacity: 0; transition: opacity .6s; }
.js .radar.is-in .radar-city { opacity: 1; transition-delay: calc(.4s + var(--i, 0) * 35ms); }

/* Ratgeber-Karten heben sich an */
.post-grid-lift .post-card { height: 100%; padding: .8rem .8rem 1.4rem; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 16px; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, border-color .3s; }
.post-grid-lift .post-card:hover { transform: translateY(-8px); border-color: rgba(24, 174, 235, .6); box-shadow: 0 30px 50px -28px rgba(20, 80, 200, .5); }
.post-grid-lift .post-card-media { border-radius: 10px; }
.post-grid-lift .post-card-body { padding-inline: .6rem; }

/* CTA mit wandernder Lichtfläche */
.fx .cta-band { background: linear-gradient(115deg, #0d3a96, #1450c8 35%, #18aeeb 70%, #1450c8); background-size: 260% 100%; animation: cta-flow 12s ease-in-out infinite alternate; }
@keyframes cta-flow { to { background-position: 100% 0; } }

@media (prefers-reduced-motion: reduce) {
  .hx-wipe, .hx-bubbles { display: none !important; }
  .js .hx-badge, .js .hx-lead, .js .hx-buttons, .js .hx-claims, .js .hx-stage, .hx h1 .w > span, .js .radar-city, .js .flow li h3, .js .flow li p { opacity: 1; transform: none; scale: 1; }
  .radar-links line { stroke-dashoffset: 0; }
  .h-draw::after { transform: scaleX(1); }
  .marquee-track { animation: none; }
}

/* Seitlich einfahrende Elemente dürfen keine horizontale Scrollbreite erzeugen */
.fx .section { overflow-x: clip; }
@media (max-width: 480px) { .hx-badge { font-size: .88rem; padding-inline: .85rem; } }

/* ==========================================================================
   Unterseiten: dunkle Bühne im Seitenkopf
   ========================================================================== */
.ph { background: radial-gradient(120% 130% at 88% 0%, #123a8f 0%, #0a1f4d 40%, #050d22 82%); }
.ph-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(2.25rem, 5vw, 4rem) clamp(3rem, 6vw, 4.75rem); }
.ph-narrow .ph-inner { grid-template-columns: 1fr; }
.ph h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.06; max-width: 17em; }
.ph .hx-lead { margin-top: 1.3rem; max-width: 40em; }
.ph .btn-row { margin-top: 2rem; }
.ph .crumbs { margin-bottom: 1.4rem; }
.ph .crumbs ol, .ph .crumbs a { color: #a9c0e6; }
.ph .crumbs a:hover { color: #fff; }
.ph .crumbs li + li::before { color: rgba(255, 255, 255, .3); }
.ph .crumbs [aria-current] { color: #e6f1ff; }
.js .ph .crumbs { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease) .15s, transform .7s var(--ease) .15s; }
.js .ph.is-ready .crumbs { opacity: 1; transform: none; }
.ph h1 .w > span { transition-delay: calc(.2s + var(--i, 0) * 45ms); }
.js .ph.is-ready .hx-badge { transition-delay: .15s; }
.js .ph.is-ready .hx-lead { transition-delay: .6s; }
.js .ph.is-ready .hx-buttons { transition-delay: .75s; }
.ph .hx-badge a { color: inherit; text-decoration: none; }
.ph .post-meta { margin: 0; color: #a9c0e6; }
.ph-meta { margin-top: 1.6rem; }
.ph-orb { width: clamp(180px, 22vw, 290px); justify-self: end; }
.js .ph .hx-stage { transition-delay: .15s, .15s, 0s; }
.ph-orb-core { position: relative; display: grid; place-items: center; width: 54%; aspect-ratio: 1; color: #fff; background: linear-gradient(145deg, rgba(111, 211, 255, .35), rgba(20, 80, 200, .55)); border: 1px solid rgba(160, 220, 255, .55); border-radius: 50%; box-shadow: 0 0 60px rgba(24, 174, 235, .6), inset 0 0 30px rgba(255, 255, 255, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: float 6s ease-in-out infinite alternate; }
.ph-orb-core svg { width: 46%; height: auto; filter: drop-shadow(0 4px 14px rgba(5, 13, 34, .6)); }
@media (max-width: 860px) { .ph-inner { grid-template-columns: 1fr; } .ph-orb { display: none; } }

/* Inhalte der Unterseiten */
.fx .side-box { border-radius: 14px; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s; }
.fx .side-box:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -30px rgba(20, 80, 200, .55); }
.fx .side-box-ink { background: linear-gradient(155deg, #123a8f, #0a1a3a 65%); box-shadow: 0 30px 60px -34px rgba(20, 80, 200, .9); }
.fx .side-box-ink .btn-light { color: #06122c; background: linear-gradient(100deg, #6fd3ff, #18aeeb); }
.fx .check-list svg { padding: 2px; width: 22px; height: 22px; color: #fff; background: linear-gradient(140deg, #1f7bf0, var(--royal-deep)); border-radius: 50%; }
.fx .prose h2 { position: relative; padding-left: 1.1rem; }
.fx .prose h2::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; border-radius: 3px; background: linear-gradient(var(--aqua), var(--royal)); }
.fx .toc { border-radius: 0 14px 14px 0; }
.fx .article-figure img, .fx .map-box { border-radius: 14px; }
.fx .faq-item summary { transition: color .2s, padding-left .3s var(--ease); }
.fx .faq-item summary:hover, .fx .faq-item[open] summary { padding-left: .6rem; }
.fx .faq-item[open] { background: linear-gradient(90deg, color-mix(in srgb, var(--aqua) 9%, transparent), transparent 70%); }
.fx .link-list a { transition: color .2s, transform .3s var(--ease); }
.fx .link-list a:hover { transform: translateX(6px); text-decoration: none; }
.fx .city-tiles { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); border-top: 0; }
.fx .city-tiles a:hover { background: linear-gradient(120deg, var(--royal), #1f7bf0); }
.fx .tag-list li { border-radius: 999px; transition: transform .25s var(--ease), border-color .2s; }
.fx .tag-list li:hover { transform: translateY(-2px); border-color: var(--aqua); }
.fx .form legend { border-bottom: 0; background: linear-gradient(90deg, var(--royal), var(--aqua)) left bottom / 100% 3px no-repeat; }
.fx .field input, .fx .field select, .fx .field textarea { border-radius: 10px; }
.fx .btn { border-radius: 10px; }
.fx .btn-primary { background: linear-gradient(110deg, var(--royal), #1f7bf0); box-shadow: 0 12px 26px -14px rgba(20, 80, 200, .9); }
.fx .btn-primary:hover { background: linear-gradient(110deg, var(--royal-deep), var(--royal)); }
.fx .section-ink .audience svg { transition: transform .5s cubic-bezier(.2, .9, .2, 1.3); }
.fx .section-ink .audience:hover svg { transform: scale(1.2) rotate(-8deg); }
.region-list-top { margin-top: 2rem; }
.fx .consent-item { transition: padding-left .3s var(--ease); }
