/* ============================================================
   FLUXONOS — Subpage styles (v2)
   ============================================================ */

/* Page hero flourish */
.page-hero .ph-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.page-hero .ph-glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(62,121,234,.3), transparent 62%); top: -220px; right: -120px; filter: blur(20px); animation: glowDrift 16s ease-in-out infinite; }
.page-hero .ph-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 78% 35%, #000, transparent 72%); mask-image: radial-gradient(circle at 78% 35%, #000, transparent 72%);
}
.page-hero .cta-row { margin-top: 32px; }

/* Animated hero background: second glow, flux streams, floating orbs */
.page-hero .ph-glow-2 { position: absolute; width: 440px; height: 440px; border-radius: 50%; bottom: -240px; left: 4%; filter: blur(18px); pointer-events: none; background: radial-gradient(circle, rgba(91,143,240,.16), transparent 66%); animation: glowDrift 22s ease-in-out infinite reverse; }
.page-hero .ph-streams { position: absolute; top: 0; right: 0; width: 56%; height: 100%; opacity: .55; }
.page-hero .ph-streams path { fill: none; stroke: url(#phsg); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.page-hero .ph-streams .flow { stroke: #5B8FF0; stroke-width: 1.6; stroke-dasharray: 3 9; vector-effect: non-scaling-stroke; animation: phStream 1.7s linear infinite; }
@keyframes phStream { to { stroke-dashoffset: -24; } }
.page-hero .ph-orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7BA4F2, var(--blue)); box-shadow: 0 0 22px rgba(91,143,240,.6); }
.page-hero .ph-orb-1 { width: 10px; height: 10px; top: 28%; right: 24%; animation: phFloat 7s ease-in-out infinite; }
.page-hero .ph-orb-2 { width: 7px; height: 7px; top: 60%; right: 40%; opacity: .8; animation: phFloat 8.6s ease-in-out infinite 1s; }
.page-hero .ph-orb-3 { width: 5px; height: 5px; top: 44%; right: 12%; opacity: .7; animation: phFloat 6.2s ease-in-out infinite .5s; }
@keyframes phFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (max-width: 760px) { .page-hero .ph-streams, .page-hero .ph-orb { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .page-hero .ph-glow, .page-hero .ph-glow-2, .page-hero .ph-streams .flow, .page-hero .ph-orb { animation: none; }
}

/* Prose */
.prose { max-width: 70ch; }
.prose p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.prose h3 { margin-top: 34px; }
.prose strong { color: var(--ink); }

/* Numbered feature list */
.fn-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px,2.5vw,26px); }
@media (max-width: 820px){ .fn-detail { grid-template-columns: 1fr; } }
.fn-item { display: flex; gap: 18px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.fn-item:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; }
.fn-item .fn-n { flex: none; font-family: var(--font-display); font-weight: 600; color: var(--blue); font-size: 1.05rem; width: 36px; }
.fn-item h4 { margin-bottom: 6px; }
.fn-item p { color: var(--muted); font-size: .96rem; }

/* Timeline */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding-bottom: 36px; position: relative; }
.tl-item:not(:last-child)::before { content:""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--line-strong); }
.tl-dot { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-wash); color: var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; z-index: 2; }
.tl-body h4 { margin-bottom: 6px; }
.tl-body p { color: var(--muted); font-size: .98rem; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.5vw,26px); }
.team-grid.two { grid-template-columns: repeat(2,1fr); max-width: 760px; }
@media (max-width: 820px){ .team-grid, .team-grid.two { grid-template-columns: 1fr; } }
.mt-xl { margin-top: clamp(56px,7vw,96px); }

/* Legal / prose pages (Impressum, Datenschutz) */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: clamp(34px,4vw,52px); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin-top: 28px; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.legal li { margin-top: 6px; }
.legal a { color: var(--blue); }
.legal .legal-note { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 8px; padding: 16px 18px; background: var(--paper-3); border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted-2); font-size: .9rem; line-height: 1.55; }
.legal .legal-note svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 1px; }
.legal .legal-fill { color: var(--muted-2); font-style: italic; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.team-photo { aspect-ratio: 4/3.4; }
.team-info { padding: 22px 24px 26px; }
.team-info h4 { font-size: 1.2rem; }
.team-info .role { color: var(--blue); font-weight: 700; font-size: .9rem; margin-top: 2px; }
.team-info .bio { color: var(--muted); font-size: .92rem; margin-top: 10px; }

/* Stat band */
.statband { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,3vw,40px); }
@media (max-width: 720px){ .statband { grid-template-columns: 1fr; gap: 28px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px,5vw,64px); align-items: start; }
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-aside .ci { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-aside .ci:last-of-type { border-bottom: none; }
.contact-aside .ci .ci-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-wash); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.contact-aside .ci .ci-ico svg { width: 22px; height: 22px; }
.contact-aside .ci h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-aside .ci a, .contact-aside .ci span { color: var(--muted); font-size: .96rem; }
.contact-aside .ci a:hover { color: var(--blue); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px,3.5vw,42px); box-shadow: var(--sh); }

/* Reference gallery */
.ref-hero-media { margin-top: 40px; position: relative; z-index: 3; }
.ref-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.ref-gallery .imgph { min-height: 200px; }
@media (max-width: 720px){ .ref-gallery { grid-template-columns: 1fr; } }

/* Info cols */
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); }
@media (max-width: 820px){ .info-cols { grid-template-columns: 1fr; } }

/* CTA strip */.cta-strip { background: var(--ink-900); color: #fff; border-radius: var(--r-xl); padding: clamp(40px,5vw,64px); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-strip h3 { color: #fff; font-size: clamp(1.4rem,2.4vw,2rem); max-width: 22ch; position: relative; z-index: 2; }
.cta-strip .btn { position: relative; z-index: 2; }
.cta-strip .cs-glow { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(62,121,234,.3), transparent 64%); top: -220px; right: -80px; pointer-events: none; }

/* Download preview tiles (press) */
.dl-prev { display: flex; align-items: center; justify-content: center; height: 96px; border-radius: 14px; margin-bottom: 20px; }
.dl-prev.light { background: var(--paper-2); border: 1px solid var(--line); }
.dl-prev.dark { background: var(--ink-900); }
.card .btn-text { margin-top: 14px; }

/* Press coverage cards */
.pr-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px,2.5vw,26px); }
@media (max-width: 900px){ .pr-news { grid-template-columns: 1fr; } }
.pr-item { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.pr-item:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.pr-thumb { position: relative; }
.pr-thumb .imgph { border-radius: 0; aspect-ratio: 16/10; }
.pr-thumb .pr-tag { position: absolute; top: 14px; left: 14px; z-index: 3; font-family: var(--font-display); font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(19,19,22,.72); backdrop-filter: blur(4px); padding: 5px 11px; border-radius: 99px; }
.pr-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.pr-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.pr-meta .pr-outlet { color: var(--blue); font-weight: 600; }
.pr-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); flex: none; }
.pr-item h3 { font-size: 1.12rem; line-height: 1.32; }
.pr-item p { color: var(--muted); font-size: .94rem; flex: 1; }
.pr-item .btn-text { margin-top: 2px; }

/* Product gallery (asymmetric editorial grid) */
.prod-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px,1.6vw,18px); }
.prod-gallery .pg-cell { position: relative; }
.prod-gallery .imgph { width: 100%; height: 100%; }
.prod-gallery .pg-cap { position: absolute; left: 18px; bottom: 16px; z-index: 3; font-family: var(--font-display); font-size: .76rem; letter-spacing: .03em; color: #fff; background: rgba(19,19,22,.6); backdrop-filter: blur(4px); padding: 6px 13px; border-radius: 99px; }
.pg-7 { grid-column: span 7; } .pg-5 { grid-column: span 5; }
.pg-4 { grid-column: span 4; } .pg-8 { grid-column: span 8; }
.pg-6 { grid-column: span 6; }
.pg-tall .imgph { min-height: 420px; } .pg-med .imgph { min-height: 250px; } .pg-short .imgph { min-height: 190px; }
@media (max-width: 820px){
  .prod-gallery { grid-template-columns: repeat(2, 1fr); }
  .pg-7,.pg-5,.pg-4,.pg-8,.pg-6 { grid-column: span 1; }
  .pg-tall .imgph { min-height: 300px; } .pg-med .imgph,.pg-short .imgph { min-height: 200px; }
}
@media (max-width: 520px){ .prod-gallery { grid-template-columns: 1fr; } }
