/* ==========================================================================
   Modern CSS for mohammed-karouch.de - Professional & Clean
   ========================================================================== */

/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Luxury Gold & Black Color Palette */
    --primary: #000000;              /* Pure Black - Ultimate Luxury */
    --primary-light: #1a1a1a;        /* Charcoal Black */
    --secondary: #FFD700;            /* Pure Gold - Luxury Accent */
    --secondary-light: #FFF8DC;      /* Champagne Gold */
    --text: #000000;                 /* Black Text for Maximum Contrast */
    --text-light: #2a2a2a;           /* Dark Charcoal */
    --text-muted: #666666;           /* Sophisticated Gray */
    --background: #ffffff;           /* Pure White Background */
    --background-light: #fafafa;     /* Subtle Off-White */
    --border: #e6e6e6;               /* Light Gray Border */
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Luxury Shadows with Gold Accents */
    --shadow-sm: 0 1px 3px 0 rgba(255, 215, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(255, 215, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(255, 215, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: var(--space-sm);
    color: var(--text-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: rgba(255, 215, 0, 0.8);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Mobile Header Fix */
@media (max-width: 768px) {
    .header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        box-shadow: var(--shadow-md);
    }
}

.nav {
    padding: var(--space-sm) 0;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.linkedin-btn {
    display: flex;
    align-items: center;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

.linkedin-btn:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
    background:
        linear-gradient(
            135deg, 
            rgba(255, 255, 255, 0.2) 0%, 
            rgba(250, 250, 250, 0.1) 50%,
            rgba(255, 255, 255, 0.2) 100%
        ),
        url('../images/palace_marrakech.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-text h1 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    color: var(--text-light);
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-features span {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Image - Optimized & Professional */
.hero-image {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.profile-container {
    position: relative;
    border-radius: var(--radius-xl);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.profile-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.5);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Professional image enhancement */
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
    transition: all 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
    filter: brightness(1.1) contrast(1.15) saturate(1.15);
}

/* Sections */
.about, .services, .contact {
    padding: var(--space-2xl) 0;
}

.about {
    background: var(--background-light);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* About Grid */
.about h2, .services h2, .contact h2 {
    text-align: center;
    margin-bottom: var(--space-sm);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.about-item {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.about-item h3 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.service-item {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.service-item h3 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

/* Contact Section */
.contact {
    background: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

.contact-item {
    margin-bottom: var(--space-lg);
}

.contact-item h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.contact-item a {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary);
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

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

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover; /* Ändere zu cover für bessere Abdeckung */
        background-repeat: no-repeat;
        min-height: 100vh;
        position: relative;
    }
    
    /* Overlay für bessere Lesbarkeit auf mobile */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
        z-index: 1;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
        position: relative;
        z-index: 2;
    }
    
    .hero-text {
        padding: var(--space-lg);
        background: rgba(255, 255, 255, 0.05); /* Sehr transparenter Hintergrund */
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-xl);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
        color: var(--secondary);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .hero-text h2 {
        font-size: 2rem;
        color: var(--primary);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .hero-text p {
        color: var(--text-light);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }
    
    .hero-features span {
        color: var(--secondary);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        font-weight: 600;
    }
    
    .hero-image {
        order: -1;
        max-width: 300px;
    }
    
    .profile-container {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(5px);
        border: 2px solid rgba(255, 215, 0, 0.2);
    }
    
    .nav-menu {
        /* display: none; */ /* Cette ligne sera gérée par mobile-navigation-optimized.js */
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(80px + var(--space-lg)) 0 var(--space-lg);
        background-size: cover; /* Vollständige Abdeckung auch auf kleinen Bildschirmen */
        background-position: center center;
    }
    
    .hero-text {
        padding: var(--space-md);
        background: rgba(255, 255, 255, 0.03); /* Noch transparenter */
        backdrop-filter: blur(3px);
    }
    
    .hero-text h1 {
        font-size: 1.3rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .about, .services, .contact {
        padding: var(--space-lg) 0;
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

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

.hero-text,
.hero-image,
.about-item,
.service-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .contact-form {
        display: none;
    }
    
    .hero {
        padding: var(--space-lg) 0;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #1a1a1a;
    color: #FFD700;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.whatsapp-float:hover {
    background-color: #000000;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
    color: #FFD700;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Animation pour attirer l'attention */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Mobile WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 26px;
    }
}



/* ==========================================================================
   Contact Page Specific Styles
   ========================================================================== */

/* Contact Hero */
.contact-hero {
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    background: linear-gradient(135deg, var(--background-light) 0%, white 100%);
    text-align: center;
}

.contact-hero-content h1 {
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.contact-hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.contact-hero-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Main Layout */
.contact-main {
    padding: var(--space-2xl) 0;
    background: white;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: start;
}

/* Contact Info Section */
.contact-info-section h2 {
    color: var(--primary);
    margin-bottom: var(--space-lg);
    text-align: left;
}

.contact-methods {
    margin-bottom: var(--space-xl);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    background: var(--background-light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.contact-method.featured {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-method.featured:hover {
    transform: scale(1.02) translateY(-3px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-icon.whatsapp {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-icon.email {
    background: var(--secondary);
    color: white;
}

.contact-icon.phone {
    background: var(--primary);
    color: white;
}

.contact-details h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.25rem;
}

.contact-method.featured .contact-details h3 {
    color: white;
}

.contact-link {
    font-size: 1.125rem;
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-xs);
}

.contact-method.featured .contact-link {
    color: white;
}

.contact-details p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.contact-method.featured .contact-details p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-note {
    background: var(--primary);
    color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
}

.contact-note h3 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.contact-note p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Contact Form Section */
.contact-form-section {
    background: var(--background-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.contact-form-container {
    padding: var(--space-2xl);
}

.contact-form-container h2 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
    text-align: left;
}

.form-description {
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    font-size: 1.125rem;
}

/* Elegant Contact Form */
.contact-form-elegant {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Submit Button */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--space-md);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-privacy {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.form-privacy a {
    color: var(--primary);
    text-decoration: underline;
}

/* Active Navigation State */
.nav-menu a.active {
    color: var(--secondary);
    font-weight: 600;
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .contact-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.25rem;
    }
    
    .contact-form-container {
        padding: var(--space-lg);
    }
    
    .contact-form-elegant {
        padding: var(--space-lg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-method {
        padding: var(--space-md);
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: calc(80px + var(--space-lg)) 0 var(--space-lg);
    }
    
    .contact-main {
        padding: var(--space-lg) 0;
    }
    
    .contact-hero-content h1 {
        font-size: 2rem;
    }
    
    .contact-form-container {
        padding: var(--space-md);
    }
    
    .contact-form-elegant {
        padding: var(--space-md);
    }
}


/* ==========================================================================
   Services Page Specific Styles
   ========================================================================== */

/* Services Hero */
.services-hero {
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    background: linear-gradient(135deg, var(--background-light) 0%, white 100%);
    text-align: center;
}

.services-hero-content h1 {
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.services-hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.services-hero-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Services Main */
.services-main {
    padding: var(--space-2xl) 0;
    background: white;
}

.services-overview {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.services-overview h2 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.services-intro {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Detailed Services Grid */
.services-detailed-grid {
    display: grid;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.service-detailed {
    background: var(--background-light);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border-left: 6px solid var(--secondary);
    transition: all 0.3s ease;
}

.service-detailed:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.service-icon-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    margin-bottom: var(--space-lg);
}

.service-detailed h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.service-detailed p {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.service-detailed ul {
    margin: var(--space-sm) 0 var(--space-md) var(--space-md);
    color: var(--text-light);
}

.service-detailed li {
    margin-bottom: var(--space-xs);
    line-height: 1.5;
}

.service-detailed p:last-child {
    font-weight: 600;
    color: var(--secondary);
    margin-top: var(--space-md);
}

/* Why Choose Section */
.why-choose-section {
    background: var(--primary);
    color: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-2xl);
}

.why-choose-section h2 {
    color: var(--secondary);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.why-item {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.why-item h3 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.why-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Services CTA */
.services-cta {
    text-align: center;
    background: var(--background-light);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
}

.services-cta h2 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.services-cta p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer Text White Override */
.footer {
    color: white;
}

.footer h3,
.footer h4 {
    color: var(--secondary);
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
    color: var(--secondary);
}

/* Responsive Design for Services */
@media (max-width: 768px) {
    .services-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .services-hero-subtitle {
        font-size: 1.25rem;
    }
    
    .service-detailed {
        padding: var(--space-lg);
    }
    
    .service-icon-large {
        width: 60px;
        height: 60px;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: calc(80px + var(--space-lg)) 0 var(--space-lg);
    }
    
    .services-main {
        padding: var(--space-lg) 0;
    }
    
    .services-hero-content h1 {
        font-size: 2rem;
    }
    
    .service-detailed {
        padding: var(--space-md);
    }
    
    .why-choose-section {
        padding: var(--space-lg);
    }
    
    .services-cta {
        padding: var(--space-lg);
    }
}


/* ==========================================================================
   Gallery Page Specific Styles - Mobile-First & SEO Optimized
   ========================================================================== */

/* Gallery Hero */
.gallery-hero {
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    background: linear-gradient(135deg, var(--background-light) 0%, white 100%);
    text-align: center;
}

.gallery-hero-content h1 {
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.gallery-hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.gallery-disclaimer {
    background: rgba(var(--secondary-rgb), 0.1);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--secondary);
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.gallery-disclaimer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Gallery Main */
.gallery-main {
    padding: var(--space-2xl) 0;
    background: white;
}

.gallery-section {
    margin-bottom: var(--space-3xl);
}

.gallery-section h2 {
    color: var(--primary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--space-md);
}

.gallery-section-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.6;
}

/* Gallery Grid - Mobile-First */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* Tablet */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

/* Gallery Items */
.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: var(--space-lg);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-overlay h3 {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Gallery Info Section */
.gallery-info {
    background: var(--background-light);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-2xl);
}

.gallery-info h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.gallery-info-content {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-info-text h3 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-lg);
}

.gallery-info-text h3:first-child {
    margin-top: 0;
}

.gallery-info-text p {
    line-height: 1.6;
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

/* Gallery CTA */
.gallery-cta {
    text-align: center;
    background: var(--primary);
    color: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
}

.gallery-cta h2 {
    color: var(--secondary);
    margin-bottom: var(--space-md);
}

.gallery-cta p {
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .gallery-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .gallery-hero-subtitle {
        font-size: 1.25rem;
    }
    
    .gallery-disclaimer {
        padding: var(--space-md);
        margin: 0 var(--space-sm);
    }
    
    .gallery-section h2 {
        font-size: 2rem;
    }
    
    .gallery-section-intro {
        font-size: 1rem;
        margin-bottom: var(--space-lg);
    }
    
    .gallery-grid {
        gap: var(--space-md);
    }
    
    .gallery-overlay {
        padding: var(--space-md);
    }
    
    .gallery-info {
        padding: var(--space-lg);
        margin: 0 var(--space-sm) var(--space-lg);
    }
    
    .gallery-cta {
        padding: var(--space-lg);
        margin: 0 var(--space-sm);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        padding: calc(80px + var(--space-lg)) 0 var(--space-lg);
    }
    
    .gallery-main {
        padding: var(--space-lg) 0;
    }
    
    .gallery-hero-content h1 {
        font-size: 2rem;
    }
    
    .gallery-section h2 {
        font-size: 1.75rem;
    }
    
    .gallery-disclaimer {
        padding: var(--space-sm);
    }
    
    .gallery-disclaimer p {
        font-size: 0.9rem;
    }
    
    .gallery-info {
        padding: var(--space-md);
    }
    
    .gallery-cta {
        padding: var(--space-md);
    }
}

/* Performance Optimizations */
.gallery-item img {
    will-change: transform;
}

.gallery-overlay {
    will-change: transform;
}

/* SEO Optimizations */
.gallery-item img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

.gallery-item img[loading="lazy"]:not([src]) {
    opacity: 0;
}

/* Accessibility Improvements */
.gallery-item:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.gallery-item:focus .gallery-overlay {
    transform: translateY(0);
}

/* Print Styles */
@media print {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .gallery-item {
        break-inside: avoid;
    }
    
    .gallery-overlay {
        position: static;
        transform: none;
        background: var(--background-light);
        color: var(--text-dark);
        padding: var(--space-sm);
    }
}


/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--secondary);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: var(--space-md);
    padding: 0 var(--space-md);
}

.lightbox-caption h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 500;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--secondary);
    transform: scale(1.1);
}

/* Lightbox Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Lightbox Optimizations */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox img {
        max-height: 70vh;
    }
    
    .lightbox-close {
        top: -30px;
        font-size: 30px;
    }
    
    .lightbox-nav {
        padding: 0 var(--space-sm);
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .lightbox-caption h3 {
        font-size: 1.2rem;
    }
}


/* Ratgeber Page Styles */
.ratgeber-page {
    padding: var(--space-xl) 0;
    background: var(--background-light);
}

.ratgeber-hero {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-xl) 0;
    background: var(--background-light);
    color: var(--text);
    border-radius: 12px;
}

.ratgeber-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    font-family: var(--font-heading);
    color: var(--primary);
}

.ratgeber-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.ratgeber-content {
    max-width: 1200px;
    margin: 0 auto;
}

.ratgeber-section {
    margin-bottom: var(--space-xl);
    background: white;
    padding: var(--space-xl);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ratgeber-section h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
    border-bottom: 3px solid var(--secondary);
    padding-bottom: var(--space-sm);
}

.ratgeber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.ratgeber-item {
    background: var(--background-light);
    padding: var(--space-lg);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

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

.ratgeber-item h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.ratgeber-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* FAQ Styles */
.faq-container {
    margin-top: var(--space-lg);
}

.faq-item {
    background: var(--background-light);
    padding: var(--space-lg);
    border-radius: 8px;
    margin-bottom: var(--space-md);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.ratgeber-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    padding: var(--space-xl);
    border-radius: 12px;
    margin-top: var(--space-xl);
}

.ratgeber-cta h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    border: none;
    padding: 0;
    color: white;
}

.ratgeber-cta p {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.ratgeber-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1.1rem;
    padding: var(--space-md) var(--space-lg);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .ratgeber-hero h1 {
        font-size: 2.2rem;
    }
    
    .ratgeber-subtitle {
        font-size: 1rem;
    }
    
    .ratgeber-section {
        padding: var(--space-lg);
    }
    
    .ratgeber-section h2 {
        font-size: 1.8rem;
    }
    
    .ratgeber-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .ratgeber-item {
        padding: var(--space-md);
    }
    
    .faq-item {
        padding: var(--space-md);
    }
    
    .ratgeber-cta {
        padding: var(--space-lg);
    }
    
    .ratgeber-cta h2 {
        font-size: 1.6rem;
    }
}

/* Print Styles */
@media print {
    .ratgeber-hero {
        background: none !important;
        color: var(--text-dark) !important;
    }
    
    .ratgeber-cta {
        background: none !important;
        color: var(--text-dark) !important;
        border: 2px solid var(--primary);
    }
    
    .ratgeber-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* Weiterlesen Button Styles */
.read-more-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: var(--space-md);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.read-more-btn.expanded {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.read-more-btn:after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more-btn.expanded:after {
    transform: rotate(180deg);
}

/* Full Text Styles */
.full-text {
    margin-top: var(--space-md);
    animation: fadeIn 0.3s ease;
}

.full-text ul {
    margin: var(--space-sm) 0;
    padding-left: var(--space-lg);
}

.full-text li {
    margin-bottom: var(--space-xs);
    color: var(--text-light);
}

.full-text strong {
    color: var(--primary);
    font-weight: 600;
}

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

/* Mobile Optimizations */
@media (max-width: 768px) {
    .read-more-btn {
        font-size: 0.85rem;
        padding: var(--space-xs) var(--space-sm);
    }
}


/* Referenzen Page Styles */
.referenzen-page {
    padding: var(--space-xl) 0;
    background: var(--background-light);
}

.referenzen-hero {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-xl) 0;
    background: var(--background-light);
    color: var(--text);
    border-radius: 12px;
}

.referenzen-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    font-family: var(--font-heading);
    color: var(--primary);
}

.referenzen-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--primary);
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.referenzen-content {
    max-width: 1200px;
    margin: 0 auto;
}

.referenzen-section {
    margin-bottom: var(--space-xl);
    background: white;
    padding: var(--space-xl);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.referenzen-section h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
    border-bottom: 3px solid var(--secondary);
    padding-bottom: var(--space-sm);
}

.referenzen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.referenzen-item {
    background: var(--background-light);
    padding: var(--space-lg);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

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

.referenzen-item h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

/* Testimonials Styles */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.testimonial-item {
    background: var(--background-light);
    padding: var(--space-lg);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-item:before {
    content: '"';
    position: absolute;
    top: -10px;
    left: var(--space-lg);
    font-size: 4rem;
    color: var(--secondary);
    font-family: serif;
    line-height: 1;
}

.testimonial-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: var(--space-md);
}

.testimonial-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial-author {
    border-top: 1px solid #e0e0e0;
    padding-top: var(--space-md);
}

.testimonial-author strong {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Awards Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.award-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--space-lg);
    border-radius: 12px;
    border: 2px solid var(--secondary);
    transition: all 0.3s ease;
    position: relative;
}

.award-item:before {
    content: '🏆';
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 2rem;
}

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

.award-item h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-weight: 600;
    padding-right: var(--space-xl);
}

/* CTA Section */
.referenzen-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    padding: var(--space-xl);
    border-radius: 12px;
    margin-top: var(--space-xl);
}

.referenzen-cta h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    border: none;
    padding: 0;
    color: white;
}

.referenzen-cta p {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.referenzen-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1.1rem;
    padding: var(--space-md) var(--space-lg);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .referenzen-hero h1 {
        font-size: 2.2rem;
    }
    
    .referenzen-subtitle {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .referenzen-section {
        padding: var(--space-lg);
    }
    
    .referenzen-section h2 {
        font-size: 1.8rem;
    }
    
    .referenzen-grid,
    .testimonials-grid,
    .awards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .referenzen-item,
    .testimonial-item,
    .award-item {
        padding: var(--space-md);
    }
    
    .referenzen-cta {
        padding: var(--space-lg);
    }
    
    .referenzen-cta h2 {
        font-size: 1.6rem;
    }
}

/* Print Styles */
@media print {
    .referenzen-hero {
        background: none !important;
        color: var(--text-dark) !important;
    }
    
    .referenzen-cta {
        background: none !important;
        color: var(--text-dark) !important;
        border: 2px solid var(--primary);
    }
    
    .referenzen-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .stat-item {
        background: none !important;
        border: 1px solid #ddd;
    }
}


/* FAQ Page Styles */
.faq-page {
    padding: var(--space-xl) 0;
    background: var(--background-light);
}

.faq-hero {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-xl) 0;
    background: var(--background-light);
    color: var(--text);
    border-radius: 12px;
}

.faq-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    font-family: var(--font-heading);
    color: var(--primary);
}

.faq-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-xl);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-box svg {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.faq-content {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-section {
    margin-bottom: var(--space-xl);
    background: white;
    padding: var(--space-xl);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
    border-bottom: 3px solid var(--secondary);
    padding-bottom: var(--space-sm);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.faq-item {
    background: var(--background-light);
    padding: var(--space-lg);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
    position: relative;
}

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

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-weight: 600;
    line-height: 1.4;
}

.faq-item h3:before {
    content: '❓';
    margin-right: var(--space-xs);
    font-size: 1rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 var(--space-md) 0;
}

.faq-item ul {
    margin: var(--space-sm) 0;
    padding-left: var(--space-lg);
}

.faq-item li {
    margin-bottom: var(--space-xs);
    color: var(--text-light);
}

.faq-item strong {
    color: var(--primary);
    font-weight: 600;
}

/* FAQ Categories */
.faq-item[data-category="rechtlich"] {
    border-left-color: #e74c3c;
}

.faq-item[data-category="finanzen"] {
    border-left-color: #f39c12;
}

.faq-item[data-category="praktisch"] {
    border-left-color: #27ae60;
}

.faq-item[data-category="markt"] {
    border-left-color: #3498db;
}

/* CTA Section */
.faq-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    padding: var(--space-xl);
    border-radius: 12px;
    margin-top: var(--space-xl);
}

.faq-cta h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    border: none;
    padding: 0;
    color: white;
}

.faq-cta p {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.faq-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1.1rem;
    padding: var(--space-md) var(--space-lg);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 2.2rem;
    }
    
    .faq-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        margin: 0 var(--space-md);
    }
    
    .faq-section {
        padding: var(--space-lg);
    }
    
    .faq-section h2 {
        font-size: 1.8rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .faq-item {
        padding: var(--space-md);
    }
    
    .faq-item h3 {
        font-size: 1.2rem;
    }
    
    .faq-cta {
        padding: var(--space-lg);
    }
    
    .faq-cta h2 {
        font-size: 1.6rem;
    }
}

/* Search Results Highlighting */
.faq-item.search-highlight {
    border-left-color: #ffeb3b;
    background: #fffde7;
}

/* Print Styles */
@media print {
    .faq-hero {
        background: none !important;
        color: var(--text-dark) !important;
    }
    
    .search-box {
        display: none;
    }
    
    .faq-cta {
        background: none !important;
        color: var(--text-dark) !important;
        border: 2px solid var(--primary);
    }
    
    .faq-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .read-more-btn {
        display: none;
    }
    
    .full-text {
        display: block !important;
    }
}


/* Thank You Page Styles */
.thank-you-page {
    padding: var(--space-xl) 0;
    background: var(--background-light);
    min-height: 70vh;
}

.thank-you-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-content {
    background: white;
    padding: var(--space-xl);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.success-icon {
    color: #27ae60;
    margin-bottom: var(--space-lg);
}

.thank-you-hero h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-family: var(--font-heading);
}

.thank-you-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.next-steps {
    margin: var(--space-xl) 0;
}

.next-steps h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.step-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--background-light);
    border-radius: 8px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--space-md);
}

.step-item h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.step-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-alternatives {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--background-light);
    border-radius: 8px;
}

.contact-alternatives h3 {
    color: var(--primary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.contact-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.back-to-site {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid #e0e0e0;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Mobile Optimizations */
@media (max-width: 768px) {
    .thank-you-hero h1 {
        font-size: 2rem;
    }
    
    .thank-you-content {
        padding: var(--space-lg);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons .btn {
        width: 200px;
        justify-content: center;
    }
}


/* Formular Sicherheits-Styles */
.contact-form-elegant {
    position: relative;
}

.contact-form-elegant::before {
    content: '🔒';
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 1.2rem;
    color: #27ae60;
}

.form-security-note {
    background: #e8f5e8;
    border: 1px solid #27ae60;
    border-radius: 6px;
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: #2d5a2d;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.form-security-note svg {
    color: #27ae60;
    flex-shrink: 0;
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* SSL/Sicherheits-Indikator */
.ssl-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: #27ae60;
    margin-top: var(--space-xs);
}

.ssl-indicator svg {
    width: 16px;
    height: 16px;
}


/* Success Message Styles */
.success-message {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: 8px;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    animation: slideDown 0.5s ease-out;
}

.success-message svg {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 4px;
}

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

/* Form Loading State */
.contact-form-elegant.loading .btn-submit {
    background: #95a5a6;
    cursor: not-allowed;
    pointer-events: none;
}

.contact-form-elegant.loading .btn-submit span {
    opacity: 0.7;
}

.contact-form-elegant.loading .btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    right: var(--space-md);
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


/* Mobile Navigation Styles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        order: 2;
    }
    
    .logo {
        order: 1;
    }
    
    .nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 20px 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        margin: 0;
        list-style: none;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
        margin-top: var(--space-lg);
        padding: 0 var(--space-lg);
    }
    
    .nav-menu a {
        display: block;
        padding: var(--space-md) var(--space-lg);
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background: var(--background-light);
        border-left-color: var(--primary);
        color: var(--primary);
    }
    
    .linkedin-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: var(--space-xs);
        background: var(--primary) !important;
        color: white !important;
        border-radius: 6px;
        margin: var(--space-sm);
        border-left: none !important;
    }
    
    .linkedin-btn:hover {
        background: var(--secondary) !important;
        border-left: none !important;
    }
    
    /* Mobile Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Header adjustments for mobile */
    .header {
        position: relative;
        z-index: 1002;
    }
}

/* Mobile Form Optimizations */
@media (max-width: 768px) {
    .success-message {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
        position: relative;
        z-index: 10;
    }
    
    .success-message svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-form-elegant {
        padding: var(--space-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form-container {
        padding: var(--space-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-row {
        flex-direction: column;
        width: 100%;
    }
    
    .form-group {
        margin-bottom: var(--space-md);
        width: 100%;
    }
    
    .form-group label {
        font-size: 0.9rem;
        display: block;
        margin-bottom: var(--space-xs);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: var(--space-sm);
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .btn-submit {
        width: 100%;
        padding: var(--space-md);
        font-size: 1rem;
        margin-top: var(--space-md);
    }
    
    .form-security-note {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
        margin-bottom: var(--space-md);
    }
    
    .ssl-indicator {
        font-size: 0.7rem;
        justify-content: center;
        margin-top: var(--space-sm);
    }
    
    /* Contact page mobile layout */
    .contact-content {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .contact-info,
    .contact-form-container {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero {
        padding: calc(var(--space-2xl) + 80px) 0 var(--space-lg);
        text-align: center;
    }
    
    .hero-content {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        max-width: 200px;
        margin: var(--space-lg) auto 0 auto; /* Ajout d'une marge supérieure */
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}



/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -999px;
    left: -999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    background-color: var(--secondary);
    color: white;
    padding: var(--space-sm);
    margin: var(--space-sm);
    text-decoration: none;
    border-radius: var(--radius-md);
    text-align: center;
}



/* Fix for mobile wobbling */
body {
    overflow-x: hidden;
}



/* Success and Error Messages */
.success-message {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message svg {
    fill: #155724;
}

.error-message {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    border: 1px solid #f5c6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message svg {
    fill: #721c24;
}




.success-message {
    background-color: #e6ffed; /* Light green background */
    color: #2d3748; /* Dark text for contrast */
    border: 1px solid #38a169; /* Green border */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.success-message svg {
    color: #38a169; /* Green icon */
    min-width: 24px;
    min-height: 24px;
}

.error-message {
    background-color: #fff5f5; /* Light red background */
    color: #2d3748; /* Dark text for contrast */
    border: 1px solid #e53e3e; /* Red border */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}


input:invalid,
textarea:invalid,
select:invalid {
  border: 1px solid #ccc !important;
  box-shadow: none !important;
  outline: none !important;
}

input:invalid:focus,
textarea:invalid:focus,
select:invalid:focus {
  border-color: #666 !important;
  box-shadow: none !important;
  outline: none !important;
}
/* Verhindert rote Rahmen bei Pflichtfeldern */
input:invalid,
textarea:invalid,
select:invalid {
  box-shadow: none !important;
  border: 1px solid #ccc !important;
}


/* Entferne rote Validierungsfelder */
input:invalid, textarea:invalid, select:invalid {
    border-color: #e2e8f0 !important;
    background-color: white !important;
    box-shadow: none !important;
}

input[style*="border"], textarea[style*="border"], select[style*="border"] {
    border-color: #e2e8f0 !important;
}

/* Verstecke alle roten Validierungsboxen */
.error-message, .validation-error, [style*="background-color: #f8d7da"], [style*="background-color: #fff5f5"] {
    display: none !important;
}

/* Überschreibe alle roten Rahmen */
*[style*="border-color: red"], *[style*="border: red"], *[style*="border-color: #ff"], *[style*="border-color: #f00"] {
    border-color: #e2e8f0 !important;
}


/* Language Switcher Styles - Enhanced & Fixed */
.language-switcher {
    position: relative;
    margin-left: auto;
    margin-right: var(--space-md);
    z-index: 1001;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.language-btn:hover {
    background-color: var(--background-light);
    border-color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.language-btn:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.flag-icon {
    font-size: 1.1rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.lang-text {
    font-weight: 600;
    letter-spacing: 0.025em;
    color: var(--primary);
}

.chevron {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.language-btn[aria-expanded="true"] {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.language-btn[aria-expanded="true"] .lang-text {
    color: white;
}

.language-btn[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
    color: white;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.language-btn[aria-expanded="true"] + .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: var(--background-light);
    color: var(--primary);
    transform: translateX(4px);
}

.language-option.active {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

.language-option.active:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateX(0);
}

.language-option .flag-icon {
    font-size: 1.2rem;
}

/* Mobile Language Switcher - Improved */
@media (max-width: 768px) {
    .language-switcher {
        order: 2;
        margin-left: var(--space-sm);
        margin-right: 0;
    }
    
    .language-btn {
        padding: var(--space-xs) var(--space-sm);
        min-width: 60px;
        justify-content: center;
    }
    
    .lang-text {
        font-size: 0.75rem;
    }
    
    .chevron {
        width: 10px;
        height: 10px;
    }
    
    .language-dropdown {
        right: 0;
        left: auto;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        margin-left: var(--space-xs);
    }
    
    .language-btn {
        padding: var(--space-xs);
        min-width: 50px;
    }
    
    .lang-text {
        display: none;
    }
    
    .language-dropdown {
        min-width: 120px;
    }
}

/* Header Navigation Updates - Strategic Positioning */
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Language Switcher Styles - Enhanced & Fixed */
.language-switcher {
    position: relative;
    z-index: 1001;
    margin-left: var(--space-md);
}

.language-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.language-btn:hover {
    background-color: var(--background-light);
    border-color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.language-btn:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.flag-icon {
    font-size: 1.1rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.lang-text {
    font-weight: 600;
    letter-spacing: 0.025em;
    color: var(--primary);
}

.chevron {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.language-btn[aria-expanded="true"] {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.language-btn[aria-expanded="true"] .lang-text {
    color: white;
}

.language-btn[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
    color: white;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.language-btn[aria-expanded="true"] + .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: var(--background-light);
    color: var(--primary);
    transform: translateX(4px);
}

.language-option.active {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

.language-option.active:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateX(0);
}

.language-option .flag-icon {
    font-size: 1.2rem;
}

/* Mobile Navigation - Enhanced */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Responsive Design - Improved */
@media (max-width: 768px) {
    .nav-right {
        gap: var(--space-sm);
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 3;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 0;
        padding: var(--space-lg) 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: var(--space-md) var(--space-lg);
        font-size: 1.1rem;
    }
    
    .language-switcher {
        order: 2;
        margin-left: auto;
        margin-right: var(--space-sm);
    }
    
    .language-btn {
        padding: var(--space-xs) var(--space-sm);
        min-width: 60px;
        justify-content: center;
    }
    
    .lang-text {
        font-size: 0.75rem;
    }
    
    .chevron {
        width: 10px;
        height: 10px;
    }
    
    .language-dropdown {
        right: 0;
        left: auto;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        margin-right: var(--space-xs);
    }
    
    .language-btn {
        padding: var(--space-xs);
        min-width: 50px;
    }
    
    .lang-text {
        display: none;
    }
    
    .language-dropdown {
        min-width: 120px;
    }
}
