/* ============================================
   SEELENLICHTER - Globale Styles
   ============================================ */

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

:root {
    --bg-dark: #0a0a0a;
    --bg-dark-secondary: #1a1a1a;
    --text-gold: #d4af37;
    --text-light: #e8e8e8;
    --btn-red: #8b3a3a;
    --btn-red-hover: #a94545;
    --accent-gold: #ffd700;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Serif', serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background-color: var(--bg-dark-secondary);
    border-bottom: 2px solid var(--text-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 2rem;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-brand h1 {
    color: var(--text-gold);
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.nav-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--text-gold);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-search input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.nav-search input::placeholder {
    color: #999;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--text-gold);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.search-result-item a {
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.search-result-item a:hover {
    color: var(--text-gold);
}

.search-result-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.search-result-info h4 {
    color: var(--text-gold);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.search-result-category {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.25rem;
}

.search-result-price {
    font-size: 0.85rem;
    color: var(--text-light);
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: #999;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 8rem 2rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(139, 58, 58, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3.5rem;
    color: var(--text-gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--btn-red);
    color: var(--text-gold);
    border: 2px solid var(--btn-red);
}

.btn-primary:hover {
    background-color: var(--btn-red-hover);
    border-color: var(--btn-red-hover);
    box-shadow: 0 0 15px rgba(139, 58, 58, 0.5);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 4rem 2rem;
    background-color: var(--bg-dark-secondary);
    border-top: 1px solid var(--text-gold);
}

.about h2 {
    font-size: 2.5rem;
    color: var(--text-gold);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--bg-dark);
    padding: 1.5rem;
    border-left: 4px solid var(--text-gold);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.feature-card h3 {
    color: var(--text-gold);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   FEATURED PRODUCTS
   ============================================ */

.featured {
    padding: 4rem 2rem;
    background-color: var(--bg-dark);
}

.featured h2 {
    font-size: 2.5rem;
    color: var(--text-gold);
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

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

.product-card {
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--text-gold);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    border-color: var(--accent-gold);
}

.product-image {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--text-gold);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.price {
    display: block;
    color: var(--accent-gold);
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

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

/* ============================================
   SHOP HEADER & FILTERS
   ============================================ */

.shop-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 3rem 2rem;
    text-align: center;
    border-bottom: 2px solid var(--text-gold);
}

.shop-header h1 {
    font-size: 3rem;
    color: var(--text-gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.shop-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
}

.shop-filters {
    background-color: var(--bg-dark-secondary);
    padding: 2rem;
    border-bottom: 1px solid var(--text-gold);
    display: flex;
    justify-content: center;
}

.filters-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group h3 {
    width: 100%;
    margin: 0 0 1rem 0;
    color: var(--text-gold);
}

.sort-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sort-group h3 {
    margin: 0;
    color: var(--text-gold);
}

.sort-select {
    padding: 0.75rem 1rem;
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 2px solid var(--text-gold);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Georgia', 'Serif', serif;
    max-width: 300px;
}

.sort-select:hover,
.sort-select:focus {
    background-color: var(--bg-dark-secondary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    outline: none;
}

.sort-select option {
    background-color: var(--bg-dark-secondary);
    color: var(--text-light);
}


.filter-btn {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-gold);
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: bold;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--text-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ============================================
   SHOP PRODUCTS
   ============================================ */

.shop-products {
    padding: 3rem 2rem;
    background-color: var(--bg-dark);
    min-height: 50vh;
}

.shop-products .products-grid {
    margin-bottom: 0;
}

.product-item {
    background-color: var(--bg-dark-secondary);
    border: 2px solid var(--text-gold);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    border-color: var(--accent-gold);
}

.product-item .product-image {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.product-item .product-real-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.product-item h3 {
    color: var(--text-gold);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-item p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.product-item .price {
    margin-top: 0;
}

.product-item .btn {
    flex-shrink: 0;
}

/* Gestapelte Aktionen im Produkt-Footer */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

@media (max-width: 480px) {
    .product-actions {
        width: 100%;
        align-items: stretch;
    }
    .product-actions .btn {
        width: 100%;
    }
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter {
    background-color: var(--bg-dark-secondary);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--text-gold);
}

.newsletter h2 {
    color: var(--text-gold);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--text-gold);
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 4rem 2rem;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--text-gold);
}

.contact h2 {
    font-size: 2.5rem;
    color: var(--text-gold);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    color: var(--text-gold);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.info-item a {
    color: var(--btn-red-hover);
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-item a:hover {
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 2px solid var(--text-gold);
    background-color: var(--bg-dark-secondary);
    color: var(--text-light);
    border-radius: 4px;
    font-family: 'Georgia', 'Serif', serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    border-color: var(--accent-gold);
}

.contact-form button {
    margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--bg-dark-secondary);
    border-top: 2px solid var(--text-gold);
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

.footer p {
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .filters-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .filter-group {
        gap: 0.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .filter-group h3 {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .sort-group {
        gap: 0.5rem;
    }

    .sort-select {
        max-width: 100%;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .about h2,
    .featured h2,
    .contact h2,
    .shop-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: 40vh;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .product-footer .btn {
        width: 100%;
    }
}

/* Inline Formular-Fehler für Produktdetail */
.form-error {
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.10);
    border: 1px solid #ff4d4f;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 0.95rem;
    display: none;
}