/* ================================================
   ALT – bleibt drin, stört aber nicht mehr
   ================================================ */

.inventarios-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index: 9999;
}

.inventarios-modal {
    background:white;
    padding:20px;
    width:400px;
    border-radius:8px;
}

.inventarios-btn {
    margin-top:15px;
    padding:10px;
    background:#008000;
    color:white;
    width:100%;
    border:none;
    cursor:pointer;
}

.inventarios-btn-danger {
    margin-top:10px;
    padding:10px;
    background:#c0392b;
    color:white;
    width:100%;
    border:none;
    cursor:pointer;
}

/* ================================================
   NEUE MODAL VERSION – vollständig unabhängig
   Prefix: mp-
   ================================================ */

/* GRID */
.mp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 700px) {
    .mp-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* BACKDROP */
#mp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

/* MODAL BOX */
#mp-modal {
    background: #fff;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow: auto;
    border-radius: 14px;
    padding: 18px;
    position: relative;
    box-sizing: border-box;
}

#mp-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

/* FORM FIELDS */
#mp-modal label {
    font-weight: 600;
    display: block;
    margin-top: 4px !important;
    margin-bottom: 2px !important;
}

#mp-modal input,
#mp-modal select,
#mp-modal textarea {
    width: 100%;
    padding: 8px !important;
    margin-bottom: 6px !important;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

#abweichend-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}


#mp-modal textarea {
    min-height: 80px;
}

/* Headlines */
#mp-modal h3 {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
}

/* Trenner */
#mp-modal hr {
    margin: 8px 0 !important;
}

/* Preis */
.mp-price {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    font-size: 16px !important;
}

/* Button: Jetzt buchen */
#mietpark_absenden {
    width: 100%;
    margin-top: 10px !important;
    padding: 10px !important;
    font-size: 16px !important;
    font-weight: 700;
    background: #ffbe30;
    color: #000;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

/* ================================================
   FLOATING BUTTON (Mobile)
   ================================================ */

#mp-float-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    background: #ffbe30;
    color: #000;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    z-index: 9998;
    cursor: pointer;
    display: none;
}

@media (max-width: 600px) {
    #mp-float-btn {
        display: block;
    }
}

/* ================================================
   FULLCALENDAR FIXES
   ================================================ */

#mietpark_calendar,
.fc {
    max-width: 100%;
}

.fc-toolbar-chunk button {
    border-radius: 8px !important;
}

/* Tooltip */
.mp-tooltip {
    position: absolute;
    background: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    white-space: nowrap;
}

/* Button im Kalender */
.fc-mpBooking-button {
    background: #ffbe30 !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
}

.fc-mpBooking-button:hover {
    background: #e7aa2b !important;
}

/* Events barriereärmer (Text kräftiger, Rahmen stärker) */
.fc-event {
    border: 2px solid rgba(0,0,0,0.7) !important;
    font-weight: 600 !important;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .fc-toolbar-title {
        font-size: 16px !important;
    }
}


/* ================================================
   MOBILE OPTIMIERUNG
   ================================================ */

@media (max-width: 600px) {

    #mp-modal {
        padding: 12px !important;
    }

    #mp-modal input,
    #mp-modal select,
    #mp-modal textarea {
        padding: 7px !important;
        margin-bottom: 5px !important;
        font-size: 14px !important;
    }

    .mp-grid {
        gap: 4px !important;
    }

    #mietpark_absenden {
        padding: 10px !important;
        font-size: 16px !important;
    }
}
