:root {
    --primary: #AA408E; /* Magenta aus Logo [2, 3] */
    --dark: #373F43;    /* Gewünschtes Anthrazit */
    --white: #ffffff;
    --bg-light: #f4f4f4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 2px solid var(--bg-light);
    position: sticky; top: 0; z-index: 100;
}

nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; }
.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: bold; }

.hero {
    padding: 100px 0;
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.hero p { max-width: 800px; margin: 0 auto 20px; font-size: 1.2rem; }
.highlight { color: var(--primary); font-weight: bold; }

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn.secondary { background: transparent; border: 2px solid var(--white); }

.media-section { padding: 60px 0; text-align: center; background: var(--bg-light); }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; margin-top: 30px; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.contact-section { padding: 60px 0; }
form { display: flex; flex-direction: column; max-width: 600px; margin: 30px auto; }
form input, form textarea { margin-bottom: 15px; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }

footer { background: var(--dark); color: #ccc; padding: 60px 0 20px; font-size: 0.9rem; }
.impressum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.copy { text-align: center; border-top: 1px solid #555; padding-top: 20px; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .impressum-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
}
/* Sortierung Styling */
.sort-box { margin-bottom: 30px; text-align: right; font-size: 0.9rem; }
.sort-box select { 
    padding: 5px 10px; 
    border: 1px solid var(--dark); 
    color: var(--dark);
    border-radius: 4px;
    background: white;
}

/* Grid & Items */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
}

.gallery-item-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #eee;
}

.gallery-item {
    position: relative;
    height: 180px;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.08); }

.item-info { padding: 15px; text-align: left; }
.item-title { font-weight: bold; margin-bottom: 8px; color: var(--dark); font-size: 1rem; }

.download-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    transition: 0.2s;
}

.download-link:hover {
    background: var(--primary);
    color: white;
}

/* Lightbox-Korrektur für Mobilgeräte */
@media (max-width: 600px) {
    .lightbox-content { width: 95%; }
    .gallery-grid { grid-template-columns: 1fr; }
}