/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #ddd;
}

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

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

/* Header and Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    background: var(--primary-color);
    padding: 1rem 0;
}

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

.logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

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

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--secondary-color);
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #e67e22;
}

.cta-button.cta-secondary {
    background: var(--secondary-color);
}

.cta-button.cta-secondary:hover {
    background: #c0392b;
}

/* Content Sections */
.intro,
.next-concert,
.join-section,
.content {
    padding: 3rem 0;
}

.intro .cta-button,
.next-concert .cta-button,
.join-section .cta-button,
.recent-concert .cta-button {
    margin-top: 1.5rem;
    display: inline-block;
}

.join-section {
    background: var(--light-bg);
}

.intro h3,
.next-concert h3,
.join-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.concert-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.concert-card h4 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Page Header */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-text h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
}

.about-text h3:first-child {
    margin-top: 0;
}

.placeholder-image {
    background: var(--light-bg);
    border: 2px dashed var(--border-color);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

/* Concerts Page */
.concerts-list {
    margin: 2rem 0;
}

.concert-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1rem;
}

.concert-flyer-left {
    flex-shrink: 0;
}

.concert-flyer-left img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.concert-flyer-left img:hover {
    transform: scale(1.02);
}

.concert-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
}

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

.concert-info h4 {
    font-size: 1.8rem;
    white-space: nowrap;
}

.concert-date {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-right: 2rem;
    min-width: 80px;
}

.concert-date .day {
    font-size: 2rem;
    font-weight: bold;
}

.concert-date .month {
    font-size: 0.9rem;
}

.concert-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.concert-subtitle {
    font-style: italic;
    color: #666;
    margin-top: -0.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.composer {
    font-weight: italic;
    color: var(--primary-color);
    display: inline-block;
    width: 100px;
}

.piece {
    margin-left: 1rem;
    font-style: italic;
    color: var(--text-color);
}

.concert-item.upcoming {
    opacity: 0.7;
    border: 2px dashed var(--border-color);
}

.concert-item.upcoming .concert-date {
    background: #95a5a6;
}

.past-concerts {
    margin-top: 2rem;
}

.past-concerts ul {
    list-style: none;
}

.past-concerts li {
    padding: 1rem;
    background: var(--light-bg);
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--accent-color);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

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

.submit-btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #c0392b;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        z-index: 99;
    }

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

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        border-radius: 0;
    }

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

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .concert-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .concert-flyer-left img {
        max-width: 250px;
    }

    .concert-item {
        flex-direction: column;
        text-align: center;
    }

    .concert-date {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

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

    .logo {
        font-size: 1.2rem;
    }

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

    .page-header h2 {
        font-size: 2rem;
    }
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item .placeholder-image {
    height: 250px;
    margin: 0;
    border-radius: 0;
    border: none;
}

/* Hero with background image */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    overflow: visible;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.hero-overlay {
    position: absolute;
    top: 75%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(44, 62, 80, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
}

/* Recent concert section */
.recent-concert {
    padding: 3rem 0;
    background: var(--light-bg);
}

.concert-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: center;
}

.concert-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.concert-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.concert-text {
    font-size: 1.1rem;
}

/* Gallery improvements */
.gallery-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    text-align: center;
}

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

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1rem;
    background: var(--white);
    font-style: italic;
    color: #666;
    text-align: center;
}

/* About page image */
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero {
        height: 90vh;
        min-height: 500px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .concert-highlight {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .concert-images {
        grid-template-columns: 1fr;
    }

    .concert-images img {
        height: 200px;
    }

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

@media (max-width: 480px) {
    .hero {
        height: 80vh;
        min-height: 400px;
    }

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

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

.past-concert-item.featured {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.past-concert-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.past-concert-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.past-concert-info .cta-button {
    margin-top: 1rem;
    display: inline-block;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

@media (max-width: 900px) {
    .past-concert-item.featured {
        grid-template-columns: 1fr;
    }

    .past-concert-image img {
        height: 200px;
    }
}

/* Calendar Page Styles */
.calendar-subscription {
    margin-bottom: 2rem;
}

.subscribe-toggle {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscribe-toggle:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.toggle-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.subscribe-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.calendar-info {
    background: var(--light-bg);
    border-radius: 0 0 8px 8px;
    padding: 2rem;
    margin-top: -1px;
    border: 1px solid #ddd;
    border-top: none;
}

.calendar-info p {
    margin: 0.75rem 0;
    line-height: 1.5;
}

.calendar-url {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    word-break: break-all;
}

.calendar-url code {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.calendar-info ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.calendar-info li {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.subscribe-benefit {
    color: var(--secondary-color);
    font-weight: 500;
    font-style: italic;
}

.loading,
.error {
    text-align: center;
    padding: 3rem 0;
    font-size: 1.1rem;
}

.error {
    color: var(--secondary-color);
    background: #fdf2f2;
    border-radius: 8px;
    padding: 2rem;
}

.events-container h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-item {
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1.25rem;
    align-items: start;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-item:hover {
    background: var(--light-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.event-date-column {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
    padding-right: 0.5rem;
    border-right: 1px solid #f0f0f0;
}

.event-details {
    width: 100%;
}

.event-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    line-height: 1.3;
}

.event-datetime {
    margin: 0.1rem 0;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
}

.event-location {
    margin: 0.1rem 0;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.3;
}

.event-description {
    margin: 0.25rem 0 0 0;
    color: #666;
    line-height: 1.4;
    font-size: 0.85rem;
}

.no-events {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 8px;
}

/* Past Events Styles */
.past-events-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.past-events-container h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.past-events-subtitle {
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.past-events {
    opacity: 0.85;
}

.event-item.past-event {
    background: var(--light-bg);
    border-left: 4px solid #ccc;
    opacity: 0.8;
}

.event-item.past-event .event-title {
    color: #666;
}

.event-item.past-event .event-datetime,
.event-item.past-event .event-location,
.event-item.past-event .event-description {
    color: #777;
}

/* Responsive Calendar Styles */
@media (max-width: 900px) {
    .event-item {
        padding: 0.6rem 0.75rem;
        grid-template-columns: 110px 1fr;
        gap: 1rem;
    }

    .event-date-column {
        font-size: 0.85rem;
        padding-right: 0.4rem;
    }

    .subscribe-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .past-events-container {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .past-events-container h3 {
        font-size: 1.5rem;
    }
}

/* Mitspielen Page Styles */
.join-intro {
    text-align: center;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.join-intro h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.instruments-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.instruments-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.instruments-simple {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.instrument {
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.instrument:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.instruments-note {
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

.rehearsal-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.rehearsal-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-method {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-3px);
}

.contact-method h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.contact-button:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .instruments-simple {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .join-intro h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .calendar-subscription {
        margin: 0 -15px 2rem -15px;
    }

    .subscribe-toggle {
        border-radius: 0;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .calendar-info {
        padding: 1.5rem;
        border-radius: 0;
    }

    .calendar-url {
        padding: 0.75rem;
    }

    .calendar-url code {
        font-size: 0.8rem;
    }

    .event-item {
        padding: 0.5rem 0.6rem;
        grid-template-columns: 100px 1fr;
        gap: 0.75rem;
    }

    .event-date-column {
        font-size: 0.8rem;
        padding-right: 0.3rem;
    }

    .event-title {
        font-size: 1rem;
    }
}