/* Style Sheet für www.nachtlicht-agentur.de v2.0
    Copyright 01/2026 Nachtlicht 
*/

/* ==========================================================================
   1. GLOBALE STILE (Reset & Grundgerüst)
   ========================================================================== */
body {
    font-family: sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Container für Fließtext-Inhalte (About, Impressum, etc.) */
.text_container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.text_container h1 {
    text-align: center;
    margin-bottom: 20px;
}

.text_container p {
    margin-bottom: 15px;
}

/* Universelle Button-Basis */
.btn-primary, .btn-secondary {
    display: inline-block;
    width: 180px;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 10px;
}

/* Der PDF Button */
.catalog-download {
    margin: 40px 0;
    text-align: left;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    padding: 15px 25px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}


/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    background: #FFFFFF;
    color: #000000;
    height: 60px;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Styling */
.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Desktop-Navigation */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: black;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #900000; /* Nachtlicht Rot */
}

/* Burger-Menu Button (Standardmäßig versteckt) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 5px;
    padding: 10px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: black;
    transition: 0.3s;
}

/* ==========================================================================
   3. HERO SEKTION (Startseite)
   ========================================================================== */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
               url(Home/Mercedance25.jpg) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.btn-primary {
    background-color: #900000;
    color: white;
}

.btn-primary:hover {
    background-color: #700000;
    transform: translateY(-3px);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
}

/* ==========================================================================
   4. KARTEN-LAYOUT (Startseite / Flexbox-Grid)
   ========================================================================== */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
}

/* ==========================================================================
   5. KONTAKTFORMULAR & SPAM-SCHUTZ
   ========================================================================== */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 15px;
    font-family: inherit;
}

/* Honeypot: Versteckt das Feld für Menschen, Bots füllen es aus */
.honey-trap {
    display: none !important;
    visibility: hidden;
}

.form-checkbox {
    margin-bottom: 20px;
}

/* ==========================================================================
   6. REFERENZEN & PARTNER-LOGOS
   ========================================================================== */
.reference-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.category-title {
    border-bottom: 2px solid #900000;
    display: inline-block;
    margin-bottom: 40px;
    padding-bottom: 5px;
    font-size: 1.8rem;
}

/* Logo Wall Styling */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.logo-item img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    transition: all 0.4s ease;
    opacity: 0.6;
    cursor: pointer;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Projekt Showcase (Wechsel-Layout) */
.project-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Jedes zweite Projekt spiegeln (Bild rechts/links Wechsel) */
.project-feature:nth-child(even) {
    direction: rtl;
}
.project-feature:nth-child(even) .project-content {
    direction: ltr;
}

.project-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    cursor: zoom-in;
}

.project-tag {
    background: #900000;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

/* ==========================================================================
   7. LIGHTBOX (Bild-Vergrößerung)
   ========================================================================== */
.lightbox-overlay {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    display: none; /* Wird via JS auf 'flex' gesetzt */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-content-wrapper {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 75vh;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

#lightbox-caption {
    color: #fff;
    padding: 15px;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(0,0,0,0.5);
    width: 100%;
    box-sizing: border-box;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
    background: #000000;
    color: #FFFFFF;
    text-align: right;
    padding: 2rem;
}

.footer-nav ul {
    list-style: none; /* Entfernt die Aufzählungspunkte */
    margin: 0;
    padding: 0;
    display: flex;    /* Macht auch die Links zu einer Flex-Reihe */
    gap: 20px;        /* Abstand zwischen den Links */
}

.footer-nav a {
    text-decoration: none;
    color: white;    
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #900000; /* Ein schöner Akzentton beim Drüberfahren */
}


/* Ergänzung für die Mietportfolio-Seite (Rental) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover { transform: translateY(-5px); }

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: zoom-in;
}

.product-info { padding: 20px; flex-grow: 1; }
.price { display: block; margin-top: 10px; font-weight: bold; color: #900000; }

/* ==========================================================================
   9. COOKIE BANNER
   ========================================================================== */
.cookie-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Wird via JS auf 'flex' gesetzt */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cookie-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.btn-cookie {
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    border: none;
    margin: 5px;
    transition: 0.3s;
}

.btn-cookie.accept {
    background-color: #27ae60;
    color: white;
}

.btn-cookie.decline {
    background-color: #ecf0f1;
    color: #7f8c8d;
}

/* ==========================================================================
   10. RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Mobile Navigation & Anpassungen (Tablet & Handy) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: #FFFFFF;
        padding: 15px 25px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        z-index: 1000;
        min-width: 180px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    /* Referenzen mobil untereinander */
    .project-feature {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-feature:nth-child(even) {
        direction: ltr;
    }

    .project-visual img {
        height: 250px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Ganz kleine Bildschirme (Handy) */
@media (max-width: 480px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}