.ds-rezept {
    max-width: 940px;
    margin: 42px auto;
    font-family: inherit;
    color: #24452c;
}

.ds-rezept * {
    box-sizing: border-box;
}

.ds-rezept__image-wrap {
    margin: 0 0 22px;
}

.ds-rezept__top {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
    margin-bottom: 25px;
}

.ds-rezept__top-image {
    position: relative;
    padding: 10px;
    background: #f4ead6;
    border: 1px solid rgba(185, 122, 36, 0.28);
    border-radius: 30px;
    box-shadow:
        0 14px 32px rgba(78, 53, 26, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    transform: rotate(1deg);
}

.ds-rezept__top-image::before {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: -1;
    border-radius: 34px;
    background: rgba(185, 122, 36, 0.08);
    filter: blur(12px);
}

.ds-rezept__top-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 22px;
}

@media (max-width: 900px) {
    .ds-rezept__top {
        grid-template-columns: 1fr;
    }
}

.ds-rezept__image {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 30px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 18px 44px rgba(73, 48, 22, 0.14);
}

.ds-rezept__card {
    position: relative;
    overflow: hidden;
    background: #fff8ea;
    border: 2px solid rgba(185, 122, 36, 0.34);
    border-radius: 34px;
    padding: 34px;
    box-shadow:
        0 18px 45px rgba(78, 53, 26, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.ds-rezept__card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background:
        radial-gradient(circle at 18% 12%, rgba(185, 122, 36, 0.12), transparent 28%),
        radial-gradient(circle at 85% 35%, rgba(154, 100, 24, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(227, 181, 106, 0.08));
}

.ds-rezept__card > * {
    position: relative;
    z-index: 1;
}


.ds-rezept__title-banner {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 6px 12px rgba(154,100,24,.18));

    min-width: 650px;
    min-height: 130px;

    padding: 26px 90px;

    margin: 0 0 22px;

    color: #fffaf1;
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    line-height: 1.1;
    font-weight: 700;

    isolation: isolate;
}

.ds-rezept__title-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background-image: url("dein-selbstversorger-titelbanner.webp");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    transform: rotate(-1.2deg);
}

.ds-rezept__title-banner::after {
    content: "";

    position: absolute;
    inset: 4px 12px;

    z-index: -1;

    opacity: .18;

    border-radius:
        48% 52% 44% 56% /
        58% 42% 56% 44%;

    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 6px,
            rgba(255,255,255,.08) 7px,
            transparent 8px
        );
}

.ds-rezept__desc {
    font-size: 1.08rem;
    line-height: 1.7;
    margin: 0 0 18px;
    max-width: 760px;
}

.ds-rezept__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 8px;
}

.ds-rezept__button {
    border: 1px solid rgba(154, 100, 24, 0.25);
    border-radius: 999px;
    background: linear-gradient(135deg, #b97a24, #d29a45);
    color: #fffaf1;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 6px 14px rgba(78, 53, 26, 0.16);
}

.ds-rezept__button--light {
    background: #f2e4c8;
    color: #6a4217;
}

.ds-rezept__button:hover {
    filter: brightness(0.97);
}

.ds-rezept__servings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 18px;
    padding: 22px 24px;
    background: #f5ecd9;
    border: 1px solid #ead9bb;
    border-radius: 22px;
}

.ds-rezept__servings-label {
    font-weight: 800;
    color: #6a522b;
}

.ds-rezept__servings-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ds-rezept__servings-control strong {
    min-width: 34px;
    text-align: center;
    font-size: 1.25rem;
    color: #25452d;
}

.ds-rezept__servings-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(154, 100, 24, 0.28);
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 30%, #e3b56a 0%, #d29a45 30%, #b97a24 72%, #9a6418 100%);
    color: #fffaf1;
    font-size: 1.35rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
padding: 0;
    box-shadow: 0 5px 12px rgba(78, 53, 26, 0.16);
}

.ds-rezept__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.ds-rezept__meta-item {
    background: #f7eedc;
    border: 1px solid #ead9bb;
    border-radius: 20px;
    padding: 14px;
    min-height: 105px;

    display: flex;
    flex-direction: column;
}

.ds-rezept__meta-item span {
    display: block;
    font-size: 1.35rem;
}

.ds-rezept__meta-item span img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.ds-rezept__meta-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    margin-bottom: 8px;
}

.ds-rezept__meta-item strong {
    display: block;
    font-size: 0.88rem;
    color: #6a522b;
    margin: 4px 0;
}

.ds-rezept__meta-item em {
    font-style: normal;
    font-weight: 700;
}

.ds-rezept__section,
.ds-rezept__note {
    margin-top: 28px;
}

.ds-rezept h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.75rem;
    margin: 0 0 14px;
    color: #25452d;
}

.ds-rezept h3::before {
    content: "";
    width: 18px;
    height: 6px;
    border-radius: 999px;
    background: #b97a24;
}

.ds-rezept__checklist {
    padding-left: 0;
    list-style: none;
    margin: 0;
    display: grid;
    gap: 0;
}

.ds-rezept__checklist li {
    list-style: none;
}

.ds-rezept__checklist label {
    display: flex;
    align-items: center;
    gap: 14px;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    padding: 16px 4px;
    box-shadow: none !important;

    font-weight: 700;
font-size: 1.08rem;
}

.ds-rezept__checklist label::before {
    content: "";
    width: 34px;
    height: 54px;
    flex: 0 0 34px;

    background-image: url("ds-rezept-ornament-blatt.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    opacity: 0.8;
    transform: rotate(-8deg);
}

.ds-rezept__checklist label {
    position: relative;
}
.ds-rezept__checklist li {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.ds-rezept__checklist li::after {
    content: "";

    position: absolute;
    left: 58px;
    right: 0;
    bottom: 0;

    border-bottom: 1px dashed rgba(185,122,36,.35);
}

.ds-rezept__steps {
    counter-reset: ds-step;
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 24px;
}

.ds-rezept__steps li {
    counter-increment: ds-step;
    list-style: none;
}

.ds-rezept__steps li label::before {
    content: counter(ds-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #e3b56a 0%, #d29a45 28%, #b97a24 70%, #9a6418 100%);
    color: #fffaf1;
    font-weight: 700;
    margin-right: 10px;
    box-shadow: 0 4px 10px rgba(78, 53, 26, 0.18);
}

.ds-rezept__steps label {
    display: flex;
    align-items: center;
    gap: 14px;

    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px dashed rgba(185,122,36,.35) !important;
    border-radius: 0 !important;

    padding: 22px 0;
    box-shadow: none !important;

    font-size: 1.05rem;
    font-weight: 600;
}

.ds-rezept input[type="checkbox"] {
    width: 18px;
    height: 18px;

    margin-top: 3px;

    accent-color: #b97a24;
}

.ds-rezept input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    opacity: 0.62;
}


.ds-rezept__note {
    position: relative;

    background: #fff8ea;
    border: 0;
    border-top: 1px dashed rgba(185, 122, 36, 0.35);
 border-left: 4px solid #b97a24;
    padding-left: 18px;
    border-radius: 0;
    padding: 22px 4px 8px 4px;

    box-shadow: none;
}

.ds-rezept__note h3 {
    margin-bottom: 10px;
}

.ds-rezept__note p {
    margin: 0 0 0 26px;
    line-height: 1.7;
    color: #24452c;
}

.ds-rezept.is-cookmode {
    max-width: 980px;
}

.ds-rezept.is-cookmode .ds-rezept__card {
    font-size: 1.18rem;
}

.ds-rezept.is-cookmode .ds-rezept__image-wrap {
    display: none;
}

.ds-rezept.is-cookmode .ds-rezept__button[data-ds-cookmode] {
    background: #8a5a18;
}

@media (max-width: 700px) {
    .ds-rezept__card {
        padding: 22px;
        border-radius: 24px;
    }

    .ds-rezept__image {
        border-radius: 22px;
    }

    .ds-rezept__actions {
        display: grid;
    }

    .ds-rezept__button {
        width: 100%;
    }

    .ds-rezept__servings {
        align-items: flex-start;
        flex-direction: column;
    }
    .ds-rezept__title-banner {
        min-width: 100%;
        width: 100%;
        min-height: 90px;

        padding: 18px 30px;

        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .ds-rezept__meta {
    grid-template-columns: repeat(2, 1fr);
}

.ds-rezept__title-banner {
    min-width: 0;
}

}

@media (max-width: 900px) {

    .ds-rezept__top {
        grid-template-columns: 1fr;
    }

    .ds-rezept__top-image {
        max-width: 320px;
        margin: 0 auto;
    }

}

@media print {
    body * {
        visibility: hidden !important;
    }

    .ds-rezept,
    .ds-rezept * {
        visibility: visible !important;
    }

    .ds-rezept {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        color: #000;
    }

    .ds-rezept__card {
        box-shadow: none;
        border: 0;
    }

    .ds-rezept__actions,
    .ds-rezept__image-wrap,
    .ds-rezept__top-image,
    .ds-rezept__servings {
    display: none !important;
}

    .ds-rezept label {
        border: 0;
        padding: 4px 0;
    }

    .ds-rezept input {
        display: none;
    }
}


.ds-rezept__card {
    display: block;
}

.ds-rezept__section,
.ds-rezept__note {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    grid-column: 1 / -1 !important;
}

.ds-rezept__section + .ds-rezept__section,
.ds-rezept__section + .ds-rezept__note,
.ds-rezept__note + .ds-rezept__note {
    margin-top: 34px;
}

.ds-rezept__note {
    background: transparent;
    border-top: 1px dashed rgba(185, 122, 36, 0.35);
    padding: 22px 4px 8px 18px;
}






.ds-rezept.is-cookmode label,
.ds-rezept.is-cookmode span,
.ds-rezept.is-cookmode p {
    color: #f7ead2 !important;
}






.ds-rezept__like {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin: 22px 0 18px;
    padding: 16px 18px;

    background: #f5ecd9;
    border: 1px solid #ead9bb;
    border-radius: 22px;
}

.ds-rezept__like-button {
    border: 1px solid rgba(154, 100, 24, 0.25);
    border-radius: 999px;
    background: linear-gradient(135deg, #b97a24, #d29a45);
    color: #fffaf1;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
    font: inherit;
}

.ds-rezept__like-button:disabled {
    cursor: default;
    opacity: 0.9;
}

.ds-rezept__like.is-liked .ds-rezept__like-button {
    background: linear-gradient(135deg, #9a6418, #b97a24);
    color: #fffaf1;
}

.ds-rezept__like-count {
    font-weight: 700;
    color: #6a522b;
}

@media (max-width: 700px) {
    .ds-rezept__like {
        flex-direction: column;
        align-items: flex-start;
    }

    .ds-rezept__like-button {
        width: 100%;
    }
}

body.ds-darkmode .ds-rezept__like {
    background: #1b2a18 !important;
    border-color: #3d4a32 !important;
}

body.ds-darkmode .ds-rezept__like-count {
    color: #efe6d2 !important;
}


/* =========================================================
   v0.2.1 – Ertrag, Ernährungsweise & Selbstversorger-Ampel
   ========================================================= */

.ds-rezept__servings--amount .ds-rezept__servings-control {
    gap: 6px;
}

.ds-rezept__servings-prefix,
.ds-rezept__servings-unit {
    font-weight: 800;
    color: #25452d;
    font-size: 1.05rem;
}

.ds-rezept__servings-control--static strong {
    min-width: 0;
}

.ds-rezept__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
}

.ds-rezept__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(106, 82, 43, 0.16);
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.3;
    color: #25452d;
    background: #f5ecd9;
}

.ds-rezept__badge--diet {
    background: #edf5e6;
    border-color: rgba(69, 112, 62, 0.22);
}

.ds-rezept__badge--green {
    background: #e8f4e7;
    border-color: rgba(59, 117, 65, 0.24);
}

.ds-rezept__badge--yellow {
    background: #fff2c9;
    border-color: rgba(180, 133, 26, 0.28);
}

.ds-rezept__badge--red {
    background: #f8e4dc;
    border-color: rgba(159, 74, 48, 0.24);
}

@media (max-width: 700px) {
    .ds-rezept__badges {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ds-rezept__badge {
        width: 100%;
        border-radius: 18px;
    }

    .ds-rezept__servings--amount {
        flex-direction: row;
        align-items: center;
    }
}

/* Darkmode */
body.ds-darkmode .ds-rezept__badge {
    color: #efe6d2 !important;
    border-color: #3d4a32 !important;
}

body.ds-darkmode .ds-rezept__badge--diet,
body.ds-darkmode .ds-rezept__badge--green {
    background: #213322 !important;
}

body.ds-darkmode .ds-rezept__badge--yellow {
    background: #3b321d !important;
}

body.ds-darkmode .ds-rezept__badge--red {
    background: #3b2621 !important;
}

body.ds-darkmode .ds-rezept__servings-prefix,
body.ds-darkmode .ds-rezept__servings-unit {
    color: #efe6d2 !important;
}

/* Druckansicht: Kennzeichnungen sichtbar lassen, aber kompakt */
@media print {
    .ds-rezept__badges {
        display: flex !important;
        gap: 8px;
        margin: 10px 0 14px;
    }

    .ds-rezept__badge {
        padding: 4px 8px;
        border: 1px solid #999;
        background: transparent !important;
        color: #000 !important;
    }
}

/* =========================================================
   v0.2.3 – Zutaten-Gruppenüberschriften
   Eingabe im Backend: [Grundansatz]
   ========================================================= */
.ds-rezept__checklist .ds-rezept__ingredient-group {
    margin: 24px 0 6px;
    padding: 8px 4px 6px;
    color: #6a522b;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    border-bottom: 1px solid rgba(185, 122, 36, 0.22);
}

.ds-rezept__checklist .ds-rezept__ingredient-group:first-child {
    margin-top: 4px;
}

.ds-rezept__checklist .ds-rezept__ingredient-group::after {
    display: none;
}

body.ds-darkmode .ds-rezept__checklist .ds-rezept__ingredient-group {
    color: #efe6d2 !important;
    border-bottom-color: #3d4a32;
}

@media print {
    .ds-rezept__checklist .ds-rezept__ingredient-group {
        color: #000 !important;
        border-bottom-color: #bbb;
        margin-top: 12px;
    }
}

/* v0.2.4 – Meta-Icons: echte Transparenz ohne Bildhintergrund */
.ds-rezept__meta-item span img {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}


/* v0.2.5 – Meta-Icons garantiert ohne Hintergrund */
.ds-rezept__meta-item span img {
    background: transparent !important;
}


/* =========================================================
   v0.2.6 – Sprungbutton nach dem Inhaltsverzeichnis
   ========================================================= */
.ds-rezept-jump {
    margin: 18px 0 28px;
}

.ds-rezept-jump__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid rgba(154, 100, 24, 0.28);
    border-radius: 999px;
    background: linear-gradient(135deg, #b97a24, #d29a45);
    color: #fffaf1 !important;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 6px 14px rgba(78, 53, 26, 0.16);
}

.ds-rezept-jump__button:hover,
.ds-rezept-jump__button:focus {
    filter: brightness(0.97);
    color: #fffaf1 !important;
    text-decoration: none !important;
}

#ds-rezept {
    scroll-margin-top: 28px;
}

body.ds-darkmode .ds-rezept-jump__button {
    background: linear-gradient(135deg, #9a6418, #b97a24);
    color: #fffaf1 !important;
}

@media (max-width: 700px) {
    .ds-rezept-jump__button {
        width: 100%;
    }
}

@media print {
    .ds-rezept-jump {
        display: none !important;
    }
}


/* v0.2.7 – Sprungziel mit Abstand für Sticky Header */
#ds-rezept {
    scroll-margin-top: 90px;
}
