/*
 * Quark 2 — user customizations
 *
 * This file is safe to edit. It is loaded last so anything here overrides
 * theme.css without having to mark rules !important.
 */

/* Seitenbanner */
.page-banner {
    width: 100%;
    height: 280px;
    overflow: hidden;
    margin: 0 0 2rem 0;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .page-banner {
        height: 180px;
    }
}

/* =========================================
   Rechte Seitenleiste
   ========================================= */

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
    align-items: start;
}

.sidebar {
    width: 100%;
}

.sidebar-widget {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

/* Mobil: Sidebar unter dem Inhalt */
@media (max-width: 800px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 20px;
    }
}

/* Sidebar Schnellzugriffe */

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

.sidebar-links li {
    margin: 0;
    padding: 0;
}

.sidebar-links a {
    display: block;
    padding: 9px 10px;
    margin-bottom: 4px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sidebar-links a:hover {
    background: #e5e5e5;
}

/* Sidebar Uhr */

.clock-widget {
    text-align: center;
}

#sidebar-clock {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 8px 0 4px;
}

#sidebar-date {
    font-size: 14px;
    text-transform: capitalize;
}

/* Neueste Beiträge */

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

.sidebar-posts li {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.10);
}

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

.sidebar-posts a {
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.sidebar-posts a:hover {
    text-decoration: underline;
}

/* Wetter */

.weather-widget {
    text-align: center;
}

.weather-location {
    font-size: 14px;
    margin-bottom: 8px;
}

.weather-current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.weather-icon {
    font-size: 32px;
}

.weather-temp {
    font-size: 28px;
    font-weight: 600;
}

.weather-description {
    margin: 5px 0;
}

.weather-range {
    font-size: 13px;
    opacity: 0.8;
}

/* Besucherzähler */

.visitor-widget {
    text-align: left;
}

.visitor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0,0,0,0.10);
}

.visitor-row:last-child {
    border-bottom: none;
}

.visitor-row strong {
    font-weight: 600;
}

.visitor-total {
    margin-top: 4px;
    padding-top: 10px;
    font-size: 15px;
}
