/* WieseCMS Frontend Theme */
:root {
    --site-primary: #2e7d32;
    --site-secondary: #ffffff;
    --site-accent: #ff6f00;
    --site-text: #1a1a1a;
    --site-bg: #f5f5f5;
    --site-font-heading: Georgia, serif;
    --site-font-body: Arial, sans-serif;
    --nav-w: 220px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }

body {
    font-family: var(--site-font-body);
    color: var(--site-text);
    background: var(--site-bg);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.site-header {
    background: var(--site-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none; /* Hidden on desktop, shown on mobile */
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}
.site-brand { color: #fff; text-decoration: none; }
.site-logo { max-height: 40px; }
.site-name { font-family: var(--site-font-heading); font-size: 1.2rem; font-weight: 700; }
.mobile-nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.2s;
}

/* ── Layout ── */
.site-layout {
    display: flex;
    flex: 1 0 auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Navigation Sidebar ── */
.site-nav {
    width: var(--nav-w);
    flex-shrink: 0;
    align-self: stretch;
    background: var(--site-primary);
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.nav-header {
    padding: 24px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.nav-logo { max-width: 100%; max-height: 60px; object-fit: contain; }
.nav-site-name {
    font-family: var(--site-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--site-nav-text);
    line-height: 1.3;
}
.nav-links {
    list-style: none;
    padding: 12px 0;
    flex: 1;
}
.nav-link {
    display: block;
    padding: 10px 20px;
    color: var(--site-nav-text);
    text-decoration: none;
    font-family: var(--site-font-body);
    font-size: 0.95rem;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    opacity: 0.85;
}
.nav-link:hover {
    background: rgba(0,0,0,0.08);
    opacity: 1;
    border-left-color: var(--site-nav-text);
}
.nav-link.active {
    background: rgba(0,0,0,0.12);
    color: var(--site-nav-text);
    font-weight: 700;
    opacity: 1;
    border-left-color: var(--site-accent);
}

/* ── Untermenüs (Submenus): Basis-Stile ── */
.nav-item { position: relative; }
.nav-caret { display: inline-block; font-size: 0.7em; margin-left: 4px; opacity: 0.6; transition: transform 0.2s; }
.nav-children { list-style: none; }
.nav-children-toggle {
    display: none;
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--site-nav-text);
    align-items: center;
    justify-content: center;
}

/* ── Nav Position: Right (mirror of left) ── */
body.nav-right .site-layout { flex-direction: row-reverse; }
body.nav-right .nav-link { border-left: none; border-right: 3px solid transparent; }
body.nav-right .nav-link:hover,
body.nav-right .nav-link.active { border-right-color: var(--site-accent); border-left-color: transparent; }
body.nav-right .nav-link.active { border-right-color: var(--site-accent); }
body.nav-right .footer-inner { padding-left: 16px; padding-right: calc(var(--nav-w) + 24px); }

/* Desktop (links/rechts): Untermenüs als auf-/zuklappbare Gruppen (Akkordeon).
   Die Seite, die gerade aktiv ist, hat ihre Gruppe automatisch offen. */
@media (min-width: 901px) {
    body:not(.nav-top) .nav-item.has-children > .nav-link { padding-right: 40px; }
    body:not(.nav-top) .nav-children-toggle {
        display: flex;
        top: 0; right: 0; bottom: 0;
        width: 40px;
    }
    body:not(.nav-top) .nav-item.has-children > .nav-link > .nav-caret { display: none; }
    body:not(.nav-top) .nav-children {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    body:not(.nav-top) .nav-item.open .nav-children,
    body:not(.nav-top) .nav-item.has-active-child .nav-children {
        max-height: 600px;
    }
    body:not(.nav-top) .nav-children .nav-link {
        padding-left: 36px;
        font-size: 0.9rem;
    }
    body:not(.nav-top) .nav-item.open .nav-children-toggle .nav-caret,
    body:not(.nav-top) .nav-item.has-active-child .nav-children-toggle .nav-caret {
        transform: rotate(180deg);
    }
}

/* Mobile (alle Positionen): Untermenüs bleiben unverändert flach sichtbar,
   wie bisher beim Hamburger-Menü. Kein Dropdown, kein Akkordeon, kein
   "Mehr"-Menü. */
@media (max-width: 900px) {
    .nav-children {
        display: block !important;
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        background: transparent !important;
        padding-left: 16px;
    }
    .nav-children-toggle,
    .nav-caret,
    .nav-more {
        display: none !important;
    }
}

/* ── Nav Position: Top (horizontal bar) ── */
body.nav-top .site-layout { flex-direction: column; }
body.nav-top .site-nav {
    width: 100%;
    height: auto;
    max-height: none;
    align-self: auto;
    position: sticky;
    top: 0;
    left: 0;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: none;
    z-index: 50;
}
body.nav-top .nav-header {
    border-bottom: none;
    border-right: 1px solid rgba(0,0,0,0.15);
    padding: 12px 20px;
    flex-shrink: 0;
}
body.nav-top .nav-logo { max-height: 36px; }
body.nav-top .nav-links {
    display: flex;
    flex-direction: row;
    padding: 0 8px;
    flex: 1;
    overflow-x: auto;
}
body.nav-top .nav-links li { flex-shrink: 0; }
body.nav-top .nav-link {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 16px 16px;
    white-space: nowrap;
    transition: opacity 0.15s;
}
body.nav-top .nav-link:hover { opacity: 0.65; border-bottom-color: transparent; background: transparent; }
body.nav-top .nav-link.active { border-bottom-color: transparent; font-weight: 700; background: transparent; }
body.nav-top .ad-slot-sidebar { display: none; }
body.nav-top .site-header { display: none !important; }
body.nav-top .mobile-nav-toggle { display: none; }
body.nav-top .footer-inner { padding-left: 16px; }

/* Desktop: Untermenüs als Dropdown + "Mehr"-Overflow, wenn nicht alles in
   eine Zeile passt. Auf Mobile (siehe weiter unten) bleibt alles flach. */
@media (min-width: 901px) {
    body.nav-top .nav-links { flex-wrap: nowrap; overflow-x: hidden; }
    body.nav-top .nav-item { flex-shrink: 0; }
    body.nav-top .nav-children {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: var(--site-primary);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        border-radius: 0 0 6px 6px;
        padding: 4px 0;
        z-index: 90;
        flex-direction: column;
    }
    body.nav-top .nav-item.has-children:hover > .nav-children,
    body.nav-top .nav-item.has-children:focus-within > .nav-children,
    body.nav-top .nav-item.has-children.open > .nav-children {
        display: flex;
    }
    body.nav-top .nav-children .nav-link {
        display: block;
        white-space: nowrap;
        border-bottom: none;
        padding: 10px 18px;
        opacity: 0.85;
    }
    body.nav-top .nav-children .nav-link:hover,
    body.nav-top .nav-children .nav-link.active { opacity: 1; background: rgba(0,0,0,0.06); }
    body.nav-top .nav-item.has-children:hover > .nav-link .nav-caret,
    body.nav-top .nav-item.has-children:focus-within > .nav-link .nav-caret,
    body.nav-top .nav-item.has-children.open > .nav-link .nav-caret {
        transform: rotate(180deg);
    }
    /* "Mehr"-Menü: rechtsbündige Dropdown-Liste */
    body.nav-top .nav-more { margin-left: auto; }
    body.nav-top .nav-more .nav-children { left: auto; right: 0; }
    body.nav-top .nav-item.nav-more:hover > .nav-children,
    body.nav-top .nav-item.nav-more.open > .nav-children { display: flex; }
    body.nav-top .nav-more .nav-link:hover .nav-caret,
    body.nav-top .nav-more.open .nav-link .nav-caret { transform: rotate(180deg); }
}

/* Hamburger toggle for the top nav (mobile only) */
.nav-top-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}
.nav-top-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--site-nav-text);
    border-radius: 2px;
    transition: all 0.2s;
}

@media (max-width: 900px) {
    body.nav-top .site-nav {
        flex-direction: column;
        align-items: stretch;
        overflow-x: hidden;
    }
    body.nav-top .nav-top-toggle { display: flex; }
    body.nav-top .nav-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-right: none;
    }
    body.nav-top .nav-links {
        position: fixed;
        left: -100%;
        top: 64px;
        width: 260px;
        height: calc(100vh - 64px);
        flex-direction: column;
        background: var(--site-primary);
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
        transition: left 0.25s;
        z-index: 200;
        overflow-x: hidden;
        overflow-y: auto;
    }
    body.nav-top .site-nav.open .nav-links { left: 0; }
    body.nav-top .nav-links li { flex-shrink: 1; width: 100%; }
    body.nav-top .nav-link {
        display: block;
        width: 100%;
        padding: 14px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        white-space: normal;
    }
    /* Open state: rotate hamburger into an X */
    body.nav-top .site-nav.open .nav-top-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-top .site-nav.open .nav-top-toggle span:nth-child(2) { opacity: 0; }
    body.nav-top .site-nav.open .nav-top-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Main Content ── */
.site-content {
    flex: 1;
    min-width: 0;
    background: var(--site-secondary);
}
.content-inner {
    padding: 32px 40px;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Modules ── */

/* Text */
.mod-text { margin-bottom: 32px; }
.mod-text h1, .mod-text h2, .mod-text h3 {
    font-family: var(--site-font-heading);
    color: var(--site-text);
    margin-bottom: 12px;
    line-height: 1.3;
}
.mod-text h1 { font-size: 2rem; }
.mod-text h2 { font-size: 1.5rem; }
.mod-text h3 { font-size: 1.2rem; }
.mod-text p { margin-bottom: 10px; }

/* Image */
.mod-image { margin-bottom: 32px; }
.mod-image img { max-width: 100%; height: auto; border-radius: 6px; display: block; }
.mod-image.align-center img { margin: 0 auto; }
.mod-image.align-full img { width: 100%; }
.mod-image figcaption { font-size: 0.85rem; color: #777; margin-top: 6px; font-style: italic; }
.mod-image.align-center figcaption { text-align: center; }

/* Text + Image */
.mod-text-image { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 32px; }
.mod-text-image.img-left { direction: rtl; }
.mod-text-image.img-left > * { direction: ltr; }
.mod-text-image img { width: 100%; height: auto; border-radius: 6px; }
.mod-text-image h2 { font-family: var(--site-font-heading); color: var(--site-text); margin-bottom: 10px; font-size: 1.4rem; }

/* Gallery */
.mod-gallery { margin-bottom: 32px; }
.mod-gallery h2 { font-family: var(--site-font-heading); color: var(--site-text); margin-bottom: 16px; font-size: 1.4rem; text-align: center; }
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.gallery-grid.align-left  { justify-content: flex-start; }
.gallery-grid.align-right { justify-content: flex-end; }
.gallery-item { width: 150px; position: relative; overflow: hidden; }
.gallery-item a { display: block; text-decoration: none; }
.gallery-item img { width: 150px; height: 150px; object-fit: cover; display: block; border-radius: 16px; box-shadow: 0 10px 22px rgba(0,0,0,.12); transition: transform 0.2s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption { text-align: center; font-size: 0.85rem; color: var(--site-text); padding: 8px 2px 0; }

/* Divider */
.mod-divider { margin-bottom: 32px; }
.mod-divider.spacing-small { margin-bottom: 16px; }
.mod-divider.spacing-large { margin-bottom: 56px; }
.mod-divider hr { border: none; border-top: 1px solid #ddd; }
.mod-divider.style-dots { text-align: center; }
.mod-divider.style-dots::after { content: '· · ·'; color: #ccc; font-size: 1.2rem; letter-spacing: 6px; }
.mod-divider.style-dots hr { display: none; }
.mod-divider.style-space hr { display: none; }

/* Button */
.mod-button { margin-bottom: 24px; }
.mod-button.align-center { text-align: center; }
.mod-button.align-right { text-align: right; }
.site-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--site-radius);
    font-family: var(--site-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.site-btn.btn-primary { background: var(--site-accent); color: #fff; }
.site-btn.btn-primary:hover { opacity: 0.88; }
.site-btn.btn-outline { background: transparent; color: var(--site-accent); border: 2px solid var(--site-accent); }
.site-btn.btn-outline:hover { background: var(--site-accent); color: #fff; }
.site-btn.btn-text { color: var(--site-accent); padding-left: 0; }
.site-btn.btn-text:hover { text-decoration: underline; }

/* Empty */
.page-empty { padding: 40px 0; color: #999; font-style: italic; }

/* ── Footer ── */
.site-footer {
    background: var(--footer-bg, var(--site-primary));
    color: var(--footer-text, var(--site-nav-text));
    margin-top: auto;
    width: 100%;
}
.site-footer.footer-boxed {
    max-width: 1200px;
    width: calc(100% - 32px);
    margin: 16px auto;
    border-radius: 10px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    font-size: 0.85rem;
    padding-left: calc(var(--nav-w) + 24px);
    opacity: 0.85;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.site-footer.footer-boxed .footer-inner { padding-left: 24px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a,
.footer-copy a { color: inherit; text-decoration: none; }
.footer-links a:hover,
.footer-copy a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .site-layout { flex-direction: column; }
    .site-header { display: block; }
    .site-nav {
        position: fixed;
        left: -100%;
        top: 0;
        width: 260px;
        height: 100vh;
        z-index: 200;
        transition: left 0.25s;
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    }
    .site-nav.open { left: 0; }
    .content-inner { padding: 20px 16px; max-width: 100%; }
    .footer-inner { padding-left: 16px; }
    .mod-text-image { grid-template-columns: 1fr; }
    .mod-text-image.img-left { direction: ltr; }
    .mod-text h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .gallery-item { width: 120px; }
    .gallery-item img { width: 120px; height: 120px; }
}

/* ── News ── */
.news-list { }
.news-list-title { font-family: var(--site-font-heading); color: var(--site-text); font-size: 1.8rem; margin-bottom: 24px; }
.news-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; margin-bottom: 20px; transition: box-shadow 0.2s; }
.news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.news-card-img { width: 200px; height: 140px; object-fit: cover; display: block; }
.news-card-body { padding: 16px 16px 16px 0; }
.news-card-date { font-size: 0.8rem; color: #999; display: block; margin-bottom: 6px; }
.news-card-body h2 { font-family: var(--site-font-heading); font-size: 1.1rem; margin-bottom: 8px; }
.news-card-body h2 a { color: var(--site-text); text-decoration: none; }
.news-card-body h2 a:hover { text-decoration: underline; }
.news-card-body p { font-size: 0.9rem; color: #555; line-height: 1.5; margin-bottom: 10px; }
.news-read-more { font-size: 0.85rem; font-weight: 700; color: var(--site-accent); text-decoration: none; }
.news-read-more:hover { text-decoration: underline; }
.news-article { max-width: 720px; }
.news-hero-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 20px; }
.news-article-meta { font-size: 0.85rem; color: #999; margin-bottom: 8px; }
.news-article-title { font-family: var(--site-font-heading); color: var(--site-text); font-size: 2rem; margin-bottom: 12px; line-height: 1.2; }
.news-article-teaser { font-size: 1.1rem; color: #555; font-style: italic; border-left: 3px solid var(--site-accent); padding-left: 14px; margin-bottom: 20px; }
.news-article-body p { margin-bottom: 14px; line-height: 1.7; }
.news-back { display: inline-block; margin-top: 24px; color: var(--site-accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.news-back:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .news-card { grid-template-columns: 1fr; }
    .news-card-img { width: 100%; height: 180px; }
    .news-card-body { padding: 12px; }
    .news-article-title { font-size: 1.5rem; }
}

/* ── Ads ── */
.ad-slot { text-align: center; margin: 16px 0; overflow: hidden; }
.ad-slot-header  { max-width: 728px; margin: 0 auto 0; }
.ad-slot-footer  { max-width: 728px; margin: 0 auto; }
.ad-slot-sidebar { max-width: 160px; }
.ad-slot-content { max-width: 336px; margin: 24px auto; }
.ad-slot a { display: inline-block; }
.ad-slot img { max-width: 100%; height: auto; display: block; }
.ad-label { font-size: 10px; color: #bbb; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }

/* ── Forms ── */
.mod-form { margin-bottom: 32px; max-width: 600px; }
.site-form { display: flex; flex-direction: column; gap: 0; }
.sform-group { margin-bottom: 16px; }
.sform-group label { display: block; font-size: 13px; font-weight: 600; color: var(--site-text); margin-bottom: 5px; }
.sform-group input[type=text], .sform-group input[type=email], .sform-group input[type=tel], .sform-group select, .sform-group textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #ccc; border-radius: 6px;
    font-size: 15px; font-family: var(--site-font-body); color: var(--site-text);
    background: #fff; transition: border 0.2s;
}
.sform-group input:focus, .sform-group textarea:focus, .sform-group select:focus {
    outline: none; border-color: var(--site-accent); box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.sform-group textarea { resize: vertical; line-height: 1.5; min-height: 100px; }
.sform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sform-submit { margin-top: 8px; }
.form-errors { background: #ffebee; border-left: 3px solid #c62828; padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; }
.form-errors p { color: #c62828; font-size: 13px; margin: 2px 0; }
.form-success { text-align: center; padding: 32px 20px; background: #e8f5e9; border-radius: 8px; }
.form-success-icon { font-size: 2.5rem; color: var(--site-accent); margin-bottom: 10px; }
.form-success p { color: var(--site-text); font-weight: 600; font-size: 1.05rem; }

/* Star rating */
.star-rating { display: flex; flex-direction: row-reverse; gap: 4px; font-size: 1.6rem; }
.star-rating input { display: none; }
.star-rating label { color: #ddd; cursor: pointer; transition: color 0.15s; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: var(--site-accent); }

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

/* ── CMS Content (TinyMCE output) ── */
.cms-content { margin-bottom: 32px; line-height: 1.7; }
.cms-content h1 { font-family: var(--site-font-heading); color: var(--site-text); font-size: 2rem; margin: 0 0 16px; line-height: 1.2; }
.cms-content h2 { font-family: var(--site-font-heading); color: var(--site-text); font-size: 1.4rem; margin: 28px 0 10px; }
.cms-content h3 { font-family: var(--site-font-heading); color: var(--site-text); font-size: 1.15rem; margin: 20px 0 8px; }
.cms-content p  { margin-bottom: 12px; }
.cms-content ul, .cms-content ol { padding-left: 1.5em; margin: 8px 0 14px; }
.cms-content li { margin-bottom: 5px; }
.cms-content strong, .cms-content b { font-weight: 700; }
.cms-content em, .cms-content i { font-style: italic; }
.cms-content a { color: var(--site-accent); text-decoration: underline; }
.cms-content a:hover { opacity: 0.8; }
.cms-content img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 12px auto; }
.cms-content hr { border: none; border-top: 1px solid #ddd; margin: 24px 0; }
.cms-content table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.cms-content td, .cms-content th { border: 1px solid #ddd; padding: 8px 12px; font-size: 0.9rem; }
.cms-content th { background: var(--site-primary); color: var(--site-nav-text); font-weight: 700; }
.cms-content blockquote { border-left: 4px solid var(--site-accent); margin: 16px 0; padding: 10px 16px; background: #fafafa; font-style: italic; color: #555; }

/* ── Lightbox: vergrößerte Bildansicht (Galerie-Klick) ── */
.gallery-lightbox-trigger { cursor: zoom-in; }
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox.open { display: flex; }
body.lightbox-open { overflow: hidden; }
.lightbox-img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-caption {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.85;
    padding: 0 60px;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 6px 10px;
    opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-share {
    position: absolute;
    top: 16px;
    right: 64px;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 8px 10px;
    opacity: 0.8;
}
.lightbox-share:hover { opacity: 1; }
.lightbox-download {
    position: absolute;
    top: 16px;
    right: 108px;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 8px 10px;
    opacity: 0.8;
}
.lightbox-download:hover { opacity: 1; }
.lightbox-share-feedback {
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 36px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 600px) {
    .lightbox-prev, .lightbox-next { width: 42px; height: 42px; font-size: 28px; }
    .lightbox-close { font-size: 24px; top: 10px; right: 12px; }
    .lightbox-share { font-size: 19px; top: 12px; right: 52px; }
    .lightbox-download { font-size: 19px; top: 12px; right: 92px; }
    .lightbox-caption { font-size: 0.8rem; padding: 0 50px; }
}

/* ── Aktions-Leiste (Likes + Seite teilen) ── */
.page-actions-bar { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 0 8px; margin-top: 8px; border-top: 1px solid rgba(128,128,128,0.15); }
.page-action-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--site-accent); color: var(--site-accent); padding: 9px 20px; border-radius: 20px; cursor: pointer; font-size: 0.9rem; transition: background 0.15s, color 0.15s; }
.page-action-btn:hover, .page-action-btn.liked { background: var(--site-accent); color: #fff; }
.page-action-btn:disabled { opacity: .7; cursor: default; }
.page-share-feedback { font-size: 0.82rem; color: var(--site-accent); width: 100%; text-align: center; }

/* ── Sichtungskarte ── */
.sighting-map-wrap { margin: 20px 0; }
.sighting-map-title { margin-bottom: 12px; }
.sighting-leaflet-map { z-index: 0; }
.smap-search-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.smap-search-input { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid rgba(0,0,0,.2); border-radius: 6px; font-size: 14px; }
.smap-search-btn { background: var(--site-accent,#2e7d32); color: #fff; border: none; padding: 9px 16px; border-radius: 6px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.smap-search-btn:hover { opacity: .9; }
.smap-search-feedback { width: 100%; font-size: 12px; min-height: 16px; }
.sighting-form-wrap { background: var(--site-bg, #f5f5f5); border: 1px solid rgba(0,0,0,.1); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.sighting-form-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sighting-coords { font-size: 12px; color: #888; font-family: monospace; }
.sighting-cancel-btn { margin-left: auto; background: none; border: none; font-size: 18px; cursor: pointer; color: #999; }
.sighting-photo-label { display: inline-block; background: var(--site-accent,#2e7d32); color: #fff; padding: 7px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; }
.sighting-submit-btn { background: var(--site-accent,#2e7d32); color: #fff; border: none; padding: 9px 20px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.sighting-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.sighting-feedback { font-size: 13px; margin-top: 8px; }
.sighting-feedback.ok { color: #2e7d32; }
.sighting-feedback.error { color: #c0392b; }
.sighting-hint { font-size: 12px; color: #999; margin-top: 8px; }

/* ── Likes ── */
.likes-wrap { margin: 12px 0; }
.likes-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid var(--site-accent,#2e7d32); color: var(--site-accent,#2e7d32); padding: 7px 16px; border-radius: 20px; font-size: 14px; cursor: pointer; transition: background .15s, color .15s; }
.likes-btn:hover, .likes-btn.liked { background: var(--site-accent,#2e7d32); color: #fff; }
.likes-btn:disabled { opacity: .7; cursor: default; }
.likes-count { font-weight: 600; }

/* ── Social Icons im Footer ── */
.footer-social { display: flex; justify-content: center; gap: 14px; padding: 10px 0 4px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--footer-text, #fff); opacity: 0.85; transition: opacity 0.15s, transform 0.15s; }
.footer-social-link:hover { opacity: 1; transform: scale(1.15); }
.footer-social-link svg { width: 20px; height: 20px; }

/* ── Dekorations-Bild Startseite ── */
.home-deco-image { text-align: center; padding: 24px 0 8px; }
.home-deco-image img { max-width: 200px; width: 100%; height: auto; }

/* ── Galerie-Spruch ── */
.gallery-quote { display: block; font-style: italic; font-size: 0.95rem; color: var(--site-text); margin-bottom: 2px; }
.gallery-caption { display: block; font-size: 0.8rem; color: #888; }
