/*
Theme Name: Bärenbach Hunsrück
Theme URI: https://www.baerenbach-hunsrueck.de/
Author: Ortsgemeinde Bärenbach
Description: WordPress Theme für die Ortsgemeinde Bärenbach - Geografischer Mittelpunkt von Rheinland-Pfalz
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: baerenbach
*/

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #0a0c15;
    background-color: #fff;
}

a {
    color: #004897;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: #6691c1;
    text-decoration: none;
}

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

/* === Layout === */
.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Top Bar === */
.top-bar {
    background: #004897;
    color: #fff;
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item i {
    font-size: 1rem;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
    color: #fff;
}

/* === Header === */
.site-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #efefef;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #004897;
    line-height: 1.2;
}

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

.site-title a:hover {
    color: #6691c1;
}

.site-subtitle {
    font-size: 0.9rem;
    color: #6691c1;
    font-style: italic;
}

/* === Navigation === */
.main-navigation {
    background: #fff;
    border-bottom: 1px solid #efefef;
    position: relative;
    z-index: 1000;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: #6691c1;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: #004897;
    text-decoration: none;
}

/* Dropdown Level 1 */
.nav-menu .sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #004897;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 0;
}

.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding-left: 25px;
}

/* Dropdown Level 2 */
.nav-menu .sub-menu .menu-item-has-children > a {
    font-weight: 600;
}

.nav-menu .sub-menu .sub-menu {
    position: absolute;
    left: 100%;
    top: 0;
    background: #004897;
}

.nav-menu .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: #004897;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.menu-toggle:hover {
    background: #003670;
}

/* === Hero Slider === */
.hero-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-nav .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-nav .dot.active {
    background: #fff;
}

/* === Content Area === */
.site-content {
    padding: 40px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.content-area.has-sidebar {
    grid-template-columns: 1fr 300px;
}

.main-content {
    min-width: 0;
}

/* === Welcome Section === */
.welcome-section {
    margin-bottom: 40px;
}

.welcome-section h1,
.welcome-section h2 {
    color: #004897;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.welcome-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* === Info Box === */
.info-box {
    background: #edf6fb;
    border-left: 4px solid #004897;
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
}

.info-box h3 {
    color: #004897;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-box p {
    margin-bottom: 8px;
}

.info-box .contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-box .contact-details span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === Map Section === */
.map-section {
    text-align: center;
    margin: 30px 0;
}

.map-section img {
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

/* === Sidebar === */
.sidebar {
    padding: 0;
}

.sidebar .widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
}

.sidebar .widget-title {
    background: #004897;
    color: #fff;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
}

.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget ul li {
    border-bottom: 1px solid #eee;
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    display: block;
    padding: 10px 20px;
    color: #0a0c15;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar .widget ul li a:hover {
    background: #edf6fb;
    color: #004897;
    padding-left: 25px;
}

/* === Page Content === */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #004897;
}

.page-header h1 {
    color: #004897;
    font-size: 2rem;
}

.entry-content h2 {
    color: #004897;
    margin: 25px 0 15px;
    font-size: 1.5rem;
}

.entry-content h3 {
    color: #0a0c15;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

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

.entry-content ul, .entry-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content table th,
.entry-content table td {
    border: 1px solid #ddd;
    padding: 10px 15px;
    text-align: left;
}

.entry-content table th {
    background: #004897;
    color: #fff;
    font-weight: 600;
}

.entry-content table tr:nth-child(even) {
    background: #edf6fb;
}

/* === Gallery === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* === Footer === */
.site-footer {
    background: #004897;
    color: #fff;
    padding: 40px 0 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}

.footer-widget h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget ul li a {
    color: #6691c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #fff;
}

.footer-widget p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-widget .contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-widget .contact-info span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-widget .contact-info i {
    color: #6691c1;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #6691c1;
    text-decoration: none;
    margin: 0 10px;
}

.footer-bottom a:hover {
    color: #fff;
}

/* === Breadcrumbs === */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.85rem;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.breadcrumbs a {
    color: #004897;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

/* === Responsive Design === */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-area.has-sidebar {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li > a {
        border-bottom: 1px solid #efefef;
        color: #0a0c15;
    }

    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #edf6fb;
    }

    .nav-menu .sub-menu li a {
        color: #004897;
    }

    .nav-menu .sub-menu .sub-menu {
        position: static;
        left: 0;
    }

    .nav-menu .sub-menu li a {
        padding-left: 40px;
    }

    .nav-menu .sub-menu .sub-menu li a {
        padding-left: 60px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        height: 250px;
    }

    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-title {
        font-size: 1.4rem;
    }

    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
