/* Grundlegende Overflow-Kontrolle */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Allgemeine Zentrierung */
.section-content,
.hero-content,
.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Große Tablets und kleine Desktops */
@media (max-width: 1200px) {
    .header {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98));
    }

    .hero {
        background-attachment: scroll; /* Fixes mobile background issues */
    }

    .section-content,
    .hero-content,
    .header-container {
        max-width: 100%;
        padding: 0 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets und kleinere Desktops */
@media (max-width: 992px) {
    .header {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-container,
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .slider-section {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
        padding: 0;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .header {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98));
    }

    .section-content,
    .hero-content {
        padding: 0 1rem;
    }

    .contact-container {
        max-width: 600px;
        padding: 0 1rem;
    }

    .slider-section {
        margin: 2rem calc(-50vw + 50%);
        width: 100vw;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .header-container {
        padding: 0.8rem 1rem;
    }

    .logo img {
        height: 60px;
    }

    .header.scrolled .logo img {
        height: 50px;
    }

    nav ul {
        gap: 1.2rem;
    }

    .hero {
        min-height: auto;
        padding: 8rem 1rem 4rem;
    }

    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 1rem;
    }

    .slider {
        height: 300px;
    }

    .slide {
        width: 300px;
        height: 300px;
    }

    .slide-track {
        animation: scroll 30s linear infinite;
    }

    @keyframes scroll {
        100% {
            transform: translateX(calc(-300px * var(--slide-count)));
        }
    }
}

/* Große Smartphones */
@media (max-width: 576px) {
    .section-content,
    .hero-content,
    .header-container {
        padding: 0 1rem;
    }

    .contact-container {
        max-width: 100%;
    }

    .slider-section {
        margin: 1rem calc(-50vw + 50%);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .slider {
        height: 250px;
    }

    .slide {
        width: 250px;
        height: 250px;
        padding: 0;
    }
	
    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .slider-section::before,
    .slider-section::after {
        width: 40px; /* Noch schmalerer Schatten */
        opacity: 0.7; /* Etwas transparenter */
    }
}

/* Kleine Smartphones */
@media (max-width: 480px) {
    .header {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98));
    }

    .section-content,
    .hero-content {
        padding: 0 0.8rem;
    }

    .slider-section {
        margin: 1rem 0; /* Angepasste Margins ohne Schatten */
        width: 100vw;
    }

    .header-container {
        padding: 0.5rem 1rem;
    }

    .logo img {
        height: 50px;
    }

    .header.scrolled .logo img {
        height: 40px;
    }

    nav {
        display: none; /* Hier sollte ein mobiles Menü implementiert werden */
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .service-card {
        padding: 1.2rem;
    }

    .slider {
        height: 200px;
    }

    .slide {
        width: 200px;
        height: 200px;
    }

    .slide-track {
        animation: scroll 25s linear infinite;
    }

    @keyframes scroll {
        100% {
            transform: translateX(calc(-200px * var(--slide-count)));
        }
    }

    .about-content,
    .contact-info {
        padding: 1.2rem;
    }

    .map-container {
        height: 250px;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .footer-section {
        padding: 0;
    }

    .slider-section::before,
    .slider-section::after {
        display: none; /* Kein Schatten auf kleinen Geräten */
    }
} 