/* FEROS Erweiterungen – Vorschau 2026-11-20
   Kennzahlen-Leiste, Weiß/Blau-Wechsel, Wasser-Übergänge, Maskottchen im FAQ, Scroll-Rohr */

:root { --fx-blue:#008DDA; --fx-cyan:#59D3EA; --fx-ink:#20262D; --fx-ease-out:cubic-bezier(0.23,1,0.32,1); }

/* ---------- Weiß / Blau im Wechsel ---------- */
/* Weiß: Kennzahlen + Über uns, Ablauf + Werte, Bewertungen, Kontakt */
body .about { background:#fff; }
body .about:before { display:none; }
body .values { background:#fff; padding-top:20px; }
body .values .values-layout { border-top:1px solid #dcebf2; padding-top:64px; }
body .contact { background:#fff; }

/* Blau: Partner + Sponsoring, Einsatzgebiet, FAQ */
body .network-section { background:var(--fx-blue); color:#fff; }
body #partner { padding-bottom:30px; }
body #sponsoring { background:var(--fx-blue); padding-top:40px; }
body .network-section .eyebrow { color:var(--fx-cyan); }
body .network-section h2 { color:#fff; }
body .network-section .network-intro { color:#ffffffd9; }
body .network-logo { border-color:#ffffff; box-shadow:0 10px 30px #00426d26; }
body .area { background:var(--fx-blue); }

body .faq { background:var(--fx-blue); color:#fff; }
body .faq h2 { color:#fff; }
body .faq h2 span { color:var(--fx-cyan); }
body .faq-layout > div:first-child p { color:#ffffffd9; }
body .faq details { border-bottom-color:#ffffff40; }
body .faq summary { color:#fff; }
body .faq summary span { color:var(--fx-cyan); }
body .faq details p { color:#ffffffd9; }
body .faq-item summary:focus-visible { outline-color:#fff; }

/* ---------- Maskottchen im FAQ ---------- */
body .faq-layout > div:first-child::after {
  content:''; display:block; width:min(240px,70%); aspect-ratio:476/500; margin-top:34px;
  background:url('/feros-original.webp') left bottom/contain no-repeat;
  filter:drop-shadow(0 18px 24px #00335a40);
}
@media (max-width:900px){
  body .faq-layout > div:first-child { display:grid; grid-template-columns:1fr auto; column-gap:16px; align-items:end; }
  body .faq-layout > div:first-child h2 { grid-column:1/-1; }
  body .faq-layout > div:first-child::after { width:110px; margin-top:0; grid-column:2; grid-row:2; }
}

/* ---------- Wasser-Übergänge: doppelte Welle, beim Hereinscrollen einmalig ---------- */
.fx-wave { position:relative; height:0; z-index:6; pointer-events:none; color:var(--fx-blue);
  --ease-out:cubic-bezier(0.23,1,0.32,1); --ease-fall:cubic-bezier(0.11,0,0.5,0); }
.fx-wave svg { position:absolute; left:0; width:100%; display:block; z-index:1; }
.fx-wave svg.fx-wave-line { height:44px; }
.fx-wave svg.fx-wave-back { height:58px; color:var(--fx-cyan); opacity:0; }
.fx-wave--down svg { top:-1px; }
.fx-wave--up svg { bottom:-1px; }
.fx-wave--up svg.fx-wave-back { transform:scaleY(-1); }
.fx-wave--up svg.fx-wave-line { transform:scaleY(-1); }
.fx-wave--flip svg.fx-wave-line, .fx-wave--flip.fx-wave--down svg.fx-wave-back { transform:scaleX(-1); }
.fx-wave--up.fx-wave--flip svg.fx-wave-line, .fx-wave--up.fx-wave--flip svg.fx-wave-back { transform:scale(-1,-1); }

/* Cyan-Welle: nur an Unterkanten, taucht scrollgesteuert auf (--fx-p 0→1 aus feros-extras.js).
   Bewegt wird nur der Pfad im SVG, das SVG schneidet ihn an der Abschnittskante ab. */
.fx-wave--up svg.fx-wave-back { display:none; }
.fx-wave svg.fx-wave-back { overflow:hidden; opacity:1; }
.fx-wave--down svg.fx-wave-back path { transform:translateY(calc((1 - var(--fx-p, 0)) * -20px)); }

@media (max-width:700px){
  .fx-wave svg.fx-wave-line { height:26px; }
  .fx-wave svg.fx-wave-back { height:34px; }
}
@media (prefers-reduced-motion: reduce){
  .fx-wave--down svg.fx-wave-back path { transform:none; }
}

/* ---------- Kennzahlen-Leiste ---------- */
.fx-stats { background:#fff; padding:70px 0 34px; position:relative; z-index:3; }
.fx-stats ul { list-style:none; margin:0 auto; padding:0 38px; max-width:1240px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.fx-stats li { display:flex; align-items:center; gap:16px; padding:6px 26px; border-left:1px solid #dcebf2; }
.fx-stats li:first-child { border-left:0; padding-left:0; }
.fx-stats .fx-ico { flex:none; width:52px; height:52px; border-radius:50%; display:grid; place-items:center; background:#eff8fc; color:var(--fx-blue); }
.fx-stats .fx-ico svg { width:24px; height:24px; }
.fx-stats strong { display:block; font-family:var(--display); font-style:italic; font-weight:800; font-size:clamp(1.7rem,2.4vw,2.3rem); line-height:1; color:var(--fx-ink); letter-spacing:-.01em; }
.fx-stats strong em { font-style:inherit; color:var(--fx-blue); }
.fx-stats strong .fx-star { color:#f4b400; font-size:.8em; }
.fx-stats small { display:block; margin-top:6px; font-size:.84rem; line-height:1.35; color:#486171; }
@media (max-width:980px){
  .fx-stats ul { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:26px; padding:0 24px; }
  .fx-stats li:nth-child(3) { border-left:0; padding-left:0; }
}
@media (max-width:520px){
  .fx-stats { padding:46px 0 20px; }
  .fx-stats ul { column-gap:10px; padding:0 18px; }
  .fx-stats li { flex-direction:column; align-items:flex-start; gap:10px; padding:0 0 0 12px; }
  .fx-stats li:nth-child(odd) { border-left:0; padding-left:0; }
  .fx-stats .fx-ico { width:42px; height:42px; }
  .fx-stats .fx-ico svg { width:20px; height:20px; }
  .fx-stats small { font-size:.78rem; }
}

/* ---------- Wasser-Hintergründe nicht mehr unten abschneiden ---------- */
body .services:before, body .hero-flow + .services:before { background-position:center bottom;
  -webkit-mask-image:linear-gradient(transparent, transparent 12%, black 40%, black 90%, transparent);
  mask-image:linear-gradient(transparent, transparent 12%, black 40%, black 90%, transparent); }
body .area:after { background-position:center bottom;
  -webkit-mask-image:linear-gradient(90deg, transparent, black 45%), linear-gradient(transparent, black 25%, black 88%, transparent);
  -webkit-mask-composite:source-in; mask-image:linear-gradient(90deg, transparent, black 45%), linear-gradient(transparent, black 25%, black 88%, transparent); mask-composite:intersect; }

/* ---------- Variante „animiert“ (?animiert): Wasser-Hintergründe bewegen sich ruhig ---------- */
body .services { overflow:hidden; }
@media (prefers-reduced-motion: no-preference){
  html.fx-anim body .services:before { inset:-24px -40px 0; animation:fx-water-a 16s ease-in-out infinite alternate; }
  html.fx-anim body .area:after { inset:-20px -36px 0 auto; height:auto; animation:fx-water-b 13s ease-in-out infinite alternate; }
  html.fx-anim body .services:after { content:''; position:absolute; inset:-20px -40px 0; pointer-events:none;
    background:var(--fx-water) center bottom/cover no-repeat; opacity:.22; mix-blend-mode:screen;
    -webkit-mask-image:linear-gradient(transparent 55%, black 85%, transparent); mask-image:linear-gradient(transparent 55%, black 85%, transparent);
    animation:fx-water-c 9s ease-in-out infinite alternate; }
}
@keyframes fx-water-a { from { transform:scaleX(-1) translate3d(-14px,10px,0); } to { transform:scaleX(-1) translate3d(14px,0,0); } }
@keyframes fx-water-b { from { transform:translate3d(-12px,10px,0); opacity:.4; } to { transform:translate3d(12px,0,0); opacity:.52; } }
@keyframes fx-water-c { from { transform:translate3d(-16px,8px,0); } to { transform:translate3d(16px,0,0); } }

/* Schärferes Wasserbild (Higgsfield-Upscale, 2400 px) */
html { --fx-water:url('water-livery-hd.webp'); }
body .services:before, body .area:after { background-image:var(--fx-water); }

/* Wasserbild transparenter (wie vorher) */
body .services:before, body .hero-flow + .services:before { opacity:.42; }
body .area:after { opacity:.28; }
@keyframes fx-water-b { from { transform:translate3d(-12px,10px,0); opacity:.26; } to { transform:translate3d(12px,0,0); opacity:.34; } }
html.fx-anim body .services:after { opacity:.14; }

/* ---------- Bewertungen ---------- */
body .rating-card { background:#fff; border:1px solid #d7eaf5; box-shadow:0 18px 40px #00335a12; }
body .rating-source { display:inline-flex; align-items:center; gap:8px; }
body .rating-source svg, .fx-rv-src svg { width:18px; height:18px; flex:none; }
.fx-rv-all { display:inline-flex; gap:8px; align-items:center; margin-top:18px; font-weight:700; font-size:.9rem; color:var(--fx-blue); border-bottom:2px solid #59D3EA; padding-bottom:3px; }
.fx-rv-all:hover { color:#006bb0; }

body .fx-rv .review-quote { background:#fff; border:1px solid #d7eaf5; border-radius:18px; padding:24px 26px 20px; box-shadow:0 10px 30px #00335a0d; overflow:hidden; }
body .fx-rv .review-heading { margin:14px 0 12px; min-height:0; }
body .fx-rv .review-heading .review-quote-mark { position:absolute; right:18px; top:6px; height:auto; font-size:96px; color:#008dda1f; }
body .fx-rv .review-keyword { font-size:1.6rem; color:var(--fx-ink); }
.fx-rv-top { display:flex; justify-content:space-between; align-items:center; }
.fx-rv-stars { color:#f4b400; letter-spacing:3px; font-size:1.05rem; }
.fx-rv-src { display:inline-flex; align-items:center; gap:6px; font-size:.78rem; font-weight:600; color:#486171; }
body .fx-rv .review-quote blockquote { margin:0; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; overflow:hidden; }
body .fx-rv .review-quote.fx-open blockquote { -webkit-line-clamp:unset; display:block; }
body .fx-rv blockquote mark { background:#59D3EA38; color:#0b4f7c; border-radius:4px; padding:1px 3px; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.fx-rv-more { align-self:flex-start; margin:10px 0 18px; padding:6px 0; border:0; background:none; font:600 .85rem var(--body); color:var(--fx-blue); cursor:pointer; min-height:32px; }
.fx-rv-more:hover { text-decoration:underline; text-underline-offset:3px; }
body .fx-rv .review-quote figcaption { display:grid; grid-template-columns:auto 1fr; column-gap:12px; align-items:center; border-top:1px solid #e3eff6; padding-top:14px; }
.fx-rv-avatar { grid-row:1 / span 2; width:42px; height:42px; border-radius:50%; background:var(--fx-blue); color:#fff; display:grid; place-items:center; font:700 .95rem var(--body); }
body .fx-rv .review-quote figcaption strong { font-family:var(--body); font-size:.98rem; font-weight:700; line-height:1.3; }
body .fx-rv .review-quote figcaption .review-stars { display:none; }

/* Hervorgehobene Karte in Blau */
body .fx-rv .review-quote:nth-of-type(2) { background:var(--fx-blue); border-color:var(--fx-blue); box-shadow:0 14px 34px #008dda40; }
body .fx-rv .review-quote:nth-of-type(2) .review-keyword,
body .fx-rv .review-quote:nth-of-type(2) figcaption strong { color:#fff; }
body .fx-rv .review-quote:nth-of-type(2) blockquote { color:#eaf8ff; }
body .fx-rv .review-quote:nth-of-type(2) blockquote mark { background:#ffffff30; color:#fff; }
body .fx-rv .review-quote:nth-of-type(2) .review-quote-mark { color:#ffffff26; }
body .fx-rv .review-quote:nth-of-type(2) .fx-rv-stars { color:#ffd34d; }
body .fx-rv .review-quote:nth-of-type(2) .fx-rv-src { color:#fff; background:#ffffff1f; padding:3px 8px 3px 5px; border-radius:20px; }
body .fx-rv .review-quote:nth-of-type(2) .fx-rv-src svg { background:#fff; border-radius:50%; padding:2px; }
body .fx-rv .review-quote:nth-of-type(2) .fx-rv-more { color:#bff3fc; }
body .fx-rv .review-quote:nth-of-type(2) figcaption { border-top-color:#ffffff3d; }
body .fx-rv .review-quote:nth-of-type(2) figcaption span { color:#d6f1fc; }
body .fx-rv .review-quote:nth-of-type(2) .fx-rv-avatar { background:#fff; color:var(--fx-blue); }
body .fx-rv .review-quote figcaption .fx-rv-avatar { color:#fff; font-size:.95rem; }
body .fx-rv .review-quote:nth-of-type(2) figcaption .fx-rv-avatar { color:var(--fx-blue); }
body .fx-rv .review-heading .review-quote-mark { display:none; }
@media (min-width:1001px){
  body .fx-rv .review-quote { grid-column:span 2; }
  body .fx-rv .review-quote:nth-last-of-type(-n+2) { grid-column:span 3; }
}
body .fx-rv .review-quote blockquote { margin-bottom:16px; }
body .fx-rv .fx-rv-more { margin:-6px 0 16px; }

/* ---------- Untere Leiste bündig mit dem Seiteninhalt (wie Footer) ---------- */
@media (min-width:1001px){
  body .trust-bar { justify-content:space-between; padding-inline:max(38px, calc((100vw - 1164px) / 2)); }
  body .trust-bar > a:not(.trust-call) { flex:1 1 0; padding:0 28px; }
  body .trust-bar > a:first-child { padding-left:0; }
  body .trust-bar .trust-call { margin-left:28px; }
}

/* ---------- Wasserkrone hinter dem Maskottchen (Higgsfield), sanft animiert ---------- */
body .faq-layout > div:first-child { position:relative; }
body .faq-layout > div:first-child::after { position:relative; z-index:1; }
body .faq-layout > div:first-child::before {
  content:''; position:absolute; z-index:0; pointer-events:none;
  left:-70px; bottom:-60px; width:380px; aspect-ratio:1;
  background:url('feros-splash.webp') center/contain no-repeat; opacity:.85;
}
@media (prefers-reduced-motion: no-preference){
  body .faq-layout > div:first-child::before { animation:fx-splash-ring 7s ease-in-out infinite alternate; }
}
@keyframes fx-splash-ring {
  from { transform:rotate(-5deg) scale(.96); opacity:.7; }
  to   { transform:rotate(5deg) scale(1.04); opacity:.95; }
}
@media (max-width:900px){
  body .faq-layout > div:first-child::before { left:auto; right:-38px; bottom:-34px; width:190px; }
}
@media (max-width:900px){ body .faq-layout > div:first-child::before { opacity:.6; animation:none; } }

/* ---------- Partner & Sponsoring wandern auf die eigene Seite /partner/ ---------- */
body #partner, body #sponsoring { display:none; }

/* --- Kennzahlen: Zähl-Animation --- */
.fx-num { font-variant-numeric: tabular-nums; }

/* --- Kontaktformular: PLZ/Ort + Vertrauens-Liste --- */
.fx-loc { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,3fr); gap:12px; }
.fx-loc > div { display:flex; flex-direction:column; }
.fx-loc input { width:100%; }
#fx-ort { transition: background-color 600ms cubic-bezier(0.23,1,0.32,1); }
#fx-ort.fx-filled { background-color:#e3f6fc; }
.fx-trust { list-style:none; margin:26px 0 24px; padding:0; display:grid; gap:12px; }
.fx-trust li { display:flex; align-items:center; gap:12px; font-weight:600; color:#14324a; }
.fx-trust li > span { flex:none; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:#eff8fc; color:var(--fx-blue); }
.fx-trust li > span svg { width:18px; height:18px; }
@media (prefers-reduced-motion: reduce){ #fx-ort { transition:none; } }


/* --- Seitenleiste: feine Wasserlinie --- */
.fx-line { position:fixed; right:26px; top:140px; bottom:120px; width:4px; z-index:60; pointer-events:none; display:none; }
@media (min-width:1100px) and (min-height:560px){ .fx-line { display:block; } }
.fx-line__track { position:absolute; inset:0; border-radius:4px; overflow:hidden; background:#04455e26; box-shadow:0 0 0 1px #ffffff8c; }
.fx-line__fill { position:absolute; inset:0; transform-origin:50% 0; transform:scaleY(0); background:linear-gradient(180deg,#59D3EA,#008DDA); will-change:transform; }
.fx-line__drop { position:absolute; left:50%; top:0; width:10px; height:14px; margin-left:-5px; color:#59D3EA; will-change:transform; transition:opacity 200ms ease; filter:drop-shadow(0 0 1px #04455e) drop-shadow(0 1px 2px #00335a59); }
.fx-line__drop svg, .fx-line__dot svg { display:block; width:100%; height:100%; }

/* --- CTA im Einsatzgebiet --- */
.fx-area-cta { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.fx-btn { display:inline-flex; align-items:center; gap:12px; padding:15px 24px; border-radius:12px; font-weight:700; font-size:1rem;
  transition:transform 160ms cubic-bezier(0.23,1,0.32,1), background-color 200ms ease; }
.fx-btn svg { width:20px; height:20px; }
.fx-btn--red { background:var(--red,#D7193F); color:#fff; border:2px solid #fff; box-shadow:0 5px 0 #075a8a33; }
.fx-btn--line { border:1.5px solid #fff; color:#fff; background:#00679c33; }
@media (hover:hover) and (pointer:fine){ .fx-btn--red:hover { transform:translateY(-2px); } .fx-btn--line:hover { background:#00679c80; } }
.fx-btn:active { transform:scale(.97); }

/* --- Scroll-Einblendungen --- */
[data-fx-r] { transition:opacity 700ms cubic-bezier(0.23,1,0.32,1), translate 700ms cubic-bezier(0.23,1,0.32,1); }
[data-fx-r=""] { opacity:0; translate:0 22px; }
[data-fx-r="in"] { opacity:1; translate:0 0; }
/* Drei Schritte nacheinander */
.steps[data-fx-steps] li { transition:opacity 650ms cubic-bezier(0.23,1,0.32,1), translate 650ms cubic-bezier(0.23,1,0.32,1); }
.steps[data-fx-steps] li .step-number { transition:transform 500ms cubic-bezier(0.34,1.4,0.64,1); }
.steps[data-fx-steps]::before { transform-origin:0 50%; transition:transform 1100ms cubic-bezier(0.77,0,0.175,1); }
.steps[data-fx-steps=""] li { opacity:0; translate:0 26px; }
.steps[data-fx-steps=""] li .step-number { transform:scale(.6); }
.steps[data-fx-steps=""]::before { transform:scaleX(0); }
.steps[data-fx-steps] li:nth-child(2), .steps[data-fx-steps] li:nth-child(2) .step-number { transition-delay:350ms; }
.steps[data-fx-steps] li:nth-child(3), .steps[data-fx-steps] li:nth-child(3) .step-number { transition-delay:700ms; }
@media (prefers-reduced-motion: reduce){
  [data-fx-r=""], .steps[data-fx-steps=""] li { translate:0 0; }
  .steps[data-fx-steps=""] li .step-number, .steps[data-fx-steps=""]::before { transform:none; }
  [data-fx-r], .steps[data-fx-steps] li { transition:opacity 400ms ease; }
}

/* --- volles Logo im Footer --- */
.fx-flogo-link { display:inline-block; font-size:0 !important; line-height:0; }
.fx-flogo-link > span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.fx-flogo { display:block; width:220px; height:auto; filter:drop-shadow(0 4px 14px #0000004d); }

/* --- Drei Schritte: Linie endet bei 03 --- */
.steps::before { left:calc((100% - 110px) / 6) !important; right:calc((100% - 110px) / 6) !important; }
@media (min-width:461px){ .steps li { text-align:center; } .steps li .step-number { margin-left:auto; margin-right:auto; } .steps li p { max-width:30ch; margin-inline:auto; } }
@media (min-width:461px) and (max-width:860px){ .steps::before { left:calc((100% - 44px) / 6) !important; right:calc((100% - 44px) / 6) !important; } }

/* --- Formular-Kopf (Variante A) --- */
.callback-form.fx-form { padding-top:0; overflow:hidden; }
.fx-form-head { position:relative; margin:0 -35px 22px; padding:30px 35px 46px; padding-right:190px; color:#fff;
  background:url('water-livery-hd.webp') right 30% bottom / 140% auto no-repeat, linear-gradient(135deg,#008DDA 0%,#0a78c2 100%);
  background-blend-mode:soft-light, normal; min-height:170px; }
.fx-form-head::before { content:''; position:absolute; inset:0; background:radial-gradient(120% 90% at 85% 100%, #59d3ea55, transparent 60%); pointer-events:none; }
.fx-form-head__txt { position:relative; z-index:1; }
.fx-form-head__kick { font-size:.72rem !important; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:#59D3EA !important; margin:0 0 8px !important; }
.callback-form .fx-form-head h3 { color:#fff; font-size:2.3rem; }
.callback-form .fx-form-head p:not(.fx-form-head__kick) { color:#e6f6fd !important; margin:10px 0 0 !important; font-size:.92rem; }
.fx-form-head__img { position:absolute; right:14px; bottom:0; width:178px; height:auto; z-index:1; filter:drop-shadow(0 8px 14px #00335a59); }
.fx-form-head__wave { position:absolute; left:0; right:0; bottom:-1px; width:100%; height:28px; z-index:2; }
@media (max-width:560px){
  .fx-form-head { margin:0 -22px 18px; padding:24px 22px 40px; padding-right:128px; min-height:150px; }
  .fx-form-head__img { width:120px; right:6px; }
  .callback-form .fx-form-head h3 { font-size:1.9rem; }
}
.fx-form-head { overflow:hidden; }
.fx-form-head::before { background:linear-gradient(90deg,#0079c6e6 0%,#0086d6b3 45%,transparent 75%), radial-gradient(120% 90% at 85% 100%, #59d3ea55, transparent 60%); }
.fx-form-head__kick { color:#bff3fb !important; }
.fx-form-head__img { filter:drop-shadow(-6px 2px 10px #00335a40); }

/* --- Kontakt links: Vorteile prominent --- */
.fx-trust { display:none; }
.fx-perks { list-style:none; margin:28px 0 30px; padding:0; display:grid; gap:12px; }
.fx-perks li { display:flex; align-items:center; gap:16px; padding:16px 18px; background:#fff; border:1px solid #d7eaf5; border-radius:14px; box-shadow:0 8px 24px #00335a0f; }
.fx-perks__ic { flex:none; width:48px; height:48px; border-radius:12px; display:grid; place-items:center; background:var(--fx-blue,#008DDA); color:#fff; }
.fx-perks__ic svg { width:24px; height:24px; }
.fx-perks strong { display:block; font-family:var(--display); font-style:italic; font-size:1.35rem; line-height:1.1; color:#20262D; text-transform:uppercase; margin-bottom:3px; }
.fx-perks li > span:last-child { font-size:.9rem; color:#486171; line-height:1.4; }
.fx-reach { padding-top:6px; }
.fx-reach__lbl { font-size:.72rem !important; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--fx-blue,#008DDA) !important; margin:0 0 4px !important; }
.fx-reach .contact-number { margin:0 0 8px; }
.fx-reach__alt { display:flex; flex-wrap:wrap; gap:6px 22px; font-size:.92rem; }
.fx-reach__alt a { margin:0 !important; }
#kontakt .contact-grid > div > address { margin-top:22px; font-size:.82rem; color:#7a8d98; }

/* --- Fahrzeug-Abschnitt: Varianten (nur Desktop) --- */
.fx-fz { display:none; }
@media (min-width:861px){
  html.fx-fahrzeug2 #ueber-uns figure figcaption { display:none; }
  html.fx-fahrzeug2 .fx-fz { display:block; position:absolute; inset:0; pointer-events:none; z-index:2; }
  .fx-fz > * { display:none; }

  /* V1: Foto als Karte */

  /* V2: randlos mit weichem Verlauf + schwebende Kärtchen */
  html.fx-fahrzeug2 #ueber-uns img { -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 38%), linear-gradient(180deg,transparent 0,#000 12%,#000 88%,transparent 100%); mask-image:linear-gradient(90deg,transparent 0,#000 38%), linear-gradient(180deg,transparent 0,#000 12%,#000 88%,transparent 100%); -webkit-mask-composite:source-in; mask-composite:intersect; }
  html.fx-fahrzeug2 .fx-fz__chip { display:flex; align-items:center; gap:12px; position:absolute; padding:10px 18px 10px 10px; border-radius:999px; color:#e6f6fd; font-size:.78rem; line-height:1.3;
    background:linear-gradient(135deg,#008DDAf2,#04455ef2); border:1.5px solid #ffffff59; box-shadow:0 16px 34px #00335a4d, inset 0 1px 0 #ffffff40; }
  html.fx-fahrzeug2 .fx-fz__chip > span { display:flex; flex-direction:column; }
  html.fx-fahrzeug2 .fx-fz__chip b { color:#fff; font-family:var(--display); font-style:italic; text-transform:uppercase; font-size:1.05rem; letter-spacing:.01em; }
  html.fx-fahrzeug2 .fx-fz__chip i { flex:none; width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:#59D3EA; color:#04455e; }
  html.fx-fahrzeug2 .fx-fz__chip i svg { width:19px; height:19px; }
  html.fx-fahrzeug2 .fx-fz__chip--a { left:16%; top:14%; animation:fx-float-a 6.5s ease-in-out infinite; }
  html.fx-fahrzeug2 .fx-fz__chip--b { right:7%; bottom:16%; animation:fx-float-b 7.8s ease-in-out infinite; }
  @keyframes fx-float-a { 0%,100% { transform:translate(0,0) rotate(-2deg); } 33% { transform:translate(10px,-12px) rotate(1deg); } 66% { transform:translate(-6px,-4px) rotate(-1deg); } }
  @keyframes fx-float-b { 0%,100% { transform:translate(0,0) rotate(2deg); } 40% { transform:translate(-12px,-10px) rotate(-1deg); } 75% { transform:translate(6px,-16px) rotate(1.5deg); } }

  /* V1 mit Wasser: Wasserfläche statt blauer Block, Spritzer an der Ecke */

}

@media (prefers-reduced-motion: reduce){ .fx-fz__chip, .fx-fz__splash { animation:none !important; } }
@media (min-width:861px){
}

/* --- Hero: nach einmaligem Durchlauf ruhig bleiben --- */
.hero-flow.fx-hero-done .scroll-scrub__copy { opacity:clamp(0, calc(1 - var(--fx-done-p,1) * 2.2), 1) !important; }
.hero-flow.fx-hero-done .scroll-scrub__stage::before { opacity:clamp(0, calc(var(--fx-done-p,1) * 1.6 - .3), 1) !important; }
.hero-flow.fx-hero-done .scroll-scrub__video { transition:opacity 600ms cubic-bezier(0.23,1,0.32,1); }
.hero-flow.fx-hero-rewind .scroll-scrub__video { opacity:0; }
.hero-flow.fx-hero-rewind .scroll-scrub__layer[data-video-painted=true] .scroll-scrub__poster { visibility:visible; }

/* Welle: mehr Platz nach unten, gleiche Skalierung */
html.fx-tropfen3 .fx-wave--down svg.fx-wave-back { height:77px; }
html.fx-tropfen3 .fx-wave--down svg.fx-wave-line { height:62px; }
@media (max-width:700px){ html.fx-tropfen3 .fx-wave--down svg.fx-wave-back { height:45px; } html.fx-tropfen3 .fx-wave--down svg.fx-wave-line { height:36.6px; } }

/* Hero: Schrift während der Animation früher ausblenden */
.hero-flow:not(.fx-hero-done) .scroll-scrub__copy { opacity:clamp(0, calc((.5 - var(--hero-progress,0)) / .16), 1); }
.hero-flow.fx-hero-done .scroll-scrub__copy { will-change:opacity; }
.hero-flow .scroll-scrub__poster { transition:opacity 500ms cubic-bezier(0.23,1,0.32,1); }

/* ===== Seitenübergang: Wasser flutet von unten (Blasen + Logo) ===== */
html.fx-pt-in::after{content:"";position:fixed;inset:0;z-index:2147483000;background:url(/feros-original.webp) center/min(230px,44vw) auto no-repeat,linear-gradient(180deg,#0a9be0,#00335a);animation:fx-pt-safety 0s 2.5s forwards}
@keyframes fx-pt-safety{to{opacity:0;visibility:hidden}}
.fx-pt{position:fixed;inset:0;z-index:2147483001;pointer-events:none;overflow:hidden;--EH:120px}
.fx-pt__dim{position:absolute;inset:0;background:rgba(0,22,42,.3);opacity:0}
.fx-pt__water{position:absolute;inset:0;transform:translateY(calc(100% + var(--EH)));will-change:transform}
.fx-pt__top{position:absolute;left:0;right:0;bottom:calc(100% - 1px);height:var(--EH)}
.fx-pt__top svg{display:block;width:100%;height:100%;overflow:visible}
.fx-pt__fill{fill:#0a9be0}
.fx-pt__glow{fill:none;stroke:rgba(191,243,251,.25);stroke-width:14;vector-effect:non-scaling-stroke}
.fx-pt__line{fill:none;stroke:#bff3fb;stroke-width:2.5;vector-effect:non-scaling-stroke}
.fx-pt__body{position:absolute;inset:0;overflow:hidden;background:linear-gradient(180deg,#0a9be0,#00335a);display:flex;align-items:center;justify-content:center}
.fx-pt__logo{position:relative;z-index:1;will-change:transform,opacity;width:min(230px,44vw);height:auto;opacity:0;filter:drop-shadow(0 12px 30px rgba(0,0,0,.35))}
.fx-pt--arrive .fx-pt__logo{opacity:1}
.fx-pt__bubble{position:absolute;bottom:-50px;will-change:transform;border-radius:50%;
  background:radial-gradient(circle at 32% 28%,rgba(255,255,255,.85) 0 8%,rgba(191,243,251,.25) 30%,rgba(89,211,234,.08) 62%,rgba(255,255,255,.35) 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);animation:fx-pt-rise linear infinite,fx-pt-sway ease-in-out infinite alternate}
@keyframes fx-pt-rise{to{transform:translateY(calc(-100vh - 110px))}}
@keyframes fx-pt-sway{from{translate:-7px 0}to{translate:7px 0}}
@media (prefers-reduced-motion: reduce){.fx-pt__bubble{animation:none}}

/* Statistik: nur zwei Werte, groß über die ganze Leiste */
.fx-stats ul { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:1180px; }
.fx-stats li { justify-content:center; gap:26px; padding:10px 40px; }
.fx-stats li:first-child { padding-left:40px; }
.fx-stats .fx-ico { width:84px; height:84px; }
.fx-stats .fx-ico svg { width:38px; height:38px; }
.fx-stats strong { font-size:clamp(3.2rem,6.4vw,5.6rem); line-height:.9; }
.fx-stats small { margin-top:10px; font-size:clamp(.95rem,1.25vw,1.15rem); max-width:26ch; }
@media (max-width:980px){ .fx-stats li:nth-child(3) { border-left:1px solid #dcebf2; } }
@media (max-width:700px){
  .fx-stats ul { column-gap:0; }
  .fx-stats li { align-items:center; text-align:center; padding:0 10px; gap:12px; }
  .fx-stats li:first-child { padding-left:10px; }
  .fx-stats .fx-ico { width:54px; height:54px; }
  .fx-stats .fx-ico svg { width:26px; height:26px; }
  .fx-stats strong { font-size:clamp(2.4rem,11vw,3.4rem); }
  .fx-stats small { font-size:.85rem; margin-inline:auto; }
}

/* Statistik leicht von "Über uns" abgrenzen */
.fx-stats { padding-bottom:64px; }
.fx-stats::after { content:""; position:absolute; left:50%; bottom:0; width:min(1100px,86%); height:1px; transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,#cfe6f1 18%,#cfe6f1 82%,transparent); }
.fx-stats::before { content:""; position:absolute; left:50%; bottom:-5px; width:11px; height:11px; margin-left:-5.5px; border-radius:50% 0 50% 50%;
  transform:rotate(-45deg); background:#59D3EA; box-shadow:0 0 0 5px #fff; z-index:1; }
@media (max-width:700px){ .fx-stats { padding-bottom:44px; } }

/* Flüssigkeit: Deko-Schleifen außerhalb des Bildes anhalten, bewegte Teile auf eigene Ebene */
.fx-paused, .fx-paused *, .fx-paused::before, .fx-paused::after, .fx-paused *::before, .fx-paused *::after { animation-play-state:paused !important; }
.fx-wave--down svg.fx-wave-back { will-change:transform; }
@media (prefers-reduced-motion: no-preference){
  html.fx-anim body .services:before, html.fx-anim body .services:after, html.fx-anim body .area:after,
  body .faq-layout > div:first-child::before, html.fx-fahrzeug2 .fx-fz__chip { will-change:transform; }
}

/* Smooth Scroll (Lenis) */
html.lenis, html.lenis body { height:auto; }
html.lenis { scroll-behavior:auto !important; }
.lenis.lenis-smooth iframe { pointer-events:none; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior:contain; }

/* ===== Leistungen: Wasserstand steigt beim Überfahren ===== */
.service-card { position:relative; isolation:isolate; }
.fx-sc-fx { position:absolute; inset:0; z-index:-1; border-radius:inherit; overflow:hidden; pointer-events:none; }
.fx-sc-water { position:absolute; left:-2%; right:-2%; bottom:0; height:46%; transform:translateY(100%);
  background:linear-gradient(180deg,#59D3EA33,#008DDA38); transition:transform 700ms cubic-bezier(0.23,1,0.32,1); }
.fx-sc-water svg { position:absolute; left:0; bottom:100%; width:200%; height:16px; fill:#59D3EA33; animation:fx-sc-wave 3.2s linear infinite; }
@keyframes fx-sc-wave { to { transform:translateX(-50%); } }
@media (hover:hover) and (pointer:fine){
  .fx-sc-water svg { animation-play-state:paused; }
  body .service-card:hover .fx-sc-water { transform:translateY(0); }
  body .service-card:hover .fx-sc-water svg { animation-play-state:running; }
}
@media (hover:none){ .fx-sc-water { transform:translateY(62%); } }
@media (prefers-reduced-motion: reduce){ .fx-sc-water svg { animation:none; } }

/* Design-Feinschliff: Druck-Feedback auf allen Knöpfen, Hover nur mit Maus */
body .header-call, body .hero-call, body .hero-callback, body .form-submit, body .trust-call, body .about-contact {
  transition:transform 160ms cubic-bezier(0.23,1,0.32,1), box-shadow 160ms ease, background-color 160ms ease; }
body .header-call:active, body .hero-call:active, body .hero-callback:active, body .form-submit:active, body .trust-call:active, body .about-contact:active { transform:scale(.97); }
@media (hover:none){
  body .header-call:hover, body .hero-call:hover { transform:none; }
  body .service-card summary:hover > span:last-child, body .about-contact:hover span { transform:none; }
}
@media (prefers-reduced-motion: reduce){
  body .header-call:active, body .hero-call:active, body .hero-callback:active, body .form-submit:active, body .trust-call:active, body .about-contact:active { transform:none; }
}

/* FAQ: linke Spalte wächst nicht mit, sonst wandert die Wasserkrone beim Aufklappen vom Maskottchen weg */
body .faq-layout > div:first-child { align-self:start; }

/* ===== Mobile-Feinschliff ===== */
/* Wasserkrone im FAQ ragte rechts über den Rand und machte die Seite seitlich scrollbar */
body .faq { overflow-x:clip; }
@media (max-width:760px){
  /* Mindestgrößen für Schrift */
  body .feros-hero .scroll-scrub__kicker { font-size:11px; letter-spacing:.12em; }
  body .trust-bar > a > span { font-size:11px; }
  body .about figcaption { font-size:12px; }
  /* Tippflächen mindestens 44 px hoch */
  body .site-footer > div:not(.footer-brand) > a { display:flex; align-items:center; min-height:44px; margin-bottom:0; }
  body .site-footer .footer-credit { display:inline-flex; align-items:center; min-height:44px; }
  body .service-contact-link, body .fx-rv-all, body .fx-rv-more, body .contact-landline, body .contact-mail { display:inline-flex; align-items:center; min-height:44px; }
}

/* Navigation in Inter statt Barlow Condensed: bei kleiner Größe verschmolz der i-Punkt mit dem Strich */
body .navigation a { font-family:var(--body); font-weight:600; font-size:.95rem; letter-spacing:-.005em; }
@media (max-width:900px){ body .navigation a { font-size:1.12rem; } }
