/* ============================================
   Stone Age Music – Stylesheet
   ============================================ */

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

:root {
    --color-bg: #0d0d0d;
    --color-bg-alt: #1a1a1a;
    --color-surface: #242424;
    --color-primary: #d45d22;
    --color-primary-hover: #e8712f;
    --color-text: #e8e8e8;
    --color-text-muted: #999;
    --color-accent: #8b6914;
    --color-error: #e74c3c;
    --color-success: #27ae60;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Righteous', cursive;
    --max-width: 1200px;
    --header-height: 70px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 0.5rem 1rem;
    z-index: 10000;
    font-weight: bold;
}

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

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
}

.logo:hover {
    color: var(--color-primary-hover);
}

.logo-icon {
    font-size: 1.6rem;
}

.nav-menu a {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

/* Hamburger – immer sichtbar */
.nav-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    transition: all var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

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

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-menu {
        width: 280px;
    }
}

.nav-menu {
    display: flex;
    position: fixed;
    top: var(--header-height);
    right: -320px;
    width: 300px;
    height: calc(100vh - var(--header-height));
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    border-left: 1px solid rgba(212, 93, 34, 0.15);
}

.nav-menu.active {
    right: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: #bbb;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 1rem;
}

/* Schwarz-weiß Basisbild – immer sichtbar */
.hero-images {
    position: relative;
    width: 95%;
    max-width: 1100px;
}

.hero-base-img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
}

/* Farbige Overlay-Ebenen – exakt über dem Basisbild */
.hero-color-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-color-layer.flash {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.0) 20%,
        rgba(0, 0, 0, 0.0) 80%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 1.5rem 1.5rem 0.75rem;
    background: var(--color-bg);
    width: 100%;
}

.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.hero-guitar {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

.hero h1 {
    font-family: 'Righteous', cursive;
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d45d22;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--color-primary-hover);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 164, 90, 0.3);
}

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

.section-alt {
    background: var(--color-bg-alt);
}

.section-tight {
    padding-top: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 0.75rem auto 0;
}


/* ============================================
   Termine Section
   ============================================ */
.termine-list {
    max-width: 700px;
    margin: 0 auto;
}

.termine-empty {
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
}

.termin-item {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--color-surface);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.termin-date {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.termin-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.termin-location,
.termin-info {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Slideshows
   ============================================ */

.slideshow-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 93, 34, 0.15);
    background: var(--color-surface);
    max-width: 800px;
    margin: 0 auto;
}

.slideshow-inner {
    position: relative;
    aspect-ratio: 16/9;
}

.slideshow-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-img.active {
    opacity: 1;
}

.slideshow-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-video {
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(212, 93, 34, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-blocked {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-radius: 8px;
    text-align: center;
    padding: 1.5rem;
}

.video-blocked p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Consent Banner
   ============================================ */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(13, 13, 13, 0.97);
    border-top: 2px solid var(--color-primary);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.consent-banner.hidden {
    display: none;
}

.consent-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.consent-content p {
    color: var(--color-text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.consent-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-text-muted);
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.consent-link {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

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

.about-text strong {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   Contact Section
   ============================================ */
.contact-center {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-center p {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: inline-block;
    text-align: left;
}

.contact-details li {
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
}

.contact-details a {
    color: var(--color-primary);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid rgba(200, 164, 90, 0.15);
    padding: 3rem 0 1.5rem;
}

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

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col li {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--color-text-muted);
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(200, 164, 90, 0.1);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ============================================
   Legal Pages (Impressum / Datenschutz)
   ============================================ */
.legal-page {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
    min-height: 100vh;
}

.legal-page h1 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page li {
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.legal-page ul {
    padding-left: 1.5rem;
    list-style: disc;
}

.legal-page a {
    color: var(--color-primary);
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--color-primary);
    font-weight: 600;
}

.back-link:hover {
    color: var(--color-primary-hover);
}
