feat: Tiefenflug-Layout auf 100vh umstellen, Auto-Player vorerst deaktiviert
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
f5f962d212
commit
638bb954f8
5 files changed
+176
-713
No files matched your search
@@ -0,0 +1,166 @@
|
||||
/* auto-player.css – Startseiten-Intro „Tiefenflug" als zeitgesteuerte
|
||||
Auto-Inszenierung (kein Scroll). Ersetzt tiefenflug.css.
|
||||
Geteilte Basis-Styles (Topbar, Dock, Typo, Footer) in site.css. */
|
||||
|
||||
/* ==================== INTRO-BÜHNE ==================== */
|
||||
/* 100vh-Container, kein sticky/fixed. Rest der Seite sitzt darunter. */
|
||||
.flug-strecke { height: 100vh; position: relative; overflow: hidden; }
|
||||
.flug-buehne {
|
||||
position: absolute; inset: 0;
|
||||
overflow: hidden;
|
||||
perspective: 800px; perspective-origin: 50% 50%;
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
/* Name als Umriss-Schrift hinter den Fotos (Spec §2 Atmen/Flug) */
|
||||
.flug-name {
|
||||
position: absolute; left: 50%; top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
font-weight: 600;
|
||||
font-size: clamp(40px, 8vw, 110px);
|
||||
letter-spacing: 18px;
|
||||
white-space: nowrap;
|
||||
color: transparent;
|
||||
-webkit-text-stroke: 1.5px rgba(18, 18, 18, 0.28);
|
||||
will-change: transform, letter-spacing, opacity;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Verlaufs-Bilder (Geister): JS steuert Deckkraft im Flug */
|
||||
.geist {
|
||||
position: absolute; top: 0; bottom: 0; width: 52%; height: 100%;
|
||||
object-fit: cover; opacity: 0; will-change: opacity; pointer-events: none;
|
||||
}
|
||||
.geist.links { left: 0; -webkit-mask-image: linear-gradient(to right, black 20%, transparent 95%); mask-image: linear-gradient(to right, black 20%, transparent 95%); }
|
||||
.geist.rechts { right: 0; -webkit-mask-image: linear-gradient(to left, black 20%, transparent 95%); mask-image: linear-gradient(to left, black 20%, transparent 95%); }
|
||||
|
||||
/* Schwebende Fotos (Atmen per CSS-Animation, Flug per JS-transform) */
|
||||
.flug-foto {
|
||||
position: absolute; left: 50%; top: 50%;
|
||||
width: clamp(180px, 22vw, 300px);
|
||||
aspect-ratio: 3 / 2;
|
||||
transform-style: preserve-3d;
|
||||
will-change: transform, opacity;
|
||||
pointer-events: none;
|
||||
}
|
||||
.flug-foto.hochformat { width: clamp(150px, 16vw, 220px); }
|
||||
.flug-foto img {
|
||||
width: 100%; height: 100%; object-fit: cover;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
|
||||
animation: schweben 5s ease-in-out infinite alternate;
|
||||
}
|
||||
.flug-foto:nth-child(2n) img { animation-delay: 1.3s; }
|
||||
.flug-foto:nth-child(3n) img { animation-delay: 2.4s; }
|
||||
@keyframes schweben { from { transform: translateY(0); } to { transform: translateY(-12px); } }
|
||||
|
||||
.flug-hinweis {
|
||||
position: absolute; bottom: 24px; left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-family: "Fragment Mono", monospace;
|
||||
font-size: 13px; letter-spacing: 3px; color: #98a2b3;
|
||||
animation: pulsieren 1.8s ease-in-out infinite;
|
||||
}
|
||||
@keyframes pulsieren { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
|
||||
|
||||
/* ==================== PREIS-MOMENT (Gold nur hier – Akzent) ==================== */
|
||||
.preis {
|
||||
position: absolute; inset: 0;
|
||||
display: flex; flex-direction: column;
|
||||
align-items: center; justify-content: center;
|
||||
opacity: 0; will-change: opacity, transform; pointer-events: none;
|
||||
}
|
||||
.preis-bild { position: relative; will-change: transform; }
|
||||
.preis-bild img {
|
||||
display: block; width: min(560px, 70vw);
|
||||
border-radius: var(--radius-karte);
|
||||
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
/* Gold-Schriftzug: Verlauf wandert durch den Text */
|
||||
.preis-text {
|
||||
position: relative;
|
||||
margin-top: 28px;
|
||||
font-family: "Fragment Mono", monospace;
|
||||
font-size: 14px;
|
||||
letter-spacing: 3px;
|
||||
background: linear-gradient(100deg, #9a7a1c 0%, #c9a227 30%, #f7e7ae 50%, #c9a227 70%, #9a7a1c 100%);
|
||||
background-size: 200% 100%;
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
animation: goldglanz 3s linear infinite;
|
||||
}
|
||||
@keyframes goldglanz {
|
||||
from { background-position: 200% 0; }
|
||||
to { background-position: -200% 0; }
|
||||
}
|
||||
|
||||
/* Gold-Rieseln: kleine Partikel fallen vom Schriftzug herab */
|
||||
.preis-text .rieseln {
|
||||
position: absolute; top: 100%;
|
||||
width: 3px; height: 3px;
|
||||
border-radius: 50%;
|
||||
background: #c9a227;
|
||||
opacity: 0;
|
||||
animation: rieseln 2.8s linear infinite;
|
||||
}
|
||||
@keyframes rieseln {
|
||||
0% { transform: translate(0, 0); opacity: 0; }
|
||||
15% { opacity: 0.9; }
|
||||
100% { transform: translate(var(--drift, 0px), 46px); opacity: 0; }
|
||||
}
|
||||
.preis-text .rieseln:nth-child(1) { left: 6%; animation-delay: 0.0s; --drift: -6px; }
|
||||
.preis-text .rieseln:nth-child(2) { left: 16%; animation-delay: 1.1s; --drift: 4px; }
|
||||
.preis-text .rieseln:nth-child(3) { left: 25%; animation-delay: 0.4s; --drift: -3px; }
|
||||
.preis-text .rieseln:nth-child(4) { left: 34%; animation-delay: 1.8s; --drift: 5px; }
|
||||
.preis-text .rieseln:nth-child(5) { left: 45%; animation-delay: 0.8s; --drift: -5px; }
|
||||
.preis-text .rieseln:nth-child(6) { left: 55%; animation-delay: 2.2s; --drift: 3px; }
|
||||
.preis-text .rieseln:nth-child(7) { left: 64%; animation-delay: 0.2s; --drift: -4px; }
|
||||
.preis-text .rieseln:nth-child(8) { left: 75%; animation-delay: 1.4s; --drift: 6px; }
|
||||
.preis-text .rieseln:nth-child(9) { left: 85%; animation-delay: 2.6s; --drift: -2px; }
|
||||
.preis-text .rieseln:nth-child(10) { left: 94%; animation-delay: 0.6s; --drift: 4px; }
|
||||
.konfetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
|
||||
.landung-verlauf {
|
||||
position: absolute; left: 0; right: 0; bottom: 0; height: 30vh;
|
||||
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
|
||||
opacity: 0; pointer-events: none; z-index: 4;
|
||||
}
|
||||
|
||||
/* ==================== SKIP-BUTTON ==================== */
|
||||
.autoplayer-skip {
|
||||
position: fixed;
|
||||
right: 1.5rem;
|
||||
bottom: 1.5rem;
|
||||
z-index: 50;
|
||||
padding: 0.65rem 1.1rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid rgba(0, 0, 0, 0.12);
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
color: #121212;
|
||||
font: inherit;
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
|
||||
transition: transform 0.15s ease, background 0.15s ease;
|
||||
}
|
||||
.autoplayer-skip:hover { background: #ffffff; transform: translateY(-1px); }
|
||||
.autoplayer-skip:focus-visible { outline: 2px solid #c9a227; outline-offset: 2px; }
|
||||
.autoplayer-skip[hidden] { display: none; }
|
||||
|
||||
/* ==================== ZUSTÄNDE ==================== */
|
||||
.intro-beendet .flug-strecke { display: none; }
|
||||
.intro-beendet .flug-buehne,
|
||||
.intro-beendet .flug-name,
|
||||
.intro-beendet .flug-hinweis,
|
||||
.intro-beendet .preis,
|
||||
.intro-beendet .landung-verlauf { opacity: 0; visibility: hidden; }
|
||||
/* Kein JS: Intro gar nicht zeigen. */
|
||||
.kein-js .flug-strecke { display: none; }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.flug-foto img, .flug-hinweis, .preis-text, .preis-text .rieseln { animation: none; }
|
||||
}
|
||||
@media (max-width: 760px) {
|
||||
.flug-foto[data-mobil="aus"] { display: none; }
|
||||
.flug-name { -webkit-text-stroke-width: 1px; }
|
||||
}
|
||||
Reference in new issue
Block a user