/* ===========================================================================
   DCNH Landesverband Süd — Exact 1:1 Elementor Design Replication
   Colors, typography, layout matching https://lvsued-dcnh.de
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=PT+Sans+Narrow:wght@400;500;600;700&display=swap');

:root {
    --e-global-color-primary: #68A94A;
    --e-global-color-secondary: #54595F;
    --e-global-color-text: #7A7A7A;
    --e-global-color-accent: #61CE70;
    --primary: #68A94A;
    --secondary: #54595F;
    --text: #7A7A7A;
    --accent: #61CE70;
    --banner-bg: #79BD5D;
    --divider: #ACB4AF;
    --footer-bg: #F2F3F2;
}

/* ── Global Typography & Body ─────────────────────────────────────────────── */
body {
    font-family: "PT Sans Narrow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 30px;
    color: #7A7A7A;
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
}

/* ── Headings ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.elementor-post__title,
.elementor-post__title a,
.wp-block-heading {
    font-family: "PT Sans Narrow", sans-serif;
    color: #68A94A !important;
    font-weight: 600;
    margin-top: 0;
}

h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong,
h1 b, h2 b, h3 b, h4 b, h5 b, h6 b,
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.elementor-heading-title strong, .elementor-heading-title b,
.elementor-heading-title span,
.elementor-post__title strong, .elementor-post__title b,
.wp-block-heading strong, .wp-block-heading b,
.wp-block-heading span {
    color: #68A94A !important;
    font-family: inherit;
    font-weight: 700;
}

h1, .elementor-heading-title {
    font-size: 42px;
    line-height: 1.15;
}

h2 {
    font-size: 38px;
    line-height: 1.2;
}

h3 {
    font-size: 28px;
    line-height: 1.3;
}

h4 {
    font-size: 22px;
    line-height: 1.3;
}

h5 {
    font-size: 18px;
    line-height: 1.3;
}

h6 {
    font-size: 16px;
    line-height: 1.3;
}

/* ── Paragraphs & Links ───────────────────────────────────────────────────── */
p, .prose p, .wp-block-paragraph {
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 30px;
    color: #7A7A7A;
    margin-top: 0;
    margin-bottom: 1.2em;
}

strong, b, .wp-block-paragraph strong {
    font-weight: 700;
    color: #54595F;
}

a {
    color: #CC3366;
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: #AA2244;
}

/* ── Main Navigation (Sticky Top Bar) ─────────────────────────────────────── */
.dcnh-navbar {
    background-color: #FFFFFF;
    min-height: 90px;
    display: flex;
    align-items: center;
}

.dcnh-nav-item {
    font-family: "PT Sans Narrow", Sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1em;
    letter-spacing: -0.2px;
    color: #68A94A;
    padding: 14px 20px;
    margin: 2px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
}

.dcnh-nav-item:hover,
.dcnh-nav-item.active {
    background-color: #68A94A;
    color: #FFFFFF !important;
}

/* ── Banner (#myshadow) ───────────────────────────────────────────────────── */
#myshadow {
    background-color: #79BD5D !important;
    box-shadow:
        inset 0 12px 12px -12px rgba(0,0,0,0.4),
        inset 0 -12px 12px -12px rgba(0,0,0,0.4) !important;
    position: relative;
    z-index: 10;
}

.banner-title {
    font-family: "PT Sans Narrow", Sans-serif;
    font-size: 57px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 59px;
    color: #FFFCFC;
    margin: 0;
}

@media (max-width: 1024px) {
    .banner-title {
        font-size: 41px;
        line-height: 44px;
    }
}

@media (max-width: 767px) {
    .banner-title {
        font-size: 42px;
        line-height: 46px;
        text-align: center;
    }
}

/* ── Floating Green Sidebar Box ───────────────────────────────────────────── */
.dcnh-sidebar-box {
    background-color: #68A94A;
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
    max-width: 100%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1023px) {
    .dcnh-sidebar-box {
        display: none !important;
    }
}

.dcnh-sidebar-link {
    display: block;
    font-family: "PT Sans Narrow", Sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 27px;
    color: #FFFFFF !important;
    padding: 10px 24px;
    text-decoration: none;
    transition: background-color 0.15s;
}

.dcnh-sidebar-link:hover,
.dcnh-sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.18);
    color: #FFFFFF !important;
}

/* ── Elementor Post & Divider ─────────────────────────────────────────────── */
.elementor-divider-separator {
    display: block;
    width: 100%;
    border-top: 1px solid #ACB4AF;
    margin: 15px 0 25px 0;
}

.elementor-post {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.elementor-post:last-child {
    border-bottom: none;
}

/* ── WordPress & Elementor Image Alignment & Captions ─────────────────────── */
.alignleft,
figure.alignleft,
img.alignleft,
.wp-caption.alignleft,
.wp-block-image.alignleft {
    float: left;
    margin: 4px 24px 14px 0;
    max-width: 100%;
}

.alignright,
figure.alignright,
img.alignright,
.wp-caption.alignright,
.wp-block-image.alignright {
    float: right;
    margin: 4px 0 14px 24px;
    max-width: 100%;
}

.aligncenter,
figure.aligncenter,
img.aligncenter,
.wp-caption.aligncenter,
.wp-block-image.aligncenter {
    display: block;
    margin: 0 auto 16px auto;
    max-width: 100%;
    clear: both;
}

.wp-caption {
    margin: 0 24px 16px 0;
    max-width: 100%;
}

.wp-caption.alignleft {
    float: left;
    margin: 4px 24px 14px 0;
}

.wp-caption.alignright {
    float: right;
    margin: 4px 0 14px 24px;
}

.wp-caption.aligncenter {
    float: none;
    margin: 0 auto 16px auto;
    display: block;
    clear: both;
}

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

.wp-caption-text,
figcaption.wp-caption-text,
figcaption {
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 15px;
    line-height: 20px;
    font-style: italic;
    color: #7A7A7A;
    margin-top: 6px;
    margin-bottom: 0;
    text-align: left;
}

.elementor-post::after,
.elementor-post__content::after,
.elementor-widget-text-editor::after,
.e-con-inner::after,
article::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 640px) {
    .alignleft,
    figure.alignleft,
    img.alignleft,
    .wp-caption.alignleft,
    .alignright,
    figure.alignright,
    img.alignright,
    .wp-caption.alignright {
        float: none;
        margin: 0 0 16px 0;
        width: 100% !important;
        max-width: 100%;
    }
}

.elementor-post__title, .elementor-post__title a {
    font-family: "PT Sans Narrow", Sans-serif !important;
    color: #68A94A !important;
    font-size: 38px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    display: inline-block;
    margin-bottom: 8px;
}

.elementor-post__title a:hover {
    color: #61CE70 !important;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.dcnh-footer {
    background-color: #F2F3F2;
    box-shadow: inset 0px 10px 15px -10px rgba(0,0,0,0.2);
    padding: 50px 0;
}

.dcnh-footer-caption {
    font-family: "PT Sans Narrow", Sans-serif;
    font-size: 16px;
    color: #7A7A7A;
    margin-top: 8px;
}

.dcnh-footer-link {
    font-family: "PT Sans Narrow", Sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #68A94A;
    text-decoration: none;
    margin: 0 12px;
}

.dcnh-footer-link:hover {
    color: #61CE70;
}

/* ── Form Styles ──────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
textarea {
    font-family: "PT Sans Narrow", Sans-serif;
    font-size: 18px;
    border: 1px solid #ACB4AF;
    border-radius: 4px;
    padding: 10px 14px;
    width: 100%;
    color: #54595F;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #68A94A;
    outline: none;
}

a.dcnh-btn,
button.dcnh-btn,
.dcnh-btn {
    background-color: #68A94A !important;
    color: #FFFFFF !important;
    font-family: "PT Sans Narrow", Sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

a.dcnh-btn:hover,
button.dcnh-btn:hover,
.dcnh-btn:hover {
    background-color: #5b9541 !important;
    color: #FFFFFF !important;
}

a.dcnh-btn *,
.dcnh-btn *,
a.text-white,
a.text-white *,
.text-white,
.text-white * {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* ── Images ───────────────────────────────────────────────────────────────── */
img {
    max-width: 100%;
    height: auto;
}

/* ── Elementor Gallery 1:1 ────────────────────────────────────────────────── */
.elementor-gallery__container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 35px 0;
    clear: both;
}

.e-gallery-item {
    position: relative;
    overflow: hidden;
    display: block;
    background-color: #f3f4f6;
    height: 220px;
    flex: 1 1 300px;
}

.e-gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.e-gallery-item:hover .e-gallery-image {
    transform: scale(1.05);
}

.elementor-gallery-item__overlay {
    position: absolute;
    inset: 0;
    transition: background-color 0.3s ease;
}

.e-gallery-item:hover .elementor-gallery-item__overlay {
    background-color: rgba(0, 0, 0, 0.15);
}

/* ── Lightbox Overlay ─────────────────────────────────────────────────────── */
#lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
    user-select: none;
}

#lightbox-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 15, 20, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    color: #f3f4f6;
}

.lightbox-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.05em;
    min-width: 80px;
}

.lightbox-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #e5e7eb;
    text-align: center;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}

.lightbox-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 20px 16px;
    min-height: 0;
    overflow: hidden;
}

.lightbox-image-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 0;
}

.lightbox-img {
    max-width: 90vw;
    max-height: calc(100vh - 100px);
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    margin: 0 8px;
    flex-shrink: 0;
    z-index: 20;
}

.lightbox-btn:hover {
    background: #68A94A;
    color: #ffffff;
    transform: scale(1.1);
}

.lightbox-btn.hidden {
    display: none;
}

.lightbox-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #68A94A;
    border-radius: 50%;
    animation: lb-spin 0.8s linear infinite;
    position: absolute;
}

@keyframes lb-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .lightbox-header {
        padding: 10px 14px;
    }
    .lightbox-btn {
        width: 40px;
        height: 40px;
        margin: 0 2px;
    }
    .lightbox-img {
        max-width: 96vw;
        max-height: calc(100vh - 80px);
    }
}
