/* =============================================
   PinguPal CMS - Default Theme Stylesheet (Final Fix)
   ============================================= */

/* --- 1. Globale Resets & Variablen --- */
:root {
    --primary-color: #2dbbe6;
    --header-bg: #2c3e50;
    --footer-bg: #34495e;
    --header-text: #ffffff;
    --footer-text: #ecf0f1;
    --text-main: #333333;
    --max-width: 1100px;
}

*, *:before, *:after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9; 
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
.pingupal-brand-text { color: var(--primary-color); }

/* --- 2. Layout-Container --- */
.header-inner, 
.footer-inner, 
.site-content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- 3. Header Styling --- */
.site-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 1.5rem 0;
    width: 100%; 
    display: flex;
    justify-content: center;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}
.site-header h1 { font-size: 2.25rem; margin: 0; line-height: 1.2; }
.site-tagline { font-size: 0.95rem; opacity: 0.8; font-weight: normal; }
.site-header h1 a { color: var(--header-text); text-decoration: none; }


/* --- 4. Navigation --- */
.main-menu-top > ul { 
    list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; 
}
.main-menu-top li { position: relative; }
.main-menu-top a { 
    color: var(--header-text); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; padding: 10px 0; display: block;
}
.main-menu-top a:hover { color: var(--primary-color); text-decoration: none; }

/* Dropdown */
.main-menu-top .sub-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: var(--header-bg); min-width: 200px; padding: 10px 0;
    z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.2); border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}
.main-menu-top li:hover > .sub-menu { display: block; }
.main-menu-top .sub-menu li { display: block; width: 100%; }
.main-menu-top .sub-menu a {
    padding: 8px 15px; text-transform: none; white-space: nowrap; font-weight: normal;
}
.main-menu-top .sub-menu a:hover { background-color: rgba(255,255,255,0.1); }


/* --- 5. Content & Typografie --- */
.site-body-wrapper { width: 100%; flex-grow: 1; background-color: #ffffff; }
.site-content { padding-top: 3rem; padding-bottom: 3rem; }

.page-content p, .post-content p, .comment-content p { margin-bottom: 1.2rem; padding-left: 0; }
.page-content h1, .single-post h1 {
    font-size: 2.2rem; margin-bottom: 1.5rem; padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0; color: #2c3e50; margin-top: 0;
}

/* --- 6. Blog & Pagination --- */
.blog-listing h1 { margin-bottom: 2rem; }
.blog-post { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid #eee; width: 100%; }
.blog-post h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.blog-post h2 a { color: #222; text-decoration: none; }

.pagination { 
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #eee; width: 100%; gap: 1rem;
}
.pagination a, .pagination span.disabled { 
    display: inline-block; padding: 0.6rem 1.2rem; border: 1px solid #ddd; 
    border-radius: 4px; background: #fff; color: #333; font-weight: 600; 
    text-decoration: none; white-space: nowrap;
}
.pagination a:hover { background-color: #f5f5f5; }
.pagination span.disabled { color: #aaa; border-color: #eee; cursor: default; }


/* --- 7. Footer --- */
.site-footer {
    background-color: var(--footer-bg); color: var(--footer-text);
    width: 100%; padding: 2rem 0; flex-shrink: 0; border-top: 1px solid rgba(0,0,0,0.1);
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}
.footer-inner { display: flex; flex-direction: column; }
.site-footer p, .site-footer a, .site-footer span { color: #ffffff !important; }
.site-footer p { margin-bottom: 0.5rem; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; flex-wrap: wrap; gap: 2rem; }

/* Social Icons */
.social-media-icons a { display: inline-block; line-height: 0; }
.social-media-icons svg { width: 24px; height: 24px; transition: transform 0.2s; }
.social-media-icons a:hover svg { transform: scale(1.2); }


/* --- 8. KOMMENTAR & KONTAKT FORMULAR (FIX) --- */
.comments-area, .contact-area { 
    margin-top: 3rem; 
    padding-top: 2rem; 
    border-top: 2px solid #eee; 
}

/* Labels */
.comment-form label, 
.contact-form label {
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: bold; 
    color: #444;
}

/* Eingabefelder - ALLGEMEINER SELEKTOR (Wichtig!) */
.comment-form input:not([type="submit"]):not([type="hidden"]), 
.contact-form input:not([type="submit"]):not([type="hidden"]), 
.comment-form textarea, 
.contact-form textarea {
    width: 100%;           
    padding: 0.8rem;       
    border: 1px solid #ccc; 
    border-radius: 4px;    
    font-family: inherit; 
    font-size: 1rem;
    margin-bottom: 1.5rem; 
    box-sizing: border-box; 
    display: block;
}

.comment-form textarea,
.contact-form textarea {
    min-height: 150px;
}

/* Button */
.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.submit-button:hover {
    background-color: #1a9cb7; 
}

/* Kommentar-Liste */
.comment-list { list-style: none; padding: 0; margin: 2rem 0; }
.comment-item { padding: 1.5rem; border-bottom: 1px solid #f0f0f0; }
.comment-meta { margin-bottom: 0.5rem; font-size: 0.9rem; color: #666; }
.comment-author { font-weight: bold; color: #222; font-size: 1.1rem; }


/* --- 9. Mobile --- */
@media (max-width: 768px) {
    .header-inner, .footer-content { flex-direction: column; text-align: center; }
    .main-menu-top ul { margin-top: 1rem; flex-direction: column; gap: 10px; }
    .pagination { flex-direction: column; gap: 10px; }
    .pagination a, .pagination span.disabled { width: 100%; text-align: center; }
}