/* STELLA V2 – HOMEPAGE */

.stella-home-main {
    padding: 34px 22px 60px;
}

.stella-home-container {
    max-width: 1440px;
    margin: 0 auto;
}

.stella-home-featured {
    display: grid;
    grid-template-columns: minmax(0,1.45fr) minmax(0,1fr);
    gap: 22px;
    background: #fff;
    border: 1px solid var(--stella-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--stella-shadow);
    margin-bottom: 24px;
}

.stella-home-featured-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
}

.stella-home-eyebrow {
    color: var(--stella-primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .07em;
}

.stella-home-featured-info h1 {
    color: var(--stella-primary-dark);
    font-size: clamp(21px,1.8vw,26px);
    line-height: 1.3;
    margin: 8px 0;
}

.stella-home-property-location {
    color: var(--stella-muted);
}

.stella-home-property-price {
    font-size: 27px;
    font-weight: 700;
    color: var(--stella-primary-dark);
    margin: 12px 0;
}

.stella-home-property-facts {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    column-gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.stella-home-property-facts li {
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--stella-border);
}


.stella-home-categories,
.stella-home-offices,
.stella-home-reviews {
    background: white;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid var(--stella-border);
    box-shadow: var(--stella-shadow);
    margin-bottom: 24px;
}

.stella-home-categories h2,
.stella-home-offices h2,
.stella-home-reviews h2 {
    color: var(--stella-primary-dark);
    font-size: 26px;
    margin: 0 0 22px;
}

.stella-home-banner {
    display: block;
    padding: 17px;
    margin-bottom: 24px;
    text-align: center;
    background: var(--stella-primary);
    color: white;
    font-size: 21px;
    font-weight: 700;
    border-radius: 7px;
}

.stella-home-banner:hover {
    color: white;
    background: var(--stella-primary-dark);
}

.stella-home-category-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
}

.stella-home-category {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #edf3f8;
    color: white;
    min-height: 190px;
}

.stella-home-category img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .3s ease;
}

.stella-home-category:hover img {
    transform: scale(1.04);
}

.stella-home-category > span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 84px;
    padding: 13px;
    background: var(--stella-primary);
    text-align: center;
    color: white;
    font-size: 17px;
    font-weight: 700;
}

.stella-home-office-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
}

.stella-home-office {
    text-align: center;
    color: var(--stella-primary-dark);
    border: 1px solid var(--stella-border);
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 12px;
}

.stella-home-office img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.stella-home-office h3 {
    padding: 0 10px;
    font-size: 17px;
}

.stella-home-review {
    margin: 0;
    padding: 24px;
    background: #f3f7fb;
    border-left: 4px solid var(--stella-primary);
    border-radius: 0 8px 8px 0;
    line-height: 1.8;
}

.stella-home-review .author {
    font-size: 21px;
    color: var(--stella-primary-dark);
    font-weight: 700;
}

@media(max-width:1100px) {
    .stella-home-featured {
        grid-template-columns: 1fr;
    }

    .stella-home-category-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:600px) {
    .stella-home-main {
        padding: 16px 10px 30px;
    }

    .stella-home-featured,
    .stella-home-categories,
    .stella-home-offices,
    .stella-home-reviews {
        padding: 16px;
    }

    .stella-home-category-grid,
    .stella-home-office-grid {
        grid-template-columns: 1fr;
    }

    .stella-home-category img {
        height: 200px;
    }
}

/* STARTSEITEN-GRUNDLAYOUT */

.stella-home-layout {
    display: grid;
    grid-template-columns: 245px minmax(0,1fr);
    gap: 25px;
    align-items: start;
}

.stella-home-content {
    min-width: 0;
    padding: 0;
    margin: 0;
}

.stella-home-content > p:empty {
    display: none;
}

.stella-home-content > p:first-child:has(> br:only-child) {
    display: none;
}

.stella-home-content > .stella-home-featured:first-of-type {
    margin-top: 0;
}

.stella-home-featured-media {
    min-width: 0;
    align-self: start;
}

.stella-home-property-facts li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.stella-home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stella-home-search,
.stella-home-phone,
.stella-home-weather {
    background: #fff;
    border: 1px solid var(--stella-border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--stella-shadow);
}

.stella-home-sidebar h2 {
    color: var(--stella-primary-dark);
    font-size: 19px;
    line-height: 1.4;
    margin: 0 0 15px;
}

.stella-home-search form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stella-home-search label {
    font-size: 14px;
    font-weight: 600;
}

.stella-home-search input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--stella-border);
    border-radius: 5px;
}

.stella-home-search button {
    background: var(--stella-primary);
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
}

.stella-home-phone {
    text-align: center;
}

.stella-home-phone a {
    display: block;
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
}

.stella-weather-data {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stella-weather-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.stella-weather-temperature {
    color: var(--stella-primary-dark);
    font-size: 26px;
    font-weight: 700;
}

.stella-weather-date,
.stella-weather-description {
    color: var(--stella-muted);
    font-size: 13px;
}

@media(max-width:850px) {
    .stella-home-layout {
        grid-template-columns: 1fr;
    }

    .stella-home-sidebar {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .stella-home-weather {
        grid-column: 1 / -1;
    }
}

@media(max-width:600px) {
    .stella-home-sidebar {
        grid-template-columns: 1fr;
    }

    .stella-home-weather {
        grid-column: auto;
    }
}

/* Homepage: Überschrift im blauen Immobilien-Banner */
.stella-home-categories .stella-home-banner h2 {
    color: #ffffff;
}

/* Startseite: Hover-Effekt für Immobilienkacheln */
.stella-home-category > span {
    transition: background-color .25s ease, color .25s ease;
}

.stella-home-category:hover > span,
.stella-home-category:focus-visible > span {
    background: var(--stella-primary-dark);
    color: #ffffff;
}
