* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 20px;
    max-width: 700px;
    background: #f9f9f9;
    color: #333;
    line-height: 1.4;
}

/* ✅ <h1> – Automatischer Umbruch nur bei Leerzeichen */
h1 {
    font-size: 2em;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ✅ Für kleine Bildschirme */
@media (max-width: 600px) {
    h1 {
        font-size: 1.4em;
        line-height: 1.3;
        margin: 0;
        padding: 0;
        white-space: normal;
        word-break: break-word;
    }

    body {
        padding: 10px;
    }

    .entry {
        margin-bottom: 12px;
        padding: 8px 12px;
        word-break: break-all;
    }

    .entry small {
        margin: 2px 0 6px 0;
    }

    .permalink {
        font-size: 0.85em;
    }

    .footer-links {
        font-size: 0.85em;
    }

    .message br, .preview br {
        height: 4px;
    }
}

.entry {
    background: white;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-left: 5px solid #007BFF;
    box-shadow: 0 0 3px rgba(0,0,0,0.1);
    word-break: break-word;
    overflow-wrap: break-word;
}

.entry strong {
    display: block;
    margin-bottom: 5px;
}

.entry small {
    display: block;
    margin: 2px 0 8px 0;
    color: #666;
}

.permalink {
    color: #007BFF;
    text-decoration: none;
    font-size: 0.9em;
    margin-right: 10px;
}

.pagination {
    margin: 20px 0;
}

.pagination a {
    margin-right: 5px;
    padding: 6px 10px;
    text-decoration: none;
    background-color: #eee;
    color: #333;
    border-radius: 3px;
    font-size: 0.95em;
}

.pagination a.active {
    background-color: #007BFF;
    color: white;
}

.message br, .preview br {
    display: block;
    height: 6px;
    content: "";
    margin: 0;
    padding: 0;
}

.footer-links {
    margin-top: 40px;
    font-size: 0.9em;
    text-align: center;
    color: #666;
}

.footer-links a {
    color: #007BFF;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.reply {
    border-left: 5px solid #ccc;
    padding-left: 10px;
    background-color: #fff;
    margin-left: 20px;
}

.original-entry {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.original-entry small {
    color: #856404;
}

/* ✅ Verhindere Überlauf in Einträgen & Nachrichten */
.entry-text,
.message,
.preview {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}


/* Kleinere H2 für Kommentare */
h2 {
    font-size: 1.2em;
}

@media (max-width: 600px) {
    h2 {
        font-size: 1em;
    }
}