/********************************************************
*
* Pluginname:   AS REZEPTE
* Ordner:       as_rezepte
* Datei:        as_rezepte_frontend.css
* Version:      0.0.1
* Datum:        18.11.2026
* Autor:        Alfred Steckel
* Lizenz:       GPL-3.0-or-later
*
*********************************************************/

/* Farbwerte der Kategorienavigation nach dem Theme as-cms-full. */
.as-rezepte-frontend .as-rezepte-tree {
    --as-rezepte-nav-surface: #000000;
    --as-rezepte-nav-text: #ffffff;
    --as-rezepte-nav-highlight: #e43f33;
}

.as-rezepte-frontend [data-rezepte-create] {
    display: grid;
    gap: 1rem;
    max-inline-size: 52rem;
}

.as-rezepte-frontend [data-rezepte-create] label {
    display: block;
    min-inline-size: 0;
}

.as-rezepte-frontend [data-rezepte-create] :is(input:not([type="hidden"], [type="checkbox"]), select, textarea) {
    display: block;
    box-sizing: border-box;
    inline-size: 100%;
    margin-block-start: .25rem;
    font: inherit;
}

.as-rezepte-frontend [data-rezepte-create] .as-rezepte-intro {
    flex-wrap: wrap;
}

.as-rezepte-frontend [data-rezepte-create] .as-rezepte-intro > label {
    flex: 1 1 15rem;
}

.as-rezepte-frontend [data-rezepte-create] button[type="submit"] {
    justify-self: start;
    font: inherit;
}

.as-rezepte-rating {
    margin-block: 1.4rem 1rem;
    padding-block-start: .85rem;
    border-block-start: 1px solid currentColor;
}

.as-rezepte-rating h4,
.as-rezepte-rating p {
    margin-block: 0 .5rem;
}

.as-rezepte-rating-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: .5rem;
}

.as-rezepte-rating-stars {
    color: #8f580d;
    font-size: 1.15rem;
}

.as-rezepte-frontend .as-rezepte-card-stars {
    --as-rezepte-card-star-fill: #f2d675;
    --as-rezepte-card-star-outline: #5d4b1b;
}

.as-rezepte-rating-picker {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-block-end: .5rem;
}

.as-rezepte-rating-picker button {
    display: inline-grid;
    place-items: center;
    min-inline-size: 2.45rem;
    min-block-size: 2.45rem;
    padding: .15rem;
    border: 1px solid currentColor;
    border-radius: .3rem;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.as-rezepte-rating-picker button[data-filled] {
    color: #8f580d;
}

.as-rezepte-rating-picker button:is(:hover, :focus-visible) {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
