/* =============================================
   ZOMAC Band Website - Custom Styles
   Styleguide v1.0 - Classic Rock Retro Design
   ============================================= */

/* =============================================
   1. CSS CUSTOM PROPERTIES (Variables)
   ============================================= */
:root {
    /* Primary Colors */
    --color-primary: #e38917;
    --color-primary-rgb: 227, 137, 23;
    --color-bg-dark: #2f2732;
    --color-bg-dark-rgb: 47, 39, 50;
    --color-bg-light: #c5cfce;
    --color-bg-light-rgb: 197, 207, 206;
    
    /* Text Colors */
    --color-text-light: #ffffff;
    --color-text-dark: #1a1a1a;
    --color-text-muted: lch(81.98% 5.68 256.57);
    
    /* Status Colors */
    --color-success: #22c55e;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    
    /* Transparency */
    --card-opacity: 0.88;
    --nav-opacity: 0.95;
    --overlay-opacity: 0.6;
    
    /* Typography */
    --font-heading: 'Chicle';
    --font-body: 'Rubik', sans-serif;
    
    /* Spacing */
    --section-padding: 30px;
    --card-padding: 24px;
    --gap: 24px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Shadows */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 60px rgba(var(--color-primary-rgb), 0.1);
    --shadow-glow: 0 0 15px rgba(var(--color-primary-rgb), 0.5);
    --neon-glow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary), 0 0 40px var(--color-primary);
}

/* =============================================
   2. FONT IMPORTS
   ============================================= */
@font-face {
    font-family: 'Chicle';
    src: url('../assets/Fonts/Chicle/Chicle-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../assets/Fonts/Rubik/static/Rubik-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../assets/Fonts/Rubik/static/Rubik-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../assets/Fonts/Rubik/static/Rubik-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../assets/Fonts/Rubik/static/Rubik-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =============================================
   3. BASE STYLES & RESET
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =============================================
   4. BACKGROUND & FIXED BANNER
   ============================================= */
.bg-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../assets/images/Zomac_Banner_Website_v1.jpg');
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
}

/* =============================================
   5. FILMGRAIN OVERLAY
   ============================================= */
.filmgrain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: grainAnimation 8s steps(10) infinite;
}

@keyframes grainAnimation {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* =============================================
   6. VIGNETTE OVERLAY
   ============================================= */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 10%,
        transparent 50%,
        rgba(103, 79, 60, 0.731) 100%
    );
}

/* =============================================
   7. NAVIGATION
   ============================================= */
.nav-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(var(--color-bg-dark-rgb), var(--nav-opacity));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.2);
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    text-shadow: var(--neon-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-text-light);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   8. MAIN CONTENT WRAPPER
   ============================================= */
.content-wrapper {
    position: relative;
    z-index: 10;
    padding-top: 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =============================================
   9. SECTIONS
   ============================================= */
.section {
    padding: var(--section-padding) 0;
    scroll-margin-top: 90px; /* Abstand für fixed Header/Nav */
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 20;
}

/* =============================================
   10. TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading), Arial, sans-serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-primary);
    transition: var(--transition);
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Neon Glow Effect for Headings */
h1:hover, h2:hover, h3:hover {
    text-shadow: var(--neon-glow);
    cursor: default;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
    position: relative;
    z-index: 21;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--color-text-muted);
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.text-muted {
    color: var(--color-text-muted);
    
}

/* =============================================
   11. CARDS
   ============================================= */
.card {
    background: rgba(var(--color-bg-dark-rgb), var(--card-opacity));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--color-primary-rgb), 0.4);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.card-light {
    background: rgba(var(--color-bg-light-rgb), 0.85);
    color: var(--color-text-dark);
}

.card-light p,
.card-light span {
    color: var(--color-text-dark);
}

.card-light .text-muted {
    color: #4b5563;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

.card-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* =============================================
   12. BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: #f59a28;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: var(--shadow-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--color-bg-light);
    border: 1px solid rgba(var(--color-bg-light-rgb), 0.5);
}

.btn-ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-danger {
    background: var(--color-error);
    color: var(--color-text-light);
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* =============================================
   13. FORMS
   ============================================= */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.form-label .required {
    color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(var(--color-bg-light-rgb), 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-light);
    transition: var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

/* =============================================
   14. HERO SECTION
   ============================================= */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* =============================================
   15. GRID LAYOUTS
   ============================================= */
.grid {
    display: grid;
    gap: var(--gap);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* =============================================
   16. EVENT/SCHEDULE ITEMS
   ============================================= */
.event-item {
    padding: 1rem;
    border-left: 4px solid var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    transition: var(--transition);
}

.event-item:hover {
    background: rgba(var(--color-primary-rgb), 0.2);
    transform: translateX(4px);
}

.event-date {
    font-weight: 600;
    color: var(--color-primary);
}

.event-location {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* =============================================
   17. MODALS
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, var(--overlay-opacity));
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(var(--color-bg-dark-rgb), 0.95);
    border-radius: var(--border-radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(var(--color-primary-rgb), 0.3);
    box-shadow: var(--shadow-card);
}

.modal-header {
    position: sticky;
    top: 0;
    background: rgba(var(--color-bg-dark-rgb), 0.98);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-body {
    padding: 1.5rem;
}

/* =============================================
   18. TABS
   ============================================= */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.2);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.tab:hover {
    color: var(--color-primary);
}

.tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* =============================================
   19. ALERTS / STATUS MESSAGES
   ============================================= */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
}

/* =============================================
   20. FOOTER
   ============================================= */
.footer {
    position: relative;
    z-index: 10;
    background: rgba(var(--color-bg-dark-rgb), var(--nav-opacity));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(var(--color-primary-rgb), 0.2);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--color-text-muted);
    margin: 0;
}

.footer a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    text-shadow: var(--neon-glow);
}

/* =============================================
   21. ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
    }
    50% {
        text-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary), 0 0 60px var(--color-primary);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease;
}

.animate-neon-pulse {
    animation: neonPulse 2s ease-in-out infinite;
}

/* =============================================
   22. UTILITY CLASSES
   ============================================= */
.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }

/* =============================================
   23. RESPONSIVE STYLES
   ============================================= */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px;
    }
    
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
    
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 40px;
        --card-padding: 20px;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(var(--color-bg-dark-rgb), 0.98);
        padding: 1rem;
        gap: 0;
        border-top: 1px solid rgba(var(--color-primary-rgb), 0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .flex.space-x-3 {
        flex-direction: column;
    }
    
    .flex.space-x-3 > * + * {
        margin-left: 0;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

/* =============================================
   24. PRINT STYLES
   ============================================= */
@media print {
    .nav-main,
    .footer,
    .filmgrain,
    .vignette,
    .bg-banner {
        display: none !important;
    }
    
    .content-wrapper {
        padding-top: 0;
    }
    
    .card {
        background: white;
        color: black;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
    }
}

/* =============================================
   25. SCROLLBAR STYLING
   ============================================= */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f59a28;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-bg-dark);
}
