/* ============================================================
   main.css – Kanuverein Bruchsal, öffentliches Frontend
   ============================================================ */

:root {
    --c-bg:        #f5f6f8;
    --c-surface:   #ffffff;
    --c-border:    #e2e5ea;
    --c-text:      #1a1d23;
    --c-muted:     #6b7280;
    --c-link:      #1D9E75;
    --c-link-d:    #157a5a;
    --c-primary:   #1D9E75;
    --c-accent:    #1D9E75;

    /* Event-Typ-Farben */
    --c-tour:       #1D9E75;
    --c-whitewater: #378ADD;
    --c-club:       #BA7517;
    --c-kanukreis:  #D85A30;
    --c-other:      #888780;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 3px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
    --shadow-hover: 0 4px 16px rgba(0,0,0,.1);
    --max-w: 1140px;
    --transition: .2s ease;
}

/* Dark theme */
[data-theme="dark"] {
    --c-bg:        #111317;
    --c-surface:   #1a1d23;
    --c-border:    #2d3039;
    --c-text:      #e5e7eb;
    --c-muted:     #9ca3af;
    --c-link:      #34d399;
    --c-link-d:    #6ee7b7;
    --c-primary:   #34d399;
    --c-accent:    #34d399;
}
[data-theme="dark"] img { opacity: .92; }
[data-theme="dark"] .site-header { background: rgba(26,29,35,.92); border-color: var(--c-border); }
[data-theme="dark"] .site-logo { color: var(--c-text); }
[data-theme="dark"] .site-logo:hover { color: var(--c-primary); }
.site-logo-dark { display: none; }
[data-theme="dark"] .site-logo-light { display: none; }
[data-theme="dark"] .site-logo-dark { display: block; }
[data-theme="dark"] .site-footer { border-color: var(--c-border); }
[data-theme="dark"] .site-nav a { color: var(--c-muted); }
[data-theme="dark"] .site-nav a:hover,
[data-theme="dark"] .site-nav a[aria-current="page"] { color: var(--c-text); background: rgba(255,255,255,.06); }
[data-theme="dark"] .news-hero { box-shadow: 0 2px 8px rgba(0,0,0,.3); }
[data-theme="dark"] .news-hero:hover { box-shadow: 0 4px 16px rgba(0,0,0,.5); }
[data-theme="dark"] .news-card { background: var(--c-surface); border-color: var(--c-border); }
[data-theme="dark"] .news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.35); }
[data-theme="dark"] .news-card-body h3 a { color: var(--c-text); }
[data-theme="dark"] .sidebar-card { background: var(--c-surface); border-color: var(--c-border); }
[data-theme="dark"] .sidebar-card-header { border-color: var(--c-primary); }
[data-theme="dark"] .event-item:hover { background: rgba(52,211,153,.08); }
[data-theme="dark"] .event-item-day { color: var(--c-text); }
[data-theme="dark"] .event-row { background: var(--c-surface); border-color: var(--c-border); }
[data-theme="dark"] .event-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,.35); }
[data-theme="dark"] .event-row-title a { color: var(--c-text); }
[data-theme="dark"] .event-detail-cover img,
[data-theme="dark"] .article-cover img { opacity: 1; }
[data-theme="dark"] .album-card { background: var(--c-surface); border-color: var(--c-border); }
[data-theme="dark"] .album-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.45); }
[data-theme="dark"] .gallery-tag-badge { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); }
[data-theme="dark"] .gallery-tag-badge:hover { border-color: var(--c-primary); background: rgba(52,211,153,.1); }
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); }
[data-theme="dark"] .contact-success { background: #052e16; border-color: #166534; color: #bbf7d0; }
[data-theme="dark"] .contact-error { background: #450a0a; border-color: #991b1b; color: #fecaca; }
[data-theme="dark"] .pfingstfahrten-table th { background: var(--c-surface); border-color: var(--c-border); color: var(--c-muted); }
[data-theme="dark"] .pfingstfahrten-table td { border-color: var(--c-border); }
[data-theme="dark"] .pfingstfahrten-table tr:hover td { background: rgba(255,255,255,.03); }
[data-theme="dark"] .page-children a { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); }
[data-theme="dark"] .page-children a:hover { border-color: var(--c-primary); background: rgba(52,211,153,.08); }
[data-theme="dark"] .page-downloads a { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); }
[data-theme="dark"] .page-downloads a:hover { border-color: var(--c-primary); }
[data-theme="dark"] .page-image-link { border-color: var(--c-border); }
[data-theme="dark"] .event-info-list dt { color: var(--c-muted); }
[data-theme="dark"] .section-header { border-color: var(--c-primary); }
[data-theme="dark"] .events-month-label { border-color: var(--c-border); }
[data-theme="dark"] .burger span { background: var(--c-text); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-link-d); text-decoration: underline; }

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

/* ---- Header ----------------------------------------------- */

.site-header {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.92);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    color: var(--c-text);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -.01em;
}
.site-logo:hover { color: var(--c-primary); text-decoration: none; }

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

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.site-nav a {
    color: var(--c-muted);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
}
.site-nav a:hover                { color: var(--c-text); background: var(--c-bg); }
.site-nav a[aria-current="page"] { color: var(--c-text); font-weight: 600; background: var(--c-bg); }

/* ---- Burger menu (mobile) --------------------------------- */

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 4px;
    z-index: 201;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    border-radius: 1px;
    transition: transform .25s, opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
    .burger { display: flex; }

    .site-header {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        position: relative;
        backdrop-filter: none;
        background: var(--c-surface);
    }

    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        order: 10;
        padding-top: 8px;
        margin-top: 8px;
        border-top: 1px solid var(--c-border);
    }

    .site-nav.is-open { display: flex; }

    .site-nav a {
        padding: 10px 12px;
        font-size: 15px;
        border-radius: 0;
        border-bottom: 1px solid var(--c-border);
    }
    .site-nav a:last-child { border-bottom: none; }
    .site-nav a:hover { background: var(--c-bg); }

    .theme-toggle { order: 8; }
}

/* ---- Main / Layout ---------------------------------------- */

main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 36px 24px 56px;
}

/* Two-column: content + sidebar */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

@media (max-width: 900px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
}

/* ---- Section Headers -------------------------------------- */

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--c-primary);
}

.section-header h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.section-header a {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* ---- News Cards ------------------------------------------- */

/* ---- Claim Section ---------------------------------------- */

.claim-section {
    position: relative;
    margin-bottom: 28px;
    border-radius: var(--radius);
    overflow: hidden;
    color: #fff;
    height: 260px;
    display: flex;
    align-items: flex-end;
}

.claim-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    animation: pageHeroZoom 14s ease-in-out infinite alternate;
}

.claim-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,80,50,.85) 0%, rgba(10,80,50,.5) 50%, rgba(10,80,50,.2) 100%);
}

.claim-content {
    position: relative;
    z-index: 1;
    padding: 28px 32px;
    width: 100%;
}

.claim-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.claim-text {
    font-size: 16px;
    line-height: 1.5;
    opacity: .9;
    margin-bottom: 18px;
    max-width: 520px;
}

.claim-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.claim-actions .btn-primary {
    background: #fff;
    color: var(--c-primary);
    border-color: #fff;
}
.claim-actions .btn-primary:hover {
    background: rgba(255,255,255,.9);
    color: var(--c-link-d);
}

.claim-actions .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.5);
}
.claim-actions .btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,.12);
    color: #fff;
}

@media (max-width: 600px) {
    .claim-section { height: 220px; }
    .claim-content { padding: 22px 20px; }
    .claim-title { font-size: 22px; }
    .claim-bg { animation: none; }
    .claim-actions { flex-direction: column; }
    .claim-actions .btn { width: 100%; justify-content: center; }
}

/* ---- News Hero Banner ------------------------------------- */

.news-hero {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    text-decoration: none;
    color: #fff;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}
.news-hero:hover {
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: #fff;
}

.news-hero-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.news-hero:hover .news-hero-img { transform: scale(1.02); }

@media (max-width: 600px) {
    .news-hero-img { height: 240px; }
}

.news-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 28px 24px;
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}

.news-hero-meta {
    font-size: 13px;
    opacity: .85;
    margin-bottom: 6px;
    font-weight: 500;
}

.news-hero-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

@media (max-width: 600px) {
    .news-hero-title { font-size: 20px; }
    .news-hero-overlay { padding: 24px 18px 18px; }
}

.news-hero-excerpt {
    font-size: 15px;
    line-height: 1.45;
    opacity: .9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero without cover image: colored background */
.news-hero-no-img {
    background: var(--c-primary);
    min-height: 200px;
    display: flex;
    align-items: flex-end;
}
.news-hero-no-img .news-hero-overlay {
    position: relative;
    background: none;
    padding: 28px;
    width: 100%;
}

/* ---- Next Water Event ------------------------------------- */

.next-water-event {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.next-water-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-water-body {
    display: flex;
    gap: 20px;
    align-items: center;
}

.next-water-date {
    flex-shrink: 0;
    text-align: center;
    min-width: 64px;
}

.next-water-day {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: var(--c-text);
}

.next-water-month {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-muted);
    margin-top: 4px;
}

.next-water-info {
    flex: 1;
    min-width: 0;
}

.next-water-info h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.next-water-info h3 a { color: var(--c-text); text-decoration: none; }
.next-water-info h3 a:hover { color: var(--c-primary); }

.next-water-meta {
    font-size: 13.5px;
    color: var(--c-muted);
    margin-bottom: 6px;
}

.next-water-countdown {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-primary);
}

.next-water-countdown .countdown-days {
    font-size: 28px;
    font-weight: 800;
}

.next-water-action {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .next-water-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .next-water-date {
        display: flex;
        gap: 8px;
        align-items: baseline;
    }
    .next-water-month { margin-top: 0; }
    .next-water-action { width: 100%; }
    .next-water-action .btn { width: 100%; justify-content: center; }
}

[data-theme="dark"] .next-water-event { background: var(--c-surface); border-color: var(--c-border); }

/* ---- Winter Training Card ---------------------------------- */

.winter-training-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #e8f4fc;
    border: 1px solid #c4dff0;
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 24px;
}

.winter-training-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.winter-training-body { flex: 1; min-width: 0; }

.winter-training-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #378ADD;
    margin-bottom: 2px;
}

.winter-training-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}
.winter-training-body h3 a { color: var(--c-text); text-decoration: none; }
.winter-training-body h3 a:hover { color: #378ADD; }

.winter-training-meta {
    font-size: 13px;
    color: var(--c-muted);
}

[data-theme="dark"] .winter-training-card {
    background: #1a2a3a;
    border-color: #2c3a47;
}
[data-theme="dark"] .winter-training-label { color: #4da3ff; }
[data-theme="dark"] .winter-training-body h3 a:hover { color: #4da3ff; }

@media (max-width: 600px) {
    .winter-training-card { flex-direction: column; align-items: flex-start; }
    .winter-training-card .btn { width: 100%; justify-content: center; }
}

/* ---- News Cards (grid) ------------------------------------ */

.news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .news-list { grid-template-columns: 1fr; }
}

.news-card {
    position: relative;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
}
.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Stretched link: entire card is clickable */
.news-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.news-card-has-img {
    display: grid;
    grid-template-columns: 1fr;
}

.news-card-img {
    overflow: hidden;
    background: #f0f0f0;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/10;
    transition: transform .3s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.03); }

.news-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-meta {
    font-size: 12.5px;
    color: var(--c-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.news-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}

.news-card-body h3 a { color: var(--c-text); text-decoration: none; }
.news-card:hover .news-card-body h3 a { color: var(--c-primary); }

.news-card-excerpt {
    font-size: 14.5px;
    color: var(--c-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Event Sidebar ---------------------------------------- */

.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sidebar-card-header {
    padding: 14px 18px;
    border-bottom: 2px solid var(--c-primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.event-list { list-style: none; }

.event-item {
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--c-border);
    transition: background var(--transition);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.event-item:last-child { border-bottom: none; }
.event-item:hover { background: #f0fdf4; text-decoration: none; }

.event-item-date {
    flex-shrink: 0;
    width: 46px;
    text-align: center;
    padding-top: 2px;
}

.event-item-day {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: var(--c-text);
}

.event-item-month {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-muted);
    margin-top: 2px;
}

.event-item-body { flex: 1; min-width: 0; }

.event-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 3px;
}
.event-item-title a { color: var(--c-text); }
.event-item-title a:hover { color: var(--c-primary); text-decoration: none; }

.event-item-info {
    font-size: 12px;
    color: var(--c-muted);
}

.event-type-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.sidebar-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--c-border);
    text-align: center;
}

.sidebar-footer a {
    font-size: 14px;
    font-weight: 500;
}

/* ---- Empty State ------------------------------------------ */

.empty-hint {
    color: var(--c-muted);
    font-size: 14px;
    padding: 20px 0;
}

/* ---- Footer ----------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--c-border);
    padding: 28px 24px;
    text-align: center;
    font-size: 13.5px;
    color: var(--c-muted);
    margin-top: 48px;
}

.site-footer a { color: var(--c-muted); }
.site-footer a:hover { color: var(--c-text); }

.footer-affiliations {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 12px;
}

.footer-affiliations-label {
    font-size: 12px;
    color: var(--c-muted);
}

.footer-affiliation-logo {
    height: 32px;
    width: auto;
    opacity: .6;
    transition: opacity var(--transition);
}
.footer-affiliation-logo:hover { opacity: 1; }

[data-theme="dark"] .footer-affiliation-logo {
    background: rgba(255,255,255,.9);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ---- Badges ----------------------------------------------- */

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* ---- Events Page ------------------------------------------ */

.events-page { max-width: 820px; }

.events-page .section-header {
    flex-wrap: wrap;
}

.events-year-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.events-year-nav .badge { text-decoration: none; cursor: pointer; }

.events-month-group { margin-bottom: 28px; }

.events-month-label {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-border);
}

.events-month-list { display: flex; flex-direction: column; gap: 8px; }

.event-row {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 14px 18px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
    cursor: pointer;
}
.event-row:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }

.event-row-date {
    flex-shrink: 0;
    width: 60px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.event-row-wday { font-size: 12px; color: var(--c-muted); font-weight: 500; }
.event-row-day { font-size: 20px; font-weight: 800; }
.event-row-range { font-size: 11px; color: var(--c-muted); width: 100%; }

.event-row-body { flex: 1; min-width: 0; }

.event-row-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.event-row-title a { color: var(--c-text); }
.event-row-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.event-row:hover .event-row-title a { color: var(--c-primary); }

.event-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    color: var(--c-muted);
    align-items: center;
}

/* ---- Event Detail ----------------------------------------- */

.event-detail { max-width: 760px; }

.event-detail-cover {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.event-detail-cover img { width: 100%; max-height: 420px; object-fit: cover; }

.event-detail-header {
    padding-left: 16px;
    margin-bottom: 24px;
}

.event-detail-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-top: 8px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.event-info-list {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 6px 16px;
    margin-bottom: 24px;
    font-size: 14px;
}

.event-info-list dt {
    font-weight: 600;
    color: var(--c-muted);
    font-size: 13px;
}

.event-info-list dd { margin: 0; }

.event-description {
    margin-bottom: 24px;
    line-height: 1.7;
}

.event-external-link {
    margin-bottom: 24px;
}

.event-external-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
}

.event-attachments { margin-bottom: 24px; }
.event-attachments h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.event-attachments ul { list-style: none; }
.event-attachments li { padding: 4px 0; }

.event-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}
.event-attachment-link:hover { border-color: var(--c-primary); text-decoration: none; }

.event-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.event-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: var(--c-text);
    transition: border-color var(--transition), background var(--transition);
}
.event-link-card:hover {
    border-color: var(--c-primary);
    background: #f0fdf4;
    text-decoration: none;
}

.event-link-icon { font-size: 20px; }

[data-theme="dark"] .event-link-card { background: var(--c-surface); border-color: var(--c-border); }
[data-theme="dark"] .event-link-card:hover { background: rgba(52,211,153,.08); border-color: var(--c-primary); }

.event-interest {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.event-interest h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}
.event-interest .contact-form { max-width: 480px; }
.event-interest .form-group { margin-bottom: 12px; }
.event-interest label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
.event-interest input[type="text"],
.event-interest input[type="email"],
.event-interest textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--c-surface);
}
.event-interest textarea { resize: vertical; min-height: 80px; }
.event-interest input:focus,
.event-interest textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(29,158,117,.12);
}
.event-interest .form-actions { margin-top: 16px; display: flex; gap: 10px; }

[data-theme="dark"] .event-interest { background: var(--c-surface); border-color: var(--c-border); }
[data-theme="dark"] .event-interest input,
[data-theme="dark"] .event-interest textarea { background: var(--c-bg); border-color: var(--c-border); color: var(--c-text); }

.event-actions {
    padding-top: 16px;
    border-top: 1px solid var(--c-border);
}

/* ---- Article Detail (News / Reports) ---------------------- */

.article-detail { max-width: 740px; }

.article-cover {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.article-cover img { width: 100%; max-height: 440px; object-fit: cover; }

.article-header {
    margin-bottom: 32px;
}

.article-header h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -.02em;
}

.article-meta { margin-bottom: 4px; }

/* Editor.js rendered content */
.ejs-content { line-height: 1.7; }
.ejs-content p { margin-bottom: 16px; }
.ejs-content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.ejs-content h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.ejs-content h4 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
.ejs-content ul, .ejs-content ol { margin: 0 0 16px 24px; }
.ejs-content li { margin-bottom: 4px; }
.ejs-content blockquote {
    border-left: 3px solid var(--c-primary);
    padding: 10px 16px;
    margin: 16px 0;
    background: var(--c-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.ejs-content blockquote footer { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.ejs-content hr { border: none; border-top: 1px solid var(--c-border); margin: 28px 0; }

.ejs-image { margin: 20px 0; }
.ejs-image img { border-radius: var(--radius); width: 100%; }
.ejs-image figcaption { font-size: 13px; color: var(--c-muted); margin-top: 6px; text-align: center; }

/* Image size variants */
.ejs-image--small { width: 33%; }
.ejs-image--medium { width: 50%; }
.ejs-image--large { width: 75%; }
.ejs-image--full { width: 100%; }

/* Image alignment + text wrap */
.ejs-image--left { float: left; margin: 4px 20px 12px 0; }
.ejs-image--right { float: right; margin: 4px 0 12px 20px; }
.ejs-image--center { margin-left: auto; margin-right: auto; }

/* Clear float after content with floated images */
.ejs-content::after { content: ''; display: table; clear: both; }

@media (max-width: 600px) {
    .ejs-image--small, .ejs-image--medium { width: 50%; }
    .ejs-image--large { width: 75%; }
}

.report-album-link {
    margin: 28px 0;
    padding: 14px 18px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.report-album-link a { font-weight: 600; font-size: 15px; }

.reports-page { max-width: 800px; }

.event-link-box { margin-top: 24px; }
.event-link-box-inner {
    display: block; padding: 12px 16px; background: var(--c-bg);
    border-radius: var(--radius); text-decoration: none; color: var(--c-text);
    transition: background .15s;
}
.event-link-box-inner:hover { background: var(--c-surface); }
.event-link-box-inner strong { display: block; margin: 2px 0 4px; }
.event-link-box-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }

.article-footer {
    padding-top: 20px;
    margin-top: 32px;
    border-top: 1px solid var(--c-border);
}

/* ---- Pagination ------------------------------------------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--c-border);
}

.pagination a { font-weight: 500; }

/* ---- Gallery / Albums ------------------------------------- */

.gallery-page { max-width: 900px; }

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gallery-toolbar { margin-bottom: 20px; }

.gallery-search {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--c-surface);
    color: var(--c-text);
    margin-bottom: 12px;
}
.gallery-search:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(29,158,117,.12);
}
[data-theme="dark"] .gallery-search { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); }

.gallery-tag-badge {
    background: var(--c-bg);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.gallery-tag-badge:hover {
    border-color: var(--c-primary);
    background: #f0fdf4;
    color: var(--c-primary);
    text-decoration: none;
}
.gallery-tag-active {
    background: var(--c-primary) !important;
    color: #fff !important;
    border-color: var(--c-primary) !important;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.album-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--c-text);
    transition: box-shadow var(--transition), transform var(--transition);
}
.album-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); text-decoration: none; }

.album-card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
}
.album-card-img img { width: 100%; height: 100%; object-fit: cover; }

.album-card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    font-size: 13px;
}

.album-card-body { padding: 14px 16px; }
.album-card-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; line-height: 1.35; }

/* Album detail page */
.album-page { max-width: 1000px; }

.album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
    color: var(--c-muted);
    margin-bottom: 16px;
    align-items: center;
}

.album-description { margin-bottom: 20px; color: var(--c-muted); }

.album-links {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
}
.album-links a { font-weight: 500; }

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

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #f0f0f0;
    display: block;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ---- Lightbox --------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.lightbox-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.lightbox-caption {
    color: rgba(255,255,255,.8);
    font-size: 14px;
    text-align: center;
}

.lightbox-dl-btn {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 6px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.lightbox-dl-btn:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
    text-decoration: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    transition: color .15s;
    font-family: inherit;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: #fff; }

.lightbox-close { top: 16px; right: 20px; font-size: 36px; line-height: 1; }
.lightbox-prev  { left: 16px; top: 50%; transform: translateY(-50%); font-size: 48px; }
.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); font-size: 48px; }

/* ---- Contact ---------------------------------------------- */

.contact-page { max-width: 700px; }
.contact-page h1 { font-size: 26px; font-weight: 800; margin-bottom: 20px; letter-spacing: -.02em; }
.contact-page h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 8px;
}

.contact-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    margin-top: 16px;
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { font-size: 15px; margin-bottom: 0; }

@media (max-width: 600px) {
    .contact-info-grid { grid-template-columns: 1fr; }
}
.contact-intro { color: var(--c-muted); margin-bottom: 24px; }

.contact-form .form-group { margin-bottom: 16px; }
.contact-form label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--c-text); margin-bottom: 4px;
    text-transform: none; letter-spacing: 0;
}
.contact-form .req { color: #dc2626; }
.contact-form .form-hint { font-size: 11px; color: var(--c-muted); margin-top: 2px; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form textarea {
    width: 100%; padding: 8px 12px;
    border: 1px solid var(--c-border); border-radius: var(--radius);
    font-size: 15px; font-family: inherit; background: var(--c-surface);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(29,158,117,.12);
}

.contact-form input[type="file"] {
    font-size: 13px; padding: 6px 0; color: var(--c-text);
}
.contact-form input[type="file"]::file-selector-button {
    padding: 6px 14px; border: 1px solid var(--c-border); border-radius: var(--radius);
    background: var(--c-surface); color: var(--c-text); font-size: 13px;
    font-weight: 500; font-family: inherit; cursor: pointer; margin-right: 10px;
    transition: filter .15s;
}
.contact-form input[type="file"]::file-selector-button:hover { filter: brightness(.92); }

.contact-form .form-actions { margin-top: 20px; }
.contact-form .btn-full { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }

.contact-success {
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: var(--radius); padding: 24px; text-align: center;
}
.contact-success h2 { font-size: 18px; color: #166534; margin-bottom: 8px; }
.contact-error {
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
    border-radius: var(--radius); padding: 10px 14px; margin-bottom: 16px; font-size: 14px;
}

/* ---- Static pages ----------------------------------------- */

.static-page { max-width: 780px; }
.static-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 24px; letter-spacing: -.02em; }
.static-page-content { line-height: 1.7; }
.static-page-content p { margin-bottom: 14px; }
.static-page-content h2 { font-size: 19px; font-weight: 700; margin: 24px 0 10px; }
.static-page-content h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.static-page-content ul, .static-page-content ol { margin: 0 0 14px 24px; }
.static-page-content li { margin-bottom: 4px; }
.static-page-content a { font-weight: 500; }

/* Static page with image (text left, image right) */
.static-page-with-image {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 640px) {
    .static-page-with-image { grid-template-columns: 1fr; }
    .static-page-aside { order: -1; }
}

.static-page-aside { position: sticky; top: 72px; }

.page-image-link {
    display: block;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s;
}
.page-image-link:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.page-image-link img { width: 100%; height: auto; display: block; }

.page-image-caption {
    display: block;
    font-size: 11px;
    color: var(--c-muted);
    margin-top: 6px;
    text-align: center;
    line-height: 1.3;
}

/* ---- Page Hero (statische Seiten mit Hero-Bild) ----------- */

.page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    color: #fff;
}

.page-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    animation: pageHeroZoom 14s ease-in-out infinite alternate;
}

@keyframes pageHeroZoom {
    from { transform: scale(1.02); }
    to   { transform: scale(1.12); }
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 50%, transparent 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 32px 28px;
    width: 100%;
}

.page-hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.page-hero-content p {
    font-size: 17px;
    line-height: 1.5;
    opacity: .9;
    max-width: 560px;
    margin-bottom: 16px;
}

.page-hero-content .btn-primary {
    background: #fff;
    color: var(--c-text);
    border-color: #fff;
}
.page-hero-content .btn-primary:hover {
    background: rgba(255,255,255,.9);
}

.page-hero-content .btn-secondary {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: rgba(255,255,255,.4);
}
.page-hero-content .btn-secondary:hover {
    background: rgba(255,255,255,.25);
    border-color: #fff;
    color: #fff;
}

.page-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Farbvarianten fuer page-hero */
.page-hero-blue .page-hero-overlay {
    background: linear-gradient(to top, rgba(0,40,90,.8) 0%, rgba(0,40,90,.35) 50%, rgba(0,40,90,.1) 100%);
}
.page-hero-green .page-hero-overlay {
    background: linear-gradient(to top, rgba(10,80,50,.8) 0%, rgba(10,80,50,.35) 50%, rgba(10,80,50,.1) 100%);
}

@media (max-width: 600px) {
    .page-hero { min-height: 260px; }
    .page-hero img { animation: none; }
    .page-hero-content { padding: 24px 20px; }
    .page-hero-content h1 { font-size: 24px; }
    .page-hero-actions { flex-direction: column; }
    .page-hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero img { animation: none; }
}

/* ---- Page Feature Cards (z.B. Highlights einer Seite) ----- */

.page-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.page-feature {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.page-feature:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.page-feature-icon {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1;
}

.page-feature h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-feature p {
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.5;
}

[data-theme="dark"] .page-feature { background: var(--c-surface); border-color: var(--c-border); }

/* ---- Page CTA (Call to Action Box) ------------------------ */

.page-cta {
    margin-top: 32px;
    padding: 28px 32px;
    background: var(--c-primary);
    border-radius: var(--radius);
    color: #fff;
    text-align: center;
}

.page-cta h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-cta p {
    font-size: 16px;
    opacity: .9;
    margin-bottom: 18px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.page-cta .page-hero-actions { justify-content: center; }

.page-cta .btn-primary {
    background: #fff;
    color: var(--c-primary);
    border-color: #fff;
}
.page-cta .btn-primary:hover { background: rgba(255,255,255,.9); }

.page-cta .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.5);
}
.page-cta .btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,.12);
    color: #fff;
}

[data-theme="dark"] .page-cta { background: var(--c-primary); }

/* Board (Vorstand) grid */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.board-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.board-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .02em;
    object-fit: cover;
}

.board-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.board-role {
    font-size: 13px;
    color: var(--c-muted);
    margin-top: 2px;
}

[data-theme="dark"] .board-card { background: var(--c-surface); border-color: var(--c-border); }

/* Page cards grid (Zielgruppen etc.) */
.page-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.page-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}
.page-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.page-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-card p {
    font-size: 14.5px;
    color: var(--c-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.page-card-link {
    font-size: 14px;
    font-weight: 600;
}

[data-theme="dark"] .page-card { background: var(--c-surface); border-color: var(--c-border); }

/* Breadcrumb */
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--c-muted);
    margin-bottom: 12px;
}
.page-breadcrumb a { font-weight: 500; }

/* Child pages */
.page-children {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--c-border);
}
.page-children h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.page-children ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.page-children a {
    display: block;
    padding: 10px 14px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: border-color .15s, background .15s;
}
.page-children a:hover { border-color: var(--c-primary); background: #f0fdf4; text-decoration: none; }

/* Downloads */
.page-downloads {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--c-border);
}
.page-downloads h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.page-downloads ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.page-downloads a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-weight: 500;
    transition: border-color .15s;
}
.page-downloads a:hover { border-color: var(--c-primary); text-decoration: none; }

.download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #dc2626;
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    flex-shrink: 0;
}

/* Related pages */
.page-related {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--c-border);
}
.page-related h3 { font-size: 13px; font-weight: 600; color: var(--c-muted); margin-bottom: 6px; }
.page-related ul { list-style: none; display: flex; gap: 12px; }
.page-related a { font-size: 14px; font-weight: 500; }

/* Pfingstfahrten table */
.page-pfingstfahrten {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--c-border);
}
.page-pfingstfahrten h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.page-pfingstfahrten > p { font-size: 14px; color: var(--c-muted); margin-bottom: 14px; }

.pfingstfahrten-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.pfingstfahrten-table th {
    text-align: left;
    padding: 6px 10px;
    background: var(--c-bg);
    border-bottom: 2px solid var(--c-border);
    font-size: 12px;
    font-weight: 700;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pfingstfahrten-table td {
    padding: 5px 10px;
    border-bottom: 1px solid var(--c-border);
}
.pfingstfahrten-table tr:hover td { background: #fafbfc; }
.pf-jahr { font-weight: 600; white-space: nowrap; width: 90px; }
.pfingstfahrten-table .row-muted td { color: var(--c-muted); font-style: italic; }

.pf-hidden { display: none; }
.pf-expanded .pf-hidden { display: table-row; }
.pf-show-all-row td { text-align: center; padding: 12px 10px; }

.pf-report-col {
    width: 36px;
    text-align: right;
    padding-right: 10px;
}

.pf-report-icon {
    font-size: 18px;
    text-decoration: none;
    opacity: .6;
    transition: opacity var(--transition);
}
.pf-report-icon:hover { opacity: 1; text-decoration: none; }

.pf-report-link {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-primary);
    white-space: nowrap;
}

/* ---- Utilities -------------------------------------------- */

/* ---- Theme toggle ----------------------------------------- */

.theme-toggle {
    background: none;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    cursor: pointer;
    padding: 4px 10px;
    font-size: 16px;
    line-height: 1;
    color: var(--c-muted);
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.theme-toggle:hover { background: var(--c-bg); color: var(--c-text); }

/* Light mode: show sun, hide moon */
.theme-icon-dark { display: none; }
.theme-icon-light { display: inline; }
[data-theme="dark"] .theme-icon-dark { display: inline; }
[data-theme="dark"] .theme-icon-light { display: none; }

/* Bot-safe contacts (noscript fallback) */
.safe-contact { cursor: default; color: var(--c-muted); font-style: italic; }

/* ---- Buttons (public) ------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    background: var(--c-surface);
    color: var(--c-text);
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}
.btn-primary:hover { background: var(--c-link-d); border-color: var(--c-link-d); color: #fff; }

.btn-secondary { background: var(--c-bg); }
.btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary); }

[data-theme="dark"] .btn { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); }
[data-theme="dark"] .btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #111; }
[data-theme="dark"] .btn-secondary { background: var(--c-bg); }

.muted { color: var(--c-muted); }
.text-sm { font-size: 13px; }
