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

:root {
    --color-primary: #3d6a42; /* Moss Green */
    --color-primary-dark: #2c5331;
    --color-accent: #8b5a2b; /* Earthy Brown */
    --color-accent-dark: #66411f;
    --color-bg-light: #f5f3ef; /* Sand / Beige */
    --color-bg-white: #ffffff;
    --color-text-main: #333333;
    --color-text-muted: #555555;
    --color-warning: #c25e29;
    
    --font-sans: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Nunito', 'Segoe UI', Arial, sans-serif;

    --max-width: 1200px;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 800;
}

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

p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

strong {
    color: var(--color-primary-dark);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(61, 106, 66, 0.4);
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

/* Header & Nav */
.site-header {
    background-color: var(--color-bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin-top: 0.5rem;
}

.main-nav a {
    text-decoration: none;
    font-weight: 700;
    color: var(--color-text-main);
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    display: inline-block;
}

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

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-white);
    min-width: 220px;
    box-shadow: var(--box-shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    text-transform: none;
    font-weight: 600;
}

.dropdown-menu a:hover {
    background: var(--color-bg-light);
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    padding: 6rem 1rem;
    margin-bottom: 3rem;
    overflow: hidden;
    color: var(--color-bg-white);
}

.hero img.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 83, 49, 0.5);
    z-index: 2;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 100;
}

.hero h1 {
    color: var(--color-bg-white);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* News Banner */
.news-banner {
    background-color: var(--color-warning);
    color: var(--color-bg-white);
    text-align: center;
    padding: 0.8rem 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.news-banner:empty {
    display: none;
}

.news-banner strong {
    color: var(--color-bg-white);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

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

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Cards / Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--color-bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-img-container {
    height: 200px;
    background-color: var(--color-primary);
    overflow: visible;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.card-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Buttons (CTAs) */
.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-white);
    text-decoration: none;
}

.btn-accent {
    background-color: var(--color-accent);
   /* display: inline-flex; */
    align-items: center;
}

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

/* Sections */
.section {
    padding: 4rem 1rem;
    background-color: var(--color-bg-white);
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.section-alt {
    background-color: transparent;
    box-shadow: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(61, 106, 66, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input {
    margin-top: 0.3rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-white);
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 4rem;
}

.site-footer a {
    color: var(--color-bg-light);
    text-decoration: none;
    margin: 0 10px;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-contact {
    margin-bottom: 2rem;
}

.footer-contact a {
    color: var(--color-bg-white);
    font-weight: bold;
}

/* Info Box / Termin Block Styles */
.info-box {
    background-color: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.info-box h3:first-child,
.info-box h4:first-child {
    margin-top: 0;
}

.info-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.info-box-grid > div {
    background: rgba(255,255,255,0.6);
    padding: 1rem;
    border-radius: 8px;
}

.date-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.date-list li {
    padding: 0.3rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.date-list li:last-child {
    border-bottom: none;
}

/* News Section Styles */
.news-item {
    margin-bottom: 5rem;
    position: relative;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-date {
    text-align: right;
}

.cms_news_delete {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(200,50,50,0.85);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
}

.news-item:hover .cms_news_delete {
    opacity: 1;
}

/* Helper Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav a {
        padding: 1rem;
        display: block;
        border-bottom: 1px solid #eee;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--color-bg-light);
        display: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

/* Lightbox */
.waldfisch-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.waldfisch-lightbox-active {
    opacity: 1;
}

.waldfisch-lightbox-closing {
    opacity: 0;
}

.waldfisch-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}

.waldfisch-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    padding: 1rem;
}

.waldfisch-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    object-fit: contain;
}

.waldfisch-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.waldfisch-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
}

.waldfisch-lightbox-prev,
.waldfisch-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
    padding: 0;
}

.waldfisch-lightbox-prev {
    left: 1rem;
}

.waldfisch-lightbox-next {
    right: 1rem;
}

.waldfisch-lightbox-prev:hover,
.waldfisch-lightbox-next:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
}

.waldfisch-lightbox-prev:disabled,
.waldfisch-lightbox-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.waldfisch-lightbox-caption {
    position: absolute;
    bottom: -2.5rem;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    padding: 0 1rem;
}

.waldfisch-lightbox-counter {
    position: absolute;
    top: -2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .waldfisch-lightbox-prev,
    .waldfisch-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .waldfisch-lightbox-prev {
        left: 0.5rem;
    }
    
    .waldfisch-lightbox-next {
        right: 0.5rem;
    }
}
