feat: Über-mich-Porträt mit Gold-Rahmen und Graustufen-Hover

This commit is contained in:
Leon Tonhäuser committed 2026-06-17 15:04:39 +02:00
1 parent 27602cffd4
commit fa993489f6
2 files changed
+50 -2

No files matched your search

+45 -1
View File
@@ -16,7 +16,12 @@
--akzent-gold: #c9a227;
}
html { scroll-behavior: smooth; }
/* Lenis (smooth scroll) — CSS aus Framers SmoothScroll_Prod.js */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
* { box-sizing: border-box; margin: 0; padding: 0; }
@@ -215,6 +220,45 @@
.einblenden { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.einblenden.sichtbar { opacity: 1; transform: none; }
/* ==================== ÜBER-MICH PORTRÄT (schwebt rechts, Graustufen → Farbe) ==================== */
.portrait-hero {
margin: 0 0 32px;
float: right;
width: 320px;
max-width: 40%;
shape-outside: margin-box;
}
.portrait-hero img {
display: block;
width: 100%;
height: auto;
border-radius: 12px;
border: 2px solid var(--akzent-gold);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
filter: grayscale(100%);
transition: filter 0.6s ease-out, transform 0.4s ease-out;
}
.portrait-hero:hover img,
.portrait-hero:focus-within img {
filter: grayscale(0%);
transform: scale(1.03);
}
.portrait-hero figcaption {
margin-top: 10px;
font-size: 12px;
letter-spacing: 0.4px;
color: var(--text-leise);
text-align: right;
}
@media (max-width: 720px) {
.portrait-hero {
float: none;
width: 100%;
max-width: 320px;
margin: 0 auto 32px;
}
}
/* ==================== SEITENÜBERGANG (Staub-Fade) ==================== */
body { transition: opacity 0.3s ease-out, transform 0.3s ease-out, filter 0.3s ease-out; }
.seite-ausgang { opacity: 0; transform: translateY(-12px); filter: blur(3px); }