/* Grundlegende Styles */
body {
    background-color: #272727;
    color: #fff;
}

h1, h2, h3 {
    color: #fff;
}

.card {
    background-color: #2a2a2a;
    border: none;
}

.btn-primary {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.btn-primary:hover {
    background-color: #45a049;
    border-color: #45a049;
}

.form-control, .custom-select {
    background-color: #333;
    color: #fff;
    border: none;
}

.form-control::placeholder {
    color: #bbb;
}

.media img {
    border-radius: 50%;
}

.media-body p {
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-check-label {
    color: #fff;
}

.form-check-input {
    margin-top: 5px;
}

input[type="text"],
select,
input[type="number"] {
    width: 100%;
}

form {
    width: 100%;
}

/* Dungeon-Bilder */
.dungeon-images {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dungeon-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
    padding-top: 56.25%; /* 16:9 Seitenverhältnis */
    background-size: cover;
    background-position: center;
    border: 2px solid #444;
    border-radius: 8px;
    overflow: hidden;
}

.dungeon-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.8);
    color: #fff;
    padding: 5px;
    text-align: center;
}

.dungeon-overlay h5 {
    margin: 0;
    font-size: 18px;
}

.dungeon-overlay p {
    margin: 2px 0;
    font-size: 16px;
}

/* Schiebeschalter (Toggle Switch) Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    margin-left: 10px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:focus + .slider {
    box-shadow: 0 0 1px #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Abgerundete Schiebeschalter */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Responsive Anpassungen */
@media (min-width: 768px) {
    .dungeon-images {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dungeon-image {
        width: 150px;
        height: 150px;
        margin: 10px;
        padding-top: 0; /* Padding entfernen */
    }

    .dungeon-overlay h5 {
        font-size: 14px;
    }

    .dungeon-overlay p {
        font-size: 12px;
    }
}

/* Zusätzliche Anpassungen */

/* 1. "Suchen"-Button auf voller Breite bei kleinen Bildschirmen */
@media (max-width: 767.98px) {
    .btn-primary {
        width: 100%;
    }
}

/* 2. Abstand zwischen Button und Ergebnissen */
#results {
    margin-top: 20px; /* Du kannst den Wert anpassen */
}
