/* Startseite nach dem abgestimmten Entwurf */

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: max-content;
}

.site-logo-symbol {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: transparent;
}

.hero-with-logo {
    max-width: 1160px;
    margin: 32px auto 22px;
    padding: 38px 28px 42px;
    background: #fff;
    border: 1px solid #dfe4ec;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 35, 70, 0.07);
}

.hero-with-logo .hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.homepage-logo {
    display: block;
    width: min(100%, 330px);
    height: auto;
    margin: 0 auto 26px;
}

.hero-with-logo h1 {
    margin: 0;
    color: #0d2a59;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.14;
    text-align: center;
}

.hero-with-logo .hero-text {
    margin: 24px auto 28px;
    color: #31445f;
    font-size: 1.12rem;
    text-align: center;
}

.home-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 14px;
    width: min(100%, 720px);
    margin: 0 auto;
}

.home-search-form input {
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    border: 1px solid #cbd3df;
    border-radius: 8px;
    font-size: 1rem;
}

.home-search-form button {
    min-height: 58px;
    border: 0;
    border-radius: 8px;
    background: #d6a544;
    color: #0b244c;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.home-search-form button:hover,
.home-search-form button:focus-visible {
    background: #e2b45a;
}

.homepage-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    max-width: 1160px;
    margin: 0 auto 34px;
}

.homepage-stats .stat-card {
    display: flex;
    min-height: 220px;
    padding: 28px 20px 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e0e5ec;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 35, 70, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.homepage-stats .stat-card:hover,
.homepage-stats .stat-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(15, 35, 70, 0.11);
}

.homepage-stats .stat-icon {
    margin-bottom: 13px;
    color: #d6a544;
    font-size: 2.15rem;
    line-height: 1;
}

.homepage-stats .stat-number {
    color: #0d2a59;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.homepage-stats .stat-label {
    margin-top: 10px;
    color: #10294f;
    font-size: 1rem;
    font-weight: 700;
}

.homepage-stats .stat-link {
    margin-top: 22px;
    color: #075fbd;
    font-size: .92rem;
    font-weight: 600;
}

.homepage-stats .stat-card:nth-child(5),
.homepage-stats .stat-card:nth-child(6),
.homepage-stats .stat-card:nth-child(7) {
    grid-column: span 1;
}

.homepage-stats .stat-card:nth-child(5) {
    grid-column: 1 / 2;
}

.homepage-stats .stat-card:nth-child(6) {
    grid-column: 2 / 4;
}

.homepage-stats .stat-card:nth-child(7) {
    grid-column: 4 / 5;
}

@media (max-width: 900px) {
    .site-logo-symbol {
        width: 44px;
        height: 44px;
    }

    .hero-with-logo {
        margin: 22px 18px;
        padding: 30px 22px 34px;
    }

    .homepage-logo {
        width: min(100%, 285px);
    }

    .homepage-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0 18px 28px;
    }

    .homepage-stats .stat-card:nth-child(n) {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .site-logo {
        max-width: calc(100% - 95px);
        gap: 8px;
        font-size: 1rem;
    }

    .site-logo-symbol {
        width: 38px;
        height: 38px;
    }

    .hero-with-logo {
        margin: 16px 12px;
        padding: 24px 16px 28px;
    }

    .homepage-logo {
        width: min(100%, 235px);
        margin-bottom: 20px;
    }

    .hero-with-logo h1 {
        font-size: 1.85rem;
    }

    .hero-with-logo .hero-text {
        margin: 18px auto 22px;
        font-size: 1rem;
    }

    .home-search-form {
        grid-template-columns: 1fr;
    }

    .homepage-stats {
        grid-template-columns: 1fr;
        margin: 0 12px 24px;
    }

    .homepage-stats .stat-card {
        min-height: 190px;
    }
}
