/* ==========================================================================
   KLS Welper - Statische Webseite
   Katholische Laienspielchar Hattingen-Welper
   ========================================================================== */

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

:root {
    --maroon: #3B0A1E;
    --maroon-light: #4A1028;
    --maroon-dark: #2D0717;
    --salmon: #D4A088;
    --salmon-light: #E8C4B0;
    --cream: #FAF6F0;
    --cream-yellow: #FEF5E0;
    --text: #333333;
    --text-light: #555555;
    --heading: #3B0A1E;
    --white: #ffffff;
}

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

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

a:hover {
    color: var(--maroon-light);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    width: 100%;
    background-color: var(--maroon);
}

/* Header Top: Logo + Banner nebeneinander */
.header-top {
    display: flex;
    align-items: stretch;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 180px;
}

.header-logo {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    background-color: var(--maroon);
}

.header-logo a {
    display: block;
    line-height: 0;
}

.header-logo img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.header-image {
    flex: 1 1 70%;
    overflow: hidden;
    line-height: 0;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 180px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-nav {
    background-color: var(--maroon-light);
    border-top: 1px solid rgba(212, 160, 136, 0.15);
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 14px 20px;
    color: var(--salmon);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: color 0.25s ease, background-color 0.25s ease;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--salmon-light);
    background-color: rgba(255, 255, 255, 0.06);
}

.nav-list a.active {
    color: var(--salmon-light);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Hamburger Toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 20px;
    margin: 0 auto;
}

.nav-toggle-bar {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--salmon);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger Animation */
.nav-toggle-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.site-main {
    flex: 1;
    padding: 40px 0 60px;
}

/* Home Content: Text + Bild nebeneinander */
.home-content {
    display: flex;
    align-items: stretch;
    gap: 0;
    background-color: var(--cream-yellow);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.home-text {
    flex: 1 1 45%;
    padding: 40px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-text h1 {
    color: var(--heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.home-text .lead {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--text);
}

.home-text p {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 14px;
    color: var(--text);
}

.home-image {
    flex: 1 1 55%;
    overflow: hidden;
    line-height: 0;
    min-height: 350px;
}

.home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Page Content (for sub-pages)
   ========================================================================== */

.page-content {
    background-color: var(--white);
    border-radius: 4px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.page-content h1 {
    color: var(--heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--salmon);
}

.page-content h2 {
    color: var(--heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 14px;
}

.page-content p {
    margin-bottom: 14px;
    line-height: 1.7;
}

.page-content ul, .page-content ol {
    margin-bottom: 14px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 6px;
}

/* Page content hero image */
.page-content .page-hero {
    width: 100%;
    max-width: none;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.page-content th,
.page-content td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(59, 10, 30, 0.1);
    vertical-align: top;
}

.page-content th {
    background-color: var(--maroon);
    color: var(--salmon-light);
    font-weight: 700;
    font-size: 0.95rem;
}

.page-content tr:hover {
    background-color: var(--cream);
}

.page-content .vorstand-table th:first-child,
.page-content .vorstand-table td:first-child {
    width: 40%;
}

/* Production detail (cast lists) */
.production {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(59, 10, 30, 0.1);
}

.production:last-child {
    border-bottom: none;
}

.production h3 {
    color: var(--heading);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.production .date {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 8px;
}

.production .role {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* Contact info styling */
.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info strong {
    color: var(--heading);
}

/* Highlight box */
.highlight-box {
    background-color: var(--cream-yellow);
    border-left: 4px solid var(--salmon);
    padding: 20px 24px;
    margin-bottom: 24px;
    border-radius: 0 4px 4px 0;
}

.highlight-box h2 {
    margin-top: 0;
}

/* Historie timeline */
.historie-entry {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(59, 10, 30, 0.08);
}

.historie-entry:last-child {
    border-bottom: none;
}

.historie-year {
    flex: 0 0 80px;
    font-weight: 700;
    color: var(--maroon);
    font-size: 1.1rem;
}

.historie-title {
    flex: 1;
}

/* ==========================================================================
   Photo Gallery
   ========================================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 24px;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Production image in Rückblicke */
.production-image {
    margin: 12px 0 8px;
}

.production-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Historie images */
.historie-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 24px;
}

.historie-images img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    padding: 16px 12px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.25s ease;
    z-index: 1001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Responsive tables & gallery */
@media (max-width: 768px) {
    .page-content table {
        font-size: 0.9rem;
    }

    .page-content th,
    .page-content td {
        padding: 8px 10px;
    }

    .historie-entry {
        flex-direction: column;
        gap: 4px;
    }

    .historie-year {
        flex: 0 0 auto;
    }

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

    .gallery img {
        height: 140px;
    }

    .historie-images {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--maroon);
    color: var(--salmon);
    padding: 24px 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--salmon-light);
}

.site-footer a:hover {
    color: var(--white);
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 160, 136, 0.15);
    color: var(--salmon);
    transition: background 0.3s, color 0.3s;
}

.social-links a:hover {
    background: var(--salmon);
    color: var(--maroon);
}

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

/* Social links on contact page */
.social-links-inline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.social-links-inline a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--maroon);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.social-links-inline a:hover {
    color: var(--salmon);
}

.social-links-inline svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive: Tablet (max 992px)
   ========================================================================== */

@media (max-width: 992px) {
    .header-top {
        min-height: 150px;
    }

    .header-logo {
        flex: 0 0 35%;
        padding: 15px 20px;
    }

    .header-logo img {
        max-height: 150px;
    }

    .nav-list a {
        padding: 12px 18px;
        font-size: 0.95rem;
    }

    .home-content {
        flex-direction: column;
    }

    .home-text {
        flex: 1 1 auto;
        padding: 30px;
    }

    .home-image {
        flex: 1 1 auto;
        min-height: 300px;
        max-height: 450px;
    }
}

/* ==========================================================================
   Responsive: Mobile (max 768px)
   ========================================================================== */

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    /* Header: Logo und Bild uebereinander */
    .header-top {
        flex-direction: column;
        min-height: auto;
    }

    .header-logo {
        flex: 0 0 auto;
        padding: 20px;
    }

    .header-logo img {
        max-height: 120px;
    }

    .header-image {
        flex: 0 0 auto;
        max-height: 200px;
    }

    .header-image img {
        min-height: 150px;
        max-height: 200px;
    }

    /* Hamburger Menu */
    .nav-toggle {
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        text-align: center;
    }

    .nav-list.nav-open {
        display: flex;
    }

    .nav-list a {
        padding: 12px 20px;
        border-top: 1px solid rgba(212, 160, 136, 0.1);
    }

    /* Content */
    .site-main {
        padding: 25px 0 40px;
    }

    .home-text {
        padding: 25px 20px;
    }

    .home-text h1 {
        font-size: 1.45rem;
    }

    .home-text p,
    .home-text .lead {
        font-size: 0.95rem;
    }

    .home-image {
        min-height: 250px;
    }

    .page-content {
        padding: 25px 20px;
    }

    .page-content h1 {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   Responsive: Small Mobile (max 480px)
   ========================================================================== */

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

    .header-logo img {
        max-height: 90px;
    }

    .header-image {
        max-height: 150px;
    }

    .header-image img {
        min-height: 120px;
        max-height: 150px;
    }

    .home-text h1 {
        font-size: 1.25rem;
    }

    .home-text p,
    .home-text .lead {
        font-size: 0.9rem;
    }

    .home-image {
        min-height: 200px;
    }

    .container {
        padding: 0 12px;
    }
}
