/* Root Variables */
:root {
    --anthrazit: #2f2f2f;
    --gold: #ffd700;
    --dunkelblau: #1a237e;
    --dunkelrot: #b71c1c;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--anthrazit);
    overflow-x: hidden;
}

/* Wichtig für descender (g, j, p, q, y) */
.hero-title, .gradient-text, .logo-line {
    overflow: visible !important;
}

html {
    scroll-behavior: smooth;
}

/* Mobile-First Optimizations und erweiterte Media Queries */

/* Basis Mobile Optimierungen */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Verbesserte Touch-Targets */
.btn, .nav-link, .service-link, .contact-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Verbesserte Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: -0.5rem;
}

.logo-main {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--dunkelblau), var(--dunkelrot));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-addon {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #b8860b, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--anthrazit);
    font-weight: 400;
    margin-top: -5px;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--anthrazit);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--dunkelblau);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--dunkelblau), var(--dunkelrot));
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--anthrazit);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: url('finalesherobild.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 0 3rem;
    position: relative;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    z-index: 1;
}

.hero-content {
    z-index: 3;
    position: relative;
    padding: 0 100px 0 0;
    text-align: left;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    padding-bottom: 10px;
}

.gradient-text {
    background: linear-gradient(45deg, var(--white), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-shadow: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    overflow: visible;
    width: max-content;
    min-width: max-content;
    padding-bottom: 15px;
}

.logo-line {
    display: block;
    line-height: 1.2;
    padding-right: 30px;
    padding-bottom: 5px;
    overflow: visible;
    white-space: nowrap;
    width: max-content;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    animation: goldShimmer 2s ease-in-out infinite alternate;
    color: var(--anthrazit);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), var(--shadow);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), var(--shadow-hover);
    animation-duration: 1s;
}

@keyframes goldShimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.btn-secondary {
    background: var(--white);
    color: var(--anthrazit);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--anthrazit);
    color: var(--white);
    transform: translateY(-2px);
}



/* Leistungen */
.services {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--anthrazit);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dunkelblau);
    margin-bottom: 2rem;
    font-weight: 500;
}

.services-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.services-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--anthrazit);
}

.services-intro strong {
    color: var(--dunkelblau);
    font-weight: 600;
}

.services-categories {
    margin-bottom: 3rem;
}

.service-category {
    margin-bottom: 3rem;
}

.service-category h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--dunkelblau);
    margin-bottom: 2rem;
    font-weight: 600;
}

.service-category.single {
    display: flex;
    justify-content: center;
}

.service-category.single .service-card {
    max-width: 400px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--dunkelblau), var(--dunkelrot));
    margin: 1rem auto;
    border-radius: 2px;
}

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

/* Beschriftungen für Privat- und Gewerbebereich */
.service-area-labels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem auto 1rem;
    max-width: 800px;
    text-align: center;
}

.service-area-label h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dunkelblau);
    margin: 0;
    padding: 0.5rem;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
}

/* Spezielles 2x2 Grid für Hauptleistungen */
.services-grid.main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Vertikaler Trennstrich zwischen Privat- und Gewerbeleistungen */
.services-grid.main-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 5%;
    bottom: 5%;
    width: 2px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--gold) 20%, 
        var(--dunkelblau) 50%, 
        var(--gold) 80%, 
        transparent 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 350px;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    z-index: 1;
}

.service-card:hover::before {
    background: rgba(0, 0, 0, 0.6);
}

.service-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--dunkelblau), var(--dunkelrot));
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
}

.service-card.featured .service-overlay {
    color: var(--white);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.service-card.featured h4 {
    color: var(--white);
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.service-link {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.service-link:hover {
    background: var(--white);
    color: var(--dunkelblau);
    border-color: var(--white);
    transform: translateY(-2px);
    text-shadow: none;
}

.service-card.featured .service-link {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

.service-card.featured .service-link:hover {
    background: var(--white);
    color: var(--dunkelblau);
    border-color: var(--white);
}

.services-cta {
    text-align: center;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.services-cta h3 {
    font-size: 1.5rem;
    color: var(--dunkelblau);
    margin-bottom: 1rem;
    font-weight: 600;
}

.services-cta p {
    font-size: 1.1rem;
    color: var(--anthrazit);
    line-height: 1.6;
}

.services-cta strong {
    color: var(--dunkelrot);
    font-weight: 600;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--anthrazit);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    color: var(--gold);
    font-size: 1.2rem;
}

.feature span {
    color: var(--anthrazit);
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dunkelblau);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--dark-gray);
    font-weight: 500;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question {
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dunkelblau);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    position: relative;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(26, 35, 126, 0.05);
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--anthrazit);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-form-container h3,
.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--anthrazit);
}

.contact-form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 35, 126, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: 0 8px 20px rgba(26, 35, 126, 0.3);
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(26, 35, 126, 0.4);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--dunkelblau);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-group label {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    color: var(--dark-gray);
    transition: var(--transition);
    pointer-events: none;
    background: var(--white);
    padding: 0 0.5rem;
    font-weight: 500;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.9rem;
    color: var(--dunkelblau);
    font-weight: 500;
}

/* Select fields have label as static text above */
.form-group-select label {
    position: static;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--anthrazit);
    font-weight: 500;
    background: none;
    padding: 0;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 15px;
    transition: var(--transition);
}

.info-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: 0.2rem;
}

.info-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--anthrazit);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Map Container */
.map-container {
    margin-top: 4rem;
}

.map-container h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--anthrazit);
    text-align: center;
}

.map {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

/* Footer */
.footer {
    background: var(--anthrazit);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-section p {
    line-height: 1.6;
    color: #cccccc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #cccccc;
}

.footer-links {
    margin-top: 1rem;
}

.footer-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive Design */
/* Extra große Tablets und kleine Desktops */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: min(4.5rem, 9vw);
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* 2x2 Grid bleibt auch bei Tablet-Größe */
    .services-grid.main-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Labels bleiben auch bei Tablet nebeneinander */
    .service-area-labels {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 1.5rem auto 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
    
    /* Logo-Optimierungen für Tablets */
    .logo-text, .logo-addon {
        font-size: 1.8rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }

    /* Hero-Optimierungen */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 2rem;
        background-attachment: scroll;
        background-position: center 20%;
        background-size: cover;
        min-height: 80vh;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: min(4rem, 8vw);
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1.1rem;
        padding: 0;
        margin-bottom: 2.5rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content {
        padding: 0 50px 0 0;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }
    
    .btn {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        min-width: 180px;
    }

    /* Services-Optimierungen */
    .services {
        padding: 4rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Auf mobilen Geräten wird das main-grid einspaltrig */
    .services-grid.main-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
        max-width: 400px;
    }
    
    /* Auf mobilen Geräten werden Labels versteckt oder gestapelt */
    .service-area-labels {
        display: none; /* Labels sind auf Mobile nicht nötig */
    }
    
    /* Trennstrich wird auf Mobile ausgeblendet */
    .services-grid.main-grid::before {
        display: none;
    }
    
    .service-card {
        min-height: 300px;
        padding: 2rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    /* About-Optimierungen */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .stat {
        min-width: 120px;
    }

    /* Contact-Optimierungen */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-container {
        padding: 2rem;
        order: 1;
    }
    
    .contact-info {
        order: 2;
    }
    
    .info-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

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

/* Kleine Tablets und große Smartphones */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    /* Navigation für kleine Geräte */
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .logo-text, .logo-addon {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
        margin-top: -3px;
    }
    
    /* Hero für kleine Geräte */
    .hero {
        padding: 1.5rem 1rem;
        min-height: 70vh;
        align-items: center;
        justify-content: center;
        background-position: center 30%;
        background-size: cover;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: min(3rem, 7vw);
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem;
        font-size: 1rem;
    }
    
         /* Sections für kleine Geräte */
     .services, .about, .contact, .faq {
         padding: 3rem 0;
     }
     
     /* FAQ Mobile Optimierungen */
     .faq-container {
         padding-top: 1rem;
     }
     
     .faq-question {
         padding: 1rem 1.5rem;
         font-size: 1rem;
     }
     
     .faq-answer {
         padding: 0 1.5rem;
     }
     
     .faq-item.active .faq-answer {
         padding: 0 1.5rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Service Cards für kleine Geräte */
    .service-card {
        padding: 1.5rem;
        min-height: 280px;
    }
    
    .service-overlay {
        padding: 1rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .service-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* About Stats für kleine Geräte */
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        min-width: auto;
        padding: 1rem;
    }
    
    /* Contact Form für kleine Geräte */
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .info-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .info-item h4 {
        font-size: 1rem;
    }
    
    .info-item p {
        font-size: 0.9rem;
    }
}

/* Sehr kleine Smartphones */
@media (max-width: 480px) {
    .hero {
        background-position: center 40%;
        background-size: cover;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: min(2.8rem, 6vw);
    }
    
    .hero-content {
        padding: 0 30px 0 0;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .service-card {
        padding: 1.5rem 1rem;
        min-height: 260px;
    }
    
    .service-overlay {
        padding: 1rem;
    }
    
    .service-card h4 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }

    .about-stats {
        flex-direction: column;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .contact-form-container {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 90vh;
    }
}

/* Extra kleine Geräte */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    .logo-text, .logo-addon {
        font-size: 1.3rem;
    }
    
    .hero {
        background-position: center 50%;
        background-size: cover;
        background-attachment: scroll;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: min(2.5rem, 5.5vw);
    }
    
    .hero-content {
        padding: 0 20px 0 0;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 1rem;
        min-height: 240px;
    }
    
    .service-card h4 {
        font-size: 0.95rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .contact-form-container {
        padding: 0.8rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Modal Mobile Optimierungen */
@media (max-width: 768px) {
    .modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 90vh;
        border-radius: 10px;
        /* Verbesserte Scroll-Performance */
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }

    #modal-body {
        padding: 1.5rem;
        /* Scrolling innerhalb des Modal-Body ermöglichen */
        overflow-y: auto;
        max-height: calc(90vh - 100px);
    }

    .modal-header {
        height: 150px; /* Kleiner für mehr Platz für Inhalt */
    }

    .modal-header-overlay {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.3rem;
        line-height: 1.2;
    }

    .modal-text {
        padding: 1rem;
        /* Bessere Touch-Scrolling */
        -webkit-overflow-scrolling: touch;
    }

    .close {
        top: 5%;
        right: 5%;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        /* Sicherstellen dass es über dem scrollbaren Inhalt liegt */
        z-index: 3000;
    }

    .legal-content {
        padding: 1rem;
        /* Scrolling für lange Inhalte */
        max-height: calc(90vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

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

    .contact-details {
        padding: 1rem;
    }
}

/* Landscape-Orientierung für Smartphones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: min(3rem, 7vw);
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Touch-optimierte Interaktionen */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.about-text,
.contact-form-container,
.contact-info {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling and performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Form validation styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: var(--dunkelrot);
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #4caf50;
}

/* Success message */
.success-message {
    background: #4caf50;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-hover);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    position: fixed;
    top: 10%;
    right: max(calc((100% - 800px) / 2 - 60px), 20px);
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
    background: var(--dunkelrot);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
}

.close:hover,
.close:focus {
    background: var(--white);
    color: var(--dunkelrot);
    transform: scale(1.1);
    text-decoration: none;
}

#modal-body {
    padding: 3rem 2rem 2rem;
}

.modal-header {
    background: linear-gradient(135deg, var(--dunkelblau), var(--dunkelrot));
    color: var(--white);
    padding: 0;
    border-radius: 15px 15px 0 0;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.8), rgba(183, 28, 28, 0.8));
    z-index: 1;
}

.modal-header-overlay {
    position: relative;
    z-index: 2;
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-header .modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-text {
    line-height: 1.7;
    color: var(--anthrazit);
    font-size: 1.1rem;
}

.modal-text h3 {
    color: var(--dunkelblau);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.modal-text p {
    margin-bottom: 1.5rem;
}

.modal-text strong {
    color: var(--dunkelrot);
    font-weight: 600;
}

.modal-cta {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
}

.modal-cta h4 {
    color: var(--dunkelblau);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.modal-cta p {
    margin-bottom: 0;
}

.contact-link {
    color: var(--dunkelblau);
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.contact-link:hover {
    color: var(--dunkelrot);
    text-decoration: none;
}

/* Legal Modal Styles */
.legal-content {
    padding: 2rem;
    line-height: 1.6;
    color: var(--anthrazit);
}

.legal-content h2 {
    color: var(--dunkelblau);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.legal-content h3 {
    color: var(--dunkelblau);
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.legal-content h4 {
    color: var(--dunkelrot);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.contact-details {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.contact-details p {
    margin-bottom: 1rem;
    text-align: left;
}

.legal-content a {
    color: var(--dunkelblau);
    text-decoration: underline;
    word-wrap: break-word;
}

.legal-content a:hover {
    color: var(--dunkelrot);
}

.credits {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-style: italic;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Form Messages (Success & Error) */
.form-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border-left: 5px solid;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success-message {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: var(--white);
    border-left-color: #2e7d32;
}

.form-message.error-message {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: var(--white);
    border-left-color: #b71c1c;
}

.message-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.message-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.message-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.message-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

/* Loading button state */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile optimizations for form messages */
@media (max-width: 768px) {
    .form-message {
        padding: 1rem;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .message-icon {
        width: 40px;
        height: 40px;
    }
    
    .message-icon i {
        font-size: 1.2rem;
    }
    
    .message-content h4 {
        font-size: 1.1rem;
    }
    
    .message-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .form-message {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .message-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .message-icon i {
        font-size: 1.5rem;
    }
    
    .message-content {
        text-align: center;
    }
}

/* Animation improvements */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-message.show {
    animation: messageSlideIn 0.4s ease-out;
}

/* iOS-spezifische Hero-Optimierungen */
@supports (-webkit-overflow-scrolling: touch) {
    .hero {
        background-attachment: scroll !important;
        background-position: center center;
        background-size: cover;
    }
}

/* Weitere Mobile Hero-Optimierungen */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll !important;
        background-position: center 25% !important;
    }
}

@media (max-width: 576px) {
    .hero {
        background-position: center 35% !important;
    }
}

@media (max-width: 480px) {
    .hero {
        background-position: center 45% !important;
    }
}

@media (max-width: 320px) {
    .hero {
        background-position: center 55% !important;
    }
}

/* Landscape Mobile Optimierungen */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover;
    }
} 

/* Zusätzliche Mobile Modal Touch-Optimierungen */
@media (max-width: 768px) {
    /* Verhindere Hintergrund-Scrolling bei geöffnetem Modal */
    body.modal-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }
    
    .modal-content {
        /* Bessere Touch-Gesten Unterstützung */
        touch-action: pan-y;
        overscroll-behavior: contain;
    }
    
    .modal-text {
        /* Optimiere Textauswahl auf Touch-Geräten */
        -webkit-user-select: text;
        user-select: text;
    }
    
    /* Scrollbar für Mobile verstecken aber Funktionalität behalten */
    .modal-content::-webkit-scrollbar,
    #modal-body::-webkit-scrollbar,
    .legal-content::-webkit-scrollbar {
        width: 2px;
    }
    
    .modal-content::-webkit-scrollbar-track,
    #modal-body::-webkit-scrollbar-track,
    .legal-content::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .modal-content::-webkit-scrollbar-thumb,
    #modal-body::-webkit-scrollbar-thumb,
    .legal-content::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 1px;
    }
}

/* Extra kleine Mobile Geräte Modal */
@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    #modal-body {
        padding: 1rem;
        max-height: calc(95vh - 80px);
    }
    
    .modal-header {
        height: 120px;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-text {
        padding: 0.5rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .close {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        top: 3%;
        right: 3%;
    }
} 