/* ===== BUNTMETALL ARTS — Anlassfarben Design ===== */

:root {
    --bg-dark: #1a1a1a;
    --bg-card: #2a2a2a;
    --text: #f0f0f0;
    --text-muted: #999;
    --gold: #c8a84e;
    --copper: #b87333;
    --purple: #8b4585;
    --blue: #4a6fa5;
    --lightblue: #6bb5c9;
    --gradient-warm: linear-gradient(135deg, #4a6fa5 0%, #8b4585 30%, #b87333 60%, #c8a84e 100%);
    --gradient-cool: linear-gradient(135deg, #1a2a3a 0%, #2a3a4a 50%, #3a4a5a 100%);
    --gradient-text: linear-gradient(135deg, #c8a84e, #b87333, #8b4585, #4a6fa5, #6bb5c9);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--copper); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-text);
    transition: width 0.3s;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-warm);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(26,26,26,0.3) 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
    padding-top: 70px;
}

.hero-logo {
    flex: 0 0 320px;
}

.hero-logo img {
    width: 320px;
    height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero-content { flex: 1; }

.hero-content h2 {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-services { margin-bottom: 2rem; }

.hero-services h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-services ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.hero-services li {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.3rem;
}

.hero-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.2rem;
    transition: background 0.2s, transform 0.2s;
}

.hero-social a:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== EVENTS SECTION ===== */
.events-section {
    background: var(--bg-dark);
}

.events-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.events-header .section-title { margin-bottom: 0; }

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.event-card-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.event-card-body {
    padding: 1.2rem;
}

.event-card-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--copper), var(--gold));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.event-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.event-card-location {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.event-card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--copper), var(--purple));
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--copper);
    color: var(--copper);
}

.btn-outline:hover { background: var(--copper); color: #fff; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--copper));
    color: #fff;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: linear-gradient(135deg, #2a3a4a 0%, #3a4a5a 30%, #4a5a6a 60%, #3a4a5a 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.about-image img {
    width: 100%;
    display: block;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-text a { color: var(--gold); }

/* ===== STUDIO / BOOKING SECTION ===== */
.studio-section {
    background: var(--bg-dark);
}

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

.studio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.studio-info p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.studio-address {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0;
    color: var(--text);
}

.booking-form {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2rem;
}

.booking-form h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--copper);
}

.form-group textarea { min-height: 100px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-message {
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-message-success { background: rgba(74,139,74,0.15); color: #6abf6a; }
.form-message-error { background: rgba(139,74,74,0.15); color: #bf6a6a; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; }

/* ===== GALLERY SECTION ===== */
.gallery-section {
    background: var(--gradient-warm);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.2);
}

.gallery-section .container { position: relative; z-index: 1; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}

.gallery-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    aspect-ratio: 4/3;
}

.gallery-card:hover { transform: scale(1.03); }

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.2rem;
}

.gallery-card-title {
    font-size: 1rem;
    font-weight: 600;
}

.gallery-card-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gallery-card-lock {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: rgba(0,0,0,0.6);
    color: var(--gold);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* ===== GALLERY DETAIL (separate page) ===== */
.gallery-detail-header {
    padding: 6rem 0 2rem;
    text-align: center;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
    padding-bottom: 3rem;
}

.gallery-mosaic img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery-mosaic img:hover { opacity: 0.85; }

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ===== GALLERY PASSWORD MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.modal h3 { margin-bottom: 1rem; }

.modal input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.modal input:focus { outline: none; border-color: var(--copper); }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }

.footer-copy { color: var(--text-muted); font-size: 0.8rem; margin-top: 1rem; }

/* ===== SOCIAL ICONS (SVG-based) ===== */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===== PAST EVENTS ===== */
.past-events { margin-top: 2rem; }

.past-events-toggle {
    background: none;
    border: none;
    color: var(--copper);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
}

.past-events-grid {
    display: none;
    opacity: 0.6;
}

.past-events-grid.visible { display: grid; }

/* ===== LOADING ===== */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26,26,26,0.98);
        padding: 1rem 0;
        gap: 0;
    }
    .nav-links.open a { padding: 0.8rem 1.5rem; }
    .nav-toggle { display: block; }

    .hero .container { flex-direction: column; text-align: center; gap: 2rem; padding-top: 90px; }
    .hero-logo { flex: none; }
    .hero-logo img { width: 200px; height: 200px; }
    .hero-services ul { text-align: left; }
    .hero-social { justify-content: center; }

    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-image { max-width: 300px; margin: 0 auto; }

    .studio-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .events-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

    .footer-content { flex-direction: column; text-align: center; }
}
