.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;
}

.top-section-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.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";
}

.title-with-status .status-badge {
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
}

.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;
}

.costs-section {
    background: white;
    border: 2px solid #90303e;
}

.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;
}

.download-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.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;
}

.images-section {
    background: white;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.images-grid-single {
    grid-template-columns: 1fr;
    max-width: 50%;
}

.image-item h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.image-item img {
    width: 100%;
    height: auto;
}

.detail-footer {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

.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;
}

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

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

    .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;
    }
}
