/* 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;
    justify-content: center;
    align-items: center;
}

/* Kontaktformular */
#contact {
    max-width: 500px;
    margin: 60px auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#kontaktformular label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#kontaktformular input,
#kontaktformular textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fdfdfd;
    box-sizing: border-box;
}

#kontaktformular textarea {
    resize: vertical;
    min-height: 120px;
}

#kontaktformular button {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.status {
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
}

.status.success {
    color: green;
}

.status.error {
    color: red;
}




/* 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 */
#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 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 20px;
}

/* "ZufÃ¤lliger Beitrag"-Button */
#feeling-lucky {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* Container für die Gesamtanzahl der Beiträge */
#post-count-container {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    text-shadow: 0px 0px 5px black;
}

/* Beitrag */
#post-container {
    width: 600px;
    max-width: 95%;
    border: 1px solid #ccc;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    text-align: left;
    line-height: 1.6;
    position: relative;
}

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

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

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

/* ðŸ“Œ Download-Button (jetzt wieder **unten rechts auf der Seite**!) */
#download-post {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

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

/* ðŸ“± Mobile Optimierung */
@media screen and (max-width: 768px) {
    #content {
        width: 100%;
        padding: 10px;
    }

    #feeling-lucky {
        width: 90%;
        font-size: 22px;
        padding: 18px;
        border-radius: 10px;
    }

    #post-container {
        max-width: 95%;
        padding: 12px;
        text-align: left;
    }

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

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

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

    #download-post {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}

/* Extra Anpassungen fÃ¼r sehr kleine Bildschirme */
@media screen and (max-width: 480px) {
    #post-container {
        max-width: 98%;
    }

    .profile-pic {
        width: 28px;
        height: 28px;
    }

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

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

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

    #download-post {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
