/* Mobile-optimierte Modals im Apple-Stil - NUR für Mobile */
@media (max-width: 767px) {
    /* Modal-Container */
    .modal-dialog {
        margin: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        transform: translate(0, 0) !important;
    }
    
    .modal-content {
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
        border: none;
        max-height: 85vh;
        overflow-y: auto;
        padding-bottom: 30px;
    }
    
    /* Modal-Header */
    .modal-header {
        border-bottom: none;
        padding: 20px 20px 10px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .modal-title {
        font-size: 24px;
        font-weight: 600;
        text-align: center;
        width: 100%;
        margin: 0;
    }
    
    .btn-close {
        position: absolute;
        right: 15px;
        top: 15px;
        background-color: #f0f0f0;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        opacity: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    
    /* Modal-Body */
    .modal-body {
        padding: 15px 20px;
    }
    
    /* Wichtig: Komplett neues Layout für Mobile */
    .modal-body .row {
        display: block !important;
        margin: 0 !important;
    }
    
    .modal-body .col-md-5,
    .modal-body .col-md-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
        float: none !important;
        display: block !important;
    }
    
    /* Bild-Container */
    .modal-body .col-md-5 {
        margin-bottom: 20px;
    }
    
    .modal-body img {
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 15px;
    }
    
    /* Text-Container - WICHTIG: Verhindert das Nebeneinander-Layout */
    .modal-body .col-md-7 {
        clear: both !important;
    }
    
    /* Überschriften - WICHTIG: Block-Display erzwingt Stapelung */
    .modal-body h6 {
        font-size: 18px;
        font-weight: 600;
        margin: 25px 0 10px !important;
        color: #333;
        display: block !important;
        width: 100% !important;
        clear: both !important;
        float: none !important;
    }
    
    /* Absätze - WICHTIG: Block-Display erzwingt Stapelung */
    .modal-body p {
        font-size: 16px;
        line-height: 1.6;
        color: #555;
        margin-bottom: 15px !important;
        display: block !important;
        width: 100% !important;
        clear: both !important;
        float: none !important;
    }
    
    /* Animation für das Modal */
    .modal.fade .modal-dialog {
        transition: transform 0.3s ease-out;
        transform: translate(0, 100%) !important;
    }
    
    .modal.show .modal-dialog {
        transform: translate(0, 0) !important;
    }
    
    /* Verbesserte Scrollbarkeit */
    .modal-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .modal-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .modal-content::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 10px;
    }
    
    .modal-content::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
}
