/*
Theme Name: Marek Blue Blog
Author: Marek
Description: Ein einfaches Blog-Theme mit blauem Hintergrund, zweispaltigem Layout (immer nebeneinander), Header-Bild, schwarzer Schrift und blauen Post-Rahmen.
Version: 1.3
*/

body {
    background-color: blue; /* Dein blauer Hintergrund */
    color: black; /* Deine schwarze Schrift */
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box; /* Sorgt dafür, dass Rahmen und Innenabstände die Breiten nicht sprengen */
}

#page-container {
    max-width: 1100px; 
    margin: 40px auto;
    padding: 10px; 
    background-color: rgba(255, 255, 255, 0.85); /* Halbtransparenter weißer Kasten */
    border-radius: 8px;
}

/* Header & Bild */
#site-header {
    margin-bottom: 50px;
    text-align: center;
}

.header-image img {
    width: 100%; 
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
    color: black;
}

#site-header h1 a {
    color: black;
    text-decoration: none;
}

a {
    color: #0055cc; 
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Zweispaltiges Layout - Immer nebeneinander */
#content-area {
    display: flex;
    flex-wrap: nowrap; /* Verhindert strikt, dass Spalten untereinander rutschen */
    justify-content: space-between; /* Verteilt den Platz optimal */
}

#main-content {
    flex: 0 0 68%; /* Hauptbereich nimmt fix 68% ein */
    max-width: 68%;
}

#sidebar {
    flex: 0 0 28%; /* Sidebar nimmt fix 28% ein */
    max-width: 28%;
    background: rgba(0, 0, 0, 0.04);
    padding: 20px;
    border-radius: 8px;
    align-self: flex-start; 
}

/* Beiträge */
.post {
    margin-bottom: 60px;
    padding: 20px; 
    border: 1px solid blue; /* Dein blauer Rahmen */
    border-radius: 4px;
}

.post-title {
    font-size: 2.2em;
    margin-bottom: 5px;
    word-wrap: break-word; /* Verhindert, dass lange Wörter das Layout auf Handys sprengen */
}

.post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

.post-content {
    font-size: 1.1em; 
    word-wrap: break-word;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* Sidebar Elemente */
.widget {
    margin-bottom: 40px;
    overflow-wrap: break-word; /* Schützt die Sidebar vor zu langen Links */
}

.widget-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid black;
    padding-bottom: 5px;
}

/* Kalender aufhübschen & flexibel machen */
#wp-calendar {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
    table-layout: fixed; /* Zwingt den Kalender, in der Spalte zu bleiben */
}

#wp-calendar th, #wp-calendar td {
    padding: 2px;
    border: 1px solid #ddd;
    background: white;
    font-size: 0.9em;
}

/* Suchfeld Styling */
.search-form {
    display: flex;
    width: 100%;
}

.search-form input[type="search"] {
    flex-grow: 1;
    min-width: 0; /* Verhindert, dass das Suchfeld auf Handys ausbricht */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}

.search-form button {
    padding: 8px 12px;
    background: black;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-form button:hover {
    background: #333;
}

.pagination {
    text-align: center;
    font-size: 1.2em;
    margin-top: 40px;
}