/* --- Globale Design-Variablen (Light Mode - Standard) --- */
:root {
    /* Schriftart */
    --font-family: 'Poppins', sans-serif;
    
    /* Farben (Light) */
    --body-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: #ffffff;
    --title-color: #1a1a1a;
    --text-color: #555555;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --card-border: 1px solid rgba(0, 0, 0, 0.05);

    /* Button-Verlauf */
    --primary-gradient: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    --primary-gradient-hover: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
}

/* --- Grundlegendes Setup --- */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 30px 15px;
    background-image: var(--body-bg);
    background-attachment: fixed; /* Hält den Verlauf beim Scrollen fest */
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Generelle Link-Stile */
a {
    text-decoration: none; /* Entfernt die Unterstreichung */
    color: inherit;      /* Links erben die Textfarbe vom Elternelement */
}

/* Optional: Stile für den Hover-Zustand (wenn die Maus über den Link fährt) */
a:hover {
    /* text-decoration: underline; */ /* Optional: Fügt Unterstreichung beim Hover hinzu, wenn gewünscht */
    /* color: #fff; */     /* Optional: Ändert die Farbe beim Hover */
    color: inherit; /* Behält die Farbe bei, erbt sie vom Elternelement */
}

/* Optional: Stile für den aktiven Zustand (während der Link geklickt wird) */
a:active {
    /* color: #fff; */
    color: inherit;
}

/* Optional: Stile für bereits besuchte Links */
a:visited {
    /* color: #fff; */
    color: inherit;
}

/* --- Feed-Container --- */
.feed-container {
    max-width: 680px;
    margin: 0 auto;
}

/* --- Die Beitragskarte (Post Card) --- */
.post-card {
    background-color: var(--card-bg);
    border-radius: 12px; /* Weichere Kanten */
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    margin-bottom: 30px;
    overflow: hidden; 
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px); /* Leichter Schwebe-Effekt */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* --- Beitrags-Titel (Jetzt über dem Bild) --- */
.post-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--title-color); /* Behält deine ursprüngliche Titel-Farbe */
    padding: 25px 25px 20px 25px;
    margin: 0;
text-decoration: none;

}

/* Neue Regeln, um Link-Formatierungen für verlinkte Titel zu entfernen */
.post-title a {
    text-decoration: none; /* Entfernt die Unterstreichung */
    color: inherit;      /* Stellt sicher, dass die Farbe des Links die Farbe des .post-title erbt */
}

/* Optional: Um die Unterstreichung auch beim Hovern zu entfernen, falls du das nicht möchtest */
.post-title a:hover {
    text-decoration: none;
    color: inherit; /* Oder eine andere Farbe, wenn du möchtest, dass sie sich beim Hovern ändert */
}
/* --- Beitrags-Bild --- */
.post-image {
    width: 98%;
    height: auto;
    display: block; /* Wichtig, damit margin: auto funktioniert */
    margin: 0 auto; /* Zentriert das Block-Element horizontal */
}
a .post-image,
a:hover .post-image {
    /* Entfernt die Unterstreichung */
    text-decoration: none; 
    
    /* Setzt die Textfarbe (relevant, falls Text in der Nähe des Bildes ist, 
       aber meistens überflüssig bei reinen Bildern) */
    color: inherit; 
    
    /* Stellt sicher, dass das Bild selbst nicht von einem Link-Fokus-Rahmen umgeben wird */
    border: none;
    outline: none;
}

/* Wichtig: Wenn das Bildelement (<img>) selbst die Klasse .post-image hat, 
   aber in einem Link (<a>) ist, dann müssen wir den Link (<a>) selbst stylen, 
   um die blauen Ränder um das Bild zu entfernen. */
a img.post-image {
    /* Entfernt den blauen/farbigen Rand, den manche Browser um Bilder in Links zeigen */
    border: none;
}

/* --- Beitrags-Inhalt (Text & Button) --- */
.post-content {
    padding: 0 25px 25px 25px; /* Padding oben ist jetzt beim Titel */
}

/* --- Beitrags-Text --- */
.post-text {
    font-size: 1rem;
    margin-bottom: 25px;
}

/* --- Aktions-Bereich --- */
.post-actions {
    text-align: right;
color:white;
}

/* --- Moderner Call-to-Action Button --- */
.post-button {
    display: inline-block;
    background-image: var(--primary-gradient);
    background-size: 200% auto;
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 50px; /* Pill-Shape */
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s ease;
color:white;
}

.post-button:hover {
color:white;
    background-position: right center; /* Ändert die Verlaufsrichtung */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.post-action-arrow{
padding-left: 10px;
padding-right:5px;
}

/*
   ========================================
   ===    AUTOMATISCHER DARK MODE       ===
   ========================================
*/
@media (prefers-color-scheme: dark) {
    /* Variablen für den Dark Mode überschreiben */
    :root {
        --body-bg: linear-gradient(135deg, #232526 0%, #414345 100%);
        --card-bg: #1e1e1e;
        --title-color: #f0f0f0;
        --text-color: #adb5bd;
        --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        --card-border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .post-card:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }
}

/* --- Responsivität für kleinere Bildschirme --- */
@media (max-width: 768px) {
    body {
        padding: 15px 10px;
    }

    .post-title {
        font-size: 1.5rem;
        padding: 20px 20px 15px 20px;
    }

    .post-content {
        padding: 0 20px 20px 20px;
    }
}