/* ========== GOOGLE MAPS CUSTOM STYLING ========== */
#map {
    border-radius: 10px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#map:hover {
    box-shadow: 0 -15px 40px rgba(0,0,0,0.3);
}

/* Custom Info Window Styling */
.gm-style-iw-container {
    border-radius: 10px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

.gm-style-iw-content {
    border-radius: 10px !important;
    background: white !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.gm-style-iw-chr {
    display: none !important;
}

.gm-style-iw-tc::after {
    background: white !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

/* Map Controls Styling */
.gm-style .gm-style-mtc {
    background: rgba(255,255,255,0.9) !important;
    border-radius: 5px !important;
    backdrop-filter: blur(10px) !important;
}

.gm-style .gm-style-cc {
    background: rgba(255,255,255,0.9) !important;
    border-radius: 5px 5px 0 0 !important;
    backdrop-filter: blur(10px) !important;
}

/* Map Fallback Styling */
#map-fallback {
    border-radius: 10px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Loading Animation für Maps */
.map-loading {
    position: relative;
    min-height: 500px;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: slide 1s linear infinite;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slide {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

.map-loading::after {
    content: 'Chargement de la carte...';
    background: rgba(255,255,255,0.9);
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive Maps Styling */
@media (max-width: 768px) {
    #map {
        height: 300px !important;
        border-radius: 5px;
    }
    
    .gm-style-iw-container {
        max-width: 280px !important;
    }
    
    .map-hero-container {
        height: 300px !important;
        margin-left: calc(-50vw + 50%);
    }
    
    #map-fallback {
        height: 300px;
        padding: 1rem;
    }
    
    #map-fallback > div {
        padding: 1.5rem !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    #map {
        height: 250px !important;
    }
    
    .map-hero-container {
        height: 250px !important;
    }
    
    .gm-style-iw-container {
        max-width: 250px !important;
    }
}

/* Info Window Button Hover Effects */
.gm-style-iw-content a {
    transition: all 0.3s ease !important;
}

/* Map Type Control Custom Styling */
.gm-style .gm-style-mtc button {
    background: rgba(255,255,255,0.9) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 3px !important;
    color: #2c3e50 !important;
    font-weight: 500 !important;
}

.gm-style .gm-style-mtc button:hover {
    background: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

/* Zoom Control Custom Styling */
.gm-style .gm-bundled-control .gm-bundled-control-inner .gmnoprint button {
    background: rgba(255,255,255,0.9) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    color: #2c3e50 !important;
}

.gm-style .gm-bundled-control .gm-bundled-control-inner .gmnoprint button:hover {
    background: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

/* Street View Pegman Custom Styling */
.gm-style .gm-sv-label {
    background: rgba(255,255,255,0.9) !important;
    border-radius: 3px !important;
    backdrop-filter: blur(10px) !important;
}

/* Custom Marker Animation */
@keyframes markerBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.marker-bounce {
    animation: markerBounce 2s infinite;
}

/* Map Container Error State */
.map-error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 -10px 30px rgba(231,76,60,0.3);
}

.map-error h3 {
    color: white;
    margin-bottom: 1rem;
}

.map-error p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

/* Print Styles für Maps */
@media print {
    #map {
        display: none !important;
    }
    
    #map-fallback {
        display: block !important;
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}/**
 * D-4D Solution Company SARL - Vollständige CSS-Styles
 * Diese Datei enthält alle CSS-Regeln für die Website
 */

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.nav {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav a:hover, .nav a.active {
    background-color: rgba(255,255,255,0.2);
    color: #3498db;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-top: 80px;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/warehouse.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    margin: 0.5rem;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* ========== SECTIONS ========== */
.section {
    padding: 4rem 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== PRODUCT CATEGORIES ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.category-card:hover::before {
    left: 100%;
}

/* ========== SLIDESHOW ========== */
.slideshow-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.slideshow {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

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

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 1rem;
}

.slide-overlay h4 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 3;
}

.slide-prev,
.slide-next {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-prev:hover,
.slide-next:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.slideshow-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slide-dot:hover {
    transform: scale(1.2);
}

.slide-dot.active {
    background: white;
    transform: scale(1.3);
}

.category-info {
    padding: 1.5rem;
}

.category-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.category-info p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.view-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.view-more:hover {
    color: #2980b9;
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover .service-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

/* ========== ABOUT SECTION ========== */
.about {
    background-color: #f8f9fa;
}

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

.about-text h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ========== CONTACT SECTION ========== */
.contact {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

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

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border: 2px solid #e74c3c;
}

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

.submit-btn {
    background: #e74c3c;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #c0392b;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.contact-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: #3498db;
}

/* ========== MAP HERO SECTION ========== */
.map-hero-section {
    padding: 0;
    margin: 0;
    width: 100%;
}

.map-hero-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Informations-Bereich ÜBER der Map */
.map-hero-text {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.map-hero-text .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.map-hero-text h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.map-hero-text > p {
    font-size: 1.2rem;
    color: #bdc3c7;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Informationen in 3 Spalten */
.map-hero-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.map-info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: transform 0.3s, background 0.3s;
}

.map-info-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.map-icon {
    font-size: 1.5rem;
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-info-item strong {
    color: white;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.map-info-item p {
    color: #bdc3c7;
    margin: 0;
    line-height: 1.4;
}

.map-cta {
    display: inline-block;
    background: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.map-cta:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* Vollbreite Map UNTER den Informationen */
.map-hero-container {
    position: relative;
    width: 100vw; /* Vollbreite des Viewport */
    height: 500px;
    margin-left: calc(-50vw + 50%); /* Kompensiert Container-Begrenzungen */
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}

.map-hero-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-hero-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 968px) {
    .map-hero-text {
        padding: 3rem 0;
    }
    
    .map-hero-text h2 {
        font-size: 2.5rem;
    }
    
    .map-hero-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 600px;
    }
    
    .map-hero-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .map-hero-text {
        padding: 2rem 0;
    }
    
    .map-hero-text .container {
        padding: 0 1rem;
    }
    
    .map-hero-text h2 {
        font-size: 2rem;
    }
    
    .map-hero-text > p {
        font-size: 1rem;
    }
    
    .map-hero-container {
        height: 300px;
    }
    
    .map-hero-info {
        gap: 1rem;
    }
    
    .map-info-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .map-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.map-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.map-fallback {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Map */
@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
    
    .map-fallback {
        height: 300px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .map-section {
        margin-top: 2rem;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: #1a252f;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

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

.footer-section h4 {
    color: #3498db;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    margin-top: 2rem;
}

/* ========== PAGE SECTIONS (SPA) ========== */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* ========== MESSAGES ========== */
.success-message {
    background: #27ae60;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.error-message.form-error {
    color: #e74c3c;
    background: none;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* ========== ANIMATIONS & EFFECTS ========== */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* ========== BUTTONS ========== */
.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* ========== TOOLTIP SYSTEM ========== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2c3e50;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Focus-Styles für Tastaturnavigation */
.nav a:focus,
.cta-button:focus,
.submit-btn:focus,
.slide-prev:focus,
.slide-next:focus,
.slide-dot:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.m-0 { margin: 0; }
.p-0 { padding: 0; }
.mt-1 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.pt-1 { padding-top: 0.5rem; }
.pb-1 { padding-bottom: 0.5rem; }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #2c3e50;
        flex-direction: column;
        padding: 1rem;
    }

    .nav.active {
        display: flex;
    }

    .nav li {
        margin: 0.5rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }

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

    .section-title h2 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .container {
        padding: 0 1rem;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .header,
    .mobile-menu-btn,
    .slideshow-nav,
    .slideshow-controls,
    .cta-button {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .category-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    .category-card {
        background: #2c3e50;
        color: white;
    }
    
    .category-card .category-info h3 {
        color: white;
    }
    
    .category-card .category-info p {
        color: #bdc3c7;
    }
    
    .service-item {
        background: #34495e;
        color: white;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background: #34495e;
        color: white;
        border-color: #5a6c7d;
    }
}

/* ========== HIGH-DPI DISPLAY OPTIMIZATIONS ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .slideshow img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
.category-card,
.service-item,
.slideshow {
    will-change: transform;
}

/* ========== BREADCRUMB (für zukünftige Erweiterungen) ========== */
.breadcrumb {
    background: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ========== GRID LAYOUTS ========== */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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