:root {
    --recipe-title-color: #1f1f1f;
    --recipe-subtitle-color: #495057;
    --step-color: #333;
}

/* ================================ */
/* Allgemeine Recipe Styles         */
/* ================================ */

.recipe-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--recipe-title-color);
}

.recipe-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--recipe-title-color);
}

/* ================================ */
/* Untertitel im Rezept (##)       */
/* ================================ */

.recipe-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--recipe-subtitle-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ================================ */
/* Zutatenliste (Checkboxen)       */
/* ================================ */

.recipe-ingredients input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    opacity: 0.6;
    transition: all 0.2s ease-in-out;
}

.recipe-ingredients .form-check-label {
    cursor: pointer;
    user-select: none;
}

/* ================================ */
/* Zubereitung (nummeriert)        */
/* ================================ */

.recipe-preparation-list {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
}

.recipe-preparation-list > li {
    counter-increment: step;
    position: relative;
    padding-left: 2.6rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.recipe-preparation-list > li::before {
    content: counter(step) ".";
    position: absolute;
    left: 0;
    top: 0;
    text-align: right;
    font-weight: bold;
    color: var(--step-color);
}

/* ================================ */
/* Bild Hover Effekt               */
/* ================================ */

.recipe-image-wrapper img {
    transition: transform 0.3s ease;
}

.recipe-image-wrapper:hover img {
    transform: scale(1.02);
}

/* ================================ */
/* Responsives Verhalten           */
/* ================================ */

@media (max-width: 767.98px) {
    .recipe-title {
        font-size: 2rem;
    }
    .recipe-section-title {
        font-size: 1.1rem;
    }
    .recipe-preparation-list > li {
        padding-left: 2rem;
    }
}
