Improve responsive design for all devices
Fix nav overflow with 8 links, add proper mobile hamburger menu with scrollable dropdown, collapse all grids at correct breakpoints, tighten spacing on mobile, prevent horizontal overflow, and improve touch targets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
df35c0dd00
commit
fdf1aba09e
165
styles.css
165
styles.css
|
|
@ -60,6 +60,7 @@
|
||||||
|
|
||||||
html {
|
html {
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|
@ -68,8 +69,10 @@ body {
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
background-color: var(--color-bg);
|
background-color: var(--color-bg);
|
||||||
|
overflow-x: hidden;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
|
@ -232,15 +235,16 @@ p:last-child {
|
||||||
.nav-menu {
|
.nav-menu {
|
||||||
display: flex;
|
display: flex;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
gap: var(--spacing-md);
|
gap: var(--spacing-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-menu a {
|
.nav-menu a {
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
font-size: 0.9rem;
|
font-size: 0.85rem;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
padding: 0.5rem 0;
|
padding: 0.5rem 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-menu a::after {
|
.nav-menu a::after {
|
||||||
|
|
@ -592,11 +596,13 @@ p:last-child {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 0.75rem;
|
gap: 0.75rem;
|
||||||
font-size: 1.05rem;
|
font-size: 1.05rem;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pricing-item svg {
|
.pricing-item svg {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
|
min-width: 24px;
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
@ -1130,6 +1136,8 @@ p:last-child {
|
||||||
/* --------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------
|
||||||
Responsive Design
|
Responsive Design
|
||||||
-------------------------------------------------------------------------- */
|
-------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* Tablet landscape / small desktop — nav + grids collapse */
|
||||||
@media (max-width: 1024px) {
|
@media (max-width: 1024px) {
|
||||||
.hero {
|
.hero {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
|
@ -1143,7 +1151,7 @@ p:last-child {
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-image {
|
.hero-image {
|
||||||
min-height: 400px;
|
min-height: 350px;
|
||||||
order: -1;
|
order: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1169,10 +1177,20 @@ p:last-child {
|
||||||
}
|
}
|
||||||
|
|
||||||
.vorteile-grid {
|
.vorteile-grid {
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonials-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.testimonial-card-long,
|
||||||
|
.testimonial-card-romansh {
|
||||||
|
grid-column: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Tablet portrait — hamburger nav, single columns */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.nav-menu {
|
.nav-menu {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
@ -1182,12 +1200,14 @@ p:last-child {
|
||||||
background: var(--color-bg);
|
background: var(--color-bg);
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: var(--spacing-md);
|
padding: var(--spacing-md);
|
||||||
gap: var(--spacing-sm);
|
gap: 0;
|
||||||
box-shadow: var(--shadow-md);
|
box-shadow: var(--shadow-md);
|
||||||
transform: translateY(-100%);
|
transform: translateY(-100%);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
transition: all var(--transition-base);
|
transition: all var(--transition-base);
|
||||||
|
max-height: calc(100vh - 60px);
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-menu.active {
|
.nav-menu.active {
|
||||||
|
|
@ -1196,6 +1216,20 @@ p:last-child {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-menu li {
|
||||||
|
border-bottom: 1px solid var(--color-bg-alt);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-menu li:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-menu a {
|
||||||
|
display: block;
|
||||||
|
padding: 0.75rem 0;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
.nav-toggle {
|
.nav-toggle {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
@ -1212,17 +1246,53 @@ p:last-child {
|
||||||
transform: rotate(-45deg) translate(5px, -5px);
|
transform: rotate(-45deg) translate(5px, -5px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hero-image {
|
||||||
|
min-height: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-tagline {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
.wissen-grid {
|
.wissen-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.testimonials-grid {
|
.wissen-card-wide {
|
||||||
|
grid-column: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vorteile-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.testimonial-card-long,
|
.quanten-block > h3 {
|
||||||
.testimonial-card-romansh {
|
font-size: 1.25rem;
|
||||||
grid-column: auto;
|
}
|
||||||
|
|
||||||
|
.behandlung-step,
|
||||||
|
.quanten-step {
|
||||||
|
gap: var(--spacing-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.step-number {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-item {
|
||||||
|
font-size: 0.95rem;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.angebot-question {
|
||||||
|
font-size: 1.05rem;
|
||||||
|
padding-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tools-list {
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-content {
|
.footer-content {
|
||||||
|
|
@ -1234,20 +1304,93 @@ p:last-child {
|
||||||
.footer-links {
|
.footer-links {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
gap: var(--spacing-sm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Mobile — tighter spacing, full-width everything */
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
:root {
|
:root {
|
||||||
--spacing-md: 1.5rem;
|
--spacing-md: 1.25rem;
|
||||||
--spacing-lg: 3rem;
|
--spacing-lg: 2.5rem;
|
||||||
--spacing-xl: 4rem;
|
--spacing-xl: 3.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
padding: 0 var(--spacing-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
padding: 0.75rem 1.5rem;
|
padding: 0.75rem 1.5rem;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hero-image {
|
||||||
|
min-height: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-text p:first-child::first-letter {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.behandlung-step,
|
||||||
|
.quanten-step {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step-content {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.alltagstools {
|
||||||
|
padding: var(--spacing-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tools-list {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-card {
|
||||||
|
padding: var(--spacing-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-item {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonial-card {
|
||||||
|
padding: var(--spacing-sm);
|
||||||
|
padding-top: calc(var(--spacing-sm) + 1rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonial-card::before {
|
||||||
|
font-size: 3rem;
|
||||||
|
top: 0;
|
||||||
|
left: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.quanten-fazit {
|
||||||
|
padding: var(--spacing-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contact-form {
|
||||||
|
padding: var(--spacing-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.workshop-content {
|
||||||
|
padding: var(--spacing-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-links {
|
||||||
|
gap: 0.5rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-links a {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue