/* Basis */
*{box-sizing:border-box}
body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:#f4f4f4;
    color:#333;
}

/* Header */
.header{
    background:#2c2c2c;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 20px;
    gap:20px;          /* Abstand zw. Logo & rechter Box */
    flex-wrap:wrap;    /* erlaubt Umbruch auf Mobile */
}

/* Logo */
.logo img{height:42px}

/* rechte Seite */
.header-right{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;    /* falls sehr schmal, Button springt nach unten */
}

/* Suchleiste */
.suche{
    display:flex;
    align-items:center;
    gap:6px;
    background:#fff;
    padding:4px 8px;
    border-radius:8px;
}
.suche input{
    border:1px solid #ccc;
    border-radius:4px;
    padding:4px 6px;
}
.suche button{
    background:#b71c1c;
    color:#fff;
    border:none;
    border-radius:4px;
    padding:4px 10px;
    cursor:pointer;
    font-weight:bold;
}

/* Beitrag erstellen */
.create-button{
    background:#fff;
    color:#b71c1c;
    border:2px solid #b71c1c;
    padding:6px 12px;
    border-radius:6px;
    font-weight:bold;
}
.create-button:hover{
    background:#b71c1c;
    color:#fff;
}

/* Beitrag-Box */
.beitrag{
    background:#fff;
    max-width:700px;
    margin:20px auto;
    padding:15px;
    border-radius:8px;
    box-shadow:0 2px 6px rgba(0,0,0,.1);
}
.beitrag img{
    width:100%;
    height:auto;
    border-radius:6px;
    margin-bottom:10px;
}

/* Formular (z.B. eintrag.php) */
form:not(.suche){
    /* das kleine Suchformular soll NICHT davon betroffen sein   */
    background:#fff;
    max-width:600px;
    margin:30px auto;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 4px rgba(0,0,0,.1);
}
form:not(.suche) input[type="text"],
form:not(.suche) textarea,
form:not(.suche) input[type="file"]{
    width:100%;
    padding:10px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:5px;
}
form:not(.suche) input[type="submit"]{
    background:#b71c1c;
    color:#fff;
    border:none;
    border-radius:6px;
    padding:10px 20px;
    cursor:pointer;
    font-weight:bold;
}
form:not(.suche) input[type="submit"]:hover{
    background:#8e0000;
}

/* Paging-Infos */
.paging-info{text-align:center;margin:20px 0 10px}
.paging-links{text-align:center;margin-bottom:30px}
.paging-links a{color:#b71c1c;margin:0 10px;font-weight:bold;text-decoration:none}
.paging-links a:hover{text-decoration:underline}

/* Responsive – unter 768 px alles stapeln */
@media(max-width:768px){
    .header{flex-direction:column;align-items:flex-start}
}