:root {
    --primary-color: #008080;
    --text-color: #333;
    --white: #fff;
    --light-gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--white);
}

.logo-small {
    display: block;
    width: 180px;
    height: auto;
}

.logo-small img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-small img {
        max-width: 90%; /* die ganze Breite */
    }
}

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

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.1)'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
    background-size: 50px 50px;
    opacity: 0.2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    position: relative;
}

.content {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Originaler Code für die normale Image Gallery (untereinander) */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.image-gallery-two {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.image-gallery-two img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Desktop-Ansicht für die zweispaltige Gallery */
@media (min-width: 769px) {
    .image-gallery-two {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .image-gallery-two img {
        max-width: calc(50% - 1rem); /* 50% Breite minus halber Abstand */
        height: auto;
        object-fit: cover;
    }
}

/* Bestehender Media Query für mobile Geräte */
@media (max-width: 768px) {
    .image-gallery, .image-gallery-two {
        max-width: 100%;
        margin: 0 auto;
        flex-direction: column; /* Stellt sicher, dass Bilder untereinander sind */
    }
    
    .image-gallery img, .image-gallery-two img {
        max-width: 100%; /* Volle Breite auf mobilen Geräten */
    }
}

.info-box {
    background: var(--light-gray);
    padding: 2rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.brands-section {
    margin: 2rem 0;
}

.brands-section h3 {
    color: var(--primary-color);
    margin: 1.5rem 0;
    text-align: center;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* Logos zentrieren */
    gap: 1.5rem; /* Abstand zwischen Logos */
    padding: 1rem 0;
}

.brand-logo {
    max-width: 180px; /* Einheitliche maximale Breite */
    height: auto;
    object-fit: contain; /* Verhindert Verzerrung */
    padding: 10px;
}

/* Sicherstellen, dass die Logos sich auf mobilen Geräten gut anpassen */
@media (max-width: 768px) {
    .brands-grid {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .brand-logo {
        max-width: 140px; /* Kleinere Logos für mobile Ansicht */
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 4px;
}

.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
    .logo-small {
        width: 140px;
    }
}

.info-boxes {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.info-box {
    background: #2d6871;
    color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 300px;
}

.icon {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}