/* RezeptPlaner 0.65.0 – Frontend-App: fluide Navigation, Rezeptfilter und Pagination */
.rp-app {
    --rp-app-bg: #f4f7f4;
    --rp-app-surface: #ffffff;
    --rp-app-surface-soft: #f8faf8;
    --rp-app-text: #1d2923;
    --rp-app-muted: #68756e;
    --rp-app-border: #dfe7e1;
    --rp-app-primary: #236746;
    --rp-app-primary-strong: #174c33;
    --rp-app-primary-soft: #e8f3ed;
    --rp-app-danger: #a43b3b;
    --rp-app-warning: #9b641f;
    --rp-app-radius: 18px;
    --rp-app-radius-sm: 12px;
    --rp-app-shadow: 0 8px 30px rgba(28, 55, 39, .07);
    position: relative;
    z-index: 1;
    color: var(--rp-app-text);
    font-size: 16px;
    line-height: 1.45;
}


/* Keep AJAX drawers out of normal document flow until their lazy styles are ready. */
body.rp-app-page-active { overflow-x:hidden !important; overscroll-behavior-x:none; }
.rp-nutrition-drawer-overlay[hidden] { display:none !important; }
.rp-nutrition-drawer:not(.is-open) { display:none !important; }

.rp-app--wide {
    width: min(1480px, calc(100vw - 24px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.rp-app *,
.rp-app *::before,
.rp-app *::after {
    box-sizing: border-box;
}

.rp-app a { color: inherit; text-decoration: none; }
.rp-app button,
.rp-app input { font: inherit; }
.rp-app h1,
.rp-app h2,
.rp-app h3,
.rp-app p { margin-top: 0; }
.rp-app h1,
.rp-app h2,
.rp-app h3 { color: var(--rp-app-text); }

/*
 * Wide App host: Divi begrenzt Rows standardmäßig auf eine Inhaltsbreite.
 * Die Klassen werden nur von rp-app.js an die tatsächlichen Vorfahren einer
 * [rp_app]-Instanz gesetzt und beeinflussen daher keine anderen Divi-Bereiche.
 */
.rp-app-divi-host-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.rp-app-divi-host-row {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.rp-app-divi-host-column,
.rp-app-divi-host-module,
.rp-app-divi-host-inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rp-app-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}
.rp-app-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.rp-app-icon svg circle[fill],
.rp-app-icon svg path[fill] { fill: currentColor; }

.rp-app-shell {
    min-height: min(820px, calc(100vh - 24px));
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--rp-app-border);
    border-radius: 24px;
    background: var(--rp-app-bg);
    box-shadow: var(--rp-app-shadow);
}

.rp-app-sidebar {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 22px 14px 18px;
    border-right: 1px solid var(--rp-app-border);
    background: var(--rp-app-surface);
}

.rp-app-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 22px;
}
.rp-app-brand__mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--rp-app-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.rp-app-brand strong,
.rp-app-brand small { display: block; line-height: 1.15; }
.rp-app-brand strong { font-size: 15px; }
.rp-app-brand small { margin-top: 4px; color: var(--rp-app-muted); font-size: 11px; }

.rp-app-nav { display: grid; gap: 5px; }
.rp-app-nav__item {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #536159;
    font-size: 14px;
    font-weight: 650;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.rp-app-nav__item:hover,
.rp-app-nav__item:focus-visible {
    background: var(--rp-app-surface-soft);
    color: var(--rp-app-text);
}
.rp-app-nav__item.is-active {
    background: var(--rp-app-primary-soft);
    color: var(--rp-app-primary-strong);
}
.rp-app-nav__item:active { transform: translateY(1px); }

.rp-app-sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 14px 8px 2px;
    border-top: 1px solid var(--rp-app-border);
}
.rp-app-sidebar__user-copy { min-width: 0; }
.rp-app-sidebar__user strong { display: block; max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.2; }
.rp-app-sidebar__logout { display: inline-block; margin-top: 4px; color: var(--rp-app-primary) !important; font-size: 11px; font-weight: 750; line-height: 1.2; }
.rp-app-sidebar__logout:hover, .rp-app-sidebar__logout:focus-visible { text-decoration: underline; }
.rp-app-avatar {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e8eee9;
    color: var(--rp-app-primary-strong);
    font-size: 13px;
    font-weight: 800;
}

.rp-app-main { min-width: 0; background: var(--rp-app-bg); }
.rp-app-topbar {
    display: none;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--rp-app-border);
    background: rgba(255,255,255,.96);
}
.rp-app-topbar__brand,
.rp-app-topbar__user { display: flex; align-items: center; gap: 9px; }
.rp-app-topbar__brand .rp-app-brand__mark { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
.rp-app-topbar__brand strong { font-size: 14px; }
.rp-app-topbar__user > span:first-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--rp-app-muted); font-size: 12px; }

.rp-app-content {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 34px 34px 54px;
}

.rp-app-view-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.rp-app-view-head h1 { margin-bottom: 6px; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.rp-app-view-head p { margin-bottom: 0; color: var(--rp-app-muted); font-size: 14px; }
.rp-app-view-head--plan { margin-bottom: 18px; }
.rp-app-mobile-logout {
    display: none;
    flex: 0 0 auto;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--rp-app-border);
    border-radius: 10px;
    background: var(--rp-app-surface);
    color: var(--rp-app-primary) !important;
    font-size: 11px;
    font-weight: 750;
}
.rp-app-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--rp-app-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rp-app-section { margin-top: 34px; }
.rp-app-section--tight { margin-top: 24px; }
.rp-app-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.rp-app-section-head h2 { margin-bottom: 0; font-size: 20px; letter-spacing: -.02em; }
.rp-app-section-head > a { color: var(--rp-app-primary); font-size: 13px; font-weight: 700; }

.rp-app-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
}
.rp-app-summary-card {
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--rp-app-border);
    border-radius: var(--rp-app-radius);
    background: var(--rp-app-surface);
    box-shadow: 0 3px 14px rgba(28,55,39,.035);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.rp-app-summary-card:hover { transform: translateY(-1px); border-color: #cbd8cf; box-shadow: 0 7px 22px rgba(28,55,39,.06); }
.rp-app-summary-card__icon {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 12px;
    background: var(--rp-app-primary-soft);
    color: var(--rp-app-primary);
}
.rp-app-summary-card strong,
.rp-app-summary-card span { display: block; }
.rp-app-summary-card strong { font-size: 23px; line-height: 1; letter-spacing: -.03em; }
.rp-app-summary-card div > span { margin-top: 6px; color: var(--rp-app-muted); font-size: 12px; }

.rp-app-today-card,
.rp-app-empty,
.rp-app-notice {
    border: 1px solid var(--rp-app-border);
    border-radius: var(--rp-app-radius);
    background: var(--rp-app-surface);
}
.rp-app-today-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
}
.rp-app-today-card span,
.rp-app-today-card strong,
.rp-app-today-card small { display: block; }
.rp-app-today-card span { color: var(--rp-app-muted); font-size: 11px; }
.rp-app-today-card strong { margin-top: 2px; font-size: 18px; }
.rp-app-today-card small { margin-top: 3px; color: var(--rp-app-muted); font-size: 12px; }

.rp-app-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid var(--rp-app-primary);
    border-radius: 11px;
    background: var(--rp-app-primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.rp-app-button:hover,
.rp-app-button:focus-visible { background: var(--rp-app-primary-strong); border-color: var(--rp-app-primary-strong); }
.rp-app-button:active { transform: translateY(1px); }
.rp-app-button--secondary { border-color: var(--rp-app-border); background: var(--rp-app-surface); color: var(--rp-app-text) !important; }
.rp-app-button--secondary:hover,
.rp-app-button--secondary:focus-visible { background: var(--rp-app-surface-soft); border-color: #cbd8cf; }

.rp-app-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.rp-app-plan-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 17px;
    border: 1px solid var(--rp-app-border);
    border-radius: var(--rp-app-radius);
    background: var(--rp-app-surface);
    box-shadow: 0 3px 14px rgba(28,55,39,.025);
}
.rp-app-plan-card__top,
.rp-app-plan-title-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-app-plan-card h3 { margin: 13px 0 4px; font-size: 17px; line-height: 1.25; letter-spacing: -.015em; }
.rp-app-plan-card__recipient { min-height: 20px; margin-bottom: 12px; color: var(--rp-app-muted); font-size: 12px; }
.rp-app-plan-card__meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 14px; color: var(--rp-app-muted); font-size: 11px; }
.rp-app-plan-card__meta span + span::before { content: '•'; margin-right: 10px; color: #b1bbb5; }
.rp-app-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--rp-app-primary-soft);
    color: var(--rp-app-primary-strong);
    font-size: 10px;
    font-weight: 800;
}
.rp-app-badge--family { background: #edf0f9; color: #4a5982; }
.rp-app-badge--event { background: #fff2e4; color: #8a5c22; }
.rp-app-badge--facility { background: #f1ecf8; color: #654d7d; }
.rp-app-badge--muted { background: #eef2ef; color: #68756e; }
.rp-app-card-link {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #edf1ee;
    color: var(--rp-app-primary) !important;
    font-size: 12px;
    font-weight: 750;
}
.rp-app-card-link .rp-app-icon { width: 17px; height: 17px; }

.rp-app-filter {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}
.rp-app-search {
    display: flex;
    min-height: 44px;
    flex: 1 1 auto;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--rp-app-border);
    border-radius: 12px;
    background: var(--rp-app-surface);
}
.rp-app-search .rp-app-icon { width: 19px; height: 19px; color: var(--rp-app-muted); }
.rp-app-search input {
    width: 100%;
    min-width: 0;
    padding: 9px 0;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--rp-app-text);
    font-size: 14px;
}
.rp-app-search input::placeholder { color: #98a39d; }
.rp-app-chips,
.rp-app-day-strip {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.rp-app-chips { gap: 7px; padding: 2px 0 6px; }
.rp-app-chip {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    flex: 0 0 auto;
    padding: 6px 11px;
    border: 1px solid var(--rp-app-border);
    border-radius: 999px;
    background: var(--rp-app-surface);
    color: var(--rp-app-muted) !important;
    font-size: 11px;
    font-weight: 700;
}
.rp-app-chip.is-active { border-color: var(--rp-app-primary); background: var(--rp-app-primary-soft); color: var(--rp-app-primary-strong) !important; }
.rp-app-result-count { margin: 10px 0 12px; color: var(--rp-app-muted); font-size: 11px; }

.rp-app-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 16px;
    color: var(--rp-app-muted) !important;
    font-size: 12px;
    font-weight: 700;
}
.rp-app-back .rp-app-icon { width: 16px; height: 16px; }
.rp-app-day-strip {
    gap: 8px;
    margin: 0 -2px 20px;
    padding: 2px 2px 7px;
}
.rp-app-day {
    display: grid;
    width: 68px;
    min-width: 68px;
    min-height: 70px;
    place-items: center;
    align-content: center;
    padding: 8px 5px;
    border: 1px solid var(--rp-app-border);
    border-radius: 13px;
    background: var(--rp-app-surface);
    color: var(--rp-app-muted) !important;
}
.rp-app-day small,
.rp-app-day strong,
.rp-app-day span { display: block; line-height: 1.08; }
.rp-app-day small { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.rp-app-day strong { margin: 4px 0 2px; color: var(--rp-app-text); font-size: 18px; }
.rp-app-day span { font-size: 9px; text-transform: uppercase; }
.rp-app-day.is-active { border-color: var(--rp-app-primary); background: var(--rp-app-primary); color: rgba(255,255,255,.82) !important; box-shadow: 0 6px 14px rgba(35,103,70,.18); }
.rp-app-day.is-active strong { color: #fff; }

.rp-app-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.rp-app-metric {
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid var(--rp-app-border);
    border-radius: 13px;
    background: var(--rp-app-surface);
}
.rp-app-metric > span { display: block; margin-bottom: 5px; color: var(--rp-app-muted); font-size: 10px; font-weight: 700; }
.rp-app-metric strong { display: block; overflow: hidden; color: var(--rp-app-text); font-size: 15px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.rp-app-metric strong small { color: var(--rp-app-muted); font-size: 9px; font-weight: 600; }
.rp-app-progress { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #edf1ee; }
.rp-app-progress span { display: block; height: 100%; border-radius: inherit; background: var(--rp-app-primary); }
.rp-app-metric.is-over .rp-app-progress span { background: var(--rp-app-danger); }
.rp-app-metric.is-good .rp-app-progress span { background: #32835a; }

.rp-app-meal-list { display: grid; gap: 10px; }
.rp-app-meal-card {
    overflow: hidden;
    border: 1px solid var(--rp-app-border);
    border-radius: 15px;
    background: var(--rp-app-surface);
}
.rp-app-meal-card > header {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    border-bottom: 1px solid #edf1ee;
    background: var(--rp-app-surface-soft);
}
.rp-app-meal-card > header > div { display: flex; align-items: center; gap: 10px; }
.rp-app-meal-card > header .rp-app-icon { width: 19px; height: 19px; color: var(--rp-app-primary); }
.rp-app-meal-card header strong,
.rp-app-meal-card header small { display: block; line-height: 1.15; }
.rp-app-meal-card header strong { font-size: 13px; }
.rp-app-meal-card header small { margin-top: 3px; color: var(--rp-app-muted); font-size: 10px; }
.rp-app-meal-count {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: #e9eeea;
    color: var(--rp-app-muted);
    font-size: 10px;
    font-weight: 800;
}
.rp-app-meal-card__items { display: grid; }
.rp-app-meal-item {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 13px;
}
.rp-app-meal-item + .rp-app-meal-item { border-top: 1px solid #edf1ee; }
.rp-app-meal-item strong,
.rp-app-meal-item small { display: block; }
.rp-app-meal-item strong { font-size: 13px; line-height: 1.25; }
.rp-app-meal-item small { margin-top: 4px; color: var(--rp-app-muted); font-size: 10px; }
.rp-app-meal-item > a { display: inline-grid; width: 34px; height: 34px; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--rp-app-surface-soft); color: var(--rp-app-primary) !important; }
.rp-app-meal-item > a .rp-app-icon { width: 17px; height: 17px; }
.rp-app-readonly { color: var(--rp-app-muted); font-size: 10px; }

.rp-app-recipe-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}
.rp-app-recipe-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--rp-app-border);
    border-radius: var(--rp-app-radius);
    background: var(--rp-app-surface);
}
.rp-app-recipe-card__visual {
    display: grid;
    height: auto;
    aspect-ratio: 4 / 3;
    place-items: center;
    background: linear-gradient(135deg, #edf5f0, #f7faf8);
    color: #7ca08b;
}
.rp-app-recipe-card__visual .rp-app-icon { width: 34px; height: 34px; }
.rp-app-recipe-card__visual--image { overflow:hidden; padding:0; }
.rp-app-recipe-card__thumbnail { display:block; width:100%; height:100%; object-fit:contain; object-position:center; }
.rp-app-recipe-card__body { display: flex; min-height: 150px; flex-direction: column; padding: 13px; }
.rp-app-recipe-card h3 { margin: 9px 0 5px; font-size: 15px; line-height: 1.25; }
.rp-app-recipe-card p { margin-bottom: 10px; color: var(--rp-app-muted); font-size: 10px; }

.rp-app-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    color: var(--rp-app-muted);
}
.rp-app-empty > .rp-app-icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--rp-app-primary-soft); color: var(--rp-app-primary); }
.rp-app-empty strong { display: block; color: var(--rp-app-text); font-size: 13px; }
.rp-app-empty p { margin: 3px 0 0; font-size: 11px; }
.rp-app-empty .rp-app-button { margin-left: auto; }

.rp-app-notice { padding: 16px 18px; }
.rp-app-notice strong { display: block; font-size: 13px; }
.rp-app-notice p { margin: 5px 0 0; color: var(--rp-app-muted); font-size: 11px; }
.rp-app-notice--soft { margin-top: 16px; background: var(--rp-app-surface-soft); }

.rp-app-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rp-app-module-card {
    display: flex;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--rp-app-border);
    border-radius: var(--rp-app-radius);
    background: var(--rp-app-surface);
}
.rp-app-module-card > .rp-app-icon { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: var(--rp-app-primary-soft); color: var(--rp-app-primary); }
.rp-app-module-card h3 { margin: 0 0 5px; font-size: 14px; }
.rp-app-module-card p { margin: 0 0 7px; color: var(--rp-app-muted); font-size: 11px; }
.rp-app-module-card small { color: #8c9891; font-size: 10px; }

.rp-app-bottom-nav { display: none; }

.rp-app-gate {
    width: min(100%, 480px);
    margin: 30px auto;
    padding: 26px;
    border: 1px solid #dfe7e1;
    border-radius: 20px;
    background: #fff;
    color: #1d2923;
    box-shadow: 0 8px 30px rgba(28,55,39,.07);
}
.rp-app-gate .rp-app-brand { padding-left: 0; }
.rp-app-gate h2 { margin: 4px 0 7px; font-size: 24px; }
.rp-app-gate p { margin-bottom: 18px; color: #68756e; }

@media (max-width: 1080px) {
    .rp-app-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-app-recipe-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rp-app-content { padding: 28px 24px 46px; }
}

@media (max-width: 820px) {
    .rp-app--wide {
        /* Break out of Divi's normal 80/90%-Row and use the real viewport. */
        width: 100vw;
        max-width: 100vw;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
        transform: none;
    }
    .rp-app-shell {
        display: block;
        min-height: 70vh;
        overflow: visible;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .rp-app-sidebar { display: none; }
    .rp-app-topbar { display: none; position: static; }
    .rp-app-main { min-height: 70vh; }
    .rp-app-content { padding: 24px 18px 88px; }
    .rp-app-bottom-nav {
        position: fixed;
        z-index: 100;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        padding: 5px;
        border: 1px solid rgba(207,219,211,.95);
        border-radius: 17px;
        background: rgba(255,255,255,.97);
        box-shadow: 0 10px 32px rgba(27,51,36,.16);
        backdrop-filter: blur(14px);
    }
    .rp-app-bottom-nav__item {
        display: grid;
        min-width: 0;
        min-height: 51px;
        place-items: center;
        align-content: center;
        gap: 3px;
        border-radius: 12px;
        color: #77847c !important;
        font-size: 9px;
        font-weight: 750;
    }
    .rp-app-bottom-nav__item .rp-app-icon { width: 20px; height: 20px; }
    .rp-app-bottom-nav__item.is-active { background: var(--rp-app-primary-soft); color: var(--rp-app-primary-strong) !important; }
    .rp-app-view-head--nutrition { align-items: flex-start; }
    .rp-app-mobile-logout { display: inline-flex; }
    .rp-app-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rp-app-recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .rp-app { font-size: 15px; }
    .rp-app-shell { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
    .rp-app-content { padding: 20px 14px 88px; }
    .rp-app-view-head { margin-bottom: 19px; }
    .rp-app-view-head h1 { font-size: 28px; }
    .rp-app-view-head p { font-size: 12px; }
    .rp-app-section { margin-top: 26px; }
    .rp-app-section-head h2 { font-size: 18px; }
    .rp-app-summary-grid { gap: 9px; }
    .rp-app-summary-card { min-height: 76px; padding: 12px; gap: 10px; }
    .rp-app-summary-card__icon { width: 36px; height: 36px; padding: 8px; }
    .rp-app-summary-card strong { font-size: 19px; }
    .rp-app-today-card { align-items: stretch; flex-direction: column; padding: 15px; }
    .rp-app-today-card .rp-app-button { width: 100%; }
    .rp-app-plan-grid { grid-template-columns: 1fr; gap: 10px; }
    .rp-app-plan-card { padding: 14px; }
    .rp-app-filter { align-items: stretch; }
    .rp-app-filter .rp-app-button { padding-inline: 11px; }
    .rp-app-day { width: 61px; min-width: 61px; min-height: 65px; }
    .rp-app-metrics { gap: 7px; }
    .rp-app-metric { padding: 10px; }
    .rp-app-metric strong { font-size: 13px; }
    .rp-app-empty { align-items: flex-start; flex-wrap: wrap; padding: 15px; }
    .rp-app-empty .rp-app-button { width: 100%; margin-left: 0; }
    .rp-app-recipe-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .rp-app-recipe-card__visual { height: 70px; }
    .rp-app-recipe-card__body { min-height: 132px; padding: 11px; }
    .rp-app-recipe-card h3 { font-size: 13px; }
    .rp-app-module-grid { grid-template-columns: 1fr; }
    .rp-app-module-card { padding: 14px; }
    .rp-app-bottom-nav { right: 7px; left: 7px; }
}

@media (max-width: 380px) {
    .rp-app-topbar__user > span:first-child { display: none; }
    .rp-app-content { padding-inline: 11px; }
    .rp-app-recipe-grid { grid-template-columns: 1fr; }
    .rp-app-summary-card div > span { font-size: 10px; }
    .rp-app-bottom-nav__item { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-app *, .rp-app *::before, .rp-app *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* 0.65.0 – Login, Registrierung und E-Mail-Bestätigung ausschließlich in der App */
.rp-app-topbar { display: none !important; position: static !important; }

.rp-app-auth-shell {
    display: grid;
    min-height: min(760px, calc(100vh - 40px));
    place-items: start center;
    padding: clamp(24px, 5vw, 70px) 18px;
    background: var(--rp-app-bg);
}
.rp-app-auth-card {
    width: min(100%, 520px);
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid var(--rp-app-border);
    border-radius: 24px;
    background: var(--rp-app-surface);
    box-shadow: var(--rp-app-shadow);
}
.rp-app-auth-card--register { width: min(100%, 520px); }
.rp-app-auth-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}
.rp-app-auth-card__head .rp-app-brand__mark { margin-top: 2px; }
.rp-app-auth-card__head h1 { margin: 0 0 7px; font-size: clamp(26px, 5vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.rp-app-auth-card__head p { margin: 0; color: var(--rp-app-muted); font-size: 13px; }
.rp-app-auth-card__head .rp-app-eyebrow { margin-bottom: 5px; }
.rp-app-auth-switch { margin: 18px 0 0; text-align: center; color: var(--rp-app-muted); font-size: 12px; }
.rp-app-auth-switch a { color: var(--rp-app-primary) !important; font-weight: 750; }

 .rp-app-auth-card .rp-login,
.rp-app-auth-card .rp-register,
.rp-app-auth-card .rp-resend-verification,
.rp-app-auth-card .rp-email-verification { margin: 0; }
.rp-app-auth-card form { display: grid; gap: 14px; }
 .rp-app-auth-card .rp-field,
.rp-app-auth-card .rp-actions,
.rp-app-auth-card .rp-help { margin: 0; }
 .rp-app-auth-card .rp-field label,
.rp-app-auth-card .rp-label {
    display: block;
    margin-bottom: 6px;
    color: #4f5e56;
    font-size: 12px;
    font-weight: 750;
}
.rp-app-auth-card input[type="text"],
.rp-app-auth-card input[type="email"],
.rp-app-auth-card input[type="password"],
.rp-app-auth-card input[type="number"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--rp-app-border) !important;
    border-radius: 11px !important;
    outline: 0;
    background: #fff !important;
    color: var(--rp-app-text) !important;
    box-shadow: none !important;
}
.rp-app-auth-card input:focus { border-color: var(--rp-app-primary) !important; box-shadow: 0 0 0 3px rgba(35,103,70,.10) !important; }
.rp-app-auth-card .rp-button { width: 100%; min-height: 46px; border: 1px solid var(--rp-app-primary) !important; border-radius: 11px !important; background: var(--rp-app-primary) !important; color: #fff !important; }
.rp-app-auth-card .rp-button:hover { background: var(--rp-app-primary-strong) !important; }
.rp-app-auth-card .rp-help { text-align: center; color: var(--rp-app-muted); font-size: 12px; }
.rp-app-auth-card .rp-help a { color: var(--rp-app-primary) !important; font-weight: 700; }
.rp-app-auth-card .rp-remember label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.rp-app-auth-card input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--rp-app-primary); }
.rp-app-auth-card .rp-login__errors,
.rp-app-auth-card .rp-register__errors { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #efcaca; border-radius: 12px; background: #fff4f4; color: #843838; font-size: 12px; }
.rp-app-auth-card .rp-register__message { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #cae4d4; border-radius: 12px; background: #f0f8f3; color: #275d3f; font-size: 12px; }
.rp-app-auth-card .rp-login__errors p,
.rp-app-auth-card .rp-register__message p { margin: 0; }
.rp-app-auth-card .rp-register__errors ul { margin: 0; padding-left: 18px; }


@media (max-width: 820px) {
    .rp-app-auth-shell { min-height: 70vh; padding: 26px 14px 40px; }
    .rp-app-auth-card { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
}
@media (max-width: 600px) {
    .rp-app-auth-shell { padding: 18px 0 32px; }
    .rp-app-auth-card { padding: 20px 16px; }
    .rp-app-auth-card__head { gap: 11px; margin-bottom: 20px; }
    .rp-app-auth-card__head .rp-app-brand__mark { width: 36px; height: 36px; }
}


/* 0.65.0 – schnelle Fragmentnavigation */
.rp-app-main { position: relative; }
.rp-app-main::before {
    content: "";
    position: fixed;
    z-index: 120;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    pointer-events: none;
    opacity: 0;
    transform: scaleX(.15);
    transform-origin: left center;
    background: var(--rp-app-primary);
    transition: opacity .12s ease, transform .35s ease;
}
.rp-app-main.is-loading::before { opacity: 1; transform: scaleX(.78); }
.rp-app-main.is-loading .rp-app-content { opacity: .72; }
.rp-app-content { transition: opacity .12s ease; }

/* Rezeptbibliothek: Suche, Filter-Overlay und Pagination */
.rp-app-recipe-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}
.rp-app-filter-count {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    margin-left: 5px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--rp-app-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}
.rp-app-filter-overlay[hidden] { display: none !important; }
.rp-app-filter-overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}
.rp-app-filter-overlay__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(14, 25, 19, .46);
    opacity: 0;
    cursor: default;
    backdrop-filter: blur(2px);
    transition: opacity .18s ease;
}
.rp-app-filter-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--rp-app-border);
    border-radius: 20px;
    background: var(--rp-app-surface);
    box-shadow: 0 26px 70px rgba(20, 35, 27, .24);
    opacity: 0;
    transform: translateY(10px) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
}
.rp-app-filter-overlay.is-open .rp-app-filter-overlay__backdrop,
.rp-app-filter-overlay.is-open .rp-app-filter-panel { opacity: 1; }
.rp-app-filter-overlay.is-open .rp-app-filter-panel { transform: translateY(0) scale(1); }
.rp-app-filter-panel > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.rp-app-filter-panel h2 { margin: 0; font-size: 24px; }
.rp-app-icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--rp-app-border);
    border-radius: 11px;
    background: #fff;
    color: var(--rp-app-text);
    cursor: pointer;
}
.rp-app-filter-panel__form { display: grid; gap: 14px; }
.rp-app-filter-panel__form > label { display: grid; gap: 6px; }
.rp-app-filter-panel__form > label > span { color: #4e5d55; font-size: 12px; font-weight: 750; }
.rp-app-filter-panel__form select {
    width: 100%;
    min-height: 45px;
    padding: 8px 10px;
    border: 1px solid var(--rp-app-border);
    border-radius: 11px;
    background: #fff;
    color: var(--rp-app-text);
}
.rp-app-filter-panel__form footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--rp-app-border);
}
.rp-app-button--ghost { border-color: transparent !important; background: var(--rp-app-surface-soft) !important; color: var(--rp-app-primary) !important; }
body.rp-app-overlay-open { overflow: hidden; }

.rp-app-pagination {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px auto 0;
    padding: 6px;
    border: 1px solid var(--rp-app-border);
    border-radius: 15px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 5px 18px rgba(28,55,39,.06);
}
.rp-app-pagination__button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    background: var(--rp-app-primary-soft);
    color: var(--rp-app-primary-strong) !important;
}
.rp-app-pagination__button:hover { background: #dbece3; }
.rp-app-pagination__button.is-disabled { opacity: .35; cursor: default; }
.rp-app-pagination__label {
    min-width: 112px;
    padding: 0 8px;
    text-align: center;
    color: var(--rp-app-muted);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .rp-app-recipe-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
    .rp-app-recipe-toolbar .rp-app-search { grid-column: 1 / -1; }
    .rp-app-recipe-toolbar .rp-app-search-submit { min-width: 96px; }
    .rp-app-filter-overlay { place-items: end stretch; padding: 0; }
    .rp-app-filter-panel {
        width: 100%;
        max-height: min(82vh, 720px);
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(28px);
    }
    .rp-app-pagination { margin-top: 18px; }
}


/* 0.66.0 – Desktop-Appnavigation bleibt im sichtbaren Bereich. */
@media (min-width: 901px) {
    .rp-app .rp-app-sidebar {
        position: sticky;
        top: 0;
        align-self: start;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .rp-app .rp-app-sidebar__user {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin-top: auto;
        background: var(--rp-app-surface);
    }
}

/* 0.66.0 – Desktop-Sidebar wirklich viewportfest: der App-Rahmen darf Sticky nicht abklemmen. */
@media (min-width: 901px) {
    .rp-app .rp-app-shell {
        overflow: visible;
    }
    .rp-app .rp-app-sidebar {
        border-radius: 24px 0 0 24px;
        box-shadow: 0 1px 0 rgba(25,49,38,.02);
    }
    .rp-app .rp-app-main {
        min-width: 0;
        border-radius: 0 24px 24px 0;
    }
    .rp-app .rp-app-sidebar__user {
        padding-bottom: 10px;
        box-shadow: 0 -10px 16px rgba(255,255,255,.92);
    }
}

/* 0.68.0 – Tages-Dashboard, Inline-Rezepte, Beitragsübersicht und echte feste Desktop-Kontoleiste. */
.rp-app-dashboard-today { margin-bottom: 28px; }
.rp-app-dashboard-today > h1 { margin: 4px 0 18px; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.rp-app-dashboard-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.rp-app-dashboard-card { min-width:0; padding:18px; border:1px solid var(--rp-app-border); border-radius:18px; background:var(--rp-app-surface); box-shadow:0 1px 2px rgba(29,54,42,.03); }
.rp-app-dashboard-card > span { display:block; margin-bottom:8px; color:var(--rp-app-muted); font-size:12px; font-weight:700; }
.rp-app-dashboard-card > strong { display:block; color:var(--rp-app-text); font-size:24px; line-height:1.15; }
.rp-app-dashboard-card > small { display:block; margin-top:7px; color:var(--rp-app-muted); font-size:11px; line-height:1.35; }
.rp-app-dashboard-card a { color:var(--rp-app-primary-strong); font-weight:700; }

.rp-app-meal-recipe { border:1px solid var(--rp-app-border); border-radius:14px; background:#fff; overflow:hidden; }
.rp-app-meal-recipe + .rp-app-meal-recipe,
.rp-app-meal-recipe + .rp-app-meal-item,
.rp-app-meal-item + .rp-app-meal-recipe { margin-top:8px; }
.rp-app-meal-recipe > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:56px; padding:11px 13px; cursor:pointer; list-style:none; }
.rp-app-meal-recipe > summary::-webkit-details-marker { display:none; }
.rp-app-meal-item__main { display:flex; flex-direction:column; min-width:0; gap:2px; }
.rp-app-meal-item__main strong { overflow:hidden; text-overflow:ellipsis; color:var(--rp-app-text); font-size:14px; }
.rp-app-meal-item__main small { color:var(--rp-app-muted); font-size:11px; }
.rp-app-meal-recipe__actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.rp-app-meal-recipe__chevron { display:inline-grid; width:26px; height:26px; place-items:center; color:var(--rp-app-muted); font-size:22px; line-height:1; transition:transform .18s ease; }
.rp-app-meal-recipe[open] .rp-app-meal-recipe__chevron { transform:rotate(180deg); }
.rp-app-meal-recipe__body { padding:0 14px 14px; border-top:1px solid var(--rp-app-border); }
.rp-app-inline-recipe { padding-top:14px; }
.rp-app-inline-recipe__meta { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:14px; }
.rp-app-inline-recipe__meta > span { padding:5px 9px; border-radius:999px; background:var(--rp-app-surface-soft); color:#526159; font-size:11px; }
.rp-app-inline-recipe section { padding:14px 0 0; }
.rp-app-inline-recipe section + section { margin-top:14px; border-top:1px solid var(--rp-app-border); }
.rp-app-inline-recipe h4 { margin:0 0 10px; font-size:15px; }
.rp-app-inline-recipe h5 { margin:12px 0 6px; font-size:12px; color:var(--rp-app-muted); }
.rp-app-inline-ingredients { display:grid; gap:7px; }
.rp-app-inline-ingredient { display:grid; grid-template-columns:minmax(74px,auto) minmax(0,1fr); align-items:baseline; gap:10px; padding:7px 0; border-bottom:1px solid #edf0ed; }
.rp-app-inline-ingredient > span { color:var(--rp-app-primary-strong); font-size:12px; font-weight:800; }
.rp-app-inline-ingredient > strong { min-width:0; font-size:13px; }
.rp-app-inline-steps { margin:0; padding-left:24px; }
.rp-app-inline-steps li { padding:0 0 10px 5px; }
.rp-app-inline-steps p { margin:0; }
.rp-app-inline-recipe__open { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:14px; padding-top:12px; border-top:1px solid var(--rp-app-border); color:var(--rp-app-primary-strong)!important; font-size:12px; font-weight:800; }
.rp-app-inline-recipe__open .rp-app-icon { width:17px; height:17px; }

.rp-app-recipe-pref { display:flex; align-items:center; gap:7px; }
.rp-app-recipe-pref__button { display:inline-grid; width:40px; height:40px; place-items:center; padding:0; border:1px solid var(--rp-app-border); border-radius:50%; background:#fff; box-shadow:none; cursor:pointer; font-size:21px; line-height:1; transition:background .15s ease,border-color .15s ease,transform .15s ease; }
.rp-app-recipe-pref--compact .rp-app-recipe-pref__button { width:32px; height:32px; font-size:18px; }
.rp-app-recipe-pref__button:hover { transform:translateY(-1px); }
.rp-app-recipe-pref__button.is-favorite { color:#3d7560; }
.rp-app-recipe-pref__button.is-favorite.is-active { border-color:#1f7a50; background:#1f8a58; color:#fff; box-shadow:0 0 0 3px rgba(31,138,88,.16); }
.rp-app-recipe-pref__button.is-disliked { color:#c43a42; border-color:#efc8cb; }
.rp-app-recipe-pref__button.is-disliked.is-active { border-color:#bd2f38; background:#d43b45; color:#fff; box-shadow:0 0 0 3px rgba(212,59,69,.14); }
.rp-app-recipe-pref__button:disabled { cursor:wait; opacity:.72; transform:none; }
.rp-app-recipe-pref__button.is-favorite.is-active:hover { background:#187448; }
.rp-app-recipe-pref__button.is-disliked.is-active:hover { background:#bd2f38; }

.rp-app-recipe-head-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.rp-app-recipe-planned-amount { margin-top:10px!important; }

/* Standalone-Rezept in derselben visuellen Sprache wie die App. */
.rp-app-recipe-detail { min-width:0; }
.rp-app-recipe-detail .rp-recipe--app { display:grid; gap:14px; min-width:0; }
.rp-app-recipe-detail .rp-recipe--app > div,
.rp-app-recipe-detail .rp-recipe--app > section { min-width:0; padding:18px; border:1px solid var(--rp-app-border); border-radius:18px; background:#fff; box-shadow:0 1px 2px rgba(29,54,42,.025); }
.rp-app-recipe-detail .rp-recipe--app h2,
.rp-app-recipe-detail .rp-recipe--app h3 { margin-top:0; color:var(--rp-app-text); }
.rp-app-recipe-detail .rp-recipe-ingredients__list,
.rp-app-recipe-detail .rp-recipe-steps__list,
.rp-app-inline-recipe .rp-recipe-steps__list { margin-bottom:0; }
.rp-app-recipe-detail img { max-width:100%; height:auto; border-radius:14px; }

.rp-app-recipe-card__usage { display:flex; align-items:baseline; gap:7px; margin:8px 0 2px; color:var(--rp-app-muted); font-size:11px; }
.rp-app-recipe-card__usage strong { color:var(--rp-app-primary-strong); font-size:12px; }

.rp-app-contributions-summary { display:flex; flex-direction:column; gap:4px; margin:0 0 16px; padding:16px 18px; border:1px solid var(--rp-app-border); border-radius:16px; background:var(--rp-app-primary-soft); }
.rp-app-contributions-summary strong { font-size:18px; }
.rp-app-contributions-summary span { color:var(--rp-app-muted); font-size:12px; }
.rp-app-contributions-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.rp-app-contribution-card { padding:18px; border:1px solid var(--rp-app-border); border-radius:18px; background:#fff; }
.rp-app-contribution-card header { display:flex; align-items:center; gap:12px; }
.rp-app-contribution-card header > .rp-app-icon { display:grid; width:42px; height:42px; place-items:center; padding:10px; border-radius:13px; background:var(--rp-app-primary-soft); color:var(--rp-app-primary-strong); }
.rp-app-contribution-card h2 { margin:0; font-size:15px; }
.rp-app-contribution-card header strong { display:block; margin-top:2px; font-size:26px; }
.rp-app-contribution-card dl { display:grid; gap:7px; margin:16px 0 0; }
.rp-app-contribution-card dl > div { display:flex; justify-content:space-between; align-items:center; gap:10px; padding-top:7px; border-top:1px solid #edf0ed; }
.rp-app-contribution-card dt { color:var(--rp-app-muted); font-size:12px; }
.rp-app-contribution-card dd { margin:0; font-size:13px; font-weight:800; }
.rp-app-contribution-card dd.is-published { color:#24704d; }
.rp-app-contribution-card dd.is-pending { color:#9b6712; }
.rp-app-contribution-card dd.is-rejected { color:#bc323b; }

@media (min-width:901px) {
    .rp-app .rp-app-sidebar { padding-bottom:92px; }
    .rp-app .rp-app-sidebar__user {
        position:fixed!important;
        left:var(--rp-sidebar-user-left, 14px)!important;
        bottom:14px!important;
        width:var(--rp-sidebar-user-width, 190px)!important;
        z-index:100;
        margin:0!important;
        padding:11px 8px 10px!important;
        border-top:1px solid var(--rp-app-border);
        border-radius:0 0 15px 15px;
        background:rgba(255,255,255,.97)!important;
        box-shadow:0 -12px 20px rgba(255,255,255,.96)!important;
        backdrop-filter:blur(8px);
    }
}

@media (max-width:900px) {
    .rp-app-dashboard-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .rp-app-contributions-grid { grid-template-columns:1fr; }
    .rp-app-recipe-head-actions { width:100%; justify-content:flex-start; }
}
@media (max-width:560px) {
    .rp-app-dashboard-today > h1 { font-size:28px; }
    .rp-app-dashboard-grid { grid-template-columns:1fr 1fr; gap:9px; }
    .rp-app-dashboard-card { padding:14px; border-radius:15px; }
    .rp-app-dashboard-card > strong { font-size:19px; }
    .rp-app-meal-recipe > summary { align-items:flex-start; }
    .rp-app-meal-recipe__actions { gap:4px; }
    .rp-app-recipe-pref--compact .rp-app-recipe-pref__button { width:30px; height:30px; }
    .rp-app-inline-ingredient { grid-template-columns:72px minmax(0,1fr); }
    .rp-app-recipe-detail .rp-recipe--app > div,
    .rp-app-recipe-detail .rp-recipe--app > section { padding:14px; border-radius:15px; }
}

/* 0.68.1 – Desktop-Sidebar robust: Konto/Logout bleibt sichtbar, ohne fixed-in-transform-Falle. */
@media (min-width:901px) {
    .rp-app-divi-host-section,
    .rp-app-divi-host-row,
    .rp-app-divi-host-column,
    .rp-app-divi-host-module,
    .rp-app-divi-host-inner { overflow: visible !important; }

    .rp-app .rp-app-sidebar {
        position: sticky !important;
        top: 0 !important;
        align-self: start !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        padding-bottom: 14px !important;
    }
    .rp-app .rp-app-nav {
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 10px;
    }
    .rp-app .rp-app-sidebar__user {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        z-index: auto !important;
        flex: 0 0 auto;
        margin: auto 0 0 !important;
        padding: 12px 8px 2px !important;
        border-top: 1px solid var(--rp-app-border);
        border-radius: 0;
        background: var(--rp-app-surface) !important;
        box-shadow: none !important;
        backdrop-filter: none;
    }
}

/* 0.69.0 – Planansicht: kompakte Tages-/Mahlzeitenstruktur und eindeutige Makro-Statusfarben */
.rp-app {
    --rp-macro-carbs: #c43f70;
    --rp-macro-carbs-soft: #f5dbe5;
    --rp-macro-protein: #3e68c5;
    --rp-macro-protein-soft: #dce5f8;
    --rp-macro-fat: #c88719;
    --rp-macro-fat-soft: #f6e8c8;
    --rp-macro-energy: #4d617b;
    --rp-macro-energy-soft: #dfe5ec;
}

.rp-app-plan-day-summary {
    margin: 0 0 18px;
    padding: 15px 16px 16px;
    border: 1px solid var(--rp-app-border);
    border-radius: 16px;
    background: var(--rp-app-surface);
}
.rp-app-plan-day-summary__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.rp-app-plan-day-summary__head > strong {
    font-size: 16px;
    font-weight: 720;
}
.rp-app-plan-day-summary__details {
    appearance: none;
    min-height: 34px;
    padding: 6px 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--rp-app-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}
.rp-app-plan-day-summary__details:hover,
.rp-app-plan-day-summary__details:focus-visible { background: var(--rp-app-primary-soft); }

.rp-app-metrics--day {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px 14px;
}
.rp-app-metrics--day .rp-app-metric {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
}
.rp-app-metrics--day .rp-app-metric--energy { grid-column: 1 / -1; width: 100%; margin: 2px 0 0; }
.rp-app-metric__label { margin-bottom: 6px !important; font-size: 12px !important; }
.rp-app-metrics--day .rp-app-metric strong { margin-top: 6px; font-size: 14px; }
.rp-app-metrics--day .rp-app-metric strong small { font-size: 11px; }
.rp-app-metrics--day .rp-app-progress { height: 7px; margin-top: 0; background: #e7ebe8; }
.rp-app-metric--carbs .rp-app-progress span { background: var(--rp-macro-carbs); }
.rp-app-metric--protein .rp-app-progress span { background: var(--rp-macro-protein); }
.rp-app-metric--fat .rp-app-progress span { background: var(--rp-macro-fat); }
.rp-app-metric--energy .rp-app-progress span { background: var(--rp-macro-energy); }
.rp-app-metric--carbs .rp-app-metric__label { color: var(--rp-macro-carbs); }
.rp-app-metric--protein .rp-app-metric__label { color: var(--rp-macro-protein); }
.rp-app-metric--fat .rp-app-metric__label { color: var(--rp-macro-fat); }
.rp-app-metric--energy .rp-app-metric__label { color: var(--rp-macro-energy); }
/* Über Ziel: Balken bleibt beim Makro erkennbar, bekommt aber einen roten Abschlussindikator. */
.rp-app-metrics--day .rp-app-metric.is-over .rp-app-progress { box-shadow: inset -4px 0 0 var(--rp-app-danger); }

/* Statusfarben haben Vorrang vor der Makro-Grundfarbe. Normalbereich ist immer grün, Überschreitung immer rot. */
.rp-app-metrics--day .rp-app-metric.is-good .rp-app-progress span { background: var(--rp-app-primary) !important; }
.rp-app-metrics--day .rp-app-metric.is-over .rp-app-progress span { background: var(--rp-app-danger) !important; }
.rp-app-metrics--day .rp-app-metric.is-over .rp-app-progress { box-shadow: none; }

.rp-app-section--plan-meals { margin-top: 0; }
.rp-app-meal-list { gap: 16px; }
.rp-app-meal-card {
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(28,55,39,.035);
}
.rp-app-meal-card > header {
    min-height: 58px;
    padding: 12px 15px;
    background: var(--rp-app-surface);
}
.rp-app-meal-card header strong { font-size: 15px; }
.rp-app-meal-card header small { font-size: 11px; }
.rp-app-meal-metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    border-bottom: 1px solid #edf1ee;
    background: var(--rp-app-surface-soft);
}
.rp-app-meal-metric {
    min-width: 0;
    padding: 10px 7px 9px;
    text-align: center;
}
.rp-app-meal-metric + .rp-app-meal-metric { border-left: 1px solid #edf1ee; }
.rp-app-meal-metric strong,
.rp-app-meal-metric span { display: block; }
.rp-app-meal-metric strong { overflow: hidden; font-size: 12px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.rp-app-meal-metric strong small { color: var(--rp-app-muted); font-size: 9px; font-weight: 650; }
.rp-app-meal-metric span { margin-top: 3px; font-size: 9px; font-weight: 700; }
.rp-app-meal-metric--carbs strong,.rp-app-meal-metric--carbs span { color: var(--rp-macro-carbs); }
.rp-app-meal-metric--protein strong,.rp-app-meal-metric--protein span { color: var(--rp-macro-protein); }
.rp-app-meal-metric--fat strong,.rp-app-meal-metric--fat span { color: var(--rp-macro-fat); }
.rp-app-meal-metric--energy strong,.rp-app-meal-metric--energy span { color: var(--rp-macro-energy); }

@media (max-width:820px) {
    .rp-app-view-head--plan { margin-bottom: 14px; }
    .rp-app-view-head--plan h1 { margin-bottom: 4px; font-size: 31px; }
    .rp-app-view-head--plan p { font-size: 12px; }
    .rp-app-plan-title-meta { margin-bottom: 4px; }
    .rp-app-day-strip { margin-bottom: 14px; }
    .rp-app-plan-day-summary {
        margin-right: -14px;
        margin-left: -14px;
        padding: 15px 18px 16px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }
    .rp-app-plan-day-summary__head { margin-bottom: 13px; }
    .rp-app-metrics--day { gap: 12px 10px; }
    .rp-app-metrics--day .rp-app-metric--energy { width: 100%; }
    .rp-app-metric__label { font-size: 11px !important; }
    .rp-app-metrics--day .rp-app-metric strong { font-size: 13px; }
    .rp-app-section--plan-meals { margin-top: 18px; }
    .rp-app-meal-list { gap: 14px; }
    .rp-app-meal-card > header { min-height: 56px; }
    .rp-app-meal-card__items { background: #fff; }
}

@media (max-width:600px) {
    .rp-app-back { margin-bottom: 10px; }
    .rp-app-view-head--plan h1 { font-size: 30px; }
    .rp-app-day-strip { gap: 7px; padding-bottom: 6px; }
    .rp-app-day { width: 70px; min-width: 70px; min-height: 72px; border-radius: 15px; }
    .rp-app-day strong { font-size: 20px; }
    .rp-app-plan-day-summary__head > strong { font-size: 15px; }
    .rp-app-plan-day-summary__details { padding-right: 4px; }
    .rp-app-metrics--day .rp-app-progress { height: 7px; }
    .rp-app-metrics--day .rp-app-metric--energy { width: 100%; }
    .rp-app-meal-card { border-radius: 18px; }
    .rp-app-meal-card > header { padding: 12px 14px; }
    .rp-app-meal-card > header .rp-app-icon { width: 21px; height: 21px; }
    .rp-app-meal-card header strong { font-size: 16px; }
    .rp-app-meal-metric { padding: 10px 4px 9px; }
    .rp-app-meal-metric strong { font-size: 12px; }
    .rp-app-meal-metric strong small { font-size: 8px; }
    .rp-app-meal-metric span { font-size: 9px; }
}

/* 0.69.2 – stabile Desktop-Sidebar und konsistente Makrofarben. */
@media (min-width:901px) {
    .rp-app .rp-app-sidebar { display:flex !important; flex-direction:column !important; }
    .rp-app .rp-app-nav {
        display:grid !important;
        grid-auto-rows:max-content !important;
        align-content:start !important;
        align-items:start !important;
        flex:0 0 auto !important;
        overflow:visible !important;
    }
    .rp-app .rp-app-nav__item {
        height:auto !important;
        min-height:46px !important;
        max-height:52px !important;
        flex:none !important;
        align-self:start !important;
    }
    .rp-app .rp-app-nav__item .rp-app-icon,
    .rp-app .rp-app-nav__item .rp-app-icon svg { width:20px !important; height:20px !important; flex:0 0 20px !important; }
    .rp-app .rp-app-sidebar__user { margin-top:auto !important; }
}

/* Balken entsprechen immer der Schriftfarbe; nur echte Überschreitung wird rot. */
.rp-app-metrics--day .rp-app-metric.is-good .rp-app-progress span,
.rp-app-metrics--day .rp-app-metric.is-under .rp-app-progress span { background:currentColor !important; }
.rp-app-metrics--day .rp-app-metric--carbs { color:var(--rp-macro-carbs); }
.rp-app-metrics--day .rp-app-metric--protein { color:var(--rp-macro-protein); }
.rp-app-metrics--day .rp-app-metric--fat { color:var(--rp-macro-fat); }
.rp-app-metrics--day .rp-app-metric--energy { color:var(--rp-macro-energy); }
.rp-app-metrics--day .rp-app-metric.is-over,
.rp-app-metrics--day .rp-app-metric.is-over .rp-app-metric__label { color:var(--rp-app-danger) !important; }
.rp-app-metrics--day .rp-app-metric.is-over .rp-app-progress span { background:var(--rp-app-danger) !important; }
.rp-app-metrics--day .rp-app-metric__label { color:currentColor !important; }
.rp-app-metrics--day .rp-app-metric--energy { width:100% !important; max-width:none !important; justify-self:stretch !important; }
.rp-app-metrics--day .rp-app-metric--energy .rp-app-progress { width:100% !important; margin-left:0 !important; margin-right:0 !important; }

/* Planverwaltung: kompakte Tagesbilanz wie in der Leseansicht. */
.rp-app .rp-day-nutrition-dashboard--app-compact { padding:18px 0; border:0; background:transparent; box-shadow:none; }
.rp-app .rp-day-nutrition-dashboard--app-compact .rp-app-plan-day-summary__head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.rp-app .rp-day-nutrition-dashboard--app-compact .rp-app-plan-day-summary__head > strong { font-size:20px; }

/* Planliste: im Frontend nur Bearbeiten + Löschen als kompakte Icons. */
.rp-app .rp-plan-list-icon-action { display:inline-grid !important; width:38px !important; height:38px !important; min-width:38px !important; padding:0 !important; place-items:center; border:1px solid var(--rp-app-border) !important; border-radius:10px !important; background:#fff !important; color:var(--rp-app-primary-strong) !important; font-size:0 !important; line-height:1 !important; text-decoration:none !important; }
.rp-app .rp-plan-list-icon-action::before { font-size:19px; line-height:1; }
.rp-app .rp-plan-list-icon-action--edit::before { content:'✎'; }
.rp-app .rp-plan-list-icon-action--trash { color:var(--rp-app-danger) !important; cursor:pointer; }
.rp-app .rp-plan-list-icon-action--trash::before { content:'⌫'; font-size:20px; }
.rp-app .rp-plan-list-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }

/* Planbearbeitung: ein Eintrag = eine schlanke aufklappbare Zeile. */
.rp-app .rp-mealplan-day-table.rp-plan-editor-compact thead { display:none !important; }
.rp-app .rp-mealplan-day-table.rp-plan-editor-compact,
.rp-app .rp-mealplan-day-table.rp-plan-editor-compact tbody,
.rp-app .rp-mealplan-day-table.rp-plan-editor-compact tr,
.rp-app .rp-mealplan-day-table.rp-plan-editor-compact td { display:block !important; width:100% !important; }
.rp-app .rp-mealplan-day-table.rp-plan-editor-compact tr.rp-plan-editor-row { margin:0 0 8px !important; border:1px solid var(--rp-app-border) !important; border-radius:14px !important; background:#fff !important; overflow:hidden; }
.rp-app .rp-mealplan-day-table.rp-plan-editor-compact tr.rp-plan-editor-row > td { padding:0 !important; border:0 !important; }
.rp-app .rp-plan-editor-details > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:54px; padding:11px 14px; cursor:pointer; list-style:none; }
.rp-app .rp-plan-editor-details > summary::-webkit-details-marker { display:none; }
.rp-app .rp-plan-editor-summary-main { min-width:0; display:flex; align-items:center; gap:10px; }
.rp-app .rp-plan-editor-summary-main strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.rp-app .rp-plan-editor-summary-main small { color:var(--rp-app-muted); white-space:nowrap; }
.rp-app .rp-plan-editor-chevron { flex:0 0 auto; font-size:18px; color:var(--rp-app-muted); transition:transform .15s ease; }
.rp-app .rp-plan-editor-details[open] .rp-plan-editor-chevron { transform:rotate(180deg); }
.rp-app .rp-plan-editor-body { display:grid; grid-template-columns:minmax(150px,.6fr) minmax(0,1.4fr) auto; gap:14px; padding:14px; border-top:1px solid var(--rp-app-border); background:var(--rp-app-surface-soft); }
.rp-app .rp-plan-editor-body > .rp-plan-editor-cell { min-width:0; }
.rp-app .rp-plan-editor-body input,
.rp-app .rp-plan-editor-body select { max-width:100%; }
.rp-app .rp-add-meal-slot-form { margin:10px 0 14px !important; }
.rp-app .rp-add-meal-slot-form button { width:100%; min-height:46px; border-radius:12px; }
.rp-app .rp-plan-mobile-meal-heading__metrics { display:none !important; }

@media (max-width:900px) {
    .rp-app .rp-plan-editor-body { grid-template-columns:1fr; gap:10px; }
    .rp-app .rp-plan-editor-summary-main { flex-wrap:wrap; }
}


/* 0.70.0 – Konto direkt unter der Marke; Navigation bleibt kompakt. */
@media (min-width:901px) {
  .rp-app .rp-app-sidebar__user { margin:0 0 12px !important; padding:10px 8px 13px !important; border-top:0 !important; border-bottom:1px solid var(--rp-app-border) !important; position:static !important; box-shadow:none !important; }
  .rp-app .rp-app-nav { margin-top:0 !important; }
}
.rp-app .rp-plan-list-icon-action { display:inline-flex !important; align-items:center !important; justify-content:center !important; }
.rp-app .rp-plan-list-icon-action::before { content:none !important; }
.rp-app .rp-plan-list-icon-action .dashicons { width:20px !important; height:20px !important; font-size:20px !important; line-height:20px !important; }
.rp-app .rp-plan-list-icon-action--trash { border-color:#efc5c5 !important; background:#fff7f7 !important; color:#c62828 !important; }
.rp-app .rp-plan-list-icon-action--trash:hover { background:#c62828 !important; border-color:#c62828 !important; color:#fff !important; }

/* 0.70.2 – einheitliche Änderungsleiste und kompakte Stammdatenlisten. */
body > .rp-app-floating-actions-portal[hidden] { display:none !important; }
body > .rp-app-floating-actions-portal {
    position:fixed !important;
    right:24px !important;
    bottom:22px !important;
    left:auto !important;
    z-index:100500 !important;
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    width:auto !important;
    max-width:calc(100vw - 48px) !important;
    margin:0 !important;
    padding:7px !important;
    border:1px solid #dce5df !important;
    border-radius:16px !important;
    background:rgba(255,255,255,.985) !important;
    box-shadow:0 12px 36px rgba(20,38,30,.18) !important;
    backdrop-filter:blur(12px);
}
body > .rp-app-floating-actions-portal .rp-fixed-save-actions__label { display:none !important; }
body > .rp-app-floating-actions-portal .button,
body > .rp-app-floating-actions-portal button.button,
body > .rp-app-floating-actions-portal a.button {
    appearance:none !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:116px !important;
    min-height:44px !important;
    margin:0 !important;
    padding:10px 17px !important;
    border:1px solid #d5dfd9 !important;
    border-radius:12px !important;
    background:#fff !important;
    color:#3e4d45 !important;
    font-size:13px !important;
    font-weight:700 !important;
    line-height:1 !important;
    text-decoration:none !important;
    box-shadow:none !important;
}
body > .rp-app-floating-actions-portal .button:hover,
body > .rp-app-floating-actions-portal .button:focus-visible { background:#f4f7f5 !important; border-color:#a9b8af !important; color:#22332a !important; }
body > .rp-app-floating-actions-portal .button-primary,
body > .rp-app-floating-actions-portal button[type="submit"].button-primary { background:#267a55 !important; border-color:#267a55 !important; color:#fff !important; }
body > .rp-app-floating-actions-portal .button-primary:hover,
body > .rp-app-floating-actions-portal .button-primary:focus-visible { background:#1f6546 !important; border-color:#1f6546 !important; color:#fff !important; }
body > .rp-app-floating-actions-portal .rp-cancel-edit { order:1; }
body > .rp-app-floating-actions-portal .button-primary { order:3; }
@media (max-width:900px) {
    body > .rp-app-floating-actions-portal {
        left:12px !important;
        right:12px !important;
        bottom:78px !important;
        max-width:none !important;
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) !important;
        gap:7px !important;
        padding:7px !important;
    }
    body > .rp-app-floating-actions-portal .button,
    body > .rp-app-floating-actions-portal button.button,
    body > .rp-app-floating-actions-portal a.button { width:100% !important; min-width:0 !important; min-height:46px !important; }
    body > .rp-app-floating-actions-portal .button:not(.button-primary):not(.rp-cancel-edit) { grid-column:1 / -1; }
}

/* 0.70.4 – direkte Planbearbeitung aus Ansicht/Übersicht. */
.rp-app-plan-edit-button, .rp-app-dashboard-edit-button { color:var(--rp-app-primary) !important; border-color:var(--rp-app-border); background:var(--rp-app-surface); }
.rp-app-plan-edit-button:hover, .rp-app-plan-edit-button:focus-visible, .rp-app-dashboard-edit-button:hover, .rp-app-dashboard-edit-button:focus-visible { color:#fff !important; border-color:var(--rp-app-primary); background:var(--rp-app-primary); }
.rp-app-plan-edit-button .rp-app-icon, .rp-app-dashboard-edit-button .rp-app-icon { width:20px; height:20px; }
@media (max-width:700px){ .rp-app-view-head--plan { align-items:flex-start; } .rp-app-plan-edit-button { width:42px; height:42px; } .rp-app-today-card { flex-direction:row; align-items:center; } .rp-app-today-card .rp-app-dashboard-edit-button { width:44px; height:44px; flex:0 0 44px; } }

/* 0.74.9 – kompaktere Planlisten: ganze Kachel klickbar, Bearbeiten oben rechts. */
.rp-app-plan-card {
    position: relative;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.rp-app-plan-card:hover,
.rp-app-plan-card:focus-within {
    border-color: #cbd9d0;
    box-shadow: 0 8px 24px rgba(28,55,39,.08);
    transform: translateY(-1px);
}
.rp-app-plan-card__main {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex: 1 1 auto;
    flex-direction: column;
    color: inherit !important;
    text-decoration: none !important;
}
.rp-app-plan-card__main:focus-visible {
    outline: 3px solid rgba(35,103,70,.18);
    outline-offset: 4px;
    border-radius: 14px;
}
.rp-app-plan-card__main:hover h3,
.rp-app-plan-card__main:focus-visible h3 {
    color: var(--rp-app-primary);
}
.rp-app-plan-card__top { padding-right: 48px; }
.rp-app-plan-card__meta { margin-bottom: 0; }
.rp-app-plan-card__open-indicator {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 12px;
    color: var(--rp-app-primary);
}
.rp-app-plan-card__open-indicator .rp-app-icon { width: 19px; height: 19px; }
.rp-app-plan-card__edit {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--rp-app-primary) !important;
    background: rgba(255,255,255,.96);
    box-shadow: 0 2px 10px rgba(28,55,39,.08);
}
.rp-app-plan-card__edit:hover,
.rp-app-plan-card__edit:focus-visible {
    background: var(--rp-app-primary) !important;
    color: #fff !important;
}
.rp-app-plan-card__edit .rp-app-icon { width: 17px; height: 17px; }
@media (max-width:700px) {
    .rp-app-plan-card__edit {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }
    .rp-app-plan-card__top { padding-right: 52px; }
}

/* 0.72.0 – native, schlanke Zutatenliste */
.rp-app-ingredient-list{display:grid;gap:8px;margin-top:10px}
.rp-app-ingredient-row{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(210px,1fr) auto;align-items:center;gap:18px;padding:13px 14px;background:#fff;border:1px solid var(--rp-app-border,#dfe4e1);border-radius:12px}
.rp-app-ingredient-row__main,.rp-app-ingredient-row__nutrition{display:flex;flex-direction:column;min-width:0;gap:3px}
.rp-app-ingredient-row__main strong{font-size:15px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-app-ingredient-row__main span,.rp-app-ingredient-row__nutrition span{font-size:12px;color:var(--rp-app-muted,#66736c);line-height:1.35}
.rp-app-ingredient-row__nutrition strong{font-size:14px}
.rp-app-ingredient-row__actions{display:flex;gap:7px;align-items:center;justify-content:flex-end}
@media (max-width:760px){
  .rp-app-ingredient-row{grid-template-columns:1fr auto;gap:9px 12px;padding:12px}
  .rp-app-ingredient-row__nutrition{grid-column:1 / -1;grid-row:2}
  .rp-app-ingredient-row__actions{grid-column:2;grid-row:1;align-self:start}
}

/* 0.74.0 – user-first catalogue filters, responsive cards and day navigation. */
.rp-app,
.rp-app-shell,
.rp-app-main,
.rp-app-content { min-width:0; max-width:100%; }
.rp-app-content { overflow-x:clip; }
.rp-app button,
.rp-app a,
.rp-app input,
.rp-app select,
.rp-app textarea { -webkit-tap-highlight-color:transparent; }
.rp-app :where(a,button,input,select,textarea,summary):focus-visible {
    outline:3px solid rgba(35,103,70,.24);
    outline-offset:2px;
}
.rp-app-sr-only {
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    white-space:nowrap !important;
    border:0 !important;
}
.rp-app-button { min-height:44px; }
.rp-app-badge--personal { background:#fff4dc; color:#795514; }
.rp-app-badge--success { background:#e7f5ec; color:#1e6543; }
.rp-app-badge--warning { background:#fff0e8; color:#8d4c21; }

.rp-app-active-filters {
    display:flex;
    min-width:0;
    flex-wrap:wrap;
    align-items:center;
    gap:7px;
    margin:0 0 14px;
}
.rp-app-active-filter,
.rp-app-active-filters__clear {
    display:inline-flex;
    min-height:34px;
    align-items:center;
    gap:7px;
    padding:6px 10px;
    border:1px solid #cfe0d5;
    border-radius:999px;
    background:var(--rp-app-primary-soft);
    color:var(--rp-app-primary-strong) !important;
    font-size:11px;
    font-weight:750;
}
.rp-app-active-filters__clear { border-color:transparent; background:transparent; color:var(--rp-app-muted) !important; }
.rp-app-filter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.rp-app-filter-grid > label { display:grid; min-width:0; gap:6px; }
.rp-app-filter-grid > label > span { color:#4e5d55; font-size:12px; font-weight:750; }
.rp-app-filter-grid select {
    width:100%;
    min-width:0;
    min-height:46px;
    padding:9px 36px 9px 11px;
    border:1px solid var(--rp-app-border);
    border-radius:11px;
    background-color:#fff;
    color:var(--rp-app-text);
}
.rp-app-filter-hint { margin:-2px 0 0; color:var(--rp-app-muted); font-size:11px; line-height:1.45; }

.rp-app-day-navigation {
    display:grid;
    grid-template-columns:44px minmax(0,1fr) 44px;
    align-items:center;
    gap:8px;
    width:100%;
    min-width:0;
    margin:0 0 20px;
}
.rp-app-day-navigation .rp-app-day-strip {
    min-width:0;
    gap:8px;
    margin:0;
    padding:3px 2px 7px;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
}
.rp-app-day-navigation .rp-app-day-strip::-webkit-scrollbar { display:none; }
.rp-app-day-navigation .rp-app-day { scroll-snap-align:center; transition:border-color .15s ease,background .15s ease,color .15s ease,box-shadow .15s ease; }
.rp-app-day-arrow {
    display:inline-grid;
    width:44px;
    height:44px;
    place-items:center;
    border:1px solid var(--rp-app-border);
    border-radius:12px;
    background:#fff;
    color:var(--rp-app-primary) !important;
    cursor:pointer;
}
.rp-app-day-arrow .rp-app-icon { width:19px; height:19px; }
.rp-app-day-arrow:hover,
.rp-app-day-arrow:focus-visible { border-color:#bfd2c5; background:var(--rp-app-primary-soft); }
.rp-app-day-arrow.is-disabled { opacity:.32; cursor:default; pointer-events:none; }

.rp-app-recipe-card { display:flex; flex-direction:column; transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.rp-app-recipe-card:hover { transform:translateY(-2px); border-color:#cbd9d0; box-shadow:0 9px 24px rgba(28,55,39,.07); }
.rp-app-recipe-card__body { flex:1; min-height:190px; }
.rp-app-recipe-card__badges,
.rp-app-catalogue-row__badges { display:flex; min-width:0; flex-wrap:wrap; gap:5px; }
.rp-app-recipe-card__badges .rp-app-badge { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rp-app-recipe-card__facts { display:flex; flex-wrap:wrap; gap:5px 9px; margin:2px 0 10px; color:var(--rp-app-muted); font-size:11px; }
.rp-app-recipe-card__facts > span { display:inline-flex; align-items:center; gap:4px; }
.rp-app-recipe-card__facts .rp-app-icon { width:14px; height:14px; }
.rp-app-recipe-card p.rp-app-recipe-card__tools { display:flex; align-items:flex-start; gap:6px; margin:0 0 12px; font-size:11px; line-height:1.4; }
.rp-app-recipe-card__tools .rp-app-icon { width:15px; height:15px; margin-top:1px; }

.rp-app-catalogue-list { display:grid; gap:9px; margin-top:10px; }
.rp-app-catalogue-row {
    display:grid;
    grid-template-columns:minmax(220px,1.25fr) minmax(300px,1.5fr) auto;
    align-items:center;
    gap:16px;
    padding:14px;
    border:1px solid var(--rp-app-border);
    border-radius:14px;
    background:#fff;
}
.rp-app-catalogue-row__main { display:flex; min-width:0; flex-direction:column; gap:5px; }
.rp-app-catalogue-row__main > strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; }
.rp-app-catalogue-row__main > span { color:var(--rp-app-muted); font-size:12px; }
.rp-app-catalogue-row__details { display:grid; min-width:0; grid-template-columns:repeat(2,minmax(90px,1fr)); gap:8px 14px; }
.rp-app-catalogue-row__details > span { display:flex; min-width:0; flex-direction:column; gap:1px; }
.rp-app-catalogue-row__details small { color:var(--rp-app-muted); font-size:10px; }
.rp-app-catalogue-row__details strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.rp-app-catalogue-row__actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; }
.rp-app .rp-plan-list-icon-action .rp-app-icon { width:19px; height:19px; }
.rp-app-ingredient-row__main > .rp-app-catalogue-row__badges { flex-direction:row; gap:5px; }
.rp-app-ingredient-row__main > .rp-app-catalogue-row__badges .rp-app-badge { color:inherit; font-size:10px; line-height:1.2; }

@media (max-width:900px) {
    .rp-app-catalogue-row { grid-template-columns:minmax(0,1fr) auto; gap:11px; }
    .rp-app-catalogue-row__details { grid-column:1 / -1; grid-row:2; grid-template-columns:repeat(4,minmax(0,1fr)); }
    .rp-app-catalogue-row__actions { grid-column:2; grid-row:1; align-self:start; }
}
@media (max-width:600px) {
    .rp-app-view-head:not(.rp-app-view-head--plan):not(.rp-app-view-head--nutrition) { align-items:stretch; flex-direction:column; gap:13px; }
    .rp-app-view-head:not(.rp-app-view-head--plan):not(.rp-app-view-head--nutrition) > .rp-app-button { width:100%; }
    .rp-app-filter-grid { grid-template-columns:1fr; }
    .rp-app-filter-panel__form footer { position:sticky; bottom:calc(-18px - env(safe-area-inset-bottom)); margin-right:-16px; margin-left:-16px; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:#fff; }
    .rp-app-day-navigation { grid-template-columns:40px minmax(0,1fr) 40px; gap:5px; margin-bottom:15px; }
    .rp-app-day-arrow { width:40px; height:44px; border-radius:11px; }
    .rp-app-day-navigation .rp-app-day { width:62px; min-width:62px; min-height:66px; }
    .rp-app-recipe-grid { grid-template-columns:1fr; gap:10px; }
    .rp-app-recipe-card { display:grid; grid-template-columns:102px minmax(0,1fr); align-items:start; }
    .rp-app-recipe-card__visual { width:90px; height:90px; min-height:90px; margin:12px 0 12px 12px; border-radius:12px; overflow:hidden; }
    .rp-app-recipe-card__body { min-height:114px; padding:12px 13px; }
    .rp-app-recipe-card h3 { font-size:15px; }
    .rp-app-catalogue-row { padding:12px; }
    .rp-app-catalogue-row__details { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .rp-app-active-filters { flex-wrap:nowrap; overflow-x:auto; padding-bottom:3px; scrollbar-width:none; }
    .rp-app-active-filters::-webkit-scrollbar { display:none; }
    .rp-app-active-filter,.rp-app-active-filters__clear { flex:0 0 auto; }
}
@media (max-width:430px) {
    .rp-app-recipe-toolbar { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    .rp-app-recipe-toolbar .rp-app-button { width:100%; min-width:0; }
    .rp-app-recipe-toolbar .rp-app-search-submit { min-width:0; }
    .rp-app-catalogue-row__main > strong,
    .rp-app-ingredient-row__main > strong { white-space:normal; }
}


/* 0.74.10 – Plan-Kacheln nochmals verdichtet, ohne Touch-Ziele zu verkleinern. */
.rp-app-plan-card {
    padding: 14px;
}
.rp-app-plan-card h3 {
    margin: 9px 0 2px;
    font-size: 16px;
    line-height: 1.22;
}
.rp-app-plan-card__recipient {
    min-height: 0;
    margin: 0 0 7px;
    font-size: 11px;
    line-height: 1.35;
}
.rp-app-plan-card__meta {
    gap: 3px 8px;
    padding-right: 28px;
    font-size: 10.5px;
    line-height: 1.35;
}
.rp-app-plan-card__meta span + span::before {
    margin-right: 8px;
}
.rp-app-plan-card .rp-app-badge {
    min-height: 22px;
    padding: 2px 7px;
    font-size: 9.5px;
}
.rp-app-plan-card__top {
    gap: 5px;
    padding-right: 44px;
}
.rp-app-plan-card__open-indicator {
    position: absolute;
    right: 14px;
    bottom: 14px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}
.rp-app-plan-card__open-indicator .rp-app-icon {
    width: 17px;
    height: 17px;
}
.rp-app-plan-card__edit {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
}
@media (max-width:600px) {
    .rp-app-plan-grid { gap: 9px; }
    .rp-app-plan-card { padding: 12px 13px; }
    .rp-app-plan-card h3 { margin-top: 8px; font-size: 15.5px; }
    .rp-app-plan-card__recipient { margin-bottom: 6px; }
    .rp-app-plan-card__top { padding-right: 48px; }
    .rp-app-plan-card__edit {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    .rp-app-plan-card__open-indicator {
        right: 13px;
        bottom: 12px;
    }
}


/* 0.74.12 – geführter Assistent zum Erstellen neuer Pläne. */
.rp-app-plan-wizard {
    width: min(760px, 100%);
    margin: 0 auto 34px;
}
.rp-app-wizard-progress {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--rp-app-border);
    border-radius: 15px;
    background: var(--rp-app-surface);
}
.rp-app-wizard-progress__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.rp-app-wizard-progress__top strong { font-size: 13px; }
.rp-app-wizard-progress__top span { color: var(--rp-app-muted); font-size: 12px; }
.rp-app-wizard-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 0;
}
.rp-app-wizard-steps > span {
    position: relative;
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 5px;
    color: #929d97;
    font-size: 10px;
    font-weight: 700;
}
.rp-app-wizard-steps > span::before,
.rp-app-wizard-steps > span::after {
    position: absolute;
    top: 7px;
    height: 2px;
    background: #e1e7e3;
    content: '';
}
.rp-app-wizard-steps > span::before { left: 0; right: 50%; }
.rp-app-wizard-steps > span::after { left: 50%; right: 0; }
.rp-app-wizard-steps > span:first-child::before,
.rp-app-wizard-steps > span:last-child::after { display: none; }
.rp-app-wizard-steps > span i {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    border: 3px solid var(--rp-app-surface);
    border-radius: 999px;
    background: #dce4df;
    box-shadow: 0 0 0 1px #dce4df;
}
.rp-app-wizard-steps > span.is-active,
.rp-app-wizard-steps > span.is-complete { color: var(--rp-app-primary); }
.rp-app-wizard-steps > span.is-active i,
.rp-app-wizard-steps > span.is-complete i { background: var(--rp-app-primary); box-shadow: 0 0 0 1px var(--rp-app-primary); }
.rp-app-wizard-steps > span.is-complete::before,
.rp-app-wizard-steps > span.is-complete::after,
.rp-app-wizard-steps > span.is-active::before { background: var(--rp-app-primary); }
.rp-app-wizard-panel {
    padding: 22px;
    border: 1px solid var(--rp-app-border);
    border-radius: 18px;
    background: var(--rp-app-surface);
    box-shadow: 0 4px 18px rgba(28,55,39,.035);
}
.rp-app-wizard-panel[hidden] { display: none !important; }
.rp-app-wizard-panel__head { margin-bottom: 18px; }
.rp-app-wizard-panel__head h2 { margin: 3px 0 6px; font-size: clamp(20px,3vw,26px); line-height: 1.2; }
.rp-app-wizard-panel__head p { max-width: 620px; margin: 0; color: var(--rp-app-muted); font-size: 13px; line-height: 1.5; }
.rp-app-wizard-kicker { color: var(--rp-app-primary); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.rp-app-wizard-choice-grid,
.rp-app-wizard-target-list { display: grid; gap: 10px; }
.rp-app-wizard-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.rp-app-wizard-choice {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 82px;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--rp-app-border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rp-app-wizard-choice > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.rp-app-wizard-choice:hover { border-color: #b8cbbf; background: #fbfdfc; }
.rp-app-wizard-choice:has(input:checked) {
    background: transparent;
    box-shadow: 0 0 0 1px var(--rp-app-primary);
}
.rp-app-wizard-choice:has(input:focus-visible) { outline: 3px solid rgba(35,103,70,.18); outline-offset: 2px; }
.rp-app-wizard-choice__icon,
.rp-app-wizard-choice__avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: #eff4f1;
    color: var(--rp-app-primary-strong);
}
.rp-app-wizard-choice__avatar { font-size: 16px; font-weight: 850; }
.rp-app-wizard-choice__icon .rp-app-icon { width: 22px; height: 22px; }
.rp-app-wizard-choice__copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; gap: 3px; }
.rp-app-wizard-choice__copy strong { font-size: 14px; line-height: 1.25; }
.rp-app-wizard-choice__copy small { overflow: hidden; color: var(--rp-app-muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; }
.rp-app-wizard-choice__check {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border: 1px solid #d5ded8;
    border-radius: 999px;
    color: transparent;
}
.rp-app-wizard-choice__check .rp-app-icon { width: 15px; height: 15px; }
.rp-app-wizard-choice:has(input:checked) .rp-app-wizard-choice__check { border-color: var(--rp-app-primary); background: var(--rp-app-primary); color: #fff; }
.rp-app-wizard-empty {
    padding: 18px;
    border: 1px dashed #cdd8d1;
    border-radius: 14px;
    background: #fafcfb;
    text-align: center;
}
.rp-app-wizard-empty p { margin: 5px auto 14px; color: var(--rp-app-muted); font-size: 12px; }
.rp-app-wizard-event { display: grid; gap: 13px; }
.rp-app-wizard-event[hidden],
.rp-app-wizard-target-list[hidden] { display: none !important; }
.rp-app-wizard-event > label,
.rp-app-wizard-event__counts label,
.rp-app-wizard-date-field { display: grid; gap: 6px; }
.rp-app-wizard-event label > span,
.rp-app-wizard-date-field > span { font-size: 12px; font-weight: 750; }
.rp-app-wizard-event input,
.rp-app-wizard-date-field input {
    width: 100%;
    min-height: 46px;
    padding: 9px 11px;
    border: 1px solid var(--rp-app-border);
    border-radius: 11px;
    background: #fff;
    color: var(--rp-app-text);
    font: inherit;
    font-size: 16px;
}
.rp-app-wizard-event__counts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.rp-app-wizard-hint { margin: 0; color: var(--rp-app-muted); font-size: 11px; }
.rp-app-wizard-date-card { display: grid; gap: 15px; }
.rp-app-wizard-duration { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.rp-app-wizard-duration button {
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--rp-app-border);
    border-radius: 11px;
    background: #fff;
    color: var(--rp-app-text);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
}
.rp-app-wizard-duration button.is-active { border-color: var(--rp-app-primary); background: var(--rp-app-primary-soft); color: var(--rp-app-primary-strong); }
.rp-app-wizard-date-field[hidden] { display: none !important; }
.rp-app-wizard-period-preview {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border-radius: 13px;
    background: var(--rp-app-primary-soft);
    color: var(--rp-app-primary-strong);
}
.rp-app-wizard-period-preview > .rp-app-icon { width: 24px; height: 24px; flex: 0 0 24px; }
.rp-app-wizard-period-preview div { display: grid; gap: 2px; }
.rp-app-wizard-period-preview small { font-size: 10px; font-weight: 750; opacity: .8; }
.rp-app-wizard-period-preview strong { font-size: 13px; }
.rp-app-wizard-summary { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--rp-app-border); border-radius: 14px; }
.rp-app-wizard-summary > div { display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: #fff; }
.rp-app-wizard-summary > div + div { border-top: 1px solid #edf1ee; }
.rp-app-wizard-summary__icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: #eff4f1; color: var(--rp-app-primary); }
.rp-app-wizard-summary__icon .rp-app-icon { width: 19px; height: 19px; }
.rp-app-wizard-summary > div > div { display: grid; min-width: 0; gap: 1px; }
.rp-app-wizard-summary small { color: var(--rp-app-muted); font-size: 10px; }
.rp-app-wizard-summary strong { font-size: 13px; }
.rp-app-wizard-summary [data-rp-summary-extra] { color: var(--rp-app-muted); font-size: 11px; }
.rp-app-wizard-final-note { margin: 13px 2px 0; color: var(--rp-app-muted); font-size: 11px; }
.rp-app-wizard-message {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #e2b8b8;
    border-radius: 10px;
    background: #fff5f5;
    color: #8a2929;
    font-size: 12px;
}
.rp-app-wizard-message[hidden] { display: none !important; }
.rp-app-wizard-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 14px;
}
.rp-app-wizard-actions [hidden] { display: none !important; }
.rp-app-wizard-actions .rp-app-button .rp-app-icon { width: 16px; height: 16px; }

@media (max-width:700px) {
    .rp-app-view-head--plan-create { margin-bottom: 13px; }
    .rp-app-plan-wizard { margin-bottom: 18px; }
    .rp-app-wizard-progress { padding: 11px 12px; border-radius: 13px; }
    .rp-app-wizard-progress__top { margin-bottom: 10px; }
    .rp-app-wizard-steps > span small { display: none; }
    .rp-app-wizard-panel { padding: 16px 14px; border-radius: 15px; }
    .rp-app-wizard-panel__head { margin-bottom: 14px; }
    .rp-app-wizard-panel__head h2 { font-size: 20px; }
    .rp-app-wizard-choice-grid { grid-template-columns: 1fr; }
    .rp-app-wizard-choice { min-height: 72px; padding: 11px 12px; border-radius: 12px; }
    .rp-app-wizard-choice__icon,
    .rp-app-wizard-choice__avatar { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
    .rp-app-wizard-event__counts { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rp-app-wizard-duration { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rp-app-wizard-duration button:last-child { grid-column: 1 / -1; }
    .rp-app-wizard-actions {
        position: sticky;
        z-index: 65;
        bottom: 78px;
        display: grid;
        grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
        margin: 12px -4px 0;
        padding: 10px 4px calc(4px + env(safe-area-inset-bottom));
        background: rgba(248,250,249,.96);
        backdrop-filter: blur(8px);
    }
    .rp-app-wizard-actions .rp-app-button { width: 100%; min-width: 0; min-height: 46px; }
    .rp-app-wizard-actions [data-rp-wizard-next],
    .rp-app-wizard-actions [data-rp-wizard-submit] { grid-column: 2; }
    .rp-app-wizard-actions [data-rp-wizard-cancel],
    .rp-app-wizard-actions [data-rp-wizard-back] { grid-column: 1; grid-row: 1; }
}

/* 0.74.13 – Bearbeitungsmodus des Plan-Wizards. */
.rp-app-wizard-title-field {
    display:grid;
    gap:6px;
    margin-top:14px;
}
.rp-app-wizard-title-field > span { font-size:12px; font-weight:750; }
.rp-app-wizard-title-field input {
    width:100%;
    min-height:46px;
    padding:9px 11px;
    border:1px solid var(--rp-app-border);
    border-radius:11px;
    background:#fff;
    color:var(--rp-app-text);
    font:inherit;
    font-size:16px;
}
.rp-app-wizard-title-field small { color:var(--rp-app-muted); font-size:10px; line-height:1.35; }


/* 0.74.20 – Plan erstellen / Planangaben im selben Drawer wie der Auto-Planer. */
.rp-plan-wizard-drawer {
    --rp-app-surface:#fff;
    --rp-app-surface-soft:#f8faf8;
    --rp-app-text:#1d2923;
    --rp-app-muted:#68756e;
    --rp-app-border:#dfe7e1;
    --rp-app-primary:#236746;
    --rp-app-primary-strong:#174c33;
    --rp-app-primary-soft:#e8f3ed;
    position: fixed;
    inset: 0;
    z-index: 100400;
    pointer-events: none;
}
.rp-plan-wizard-drawer.is-open { pointer-events: auto; }
.rp-plan-wizard-drawer__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(0,0,0,.38);
    opacity: 0;
    cursor: default;
    transition: opacity .2s ease;
}
.rp-plan-wizard-drawer.is-open .rp-plan-wizard-drawer__backdrop { opacity: 1; }
.rp-plan-wizard-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(720px,96vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    box-shadow: -14px 0 42px rgba(0,0,0,.24);
    transform: translateX(104%);
    transition: transform .24s ease;
}
.rp-plan-wizard-drawer.is-open .rp-plan-wizard-drawer__panel { transform: translateX(0); }
.rp-plan-wizard-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--rp-app-border);
}
.rp-plan-wizard-drawer__header h2 { margin: 0; font-size: clamp(22px,3vw,30px); line-height: 1.15; }
.rp-plan-wizard-drawer__close {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rp-app-text);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.rp-plan-wizard-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 18px 20px 24px;
}
.rp-plan-wizard-drawer__body > .rp-app-plan-wizard { margin: 0; }
.rp-plan-wizard-drawer__body .rp-app-wizard-panel { box-shadow: none; }
.rp-plan-wizard-drawer__loading {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--rp-app-muted);
}
.rp-plan-wizard-drawer__loading > span {
    width: 22px;
    height: 22px;
    border: 3px solid #d7e2db;
    border-top-color: var(--rp-app-primary);
    border-radius: 50%;
    animation: rp-plan-wizard-spin .8s linear infinite;
}
@keyframes rp-plan-wizard-spin { to { transform: rotate(360deg); } }
body.rp-plan-wizard-open { overflow: hidden !important; }
/* Hohe Spezifität ist absichtlich: workflow.css enthält die gemeinsame body-Drawer-Basis später in der Kaskade. */
.rp-plan-wizard-drawer.rp-side-drawer { z-index:100400; }
.rp-plan-wizard-drawer .rp-plan-wizard-drawer__panel { width:min(720px,96vw); height:100vh; height:100dvh; }
.rp-plan-wizard-drawer .rp-plan-wizard-drawer__header { padding:18px 20px; }
.rp-plan-wizard-drawer .rp-plan-wizard-drawer__body { padding:18px 20px 24px; }
@media (max-width:700px) {
    .rp-plan-wizard-drawer .rp-plan-wizard-drawer__panel { width:100vw; max-width:100vw; }
    .rp-plan-wizard-drawer .rp-plan-wizard-drawer__header { padding:14px 16px; }
    .rp-plan-wizard-drawer .rp-plan-wizard-drawer__body { padding:14px; }
    .rp-plan-wizard-drawer .rp-app-plan-wizard { padding-bottom:max(8px, env(safe-area-inset-bottom)); }
    .rp-plan-wizard-drawer .rp-app-wizard-actions {
        bottom:0;
        margin:12px -2px 0;
        padding:10px 2px calc(6px + env(safe-area-inset-bottom));
        background:rgba(255,255,255,.97);
    }
    .rp-plan-wizard-drawer .rp-app-wizard-title-field small,
    .rp-plan-wizard-drawer .rp-app-wizard-hint {
        position:relative;
        z-index:1;
    }
}

/* 0.74.24 – geführter Druck-/PDF-Wizard. */
.rp-print-wizard .rp-app-wizard-steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
.rp-print-output-choice .rp-app-wizard-choice__copy small { overflow:visible; text-overflow:clip; }
.rp-print-recommended {
    align-self:flex-start;
    margin-top:2px;
    padding:3px 7px;
    border-radius:999px;
    background:#dcefe3;
    color:var(--rp-app-primary-strong);
    font-size:9px;
    font-weight:850;
    letter-spacing:.02em;
}
.rp-print-extra-heading { margin:18px 2px 8px; color:var(--rp-app-muted); font-size:11px; }
.rp-print-extra-list { gap:8px; }
.rp-print-custom-range {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:12px;
    padding:13px;
    border:1px solid var(--rp-app-border);
    border-radius:13px;
    background:var(--rp-app-surface-soft);
}
.rp-print-custom-range[hidden] { display:none !important; }
.rp-print-custom-range label { display:grid; gap:5px; min-width:0; }
.rp-print-custom-range label > span { color:var(--rp-app-muted); font-size:11px; font-weight:750; }
.rp-print-custom-range input {
    width:100%;
    min-width:0;
    min-height:44px;
    padding:8px 10px;
    border:1px solid var(--rp-app-border);
    border-radius:10px;
    background:#fff;
    color:var(--rp-app-text);
    font:inherit;
    font-size:16px;
}
.rp-print-summary { margin-bottom:14px; }
.rp-print-option-group {
    margin-top:10px;
    padding:13px;
    border:1px solid var(--rp-app-border);
    border-radius:13px;
    background:#fff;
}
.rp-print-option-group[hidden] { display:none !important; }
.rp-print-toggle { display:flex; align-items:flex-start; gap:10px; cursor:pointer; }
.rp-print-toggle input { width:20px; height:20px; flex:0 0 20px; margin:1px 0 0; accent-color:var(--rp-app-primary); }
.rp-print-toggle > span { display:grid; gap:2px; min-width:0; }
.rp-print-toggle strong,
.rp-print-option-title strong { color:var(--rp-app-text); font-size:13px; }
.rp-print-toggle small,
.rp-print-option-title small { color:var(--rp-app-muted); font-size:10.5px; line-height:1.4; }
.rp-print-more-options { margin:10px -2px -2px; border-top:1px solid #edf1ee; }
.rp-print-more-options > summary {
    min-height:40px;
    padding:10px 2px 0;
    color:var(--rp-app-primary-strong);
    font-size:11px;
    font-weight:750;
    cursor:pointer;
}
.rp-print-toggle--nested { padding:8px 2px 2px; }
.rp-print-option-title { display:grid; gap:2px; margin-bottom:9px; }
.rp-print-segmented { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.rp-print-segmented label { position:relative; cursor:pointer; }
.rp-print-segmented input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.rp-print-segmented span {
    display:grid;
    min-height:42px;
    place-items:center;
    padding:7px 8px;
    border:1px solid var(--rp-app-border);
    border-radius:10px;
    background:#fff;
    color:var(--rp-app-text);
    font-size:10.5px;
    font-weight:750;
    text-align:center;
}
.rp-print-segmented input:checked + span { border-color:var(--rp-app-primary); background:var(--rp-app-primary-soft); color:var(--rp-app-primary-strong); box-shadow:0 0 0 1px var(--rp-app-primary); }
.rp-print-segmented input:focus-visible + span { outline:3px solid rgba(35,103,70,.18); outline-offset:2px; }
.rp-print-no-options { display:grid; gap:3px; margin-top:12px; padding:13px; border-radius:13px; background:var(--rp-app-primary-soft); color:var(--rp-app-primary-strong); }
.rp-print-no-options[hidden] { display:none !important; }
.rp-print-no-options strong { font-size:12px; }
.rp-print-no-options span { font-size:10.5px; line-height:1.4; }
.rp-print-plan-name { margin:12px 2px 0; color:var(--rp-app-muted); font-size:10.5px; }

.rp-print-wizard-drawer {
    --rp-app-surface:#fff;
    --rp-app-surface-soft:#f8faf8;
    --rp-app-text:#1d2923;
    --rp-app-muted:#68756e;
    --rp-app-border:#dfe7e1;
    --rp-app-primary:#236746;
    --rp-app-primary-strong:#174c33;
    --rp-app-primary-soft:#e8f3ed;
    position:fixed;
    inset:0;
    z-index:100410;
    pointer-events:none;
}
.rp-print-wizard-drawer.is-open { pointer-events:auto; }
.rp-print-wizard-drawer__backdrop { position:absolute; inset:0; width:100%; border:0; background:rgba(0,0,0,.38); opacity:0; cursor:default; transition:opacity .2s ease; }
.rp-print-wizard-drawer.is-open .rp-print-wizard-drawer__backdrop { opacity:1; }
.rp-print-wizard-drawer__panel {
    position:absolute;
    top:0;
    right:0;
    display:flex;
    width:min(720px,96vw);
    height:100vh;
    height:100dvh;
    flex-direction:column;
    overflow:hidden;
    background:#fff;
    box-shadow:-14px 0 42px rgba(0,0,0,.24);
    transform:translateX(104%);
    transition:transform .24s ease;
}
.rp-print-wizard-drawer.is-open .rp-print-wizard-drawer__panel { transform:translateX(0); }
.rp-print-wizard-drawer__header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; border-bottom:1px solid var(--rp-app-border); }
.rp-print-wizard-drawer__header h2 { margin:0; font-size:clamp(22px,3vw,30px); line-height:1.15; }
.rp-print-wizard-drawer__close { display:grid; width:44px; height:44px; flex:0 0 44px; place-items:center; padding:0; border:0; background:transparent; color:var(--rp-app-text); font-size:34px; line-height:1; cursor:pointer; }
.rp-print-wizard-drawer__body { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; padding:18px 20px 24px; }
.rp-print-wizard-drawer__body > .rp-app-plan-wizard { margin:0; }
.rp-print-wizard-drawer__body .rp-app-wizard-panel { box-shadow:none; }
.rp-print-wizard-drawer__loading { display:flex; min-height:180px; align-items:center; justify-content:center; gap:12px; color:var(--rp-app-muted); }
.rp-print-wizard-drawer__loading > span { width:22px; height:22px; border:3px solid #d7e2db; border-top-color:var(--rp-app-primary); border-radius:50%; animation:rp-print-wizard-spin .8s linear infinite; }
@keyframes rp-print-wizard-spin { to { transform:rotate(360deg); } }
body.rp-print-wizard-open { overflow:hidden !important; }
.rp-print-wizard-drawer.rp-side-drawer { z-index:100410; }
.rp-print-wizard-drawer .rp-print-wizard-drawer__panel { width:min(720px,96vw); height:100vh; height:100dvh; }

@media (max-width:700px) {
    .rp-print-custom-range { grid-template-columns:1fr; }
    .rp-print-wizard-drawer .rp-print-wizard-drawer__panel { width:100vw; max-width:100vw; }
    .rp-print-wizard-drawer .rp-print-wizard-drawer__header { padding:14px 16px; }
    .rp-print-wizard-drawer .rp-print-wizard-drawer__body { padding:14px; }
    .rp-print-wizard-drawer .rp-app-plan-wizard { padding-bottom:max(8px,env(safe-area-inset-bottom)); }
    .rp-print-wizard-drawer .rp-print-wizard-actions {
        bottom:0;
        margin:12px -2px 0;
        padding:10px 2px calc(6px + env(safe-area-inset-bottom));
        background:rgba(255,255,255,.97);
    }
}

/* =========================================================
 * 0.74.25 – echte Viewport-App-Shell
 *
 * Mit JavaScript wird [rp_app] direkt unter <body> verschoben. Die App ist
 * dadurch nicht mehr Teil des Divi-/Theme-Layouts und liegt als eigene Shell
 * ueber Header und Footer. Ohne JavaScript bleiben die bisherigen Regeln als
 * Progressive-Enhancement-Fallback erhalten.
 * ========================================================= */
html.rp-app-viewport-active,
body.rp-app-viewport-active {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
}

body > .rp-app.rp-app--viewport {
    position: fixed !important;
    z-index: 100000;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh;
    height: 100dvh;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    transform: none !important;
    background: var(--rp-app-bg);
    isolation: isolate;
}

body > .rp-app.rp-app--viewport > .rp-app-shell {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body > .rp-app.rp-app--viewport .rp-app-main {
    min-width: 0;
    min-height: 0 !important;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

body > .rp-app.rp-app--viewport .rp-app-content {
    min-height: 100%;
}

@media (min-width: 901px) {
    body > .rp-app.rp-app--viewport > .rp-app-shell {
        display: grid;
        grid-template-columns: 232px minmax(0,1fr);
    }
    body > .rp-app.rp-app--viewport .rp-app-sidebar {
        position: static !important;
        top: auto !important;
        align-self: stretch !important;
        width: auto !important;
        height: 100% !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: hidden !important;
        border-radius: 0 !important;
    }
    body > .rp-app.rp-app--viewport .rp-app-nav {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    body > .rp-app.rp-app--viewport .rp-app-sidebar__user {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        margin-top: auto !important;
    }
    body > .rp-app.rp-app--viewport .rp-app-main {
        border-radius: 0 !important;
    }
}

@media (max-width: 900px) {
    body > .rp-app.rp-app--viewport > .rp-app-shell {
        display: block;
        height: 100%;
        min-height: 0 !important;
    }
    body > .rp-app.rp-app--viewport .rp-app-main {
        height: 100%;
        min-height: 0 !important;
    }
}

/* Login, Registrierung und Zugangssperre nutzen dieselbe losgeloeste Shell. */
body > .rp-app.rp-app--viewport.rp-app--auth {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
body > .rp-app.rp-app--viewport.rp-app--auth .rp-app-auth-shell,
body > .rp-app.rp-app--viewport > .rp-app-auth-shell {
    width: 100%;
    min-height: 100%;
}


/* 0.74.27 – Dashboard-Mahlzeit aufklappbar und mit Planansicht vereinheitlicht. */
.rp-app-today-card--link {
    color: inherit !important;
    text-decoration: none !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.rp-app-today-card--link:hover,
.rp-app-today-card--link:focus-visible {
    border-color: #cbd9d0;
    box-shadow: 0 8px 24px rgba(28,55,39,.08);
    transform: translateY(-1px);
}
.rp-app-today-card--link:focus-visible {
    outline: 3px solid rgba(35,103,70,.18);
    outline-offset: 3px;
}
.rp-app-today-card__arrow {
    display: inline-grid;
    width: 30px;
    height: 38px;
    flex: 0 0 30px;
    place-items: center;
    color: var(--rp-app-muted);
}
.rp-app-today-card__arrow .rp-app-icon { width: 19px; height: 19px; color: inherit; }

.rp-app-next-meal-card {
    min-width: 0;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--rp-app-border);
    border-radius: var(--rp-app-radius);
    background: var(--rp-app-surface);
    box-shadow: 0 3px 14px rgba(28,55,39,.035);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.rp-app-next-meal-card > summary {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 15px 16px;
    cursor: pointer;
    list-style: none;
}
.rp-app-next-meal-card > summary::-webkit-details-marker { display: none; }
.rp-app-next-meal-card > summary:focus-visible {
    outline: 3px solid rgba(35,103,70,.18);
    outline-offset: -3px;
}
.rp-app-next-meal-card[open] {
    border-color: #cbd9d0;
    box-shadow: 0 8px 24px rgba(28,55,39,.07);
}
.rp-app-next-meal-card__icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--rp-app-primary-soft);
    color: var(--rp-app-primary);
}
.rp-app-next-meal-card__icon .rp-app-icon { width: 21px; height: 21px; }
.rp-app-next-meal-card__copy { min-width: 0; flex: 1 1 auto; }
.rp-app-next-meal-card__copy > span,
.rp-app-next-meal-card__copy > strong,
.rp-app-next-meal-card__copy > small { display: block; }
.rp-app-next-meal-card__copy > span { color: var(--rp-app-muted); font-size: 11px; }
.rp-app-next-meal-card__copy > strong { margin-top: 2px; font-size: 17px; line-height: 1.25; }
.rp-app-next-meal-card__copy > small { margin-top: 3px; color: var(--rp-app-muted); font-size: 11px; }
.rp-app-next-meal-card__chevron {
    display: inline-grid;
    width: 30px;
    height: 34px;
    flex: 0 0 30px;
    place-items: center;
    color: var(--rp-app-muted);
    font-size: 25px;
    line-height: 1;
    transition: transform .18s ease;
}
.rp-app-next-meal-card[open] .rp-app-next-meal-card__chevron { transform: rotate(180deg); }
.rp-app-next-meal-card__body {
    padding: 0 12px 12px;
    border-top: 1px solid var(--rp-app-border);
    background: var(--rp-app-surface-soft);
}
.rp-app-next-meal-card__body > .rp-app-meal-card__items {
    gap: 8px;
    padding-top: 12px;
}
.rp-app-next-meal-card__body .rp-app-meal-item {
    min-height: 58px;
    border: 1px solid var(--rp-app-border);
    border-radius: 14px;
    background: #fff;
}
.rp-app-next-meal-card__body .rp-app-meal-item + .rp-app-meal-item { border-top: 1px solid var(--rp-app-border); }

/* In "Meine Pläne" führt die komplette Kachel zum Plan. Bearbeiten bleibt nur im Plan selbst. */
.rp-app-plan-card__top { padding-right: 0; }
.rp-app-plan-card__meta { padding-right: 28px; }

@media (max-width:600px) {
    .rp-app-today-card--link { flex-direction: row; align-items: center; padding: 15px; }
    .rp-app-today-card__arrow { width: 28px; height: 38px; flex-basis: 28px; }
    .rp-app-next-meal-card > summary { padding: 14px; gap: 11px; }
    .rp-app-next-meal-card__icon { width: 40px; height: 40px; flex-basis: 40px; }
    .rp-app-next-meal-card__chevron { width: 28px; flex-basis: 28px; }
    .rp-app-plan-card__top { padding-right: 0; }
}

/* =========================================================
 * 0.74.29 – natives Pull-to-refresh in der Viewport-App
 *
 * Die App selbst bleibt fixed und der eigentliche Inhalt scrollt in
 * .rp-app-main. Vertikales Overscroll darf mobil am oberen Rand jedoch
 * wieder bis zum Browser-Viewport weitergereicht werden. So kann Chrome
 * auf Android sein natives "Zum Aktualisieren ziehen" ausloesen.
 * Horizontaler Overscroll bleibt weiterhin unterdrueckt.
 * ========================================================= */
@media (max-width: 900px) {
    html.rp-app-viewport-active,
    body.rp-app-viewport-active {
        overscroll-behavior-x: none;
        overscroll-behavior-y: auto;
    }

    body > .rp-app.rp-app--viewport .rp-app-main {
        overscroll-behavior-x: none;
        overscroll-behavior-y: auto;
    }
}

/* =========================================================
 * 0.74.35 – zentrale Mobile-Tastatur-/VisualViewport-Behandlung
 *
 * Die Vollbild-App folgt bei geoeffneter Bildschirmtastatur dem wirklich
 * sichtbaren Browserbereich. Das gilt appweit, nicht nur fuer einzelne
 * Wizards. Die Bottom-Navigation wird waehrend der Eingabe ausgeblendet,
 * damit der nutzbare Platz komplett dem Formular zur Verfuegung steht.
 * ========================================================= */
body.rp-mobile-keyboard-open > .rp-app.rp-app--viewport {
    top: var(--rp-visible-viewport-top, 0px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    height: var(--rp-visible-viewport-height, 100dvh) !important;
    max-height: var(--rp-visible-viewport-height, 100dvh) !important;
}
body.rp-mobile-keyboard-open > .rp-app.rp-app--viewport .rp-app-main,
body.rp-mobile-keyboard-open > .rp-app.rp-app--viewport.rp-app--auth {
    scroll-padding-top: 18px;
    scroll-padding-bottom: 120px;
}
body.rp-mobile-keyboard-open .rp-app-filter-overlay {
    top: var(--rp-visible-viewport-top, 0px);
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--rp-visible-viewport-height, 100dvh);
    max-height: var(--rp-visible-viewport-height, 100dvh);
}
body.rp-mobile-keyboard-open .rp-app-filter-panel {
    max-height: calc(var(--rp-visible-viewport-height, 100dvh) - 24px);
    scroll-padding-bottom: 90px;
}
@media (max-width:900px) {
    body.rp-mobile-keyboard-open .rp-app-bottom-nav {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(calc(100% + 24px));
    }
}


/* =========================================================
 * 0.74.36 – app-eigene Bestätigungsdialoge
 *
 * Browser-native confirm()-Fenster zeigen Domain-/Browsertexte und lassen
 * sich gestalterisch nicht anpassen. RezeptPlaner verwendet deshalb im
 * Frontend eine eigene zugängliche Dialogschicht direkt unter <body>.
 * ========================================================= */
body.rp-app-dialog-open { overflow: hidden !important; }
.rp-app-dialog-overlay {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
    background: rgba(20, 28, 24, .46);
    opacity: 0;
    transition: opacity .16s ease;
}
.rp-app-dialog-overlay[hidden] { display: none !important; }
.rp-app-dialog-overlay.is-open { opacity: 1; }
.rp-app-dialog {
    width: min(430px, 100%);
    max-height: min(620px, calc(100dvh - 36px));
    overflow: auto;
    border: 1px solid #dfe7e1;
    border-radius: 22px;
    background: #fff;
    color: #1d2923;
    box-shadow: 0 24px 70px rgba(20, 32, 25, .22);
    transform: translateY(8px) scale(.985);
    transition: transform .16s ease;
}
.rp-app-dialog-overlay.is-open .rp-app-dialog { transform: translateY(0) scale(1); }
.rp-app-dialog__body { padding: 24px 24px 18px; }
.rp-app-dialog__title {
    margin: 0;
    color: #1d2923;
    font-size: 23px;
    line-height: 1.24;
    font-weight: 760;
    letter-spacing: -.02em;
}
.rp-app-dialog__message {
    margin: 11px 0 0;
    color: #68756e;
    font-size: 15px;
    line-height: 1.5;
}
.rp-app-dialog__prompt { display: grid; gap: 7px; margin-top: 17px; }
.rp-app-dialog__prompt[hidden] { display: none !important; }
.rp-app-dialog__prompt-label { color: #536159; font-size: 13px; font-weight: 700; }
.rp-app-dialog__input {
    width: 100%;
    min-height: 50px;
    padding: 10px 13px;
    border: 1px solid #ccd8d0;
    border-radius: 13px;
    background: #fff;
    color: #1d2923;
    font: inherit;
    outline: 0;
}
.rp-app-dialog__input:focus {
    border-color: #236746;
    box-shadow: 0 0 0 3px rgba(35, 103, 70, .12);
}
.rp-app-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 18px 18px;
}
.rp-app-dialog__button {
    min-height: 48px;
    min-width: 118px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 13px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
.rp-app-dialog__button--secondary {
    border-color: #d9e2dc;
    background: #fff;
    color: #34443b;
}
.rp-app-dialog__button--primary {
    background: #236746;
    color: #fff;
}
.rp-app-dialog__button--danger {
    background: #a43b3b;
    color: #fff;
}
.rp-app-dialog__button:focus-visible {
    outline: 3px solid rgba(35, 103, 70, .17);
    outline-offset: 2px;
}
@media (max-width: 600px) {
    .rp-app-dialog-overlay { align-items: end; padding: 14px 14px max(14px, env(safe-area-inset-bottom)); }
    .rp-app-dialog { width: 100%; border-radius: 22px; }
    .rp-app-dialog__body { padding: 22px 20px 16px; }
    .rp-app-dialog__title { font-size: 21px; }
    .rp-app-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; padding: 0 14px 14px; }
    .rp-app-dialog__actions > .rp-app-dialog__button:only-child { grid-column: 1 / -1; }
    .rp-app-dialog__button { width: 100%; min-width: 0; }
}
@media (max-width: 600px) {
    .rp-app-dialog__button--secondary[hidden] + .rp-app-dialog__button { grid-column: 1 / -1; }
}

/* =========================================================
 * 0.74.37 – zuverlässiges Pull-to-refresh in der Vollbild-App
 *
 * Eine fixed App-Shell mit eigenem Scrollcontainer kann Chromes natives
 * Pull-to-refresh nicht verlaesslich an den Root-Scroller weiterreichen.
 * Deshalb besitzt die App auf Touchgeraeten jetzt eine eigene Geste am
 * oberen Rand. Die bestehende Vollbildarchitektur bleibt unangetastet.
 * ========================================================= */
@media (max-width: 900px) {
    html.rp-app-viewport-active,
    body.rp-app-viewport-active {
        overscroll-behavior-x: none;
        overscroll-behavior-y: none;
    }
    body > .rp-app.rp-app--viewport .rp-app-main {
        overscroll-behavior-x: none;
        overscroll-behavior-y: contain;
    }
}

.rp-app-pull-refresh {
    position: absolute;
    z-index: 120;
    top: calc(env(safe-area-inset-top, 0px) - 48px);
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    max-width: calc(100vw - 32px);
    padding: 7px 12px 7px 9px;
    border: 1px solid rgba(35, 103, 70, .16);
    border-radius: 999px;
    background: rgba(255,255,255,.97);
    color: var(--rp-app-primary);
    box-shadow: 0 7px 24px rgba(28,55,39,.13);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, var(--rp-pull-refresh-offset, 0px), 0);
    transition: opacity .12s ease, transform .18s ease;
    will-change: transform, opacity;
}
.rp-app--pull-refresh-active > .rp-app-pull-refresh { opacity: 1; transition: opacity .1s ease, transform 0s linear; }
.rp-app--pull-refresh-settling > .rp-app-pull-refresh { transition: opacity .16s ease, transform .18s ease; }
.rp-app-pull-refresh__icon {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--rp-app-primary-soft);
    transition: transform .16s ease, background .16s ease;
}
.rp-app-pull-refresh__icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp-app--pull-refresh-armed > .rp-app-pull-refresh .rp-app-pull-refresh__icon { transform: rotate(180deg); background: #dcefe5; }
.rp-app--pull-refresh-loading > .rp-app-pull-refresh .rp-app-pull-refresh__icon { animation: rp-pull-refresh-spin .75s linear infinite; }
.rp-app-pull-refresh__text { overflow: hidden; color: #355b48; font-size: 13px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
@keyframes rp-pull-refresh-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .rp-app-pull-refresh,
    .rp-app-pull-refresh__icon { transition: none !important; }
    .rp-app--pull-refresh-loading > .rp-app-pull-refresh .rp-app-pull-refresh__icon { animation-duration: 1.4s; }
}


/* 0.74.49 – Rezeptänderungsanfragen in „Meine Beiträge“. */
.rp-app a.rp-app-recipe-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.rp-app a.rp-app-recipe-card:visited { color: inherit; }
.rp-app a.rp-app-recipe-card:focus-visible {
    outline: 3px solid rgba(37,112,76,.28);
    outline-offset: 2px;
    border-color: var(--rp-app-primary,#26734d);
}

/* 0.74.52 – Rezeptdetail: kompakte Galerie, klare Schritte und einheitliche Nährwerte. */
.rp-app-recipe-detail .rp-recipe--app {
    width: min(100%, 900px);
    margin-inline: auto;
    gap: 10px;
}
.rp-app-recipe-detail .rp-recipe--app > div,
.rp-app-recipe-detail .rp-recipe--app > section {
    padding: 16px;
    border-radius: 16px;
}
.rp-app-recipe-detail .rp-recipe--app h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -.015em;
}
.rp-app-recipe-detail .rp-recipe--app h4 {
    color: var(--rp-app-text);
}
.rp-app-recipe-detail .rp-recipe-intro p:last-child,
.rp-app-recipe-detail .rp-recipe-steps p:last-child,
.rp-app-recipe-detail .rp-recipe-comments p:last-child { margin-bottom: 0; }

/* Bilder: ein bewusst begrenztes Hauptbild plus sichtbare Thumbnail-Galerie. */
.rp-app-recipe-detail .rp-recipe-images {
    padding: 9px !important;
    overflow: hidden;
}
.rp-app-recipe-detail .rp-recipe-gallery__hero {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 120px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: var(--rp-app-surface-soft);
}
.rp-app-recipe-detail .rp-recipe-gallery__hero-image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 420px;
    margin: 0 auto;
    border-radius: 0 !important;
    object-fit: contain;
    object-position: center;
}
.rp-app-recipe-detail .rp-recipe-gallery__count {
    position: absolute;
    right: 9px;
    bottom: 9px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(20, 35, 28, .72);
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
}
.rp-app-recipe-detail .rp-recipe-gallery {
    display: flex;
    gap: 7px;
    margin-top: 8px;
    padding: 1px 0 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.rp-app-recipe-detail .rp-recipe-gallery__item {
    display: block;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    padding: 2px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--rp-app-surface-soft);
    cursor: pointer;
}
.rp-app-recipe-detail .rp-recipe-gallery__item.is-active {
    border-color: var(--rp-app-primary);
    box-shadow: 0 0 0 2px var(--rp-app-primary-soft);
}
.rp-app-recipe-detail .rp-recipe-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 6px !important;
    object-fit: contain;
    object-position: center;
}

/* Rezept-Kurzinfos statt langer Definitionsliste. */
.rp-app-recipe-detail .rp-recipe-meta__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rp-app-recipe-detail .rp-recipe-meta__list li {
    min-width: 0;
    padding: 10px 11px;
    border-radius: 11px;
    background: var(--rp-app-surface-soft);
}
.rp-app-recipe-detail .rp-recipe-meta__list li > span {
    display: block;
    margin-bottom: 3px;
    color: var(--rp-app-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}
.rp-app-recipe-detail .rp-recipe-meta__list li > strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--rp-app-text);
    font-size: 14px;
    line-height: 1.25;
}

/* Mengenanpassung bleibt voll funktionsfähig, belegt geschlossen aber nur eine Zeile. */
.rp-app-recipe-detail .rp-recipe-scaler {
    margin: 0 0 10px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--rp-app-border);
    border-radius: 12px;
    background: var(--rp-app-surface-soft);
}
.rp-app-recipe-detail .rp-recipe-scaler__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 11px;
    cursor: pointer;
    list-style: none;
}
.rp-app-recipe-detail .rp-recipe-scaler__summary::-webkit-details-marker { display: none; }
.rp-app-recipe-detail .rp-recipe-scaler__summary::after {
    content: '⌄';
    color: var(--rp-app-muted);
    font-size: 18px;
    line-height: 1;
    transform: translateY(-2px);
    transition: transform .16s ease;
}
.rp-app-recipe-detail .rp-recipe-scaler[open] .rp-recipe-scaler__summary::after {
    transform: rotate(180deg) translateY(1px);
}
.rp-app-recipe-detail .rp-recipe-scaler__summary strong {
    font-size: 12px;
    line-height: 1.2;
}
.rp-app-recipe-detail .rp-recipe-scaler__status {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--rp-app-muted);
    font-size: 11px;
    line-height: 1.25;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rp-app-recipe-detail .rp-recipe-scaler__body {
    padding: 10px 11px 11px;
    border-top: 1px solid var(--rp-app-border);
    background: #fff;
}
.rp-app-recipe-detail .rp-recipe-scaler__controls {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr) auto;
    align-items: end;
    gap: 9px;
}
.rp-app-recipe-detail .rp-recipe-scaler__modes {
    align-self: end;
    min-height: 40px;
    border-color: var(--rp-app-border);
}
.rp-app-recipe-detail .rp-recipe-scaler__mode,
.rp-app-recipe-detail .rp-recipe-scaler__reset {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
}
.rp-app-recipe-detail .rp-recipe-scaler__mode.is-active {
    background: var(--rp-app-primary-soft);
    color: var(--rp-app-primary-strong);
}
.rp-app-recipe-detail .rp-recipe-scaler__input-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.rp-app-recipe-detail .rp-recipe-scaler__input-label {
    grid-column: auto;
    color: var(--rp-app-muted);
    font-size: 10px;
    font-weight: 700;
}
.rp-app-recipe-detail .rp-recipe-scaler__input-row {
    display: flex;
    min-width: 0;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--rp-app-border);
    border-radius: 10px;
    background: #fff;
}
.rp-app-recipe-detail .rp-recipe-scaler__input-wrap input {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 7px 9px;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
}
.rp-app-recipe-detail .rp-recipe-scaler__input-unit {
    padding: 0 9px;
    white-space: nowrap;
    color: var(--rp-app-muted);
    font-size: 11px;
}
.rp-app-recipe-detail .rp-recipe-scaler__reset {
    border-color: var(--rp-app-border);
    border-radius: 10px;
    color: var(--rp-app-primary-strong);
}
.rp-app-recipe-detail .rp-recipe-quantity-toggle {
    gap: 6px;
    margin: 6px 0 10px;
}
.rp-app-recipe-detail .rp-recipe-quantity-toggle__label { font-size: 11px; }
.rp-app-recipe-detail .rp-recipe-quantity-toggle__button {
    min-height: 32px;
    padding: 6px 9px;
    border-color: var(--rp-app-border);
    font-size: 11px;
}
.rp-app-recipe-detail .rp-recipe-quantity-toggle__button.is-active {
    border-color: #bfd5c7;
    background: var(--rp-app-primary-soft);
    color: var(--rp-app-primary-strong);
}

/* Zutaten etwas ruhiger und scanbarer. */
.rp-app-recipe-detail .rp-recipe-ingredients__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.rp-app-recipe-detail .rp-recipe-ingredients__list > li {
    padding: 7px 0;
    border-bottom: 1px solid #edf1ee;
    font-size: 13px;
    line-height: 1.4;
}
.rp-app-recipe-detail .rp-recipe-ingredients__list > li:last-child { border-bottom: 0; }
.rp-app-recipe-detail .rp-recipe-component-quantity,
.rp-app-inline-recipe .rp-recipe-component-quantity {
    color: var(--rp-app-primary-strong);
    font-weight: 800;
}
.rp-app-recipe-detail .rp-recipe-ingredients__heading {
    margin: 14px 0 6px;
    font-size: 12px;
    color: var(--rp-app-muted);
}

/* Echte, gut sichtbare Schritt-Nummern unabhängig von Theme-Listenstilen. */
.rp-app-recipe-detail .rp-recipe-steps__list,
.rp-app-inline-recipe .rp-recipe-steps__list {
    margin: 0;
    padding: 0;
    list-style: none !important;
}
.rp-app-recipe-detail .rp-recipe-step,
.rp-app-inline-recipe .rp-recipe-step {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid #edf1ee;
}
.rp-app-recipe-detail .rp-recipe-step:first-child,
.rp-app-inline-recipe .rp-recipe-step:first-child {
    padding-top: 0;
    border-top: 0;
}
.rp-app-recipe-detail .rp-recipe-step:last-child,
.rp-app-inline-recipe .rp-recipe-step:last-child { padding-bottom: 0; }
.rp-app-recipe-detail .rp-recipe-step__number,
.rp-app-inline-recipe .rp-recipe-step__number {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--rp-app-primary-soft);
    color: var(--rp-app-primary-strong);
    font-size: 12px;
    font-weight: 850;
}
.rp-app-recipe-detail .rp-recipe-step__body,
.rp-app-inline-recipe .rp-recipe-step__body { min-width: 0; }
.rp-app-recipe-detail .rp-recipe-step__body > p,
.rp-app-inline-recipe .rp-recipe-step__body > p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}
.rp-app-recipe-detail .rp-recipe-step-ingredients,
.rp-app-inline-recipe .rp-recipe-step-ingredients {
    gap: 5px;
    margin: 0 0 8px;
}
.rp-app-recipe-detail .rp-recipe-step-ingredient,
.rp-app-inline-recipe .rp-recipe-step-ingredient {
    padding: 4px 7px;
    border-color: #d5e6db;
    background: var(--rp-app-primary-soft);
    color: var(--rp-app-primary-strong);
    font-size: 10px;
}

/* Nährwerte: genau eine Bezugsbasis pro Ansicht, wie bei üblichen Rezept-/Produktangaben. */
.rp-app-recipe-detail .rp-recipe-nutrition__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    margin-bottom: 8px;
}
.rp-app-recipe-detail .rp-recipe-nutrition__header h3 { margin-bottom: 0; }
.rp-app-recipe-detail .rp-recipe-nutrition__basis {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--rp-app-border);
    border-radius: 999px;
    background: var(--rp-app-surface-soft);
}
.rp-app-recipe-detail .rp-recipe-nutrition__basis button {
    min-height: 34px;
    padding: 6px 10px;
    border: 0;
    background: transparent;
    color: var(--rp-app-muted);
    font: inherit;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}
.rp-app-recipe-detail .rp-recipe-nutrition__basis button + button { border-left: 1px solid var(--rp-app-border); }
.rp-app-recipe-detail .rp-recipe-nutrition__basis button.is-active {
    background: var(--rp-app-primary-soft);
    color: var(--rp-app-primary-strong);
}
.rp-app-recipe-detail .rp-recipe-nutrition__panel[hidden] { display: none !important; }
.rp-app-recipe-detail .rp-recipe-nutrition__reference {
    margin: 0 0 7px;
    color: var(--rp-app-muted);
    font-size: 10px;
}
.rp-app-recipe-detail .rp-recipe-nutrition__list {
    margin: 0;
}
.rp-app-recipe-detail .rp-recipe-nutrition__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #edf1ee;
}
.rp-app-recipe-detail .rp-recipe-nutrition__row:last-child { border-bottom: 0; }
.rp-app-recipe-detail .rp-recipe-nutrition__row dt {
    min-width: 0;
    color: var(--rp-app-text);
    font-size: 12px;
    font-weight: 650;
}
.rp-app-recipe-detail .rp-recipe-nutrition__row.is-sub dt {
    padding-left: 12px;
    color: var(--rp-app-muted);
    font-size: 11px;
    font-weight: 550;
}
.rp-app-recipe-detail .rp-recipe-nutrition__row dd {
    flex: 0 0 auto;
    margin: 0;
    color: var(--rp-app-text);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}
.rp-app-recipe-detail .rp-recipe-nutrition__cost {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--rp-app-border);
    color: var(--rp-app-muted);
    font-size: 11px;
}
.rp-app-recipe-detail .rp-recipe-nutrition__cost strong {
    color: var(--rp-app-text);
    font-size: 12px;
}

/* Bewertung und Kommentare verwenden dieselbe Form-/Buttonsprache wie die App. */
.rp-app-recipe-detail .rp-recipe-ratings__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
}
.rp-app-recipe-detail .rp-stars {
    color: var(--rp-app-primary);
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1;
}
.rp-app-recipe-detail .rp-recipe-ratings__summary strong { font-size: 13px; }
.rp-app-recipe-detail .rp-rating-values {
    color: var(--rp-app-muted);
    font-size: 11px;
}
.rp-app-recipe-detail .rp-recipe-ratings__notice {
    margin: 0 0 10px;
    padding: 9px 10px;
    border: 1px solid var(--rp-app-border);
    border-radius: 10px;
    background: var(--rp-app-surface-soft);
    font-size: 11px;
}
.rp-app-recipe-detail .rp-recipe-ratings__notice--success { border-color: #cfe3d6; background: var(--rp-app-primary-soft); }
.rp-app-recipe-detail .rp-recipe-ratings__notice--error { border-color: #eed2d2; color: var(--rp-app-danger); }
.rp-app-recipe-detail .rp-recipe-ratings__form {
    padding-top: 11px;
    border-top: 1px solid var(--rp-app-border);
}
.rp-app-recipe-detail .rp-rating-form { margin: 0; }
/* 0.74.56 – direkte Sterneauswahl für Rezeptbewertungen. */
.rp-app-recipe-detail .rp-rating-form__field {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    min-width: 0;
}
.rp-app-recipe-detail .rp-rating-form__label {
    display: block;
    margin-bottom: 7px;
    padding: 0;
    color: var(--rp-app-muted);
    font-size: 10px;
    font-weight: 700;
}
.rp-app-recipe-detail .rp-rating-form__stars {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0;
}
.rp-app-recipe-detail .rp-rating-form__stars input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.rp-app-recipe-detail .rp-rating-form__stars label {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #c9cec9;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    transition: color .15s ease, transform .15s ease;
}
.rp-app-recipe-detail .rp-rating-form__stars label:hover { transform: translateY(-1px); }
.rp-app-recipe-detail .rp-rating-form__stars input:focus-visible + label {
    outline: 2px solid var(--rp-app-primary);
    outline-offset: 2px;
}
.rp-app-recipe-detail .rp-rating-form__stars input:checked + label,
.rp-app-recipe-detail .rp-rating-form__stars input:checked + label ~ input + label {
    color: var(--rp-app-primary);
}
.rp-app-recipe-detail .rp-rating-form__stars label:hover,
.rp-app-recipe-detail .rp-rating-form__stars label:hover ~ input + label {
    color: var(--rp-app-primary);
}
.rp-app-recipe-detail .rp-rating-form__controls {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.rp-app-recipe-detail .rp-rating-form .rp-app-button { flex: 1 1 auto; }

.rp-app-recipe-detail .rp-recipe-comments__list { margin-bottom: 12px; }
.rp-app-recipe-detail .rp-recipe-comments__empty {
    margin: 0;
    color: var(--rp-app-muted);
    font-size: 11px;
}
.rp-app-recipe-detail .rp-recipe-comments .comment-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rp-app-recipe-detail .rp-recipe-comments .comment {
    padding: 10px 11px;
    border-radius: 11px;
    background: var(--rp-app-surface-soft);
}
.rp-app-recipe-detail .rp-recipe-comments .comment-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}
.rp-app-recipe-detail .rp-recipe-comments .comment-meta strong { font-size: 12px; }
.rp-app-recipe-detail .rp-recipe-comments .comment-date { color: var(--rp-app-muted); font-size: 9px; }
.rp-app-recipe-detail .rp-recipe-comments .comment-content { font-size: 12px; }
.rp-app-recipe-detail .rp-recipe-comments__form {
    padding-top: 11px;
    border-top: 1px solid var(--rp-app-border);
}
.rp-app-recipe-detail .rp-recipe-comments__form h4 {
    margin: 0 0 8px;
    font-size: 13px;
}
.rp-app-recipe-detail .rp-recipe-comments__form-body p { margin: 0 0 9px; }
.rp-app-recipe-detail .rp-recipe-comments__form-body label {
    display: block;
    margin-bottom: 4px;
    color: var(--rp-app-muted);
    font-size: 10px;
    font-weight: 700;
}
.rp-app-recipe-detail .rp-recipe-comments__form-body textarea,
.rp-app-recipe-detail .rp-recipe-comments__form-body input[type="text"],
.rp-app-recipe-detail .rp-recipe-comments__form-body input[type="email"],
.rp-app-recipe-detail .rp-recipe-comments__form-body input[type="url"] {
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid var(--rp-app-border);
    border-radius: 11px;
    background: #fff;
    color: var(--rp-app-text);
    box-shadow: none;
    font: inherit;
    font-size: 12px;
}
.rp-app-recipe-detail .rp-recipe-comments__form-body textarea {
    min-height: 96px;
    resize: vertical;
}
.rp-app-recipe-detail .rp-recipe-comments__form-body .form-submit { margin-bottom: 0; }
.rp-app-recipe-detail .rp-recipe-comments__submit { width: 100%; }

@media (min-width: 700px) {
    .rp-app-recipe-detail .rp-recipe-meta__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .rp-app-recipe-detail .rp-recipe--app > div,
    .rp-app-recipe-detail .rp-recipe--app > section { padding: 13px; border-radius: 15px; }
    .rp-app-recipe-detail .rp-recipe-images { padding: 8px !important; }
    .rp-app-recipe-detail .rp-recipe-gallery__hero {
        aspect-ratio: 4 / 3;
        max-height: 245px;
    }
    .rp-app-recipe-detail .rp-recipe-gallery__item {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
    .rp-app-recipe-detail .rp-recipe-scaler__controls {
        grid-template-columns: 1fr auto;
    }
    .rp-app-recipe-detail .rp-recipe-scaler__modes { grid-column: 1 / -1; justify-self: start; }
    .rp-app-recipe-detail .rp-recipe-scaler__input-wrap { min-width: 0; }
    .rp-app-recipe-detail .rp-recipe-scaler__reset { align-self: end; }
    .rp-app-recipe-detail .rp-recipe-nutrition__header { align-items: flex-start; }
    .rp-app-recipe-detail .rp-recipe-nutrition__basis { flex: 0 0 auto; }
    .rp-app-recipe-detail .rp-rating-form__controls { flex-direction: column; }
    .rp-app-recipe-detail .rp-rating-form__stars { gap: 0; }
    .rp-app-recipe-detail .rp-rating-form__stars label { width: 40px; height: 40px; font-size: 28px; }
}
.rp-app-recipe-detail .rp-recipe-comments__form-body .logged-in-as,
.rp-app-recipe-detail .rp-recipe-comments__form-body .comment-notes { display: none; }

/* 0.74.54 – Rezeptkopf mit planartiger Zurück-Navigation und kompakter Aktionsleiste. */
.rp-app .rp-app-view-head--recipe {
    display: block;
    width: min(100%, 900px);
    margin-inline: auto;
    margin-bottom: 14px;
}
.rp-app .rp-app-recipe-head-main { min-width: 0; }
.rp-app .rp-app-recipe-head-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}
.rp-app .rp-app-recipe-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: nowrap;
}
.rp-app .rp-app-recipe-head-actions .rp-app-recipe-pref {
    gap: 7px;
}
.rp-app .rp-app-recipe-head-edit,
.rp-app .rp-app-view-head--recipe .rp-app-recipe-pref__button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    min-width: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--rp-app-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    text-decoration: none !important;
}
.rp-app .rp-app-recipe-head-edit {
    color: var(--rp-app-primary-strong) !important;
}
.rp-app .rp-app-recipe-head-edit .rp-app-icon {
    width: 20px;
    height: 20px;
}
.rp-app .rp-app-recipe-head-back {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}
.rp-app .rp-app-recipe-head-edit:hover {
    border-color: #cbd8d0;
    background: var(--rp-app-primary-soft);
}
.rp-app .rp-app-view-head--recipe .rp-app-recipe-pref__button {
    border-radius: 12px;
    font-size: 20px;
}
.rp-app .rp-app-view-head--recipe h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.06;
    letter-spacing: -.035em;
}
.rp-app .rp-app-view-head--recipe .rp-app-recipe-planned-amount {
    margin: 8px 0 0 !important;
}
@media (max-width: 700px) {
    .rp-app .rp-app-view-head--recipe {
        margin-bottom: 13px;
    }
    .rp-app .rp-app-recipe-head-toolbar {
        margin-bottom: 13px;
    }
    .rp-app .rp-app-view-head--recipe h1 {
        font-size: 30px;
    }
}

/* 0.74.55 – Plan-Detailkopf an Rezeptdetail ausgerichtet: Navigation links, Bearbeiten rechts. */
.rp-app .rp-app-view-head--plan {
    display: block;
    width: min(100%, 900px);
    margin-inline: auto;
}
.rp-app .rp-app-plan-head-main { min-width: 0; }
.rp-app .rp-app-plan-head-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.rp-app .rp-app-plan-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
}
.rp-app .rp-app-plan-head-back {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}
.rp-app .rp-app-plan-head-edit {
    display: inline-grid;
    width: 40px;
    height: 40px;
    min-width: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--rp-app-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    color: var(--rp-app-primary-strong) !important;
    text-decoration: none !important;
}
.rp-app .rp-app-plan-head-edit:hover,
.rp-app .rp-app-plan-head-edit:focus-visible {
    border-color: #cbd8d0;
    background: var(--rp-app-primary-soft);
    color: var(--rp-app-primary-strong) !important;
}
.rp-app .rp-app-plan-head-edit .rp-app-icon {
    width: 20px;
    height: 20px;
}
@media (max-width: 700px) {
    .rp-app .rp-app-plan-head-toolbar { margin-bottom: 13px; }
    .rp-app .rp-app-plan-head-edit { width: 40px; height: 40px; min-width: 40px; }
}


/* Rezeptbilder: neue Uploads besitzen einen bewusst gewählten 4:3-Ausschnitt.
   Legacy-Bilder bleiben bis zur ersten Ausschnittbearbeitung vollständig sichtbar. */
.rp-app .rp-app-recipe-card__visual {
    height:auto;
    aspect-ratio:4 / 3;
}
.rp-app .rp-app-recipe-card__visual--image {
    display:grid;
    place-items:center;
    background:var(--rp-app-surface-soft);
}
.rp-app .rp-app-recipe-card__thumbnail {
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    background:var(--rp-app-surface-soft);
}
.rp-app .rp-app-recipe-card__thumbnail.rp-recipe-image--standardized { object-fit:cover; }

.rp-app .rp-app-recipe-detail .rp-recipe-gallery__hero {
    display:grid;
    width:min(100%,720px);
    aspect-ratio:4 / 3;
    margin:0 auto;
    place-items:center;
    overflow:hidden;
    background:var(--rp-app-surface-soft);
}
.rp-app .rp-app-recipe-detail .rp-recipe-gallery__hero-image {
    width:100%!important;
    height:100%!important;
    max-width:none;
    max-height:none;
    object-fit:contain;
    object-position:center;
    background:transparent;
}
.rp-app .rp-app-recipe-detail .rp-recipe-gallery__hero-image.rp-recipe-image--standardized { object-fit:cover; }
.rp-app .rp-app-recipe-detail .rp-recipe-gallery__item {
    display:grid;
    width:72px;
    height:54px;
    flex:0 0 72px;
    place-items:center;
}
.rp-app .rp-app-recipe-detail .rp-recipe-gallery__item img {
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    background:var(--rp-app-surface-soft);
}
.rp-app .rp-app-recipe-detail .rp-recipe-gallery__item img.rp-recipe-image--standardized { object-fit:cover; }

/* Die spätere Kopfzeilen-Regel darf den farbigen Active-State nicht wieder weiß überschreiben. */
.rp-app .rp-app-view-head--recipe .rp-app-recipe-pref__button.is-favorite.is-active {
    border-color: #1f7a50;
    background: #1f8a58;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(31,138,88,.16);
}
.rp-app .rp-app-view-head--recipe .rp-app-recipe-pref__button.is-disliked.is-active {
    border-color: #bd2f38;
    background: #d43b45;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(212,59,69,.14);
}
.rp-app .rp-app-view-head--recipe .rp-app-recipe-pref__button.is-favorite.is-active:hover { background: #187448; }
.rp-app .rp-app-view-head--recipe .rp-app-recipe-pref__button.is-disliked.is-active:hover { background: #bd2f38; }


/* 0.74.70 – Fotoaktion im Rezeptkopf nutzt dieselbe Icon-Schaltfläche wie Bearbeiten. */
.rp-app .rp-app-recipe-head-photo {
    display:inline-grid;width:40px;height:40px;min-width:40px;place-items:center;padding:0;
    border:1px solid var(--rp-app-border);border-radius:12px;background:#fff;box-shadow:none;
    color:var(--rp-app-primary-strong)!important;
}
.rp-app .rp-app-recipe-head-photo:hover,.rp-app .rp-app-recipe-head-photo:focus-visible{border-color:#cbd8d0;background:var(--rp-app-primary-soft)}
.rp-app .rp-app-recipe-head-photo .rp-app-icon{width:20px;height:20px}
