/*
Theme Name: AWO Kreisverband Passau
Theme URI: https://www.awo-kv-passau.de
Description: Individuelles Theme für den AWO Kreisverband Passau e.V.
Author: FV Studio
Author URI: https://www.fvstudio.de
Version: 1.7
Text Domain: awo-passau
*/

/* 1. VARIABLEN DEFINIEREN */
:root {
    --awo-red: #e3001a;
    --awo-white: #ffffff;
    --awo-gray: #f4f4f4;
    --text-dark: #333333;
}

/* 2. GRUND-SETUP & RESET */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--awo-white);
}

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

/* 3. HEADER & LOGO */
.header-flex {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 20px 0;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    /* Optimale Größe für Schärfe und Sichtbarkeit */
    width: 280px !important; 
    height: auto !important; 
    max-width: 100%;
    display: block;
    
    /* Schärfe-Optimierung für Browser-Skalierung */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.header-search-container {
    flex: 0 0 auto;
    margin-left: 20px;
}

.search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
}

.search-field {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 150px;
    font-size: 0.9rem;
}

.search-submit {
    background: var(--awo-red);
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
}

/* 4. NAVIGATION */
.main-navigation {
    background-color: var(--awo-white);
    border-bottom: 5px solid var(--awo-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
}

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

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: block;
    padding: 20px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-list > li > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--awo-red);
    transition: width 0.3s ease;
    z-index: 10;
}

.nav-list > li:hover > a::before {
    width: 100%;
}

.nav-list li a:hover {
    color: var(--awo-red);
    background-color: var(--awo-gray);
}

/* DROP_DOWN NAVIGATION */
.nav-list li ul,
.nav-list li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--awo-white);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid var(--awo-red);
    display: none; 
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
}

.nav-list li:hover > ul,
.nav-list li:hover > .sub-menu {
    display: block; 
    visibility: visible;
    opacity: 1;
}

.nav-list li ul li a {
    padding: 12px 20px !important;
    text-transform: none !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    border-bottom: 1px solid #eee;
}

/* 5. HERO SLIDER */
.hero-slider {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff !important;
}

.hero-text-wrapper h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    margin: 0 0 10px 0;
    color: #ffffff !important;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
    font-weight: 800;
}

.hero-text-wrapper p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #ffffff !important;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}

/* 6. FEATURE BOXEN */
.feature-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.feature-box {
    background: var(--awo-gray);
    padding: 40px 30px;
    text-align: center;
    border-top: 5px solid var(--awo-red);
    transition: transform 0.3s ease;
}

.feature-box h3 {
    color: var(--awo-red);
    font-size: 1.5rem;
}

.btn-awo {
    display: inline-block;
    background: var(--awo-red);
    color: #fff !important;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* 7. NEWS SEKTION & BILDER */
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
}

/* 8. VORSTANDS-ROLE */
.vorstand-role {
    font-weight: bold;
    color: #555;
    display: inline-block;
    width: 180px; 
}

/* 9. FOOTER QUICKLINKS & MENÜS */
.site-footer {
    background-color: #333;
    color: #eee;
    padding: 60px 0 0 0;
    margin-top: 80px;
}

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

.footer-title {
    color: var(--awo-red);
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 700;
}

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

.footer-column ul li {
    margin-bottom: 12px;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.footer-column ul li:last-child {
    border-bottom: none;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    display: block;
}

.footer-column ul li a:hover {
    color: var(--awo-red);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #222;
    padding: 20px 0;
    border-top: 1px solid #444;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.legal-nav a {
    color: #888;
    text-decoration: none;
    margin-left: 20px;
}

.legal-nav a:hover {
    color: #fff;
}

/* 10. MOBILE OPTIMIERUNG */
@media (max-width: 900px) {
    .header-flex { flex-direction: column; }
    .nav-list { flex-direction: column; width: 100%; text-align: center; }
    .feature-boxes { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .header-search-container { margin-top: 15px; }
}

/* HERO SLIDER - FARBEN ANPASSEN (Pfeile & Punkte) */

/* Die Pfeile (Navigation) auf AWO-Rot setzen */
.swiper-button-next,
.swiper-button-prev {
    color: var(--awo-red) !important;
}

/* Die Punkte (Pagination) - Inaktive Punkte weiß/transparent */
.swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.6;
}

/* Der aktive Punkt in AWO-Rot */
.swiper-pagination-bullet-active {
    background: var(--awo-red) !important;
    opacity: 1;
}

/* Falls die Pfeile in Kreisen liegen (optionaler Style-Boost) */
.swiper-button-next::after, 
.swiper-button-prev::after {
    font-size: 24px !important; /* Größe der Pfeile anpassen */
    font-weight: bold;
}

