:root {
    --background: #f3f5ef;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --text: #1d261f;
    --muted: #667068;
    --green: #2f6b48;
    --green-dark: #214d35;
    --green-soft: #dfeadf;
    --border: rgba(35, 74, 49, 0.13);
    --shadow: 0 14px 40px rgba(30, 54, 37, 0.09);
    --radius-large: 26px;
    --radius-medium: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;

    background:
        radial-gradient(
            circle 760px at top left,
            rgba(155, 196, 162, 0.30),
            transparent 72%
        ),
        radial-gradient(
            circle 680px at bottom right,
            rgba(226, 195, 136, 0.18),
            transparent 72%
        ),
        var(--background);

    background-attachment: fixed;
    background-repeat: no-repeat;
}

a {
    color: inherit;
}

.page {
    width: min(100% - 32px, 680px);
    margin: 0 auto;
    padding: 54px 0 34px;
}

.profile {
    text-align: center;
    margin-bottom: 38px;
}

.profile__image {
    display: block;
    width: 118px;
    height: 118px;
    margin: 0 auto 19px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.profile__eyebrow {
    margin: 0 0 18px;
    color: var(--green);
    font-size: clamp(1rem, 3vw, 1.18rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile h1 {
    max-width: 590px;
    margin: 0 auto;
    color: var(--green-dark);
    font-size: clamp(2rem, 6.5vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.profile__intro {
    max-width: 540px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.section {
    margin-top: 34px;
}

.section__title {
    margin: 0 0 12px 4px;
    color: var(--green-dark);
    font-size: 1.08rem;
}

.section__note {
    margin: -3px 4px 14px;
    color: var(--muted);
    font-size: 0.78rem;
}

.link-card,
.partner-card {
    display: flex;
    width: 100%;
    margin: 12px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    box-shadow: 0 8px 26px rgba(31, 59, 39, 0.06);
    text-decoration: none;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
    backdrop-filter: blur(14px);
}

.link-card:hover,
.partner-card:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 107, 72, 0.28);
    box-shadow: var(--shadow);
}

.link-card {
    align-items: center;
    min-height: 84px;
    padding: 17px 19px;
}

.link-card--primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(
        135deg,
        var(--green),
        var(--green-dark)
    );
}

.link-card__icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-right: 15px;
    border-radius: 14px;
    background: rgba(47, 107, 72, 0.11);
    font-size: 1.3rem;
}

.link-card--primary .link-card__icon {
    background: rgba(255, 255, 255, 0.14);
}

.link-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.link-card__content small {
    color: var(--muted);
    font-size: 0.82rem;
}

.link-card--primary .link-card__content small {
    color: rgba(255, 255, 255, 0.76);
}

.link-card__arrow {
    margin-left: 14px;
    font-size: 1.3rem;
}

.partner-card {
    position: relative;
    flex-direction: column;
    padding: 22px;
    overflow: hidden;
}

.partner-card::after {
    position: absolute;
    top: -46px;
    right: -32px;
    width: 112px;
    height: 112px;
    content: "";
    border-radius: 50%;
    background: var(--green-soft);
    opacity: 0.65;
}

.partner-card__topline {
    display: flex;
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.partner-card__topline strong {
    color: var(--green-dark);
    font-size: 1.13rem;
}

.partner-card__discount {
    flex-shrink: 0;
    padding: 8px 13px;
    color: var(--green-dark);
    border-radius: 999px;
    background: var(--green-soft);
    font-size: 0.88rem;
    font-weight: 800;
}

.partner-card__code {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.94rem;
}

.partner-card__button {
    margin-top: 19px;
    color: var(--green);
    font-size: 0.86rem;
    font-weight: 750;
}

.footer {
    margin-top: 48px;
    padding: 25px 10px;
    color: var(--muted);
    text-align: center;
    font-size: 0.79rem;
}

.footer p {
    margin: 0 0 8px;
}

.footer nav {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.legal-page {
    width: min(100% - 32px, 820px);
    margin: 0 auto;
    padding: 45px 0 70px;
}

.legal-card {
    padding: clamp(24px, 6vw, 44px);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.legal-card h1,
.legal-card h2 {
    color: var(--green-dark);
}

.legal-card h1 {
    margin-top: 0;
}

.legal-card h2 {
    margin-top: 32px;
    font-size: 1.1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}

.placeholder {
    padding: 18px;
    border: 1px dashed rgba(47, 107, 72, 0.35);
    border-radius: 14px;
    background: var(--green-soft);
}

@media (max-width: 520px) {
    .page {
        width: min(100% - 22px, 680px);
        padding-top: 38px;
    }

    .profile__image {
        width: 102px;
        height: 102px;
    }

    .partner-card__topline {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Recipe pages */

.recipe-page {
    width: min(100% - 32px, 820px);
    margin: 0 auto;
    padding: 36px 0 34px;
}

.recipe-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.recipe-nav .back-link {
    margin-bottom: 0;
}

.recipe-nav__brand {
    color: var(--green-dark);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.recipe {
    width: 100%;
}

.recipe-header {
    margin-bottom: 28px;
}

.recipe-header__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.recipe-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    color: var(--green-dark);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--green-soft);
    font-size: 0.78rem;
    font-weight: 750;
}

.recipe-header h1 {
    max-width: 720px;
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(2.2rem, 7vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.recipe-header__description {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2.5vw, 1.12rem);
    line-height: 1.65;
}

.recipe-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}

.recipe-meta__item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
}

.recipe-meta__icon {
    font-size: 1.35rem;
}

.recipe-meta__item div {
    display: flex;
    flex-direction: column;
}

.recipe-meta__item small {
    color: var(--muted);
    font-size: 0.74rem;
}

.recipe-meta__item strong {
    color: var(--green-dark);
    font-size: 0.96rem;
}

.recipe-section {
    margin-top: 22px;
}

.recipe-intro {
    max-width: 700px;
    color: var(--text);
    font-size: 1.03rem;
    line-height: 1.7;
}

.recipe-card {
    padding: clamp(22px, 5vw, 32px);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface-strong);
    box-shadow: 0 8px 28px rgba(31, 59, 39, 0.055);
}

.recipe-card h2 {
    margin: 0 0 18px;
    color: var(--green-dark);
    font-size: 1.25rem;
}

.recipe-card--tip {
    background: var(--green-soft);
}

.recipe-tips-list {
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recipe-tips-list li {
    position: relative;
    margin: 0;
    padding-left: 24px;
    color: var(--text);
    line-height: 1.75;
    white-space: pre-line;
}

.recipe-tips-list li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.recipe-tips-list strong {
    color: var(--green-dark);
    font-weight: 700;
}

.recipe-tips-list strong + span {
    margin-left: 4px;
}

.recipe-text {
    color: var(--text);
    line-height: 1.75;
    white-space: pre-line;
}

.recipe-text--lines {
    line-height: 1.9;
}

.recipe-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    padding: 22px;
    color: #ffffff;
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--green-dark)
        );
    box-shadow: var(--shadow);
}

.recipe-cta__image {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
}

.recipe-cta strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.recipe-cta p {
    margin: 0 0 9px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.86rem;
}

.recipe-cta a {
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
}

@media (max-width: 520px) {
    .recipe-page {
        width: min(100% - 22px, 820px);
        padding-top: 24px;
    }

    .recipe-nav {
        margin-bottom: 24px;
    }

    .recipe-nav__brand {
        font-size: 0.78rem;
    }

    .recipe-meta {
        grid-template-columns: 1fr;
    }

    .recipe-cta {
        align-items: flex-start;
    }

    .recipe-cta__image {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }
}

/* Recipe overview */

.recipes-page {
    width: min(100% - 32px, 1040px);
    margin: 0 auto;
    padding: 36px 0 34px;
}

.recipes-header {
    max-width: 720px;
    margin: 42px 0 38px;
}

.recipes-header .profile__eyebrow {
    margin-bottom: 12px;
    text-align: left;
}

.recipes-header h1 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.recipes-header > p:last-child {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.recipe-preview {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    padding: clamp(22px, 4vw, 30px);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface-strong);
    box-shadow: 0 8px 28px rgba(31, 59, 39, 0.055);
    text-decoration: none;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.recipe-preview:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 107, 72, 0.28);
    box-shadow: var(--shadow);
}

.recipe-preview__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
}

.recipe-preview h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.recipe-preview p {
    margin: 13px 0 22px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.recipe-preview__link {
    margin-top: auto;
    color: var(--green);
    font-size: 0.86rem;
    font-weight: 750;
}

@media (max-width: 680px) {
    .recipes-page {
        width: min(100% - 22px, 1040px);
        padding-top: 24px;
    }

    .recipes-header {
        margin: 32px 0 28px;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
    }

    .recipe-preview {
        min-height: 0;
    }
}


/* Structured recipe ingredients */

.ingredient-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ingredient-item {
    margin: 0;
    padding: 0;
}

.ingredient-group {
    margin: 20px 0 8px;
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ingredient-item:first-child .ingredient-group {
    margin-top: 0;
}

.ingredient-row {
    display: grid;
    grid-template-columns: minmax(70px, 120px) 1fr;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.ingredient-item:last-child .ingredient-row {
    border-bottom: 0;
}

.ingredient-amount {
    color: var(--green-dark);
    font-weight: 750;
}

.ingredient-name {
    color: var(--text);
}

.ingredient-name small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
}

.recipe-steps {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recipe-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 15px;
    align-items: start;
}

.recipe-step__number {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 50%;
    background: var(--green);
    font-size: 0.85rem;
    font-weight: 800;
}

.recipe-step__content h3 {
    margin: 1px 0 7px;
    color: var(--green-dark);
    font-size: 1rem;
}

.recipe-step__content p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}

.recipe-step__duration {
    display: inline-block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.76rem;
}

@media (max-width: 520px) {
    .ingredient-row {
        grid-template-columns: minmax(64px, 88px) 1fr;
        gap: 10px;
    }

    .recipe-step {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }

    .recipe-step__number {
        width: 34px;
        height: 34px;
    }
}

/* Recipe filters */

.recipe-filters {
    margin: 1.75rem 0 2rem;
}

.recipe-filter-form {
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 8px 24px rgba(30, 55, 35, 0.08);
}

.recipe-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.recipe-search {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.recipe-search > span {
    font-size: 0.85rem;
    font-weight: 700;
}

.recipe-search__field {
    position: relative;
}

.recipe-search__icon {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.recipe-search input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.7rem;
    border: 1px solid rgba(30, 55, 35, 0.16);
    border-radius: 0.8rem;
    background: #ffffff;
    color: inherit;
    font: inherit;
}

.recipe-search input:focus,
.recipe-filter select:focus {
    outline: 2px solid rgba(53, 95, 67, 0.2);
    border-color: #355f43;
}

.recipe-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0 1rem;
}

.recipe-pagination__pages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.recipe-pagination__page,
.recipe-pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    color: #355f43;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(30, 55, 35, 0.07);
}

.recipe-pagination__page {
    min-width: 42px;
}

.recipe-pagination__page--active {
    background: #355f43;
    color: #ffffff;
}

.recipe-pagination a:hover {
    transform: translateY(-1px);
}

.recipe-back-to-top {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0 0;
}

.recipe-back-to-top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    color: #355f43;
    font-weight: 700;
    text-decoration: none;
}

.recipe-back-to-top a:hover {
    text-decoration: underline;
}

html {
    scroll-behavior: smooth;
}

.recipe-filter {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.recipe-filter > span {
    font-size: 0.85rem;
    font-weight: 700;
}

.recipe-filter select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(30, 55, 35, 0.16);
    border-radius: 0.8rem;
    background: #ffffff;
    color: inherit;
    font: inherit;
}

.recipe-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.1rem;
}

.recipe-filter-button {
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.15rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: #355f43;
    color: #ffffff;
}

.recipe-filter-button:hover {
    opacity: 0.9;
}

.recipe-filter-reset {
    color: #355f43;
    font-weight: 700;
    text-decoration: none;
}

.recipe-filter-reset:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .recipe-filter-grid {
        grid-template-columns: 1fr;
    }

    .recipe-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .recipe-filter-button {
        width: 100%;
    }

    .recipe-pagination {
        gap: 0.6rem;
    }

    .recipe-pagination__arrow {
        flex: 1 1 120px;
    }

    .recipe-pagination__pages {
        width: 100%;
        order: -1;
    }
}


/* =========================================================
   Recipe media
   ========================================================= */

.recipe-preview__image-wrap,
.recipe-preview__image-placeholder {
    width: calc(100% + 48px);
    margin: -24px -24px 20px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.recipe-preview__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-preview__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3ec;
}

.recipe-preview__image-placeholder span {
    font-size: 3rem;
}

.recipe-hero-media {
    margin: 0 0 32px;
}

.recipe-hero-media__image {
    display: block;
    width: 100%;
    max-height: 720px;
    object-fit: cover;
    border-radius: 20px;
}

.recipe-hero-media figcaption,
.recipe-gallery figcaption {
    margin-top: 8px;
    color: #667066;
    font-size: 0.9rem;
}

.recipe-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.recipe-gallery__item {
    margin: 0;
}

.recipe-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.recipe-reel-cta {
    margin: 32px 0;
    text-align: center;
}

.recipe-reel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 999px;
    background: #214d35;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.recipe-reel-button:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

@media (max-width: 640px) {
    .recipe-gallery {
        grid-template-columns: 1fr;
    }

    .recipe-preview__image-wrap,
    .recipe-preview__image-placeholder {
        width: calc(100% + 36px);
        margin: -18px -18px 18px;
    }
}


/* =========================================================
   Protected recipe image upload
   ========================================================= */

.upload-page {
    width: min(100% - 32px, 620px);
    margin: 0 auto;
    padding: 42px 0 60px;
}

.upload-card {
    padding: clamp(24px, 6vw, 42px);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.upload-brand {
    display: inline-block;
    margin-bottom: 32px;
    color: var(--green-dark);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.upload-eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.upload-card h1 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.upload-intro {
    margin: 16px 0 28px;
    color: var(--muted);
    line-height: 1.65;
}

.upload-form {
    display: grid;
    gap: 20px;
}

.upload-file {
    display: flex;
    min-height: 110px;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border: 2px dashed rgba(47, 107, 72, 0.28);
    border-radius: var(--radius-medium);
    background: var(--green-soft);
    cursor: pointer;
    text-align: center;
}

.upload-file > span {
    color: var(--green-dark);
    font-weight: 800;
}

.upload-file input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.upload-preview {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-medium);
    background: var(--green-soft);
}

.upload-preview[hidden] {
    display: none;
}

.upload-preview img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.upload-field {
    display: grid;
    gap: 7px;
}

.upload-field > span {
    color: var(--green-dark);
    font-size: 0.86rem;
    font-weight: 750;
}

.upload-field small {
    color: var(--muted);
    font-weight: 500;
}

.upload-field input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    font: inherit;
}

.upload-field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(47, 107, 72, 0.1);
}

.upload-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
}

.upload-checkbox input {
    width: 19px;
    height: 19px;
    accent-color: var(--green);
}

.upload-submit {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: var(--green-dark);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.upload-submit:hover {
    opacity: 0.92;
}

.upload-note {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: center;
}

.upload-success {
    text-align: center;
}

.upload-success__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 20px;
    color: #ffffff;
    border-radius: 50%;
    background: var(--green);
    font-size: 1.5rem;
    font-weight: 900;
}

.upload-success .upload-preview {
    margin: 26px 0;
}

@media (max-width: 520px) {
    .upload-page {
        width: min(100% - 22px, 620px);
        padding: 22px 0 40px;
    }

    .upload-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .upload-brand {
        margin-bottom: 26px;
    }

    .upload-file {
        min-height: 96px;
    }
}


/* =========================================================
   Global hamburger navigation
   ========================================================= */

.site-menu {
    position: relative;
    z-index: 50;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 26px;
}

.site-menu__details {
    position: relative;
}

.site-menu__button {
    display: grid;
    width: 46px;
    height: 46px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-strong);
    box-shadow: 0 6px 20px rgba(24, 55, 37, 0.07);
    cursor: pointer;
    list-style: none;
}

.site-menu__button::-webkit-details-marker {
    display: none;
}

.site-menu__button::marker {
    display: none;
    content: "";
}

.site-menu__button span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: var(--green-dark);
    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

.site-menu__details[open] .site-menu__button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-menu__details[open] .site-menu__button span:nth-child(2) {
    opacity: 0;
}

.site-menu__details[open] .site-menu__button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: min(260px, calc(100vw - 44px));
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-strong);
    box-shadow: 0 18px 45px rgba(24, 55, 37, 0.14);
}

.site-menu__panel a {
    padding: 11px 13px;
    color: var(--text);
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.site-menu__panel a:hover {
    color: var(--green-dark);
    background: var(--green-soft);
}

.site-menu__divider {
    height: 1px;
    margin: 7px 5px;
    background: var(--border);
}

@media (max-width: 520px) {
    .site-menu {
        margin-bottom: 20px;
    }

    .site-menu__button {
        width: 44px;
        height: 44px;
    }
}


/* =========================================================
   Advertising placeholders
   ========================================================= */

.ad-slot {
    margin: 28px 0;
}

.ad-slot__label {
    display: block;
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-slot__placeholder {
    display: grid;
    min-height: 110px;
    place-items: center;
    padding: 18px;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.46);
    font-size: 0.78rem;
    text-align: center;
}

.ad-slot--wide .ad-slot__placeholder {
    min-height: 120px;
}

.ad-slot--recipe {
    margin: 34px 0;
}

@media (max-width: 520px) {
    .ad-slot {
        margin: 24px 0;
    }

    .ad-slot__placeholder,
    .ad-slot--wide .ad-slot__placeholder {
        min-height: 96px;
    }
}


/* Rabattcode copy controls */

.partner-card__code-row {
    display: flex;
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
}

.partner-card__code-row .partner-card__code {
    margin-top: 0;
}

.partner-card__code strong {
    color: var(--green-dark);
    font-weight: 750;
}

.partner-card__copy {
    flex-shrink: 0;
    padding: 8px 12px;
    color: var(--green-dark);
    border: 1px solid rgba(47, 107, 72, 0.2);
    border-radius: 999px;
    background: var(--green-soft);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 160ms ease,
        background 160ms ease;
}

.partner-card__copy:hover {
    transform: translateY(-1px);
}

.partner-card__copy.is-copied {
    background: rgba(47, 107, 72, 0.18);
}

.partner-card__button {
    position: relative;
    z-index: 1;
    display: inline-block;
    align-self: flex-start;
    text-decoration: none;
}

.partner-card__button:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .partner-card__code-row {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 12px;
    }
}

/* === Recommendation CMS === */

/*
   Rabattcodes und Empfehlungen verwenden bewusst
   dieselbe Designsprache wie die Rezeptübersicht.
*/

.recommendation-page.recipes-page {
    width: min(100% - 32px, 1040px);
    margin: 0 auto;
    padding: 36px 0 34px;
}

/* Hero */

.recommendation-page .recommendation-hero {
    max-width: 720px;
    margin: 42px 0 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.recommendation-page .recommendation-hero .profile__eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    text-align: left;
}

.recommendation-page .recommendation-hero h1 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.recommendation-page .recommendation-hero > p:last-child {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Affiliate-Hinweis */

.affiliate-disclosure {
    margin: 0 0 30px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
    box-shadow: 0 8px 26px rgba(31, 59, 39, 0.04);
    backdrop-filter: blur(14px);
}

.affiliate-disclosure strong {
    color: var(--green-dark);
}

/* Bereiche */

.recommendation-section {
    margin: 34px 0;
}

.recommendation-section > h2 {
    margin: 0 0 16px;
    color: var(--green-dark);
    font-size: 1.35rem;
    line-height: 1.2;
}

/* Grids */

.discount-grid,
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* Gemeinsame Karten */

.discount-card,
.recommendation-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface-strong);
    box-shadow: 0 8px 28px rgba(31, 59, 39, 0.055);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.discount-card:hover,
.recommendation-card:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 107, 72, 0.28);
    box-shadow: var(--shadow);
}

.discount-card__content,
.recommendation-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(22px, 4vw, 30px);
}

/* Rabattkarten bekommen subtilen Marken-Akzent */

.discount-card::after {
    position: absolute;
    top: -46px;
    right: -32px;
    width: 112px;
    height: 112px;
    content: "";
    border-radius: 50%;
    background: var(--green-soft);
    opacity: 0.65;
    pointer-events: none;
}

.discount-card__content {
    position: relative;
    z-index: 1;
}

/* Karte: Texte */

.recommendation-brand {
    margin: 0 0 9px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.discount-card h3,
.recommendation-card h3 {
    margin: 0;
    color: var(--green-dark);
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.recommendation-description {
    margin: 13px 0 20px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.recommendation-note {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.recommendation-note strong {
    color: var(--text);
}

/* Kategorien / Rabatt */

.recommendation-category,
.discount-saving {
    display: inline-flex;
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.recommendation-category {
    margin: 0 0 16px;
    color: var(--green);
    background: rgba(47, 107, 72, 0.08);
}

.discount-saving {
    margin: 18px 0 12px;
    color: var(--green-dark);
    background: var(--green-soft);
}

/* Rabattcode */

.discount-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.discount-code {
    min-width: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.discount-code strong {
    color: var(--green-dark);
}

.discount-copy-button {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    color: var(--green-dark);
    background: var(--green-soft);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
}

.discount-copy-button.is-copied {
    color: #ffffff;
    background: var(--green);
}

/* CTAs */

.recommendation-cta {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--green);
    background: rgba(47, 107, 72, 0.08);
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        transform 160ms ease,
        background 160ms ease;
}

.recommendation-cta:hover {
    transform: translateY(-1px);
    background: rgba(47, 107, 72, 0.13);
}

.recommendation-cta--primary {
    color: #ffffff;
    background: var(--green);
}

.recommendation-cta--primary:hover {
    background: var(--green-dark);
}

/* Leerer Zustand */

.recommendation-empty {
    margin: 0 0 30px;
    padding: clamp(22px, 4vw, 30px);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface-strong);
    box-shadow: 0 8px 28px rgba(31, 59, 39, 0.055);
}

.recommendation-empty > span {
    display: block;
    margin-bottom: 12px;
    font-size: 1.7rem;
}

.recommendation-empty h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: 1.35rem;
}

.recommendation-empty p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

/* Verbindung Rabattcodes <-> Empfehlungen */

.recommendation-crosslink {
    margin: 18px 0 38px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--surface);
    box-shadow: 0 8px 26px rgba(31, 59, 39, 0.04);
    backdrop-filter: blur(14px);
}

.recommendation-crosslink p {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 0.9rem;
}

.recommendation-crosslink a {
    color: var(--green);
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
}

.recommendation-crosslink a:hover {
    text-decoration: underline;
}

/* Mobile */

@media (max-width: 680px) {
    .recommendation-page.recipes-page {
        width: min(100% - 22px, 1040px);
        padding-top: 24px;
    }

    .recommendation-page .recommendation-hero {
        margin: 32px 0 28px;
    }

    .discount-grid,
    .recommendation-grid {
        grid-template-columns: 1fr;
    }

    .affiliate-disclosure {
        margin-bottom: 24px;
        padding: 14px 15px;
    }

    .recommendation-empty {
        padding: 22px;
    }

    .recommendation-crosslink {
        padding: 18px;
    }

    .discount-code-box {
        align-items: stretch;
        flex-direction: column;
    }

    .discount-copy-button,
    .recommendation-cta {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .discount-card,
    .recommendation-card,
    .recommendation-cta {
        transition: none;
    }
}

/* Affiliate-Hinweis bewusst visuell untergeordnet */

.recommendation-page .affiliate-disclosure {
    max-width: 720px;
    margin: -6px 0 30px;
    padding: 0;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;

    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.recommendation-page .affiliate-disclosure strong {
    color: var(--muted);
    font-weight: 650;
}

@media (max-width: 680px) {
    .recommendation-page .affiliate-disclosure {
        margin-top: -2px;
        margin-bottom: 26px;
        padding: 0;

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

/* Affiliate-Hinweis final dezent */
.recommendation-page .affiliate-disclosure,
.recommendation-page .affiliate-disclosure strong {
    color: #667068 !important;
}

.recommendation-page .affiliate-disclosure {
    font-size: 0.74rem !important;
    line-height: 1.5;
}

.recommendation-page .affiliate-disclosure strong {
    font-size: inherit;
    font-weight: 600 !important;
}

@media (max-width: 680px) {
    .recommendation-page .affiliate-disclosure {
        font-size: 0.76rem !important;
    }
}

/* Homepage: Link zu allen Rabattcodes */
.home-discount-all {
    display: inline-flex;
    margin: 8px 4px 0;
    color: var(--green);
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
}

.home-discount-all:hover {
    text-decoration: underline;
}


/* =========================================================
   Homepage redesign
   ========================================================= */

.home-section-heading {
    margin-bottom: 16px;
}

.home-section-heading__eyebrow {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* Recipe highlights */

.home-recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-recipe-card {
    overflow: hidden;
    color: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.home-recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 49, 37, 0.08);
}

.home-recipe-card__media {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.48);
}

.home-recipe-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-recipe-card__fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    font-size: 2rem;
}

.home-recipe-card__content {
    padding: 12px;
}

.home-recipe-card__content h3 {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.3;
}

.home-recipe-card__content p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.home-recipes__all {
    display: inline-flex;
    margin-top: 16px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.home-recipes__all:hover {
    text-decoration: underline;
}


/* About */

.home-about {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.56);
}

.home-about__content {
    position: relative;
    z-index: 1;
}

.home-about__lead {
    margin: 4px 0 14px;
    font-weight: 700;
    line-height: 1.55;
}

.home-about__content > p:not(.home-section-heading__eyebrow) {
    line-height: 1.65;
}

.home-about__closing {
    margin-bottom: 0;
    font-weight: 700;
}


/* Discount intro */

.home-discount-intro {
    margin: -4px 0 16px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}


/* Responsive homepage */

@media (max-width: 640px) {
    .home-recipe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-recipe-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .home-recipe-card:last-child:nth-child(odd)
    .home-recipe-card__media {
        aspect-ratio: 16 / 9;
    }

    .home-about {
        padding: 20px;
    }
}

@media (max-width: 390px) {
    .home-recipe-grid {
        grid-template-columns: 1fr;
    }

    .home-recipe-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .home-recipe-card__media,
    .home-recipe-card:last-child:nth-child(odd)
    .home-recipe-card__media {
        aspect-ratio: 16 / 10;
    }
}


/* =========================================================
   Homepage final layout fixes
   ========================================================= */


/* ---------------------------------------------------------
   Einheitliche linke Kante
   --------------------------------------------------------- */

.home-recipes,
.home-about,
.section:has(#discount-heading),
.section:has(#more-heading) {
    box-sizing: border-box;
}

.home-recipes .section__title,
#discount-heading,
#more-heading {
    margin-left: 0;
}


/* ---------------------------------------------------------
   Rezept-Highlights
   Desktop: exakt 3 kompakte Karten nebeneinander
   --------------------------------------------------------- */

.home-recipes .home-recipe-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
}

.home-recipes .home-recipe-card {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-medium) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: var(--text) !important;
    text-decoration: none !important;
}

.home-recipes .home-recipe-card__media {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
}

.home-recipes .home-recipe-card__media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
}

.home-recipes .home-recipe-card__content {
    padding: 13px 14px 14px !important;
}

.home-recipes .home-recipe-card__content h3 {
    margin: 0 !important;
    font-size: 0.94rem !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
}

.home-recipes .home-recipe-card__content p {
    margin: 6px 0 0 !important;
    color: var(--muted) !important;
    font-size: 0.78rem !important;
}


/* ---------------------------------------------------------
   Gemeinsamer Secondary CTA:
   Alle Rezepte / Alle Rabattcodes
   --------------------------------------------------------- */

.home-recipes__all,
.home-discount-all {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;

    box-sizing: border-box !important;
    min-width: 210px !important;
    margin: 18px 0 0 !important;
    padding: 11px 15px !important;

    border: 1px solid var(--border) !important;
    border-radius: 14px !important;

    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 6px 18px rgba(31, 49, 37, 0.05) !important;

    color: var(--green) !important;
    font-size: 0.86rem !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease !important;
}

.home-recipes__all:hover,
.home-discount-all:hover {
    transform: translateY(-1px);
    background: #fff !important;
    box-shadow: 0 9px 22px rgba(31, 49, 37, 0.08) !important;
    text-decoration: none !important;
}


/* ---------------------------------------------------------
   Über mich als klar abgegrenzte weiße Card
   --------------------------------------------------------- */

section.home-about {
    box-sizing: border-box !important;
    padding: 26px !important;

    border: 1px solid var(--border) !important;
    border-radius: var(--radius-large) !important;

    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 8px 24px rgba(31, 49, 37, 0.04) !important;
}

.home-about .section__title {
    margin-left: 0 !important;
}


/* ---------------------------------------------------------
   Rabattcodes
   --------------------------------------------------------- */

.home-discount-title {
    margin-top: 0 !important;
    margin-left: 0 !important;
}

.home-discount-intro {
    margin-left: 0 !important;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 760px) {
    .home-recipes .home-recipe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-recipes .home-recipe-card:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
        max-width: none !important;
    }

    .home-recipes
    .home-recipe-card:last-child:nth-child(odd)
    .home-recipe-card__media {
        aspect-ratio: 16 / 9 !important;
    }
}


/* ---------------------------------------------------------
   Smartphone
   --------------------------------------------------------- */

@media (max-width: 480px) {
    .home-recipes .home-recipe-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .home-recipes .home-recipe-card:last-child:nth-child(odd) {
        grid-column: auto !important;
    }

    .home-recipes .home-recipe-card__media,
    .home-recipes
    .home-recipe-card:last-child:nth-child(odd)
    .home-recipe-card__media {
        aspect-ratio: 16 / 10 !important;
    }

    section.home-about {
        padding: 20px !important;
    }

    .home-recipes__all,
    .home-discount-all {
        width: 100% !important;
    }
}

/* ---------------------------------------------------------
   Affiliate-Hinweis auf der Startseite dezenter darstellen
   --------------------------------------------------------- */

.home-affiliate-note {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    color: var(--muted) !important;
    margin-top: 8px !important;
    margin-bottom: 18px !important;
}

.home-affiliate-note strong {
    font-weight: 700 !important;
}

@media (max-width: 480px) {
    .home-affiliate-note {
        font-size: 0.72rem !important;
        line-height: 1.4 !important;
    }
}

/* =========================================================
   Contact page styles
   ========================================================= */

.contact-card {
    max-width: 760px;
}

.contact-intro {
    margin-bottom: 28px;
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form__field {
    display: grid;
    gap: 8px;
}

.contact-form__field label {
    color: var(--text);
    font-weight: 700;
}

.contact-form__field label span {
    color: var(--muted);
    font-size: 0.82em;
    font-weight: 500;
}

.contact-form__field input,
.contact-form__field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 13px 14px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.9);

    color: var(--text);
    font: inherit;

    outline: none;
}

.contact-form__field textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(38, 104, 70, 0.08);
}

.contact-form__privacy {
    margin: 0;

    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.contact-form__privacy a {
    color: var(--green);
    font-weight: 650;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    padding: 12px 18px;

    border: 0;
    border-radius: 14px;

    background: var(--green);
    color: #fff;

    font: inherit;
    font-weight: 750;

    cursor: pointer;
}

.contact-form__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.contact-direct {
    margin-top: 32px;
    padding-top: 24px;

    border-top: 1px solid var(--border);
}

.contact-direct p {
    margin: 0 0 10px;
    color: var(--muted);
}

.contact-direct a {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 480px) {
    .contact-form {
        gap: 17px;
    }

    .contact-form__submit {
        width: 100%;
    }
}

/* ---------------------------------------------------------
   Contact form status messages + honeypot
   --------------------------------------------------------- */

.contact-message {
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    line-height: 1.5;
}

.contact-message strong {
    display: block;
    margin-bottom: 3px;
}

.contact-message--success {
    background: rgba(226, 240, 229, 0.72);
    color: var(--green);
}

.contact-message--error {
    background: rgba(250, 235, 232, 0.82);
    color: #7a342d;
}

.contact-form__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Recipe tips: custom markers and spacing */
.recipe-card--tip .recipe-tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recipe-card--tip .recipe-tips-list li {
    position: relative;
    list-style: none;
    margin: 0;
    padding-left: 24px;
}

.recipe-card--tip .recipe-tips-list li + li {
    margin-top: 24px;
}

.recipe-card--tip .recipe-tips-list li::marker {
    content: "";
}

.recipe-card--tip .recipe-tips-list li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

/* Recipe tips: compact final layout */
.recipe-card--tip .recipe-tips-list {
    display: block;
}

.recipe-card--tip .recipe-tips-list li {
    display: block;
    margin: 0;
    padding-left: 24px;
    white-space: normal;
}

.recipe-card--tip .recipe-tips-list li + li {
    margin-top: 18px;
}

.recipe-card--tip .recipe-tips-list strong,
.recipe-card--tip .recipe-tips-list span {
    display: inline;
}

.recipe-card--tip .recipe-tips-list strong + span {
    margin-left: 4px;
}

/* Redaktioneller Einleitungstext auf Rezeptseiten */

.recipe-intro__heading {
    margin: 1.6em 0 0.45em;
    color: var(--text);
    font-size: clamp(1.05rem, 2.2vw, 1.18rem);
    line-height: 1.35;
    font-weight: 700;
}

.recipe-intro__heading:first-child {
    margin-top: 0;
}

.recipe-intro__text {
    margin: 0 0 1.15em;
    line-height: 1.75;
}

.recipe-intro__text:last-child {
    margin-bottom: 0;
}


/* =========================================================
   Recipe UX: Intro, Aktionen, Inline-Bilder und Druckansicht
   ========================================================= */

html {
    scroll-behavior: smooth;
}

#recipe-start {
    scroll-margin-top: 24px;
}

.recipe-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.recipe-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(33, 77, 53, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #214d35;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.recipe-action-button:hover {
    background: rgba(33, 77, 53, 0.08);
}

.recipe-intro__section {
    margin: 0 0 1.6rem;
}

.recipe-intro__heading {
    margin: 0 0 0.5rem;
    color: #214d35;
    font-size: clamp(1.08rem, 2.2vw, 1.22rem);
    line-height: 1.35;
    font-weight: 750;
}

.recipe-intro__text {
    margin: 0;
    line-height: 1.75;
}

.recipe-inline-media {
    width: 100%;
    margin: 32px 0;
}

.recipe-inline-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.recipe-inline-media figcaption {
    margin-top: 8px;
    color: #667066;
    font-size: 0.9rem;
}

.recipe-extra-media {
    display: grid;
    gap: 32px;
}


/* Smartphone */

@media (max-width: 640px) {
    .recipe-header__actions {
        align-items: stretch;
    }

    .recipe-action-button {
        flex: 1 1 auto;
    }

    .recipe-inline-media {
        margin: 26px 0;
    }
}


/* =========================================================
   Recipe print view
   ========================================================= */

@media print {

    @page {
        margin: 16mm;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
    }

    .recipe-nav,
    .recipe-back-to-top,
    .recipe-header__badges,
    .recipe-header__description,
    .recipe-header__actions,
    .recipe-hero-media,
    .recipe-intro,
    .recipe-inline-media,
    .recipe-extra-media,
    .recipe-reel-cta,
    .recipe-cta,
    .footer {
        display: none !important;
    }

    .recipe {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .recipe-header {
        margin: 0 0 18px !important;
        padding: 0 !important;
    }

    .recipe-header h1 {
        margin: 0 0 14px !important;
        color: #000 !important;
        font-size: 24pt !important;
    }

    .recipe-meta {
        display: flex !important;
        gap: 24px !important;
        margin: 0 0 22px !important;
    }

    .recipe-meta__item {
        border: 0 !important;
        padding: 0 !important;
        background: none !important;
        box-shadow: none !important;
    }

    .recipe-section.recipe-card {
        break-inside: avoid;
        border: 0 !important;
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 0 22px !important;
    }

    .recipe-section h2 {
        color: #000 !important;
    }
}


/* =========================================================
   Einheitliche Seitennavigation
   ========================================================= */

.back-link,
.recipe-back-to-top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(33, 77, 53, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #214d35;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.back-link:hover,
.recipe-back-to-top a:hover {
    background: rgba(33, 77, 53, 0.08);
    border-color: rgba(33, 77, 53, 0.34);
    text-decoration: none;
    transform: translateY(-1px);
}

.recipe-back-to-top {
    display: flex;
    justify-content: center;
    margin: 2rem 0 1rem;
}


/* Zusatzbilder genauso darstellen wie das Titelbild */

.recipe-inline-media img {
    display: block;
    width: 100%;
    max-height: 720px;
    object-fit: cover;
    border-radius: 20px;
}


/* Inline-Rezeptbilder auf volle Rezeptbreite erweitern */

.recipe-intro .recipe-inline-media {
    width: min(820px, calc(100vw - 32px));
    max-width: none;
}


/* =========================================================
   Redaktionelle Infoboxen auf Rezeptseiten
   ========================================================= */

.recipe-intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recipe-intro__card {
    padding: clamp(22px, 4vw, 30px);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 28px rgba(31, 59, 39, 0.04);
}

.recipe-intro__card .recipe-intro__heading {
    margin: 0 0 10px;
}

.recipe-intro__card .recipe-intro__text {
    margin: 0;
}

.recipe-intro .recipe-inline-media {
    margin-top: 12px;
    margin-bottom: 12px;
}


/* Intro-Bereich auf volle Rezeptbreite */
.recipe-intro {
    max-width: none;
    width: 100%;
}

.recipe-intro .recipe-inline-media {
    width: 100%;
    max-width: none;
}
