/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background: rgba(255, 255, 255, 0.9);
    margin: 5% auto;
    padding: 15px;
    border-radius: 10px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    color: #333333;
}

/* Modal Header */
.modal-content h2 {
    font-size: 1.5em;
    margin-top: 0;
    color: #333333;
    text-align: center;
}

/* Modal Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #333333;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #686868;
}

/* Technische Daten Container */
.tech-data-container {
    max-width: 95%;
    margin: 5% auto;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.tech-data-container h4 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 6px;
    color: #333333;
    font-size: 1.2em;
}

.tech-data-container p {
    margin: 8px 0;
    line-height: 1.4em;
    color: #333333;
    font-size: 0.9em;
}

.tech-data-container strong {
    color: #444444;
}

/* Lageplan und Regelwerk Bilder */
.lageplan-content img {
    max-width: 100%;
    height: auto;
}

/* Hintergrundbild */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/medien/hintergrund/background1.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.3;
    z-index: -1;
}

/* Responsives Design */
@media screen and (max-width: 768px) {
    .modal-content, .tech-data-container {
        max-width: 98%;
        margin: 10px auto;
        padding: 10px;
    }
    .close {
        font-size: 36px;
        right: 8px;
        top: 8px;
    }
    .modal-content h2 {
        font-size: 1.3em;
    }
    .tech-data-container h4 {
        font-size: 1.1em;
    }
}

@media screen and (max-width: 480px) {
    .modal-content h2 {
        font-size: 1.1em;
    }
    .modal-content p, .tech-data-container p {
        font-size: 0.8em;
    }
    .close {
        font-size: 32px;
    }
    .tech-data-container h4 {
        font-size: 1em;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .modal-content, .tech-data-container {
        background: rgba(51, 51, 51, 0.8);
        color: #ffffff;
    }
    .modal-content h2, .tech-data-container h4 {
        color: #ffffff;
    }
    .tech-data-container p {
        color: #cccccc;
    }
    .tech-data-container strong {
        color: #ffffff;
    }
    .close {
        color: #ffffff;
    }
    .close:hover, .close:focus {
        color: #cccccc;
    }
    .tech-data-container h4 {
        border-bottom: 1px solid #555555;
    }
}