/*
Theme Name: Mein Kiez
Author: Dein Name
Description: Ein neo-brutalistisches Theme für Stadtteil-Informationen.
Version: 1.8
*/

/* ========================================================
   1. BASIS & VARIABLEN
======================================================== */
:root {
    --bg-color: #e2eaf4;
    --box-bg: #ffffff;
    --border-color: #000000;
    --accent-green: #00ff00;
    --accent-red: #ff3300;
    --shadow: 8px 8px 0px var(--border-color);
    --border-thick: 4px solid var(--border-color);
    --font-main: 'Courier New', Courier, monospace;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: #000;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-weight: 900;
}

/* ========================================================
   2. HEADER & MENÜS
======================================================== */
.site-header {
    background: var(--box-bg);
    border-bottom: var(--border-thick);
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
    z-index: 100;
}

.site-header h2 { margin: 0; }

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu li a {
    color: #000;
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 5px 10px;
    transition: background-color 0.2s, color 0.2s;
}

.nav-menu li a:hover {
    background-color: var(--accent-green);
    color: #000;
    box-shadow: 4px 4px 0px var(--border-color);
}

.nav-menu li.current-menu-item a { border-bottom: 4px solid var(--border-color); }

/* Der Burger-Button */
.menu-toggle {
    display: none;
    background: var(--accent-green);
    border: 2px solid var(--border-color);
    box-shadow: 4px 4px 0px var(--border-color);
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 1rem;
    padding: 5px 15px;
    cursor: pointer;
    text-transform: uppercase;
}

.menu-toggle:active {
    box-shadow: 2px 2px 0px var(--border-color);
    transform: translate(2px, 2px);
}

/* ========================================================
   3. HERO SLIDER
======================================================== */
.hero-section {
    padding: 2rem;
    max-width: 1400px;
    margin: 2rem auto 2rem auto;
}

.hero-box {
    transform: rotate(-1.5deg);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 420px; 
    display: grid; 
    background: var(--box-bg);
    border: var(--border-thick); /* Hinzugefügt: Schwarzer Rand */
    box-shadow: var(--shadow);   /* Hinzugefügt: Harter Schatten */
}

.hero-box:hover {
    transform: rotate(-1.5deg) translate(-4px, -4px);
    box-shadow: 12px 12px 0px var(--border-color);
}

.hero-slide {
    grid-area: 1 / 1; 
    padding: 2rem 6rem !important; 
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-slide.active { 
    opacity: 1; 
    pointer-events: auto; 
    z-index: 2;
}

.hero-content-split {
    display: flex;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem); 
    line-height: 1.1;
    margin: 0;
    letter-spacing: -1px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-subtitle-wrapper { margin-top: 1.5rem; }

.hero-subtitle {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: bold;
    background-color: #f4f4f4;
    border-left: 8px solid var(--accent-green);
    padding: 10px 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-image-col {
    flex: 0 0 45%;
    display: flex;
    justify-content: flex-end;
}

.hero-neo-image {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    border: 4px solid var(--border-color);
    box-shadow: 8px 8px 0px var(--border-color);
    filter: grayscale(80%) contrast(140%);
}

.hero-meta {
    margin-top: 1.5rem;
    font-family: var(--font-main);
    font-size: 0.85rem;
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    padding: 10px;
    display: inline-block;
    box-shadow: 4px 4px 0px var(--border-color);
}

.hero-btn {
    margin-top: 1rem;
    display: inline-block;
    background-color: var(--accent-green);
    color: #000;
    font-family: var(--font-main);
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 20px;
    border: 4px solid var(--border-color);
    box-shadow: 4px 4px 0px var(--border-color);
    transition: all 0.2s;
}

.hero-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--border-color);
    background-color: var(--border-color);
    color: #ffffff;
}

/* Slider Pfeile */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--box-bg);
    border: var(--border-thick);
    box-shadow: 4px 4px 0px var(--border-color);
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    z-index: 10;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    color: #000;
}
.slider-nav:hover {
    background-color: var(--accent-green);
    transform: translateY(-50%) translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--border-color);
}
.slider-nav:active {
    transform: translateY(-50%) translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--border-color);
    background-color: var(--border-color);
    color: #fff;
}
.prev-slide { left: 15px; }
.next-slide { right: 15px; }

/* ========================================================
   4. NEO-BOXEN & STARTSEITEN-GRID
======================================================== */
.neo-box {
    background: var(--box-bg);
    border: var(--border-thick);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.neo-box:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px var(--border-color);
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.kiez-box { display: flex; flex-direction: column; position: relative; }
.box-icon {
    background-color: #ffffff; border: 4px solid #000000; box-shadow: 4px 4px 0px #000000;
    display: inline-flex; justify-content: center; align-items: center;
    width: 50px; height: 50px; font-size: 1.5rem; margin-bottom: 1.5rem;
}
.kiez-box h2 { margin-top: 0; margin-bottom: 1rem; font-size: 1.8rem; word-break: break-word; }
.kiez-box .box-content { flex-grow: 1; margin-bottom: 2rem; }
.kiez-box ul { list-style: none; padding: 0; margin: 0; }
.kiez-box li { border-bottom: 2px solid var(--border-color); }
.kiez-box li:last-child { border-bottom: none; }
.kiez-box a {
    display: block; padding: 10px 0; color: #000; text-decoration: none;
    font-weight: bold; transition: all 0.2s;
}
.kiez-box a:hover { background-color: #000000 !important; color: #ffffff !important; padding-left: 10px; }
.box-footer { margin-top: auto; }
.dashed-divider { border: none; border-top: 6px dashed #000000; margin: 0 0 1rem 0; }
.box-badge {
    background-color: #000000; color: #ffffff; font-family: var(--font-main);
    font-weight: bold; padding: 6px 12px; display: inline-block; font-size: 0.85rem; text-transform: uppercase;
}
.kiez-box.bg-blue { background-color: #00bfff; }
.kiez-box.bg-red { background-color: #ff3300; }
.kiez-box.bg-yellow { background-color: #ffcc00; }

/* ========================================================
   5. BLOG & LISTENANSICHT
======================================================== */
.blog-list { max-width: 1000px; margin: 0 auto; padding: 2rem; }

.blog-heading-row h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    background: var(--accent-green);
    display: inline-block;
    padding: 0 10px;
    border: 4px solid #000;
}

.kiez-category-filter {
    background: var(--box-bg);
    border: var(--border-thick);
    box-shadow: var(--shadow);
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.kiez-category-filter label {
    font-family: var(--font-main);
    font-weight: 900;
    text-transform: uppercase;
}

.kiez-category-filter select {
    background: #ffffff;
    color: #000000;
    border: 3px solid var(--border-color);
    box-shadow: 4px 4px 0px var(--border-color);
    padding: 10px 14px;
    font-family: var(--font-main);
    font-weight: 900;
    cursor: pointer;
}

.blog-list-item {
    display: flex;
    gap: 2rem;
    background: var(--box-bg);
    border: var(--border-thick);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    padding: 2rem;
}

.blog-list-item .thumbnail {
    width: 250px;
    flex-shrink: 0;
}

.blog-list-item .content { flex: 1; }

.blog-list-item h3 { margin-top: 0; }

.blog-list-item h3 a {
    color: #000;
    text-decoration: none;
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 4px solid var(--border-color);
    box-shadow: 4px 4px 0px var(--border-color);
    display: block;
}

.blog-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-meta {
    font-family: var(--font-main);
    font-size: 0.8rem;
    background-color: #f4f4f4;
    border: 2px solid var(--border-color);
    padding: 5px 10px;
}

.blog-readmore {
    font-size: 0.8rem;
    padding: 8px 16px;
    margin-top: 0;
}

.compact-news-list {
    background: var(--box-bg);
    border: var(--border-thick);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-top: 2rem;
}

.compact-news-label {
    display: inline-block;
    background: var(--accent-green);
    border: 3px solid var(--border-color);
    box-shadow: 4px 4px 0px var(--border-color);
    font-family: var(--font-main);
    font-weight: 900;
    text-transform: uppercase;
    padding: 5px 12px;
    margin-bottom: 1rem;
}

.compact-news-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.compact-news-list li {
    border-bottom: 3px dashed var(--border-color);
}

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

.compact-news-list a {
    color: #000;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 12px 0;
    font-weight: 900;
}

.compact-news-list a:hover {
    background: #000;
    color: #fff;
    padding-left: 10px;
    padding-right: 10px;
}

.compact-news-title {
    font-family: var(--font-main);
}

.compact-news-meta {
    font-family: var(--font-main);
    font-size: 0.75rem;
    white-space: nowrap;
}

.no-news-box {
    margin-top: 2rem;
    font-family: var(--font-main);
    font-weight: 900;
}

/* ========================================================
   6. FLEXIBLE LAYOUTS & SIDEBARS
======================================================== */
.page-wrapper {
    display: grid; gap: 2rem; padding: 2rem; max-width: 1400px; margin: 0 auto;
}
.layout-no-sidebar { grid-template-columns: 1fr; }
.layout-left-sidebar { grid-template-columns: 380px 1fr; }
.layout-right-sidebar { grid-template-columns: 1fr 380px; }
.layout-two-sidebars { grid-template-columns: 300px 1fr 300px; }

aside.sidebar {
    background: transparent !important; border: none !important;
    box-shadow: none !important; padding: 0 !important;
    display: flex; flex-direction: column; gap: 2rem;
}

/* ========================================================
   7. WIDGETS
======================================================== */
.widget-title {
    font-family: var(--font-main); text-transform: uppercase; font-weight: 900;
    font-size: 1.5rem; border-bottom: 4px solid var(--border-color); padding-bottom: 10px; margin-top: 0; margin-bottom: 1rem;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { border-bottom: 2px solid var(--border-color); }
.widget li:last-child { border-bottom: none; }
.widget a {
    display: block; padding: 10px 0; color: #000 !important;
    text-decoration: none !important; font-family: sans-serif; font-weight: bold; transition: all 0.2s ease-in-out;
}
.widget a:hover {
    background-color: var(--accent-green) !important; padding-left: 10px; color: #000 !important;
}
.widget.bg-blue { background-color: #00bfff !important; }
.widget.bg-red { background-color: #ff3300 !important; }
.widget.bg-yellow { background-color: #ffcc00 !important; }
.widget.bg-green { background-color: #00ff00 !important; }
.widget.bg-purple { background-color: #b266ff !important; }

/* ========================================================
   8. FOOTER MENÜ
======================================================== */
.site-footer {
    background: var(--box-bg); border-top: var(--border-thick); padding: 2rem 3rem; margin-top: 4rem;
}
.footer-content {
    max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 1rem;
}
.copyright { font-family: var(--font-main); font-weight: 900; margin: 0; font-size: 1.1rem; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 2rem; }
.footer-menu li a {
    color: #000; text-decoration: none; font-weight: bold; font-family: var(--font-main); transition: all 0.2s;
}
.footer-menu li a:hover { background-color: #000; color: #fff; padding: 2px 8px; }

/* ========================================================
   9. RESPONSIVE / MOBILE (SMARTPHONES)
======================================================== */
@media (max-width: 768px) {
    /* Burger Menü */
    .menu-toggle { display: block; }
    .nav-menu {
        display: none; flex-direction: column; width: 100%; position: absolute;
        top: 100%; left: 0; background: var(--box-bg); border-bottom: var(--border-thick);
        padding: 1rem 0; box-shadow: 0px 8px 0px rgba(0,0,0,1);
    }
    .nav-menu.is-active { display: flex; }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu li a { display: block; padding: 15px; }
    .site-header { padding: 1rem; flex-wrap: wrap; }

    /* Hero Slider Mobile */
    .hero-box { 
        padding: 0; 
        height: 650px; 
    }
    .hero-slide { padding: 2rem 1.5rem 6rem 1.5rem !important; }
    .hero-content-split { flex-direction: column; text-align: center; gap: 2rem; }
    .hero-image-col { justify-content: center; }
    
    .slider-nav { 
        width: 40px; height: 40px; font-size: 1.2rem; 
        top: auto; bottom: 20px; transform: none; 
    }
    .prev-slide { left: 20%; }
    .next-slide { right: 20%; }

    /* Sidebars Mobile */
    .layout-left-sidebar, .layout-right-sidebar, .layout-two-sidebars { grid-template-columns: 1fr !important; }

    /* Blog Mobile */
    .blog-list { padding: 1rem; }
    .blog-heading-row h2 { font-size: 1.8rem; }
    .kiez-category-filter { align-items: stretch; }
    .kiez-category-filter select { width: 100%; }
    .blog-list-item { flex-direction: column; padding: 1.5rem; }
    .blog-list-item .thumbnail { width: 100% !important; }
    .blog-img { height: auto; aspect-ratio: 16/9; }
    .compact-news-list a { flex-direction: column; gap: 0.25rem; }
    .compact-news-meta { white-space: normal; }

    /* Footer Mobile */
    .footer-content { flex-direction: column; text-align: center; gap: 1.5rem; }
    .footer-menu { flex-wrap: wrap; justify-content: center; }
}