/* --- GLOBAL RESET & BASIS --- */
* { box-sizing: border-box; }

body {
    background-image: url("/assets/images/page_bg.jpg") !important;
    background-size: cover !important; 
    background-position: center center !important; 
    background-attachment: fixed !important; 
    background-color: #f7f7f7 !important; 
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none !important; color: inherit; transition: 0.3s; }

/* --- SIDEBAR LAYOUT (DESKTOP) --- */
@media (min-width: 901px) {
    .paper-site-wrapper { display: flex; }

    .paper-sidebar {
        width: 320px; 
        position: fixed;
        top: 0; left: 0; bottom: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url("/assets/images/sidebar_bg.jpg") !important;
        background-size: cover !important;
        background-position: center !important;
        background-color: #fff;
        border-right: 1px solid #eee;
        padding: 60px 40px; 
        display: flex;
        flex-direction: column;
        z-index: 1000;
        text-align: left; 
    }

    .paper-main-content {
        margin-left: 320px;
        flex: 1;
        width: calc(100% - 320px);
        padding: 80px 4vw;
        min-height: 100vh;
    }
}

.sidebar-top { margin-bottom: auto; }

/* --- LOGO --- */
.sidebar-brand { text-align: center; margin-bottom: 50px; }
.sidebar-brand-image {
    display: block;
    margin: -60px -40px 20px -40px !important; 
    width: auto;
    overflow: hidden;
}
.sidebar-brand-image img {
    width: 100% !important; 
    max-width: 100% !important; 
    height: auto !important;
    display: block;
    object-fit: cover; 
}

.sidebar-description {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #777;
    margin-top: 15px;
    line-height: 1.5;
    text-align: center;
    font-weight: 300;
}

/* --- NAVIGATION (FETT & MIT DIVIDERN) --- */
.sidebar-nav ul { 
    list-style: none; 
    padding: 0; 
    margin: 30px 0; 
    border-top: 1px solid rgba(0, 0, 0, 0.1); 
}

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

.sidebar-nav a {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 800; 
    color: #111;
    display: block; 
    padding: 18px 5px; 
    transition: all 0.3s ease;
}

.sidebar-nav a:hover { 
    color: #d63384; 
    padding-left: 12px; 
    background-color: rgba(255, 255, 255, 0.3); 
}

/* --- SIDEBAR FOOTER --- */
.sidebar-footer { padding-top: 20px; border-top: none; }
.sidebar-search input {
    width: 100%; padding: 12px 0; border: none; border-bottom: 1px solid #ccc;
    font-size: 12px; outline: none; background: transparent; letter-spacing: 1px;
    margin-bottom: 25px; color: #333;
}
.sidebar-search input::placeholder { color: #888; text-transform: uppercase; }

.sidebar-social { display: flex; gap: 20px; justify-content: center; margin-bottom: 25px; }
.sidebar-social svg { width: 18px; height: 18px; fill: #666; transition: 0.3s; }
.sidebar-social a:hover svg { fill: #111; }

.sidebar-meta { text-align: center; font-size: 11px; color: #888; }
.sidebar-link {
    display: inline-block; text-transform: uppercase; letter-spacing: 1.5px;
    font-weight: 700; color: #d63384 !important; margin: 0 5px 12px; font-size: 11px;
}
.sidebar-copyright { margin-top: 12px; line-height: 1.6; color: #aaa;}

/* --- MASONRY GRID (STARTSEITE) --- */
.paper-grid { column-count: 3; column-gap: 30px; }
.paper-card {
    display: inline-block; width: 100%; margin-bottom: 30px;
    background: #fff; border-radius: 4px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid #f2f2f2;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    transform: translateZ(0); 
    backface-visibility: hidden;
}
.paper-card:hover { 
    transform: translateY(-8px) translateZ(0); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
}
.paper-img { 
    width: 100%; height: auto; display: block; 
    object-fit: cover !important;
}

.gh-card-content { padding: 25px; }
.paper-meta { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 2.5px; color: #d63384; margin-bottom: 12px; font-weight: 700; }
.paper-title { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 15px; color: #000; line-height: 1.25; }
.paper-excerpt { font-size: 14px; color: #666; line-height: 1.65; }

/* --- POST & PAGE STYLES --- */
.paper-post-container {
    background: #ffffff !important;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 60px 70px;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}

.paper-post-header { text-align: center; margin-bottom: 40px; }
.paper-post-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 42px !important;
    font-weight: 700;
    margin-bottom: 15px !important;
    color: #000;
    line-height: 1.2;
}

.paper-post-content { font-size: 16px; line-height: 1.8; color: #333; }

/* --- FEATURE-BILD ALS BANNER (SEITEN & ARTIKEL) --- */
.paper-post-container .paper-feature-image,
.paper-post-container .gh-feature-image,
.paper-post-container figure.gh-article-image {
    height: 300px !important; 
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: block !important;
    margin: 30px 0 40px 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    grid-column: 1 / -1 !important;
}

.paper-post-container .paper-feature-image img,
.paper-post-container .gh-feature-image img,
.paper-post-container figure.gh-article-image img {
    width: 100% !important;
    height: 100% !important; 
    object-fit: cover !important;
    object-position: center center !important; 
    border-radius: 8px !important;
    transform: none !important;
}

/* --- MOBILE & RESPONSIVE --- */
@media (max-width: 1200px) { .paper-grid { column-count: 2; } }
@media (max-width: 900px) {
    .paper-sidebar { 
        width: 100%; position: relative; padding: 40px 25px; text-align: center; 
        background-image: none !important; background: #fff !important; 
    }
    .sidebar-brand-image { margin: 0 auto 20px auto !important; }
    .sidebar-brand-image img { max-width: 250px !important; width: auto !important; }
    .paper-main-content { margin-left: 0; padding: 30px 20px; width: 100%; }
    .paper-grid { column-count: 1; }
    .paper-post-container { padding: 30px 20px; }
    .paper-post-title { font-size: 32px !important; }
    .paper-post-container .paper-feature-image, 
    .paper-post-container .gh-feature-image { height: 200px !important; }
}