.dz-remove, .dz-cancel
{
    display: inline-block !important;
    width: 1.2em;
    height: 1.2em;

    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 1000;

    font-size: 1.2em !important;
    line-height: 1.2em;

    text-align: center;
    font-weight: bold;
    text-decoration: none;

    border: 1px solid red !important;
    border-radius: 1.2em;
    color: white;
    background-color: red;
    opacity: 0.8;

}

.dz-remove:hover
{
    text-decoration: none !important;
    opacity: 1;

}

.dropzone .dz-preview .dz-image {
    width: 120px;
    height: 120px;
}

.dropzone .dz-preview.dz-image-preview {
    background: transparent;
    border: 3px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
}

.dropzone .dz-message .dz-button {
    background-color: #e0e0e0;
    color: #000;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    font-weight: bold;
    padding: 1em;
    border-radius: 10px;
}

body.darkmode .dropzone .dz-message .dz-button {
    background-color: #000;
    color: inherit;
}

#fileUploadForm.dropzone {
    background-color: #e0e0e0;
    border: 1px solid #808080;
}

body.darkmode #fileUploadForm.dropzone {
    background-color: #000;
}

/* Zentrierung des Main-Inhalts trotz Layout-Floats */
.layout-twocols .content {
    display: flex;
    justify-content: center;
}

.layout-twocols .content [role="main"] {
    max-width: 960px;
    float: none !important;
    margin: 0 auto !important;
}

/* Größere Thumbnails unter "hochgeladene Fotos" */
.content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] {
    width: 235px !important;
    height: 235px !important;
    padding: 4px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] img.imageForEnlargeView {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 12px !important;
}

/* Dateinamen ausblenden */
.content [role="main"] > div > div[style*="inline-block"] > div[style*="font-size:9px"],
.content [role="main"] > div > div[style*="inline-block"] > div[style*="opacity:0.5"][style*="top:2px"],
.content [role="main"] > div > div[style*="inline-block"] > div[style*="overflow:hidden"][style*="top:2px"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    font-size: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Buttons in runden Kreisen oben rechts und links */
.content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] {
    background-color: transparent !important;
    padding: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}

/* Gemeinsames Styling für beide Buttons */
.content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] a[href*="deleteMedia"],
.content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] img[alt*="löschen"],
.content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] a[href*="rotateMedia"] {
    position: absolute !important;
    top: 8px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    text-decoration: none !important;
    margin: 0 !important;
}

body.darkmode .content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] a[href*="deleteMedia"],
body.darkmode .content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] img[alt*="löschen"],
body.darkmode .content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] a[href*="rotateMedia"] {
    background-color: rgba(40, 40, 40, 0.9) !important;
}

/* Lösch-Button: links */
.content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] a[href*="deleteMedia"],
.content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] img[alt*="löschen"] {
    left: 8px !important;
    right: auto !important;
}

/* Rotier-Button: rechts */
.content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] a[href*="rotateMedia"] {
    right: 8px !important;
    left: auto !important;
}

/* Icons in den Buttons */
.content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] a img,
.content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] img[alt*="löschen"] {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    margin: 0 !important;
    position: static !important;
    display: block !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.darkmode .content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] a img,
body.darkmode .content [role="main"] > div > div[style*="inline-block"][style*="position: relative"] > div[style*="position:absolute"][style*="background-color"] img[alt*="löschen"] {
    filter: invert(1) !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.photo-badge {
    position: absolute !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: inline-block !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

body.darkmode .photo-badge {
    background-color: rgba(40, 40, 40, 0.9) !important;
    color: #fff !important;
}

.photo-badge--suitable {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
}

body.darkmode .photo-badge--suitable {
    background-color: rgba(40, 40, 40, 0.9) !important;
    color: #fff !important;
}

.photo-badge--other {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
}

body.darkmode .photo-badge--other {
    background-color: rgba(40, 40, 40, 0.9) !important;
    color: #fff !important;
}

.photo-badge--unsuitable {
    background-color: rgb(214, 32, 39) !important;
    color: #fff !important;
}

body.darkmode .photo-badge--unsuitable {
    background-color: rgb(214, 32, 39) !important;
    color: #fff !important;
}

/* Hochladen-Button: Contact-Us Style */
#senden.formButton,
button#senden {
    width: max-content !important;
    background-color: rgb(214, 32, 39) !important;
    border: none !important;
    font-size: 20px !important;
    font-family: 'Roboto', sans-serif !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 17px 40px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    margin: 0 auto !important;
    cursor: pointer !important;
}

#senden.formButton:hover,
button#senden:hover {
    background-color: #b71b23 !important;
}

.mediaBlock {
    background-color: #e0e0e0;
    border: 4px solid #fff;
}

body.darkmode .mediaBlock {
    background-color: #000;
}





.dz-preview .dz-error-message {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Sichtbar, wenn Fehler aktiv */
.dz-preview.dz-show-error .dz-error-message {
    opacity: 1;
}


.dz-preview .dz-success-message {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Sichtbar, wenn Fehler aktiv */
.dz-preview.dz-show-success .dz-success-message {
    opacity: 1;
}