/* Grundlegende Reset und Viewport-Fixes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Container und Sektionen */
section {
    width: 100%;
    overflow: hidden;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.section-header {
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 3rem;
    max-width: 100%;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--background-light);
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--white);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Trust Indicators Responsive Fix */
.trust-indicators {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 4rem 1rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .trust-indicators {
        margin: -60px 1rem 0;
        width: calc(100% - 2rem);
        padding: 2rem 1rem;
    }

    .section-header {
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
}

/* Allgemeine Container-Fixes */
.container, 
.content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .container,
    .content-wrapper {
        padding: 0 0.5rem;
    }

    section {
        padding: 2rem 0;
    }
}

:root {
    --primary-color: #f49c34;        /* Orange als Hauptfarbe */
    --secondary-color: #1c1c1c;      /* Dunkles Grau */
    --background-dark: #1A1A1A;      /* Dunkelgrau für Hintergrund */
    --background-light: #2A2A2A;     /* Helleres Grau für Cards */
    --text-color: #E0E0E0;          /* Helles Grau für Text */
    --text-muted: #A0A0A0;          /* Gedämpftes Grau für weniger wichtigen Text */
    --white: #ffffff;               /* Weiß für Kontraste */
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--background-dark);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Local Fonts */
@font-face {
    font-family: 'Poppins';
    src: local('Poppins Regular'), local('Poppins-Regular'),
         url('fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: local('Poppins Medium'), local('Poppins-Medium'),
         url('fonts/Poppins-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: local('Poppins SemiBold'), local('Poppins-SemiBold'),
         url('fonts/Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: local('Poppins Bold'), local('Poppins-Bold'),
         url('fonts/Poppins-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Navigation */
.main-nav {
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.logo img {
    height: 85px;
    width: auto;
    object-fit: contain;
    filter: none;
}

@media (max-width: 768px) {
    .logo img {
        height: 70px;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--primary-color);
}

/* Mobile Navigation Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #000;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-contact {
        display: none;
    }
}

/* Hero Section Optimierung */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('bilder/hero/matt-seymour-ScUGpaxsnyU-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    background: rgba(26, 26, 26, 0.9);
    color: var(--text-color);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: #000000;
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        background-attachment: scroll;
    }

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

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(244, 156, 52, 0.8), rgba(28, 28, 28, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #000000;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background-color: #000000;
    color: var(--white);
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Trust Indicators */
.trust-indicators {
    background-color: var(--white);
    padding: 4rem 2rem;
    margin-top: -100px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.trust-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.trust-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.trust-item p {
    color: #000000;
    font-size: 0.9rem;
    width: 100%;
    word-wrap: break-word;
}

@media (max-width: 1024px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .trust-indicators {
        padding: 3rem 1.5rem;
        margin-top: -80px;
    }

    .trust-item {
        padding: 1.5rem 0.75rem;
    }

    .trust-item h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .trust-indicators {
        padding: 2rem 1rem;
        margin-top: -60px;
    }

    .trust-item {
        padding: 1rem 0.5rem;
    }

    .trust-item i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .trust-item h3 {
        font-size: 1rem;
    }

    .trust-item p {
        font-size: 0.85rem;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--background-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
}

/* Services */
.services {
    padding: 8rem 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-cta {
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid var(--white);
    border-radius: 50px;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
}

.service-card:hover .service-cta {
    transform: translateY(0);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.service-features li i {
    color: var(--primary-color);
}

/* Projects */
.projects {
    padding: 8rem 2rem;
    background: var(--background-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(244, 156, 52, 0.8), rgba(28, 28, 28, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateY(-20px);
    transition: var(--transition);
}

.project-overlay p {
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.project-item:hover .project-overlay h3,
.project-item:hover .project-overlay p {
    transform: translateY(0);
}

/* Gallery Section Optimierung */
.gallery {
    padding: 6rem 0;
    background-color: var(--background-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    grid-auto-rows: 400px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 400px; /* Feste Höhe */
    width: 100%;
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.gallery-overlay h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        grid-auto-rows: 350px;
    }
    
    .gallery-item {
        height: 350px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        grid-auto-rows: 300px;
    }
    
    .gallery-item,
    .gallery-item.large {
        grid-column: span 1;
        height: 300px;
    }
}

/* Contact Section */
.contact {
    padding: 8rem 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-content p, .info-content a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.info-content a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--background-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-color);
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.banner-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
    padding: 0 15px;
}

.banner-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.2;
}

.banner-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.banner-buttons {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    min-width: 200px;
    flex: 1;
    max-width: 280px;
}

.banner-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: var(--primary-color);
    color: var(--white);
}

.banner-button i {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

@media (max-width: 768px) {
    .cta-banner {
        padding: 3rem 1rem;
    }

    .banner-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1rem;
    }

    .banner-button {
        width: 100%;
        max-width: none;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .banner-content {
        padding: 0 10px;
    }

    .banner-button {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

/* Footer */
footer {
    background-color: var(--background-light);
    color: var(--text-color);
    padding: 6rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    filter: none;
}

@media (max-width: 768px) {
    .footer-logo {
        height: 60px;
    }
}

.footer-info p {
    color: var(--white);
    max-width: 400px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
}

/* Media Queries */
@media (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Legal Pages */
.legal-content {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.legal-section {
    background: var(--background-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.legal-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
}

.legal-content h4 {
    font-size: 1.2rem;
    margin: 1.2rem 0 0.8rem;
    color: var(--white);
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--white);
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-content {
        margin: 100px auto 40px;
        padding: 0 15px;
    }

    .legal-section {
        padding: 20px;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }

    .legal-content h4 {
        font-size: 1.1rem;
    }
}

/* Detaillierte Leistungen Seite */
.detailed-services {
    padding: 8rem 5%;
    background: var(--background-dark);
}

.service-detail {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-text {
    color: var(--text-color);
}

.service-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-text h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.service-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-text ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-text li {
    color: var(--white);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-text li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.service-gallery {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.service-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.service-gallery img:hover {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .service-detail {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        height: 300px;
    }
}

.service-detail {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-text {
    margin-bottom: 2rem;
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    height: 515px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .service-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item,
    .gallery-item.large {
        height: 200px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 576px) {
    .service-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .service-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .service-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-img {
        height: 180px;
    }
}
