/* CSS Variables */
:root {
    --color-bg-primary: #0f1a24;
    --color-bg-secondary: #1a2a3a;
    --color-bg-tertiary: #243444;
    --color-accent: #c4531a;
    --color-accent-hover: #d96a2f;
    --color-text: #ffffff;
    --color-text-muted: #b0c0d0;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text);
    line-height: 1.6;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-accent-hover);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: var(--color-bg-secondary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

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

.nav-link:hover,
.nav-link:focus {
    color: var(--color-accent);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-text);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--color-text);
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    padding: 100px 20px 40px;
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    max-width: 100%;
    width: 600px;
    margin-bottom: 30px;
}

.slogan {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Band Photo Section */
.band-photo {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background: var(--color-bg-primary);
    padding: 20px 0;
}

.band-photo img {
    width: 70%;
    max-width: 1000px;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 50px;
    text-align: center;
    color: var(--color-accent);
}

/* Termine Section */
.termine {
    background: var(--color-bg-secondary);
}

.termine-table {
    max-width: 900px;
    margin: 0 auto;
}

.termin-row {
    display: grid;
    grid-template-columns: 150px 1fr 200px;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--color-bg-tertiary);
    align-items: center;
}

.termin-header {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.termin-row:hover:not(.termin-header) {
    background: var(--color-bg-tertiary);
}

.termin-ort a {
    color: var(--color-text);
    border-bottom: 1px dotted var(--color-accent);
}

.termin-ort a:hover {
    color: var(--color-accent);
}

.keine-termine {
    text-align: center;
    padding: 40px;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Videos Section */
.videos {
    background: var(--color-bg-primary);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-thumbnail {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.video-thumbnail:hover img {
    filter: brightness(0.8);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button .play-bg {
    transition: fill 0.3s ease, fill-opacity 0.3s ease;
}

.video-thumbnail:hover .play-bg {
    fill: #c4531a;
    fill-opacity: 1;
}

/* Kontakt Section */
.kontakt {
    background: var(--color-bg-secondary);
}

.kontakt-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.kontakt-info {
    font-size: 1.1rem;
}

.kontakt-info p {
    margin-bottom: 10px;
}

.kontakt-info a {
    color: var(--color-text);
}

.kontakt-info a:hover {
    color: var(--color-accent);
}

/* Contact Form */
.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--color-bg-tertiary);
    border-radius: 5px;
    background: var(--color-bg-primary);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--color-accent);
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
}

.spam-check {
    background: var(--color-bg-tertiary);
    padding: 15px;
    border-radius: 5px;
}

.spam-check label {
    display: block;
    margin-bottom: 10px;
}

.spam-check #num1,
.spam-check #num2 {
    font-weight: 700;
    color: var(--color-accent);
}

.spam-check input[type="number"] {
    width: 100px;
}

.btn-submit {
    padding: 15px 40px;
    background: var(--color-accent);
    color: var(--color-text);
    border: none;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

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

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message svg {
    margin-bottom: 20px;
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.success-message p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--color-bg-primary);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--color-bg-tertiary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--color-bg-secondary);
    border-radius: 50%;
    color: var(--color-text);
    transition: background 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    background: var(--color-accent);
    transform: scale(1.1);
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.impressum-link a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.impressum-link a:hover {
    color: var(--color-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-bg-secondary);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero-logo {
        width: 90%;
    }

    .slogan {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

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

    .termin-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .termin-header {
        display: none;
    }

    .termin-row:not(.termin-header) .termin-datum::before {
        content: 'Datum: ';
        font-weight: 600;
        color: var(--color-accent);
    }

    .termin-row:not(.termin-header) .termin-event::before {
        content: 'Event: ';
        font-weight: 600;
        color: var(--color-accent);
    }

    .termin-row:not(.termin-header) .termin-ort::before {
        content: 'Ort: ';
        font-weight: 600;
        color: var(--color-accent);
    }

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

    .kontakt-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .slogan {
        font-size: 1.1rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip Link (for screen readers) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: var(--color-text);
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
