- {t('countdown.launchPrefix')} {dateLabel} {t('countdown.launchAt')}{' '} - {timeLabel} {t('countdown.clock')} -
- +diff --git a/hifi-src/src/components/CountdownTeaser.jsx b/hifi-src/src/components/CountdownTeaser.jsx
index effacbe..44dfaeb 100644
--- a/hifi-src/src/components/CountdownTeaser.jsx
+++ b/hifi-src/src/components/CountdownTeaser.jsx
@@ -1,15 +1,24 @@
-import { useEffect, useMemo, useState } from 'react';
+import { useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
-import { AnimatePresence, motion, useReducedMotion } from 'framer-motion';
-import { CalendarPlus, LogIn, Phone, X } from 'lucide-react';
+import { LogIn, Phone, X } from 'lucide-react';
import { useLanguage } from '../context/LanguageContext.jsx';
import { telHref } from '../utils/contactLinks.js';
import logoDark from '../assets/logo-dark.png';
-import defaultBackground from '../assets/photos/hero-trunk.webp';
+import background from '../assets/contact/bg-dark.webp';
-const EASE = [0.16, 1, 0.3, 1];
+// Farben/Schriften aus dem Kontaktformular-Design (Dark-Variante, referenz/Kontaktformular
+// Redesign) - der Teaser ist immer dunkel, unabhaengig vom Hell/Dunkel-Schalter.
+const C = {
+ card: '#14170e',
+ cardBorder: 'rgba(168,225,12,0.16)',
+ divider: 'rgba(168,225,12,0.15)',
+ text: '#f3f6ea',
+ muted: '#9aa38c',
+ label: '#8f987f',
+ accent: '#b6e619',
+ pillBorder: 'rgba(168,225,12,0.28)',
+};
const michroma = { fontFamily: "'Michroma', sans-serif" };
-const condensed = { fontFamily: "'Barlow Condensed', sans-serif" };
// Restzeit in ms bis zum Launch - mit dem Uhr-Versatz zwischen Server und Browser, damit eine
// falsch gehende Uhr beim Besucher den Countdown nicht verschiebt.
@@ -56,83 +65,20 @@ function calendarHref(launchAt, title) {
return `data:text/calendar;charset=utf-8,${encodeURIComponent(ics)}`;
}
-// Eine Ziffer, die beim Wechsel nach unten wegrollt - wie ein Zaehlwerk.
-function RollingDigit({ value, reduceMotion }) {
+// Letztes Wort der Ueberschrift in Akzentgruen - wie "mit" in "Sprich mit uns." auf der Kontaktseite.
+function AccentTitle({ text }) {
+ const index = text.trimEnd().lastIndexOf(' ');
+ if (index < 0) return text;
return (
-
-
- {t('countdown.launchPrefix')} {dateLabel} {t('countdown.launchAt')}{' '} - {timeLabel} {t('countdown.clock')} -
- +${l.innerHTML.replace(/\n/g,"
")}
${l.innerHTML.replace(/\n/g,"
")}
this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Vd.current||zx(),this.shouldReduceMotion=Ua.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),St(this.notifyUpdate),St(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&bx.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:l,times:u,ease:c,duration:d}=n.accelerate,f=new vx({element:this.current,name:t,keyframes:l,times:u,ease:c,duration:dt(d)}),h=a(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=ts.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&J.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Wa){const n=Wa[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r ${n("home.heroSubtitle")} this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Dd.current||Fx(),this.shouldReduceMotion=Wo.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),St(this.notifyUpdate),St(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&vx.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:l,times:u,ease:c,duration:d}=n.accelerate,f=new xx({element:this.current,name:t,keyframes:l,times:u,ease:c,duration:dt(d)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const r=ns.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&J.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Go){const n=Go[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ne()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r ${n("home.heroSubtitle")}Hh&&(t.x=1),t.y>>1;FP?(_=S,S=null):_=S.sibling;var C=h(y,S,g[P],k);if(C===null){S===null&&(S=_);break}e&&S&&C.alternate===null&&t(y,S),x=i(C,x,P),T===null?j=C:T.sibling=C,T=C,S=_}if(P===g.length)return n(y,S),me&&Bn(y,P),j;if(S===null){for(;Pe*1e3,vt=e=>e/1e3,dd=(e,t)=>t?e*(1e3/t):0,B0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Bb=1e-7,$b=12;function Hb(e,t,n,r,s){let i,o,l=0;do o=t+(n-t)/2,i=B0(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>Bb&&++l<$b);return o}function mi(e,t,n,r){if(e===t&&n===r)return ot;const s=i=>Hb(i,0,1,e,n);return i=>i===0||i===1?i:B0(s(i),t,r)}const $0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,H0=e=>t=>1-e(1-t),U0=mi(.33,1.53,.69,.99),fd=H0(U0),W0=$0(fd),G0=e=>e>=1?1:(e*=2)<1?.5*fd(e):.5*(2-Math.pow(2,-10*(e-1))),hd=e=>1-Math.sin(Math.acos(e)),K0=H0(hd),q0=$0(hd),Ub=mi(.42,0,1,1),Wb=mi(0,0,.58,1),Y0=mi(.42,0,.58,1),Gb=e=>Array.isArray(e)&&typeof e[0]!="number",X0=e=>Array.isArray(e)&&typeof e[0]=="number",Kb={linear:ot,easeIn:Ub,easeInOut:Y0,easeOut:Wb,circIn:hd,circInOut:q0,circOut:K0,backIn:fd,backInOut:W0,backOut:U0,anticipate:G0},qb=e=>typeof e=="string",mh=e=>{if(X0(e)){ud(e.length===4);const[t,n,r,s]=e;return mi(t,n,r,s)}else if(qb(e))return Kb[e];return e},Vi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Yb(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(c){i.has(c)&&(u.schedule(c),e()),c(o)}const u={schedule:(c,d=!1,f=!1)=>{const p=f&&r?t:n;return d&&i.add(c),p.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0;const d=t;t=n,n=d,t.forEach(l),t.clear(),r=!1,s&&(s=!1,u.process(c))}};return u}const Xb=40;function Z0(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Vi.reduce((g,k)=>(g[k]=Yb(i),g),{}),{setup:l,read:u,resolveKeyframes:c,preUpdate:d,update:f,preRender:h,render:p,postRender:v}=o,w=()=>{const g=An.useManualTiming,k=g?s.timestamp:performance.now();n=!1,g||(s.delta=r?1e3/60:Math.max(Math.min(k-s.timestamp,Xb),1)),s.timestamp=k,s.isProcessing=!0,l.process(s),u.process(s),c.process(s),d.process(s),f.process(s),h.process(s),p.process(s),v.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(w))},b=()=>{n=!0,r=!0,s.isProcessing||e(w)};return{schedule:Vi.reduce((g,k)=>{const j=o[k];return g[k]=(T,S=!1,P=!1)=>(n||b(),j.schedule(T,S,P)),g},{}),cancel:g=>{for(let k=0;k=$o?1/0:t}function Pk(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(yd(r),$o);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:vt(s)}}const be={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Mu(e,t){return e*Math.sqrt(1-t*t)}const Ck=12;function Ek(e,t,n){let r=n;for(let s=1;szh&&(t.x=1),t.y