/* Grundlegende Typografie und Farben */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

h1, h2, h3 {
    color: #004d99;
}

h3 {
	text-align: center;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header-Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    margin-right: 10px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #004d99;
}

/* Hero-Sektionen */
.hero-home, .hero-page {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-background, .hero-background-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: -1;
}

.hero-content, .hero-content-page {
    z-index: 1;
}

.hero-content h1, .hero-content-page h1 {
    font-size: 3em;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-content p, .hero-content-page p {
    font-size: 1.2em;
}

/* Services-Sektion (nur für index.html) */
.services {
    text-align: center;
    padding: 4rem 5%;
    background-color: #f1f1f1;
}

.services h2 {
    margin-bottom: 3rem;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.card h3 {
    margin-top: 0;
}

/* Content-Sektion (für Unterseiten) */
.content-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 5%;
    gap: 50px;
}

.content-section.reverse {
    flex-direction: row-reverse;
}

.content-text {
    flex: 1;
}

.content-image {
    flex: 1;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Kontaktformular */
.contact-form {
    background-color: #e9ecef;
    padding: 4rem 5%;
    text-align: center;
}

.contact-form h2 {
    margin-bottom: 2rem;
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: left;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-form label {
    margin-top: 1rem;
    font-weight: bold;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}

/* Drop-Area für Upload */
.drop-area {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-top: 5px;
    transition: background-color 0.3s ease;
}

.drop-area.highlight {
    background-color: #e6f7ff;
    border-color: #007bff;
}

.drop-area p {
    margin: 0;
}

.browse-link {
    color: #007bff;
    text-decoration: underline;
}

.file-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.file-list-item {
    background-color: #f1f1f1;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer-Styling */
footer {
    text-align: center;
    padding: 1rem 5%;
    background-color: #333;
    color: white;
}

footer a {
    color: white;
}

/* Container für den gesamten Slider */
.logo-slider {
  width: 1000px;
  margin: 0 auto; /* Zentriert den Slider horizontal */
  overflow: hidden; /* Verhindert, dass der Inhalt über den Container hinausragt */
}

/* Container für die Slides, der animiert wird */
.slides {
  display: flex;
  gap: 30px;
  animation: scroll-left 45s linear infinite; /* Animationseigenschaften */
}

/* Die einzelnen Slides */
.slide {
  flex-shrink: 0; /* Verhindert, dass die Logos schrumpfen */
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-height: 80px; /* Setzt die maximale Höhe der Logos */
  width: auto; /* Behält die Originalbreite der Logos bei */
  display: block;
}

/* Animation pausieren bei Hover */
.logo-slider:hover .slides {
  animation-play-state: paused;
}

/* Keyframes für die Endlos-Animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0); /* Startposition: ganz links */
  }
  100% {
    /* Endposition: Verschiebung um die exakte Breite einer Slides-Gruppe */
    transform: translateX(calc(-1 * (6 * 330px + 6 * 30px)));
  }
}

/* Verstecken der Scrollleiste für WebKit-Browser (Chrome, Safari) */
.slides::-webkit-scrollbar {
  display: none;
}


/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    nav li {
        margin: 5px 0;
    }

    .hero-content h1, .hero-content-page h1 {
        font-size: 2.5em;
    }

    .content-section {
        flex-direction: column;
        gap: 30px;
    }

    .content-section.reverse {
        flex-direction: column;
    }
}