/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2C3E50;
    --accent-color: #E74C3C;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Typography */
h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.cta-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.call-button {
    background-color: var(--primary-color);
    margin-top: 1rem;
}

.call-button:hover {
    background-color: #1a252f;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
    animation: hero-overlay-fade 1.2s ease-out forwards;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0;
    text-align: center;
    color: var(--white);
    position: relative;
    top: -15vh;
    z-index: 2;
}

.hero-logo {
    width: auto;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    opacity: 0;
    transform: scale(0.8);
    animation: hero-logo-zoom-in 0.8s ease-out 0.5s forwards;
}

.hero-text-content {
    transform: translateY(-10vh);
    opacity: 0;
    animation: hero-content-slide-up 1s ease-out 0.8s forwards;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

/* Service Sections */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Zentrierter Wrapper für Services 7 und 8 */
.services-centered-wrapper {
    grid-column: 1 / -1; /* Nimmt die ganze Breite des Grids ein */
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .services-centered-wrapper {
        grid-template-columns: repeat(2, 1fr);
        /* Zentriert: 2 Spalten Breite + 1 Gap = perfekt zentriert im 3-Spalten-Grid */
        /* Berechnung: (Container-Breite - 2 Gaps) / 3 Spalten * 2 Spalten + 1 Gap */
        max-width: calc((100% - 4rem) / 3 * 2 + 2rem);
        margin: 0 auto;
        gap: 2rem;
    }
}

.service {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    transition: var(--transition);
}

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

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.service-image {
    width: 100%;
    max-width: 200px;
}

.service-icon {
    width: 100%;
    height: auto;
    color: var(--primary-color);
    transition: var(--transition);
}

/* Service Slideshow Styles */
.service-slideshow {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: var(--light-bg);
    box-shadow: var(--shadow);
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.8);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    opacity: 0;
}

.service-slideshow:hover .slideshow-btn {
    opacity: 1;
}

.slideshow-btn:hover {
    background: rgba(44, 62, 80, 1);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slideshow-prev {
    left: 10px;
}

.slideshow-next {
    right: 10px;
}

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

.slideshow-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slideshow-indicator.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.2);
}

.slideshow-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Fallback für leere Diashows */
.slides-wrapper:empty::before {
    content: "Bilder hinzufügen";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

/* Responsive Anpassungen für Diashows */
@media (max-width: 768px) {
    .service-slideshow {
        max-width: 100%;
    }
    
    .slideshow-btn {
        opacity: 1;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .slideshow-prev {
        left: 5px;
    }
    
    .slideshow-next {
        right: 5px;
    }
    
    .slideshow-indicators {
        bottom: 8px;
    }
    
    .slideshow-indicator {
        width: 6px;
        height: 6px;
    }
}

/* Service Icon Hover Animations */
.service:hover .service-icon {
    transform: scale(1.1);
}

/* Service 1 - Car Polish Icon Animation */
.service:nth-child(1):hover .service-icon circle {
    animation: polish-rotate 2s ease-in-out infinite;
}

.service:nth-child(1):hover .service-icon path {
    animation: polish-shine 1.5s ease-in-out infinite alternate;
}

@keyframes polish-rotate {
    0%, 100% { transform-origin: center; transform: rotate(0deg); }
    50% { transform-origin: center; transform: rotate(180deg); }
}

@keyframes polish-shine {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Service 2 - Car Repair Icon Animation */
.service:nth-child(2):hover .service-icon {
    animation: car-bounce 0.6s ease-in-out infinite alternate;
}

@keyframes car-bounce {
    0% { transform: scale(1.1) translateY(0); }
    100% { transform: scale(1.1) translateY(-3px); }
}

/* Service 3 - Dent Repair Icon Animation */
.service:nth-child(3):hover .service-icon circle {
    animation: dent-disappear 2s ease-in-out infinite;
}

@keyframes dent-disappear {
    0%, 20% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.5); }
    80%, 100% { opacity: 1; transform: scale(1); }
}

/* Service 4 - Smart Repair Icon Animation */
.service:nth-child(4):hover .service-icon path {
    animation: cross-rotate 1.5s ease-in-out infinite;
}

@keyframes cross-rotate {
    0%, 100% { transform-origin: center; transform: rotate(0deg); }
    50% { transform-origin: center; transform: rotate(90deg); }
}

/* Service 5 - Paint Spray Icon Animation */
.service:nth-child(5):hover .service-icon path:first-of-type {
    animation: spray-wave-1 1.2s ease-in-out infinite;
}

.service:nth-child(5):hover .service-icon path:nth-of-type(2) {
    animation: spray-wave-2 1.2s ease-in-out infinite 0.2s;
}

@keyframes spray-wave-1 {
    0%, 100% { opacity: 0.7; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes spray-wave-2 {
    0%, 100% { opacity: 0.7; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(2px); }
}

/* Service 6 - Quality Check Icon Animation */
.service:nth-child(6):hover .service-icon path {
    animation: checkmark-draw 2s ease-in-out infinite;
}

@keyframes checkmark-draw {
    0% { 
        stroke-dasharray: 0, 100;
        stroke-dashoffset: 0;
    }
    50% { 
        stroke-dasharray: 50, 100;
        stroke-dashoffset: -25;
    }
    100% { 
        stroke-dasharray: 0, 100;
        stroke-dashoffset: -50;
    }
}

/* Hero Section Loading Animations */
@keyframes hero-overlay-fade {
    0% { 
        background: rgba(0, 0, 0, 1);
    }
    100% { 
        background: rgba(0, 0, 0, 0);
    }
}

@keyframes hero-logo-zoom-in {
    0% { 
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes hero-content-slide-up {
    0% { 
        opacity: 0;
        transform: translateY(-8vh);
    }
    100% { 
        opacity: 1;
        transform: translateY(-10vh);
    }
}

.service-text {
    flex: 1;
}

.service-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-text p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    padding: 2rem 1.5rem 4rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

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

.cta-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    text-align: left;
}

.reviews-section,
.cta-maps {
    flex: 1;
    min-width: 0; /* Wichtig für Flexbox, damit Content nicht die Breite sprengt */
    max-width: 100%;
}

.reviews-section h3,
.cta-maps h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Google Maps Styling */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

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

.location-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.location-content {
    flex: 1;
    text-align: left;
}

.social-buttons {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.location-info p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.phone-link,
.email-link {
    color: var(--white);
    text-decoration: underline;
    transition: var(--transition);
}

.phone-link:hover,
.email-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .cta-container {
        flex-direction: row;
        gap: 4rem;
        align-items: flex-start;
    }
    
    .reviews-section {
        flex: 1 1 50%;
        min-width: 0;
        max-width: 50%;
    }
    
    .cta-maps {
        flex: 1 1 50%;
        min-width: 0;
        max-width: 50%;
        order: 1; /* Maps on the left */
    }
    
    .cta-form {
        order: 2; /* Form on the right */
    }
    
    .reviews-section h3,
    .cta-maps h3 {
        text-align: left;
    }
    
    .location-info {
        text-align: left;
    }
}

/* Large Desktop Optimization */
@media (min-width: 1024px) {
    .cta-container {
        gap: 5rem;
    }
    
    .map-container iframe {
        height: 450px;
    }
}

/* Trust Elements */
.trust-elements {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.rating {
    font-size: 1.2rem;
}

.stars {
    color: #f1c40f;
    letter-spacing: 2px;
}

.customers {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

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

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

    .trust-elements {
        flex-direction: row;
        justify-content: flex-start;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }

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

/* Footer */
.site-footer {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--light-bg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

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

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

/* Imprint Page */
.imprint {
    min-height: 100vh;
    padding: 4rem 1.5rem;
    background-color: var(--white);
}

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

.imprint-logo {
    width: auto;
    height: 240px;
    margin-bottom: 3rem;
    display: inline-block;
    padding: 1.5rem 2rem;
    background: #000;
    border-radius: 8px;
}

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

.imprint-section {
    margin-bottom: 2.5rem;
}

.imprint-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.imprint-section p {
    line-height: 1.8;
    color: var(--text-color);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent-color);
}

/* Additional styles for privacy policy */
.imprint-section ul {
    list-style-type: none;
    padding-left: 1rem;
    margin: 1rem 0;
}

.imprint-section li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.imprint-section li::before {
    content: "•";
    position: absolute;
    left: -0.5rem;
    color: var(--primary-color);
}

.imprint-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.imprint-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive adjustments for imprint page */
@media (max-width: 768px) {
    .imprint {
        padding: 3rem 1rem;
    }

    .imprint h1 {
        font-size: 2rem;
    }

    .imprint-section h2 {
        font-size: 1.3rem;
    }

    .imprint-logo {
        height: 120px;
        padding: 1rem 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-logo {
        max-width: 350px;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 0;
    padding: 0;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.15);
}

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

/* Checkbox Styling */
.checkbox-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    gap: 0.75rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-text {
    flex: 1;
    word-wrap: break-word;
    hyphens: auto;
}

.privacy-link {
    color: var(--accent-color);
    text-decoration: underline;
}

.privacy-link:hover {
    color: #fff;
}

/* Mobile optimization for checkbox */
@media (max-width: 768px) {
    .checkbox-label {
        font-size: 0.85rem;
        line-height: 1.4;
        gap: 0.5rem;
    }
    
    .checkbox-custom {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
        font-size: 11px;
    }
}

/* Button disabled state */
.cta-button:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.cta-button:disabled:hover {
    transform: none;
    background-color: #666;
}

/* Accessibility improvements */
.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;
}

/* Focus improvements */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.cta-button:focus,
.footer-link:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Social Media Buttons */

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

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

.social-btn.whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

.social-btn.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
}

.social-btn svg {
    flex-shrink: 0;
}

/* Mobile adjustments for location info and social buttons */
@media (max-width: 768px) {
    .location-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .location-content {
        text-align: center;
    }
    
    .social-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .social-btn {
        justify-content: center;
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .location-info {
        text-align: left;
    }
}

/* Trustmary Widget Container */
.trustmary-widget-container {
    width: 100%;
    max-width: 100%;
    margin: 0.5rem auto 0;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

/* Trustmary Widget Größenanpassung - volle Breite */
#trustmary-widget-HESfYMMIe {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}

#trustmary-widget-HESfYMMIe iframe,
#trustmary-widget-HESfYMMIe > div {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    box-sizing: border-box;
}

/* Responsive Anpassungen für Trustmary Widget */
@media (max-width: 768px) {
    .trustmary-widget-container {
        padding: 0.5rem;
        margin-top: 0.5rem;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    width: 100%;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    z-index: 10001;
}

/* Mobile Anpassungen für Lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 1rem;
        max-width: 100vw;
        max-height: 100vh;
    }
    
    .lightbox-img {
        max-height: 85vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 10px;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
} 