.background-wrapper-dune {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('https://chroms-corsairs.de/src/dune/wallpaper_duneserver.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    filter: brightness(50%);
    z-index: -1;
}
.body-dune {
    padding-top: 80px !important;
    background: #2B2B2B !important;
}
.dune-container {
    position: relative;
}
.dune-row {
    position: static;
}

.dune-card {
    background-color: rgba(33, 37, 41, 0.8);
    position: static;
}
.dune-gallery img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.delete-image {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #dc3545;
    font-weight: bold;
    line-height: 1;
    color: #fff;
}
.delete-member, .delete-story, .delete-rank {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #dc3545;
    font-weight: bold;
    line-height: 1;
    color: #fff;
}
.upload-placeholder button {
    background-color: #a98e7b;
    color: #fff;
    border: none;
}
.dune-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.dune-accordion .accordion-button {
    background-color: rgba(185, 138, 92, 0.7) !important;
    color: #f8f9fa !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1060;
}
.dune-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(199, 156, 113, 0.85) !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
}
.dune-accordion .accordion-body {
    background-color: rgba(0,0,0,0.5);
}

.edit-switch span {
    font-size: 0.9rem;
}
.edit-switch .form-check-input {
    cursor: pointer;
}

/* Overlay style for expanded accordion sections */
.accordion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 100%;
    overflow-y: auto;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
}

/* Carousel and Modal */
.dune-carousel img {
    cursor: pointer;
}
.dune-carousel .gallery-item {
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.dune-carousel .dune-gallery-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
#imageModal.show {
    z-index: 2000;
}
#imageModal .modal-content {
    background: rgba(0,0,0,0.8);
}

.guild_rules h1, .guild_rules h2 { color: #f8f9fa; }
.guild_rules ul { list-style-type: disc; padding-left: 20px; }
.guild_rules ul ul { list-style-type: circle; }
.guild_rules li { margin-bottom: 10px; }
.guild_rules .verboten { color: darkred; font-weight: bold; }
.guild_rules .erlaubt { color: darkgreen; font-weight: bold; }