/* ServerAtlas 1.2.2 – Bewertungs-, Ausrichtungs- und Pre-Beta-Korrekturen. */

/* Einheitliche öffentliche Seitenbreite und lesbare Ausrichtung. */
.site-main,
#main-content {
    min-width: 0;
}

.page-hero > .container:not(.split-hero) {
    text-align: center;
}

.page-hero > .container:not(.split-hero) > h1,
.page-hero > .container:not(.split-hero) > p {
    margin-inline: auto;
}

.page-hero > .container:not(.split-hero) > p {
    max-width: 760px;
}

.page-hero > .container:not(.split-hero) .page-hero__actions,
.page-hero > .container:not(.split-hero) .hero__actions {
    justify-content: center;
}

.page-hero > .container:not(.split-hero) .inline-search,
.page-hero > .container:not(.split-hero) .server-search-bar,
.page-hero > .container:not(.split-hero) .ranking-filters {
    margin-inline: auto;
}

.section-heading > div:only-child {
    width: 100%;
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.section-heading > div:only-child > p {
    margin-inline: auto;
}

.card-heading > div,
.panel__header > div,
.dashboard-heading > div {
    min-width: 0;
}

/* Kompakter, allgemein sichtbarer Hinweis auf den Pre-Beta-Status. */
.prebeta-wrap {
    width: min(calc(100% - 40px), var(--container));
    margin: 16px auto 0;
}

.prebeta-notice {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(251, 191, 36, .28);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(251, 191, 36, .09), rgba(118, 104, 247, .07));
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.prebeta-notice__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #facc15;
    background: rgba(250, 204, 21, .11);
    border: 1px solid rgba(250, 204, 21, .22);
    border-radius: 12px;
}

.prebeta-notice__icon .icon {
    width: 21px;
    height: 21px;
    margin: 0;
}

.prebeta-notice__copy {
    min-width: 0;
}

.prebeta-notice__copy strong,
.prebeta-notice__copy span {
    display: block;
}

.prebeta-notice__copy strong {
    color: var(--text);
    font-size: .9rem;
}

.prebeta-notice__copy span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .79rem;
    line-height: 1.45;
}

.prebeta-notice__link {
    white-space: nowrap;
}

.app-main > .prebeta-wrap {
    width: auto;
    margin: 16px 24px 0;
}

/* Startseiten-Statistiken: Icon und Text sitzen mittig und gleichmäßig. */
.trust-strip .stats-grid {
    align-items: stretch;
}

.trust-strip .stat {
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 20px 14px !important;
    text-align: left;
}

.trust-strip .stat__icon {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.trust-strip .stat__icon .icon {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
}

.trust-strip .stat > div {
    display: flex;
    min-width: 0;
    min-height: 44px;
    flex-direction: column;
    justify-content: center;
}

.trust-strip .stat strong,
.trust-strip .stat span:last-child {
    margin-inline: 0;
    text-align: left;
}

/* Bewertungen: Avatargröße und Kopfzeile unabhängig von globalen Bildregeln. */
.review-card {
    overflow: hidden;
}

.review-card__header {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 0 16px !important;
}

.review-card__avatar {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 14px !important;
}

.review-author {
    display: flex !important;
    min-width: 0;
    align-items: center !important;
    gap: 7px 14px !important;
    flex-wrap: wrap !important;
}

.review-author__name {
    min-width: 0;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.review-author__date {
    display: inline-flex !important;
    align-items: center;
    padding-left: 14px;
    border-left: 1px solid var(--border);
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.25;
}

.review-score {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end;
    gap: 10px !important;
    margin: 0 !important;
    white-space: nowrap;
}

.review-score .stars {
    white-space: nowrap;
}

.review-card > h3 {
    margin: 0 0 8px;
}

.review-card > p {
    margin: 0;
    line-height: 1.72;
}

.review-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.review-card__actions form {
    margin: 0;
}

@media (max-width: 900px) {
    .page-hero > .container:not(.split-hero) .inline-search,
    .page-hero > .container:not(.split-hero) .server-search-bar,
    .page-hero > .container:not(.split-hero) .ranking-filters {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .prebeta-wrap,
    .app-main > .prebeta-wrap {
        width: auto;
        margin: 12px 12px 0;
    }

    .prebeta-notice {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
        padding: 11px 12px;
    }

    .prebeta-notice__icon {
        width: 38px;
        height: 38px;
    }

    .prebeta-notice__link {
        grid-column: 1 / -1;
        width: 100%;
    }

    .trust-strip .stat {
        justify-content: center !important;
        padding: 16px 10px !important;
    }

    .trust-strip .stat__icon {
        flex-basis: 40px !important;
        width: 40px !important;
        height: 40px !important;
    }

    .review-card__header {
        grid-template-columns: 42px minmax(0, 1fr) !important;
        gap: 11px !important;
    }

    .review-card__avatar {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        border-radius: 12px !important;
    }

    .review-author {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 3px !important;
    }

    .review-author__date {
        padding-left: 0;
        border-left: 0;
    }

    .review-score {
        grid-column: 2;
        justify-self: start;
        justify-content: flex-start !important;
        margin-top: 2px !important;
    }
}

@media (max-width: 520px) {
    .trust-strip .stat {
        align-items: center !important;
        flex-direction: column;
        gap: 8px !important;
        text-align: center;
    }

    .trust-strip .stat > div {
        min-height: 0;
        align-items: center;
    }

    .trust-strip .stat strong,
    .trust-strip .stat span:last-child {
        text-align: center;
    }
}
