/* =========================================================
   RESTAURANT-ARCHIV
   ========================================================= */

/*
 * Filter und Karten dürfen aus dem schmalen Inhaltsbereich
 * auf die globale WordPress-Wide-Breite ausbrechen.
 */



/* Filter bleibt bewusst kompakter */

.rb-archive-filters {
    width: min(950px, calc(100vw - 56px));

    margin-left: auto;
    margin-right: auto;
}
.rb-restaurant-archive {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(290px, 330px)
        );

    gap: 28px;
    justify-content: start;

    margin-top: 40px;
    margin-bottom: 40px;
}


/* ---------------------------------------------------------
   Restaurantkarte
   --------------------------------------------------------- */

.rb-archive-card {
    min-width: 0;

    background: #111;
    border: 1px solid #333;
    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.rb-archive-card:hover {
    transform: translateY(-3px);
    border-color: #666;
}


/* ---------------------------------------------------------
   Bild
   --------------------------------------------------------- */

.rb-archive-image {
    display: block;

    width: 100%;
    height: 220px;

    margin: 0;
    padding: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rb-archive-image-empty {
    background-color: #181818;
}

/* ---------------------------------------------------------
   Inhalt
   --------------------------------------------------------- */

.rb-archive-content {
    padding: 18px 22px 20px;
}


/* ---------------------------------------------------------
   Restaurantname
   --------------------------------------------------------- */

.rb-archive-title {
    margin: 0 0 8px;

    font-size: 1.5rem;
    line-height: 1.2;
}

.rb-archive-title a {
    display: inline-block;

    color: #fff;
    text-decoration: none;
}

.rb-archive-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* ---------------------------------------------------------
   Küche und Ort
   --------------------------------------------------------- */

.rb-archive-meta {
    margin: 0 0 12px;

    color: #c2c2c2;

    font-size: 1.05rem;
    line-height: 1.45;
}

.rb-archive-city {
    display: block;

    margin-top: 3px;

    color: #aaa;
}

/*
 * Wenn zwischen Küchen und Stadt ein Trennpunkt aus dem
 * Template ausgegeben wird, soll er bei der neuen zweizeiligen
 * Darstellung nicht sichtbar sein.
 */
.rb-archive-meta
.rb-cuisine-separator:has(+ .rb-archive-city) {
    display: none;
}


/* ---------------------------------------------------------
   Preis
   --------------------------------------------------------- */

.rb-archive-price {
    margin: 0 0 14px;

    color: #b5b5b5;

    font-size: 1.05rem;
    line-height: 1.35;
}


/* ---------------------------------------------------------
   Bewertung
   --------------------------------------------------------- */

.rb-archive-score {
    color: #fff;

    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;

    white-space: nowrap;
}

.rb-archive-score-empty {
    color: #aaa;

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
}


/* =========================================================
   RESTAURANT-ARCHIV – FILTER
   ========================================================= */

.rb-archive-filters {
    display: flex;
    align-items: end;
    flex-wrap: wrap;

    gap: 18px;

    width: min(950px, calc(100vw - 56px));

    margin: 0 auto 38px;
    padding: 20px;

    border: 1px solid #333;
    box-sizing: border-box;
}

.rb-archive-filter {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.rb-archive-filter label {
    color: #bbb;

    font-size: 0.95rem;
    line-height: 1.3;
}

.rb-archive-filter select {
    min-width: 210px;

    padding: 11px 38px 11px 13px;

    border: 1px solid #444;
    border-radius: 6px;

    background: #171717;
    color: #fff;

    font: inherit;
    font-size: 1rem;
    line-height: 1.3;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.rb-archive-filter select:hover {
    border-color: #777;
    background: #1d1d1d;
}

.rb-archive-filter select:focus {
    border-color: #aaa;
    outline: none;
}

.rb-archive-filter-button {
    min-height: 44px;

    padding: 10px 20px;

    border: 1px solid #fff;
    border-radius: 999px;

    background: #fff;
    color: #111;

    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.rb-archive-filter-button:hover {
    background: #ddd;
    border-color: #ddd;
    transform: translateY(-1px);
}

.rb-archive-filter-reset {
    display: inline-flex;
    align-items: center;

    min-height: 44px;

    color: #aaa;

    font-size: 0.95rem;

    text-decoration: none;
}

.rb-archive-filter-reset:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .rb-archive-filters,
    .rb-restaurant-archive {
    width: 100%;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    box-sizing: border-box;
    }

    .rb-restaurant-archive {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rb-archive-image {
        height: 210px;
    }

    .rb-archive-filters {
        flex-direction: column;
        align-items: stretch;

        padding: 16px;
    }

    .rb-archive-filter,
    .rb-archive-filter select {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;
    }

    .rb-archive-filter select {
        min-width: 0;
    }

    .rb-archive-filter-button {
        width: 100%;
    }

    .rb-archive-filter-reset {
        justify-content: center;
    }
}

.rb-archive-empty {
    margin: 38px 0 40px;

    color: #bbb;

    font-size: 1.1rem;
    line-height: 1.5;
}