:root {
    --accent-color: #1e4f9e;
    --accent-light: rgba(30, 79, 158, 0.1);
    --text-color: #1d1d1f;
    --light-text: #86868b;
    --white: #ffffff;
    --light-bg: #f5f5f7;
}

.section {
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

.gray-bg {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Referenzen Kategorien */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.category-tab {
    padding: 10px 20px;
    background-color: var(--white);
    border: 1px solid var(--accent-light);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.category-tab:hover {
    background-color: var(--accent-light);
}

.category-tab.active {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* Slider Stile */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
    min-height: 400px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
}

.slider-section {
    min-width: 100%;
    padding: 0 20px;
}

.slider-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--accent-color);
    text-align: center;
}

.slider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}


.slider-item {
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.slider-item:hover .slider-img {
    transform: scale(1.1);
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.slider-item:hover .slider-caption {
    transform: translateY(0);
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-light);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background-color: var(--accent-color);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.slider-arrow:hover {
    background-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.left {
    left: 10px;
}

.slider-arrow.right {
    right: 10px;
}

/* Lightbox Stile */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.lightbox-arrow {
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.lightbox-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.lightbox-thumbnail.active {
    opacity: 1;
    border: 2px solid var(--accent-color);
}

@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    .subtitle {
        font-size: 22px;
    }

    .section-title {
        font-size: 32px;
    }

    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .slider-container {
        min-height: 600px; /* Höhere Mindesthöhe für mobile */
    }

    .slider-grid {
        grid-template-columns: 1fr;
    }

    .slider-arrow {
        width: 30px;
        height: 30px;
    }

    .lightbox-img {
        max-height: 60vh;
    }

    .lightbox-thumbnail {
        width: 40px;
        height: 40px;
    }
}