﻿.RaebmatterRentContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 310px));
    gap: 32px;
    justify-content: start;
    margin-bottom: 50px;
}

.RaebmatterRentEntry {
    display: block;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: none;
    transition: transform .2s ease, border-color .2s ease;
}

    .RaebmatterRentEntry:hover {
        transform: translateY(-2px);
        border-color: #d8d8d8;
        background: #F9F9F9;
    }

a.RaebmatterRentEntry {
    cursor: pointer;
}

.RaebmatterRentOverviewImageContainer {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f4f4;
}

.RaebmatterRentOverviewImage {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.RaebmatterRentEntry:hover .RaebmatterRentOverviewImage {
    transform: scale(1.04);
}

.RaebmatterRentFullDescriptionContainer {
    padding: 22px;
}

.RaebmatterRentTitle h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    color: #38383b;
}

.RaebmatterRentEntry:hover .RaebmatterRentTitle h2 {
    color: #38383b;
}

.RaebmatterRentDescription {
    font-size: 16px;
    line-height: 1.45;
    color: #555;
}

    .RaebmatterRentDescription p {
        margin: 0 0 18px;
    }

.RaebmatterRentPrice {
    margin-top: 18px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.RaebmatterRentReadOnContainer {
    margin-top: 18px;
}

    .RaebmatterRentReadOnContainer .button {
        display: inline-block;
    }

@media (max-width: 640px) {
    .RaebmatterRentContainer {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .RaebmatterRentFullDescriptionContainer {
        padding: 18px;
    }
}


/* Detail Page */

/* Detailseite */

#raebmatterRent
{
    margin-bottom: 50px;
}

.RaebmatterRentDetailBackLink {
    margin-bottom: 20px;
}

.RaebmatterRentDetailBackLink a {
    text-decoration: none;
}

.RaebmatterRentDetailTitle {
    margin-bottom: 35px;
}

.RaebmatterRentDetailTitle h1 {
    margin: 0;
}

.RaebmatterRentDetailDescription {
    max-width: 850px;
    margin-bottom: 50px;
}

    .RaebmatterRentDetailDescription h2 {
        margin-top: 35px;
    }

    .RaebmatterRentDetailDescription p {
        line-height: 1.7;
    }

/* Galerie */

.raebmatterRentGallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.raebmatterRentGalleryItem {
    margin: 0;
}

    .raebmatterRentGalleryItem a {
        display: block;
    }

    .raebmatterRentGalleryItem img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 7px;
        border: 1px solid #ececec;
        transition: transform .25s ease;
    }

    .raebmatterRentGalleryItem:hover img {
        transform: scale(1.03);
    }

.RaebmatterRentRequestFormWrapper {
    margin: 50px 0;
    padding: 35px;
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 14px;
}

    .RaebmatterRentRequestFormWrapper h2 {
        margin: 0 0 10px;
    }

    .RaebmatterRentRequestFormWrapper > p {
        margin: 0 0 30px;
        color: #666;
    }

.RaebmatterRentFormGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.formField {
    display: flex;
    flex-direction: column;
}

.formFieldFull {
    margin-bottom: 25px;
}

.formField label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.formField input,
.formField textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    transition: border-color .2s ease;
    box-sizing: border-box;
}

    .formField input:focus,
    .formField textarea:focus {
        outline: none;
        border-color: var(--area-color);
    }

.formField textarea {
    resize: vertical;
    min-height: 130px;
}

.RaebmatterRentRequestSubmit {
    min-width: 220px;
}

.RaebmatterRentRequestForm label.error {
    margin-top: 6px;
    color: #b00020;
    font-size: 14px;
    font-weight: 400;
}

.RaebmatterRentRequestForm input.error,
.RaebmatterRentRequestForm textarea.error {
    border-color: #b00020;
}

.RaebmatterRentRequestSuccess {
    padding: 25px;
    background: #f3f8f3;
    border: 1px solid #d4e8d4;
    border-radius: 12px;
}


/* Tablet */

@media (max-width: 1000px) {

    .raebmatterRentGallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */

@media (max-width: 700px) {

    .raebmatterRentGallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .RaebmatterRentRequestFormWrapper {
        padding: 25px;
    }

    .RaebmatterRentFormGrid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Kleine Mobile */

@media (max-width: 450px) {

    .raebmatterRentGallery {
        grid-template-columns: 1fr;
    }
}