/*
Theme Name: Neufi-Theme
Description: A simple WP theme for the DNK - LG Sachsen
Author: Peter Krusche
Version: 1.4
License: MIT
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff; /* White background outside center column */
    margin: 0;
    padding: 0;
    overflow-y: scroll; /* Always show vertical scrollbar */
}

/* Ensure site wrapper doesn't interfere with background */
#page.site {
    background: transparent;
    min-height: 100vh;
}

/* Force white background on all page types */
body,
body.home,
body.page,
body.single,
body.archive,
body.blog {
    background-color: #ffffff !important;
}

/* Remove this rule as .site-main now has its own background */

/* Container - Centered layout with responsive width */
.site-main .container {
    width: 100%;
    max-width: 1200px;
    min-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation container - Centered layout */
.main-navigation .container {
    max-width: 1200px;
    min-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Centered layout with shadow */
.site-header {
    background-color: #DDEFE1;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    max-width: 1200px;
    min-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header banner image - Centered and responsive */
.header-image {
    width: 100%;
    max-width: 1200px;
    min-width: 600px;
    margin: 0 auto;
    display: block;
    text-align: center;
    background-color: #DDEFE1;
    padding: 20px 0 0 0;
    /*box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);*/
}

.header-image img {
    width: 99%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}


.site-branding {
    text-align: center;
    padding: 20px;
    max-width: 1200px;
    min-width: 600px;
    margin: 0 auto;
}

.site-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #2d5016;
    margin-bottom: 10px;
}

.site-title a {
    color: #2d5016;
    text-decoration: none;
}

.site-description {
    font-size: 1.2em;
    color: #4a7c23;
    font-weight: normal;
}

/* Main navigation - Centered and larger fonts with shadow */
.main-navigation {
    background-color: #f0f0f0;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    padding: 0;
    text-align: center;
    max-width: 1200px;
    min-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.main-navigation li {
    display: inline-block;
    margin: 0;
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 16px 24px;
    color: #4a7c23;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation li:hover > a {
    background-color: #4a7c23;
    color: #ffffff;
}

/* Dropdown arrow for parent items */
.main-navigation .menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 5px;
}

/* Dropdown submenu styles */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li:hover .sub-menu,
.main-navigation .sub-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    display: block;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.main-navigation .sub-menu li:last-child {
    border-bottom: none;
}

.main-navigation .sub-menu a {
    padding: 10px 15px;
    color: #4a7c23;
    font-size: 13px;
    text-transform: none;
    font-weight: normal;
    white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
    background-color: #f0f8f0;
    color: #2d5016;
}

/* Main content area */
.site-main {
    padding: 20px;
    min-height: 500px;
    position: relative;
    background-color: #DDEFE1;
    max-width: 1200px;
    min-width: 600px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}


/* Content areas - Within centered layout */
.content-area {
    max-width: 100%;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Welcome section styling - Within centered layout */
.welcome-section {
    text-align: center;
    padding: 40px 30px;
    background-color: #DDEFE1;
    background-image: url('index-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 20px auto;
    border-radius: 5px;
    max-width: 100%;
    min-height: 520px; /* Ensure section has height to show the image */
}

/* Page header styling for blog pages */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #4a7c23;
}

.page-title {
    font-size: 2.2em;
    color: #2d5016;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-header p {
    font-size: 1.1em;
    color: #4a7c23;
    margin: 0;
}

.welcome-section h1 {
    font-size: 2.5em;
    color: #2d5016;
    margin-bottom: 15px;
    font-weight: bold;
}

.welcome-section p {
    font-size: 1.2em;
    color: #4a7c23;
    margin-bottom: 10px;
}

/* Post/Page content */
.post,
.page {
    background-color: transparent;
    padding: 0;
    margin-bottom: 30px;
}

/* Only apply styling to posts in blog listing, not pages */
.home .post {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Single post styling */
.single .post {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Post navigation */
.post-navigation {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    margin: 5px;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    color: #4a7c23;
    text-decoration: none;
    font-weight: bold;
}

.post-navigation a:hover {
    color: #2d5016;
    text-decoration: underline;
}

/* Back to blog button */
.back-to-blog {
    text-align: center;
    margin: 20px 0;
}

/* Entry footer styling */
.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.entry-footer p {
    margin-bottom: 10px;
}

.entry-footer a {
    color: #4a7c23;
    text-decoration: none;
}

.entry-footer a:hover {
    color: #2d5016;
    text-decoration: underline;
}

.entry-title {
    font-size: 1.8em;
    color: #2d5016;
    margin-bottom: 15px;
    font-weight: bold;
}

.entry-title a {
    color: #2d5016;
    text-decoration: none;
}

.entry-title a:hover {
    color: #4a7c23;
    text-decoration: underline;
}

.entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #2d5016;
    margin: 25px 0 15px 0;
    font-weight: bold;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content a {
    color: #4a7c23;
    text-decoration: none;
}

.entry-content a:hover {
    color: #2d5016;
    text-decoration: underline;
}

/* Footer - Centered layout with shadow */
.site-footer {
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 2px solid #ccc;
    padding: 20px;
    text-align: center;
    margin-top: 0;
    max-width: 1200px;
    min-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Footer Navigation */
.footer-navigation {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.footer-navigation li {
    margin: 0;
    display: flex;
    align-items: center;
}

.footer-navigation li:not(:last-child)::after {
    content: ' | ';
    color: #666;
    margin: 0 10px;
    font-weight: normal;
}

.footer-navigation a {
    color: #666;
    text-decoration: underline;
    font-size: 16px;
    font-weight: normal;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-navigation a:hover {
    color: #333;
}

.site-info {
    font-size: 12px;
    color: #666;
}

.site-info p {
    margin-bottom: 5px;
}

.site-info a {
    color: #4a7c23;
    text-decoration: none;
}

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

/* Forms and buttons */
input[type="text"],
input[type="email"],
textarea,
select {
    padding: 8px;
    border: 1px solid #ccc;
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.btn {
    background-color: #4a7c23;
    color: #ffffff;
    padding: 8px 16px;
    border: none;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
}

.btn:hover {
    background-color: #2d5016;
    color: #ffffff;
}

/* Mobile responsiveness - Maintain accessibility */
@media (max-width: 768px) {
    /* Allow smaller min-width on mobile but maintain shadows */
    .site-header,
    .main-navigation,
    .site-main,
    .site-footer,
    .header-image {
        min-width: auto;
        margin: 0;
        box-shadow: none; /* Remove shadows on mobile for cleaner look */
    }
    
    .site-main .container,
    .main-navigation .container,
    .site-branding {
        min-width: auto;
        padding: 0 15px;
    }
    
    /* Mobile banner image adjustments */
    .header-image {
        padding: 15px;
    }
    
    /* Mobile footer menu */
    .footer-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-navigation li {
        margin: 5px 0;
    }
    
    .footer-navigation li:not(:last-child)::after {
        display: none; /* Hide pipe separators on mobile */
    }
    
    .footer-navigation a {
        font-size: 14px;
    }
    
    .header-image img {
        max-height: 180px;
        border-radius: 3px;
    }
    
    .main-navigation li {
        display: block;
        width: 100%;
    }
    
    .main-navigation a {
        border-bottom: none;
        font-size: 16px; /* Still larger than original for accessibility */
        padding: 14px 20px;
    }
    
    .site-main {
        padding: 10px;
    }
    
    .content-area,
    .welcome-section {
        margin: 10px;
        padding: 20px;
    }
    
    .site-title {
        font-size: 2em;
    }
    
    .welcome-section h1 {
        font-size: 2em;
    }
}

/* Hide sidebar - not used in this design */
.sidebar {
    display: none;
}

/* Menu toggle for mobile */
.menu-toggle {
    display: none;
    background-color: #4a7c23;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: relative;
    }
    
    .main-navigation ul {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #f0f0f0;
        border: 1px solid #ccc;
        z-index: 999;
    }
    
    .main-navigation.toggled ul {
        display: block;
    }
    
    .main-navigation li {
        display: block !important;
        width: 100%;
        border-bottom: 1px solid #ccc;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        padding: 15px 20px;
        border-right: none;
        border-bottom: none;
        display: block;
    }
    
    /* Mobile submenu styles */
    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: #e8e8e8;
        min-width: auto;
    }
    
    .main-navigation .sub-menu li {
        border-left: 3px solid #4a7c23;
    }
    
    .main-navigation .sub-menu a {
        padding: 12px 30px;
        font-size: 13px;
        background-color: #e8e8e8;
    }
    
    .main-navigation .sub-menu a:hover {
        background-color: #d0d0d0;
    }
    
    /* Hide dropdown arrow on mobile */
    .main-navigation .menu-item-has-children > a::after {
        display: none;
    }
}

/* Partner Images Section */
.partner-images {
    margin: 40px 0;
    padding: 30px 0;
    text-align: center;
    min-height: 100px;
}

.partner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-container a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.partner-container a:hover {
    transform: scale(1.05);
}

.partner-container img {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    padding: 15px;
    background-color: white;
}

.partner-container img:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Front page content styling */
.front-page-content {
    margin: 30px 0;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness for partner images */
@media (max-width: 768px) {
    .partner-container {
        gap: 20px;
        flex-direction: column;
    }
    
    .partner-container img {
        max-width: 150px;
        max-height: 75px;
    }
    
    .front-page-content {
        margin: 20px 0;
        padding: 20px;
    }
}

/* Print styles */
@media print {
    .main-navigation,
    .menu-toggle {
        display: none;
    }
    
    body {
        background-color: #ffffff;
    }
    
    .content-area,
    .welcome-section,
    .post,
    .page {
        background-color: #ffffff;
        box-shadow: none;
    }
}