/* Stellt sicher, dass die Seite den gesamten Viewport füllt */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Anfangs unsichtbar */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, background-color 0.3s;
}

#backToTop:hover {
    background-color: rgba(0, 0, 0, 0.75);
    transform: scale(1.05);
}


#load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#load-more:hover {
    background-color: rgba(0, 0, 0, 0.75);
    transform: scale(1.05);
}

a{
    color: inherit;
    text-decoration: inherit;
}

a:hover{
    color: rgba(36,122,255,1.00);
    text-decoration: inherit;
}

/* Navigationsleiste */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    z-index: 1000;
}

/* Links in der Navigation */
#navbar a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    transition: background 0.3s ease;
}

#navbar a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}


/* Hintergrundbild (gleich wie auf Hauptseite) */
#background {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: url('https://www.fickstutenmarkt.de/wp-content/uploads/2014/03/FSM_de-background-2014-blurred.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(20px);
    -webkit-filter: blur(20px);
    transform: scale(1.1);
    z-index: -1;
}

/* Hauptcontainer */
#content {
    width: 100%;
    max-width: 700px; /* Etwas breiter für mehr Platz */
    text-align: center;
    margin-top: 50px;
}

/* Titel */
h1 {
    font-size: 24px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Beitragscontainer */
#post-feed {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Zurück-Pfeil */
#back-button {
    margin-top: 60px;
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 24px;
    text-decoration: none;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
    z-index: 1000; /* Stellt sicher, dass der Button über allem liegt */
}

#back-button:hover {
    background: rgba(0, 0, 0, 0.8);
}



/* Einzelner Beitrag */
.post-container {
    width: 90%;
    max-width: 600px;
    border: 1px solid #ccc;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    text-align: left;
    line-height: 1.6;
}

/* Profilbild + Name in einer Zeile */
.post-header-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    gap: 10px;
}

/* Profilbild */
.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Name + Wohnort in einer Spalte */
.post-header-text {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

/* Autor fett */
.author {
    font-weight: bold;
    color: black;
}

/* Wohnort grau */
.origin {
    font-weight: normal;
    color: #666;
}

/* Metadaten (Datum & Zeit) */
.post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
}

/* Beitragstext */
.post-text {
    font-size: 16px;
    color: #222;
    margin-top: 10px;
}

/* 📱 Mobile Optimierung */
@media screen and (max-width: 768px) {
    #content {
        width: 95%;
    }

    .post-container {
        width: 95%;
    }

    .post-header {
        font-size: 14px;
    }

    .post-meta {
        font-size: 12px;
    }

    .post-text {
        font-size: 14px;
    }
}

/* Extra Anpassungen für sehr kleine Bildschirme */
@media screen and (max-width: 480px) {
    .profile-pic {
        width: 28px;
        height: 28px;
    }

    .post-header {
        font-size: 13px;
    }

    .post-meta {
        font-size: 11px;
    }

    .post-text {
        font-size: 13px;
    }
}
