/* --- GRUNDEINSTELLUNGEN & VARIABLEN --- */
:root {
    --font-primary: 'Montserrat', sans-serif;
    --color-bg-dark: #1a1a1a;
    --color-bg-light: #2a2a2a;
    --color-text-primary: #ffffff;
    --color-text-secondary: #bbbbbb;
    --color-text-muted: #aaa;
    --color-border: #444;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
}

a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-text-secondary);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- HEADER --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Erlaubt Umbruch auf kleinen Geräten */
}

header .logo img {
    height: 50px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

header nav {
    display: flex;
    gap: 30px;
}

header .social-media a {
    margin: 0 10px;
    font-size: 1.2rem;
}

/* --- POPUP & FORMULAR --- */
.popup {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 25px;
    box-sizing: border-box;
}

.popup-content {
    background-color: var(--color-bg-light);
    padding: 25px 40px;
    border-radius: 10px;
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--color-text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    box-sizing: border-box;
}

#contactForm button {
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
}

/* --- SEKTIONEN --- */
.hero {
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 25px 20px 50px 20px;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.service-box {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 25px;
    border-radius: 8px;
    flex: 1 1 300px; /* Flexibel für verschiedene Bildschirmgrößen */
    max-width: 350px;
}

.team {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(to top, black, var(--color-bg-dark));
}

.team-intro-box {
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.member, .member2 {
    background-color: var(--color-bg-light);
    padding: 25px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    text-align: left; /* Text immer linksbündig für bessere Lesbarkeit */
}

.member {
    flex: 1 1 350px;
    max-width: 385px;
}
.member2 {
    flex: 1 1 100%;
}

.member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    align-self: center;
    margin-bottom: 15px;
}

.member h4, .member2 h4 {
    color: var(--color-text-secondary);
    font-weight: normal;
    margin: 0 0 1px 0;
}

.member-social {
    margin-top: auto;
    padding-top: 25px;
    text-align: center;
}
.member-social a {
    margin: 0 10px;
    font-size: 1.5rem;
}

.studios {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 25px 20px;
    background-color: #222;
    flex-wrap: wrap;
}

.studio-item {
    text-align: left;
    flex: 1 1 400px;
    max-width: 430px;
}

.studio-button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--color-text-primary);
    border-radius: 5px;
    margin-top: 20px;
    background: none;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
}
.studio-button:hover {
    background-color: var(--color-text-primary);
    color: var(--color-bg-dark);
}

/* --- LOGO SCROLLER --- */
.logos-container {
    background-color: var(--color-text-primary);
    padding: 25px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}
.logos-container::before, .logos-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.logos-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0));
}
.logos-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0));
}
.logos-slide {
    display: inline-block;
    animation: scroll 45s linear infinite;
}
.logos-slide:hover {
    animation-play-state: paused;
}
.logos-slide img {
    height: 60px;
    margin: 0 40px;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Angepasst für sauberen Loop */
}

/* --- FOOTER --- */
footer {
    padding: 15px 20px 20px 20px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-column {
    flex: 1 1 300px;
}
.footer-column h4 {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
    margin-bottom: 10px;
}
.footer-column a {
    color: var(--color-text-muted);
}
.footer-column img {
    height: 40px;
    margin-bottom: 20px;
}
.footer-column p {
    color: var(--color-text-muted);
}
.footer-column i {
    margin-right: 1px;
}
.copyright {
    text-align: center;
    padding-top: 10px;
    color: #888;
    font-size: 0.9rem;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    .header-right {
        justify-content: center;
    }
    
    .hero {
        align-items: center;
    }

    .team, .studios {
        padding: 20px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-column h4 {
        margin-left: auto;
        margin-right: auto;
    }
}

body {
    font-family: sans-serif;
}

.privacy-menu a {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background-color: #333;
    border: 1px solid #333;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    max-width: 300px;
}

.privacy-menu a:hover {
    background-color: #333;
}

/* Stil für das Pop-up-Fenster (Modal) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #333;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}