/* ----------------------------
   Body & Grundlayout
---------------------------- */
body {
    font-family: system-ui, Arial, sans-serif;
    max-width: 800px;      /* Blog/Dashboard Breite */
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
    color: #333;
}

h1, h2, h3 {
    font-family: system-ui, Arial, sans-serif;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* ----------------------------
   Formulare (Dashboard)
---------------------------- */
form {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

form input[type=text],
form select,
form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 1em;
}

form button {
    padding: 6px 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background: #005f8d;
}

/* ----------------------------
   Beiträge (Dashboard & Blog)
---------------------------- */
article {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.post-meta {
    font-size: 0.9em;
    color: #555;
}

.post-actions {
    margin-top: 10px;
}

.btn {
    padding: 6px 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    margin-right: 5px;
}

.btn:hover {
    background: #005f8d;
}

/* ----------------------------
   Bilder in Beiträgen
---------------------------- */
.post-content img {
    max-width: 100%;   /* nie breiter als Container */
    height: auto;      /* proportional skalieren */
    display: block;
    margin: 10px 0;
}

/* ----------------------------
   Links & allgemeines Styling
---------------------------- */
a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Optional: TinyMCE Editor kleiner & passend */
.tox-tinymce {
    max-width: 100%;
}
/* ----------------------------
   Dashboard: Beitragstrennung
---------------------------- */
article:nth-child(even) {
    background: #fefefe; /* heller Hintergrund abwechselnd */
}

article:hover {
    background: #f0f8ff; /* sanftes Highlight beim Überfahren */
}

.post-content {
    margin-top: 10px;
    line-height: 1.6;
}

.post-actions {
    margin-top: 15px;
}

/* Formular optisch abheben */
form h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

/* Kategorie im Beitrag hervorheben */
.post-meta {
    font-size: 0.9em;
    color: #0073aa;
    font-weight: bold;
}

/* Buttons Abstand & Hover */
.post-actions .btn {
    margin-right: 8px;
}
.new-post {
    border-left: 4px solid #0073aa;
    padding-left: 16px; /* optional, um Text nicht zu nah an der Linie */
}
.active-filter {
    margin-bottom: 20px;
    font-size: 0.95em;
    color: #333;
}
.active-filter strong {
    color: #0073aa;
}
.new-post {
    background:#ff4d4d;
    color:#fff;
    font-size:0.7em;
    font-weight:bold;
    padding:2px 6px;
    margin-left:10px;
    border-radius:4px;
    vertical-align:middle;
}
