/* ========================================
   Heimatverein Zetel e.V. - Stylesheet
   Farbschema: Grün & Weiß
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #3A7D44;
    --color-primary-dark: #2D6235;
    --color-primary-light: #4E9A5A;
    --color-secondary: #2C5E34;
    --color-accent: #A8D5B0;
    --color-accent-light: #D4EDDA;
    --color-bg: #F8FBF8;
    --color-bg-alt: #EFF6F0;
    --color-text: #2C2C2C;
    --color-text-light: #5A5A5A;
    --color-white: #FFFFFF;
    --color-border: #C8DFC8;
    --color-shadow: rgba(58, 125, 68, 0.12);

    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;

    --max-width: 1200px;
    --header-height: 72px;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

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

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

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

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

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

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1em;
}

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

/* --- Header / Navigation --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    border-bottom: 2px solid var(--color-accent);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 16px var(--color-shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-secondary);
    font-weight: 700;
    line-height: 1.2;
}

.logo-text small {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
}

/* Desktop Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    padding: 0.5rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    background: var(--color-accent-light);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-primary-dark) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,40,22,0.35) 0%, rgba(20,40,22,0.55) 60%, rgba(20,40,22,0.75) 100%);
    z-index: 1;
}

.hero-video-section {
    min-height: 520px;
    background: var(--color-secondary);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem;
    max-width: 700px;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.75), 0 0 24px rgba(0,0,0,0.45);
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7), 0 0 16px rgba(0,0,0,0.4);
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 0 0 3px rgba(255,255,255,0.2);
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
}

/* --- Decorative tree pattern for hero --- */
.hero::before {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -40px;
    width: 300px;
    height: 300px;
    background: url('../images/logo.png') no-repeat center;
    background-size: contain;
    opacity: 0.07;
    z-index: 1;
}

/* --- Section Styles --- */
.section {
    padding: 4rem 0;
}

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

.section-green {
    background: var(--color-primary);
    color: var(--color-white);
}

.section-green h2,
.section-green h3 {
    color: var(--color-white);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

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

.section-green .section-title::after {
    background: var(--color-accent-light);
}

/* --- Feature Cards (3er Grid) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    display: block;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 12px var(--color-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--color-primary);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--color-shadow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--color-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--color-primary);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* --- Welcome / Text Block --- */
.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.welcome-row {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.welcome-text-col {
    flex: 1;
}

.welcome-text-col .welcome-text {
    text-align: left;
    max-width: none;
}

.welcome-img-col {
    flex: 0 0 380px;
    text-align: center;
}

.welcome-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.img-credit {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.4rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .welcome-row {
        flex-direction: column;
    }
    .welcome-img-col {
        flex: none;
        width: 100%;
    }
}

/* --- News Cards Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px var(--color-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--color-shadow);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--color-accent-light);
    display: block;
}

canvas.news-card-image {
    object-fit: contain;
    object-position: top;
}

.news-card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.news-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.news-card-body p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    flex: 1;
}

.news-card-body .btn-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.news-card-body .btn-link:hover {
    gap: 0.5rem;
}

/* --- Events Table --- */
.events-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px var(--color-shadow);
}

.events-table thead {
    background: var(--color-primary);
    color: var(--color-white);
}

.events-table th,
.events-table td {
    padding: 0.85rem 1.25rem;
    text-align: left;
}

.events-table th {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.events-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.events-table tbody tr:last-child {
    border-bottom: none;
}

.events-table tbody tr:hover {
    background: var(--color-accent-light);
}

/* --- Plakat / Image Section --- */
.plakat-section {
    text-align: center;
}

.plakat-section img {
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--color-shadow);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--color-shadow);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

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

.btn-white:hover {
    background: var(--color-accent-light);
    color: var(--color-primary-dark);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.btn-download:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-download::before {
    content: '\2913';
    font-size: 1.1rem;
}

/* --- PDF Viewer --- */
.pdf-entry {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px var(--color-shadow);
}

.pdf-entry h3 {
    margin-bottom: 0.25rem;
}

.pdf-date {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pdf-viewer {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
}

.pdf-viewer iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.pdf-mobile-hint {
    display: none;
    padding: 1rem;
    background: var(--color-accent-light);
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 1rem;
}

/* --- Beiträge Grid (Karten-Layout) --- */
.beitraege-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.beitrag-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px var(--color-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.beitrag-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    background: var(--color-accent-light);
}

canvas.beitrag-card-image {
    object-fit: contain;
    object-position: top;
}

.beitrag-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.beitrag-card-body h3 {
    margin-bottom: 0.5rem;
}

.beitrag-card-body p {
    flex: 1;
    margin-bottom: 1rem;
}

.beitrag-card-actions {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .beitraege-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Beiträge (Articles - Legacy) --- */
.article-full {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 12px var(--color-shadow);
}

.article-full .article-meta {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-full h2 {
    margin-bottom: 1rem;
}

.article-full .article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.article-full .article-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-pdf-link {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* --- PDF Toggle (Aufklappbar) --- */
.pdf-toggle {
    margin-bottom: 1rem;
}

.pdf-toggle summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pdf-toggle summary::-webkit-details-marker {
    display: none;
}

.pdf-toggle summary::after {
    content: '\25BC';
    font-size: 0.7rem;
    transition: transform var(--transition);
}

.pdf-toggle[open] summary::after {
    transform: rotate(180deg);
}

.pdf-toggle[open] summary {
    margin-bottom: 1rem;
}

.pdf-toggle .pdf-viewer {
    animation: fadeSlideIn 0.3s ease;
}

/* --- Suchbilder (Picture Puzzles) --- */
.suchbilder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.suchbild-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px var(--color-shadow);
}

.suchbild-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform var(--transition);
}

.suchbild-card img:hover {
    transform: scale(1.03);
}

.suchbild-card .card-body {
    padding: 1.25rem;
}

.suchbild-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.suchbild-card details {
    margin-top: 0.5rem;
}

.suchbild-card summary {
    cursor: pointer;
    color: var(--color-primary);
    font-weight: 600;
    padding: 0.5rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suchbild-card summary::before {
    content: '\25B6';
    font-size: 0.7rem;
    transition: transform var(--transition);
}

.suchbild-card details[open] summary::before {
    transform: rotate(90deg);
}

.suchbild-card .solution {
    padding: 0.75rem;
    background: var(--color-accent-light);
    border-radius: var(--radius);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* --- Kommentare (Suchbilder) --- */
.comments-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.comments-section h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    font-family: var(--font-body);
}

.comment-count {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.comment-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--color-accent);
}

.comment-card .comment-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.comment-card .comment-meta strong {
    color: var(--color-text);
}

.comment-card .comment-text {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.comment-form-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.4rem 0;
    font-family: var(--font-body);
}

.comment-form-toggle:hover {
    color: var(--color-primary-dark);
}

.comment-form {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    display: none;
}

.comment-form.visible {
    display: block;
    animation: fadeSlideIn 0.3s ease;
}

.comment-form .form-group {
    margin-bottom: 0.75rem;
}

.comment-form label {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--color-white);
    transition: border-color var(--transition);
}

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

.comment-form textarea {
    min-height: 80px;
    resize: vertical;
}

.comment-form .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
}

.no-comments {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
}

.form-status {
    margin-top: 0.75rem;
    padding: 0;
    font-size: 0.85rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.form-status-success {
    padding: 0.75rem 1rem;
    background: var(--color-accent-light);
    color: var(--color-secondary);
    font-weight: 600;
}

.form-status-error {
    padding: 0.75rem 1rem;
    background: #fce4e4;
    color: #c0392b;
    font-weight: 600;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Contact Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-block {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 2px 12px var(--color-shadow);
}

.contact-info-block h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-detail .icon {
    width: 20px;
    flex-shrink: 0;
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.contact-form {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 2px 12px var(--color-shadow);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition);
    background: var(--color-bg);
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* --- Impressum --- */
.legal-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 2px 12px var(--color-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* --- Verein Page --- */
.verein-content {
    max-width: 800px;
    margin: 0 auto;
}

.verein-block {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px var(--color-shadow);
}

.verein-block h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}

.vorstand-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-accent-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--color-primary);
}

.vorstand-card .info p {
    margin-bottom: 0.3rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-col ul li a::before {
    content: '\203A';
    font-size: 1.2rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    opacity: 0.9;
    filter: brightness(10);
}

.sponsor-img {
    max-width: 160px;
    margin-top: 0.5rem;
}

.plakat-img {
    max-width: 400px;
    margin: 0 auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
}

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

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    cursor: pointer;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

/* --- Page Header (inner pages) --- */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -30px;
    width: 200px;
    height: 200px;
    background: url('../images/logo.png') no-repeat center;
    background-size: contain;
    opacity: 0.06;
}

.page-header h1 {
    color: var(--color-white);
    margin-bottom: 0.3rem;
}

.page-header .breadcrumb {
    color: var(--color-accent-light);
    font-size: 0.9rem;
}

.page-header .breadcrumb a {
    color: var(--color-accent-light);
}

.page-header .breadcrumb a:hover {
    color: var(--color-white);
}

/* --- Utility --- */
/* --- Skip to Content (Accessibility) --- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius);
    font-weight: 600;
    transition: top var(--transition);
}

.skip-to-content:focus {
    top: 0.5rem;
    color: var(--color-white);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.container-narrow { max-width: 900px; }

/* --- Beitrag-Detailseite: breiter PDF-Viewer --- */
.pdf-viewer-full {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-white);
}
.pdf-viewer-full iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.beitrag-meta {
    margin-bottom: 0.5rem;
}
.beitrag-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.beitrag-card-link:hover .beitrag-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--color-shadow);
}
.beitrag-card-link:hover .btn {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.verein-img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px var(--color-shadow);
}

.verein-img.img-placeholder {
    background: var(--color-bg-alt);
    padding: 2rem;
    object-fit: contain;
    min-height: 220px;
}

/* --- Timeline (Vereinsgeschichte) --- */
.timeline {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 0.5rem;
    padding: 0;
    counter-reset: none;
}

.timeline-item {
    position: relative;
    background: var(--color-accent-light);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem 1.25rem;
    border-top: 4px solid var(--color-primary);
}

.timeline-year {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin: 0.25rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.timeline-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.55;
}

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

/* --- Vorstand + Beirat Grid --- */
.gremien-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.gremium {
    margin: 0;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px var(--color-shadow);
    border: 1px solid var(--color-border);
}

.gremium img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gremium figcaption {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    padding: 0.75rem 1rem;
    background: var(--color-white);
    letter-spacing: 0.03em;
}

@media (max-width: 640px) {
    .gremien-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Flyer-Downloads --- */
.flyer-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* --- Verein CTA-Block --- */
.verein-cta {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-bg-alt) 100%);
    border-left: 4px solid var(--color-primary);
}

/* --- Beitrittsformular --- */
.form-row {
    display: flex;
    gap: 1rem;
}
.form-row .form-group {
    flex: 1;
}
.form-hint {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}
.membership-form {
    margin-top: 1.5rem;
}
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .form-group {
        flex: 1 1 100% !important;
    }
}
.text-hint { font-size: 0.9rem; color: var(--color-text-light); }
.webmaster-hint { padding: 1rem; background: var(--color-accent-light); border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; color: var(--color-text-light); }

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: var(--color-white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.25rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right var(--transition);
        overflow-y: auto;
        align-items: stretch;
        z-index: 1001;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius);
    }

    .hero {
        min-height: 320px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

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

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

    .section {
        padding: 2.5rem 0;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

    .pdf-viewer {
        display: none;
    }

    .pdf-mobile-hint {
        display: block;
    }

    .article-full {
        padding: 1.25rem;
    }

    .legal-content {
        padding: 1.5rem;
    }

    .verein-block {
        padding: 1.25rem;
    }

    .vorstand-card {
        flex-direction: column;
    }

    .events-table {
        font-size: 0.9rem;
    }

    .events-table th,
    .events-table td {
        padding: 0.6rem 0.75rem;
    }
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

/* --- Print Styles --- */
@media print {
    .site-header,
    .site-footer,
    .hamburger,
    .lightbox-overlay,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .hero {
        min-height: auto;
        background: none;
        color: black;
    }

    .hero h1,
    .hero .subtitle,
    .page-header h1 {
        color: black;
        text-shadow: none;
    }
}
