/*
Theme Name: Witze Charts
Theme URI: https://witze-charts.de
Author: Donni
Description: Ein minimalistisches Theme für Witze-Charts.de
Version: 1.0
License: GPL2
*/

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 1.5em;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--bs-heading-color, #333);
}

h1 {
    font-size: 1.7em;
}

.close-menu { display: none; }

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

/* Header Specific Container */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cards */
.card {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

h2 a, h2 a:visited, h2 a:hover, h2 a:active {
    color: #006600;
    text-decoration: none;
}

.card-title {
    color: #006600;
    margin: 0;
    font-size: 1.5em;
}

.card-meta {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Category Navigation */
.category-navigation {
    text-align: center;
    margin: 20px 0;
}

.category-navigation ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.category-navigation li {
    margin: 5px 10px;
}

.category-navigation a {
    text-decoration: none;
    color: #333;
    background: #eee;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Header & Nav */
.site-header {
    background-color: #006600; /* Grün */
    color: white;
}

.site-header a {
    color: white;
    text-decoration: none;
}

.site-branding h1 {
    margin: 0;
    font-size: 1.5rem;
}

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

.main-navigation li {
    margin-left: 20px;
}

.menu-toggle { display: none; }
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-header-top {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .hamburger { display: block; }
    
    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #006600;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .admin-bar .main-navigation {
        top: 46px;
        height: calc(100% - 46px);
    }
    
    .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 30px;
        cursor: pointer;
        color: white;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation li {
        margin-left: 0;
        margin-top: 20px;
        font-size: 1.5rem;
    }
    
    #menu-toggle:checked ~ .main-navigation { display: flex; }
}

.navigation.pagination {
    margin-top: 30px;
    text-align: center;
}

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

.navigation.pagination .page-numbers {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

.navigation.pagination .page-numbers:hover {
    background-color: #006600;
    color: #fff;
    border-color: #006600;
}

.navigation.pagination .current {
    background-color: #006600;
    color: #fff;
    border-color: #006600;
}

.navigation.pagination .prev,
.navigation.pagination .next {
    font-weight: bold;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .site-footer .container {
        grid-template-columns: 1fr;
    }
}

.vote-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.vote-btn {
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
}

.vote-btn:disabled {
    filter: brightness(0.8);
    cursor: not-allowed;
}

.vote-btn-up {
    background-color: #006600;
}

.vote-btn-down {
    background-color: #cc0000;
}
