/* Sicherstellen, 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);
}


/* Abstand zwischen den Beiträgen */
.post-container {
    margin-bottom: 5px; /* Fügt Platz zwischen den Posts hinzu */
}

.post-header-container a{
    color: inherit;
    text-decoration: inherit;
}

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

/* Hintergrundbild (gleich wie auf City-Seite) */
#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;
}

/* 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;
}

/* Hauptcontainer */
#content {
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin-top: 80px;
}

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

/* Suchfeld + Button */
#search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
}

#search-input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 2px solid rgba(175,175,175,1.00);
    border-radius: 5px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.75);
}

#search-button {
    padding: 10px 15px;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

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

/* 🔥 Fix: Suchergebnisse sollen wie City-Seite aussehen */
#search-results {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* Einzelner Beitrag (genau wie auf City-Seite) */
.post-container {
    width: 90%;
    max-width: 600px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    text-align: left;
    line-height: 1.6;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* 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%;
    }

    #search-container {
        width: 95%;
    }

    #search-results {
        width: 95%;
    }

    .post-container {
        width: 95%;
    }
}
