Refactor button sizes and image max-width for improved responsiveness and layout consistency

This commit is contained in:
astosic 2025-08-09 13:16:50 +02:00
parent 183ff408a9
commit 0533ad4ea3
2 changed files with 12 additions and 57 deletions

View file

@ -3046,7 +3046,7 @@ body {
#about .about-image {
width: 100%;
max-width: clamp(260px, 38vw, 480px);
max-width: clamp(200px, 38vw, 300px);
height: auto;
object-fit: contain;
margin-left: auto;
@ -3154,47 +3154,16 @@ body {
--cta-accent: #F5A623;
/* Orange */
/* Button-Preset (hier zentral Größe steuern) */
--btn-py: clamp(2rem, 2.8vw, 3rem);
--btn-py: clamp(1.8rem, 2.8vw, 2.5rem);
/* oben/unten -> Höhe */
--btn-px: clamp(2rem, 3.6vw, 3em);
--btn-px: clamp(1.8rem, 2.8vw, 2.5rem);
/* links/rechts -> Breite (em skaliert mit Schriftgröße) */
--btn-fs: clamp(2rem, 2vw, 3rem);
--btn-fs: clamp(1.8rem, 2.8vw, 2.5rem);
/* Schriftgröße */
position: relative;
overflow: hidden;
padding: clamp(6rem, 10vw, 12rem) 0;
/* Section höher wie „Standard-Sektion“ */
background: #f3f3f3; }
/* Hintergrund dezent + optional animiert */
.cta__bg {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 0; }
.cta__grad {
position: absolute;
inset: 0;
background: linear-gradient(180deg, #fff, #f6f9f9, #fff); }
@keyframes cta-pan {
from {
background-position: 0% 0%; }
to {
background-position: 200% 200%; } }
.cta__pan {
position: absolute;
inset: 0;
opacity: .08;
background-size: 200% 200%;
background-image: radial-gradient(40% 40% at 20% 10%, rgba(4, 110, 110, 0.25), transparent 60%), radial-gradient(35% 35% at 85% 35%, rgba(245, 166, 35, 0.25), transparent 55%);
animation: cta-pan 24s linear infinite; }
@media (prefers-reduced-motion: reduce) {
.cta__pan {
animation: none !important; } }
/* Section höher wie „Standard-Sektion“ */ }
.cta .my-container {
position: relative;
@ -3269,8 +3238,8 @@ body {
margin-top: clamp(1.2rem, 2.4vw, 1.6rem); }
.cta__social-link {
width: clamp(56px, 6.2vw, 64px);
height: clamp(56px, 6.2vw, 64px);
width: clamp(65px, 10vw, 70px);
height: clamp(65px, 10vw, 70px);
display: inline-flex;
align-items: center;
justify-content: center;