/* Allgemeine Styles */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');



html,
body {
    padding: 0;
    margin: 0;
    font-family: "Ubuntu", sans-serif;
    font-weight: 300;
    font-style: normal;
    height: 100%;

}

* {
    box-sizing: border-box;
}

li {
    list-style: none;
}


/* button */

.btn {
    background-color: #555555;
    border: none;
    padding: 10px;
    font-size: 18px;
    margin: 5px;
    cursor: pointer;
}


.btn:hover a {
    color: black;
}

.btn a:hover {
    color: black;
}

.btn a {
    color: white;
    text-decoration: none;
}



/* Stil für das Dropdown */
.profil-dropdown {
    display: none;
    position: absolute;
    right: 5px;
    top: 70px;
    width: 270px;
    height: 130px;
    background-color: #1d2327;
    padding: 10px;
    grid-template-columns: auto 1fr;
    z-index: 1001;
    color: white;
}

.showDropdown {
    display: grid;
}

.profil-dropdown p {
    margin: 0;
}

/* Stil für das Profil-Menü */

.profil-links {
    cursor: pointer;
}

.profil-profilinfo p {
    cursor: default;
}

.profil-profilinfo {
    margin-bottom: 40px;
}

.profil-dropdownentries {
    margin-left: 20px;
    text-align: left;
}


.profildropdown-profil_pic {
    object-fit: cover;

    width: 64px;
    height: 64px;

}


/* Header */


.logo {
    height: 50px;

}

menu {
    padding: 0;
}


.header-profil-pic {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
}

/* Menu */



.header-btn {
    background-color: transparent;
}



/* Posts Startseite */

.header-container {
    background-image: url(../media/site/header.jpg);
    background-repeat: no-repeat;

    background-position: center;
    height: 400px;
    background-size: cover;
}

.header-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
    background-color: #3c6c9cde;
    box-shadow: 0 4px 50px 15px #143f61;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

.mainpage-sidebar {
    width: 100%;
    /* Vollständige Breite der Seitenleiste */
}

.calendar {
    box-sizing: border-box;
}

.calendar-event-container {
    box-shadow: 1px 1px 10px gray;
    padding: 5px;
}

.mainpage {
    display: grid;
    grid-template-columns: 80% 20%;
    /* Verwenden Sie Grid mit 80% für den Hauptinhalt und 20% für die Seitenleiste */
}


.pagetitle {
    margin: 10px;
}

.postspreview-container {
    width: 100%;
    /* Vollständige Breite des Hauptinhalts */
}

.postspreview {
    display: flex;
    flex-wrap: wrap;
}

.postpreview {
    position: relative;
    width: 300px;
    height: 500px;
    margin: 10px;
    box-shadow: 1px 1px 10px gray;
}

.postpreview-beitragsbild {
    height: 40%;
}

.postpreview-beitragsbild img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}


.postpreview-title {
    padding: 5px;
}

.postpreview-content {
    padding: 5px;
    background-color: #deb88775;
}

.postpreview-readmore {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: beige;
    padding: 10px;
}

.postpreview-readmore-link {
    text-decoration: none;
    color: black;
}

/* Neuer Post Beitrag hinzufügen */


.posteditor-main {
    display: flex;
    height: calc(100% - 40px);
}

.posteditor {
    flex-basis: 100%;
    padding: 20px;
}

.posteditor-sidebar {
    flex: 1;
    max-width: 300px;
    padding: 15px;
    border-left: 1px solid #e0e0e0;
    height: 100%;
}



/* Modal Media Folder */

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

/* Inhalt des Modalfensters */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    position: relative;
}

.media-content img {
    width: 150px;
    height: 150px;
    padding: 10px;
    cursor: pointer;
    object-fit: cover;
}

/* Schließen-Schaltfläche */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 2px;
    right: 5px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Upload Area im Modal */
.upload-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;

}


.upload-area:hover {
    border-color: #666;

}


.upload-area.dragover {
    border-color: #007bff;

}


.upload-area p {
    margin: 0;
}


#uploadProgressBarContainer {
    width: 100%;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

#uploadProgressBar {
    width: 0;
    height: 20px;
    background-color: #4caf50;
    transition: width 0.3s ease-in-out;
}


/* Post Image */


.posteditor-image {
    width: 100%;
    height: 150px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 25px;
    background-color: #e8e8e8;
}


.posteditor-image-preview {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.posteditor-image-input {
    opacity: 0;
    cursor: pointer;
}

.posteditor-image-options {
    display: none;
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
}

.btn-delete-imagepreview,
.btn-change-imagepreview {
    border: none;
    padding: 10px;
    border-radius: 5px;
}

/* Adress */

.posteditor-address {
    display: flex;
    margin-bottom: 10px;
}

.posteditor-address img {
    height: 25px;
    width: 25px;
    margin-right: 5px;
}


.posteditor-address input {
    width: 100%;
    height: 20px;
}

.posteditor-addressDropdown {
    display: none;
    width: 100%;
    background-color: #fff;
    border: 1px grey solid;
    height: 30px;
}

.posteditor-title {

    width: 100%;
    margin-bottom: 20px;
    height: 60px;
    outline: none;
    font-size: 40px;
    font-weight: 600;
    color: #2d2d2d;
    resize: none;
    border: none;

}

.posteditor-title::placeholder {
    color: #2d2d2d;
}


textarea::-webkit-scrollbar {
    width: 10px;
}

textarea::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Editor qp */

.ql-container.ql-snow {
    height: 600px;
}

.ql-snow .ql-editor img {
    max-height: 400px;
}


.btn.publish {
    color: white;
    cursor: pointer;
    margin: 0;
    margin-top: 20px;

}

.btn.publish:hover {
    color: grey;
}



/* Login Page */

body.loginpage {
    background-image: url('../media/site/login-background.jpg');
}

.login-container {
    width: 400px;
    border: 2px dashed #ccc;
    margin: 200px auto;
    padding: 15px;
}

.login-input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-input-label {
    position: absolute;
    pointer-events: none;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: top 0.3s, font-size 0.3s, color 0.3s;
    font-size: 16px;
    color: #999;
}

.login-input-field {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;

    transition: border-color 0.3s;
}

.login-input-field:focus {
    border-color: #007bff;
}

.login-input-label.active {
    top: 0;
    font-size: 12px;
    color: #007bff;
    background: white;
    padding: 2px;
}

/* Backend */

.backend {
    margin-right: 0;
    height: calc(100% - 40px);
}

.backend-container {
    display: flex;
    height: 100%;
}

.backendbar {
    width: 100%;
    height: 40px;
    align-content: center;
    background-color: #6d80ac;
    color: white;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px black solid;
}

.backendbar a {
    color: white;
    text-decoration: none;
}

.backend-dropdown {
    top: 40px;
}

.backend-home {
    margin-left: 10px;
    display: flex;
    cursor: pointer;
    align-items: center;
    height: 100%;
}


.backend-home p {

    margin-left: 10px;

}

.backend-home-img {
    width: 30px;
    height: 30px;
}

.profilinfo-backend {
    display: flex;
    align-items: center;
    float: right;
    margin-right: 20px;
}

.profilinfo-backend p {
    margin: 0;
    margin-right: 0px;
    margin-right: 10px;
    cursor: default;
}

.profilinfobackend-profil_pic {
    width: 30px;
    height: 30px;
    object-fit: cover;
    cursor: pointer;
}

.backend-menu {
    padding-top: 15px;
    width: 250px;
    position: relative;
    background-color: #6d80ac;
    color: white;
    height: 100%;
}

.backendmenu-entrie {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    margin-left: 10px;
}

.backend-menu-img {
    width: 25px;
    height: 25px;
}

.backendmenu-item {

    height: 30px;
    display: flex;
    cursor: pointer;
    align-items: center;
    margin-left: 10px;

}


.backend-content {
    flex: 1;
    /* Flexibles Wachstum, um den verbleibenden Platz zu füllen */

    box-sizing: border-box;
    /* Padding und Border in die Gesamtbreite/Höhe einbeziehen */
}

.erlebnisse-titel {
    text-align: center;

}

#myearth::after {
    content: "";
    position: absolute;
    height: 22%;
    bottom: 4%;
    left: 13%;
    right: 13%;
    background: radial-gradient(ellipse at center, rgba(5, 57, 89, 0.7) 0%, rgba(5, 57, 89, 0.55) 20%, rgba(5, 57, 89, 0.2) 40%, rgba(5, 57, 89, 0.1) 50%, rgba(5, 57, 89, 0.02) 60%, rgba(5, 57, 89, 0) 70%, rgba(5, 57, 89, 0) 100%);
}


/* Post Verwaltung */
.backend-post-element {
    border: 1px solid #ccc;
    padding: 10px;
    overflow-y: auto;

    height: auto;
}

.backend-post-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.backend-post-image {
    width: 100px;
    /* Stellen Sie die Breite des Bildes ein */
    height: 100px;
    /* Stellen Sie die Höhe des Bildes ein */
    margin-right: 10px;
    /* Fügen Sie einen Abstand zwischen dem Bild und dem Inhalt hinzu */
    float: left;
    /* Das Bild soll links vom Text stehen */
    object-fit: cover;
}

.backend-post-content {
    font-size: 14px;
    overflow: hidden;
    /* Verhindert das Überlaufen des Inhalts */
    text-overflow: ellipsis;
    /* Fügt Auslassungszeichen hinzu, wenn der Text zu lang ist */
    white-space: nowrap;
    /* Verhindert das Umbruch des Textes */
}

.backend-post-author,
.backend-post-date {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.backend-post-buttons {
    float: right;
    justify-content: space-between;
    display: flex;
    width: 90px;
}

.btn-backend-edit-post {
    width: 40px;
    /* Breite des Bildes */
    height: 40px;
    /* Höhe des Bildes */
    background-image: url('../media/site/edit.svg');
    /* Pfad zum Bild */
    background-size: cover;
    /* Bild an die Größe anpassen */
    cursor: pointer;
    /* Zeiger beim Überfahren anzeigen */
    background-color: transparent;
    border: none;
}

.btn-backend-delete-post {
    width: 40px;
    /* Breite des Bildes */
    height: 40px;
    /* Höhe des Bildes */
    background-image: url('../media/site/trash.svg');
    /* Pfad zum Bild */
    background-size: cover;
    /* Bild an die Größe anpassen */
    cursor: pointer;
    /* Zeiger beim Überfahren anzeigen */
    background-color: transparent;
    border: none;
}


/* Profil Verwaltung */
#backend-userprofil {

    padding: 20px;

}

.backend-userprofil-heading {
    font-size: 24px;
    margin-bottom: 15px;
}

.backend-userprofil-table {
    display: table;

}

.backend-userprofil-row {
    display: table-row;
}

.backend-userprofil-cell {
    display: table-cell;
    padding: 5px 10px;
}

.backend-userprofil-cell input {
    width: 300px;
    border-radius: 3px;
    border: 1px black solid;
    height: 20px;
}


.backend-userprofil-label {
    margin-bottom: 5px;
}

.backend-userprofil input[type="text"] {

    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.backend-userprofil-lastlogin {
    font-style: italic;
    color: #666;
}

.save-userprofile {
    color: white;
    margin: 20px;
}


/* Medien Verwaltung */

.backend-media-table {
    border-collapse: collapse;
    width: 100%;
}

.backend-media-table-header,
.backend-media-table-body {
    display: table;
    width: 100%;
}

.backend-media-table-header>div,
.backend-media-table-body>.backend-media-table-row>div {
    display: table-cell;
    border-bottom: 1px solid #ddd;
    padding: 8px;
    vertical-align: middle;
}

.backend-media-table-checkbox {
    width: 10%;
}

.backend-media-table-file {
    width: 30%;
}

.backend-media-table-filename {
    width: 60%;
}

.backend-media-item {
    height: 100px;
    width: 100px;
    object-fit: cover;
}

.backend-media-table-row {
    display: table;
    width: 100%;
}


/* Users Verwaltung */

/* Allgemeine Stile für die Backend-Benutzerliste */
.backend-users {
    list-style-type: none;
    padding: 0;
}

/* Stile für einzelne Backend-Benutzer */
.backend-user {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Stile für das Benutzerprofilbild */
.backend-user-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

/* Stile für die Benutzerinformationen */
.backend-user-info {
    flex: 1;
}

/* Stile für den Benutzernamen */
.backend-user-name {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Stile für die Benutzer-E-Mail */
.backend-user-email {
    color: #666;
    margin-bottom: 5px;
    margin-left: 10px;
}

/* Stile für das Datum des letzten Logins */
.backend-user-last-login {
    color: #999;
    font-size: 0.8em;
    margin-left: 10px;
}

.backend-user-edit,
.backend-user-delete {
    width: 30px;
    height: 30px;
    float: right;
    margin-left: 15px;
    cursor: pointer;
}


.user-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Hintergrundfarbe mit Transparenz */
    z-index: 1000;
    /* Z-Index, um sicherzustellen, dass das Modal über anderen Inhalten liegt */
}

.user-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    /* Schatten für das Modal */
    width: 400px;
}

.user-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #888;
}

.user-modal-close:hover {
    color: #333;
}

.user-modal-form label {
    display: block;
    margin-bottom: 10px;
}

.user-modal-form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.user-modal-form button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.user-modal-form button:hover {
    background-color: #0056b3;
}




/* Post Site */
.post-title {
    height: 200px;
    background-color: rgb(0, 130, 160);
    text-align: center;
    align-content: start;
    color: white;
    font-size: 70px;
    font-weight: 700;
    padding: 10px;
    border-bottom-right-radius: 100%;
    position: relative;
}

.post-title-bgr1 {
    position: absolute;
    height: 220px;
    width: 100%;
    background-color: #005f75;
    top: 0;
    left: 0;
    z-index: -1;
    border-bottom-right-radius: 50%;
}

.post-maininfo {
    display: grid;
    grid-template-columns: 70% 30%;

}

.post-image {
    height: 400px;
    width: 100%;
    text-align: center;
    margin-top: -50px;
}

.post-image img {
    height: 100%;
    width: 70%;
    object-fit: cover;
    border-radius: 15px;
    position: relative;
}

.post-info {
    align-content: center;
    padding: 5px;
}

.post-lastupdate,
.post-author {
    display: flex;
    font-weight: bold;
    margin-bottom: 20px;
}


.post-author img {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 100%;
}

.post-lastupdate p,
.post-author p {
    margin-left: 20px;
}

.post-lastupdate img {
    height: 40px;
    width: 40px;
}

.post-map {
    height: 200px;
    width: 80%;
    margin: auto 0;
}

.post-content {
    margin: auto;
    margin-top: 50px;
    width: 75%;
}

.post-content img {
    width: 200px;
    height: 300px;
    cursor: zoom-in;

}


.image-modal {
    display: none;
    /* Verstecke das Modal standardmäßig */
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 400px;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Calendar */
/* Modal Styles */
.eventModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.eventModal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.eventModalclose {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.eventModalclose:hover,
.eventModalclose:focus {
    color: #000;
    text-decoration: none;
}

h5#eventModalLabel {
    margin-top: 0;
    font-size: 24px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.eventModal p {
    margin: 10px 0;
    font-size: 18px;
}

.eventModal strong {
    color: #333;
}


@supports (-webkit-overflow-scrolling: touch) {

    input,
    textarea {
        font-size: 16px !important;
    }
}