.mod_apartments_detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.apartment-detail {
    background: white;
    overflow: hidden;
}

.detail-header {
    padding: 20px;
    background: #90303e;
    color: white;
}

.detail-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.objektnummer {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

.status-badge.status-frei {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-reserviert {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-vermietet {
    background: #f8d7da;
    color: #721c24;
}

.detail-content {
    padding: 20px;
}

.detail-section {
    background: #f9f9f9;
    padding: 20px;
}

.detail-section.info-section {
    margin-bottom: 0;
}

.title-with-status {
    position: relative;
    margin-bottom: 20px;
}

.title-with-status h2 {
    margin: 0;
    border: none;
    padding: 0;
}

.title-bezeichnung::after {
    content: "\00a0-\00a0";
}


.detail-section.actions-section {
    display: flex;
    flex-direction: column;
}

.actions-section h2 {
    margin-bottom: 20px;
}

.actions-section .btn-download {
    margin-bottom: 15px;
}

.actions-section .btn-download:last-of-type {
    margin-bottom: 0;
}

.detail-section h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #90303e;
    border-bottom: 2px solid #90303e;
    padding-bottom: 10px;
}

.info-list,
.costs-list {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px 20px;
    margin: 0;
}

.info-list dt,
.costs-list dt {
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

.info-list dd,
.costs-list dd {
    margin: 0;
    font-size: 14px;
    color: #333;
    text-align: right;
}

.costs-list dt.total,
.costs-list dd.total {
    font-size: 18px;
    font-weight: 700;
    color: #90303e;
    padding-top: 15px;
    border-top: 2px solid #90303e;
    margin-top: 10px;
}

.btn-download {
    display: block;
    padding: 10px 20px;
    background: #90303e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #90303e;
    text-align: center;
}

.btn-download:hover,
.btn-download:active,
.btn-download:focus {
    background: white;
    color: #90303e;
    border-color: #90303e;
    text-decoration: none;
}

.btn-download svg {
    width: 16px;
    height: 16px;
}

.detail-footer {
    padding: 20px 0;
    background: #f9f9f9;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: #90303e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #90303e;
}

.btn-back:hover {
    background: white;
    color: #90303e;
    border-color: #90303e;
    text-decoration: none;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

/* ========== NEUES 2-SPALTEN LAYOUT ========== */
.detail-two-col {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.detail-col-left {
    background: #f9f9f9;
}

.detail-grundriss-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.detail-col-right {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-lageplan img {
    width: auto;
    height: auto;
}

.detail-lageplan h3,
.actions-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #90303e;
    border-bottom: 2px solid #90303e;
    padding-bottom: 8px;
}
/* ========== ENDE NEUES LAYOUT ========== */

@media (max-width: 768px) {
    .mod_apartments_detail {
        padding: 10px;
    }

    .apartment-detail {
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }

    .detail-two-col {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .detail-col-right {
        gap: 15px;
    }

    .top-section-wrapper {
        grid-template-columns: 1fr;
        margin-bottom: 0;
    }

    .info-list,
    .costs-list {
        grid-template-columns: auto 1fr;
        gap: 8px 15px;
        align-items: baseline;
    }

    .detail-header h1 {
        font-size: 22px;
    }

    .title-with-status h2 {
        display: flex;
        flex-direction: column;
    }

    .title-bezeichnung {
        display: block;
    }

    .title-bezeichnung::after {
        content: none;
    }

    .title-objektnummer {
        display: block;
        font-size: 16px;
        font-weight: 400;
    }

    .images-grid {
        grid-template-columns: 1fr;
    }

    .detail-content {
        padding: 15px;
    }

    .detail-section {
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
    }
}
