body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    max-width: 700px; 
    margin: 40px auto; 
    padding: 0 20px; 
    background: #fffafa;
    background-image: url("https://dl.glitter-graphics.com/pub/1443/1443299gzb9f0keeg.gif"); 
    background-repeat: no-repeat;
    background-position: left top;
    color: #333; 
}
h1 { 
    text-align: center; 
    color: #cdc5bf;
    letter-spacing: 0.5em;
    font-size: 12pt; 
}
article { 
    background: #fff; 
    padding: 25px; 
    margin-bottom: 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    position: relative; 
}
.date { 
    font-size: 0.85em; 
    color: #95a5a6; 
    margin-bottom: 15px; 
}

/* Gemeinsames Styling für Medien-Elemente */
img, video, audio { 
    max-width: 100%; 
    height: auto; 
    border-radius: 6px; 
    display: block; 
    margin-bottom: 15px; 
    background: #eee; 
}
video, audio { 
    width: 100%; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

/* Text- und Link-Formatierung */
.post-content { 
    line-height: 1.6; 
    font-size: 1.1em; 
    white-space: pre-wrap; 
}
.post-content a { 
    color: #2980b9 !important; 
    text-decoration: underline !important; 
    font-weight: 600; 
}
.post-content a:hover { 
    color: #3498db !important; 
}
.post-heading { 
    margin: 15px 0 10px 0; 
    color: #2c3e50; 
    font-size: 1.4em; 
}
.post-heading:first-child { 
    margin-top: 0; 
}

/* Löschen-Button */
/* --- Neue minimalistische Punkt-Buttons --- */

/* Gemeinsame Basis für beide Punkte */
.edit-btn, .delete-btn {
    position: absolute;
    top: 20px; /* Vertikale Positionierung im Artikel-Kopf */
    width: 4px;
    height: 4px;
    border-radius: 50%; /* Macht aus dem Quadrat einen perfekten Kreis */
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

/* Bearbeiten-Button (Gelber Kreis) */
.edit-btn {
    right: 40px; /* Etwas weiter links als der rote Punkt */
    background-color: #ffc0cb; /* Schönes Flat-Design Gelb... ich denke nicht. Hellrosa */
}
.edit-btn:hover {
    background-color: #f39c12; /* Wird beim Drüberfahren dunkler */
    transform: scale(1.3);     /* Wird beim Hovern minimal größer */
}

/* Löschen-Button (Roter Kreis) */
.delete-btn {
    right: 20px; /* Ganz außen am rechten Rand */
    background-color: #cd919e; /* Schönes Flat-Design Rot...auf gar keinen Fall rot. Dunkelrosa */
}
.delete-btn:hover {
    background-color: #c0392b; /* Wird beim Drüberfahren dunkler */
    transform: scale(1.3);     /* Wird beim Hovern minimal größer */
}

/* UX-TRICK: Unsichtbare Klick-Vergrößerung!
   Erzeugt eine unsichtbare Zone von 12px um die Punkte herum.
   Dadurch bleibt der Button optisch exakt 4px groß, lässt sich aber 
   trotzdem kinderleicht anklicken.
*/
.edit-btn::after, .delete-btn::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
}
/* Fehlermeldungen */
.alert { 
    background: #f8d7da; 
    color: #721c24; 
    padding: 15px; 
    border-radius: 6px; 
    margin-bottom: 20px; 
    text-align: center; 
    border: 1px solid #f5c6cb; 
}

/* Styling für die Vorschau-Karten auf der Startseite */
.preview-article {
    transition: transform 0.2s, box-shadow 0.2s;
}
.preview-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* Container und Button für "Zum Blog" */
.center-button-container {
    text-align: center;
    margin: 40px 0;
}
.main-blog-btn {
    display: inline-block;
    background: #2c3e50;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.2s, transform 0.2s;
}
.main-blog-btn:hover {
    background: #34495e;
    transform: scale(1.03);
}

.read-more-link {
    display: inline-block;
    margin-top: 10px;
    color: #2980b9 !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 0.9em;
}
.read-more-link:hover {
    text-decoration: underline !important;
    color: #3498db !important;
}



/* --- Styling für das Bearbeiten-Overlay (Modal) --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(44, 62, 80, 0.6); /* Dunkler, edler Hintergrund */
    backdrop-filter: blur(4px); /* Schickes Verschwimmen des Hintergrunds */
}

.modal-content {
    background-color: #fff;
    margin: 8% auto; 
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 650px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    box-sizing: border-box;
}

.close-modal {
    color: #95a5a6;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #e74c3c;
}

/* Formular-Elemente im Fenster */
.modal-content label {
    display: block;
    margin: 15px 0 5px 0;
    font-weight: bold;
    color: #34495e;
}

.modal-content input[type="password"],
.modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccd1d1;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1em;
}

.modal-content textarea {
    resize: vertical; /* Erlaubt es dem Nutzer, das Feld größer zu ziehen */
    min-height: 150px;
    line-height: 1.5;
}

.modal-content input[type="password"]:focus,
.modal-content textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Buttons im Fenster */
.modal-actions {
    text-align: right;
    margin-top: 20px;
}

.modal-btn-cancel {
    background: #bdc3c7;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    transition: background 0.2s;
}
.modal-btn-cancel:hover { background: #95a5a6; }

.modal-btn-save {
    background: #2ecc71;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.modal-btn-save:hover { background: #27ae60; }

/* Styling für verlinkte Hashtags */
a.hashtag {
    color: #2481cc; /* Schönes Telegram-Blau */
    text-decoration: none;
    font-weight: 500;
}

a.hashtag:hover {
    text-decoration: underline;
    color: #1a65a4; /* Wird beim Drüberfahren etwas dunkler */
}

/* White Cat's Paw - https://www.cursors-4u.com/cursor/nat260 */
* {
  cursor: url('https://cdn.cursors-4u.net/previews/white-cat-s-paw-ef5d1f14-32.webp') 32 32, auto !important;
}
