/*
Theme Name: Jugendzentrum Graffiti
Theme URI: https://blake-hofer.net/shop/article_detail.php?id=20
Author: Dominique Blake-Hofer
Author URI: https://blake-hofer.net/
Description: Ein flippiges Graffiti-Theme mit Neon-Farben, Bild-Karussell und professioneller Dropdown-Navigation. Ideal für Jugendzentren und urbane Projekte.
Version: 1.0.1
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-menu, featured-images, translation-ready, two-columns, flexible-header, custom-header, blog
Text Domain: jugendzentrum-graffiti
*/

:root {
    --bg-color: #1a1a1a;
    --primary-neon: #ff00ff; /* Neon Pink */
    --secondary-neon: #00ffff; /* Neon Blau */
    --accent-yellow: #ccff00; /* Spray-Gelb */
    --text-color: #ffffff;
    --font-main: 'Arial', sans-serif;
    --font-graffiti: 'Permanent Marker', cursive;
}

/* --- WP REQUIRED STANDARD CLASSES (Wichtig für Validierung) --- */
.alignleft { float: left; margin: 0.5em 1em 0.5em 0; }
.alignright { float: right; margin: 0.5em 0 0.5em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { background: #222; border: 1px solid #333; max-width: 100%; padding: 5px; text-align: center; }
.wp-caption-text { font-size: 0.8rem; color: #ccc; margin: 5px 0 0; }
.sticky { border: 3px solid var(--accent-yellow) !important; }
.gallery-caption { font-size: 0.8rem; }
.bypostauthor { border: 1px solid var(--primary-neon); }

/* Barrierefreiheit: Screen Reader */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #000;
    display: block;
    font-size: 0.8rem;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* --- BASIS STYLES --- */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    color: var(--secondary-neon);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-neon);
}

/* --- HEADER & BRANDING --- */
.main-header {
    background: #000;
    border-bottom: 5px solid var(--primary-neon);
    position: relative;
    z-index: 9999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.header-left-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.site-title a {
    font-family: var(--font-graffiti);
    font-size: 3.5rem;
    color: var(--primary-neon) !important;
    text-shadow: 4px 4px 0px var(--secondary-neon);
}

.site-tagline {
    font-family: var(--font-main);
    color: var(--accent-yellow);
    text-transform: uppercase;
    font-size: 1.1rem;
    margin: -5px 0 15px 0;
    font-weight: bold;
    letter-spacing: 1px;
}

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

.nav-menu li {
    position: relative;
    margin-right: 25px;
}

.nav-menu a {
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-color);
    padding: 10px 0;
    display: block;
}

.nav-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    border: 3px solid var(--primary-neon);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 220px;
    display: none;
    box-shadow: 8px 8px 0px var(--secondary-neon);
    z-index: 10001;
}

.nav-menu li:hover > ul {
    display: block;
}

.nav-menu ul li a {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid #222;
}

/* --- HEADER BILD (Rechts) --- */
.header-image-box img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border: 4px solid var(--secondary-neon);
    box-shadow: -10px 10px 0px var(--primary-neon);
    transform: rotate(3deg);
}

/* --- CONTENT AREA --- */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* --- KARUSSELL --- */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    border: 8px solid var(--accent-yellow);
    margin: 20px 0;
}

.carousel-container {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.slide {
    min-width: 100%;
    height: 400px;
    position: relative;
}

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

.slide-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    padding: 15px;
    border-left: 5px solid var(--primary-neon);
}

/* --- BUTTONS --- */
.graffiti-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-neon);
    color: #000 !important;
    font-family: var(--font-graffiti);
    text-transform: uppercase;
    transform: rotate(2deg);
    box-shadow: 4px 4px 0px var(--secondary-neon);
}

.graffiti-btn:hover {
    background: var(--accent-yellow);
    transform: rotate(-1deg) scale(1.05);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 50px 20px;
    background: #000;
    border-top: 5px solid var(--primary-neon);
    margin-top: 50px;
}

.footer-credits {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .main-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: center; text-align: center; }
}
/* --- SIDEBAR & WIDGETS --- */
aside {
    padding: 10px;
}

/* Der gestrichelte Rand um jedes Widget */
.widget {
    background: rgba(255, 255, 255, 0.05);
    border: 3px dashed var(--secondary-neon);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 6px 6px 0px var(--primary-neon);
    transition: transform 0.3s ease;
}

.widget:hover {
    transform: scale(1.02);
    border-style: solid; /* Wechselt zu durchgezogen beim Hover für Effekt */
}

.widget-title {
    font-family: var(--font-graffiti);
    color: var(--accent-yellow);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--primary-neon);
    display: inline-block;
}

/* Styling für Listen in der Sidebar (Kategorien, Archiv etc.) */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.widget ul li a {
    color: #fff;
    font-weight: bold;
}

.widget ul li a:hover {
    color: var(--primary-neon);
    padding-left: 5px;
}
/* --- SIDEBAR & WIDGETS UPDATED --- */
aside {
    background: #000;
    padding: 20px;
    /* Der gew���nschte gestrichelte Rand rundherum */
    border: 3px dashed var(--secondary-neon); 
    box-shadow: 6px 6px 0px var(--primary-neon);
}

aside h2, aside h3 {
    color: var(--primary-neon); /* Neon Pink f���r ���berschriften */
    font-family: var(--font-graffiti);
    text-transform: uppercase;
    margin-top: 0;
    border-bottom: 2px solid var(--accent-yellow);
    display: inline-block;
}

aside ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

aside ul li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    color: var(--text-color);
}

/* Farbliche Formatierung der Sidebar-Links */
aside ul li a {
    color: var(--secondary-neon) !important; /* Neon Blau als Standard */
    font-weight: bold;
    transition: all 0.3s ease;
}

aside ul li a:hover {
    color: var(--accent-yellow) !important; /* Spray-Gelb beim Dr���berfahren */
    padding-left: 8px;
}

/* Spezielle Formatierung f���r die Suche in der Sidebar */
.widget_search .search-form input[type="search"] {
    border: 2px solid var(--secondary-neon);
    background: #111;
    color: var(--accent-yellow);
}
/* --- AGGRESSIVE SIDEBAR & WIDGETS --- */
aside {
    background: #000;
    padding: 25px;
    border: 4px dashed var(--secondary-neon); /* Gestrichelter Neon-Rand */
    box-shadow: 10px 10px 0px var(--primary-neon); /* Harter Versatz-Schatten */
    margin-bottom: 40px;
}

aside h2, aside h3 {
    color: var(--primary-neon) !important;
    font-family: var(--font-graffiti);
    text-transform: uppercase;
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
    border-bottom: 3px double var(--accent-yellow);
    padding-bottom: 5px;
}

aside ul li {
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

aside ul li a {
    color: var(--secondary-neon) !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

aside ul li a:hover {
    color: var(--accent-yellow) !important;
    text-shadow: 2px 2px 0px #000, 0 0 10px var(--accent-yellow);
    padding-left: 10px;
}

/* --- DAS AGGRESSIVE SUCHFELD --- */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.search-form label {
    width: 100%;
}

.search-form input[type="search"] {
    width: 100%;
    background: #111;
    border: 3px solid var(--accent-yellow); /* Knallgelber Rand */
    color: var(--primary-neon); /* Pinker Text beim Tippen */
    padding: 15px;
    font-family: var(--font-graffiti);
    font-size: 1.2rem;
    outline: none;
    box-shadow: inset 0 0 10px rgba(204, 255, 0, 0.3);
    transition: all 0.2s ease-in-out;
}

.search-form input[type="search"]:focus {
    border-color: var(--primary-neon);
    box-shadow: 0 0 20px var(--primary-neon);
    transform: scale(1.02) rotate(-1deg); /* Leichte Schräglage beim Tippen */
}

.search-form input[type="submit"] {
    background: var(--primary-neon);
    color: #000;
    border: none;
    padding: 12px;
    font-family: var(--font-graffiti);
    font-size: 1.4rem;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 5px 5px 0px var(--secondary-neon);
    transition: 0.2s;
}

.search-form input[type="submit"]:hover {
    background: var(--accent-yellow);
    box-shadow: -5px -5px 0px var(--primary-neon);
    transform: translateY(-3px);
}
/* --- AGGRESSIVE POST PAGINATION --- */
.pagination {
    margin: 50px 0;
    text-align: center;
    font-family: var(--font-graffiti);
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    background: #000;
    color: var(--secondary-neon) !important;
    border: 3px solid var(--secondary-neon);
    padding: 10px 18px;
    font-size: 1.5rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 5px 5px 0px var(--primary-neon);
    display: inline-block;
}

.pagination .page-numbers:hover {
    background: var(--accent-yellow);
    color: #000 !important;
    border-color: var(--primary-neon);
    transform: rotate(-3deg) scale(1.1);
    box-shadow: -5px 5px 0px var(--secondary-neon);
}

.pagination .page-numbers.current {
    background: var(--primary-neon);
    color: #000 !important;
    border-color: var(--accent-yellow);
    transform: rotate(2deg);
    box-shadow: 8px 8px 0px #000;
    cursor: default;
}

/* Pfeile für "Vorherige" und "Nächste" */
.pagination .prev, .pagination .next {
    border-style: dashed;
    font-size: 1.2rem;
}