/* RecipeMaster Pro — Frontend CSS v2
   Mobile First · Astra-kompatibel · CSS Custom Properties
   ──────────────────────────────────────────────────────── */

/* Basis-Variablen (werden von PHP überschrieben mit Astra-Farben) */
:root {
    /* Kernfarben – werden von PHP/Design Studio überschrieben */
    --rmp-accent:               #e74c3c;
    --rmp-accent-dark:          #c0392b;
    --rmp-star:                 #f59e0b;
    --rmp-text:                 var(--ast-global-color-3, #1a1a1a);

    /* Aliasse auf Design-Studio-Variablen (Fallbacks) */
    --rmp-text-muted:           var(--rmp-color-text-muted, #5c6370);
    --rmp-border:               var(--rmp-color-border,     #e5e7eb);
    --rmp-bg:                   var(--rmp-color-bg,         var(--ast-global-color-5, #ffffff));
    --rmp-bg-card:              var(--rmp-color-bg,         var(--ast-global-color-5, #ffffff));
    --rmp-bg-soft:              var(--rmp-color-meta-bg,    #f9fafb);
    --rmp-bg-step:              var(--rmp-color-step-bg,    #f9fafb);
    --rmp-bg-accent:            #fef2f2;

    /* Typografie-Aliasse */
    --rmp-font-family-body:     var(--rmp-font-body,    inherit);
    --rmp-font-family-heading:  var(--rmp-font-heading, inherit);

    /* Layout */
    --rmp-radius:        var(--rmp-radius,        12px);
    --rmp-radius-sm:     var(--rmp-radius-sm,     8px);
    --rmp-shadow:        var(--rmp-shadow,        0 4px 20px rgba(0,0,0,.08));
    --rmp-shadow-hover:  var(--rmp-shadow-hover,  0 8px 32px rgba(0,0,0,.14));
    --rmp-transition:    .2s ease;
}

/* ── Wrapper ──────────────────────────────────────────────── */
.rmp-recipe-card {
    background: var(--rmp-bg);
    border-radius: var(--rmp-radius);
    box-shadow: var(--rmp-shadow);
    border: 1px solid var(--rmp-border);
    overflow: hidden;
    margin: 1.5rem 0 2.5rem;
    font-family: var(--rmp-font-family-body, inherit);
    color: var(--rmp-text);
    container-type: inline-size;
}

/* ── Header ───────────────────────────────────────────────── */
.rmp-header { padding: 1.25rem 1.25rem 0; }

@container (min-width: 520px) {
    .rmp-header { padding: 2rem 2rem 0; }
}

.rmp-title {
    font-size: var(--rmp-font-size-title, clamp(1.25rem, 4cqi, 1.8rem));
    font-family: var(--rmp-font-family-heading, inherit);
    font-weight: var(--rmp-font-weight-title, 700);
    letter-spacing: var(--rmp-letter-spacing-title, 0);
    margin: 0 0 .5rem;
    line-height: 1.3;
    color: var(--rmp-text);
}

.rmp-summary {
    color: var(--rmp-text-muted);
    font-size: var(--rmp-font-size-summary, .9375rem);
    line-height: var(--rmp-line-height, 1.65);
    margin: 0 0 1rem;
}

/* ── Bewertungszeile ──────────────────────────────────────── */
.rmp-rating-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.rmp-stars {
    display: inline-flex;
    gap: 2px;
}

.rmp-star {
    font-size: 1.125rem;
    color: #d1d5db;
    transition: color var(--rmp-transition);
    line-height: 1;
}
.rmp-star.filled { color: var(--rmp-star); }

.rmp-rating-score { font-weight: 700; font-size: .9375rem; }
.rmp-rating-count { font-size: .8125rem; color: var(--rmp-text-muted); }

/* ── Aktionsleiste ────────────────────────────────────────── */
.rmp-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    padding-bottom: 1.25rem;
}

.rmp-btn {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .5rem 1rem;
    border-radius: var(--rmp-radius-sm);
    border: 1px solid var(--rmp-border);
    background: var(--rmp-bg-soft);
    color: var(--rmp-text);
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--rmp-transition);
    white-space: nowrap;
    font-family: inherit;
}
.rmp-btn:hover {
    background: var(--rmp-step-badge-bg, var(--rmp-accent));
    color: var(--rmp-step-badge-color, #fff);
    border-color: var(--rmp-accent);
}
.rmp-btn--accent {
    background: var(--rmp-step-badge-bg, var(--rmp-accent));
    color: var(--rmp-step-badge-color, #fff);
    border-color: var(--rmp-accent);
}
.rmp-btn--accent:hover { background: var(--rmp-accent-dark); border-color: var(--rmp-accent-dark); }

.rmp-btn--fav.is-saved .rmp-icon { fill: currentColor; }

.rmp-btn--jump-recipe,
.rmp-btn--jump-video {
    border-color: color-mix(in srgb, var(--rmp-accent) 40%, transparent);
    color: var(--rmp-accent);
}
.rmp-btn--jump-recipe:hover,
.rmp-btn--jump-video:hover {
    background: var(--rmp-accent);
    color: #fff;
    border-color: var(--rmp-accent);
}

/* ── Beitragsbild ─────────────────────────────────────────── */
.rmp-hero { aspect-ratio: 16/9; overflow: hidden; }
.rmp-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Übersichts-Grid ──────────────────────────────────────── */
.rmp-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    border-top: 1px solid var(--rmp-border);
    border-bottom: 1px solid var(--rmp-border);
    background: var(--rmp-bg-soft);
}

.rmp-overview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .875rem .5rem;
    border-right: 1px solid var(--rmp-border);
    text-align: center;
    gap: .25rem;
}
.rmp-overview-item:last-child { border-right: none; }
.rmp-overview-item:nth-child(2n):not(:last-child) { border-right: none; }

@container (min-width: 420px) {
    .rmp-overview-item:nth-child(2n) { border-right: 1px solid var(--rmp-border); }
    .rmp-overview-item:nth-child(3n) { border-right: none; }
}
@container (min-width: 600px) {
    .rmp-overview-item:nth-child(n) { border-right: 1px solid var(--rmp-border); }
    .rmp-overview-item:last-child   { border-right: none; }
}

.rmp-overview-icon { 
    color: var(--rmp-accent); 
    line-height: 1;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.rmp-overview-label {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--rmp-text-muted);
    line-height: 1;
}
.rmp-overview-value {
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Portionen-Adjuster */
.rmp-servings-wrap {
    display: flex;
    align-items: center;
    gap: .375rem;
    margin-top: .25rem;
}
.rmp-serving-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--rmp-accent);
    background: transparent;
    color: var(--rmp-accent);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all var(--rmp-transition);
    font-family: inherit;
}
.rmp-serving-btn:hover { background: var(--rmp-accent); color: #fff; }
.rmp-servings-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rmp-accent);
    min-width: 1.5rem;
    text-align: center;
}

/* ── Sektionen ────────────────────────────────────────────── */
.rmp-section {
    padding: 1.25rem;
    border-bottom: 1px solid var(--rmp-border);
}
.rmp-section:last-child { border-bottom: none; }

@container (min-width: 520px) {
    .rmp-section { padding: 1.75rem 2rem; }
}

.rmp-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: var(--rmp-font-size-section, 1.1rem);
    font-weight: var(--rmp-font-weight-section, 600);
    margin: 0 0 1.25rem;
    color: var(--rmp-text);
}
.rmp-section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 1.25em;
    border-radius: 2px;
    background: var(--rmp-accent);
    flex-shrink: 0;
}

/* ── Einheiten-Umschalter ─────────────────────────────────── */
.rmp-unit-toggle {
    display: inline-flex;
    border: 1px solid var(--rmp-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.rmp-unit-btn {
    padding: .3125rem .75rem;
    font-size: .8125rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--rmp-text-muted);
    transition: all var(--rmp-transition);
    font-family: inherit;
}
.rmp-unit-btn.active {
    background: var(--rmp-step-badge-bg, var(--rmp-accent));
    color: var(--rmp-step-badge-color, #fff);
}

/* ── Zutaten ──────────────────────────────────────────────── */
.rmp-ingredients-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.rmp-ingredient {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem .875rem;
    background: var(--rmp-bg-soft);
    border-radius: var(--rmp-radius-sm);
    border-left: 3px solid var(--rmp-accent);
    font-size: .9375rem;
    transition: background var(--rmp-transition);
}
.rmp-ingredient:hover { background: #f3f4f6; }

/* ZUTATENBILD */
.rmp-ingredient-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rmp-border);
    flex-shrink: 0;
    background: var(--rmp-bg);
}
.rmp-ingredient-img-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rmp-border);
    flex-shrink: 0;
    display: none; /* nur anzeigen wenn kein Bild */
}

.rmp-ingredient-amount { font-weight: 700; color: var(--rmp-accent); white-space: nowrap; }
.rmp-ingredient-unit   { color: var(--rmp-text-muted); white-space: nowrap; }
.rmp-ingredient-name   { font-weight: 500; flex: 1; }
.rmp-ingredient-notes  { font-size: .8125rem; color: var(--rmp-text-muted); font-style: italic; text-align: left; width: 100%; }

/* Abhaken-Checkbox */
.rmp-ingredient-check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--rmp-border);
    flex-shrink: 0;
    cursor: pointer;
    appearance: none;
    transition: all var(--rmp-transition);
    position: relative;
}
.rmp-ingredient-check:checked {
    background: var(--rmp-accent);
    border-color: var(--rmp-accent);
}
.rmp-ingredient-check:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.rmp-ingredient.is-checked .rmp-ingredient-name {
    text-decoration: line-through;
    color: var(--rmp-text-muted);
}

/* ── Schritte ─────────────────────────────────────────────── */
.rmp-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    counter-reset: step-counter;
}

.rmp-step {
    display: flex;
    gap: 1rem;
    counter-increment: step-counter;
}

.rmp-step-number-badge {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rmp-step-badge-bg, var(--rmp-accent));
    color: var(--rmp-step-badge-color, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9375rem;
    margin-top: 2px;
}

.rmp-step-content { flex: 1; min-width: 0; }
.rmp-step-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 .375rem;
    display: block;
}
.rmp-step-description {
    margin: 0;
    line-height: 1.75;
    font-size: .9375rem;
}

/* SCHRITT-BILDER */
.rmp-step-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
    margin-top: .875rem;
}
.rmp-step-image-wrap {
    border-radius: var(--rmp-radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: zoom-in;
    background: var(--rmp-bg-soft);
}
.rmp-step-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--rmp-transition);
}
.rmp-step-image-wrap:hover img { transform: scale(1.04); }

/* Cook-Mode: aktiver Schritt */
.rmp-cook-mode .rmp-step.is-active {
    background: var(--rmp-bg-accent);
    border-radius: var(--rmp-radius-sm);
    padding: 1rem;
    margin: -.5rem;
}

/* ── Nährwerte ────────────────────────────────────────────── */
.rmp-nutrition-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
}

@container (min-width: 480px) {
    .rmp-nutrition-table { grid-template-columns: repeat(3, 1fr); }
}

.rmp-nutrition-item {
    background: var(--rmp-bg-soft);
    border-radius: var(--rmp-radius-sm);
    padding: .75rem;
    text-align: center;
    border: 1px solid var(--rmp-border);
}
.rmp-nutrition-label {
    display: block;
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--rmp-text-muted);
    margin-bottom: .25rem;
}
.rmp-nutrition-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rmp-text);
}

/* ── Equipment ────────────────────────────────────────────── */
.rmp-equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .875rem;
}
.rmp-equipment-item {
    text-align: center;
    background: var(--rmp-bg-soft);
    border: 1px solid var(--rmp-border);
    border-radius: var(--rmp-radius-sm);
    padding: 1rem .75rem;
    transition: box-shadow var(--rmp-transition);
}
.rmp-equipment-item:hover { box-shadow: var(--rmp-shadow); }
.rmp-equipment-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 0 auto .5rem;
    display: block;
}
.rmp-equipment-name { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; }
.rmp-equipment-link {
    display: inline-block;
    background: var(--rmp-step-badge-bg, var(--rmp-accent));
    color: var(--rmp-step-badge-color, #fff);
    font-size: .75rem;
    padding: .25rem .75rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background var(--rmp-transition);
}
.rmp-equipment-link:hover { background: var(--rmp-accent-dark); color: #fff; }

/* ── Kitchen Timer ────────────────────────────────────────── */
.rmp-timer {
    background: linear-gradient(135deg, var(--rmp-accent), var(--rmp-accent-dark));
    color: #fff;
    border-radius: var(--rmp-radius);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.rmp-timer-display {
    font-size: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .05em;
    line-height: 1;
    min-width: 7ch;
}
.rmp-timer-controls { display: flex; gap: .5rem; flex-wrap: wrap; }
.rmp-timer-btn {
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    border-radius: 6px;
    padding: .375rem .875rem;
    font-size: .875rem;
    cursor: pointer;
    transition: background var(--rmp-transition);
    font-family: inherit;
}
.rmp-timer-btn:hover { background: rgba(255,255,255,.35); }
.rmp-timer-label { font-size: .8125rem; opacity: .85; }
.rmp-timer-done { animation: rmp-pulse 1s ease-in-out infinite; }

@keyframes rmp-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }

/* ── Floating Bar ─────────────────────────────────────────── */
.rmp-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--rmp-bg);
    border-top: 1px solid var(--rmp-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    z-index: 1000;
    padding: .625rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    transform: translateY(100%);
    transition: transform .3s ease;
}
.rmp-floating-bar.is-visible { transform: translateY(0); }

@media (min-width: 768px) {
    .rmp-floating-bar { padding: .75rem 2rem; }
}

.rmp-floating-recipe-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.rmp-floating-title {
    font-weight: 600;
    font-size: .875rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rmp-floating-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ── Share Buttons ────────────────────────────────────────── */
.rmp-share-buttons {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
}
.rmp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .4375rem .875rem;
    border-radius: 6px;
    font-size: .8125rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--rmp-transition);
    color: #fff;
    font-family: inherit;
}
.rmp-share-btn:hover { opacity: .85; color: #fff; }
.rmp-share-btn--pinterest { background: #E60023; }
.rmp-share-btn--instagram { background: linear-gradient(45deg, #f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.rmp-share-btn--whatsapp  { background: #25D366; }
.rmp-share-btn--copy      { background: #6b7280; }
.rmp-share-btn--facebook  { background: #1877F2; }
.rmp-share-btn--x         { background: #111827; }
.rmp-share-btn--linkedin  { background: #0A66C2; }
.rmp-share-btn--telegram  { background: #229ED9; }
.rmp-share-btn--email     { background: #6b7280; }
.rmp-share-btn--native    { background: #6b7280; }
.rmp-share-btn--custom    { background: #6b7280; }

/* ── Lightbox ─────────────────────────────────────────────── */
.rmp-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.rmp-lightbox-overlay.is-open { opacity: 1; pointer-events: all; }
.rmp-lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}
.rmp-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Bewertungsformular ───────────────────────────────────── */
.rmp-review-form-wrap {
    background: var(--rmp-bg-soft);
    border: 1px solid var(--rmp-border);
    border-radius: var(--rmp-radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.rmp-review-form-title { font-size: 1rem; font-weight: 700; margin: 0 0 1rem; }

.rmp-star-input-row {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}
.rmp-star-input {
    font-size: 1.75rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color var(--rmp-transition), transform var(--rmp-transition);
    line-height: 1;
}
.rmp-star-input:hover,
.rmp-star-input.active { color: var(--rmp-star); transform: scale(1.1); }

.rmp-form-row { display: grid; gap: .75rem; margin-bottom: .75rem; }

@container (min-width: 480px) {
    .rmp-form-row { grid-template-columns: 1fr 1fr; }
}

.rmp-form-field { display: flex; flex-direction: column; gap: .3125rem; }
.rmp-form-field label { font-size: .8125rem; font-weight: 600; color: var(--rmp-text-muted); }
.rmp-form-field input,
.rmp-form-field textarea {
    padding: .5rem .75rem;
    border: 1px solid var(--rmp-border);
    border-radius: 6px;
    font-size: .9375rem;
    font-family: inherit;
    transition: border-color var(--rmp-transition);
    width: 100%;
    box-sizing: border-box;
}
.rmp-form-field input:focus,
.rmp-form-field textarea:focus {
    outline: none;
    border-color: var(--rmp-accent);
    box-shadow: 0 0 0 3px rgba(var(--rmp-accent-rgb,.231,76,60),.1);
}
.rmp-form-field input:focus-visible,
.rmp-form-field textarea:focus-visible {
    outline: 2px solid var(--rmp-accent);
    outline-offset: 1px;
}

.rmp-review-msg {
    padding: .75rem 1rem;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 500;
    margin-top: .75rem;
    display: none;
}
.rmp-review-msg.success { background: #d1fae5; color: #065f46; }
.rmp-review-msg.error   { background: #fee2e2; color: #991b1b; }

/* ── Einzelne Bewertung ───────────────────────────────────── */
.rmp-review {
    padding: 1rem;
    border: 1px solid var(--rmp-border);
    border-radius: var(--rmp-radius-sm);
    background: var(--rmp-bg);
}
.rmp-review-header {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .75rem;
}
.rmp-review-header img { border-radius: 50%; width: 44px; height: 44px; }
.rmp-review-author { font-weight: 600; font-size: .9375rem; display: block; margin-bottom: .125rem; }
.rmp-review-date   { font-size: .75rem; color: var(--rmp-text-muted); }
.rmp-review-title  { font-weight: 600; margin: 0 0 .375rem; }
.rmp-review-body   { margin: 0; font-size: .9375rem; line-height: 1.65; }

/* ── Cook-Mode Overlay ────────────────────────────────────── */
.rmp-cook-mode-overlay {
    position: fixed;
    inset: 0;
    background: var(--rmp-bg);
    z-index: 9999;
    overflow-y: auto;
    padding: 1.5rem 1rem;
}
.rmp-cook-mode-exit-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--rmp-step-badge-bg, var(--rmp-accent));
    color: var(--rmp-step-badge-color, #fff);
    border: none;
    padding: .75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    box-shadow: var(--rmp-shadow);
    font-family: inherit;
    z-index: 10000;
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
    .rmp-actions,
    .rmp-floating-bar,
    .rmp-share-buttons,
    .rmp-review-form-wrap,
    .rmp-btn--cook-mode,
    .rmp-btn--fav,
    .rmp-ingredient-check { display: none !important; }

    .rmp-recipe-card { box-shadow: none; border: none; margin: 0; }
    .rmp-section { padding: .75rem 0; }
    .rmp-step-images { grid-template-columns: repeat(3, 1fr); }
}

/* ── Disclosure ───────────────────────────────────────────── */
.rmp-disclosure {
    font-size: .8125rem;
    color: var(--rmp-text-muted);
    padding: .875rem 1.25rem;
    background: var(--rmp-bg-soft);
    border-top: 1px solid var(--rmp-border);
}

/* ── Dark Mode ───────────────────────────────────────────────
   Kein Plugin-eigener Farb-Zwang mehr.
   Theme/Astra oder Design-Studio bestimmen die Karte vollständig.
*/

/* ── Post-Content nach dem Rezept ─────────────────────────── */
.rmp-post-content {
    max-width: 860px;
    margin: 40px auto 0;
    padding: 0 20px;
    line-height: 1.7;
    font-size: 1rem;
}
.rmp-post-content h2,
.rmp-post-content h3 {
    margin-top: 2em;
}
.rmp-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ── Zutaten / Schritt Abschnitte (Frontend) ──────────────── */
.rmp-ingredient-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rmp-accent);
    margin: 1.2em 0 0.4em;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--rmp-accent);
}
.rmp-step-section {
    list-style: none !important;
}
.rmp-step-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rmp-accent);
    margin: 1.4em 0 0.6em;
    padding: 6px 12px;
    background: color-mix(in srgb, var(--rmp-accent) 8%, transparent);
    border-left: 4px solid var(--rmp-accent);
    border-radius: 4px;
}

/* ── [rmp_recipes] Shortcode-Layouts ─────────────────────── */
.rmp-sc-recipes.rmp-sc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.rmp-sc-recipes.rmp-sc-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rmp-sc-recipes.rmp-sc-list .rmp-recipe-card-thumb {
    display: flex;
    flex-direction: row;
    gap: 16px;
}
.rmp-sc-recipes.rmp-sc-list .rmp-thumb-img-wrap {
    flex-shrink: 0;
    width: 120px;
}
.rmp-sc-recipes.rmp-sc-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}
.rmp-sc-carousel .rmp-recipe-card-thumb {
    flex-shrink: 0;
    width: 220px;
    scroll-snap-align: start;
}
.rmp-recipe-card-thumb {
    background: var(--rmp-bg-card, var(--ast-global-color-5, #fff));
    border: 1px solid var(--rmp-border, #e0e0e0);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.rmp-recipe-card-thumb:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.rmp-thumb-img-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.rmp-thumb-body { padding: 12px; }
.rmp-thumb-title { font-size: 1rem; margin: 0 0 6px; line-height: 1.3; }
.rmp-thumb-title a { color: inherit; text-decoration: none; }
.rmp-thumb-title a:hover { color: var(--rmp-accent); }
.rmp-thumb-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--rmp-text-muted); }

/* ── Zutaten Affiliate-Link ───────────────────────────────── */
.rmp-ingredient-link {
    color: var(--rmp-accent);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color .2s;
}
.rmp-ingredient-link:hover { text-decoration-color: var(--rmp-accent); }

/* ── Rezeptsuche: Dropdown-Filter ────────────────────────── */
.rmp-search-page { max-width: 1100px; margin: 0 auto; }
.rmp-search-intro { margin-bottom: 1.5rem; }
.rmp-search-bar-wrap { margin-bottom: 1rem; }
.rmp-search-bar-input {
    width: 100%; max-width: 480px;
    padding: 10px 16px;
    border: 2px solid var(--rmp-border, #ddd);
    border-radius: 8px;
    font-size: 1rem;
}
.rmp-search-bar-input:focus { border-color: var(--rmp-accent); outline: none; }
.rmp-search-bar-input:focus-visible { outline: 2px solid var(--rmp-accent); outline-offset: 1px; }

.rmp-filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rmp-border, #eee);
}

/* Jedes Dropdown */
.rmp-dropdown { position: relative; }
.rmp-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1.5px solid var(--rmp-border, #ddd);
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, background .15s;
}
.rmp-dropdown-trigger:hover,
.rmp-dropdown-trigger[aria-expanded="true"] {
    border-color: var(--rmp-accent, #c0392b);
    background: #fafafa;
}
.rmp-dropdown-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    background: var(--rmp-accent, #c0392b);
    color: #fff;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
}
.rmp-dropdown-chevron {
    transition: transform .2s;
    flex-shrink: 0;
}
.rmp-dropdown-trigger[aria-expanded="true"] .rmp-dropdown-chevron { transform: rotate(180deg); }

/* Panel */
.rmp-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 200;
    min-width: 220px;
    max-width: 300px;
    background: #fff;
    border: 1.5px solid var(--rmp-border, #ddd);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    overflow: hidden;
}
.rmp-dropdown-panel[hidden] { display: none; }
.rmp-dropdown-search-wrap { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; }
.rmp-dropdown-filter-input {
    width: 100%; padding: 6px 10px;
    border: 1px solid #ddd; border-radius: 6px; font-size: .8rem;
}
.rmp-dropdown-list {
    list-style: none; margin: 0; padding: 6px 0;
    max-height: 280px; overflow-y: auto;
}
.rmp-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: .875rem;
    transition: background .1s;
}
.rmp-dropdown-item:hover { background: #f8f8f8; }
.rmp-dropdown-item input[type=checkbox],
.rmp-dropdown-item input[type=radio] { flex-shrink: 0; accent-color: var(--rmp-accent, #c0392b); }
.rmp-dropdown-item-icon { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rmp-dropdown-item-name { flex: 1; }
.rmp-dropdown-item-count { color: #999; font-size: .75rem; }

/* Zurücksetzen */
.rmp-filter-reset {
    background: none; border: none; color: var(--rmp-accent, #c0392b);
    font-size: .875rem; cursor: pointer; padding: 8px 6px;
    text-decoration: underline;
}
.rmp-filter-reset:hover { opacity: .75; }

/* ── Schritt-Video ───────────────────────────────────────── */
.rmp-step-video { margin-top: 1rem; border-radius: 8px; overflow: hidden; }
.rmp-step-video iframe { width: 100%; aspect-ratio: 16/9; display: block; border: none; }
.rmp-step-video-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: .5rem; font-size: .875rem; color: var(--rmp-accent);
}
.rmp-step-video-wrap input { width: 100%; margin-top: 6px; }

/* ── Rezept-Index ────────────────────────────────────────── */
.rmp-index { display: grid; gap: 2rem; }
.rmp-index--cols-2 { grid-template-columns: repeat(2, 1fr); }
.rmp-index--cols-3 { grid-template-columns: repeat(3, 1fr); }
.rmp-index--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
    .rmp-index--cols-2,
    .rmp-index--cols-3,
    .rmp-index--cols-4 { grid-template-columns: 1fr; }
    .rmp-dropdown-panel { right: 0; left: auto; }
}
.rmp-index-group { background: var(--rmp-bg-card, var(--ast-global-color-5, #fff)); border: 1px solid var(--rmp-border, #eee); border-radius: 10px; padding: 16px; }
.rmp-index-term { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.rmp-index-term a { color: inherit; font-weight: 600; }
.rmp-index-term a:hover { color: var(--rmp-accent); }
.rmp-index-term-icon { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.rmp-index-count { font-size: .8rem; color: #999; font-weight: normal; }
.rmp-index-list { list-style: none; margin: 0; padding: 0; }
.rmp-index-list li { padding: 4px 0; border-bottom: 1px solid #f5f5f5; font-size: .875rem; }
.rmp-index-list li:last-child { border-bottom: none; }
.rmp-index-list a { color: var(--rmp-text, #333); text-decoration: none; }
.rmp-index-list a:hover { color: var(--rmp-accent); }

/* ── Zeiten-Leiste über Zutaten ───────────────────────────── */
.rmp-times-bar {
    display: flex;
    gap: 0;
    border: 1px solid var(--rmp-border);
    border-radius: var(--rmp-radius-sm);
    overflow: hidden;
    margin: 0 var(--rmp-section-pad) var(--rmp-section-pad);
}
.rmp-time-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .75rem .5rem;
    text-align: center;
    gap: .2rem;
    border-right: 1px solid var(--rmp-border);
}
.rmp-time-item:last-child { border-right: none; }

/* ── Zutaten-Header mit Portionen rechts ──────────────────── */
.rmp-section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}
.rmp-section-header-row .rmp-section-title {
    margin-bottom: 0;
}
.rmp-section-header-row .rmp-servings-wrap {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

/* ── Hero: Bild links, Sidebar rechts ────────────────────── */
.rmp-hero-wrap {
    display: flex;
    gap: 0;
}
.rmp-hero {
    flex: 1 1 65%;
    min-width: 0;
}
.rmp-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rmp-hero-sidebar {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--rmp-border);
}
.rmp-hero-sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem .75rem;
    gap: .25rem;
    border-bottom: 1px solid var(--rmp-border);
    flex: 1;
}
.rmp-hero-sidebar-item:last-child {
    border-bottom: none;
}
@media (max-width: 600px) {
    .rmp-hero-wrap { flex-direction: column; }
    .rmp-hero-sidebar {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid var(--rmp-border);
    }
    .rmp-hero-sidebar-item {
        border-bottom: none;
        border-right: 1px solid var(--rmp-border);
    }
    .rmp-hero-sidebar-item:last-child { border-right: none; }
}

/* ── Schlagwörter am Ende ─────────────────────────────────── */
.rmp-tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 1rem var(--rmp-section-pad);
    border-top: 1px solid var(--rmp-border);
}
.rmp-tag-pill {
    display: inline-block;
    padding: 4px 12px;
    background: var(--rmp-bg-soft);
    border: 1px solid var(--rmp-border);
    border-radius: 20px;
    font-size: .8125rem;
    color: var(--rmp-text);
    text-decoration: none;
    transition: all var(--rmp-transition);
}
.rmp-tag-pill:hover {
    background: var(--rmp-accent);
    border-color: var(--rmp-accent);
    color: #fff;
}

/* ── Term-Icons in Übersichtsleiste ──────────────────────── */
.rmp-term-icons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}
.rmp-term-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.rmp-term-icon-name {
    font-size: .75rem;
    font-weight: 500;
    color: var(--rmp-text);
    text-align: center;
}
.rmp-term-icon-img {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   RMP TAXONOMIE-ARCHIV
   ═══════════════════════════════════════════════════════════ */

.rmp-archive-wrap {
    width: 100%;
    padding: 2rem 0;
}

/* ── Term Header ─────────────────────────────────────────── */
.rmp-term-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--rmp-bg-soft, #f9f9f9);
    border-radius: var(--rmp-radius, 12px);
    border: 1px solid var(--rmp-border, #e5e5e5);
}
.rmp-term-header-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--rmp-radius-sm, 8px);
    flex-shrink: 0;
}
.rmp-term-header-tax {
    display: block;
    font-size: .8125rem;
    color: var(--rmp-accent, #e74c3c);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .25rem;
}
.rmp-term-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}
.rmp-term-header-desc {
    margin: 0 0 .5rem;
    color: var(--rmp-text-muted, #666);
}
.rmp-term-header-count {
    font-size: .875rem;
    color: var(--rmp-text-muted, #666);
}

/* ── Rezept Grid ─────────────────────────────────────────── */
.rmp-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ── Archiv Karte ────────────────────────────────────────── */
.rmp-archive-card {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--ast-global-color-7, #f2f2f2);
    background: var(--ast-global-color-4, #fff);
    transition: box-shadow .2s ease, transform .2s ease;
}
.rmp-archive-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    transform: translateY(-2px);
}
.rmp-archive-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.rmp-archive-card-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--ast-global-color-5, #F6F6F6);
}
.rmp-archive-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.rmp-archive-card:hover .rmp-archive-card-img {
    transform: scale(1.04);
}
.rmp-archive-card-img--placeholder {
    width: 100%;
    height: 100%;
    background: var(--ast-global-color-5, #F6F6F6);
}

/* Badge oben links auf Bild */
.rmp-archive-badge {
    position: absolute;
    top: .625rem;
    left: .625rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--ast-global-color-8, #222);
    color: var(--ast-global-color-4, #fff);
    font-size: .6875rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: .02em;
    max-width: calc(100% - 1.25rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rmp-archive-badge img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Keys unter Bild */
.rmp-archive-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: .5rem .75rem 0;
}
.rmp-archive-key {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .6875rem;
    color: var(--ast-global-color-3, #393C40);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.rmp-archive-key img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}
.rmp-archive-key:hover {
    color: var(--ast-global-color-2, #151616);
}

.rmp-archive-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: .5rem .75rem .25rem;
    line-height: 1.35;
    color: var(--ast-global-color-2, #151616);
}
.rmp-archive-card-meta {
    display: flex;
    gap: .75rem;
    padding: .25rem .75rem .75rem;
    font-size: .8125rem;
    color: var(--ast-global-color-3, #393C40);
}
.rmp-archive-card-time::before { content: '⏱\00a0'; }
.rmp-archive-card-diff::before { content: '★\00a0'; }

/* ── Pagination ──────────────────────────────────────────── */
.rmp-archive-pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.rmp-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    border: 1px solid var(--ast-global-color-7, #f2f2f2);
    border-radius: 4px;
    text-decoration: none;
    color: var(--ast-global-color-3, #393C40);
    font-size: .9375rem;
    transition: all .2s ease;
}
.rmp-archive-pagination .page-numbers.current,
.rmp-archive-pagination .page-numbers:hover {
    background: var(--ast-global-color-8, #222);
    border-color: var(--ast-global-color-8, #222);
    color: var(--ast-global-color-4, #fff);
}
.rmp-archive-empty {
    text-align: center;
    color: var(--ast-global-color-3, #393C40);
    padding: 3rem;
}

/* ═══════════════════════════════════════════════════════════
   RMP TAXONOMIE-ÜBERSICHT (Shortcode [recipe_index] + [rmp_tax_overview])
   ═══════════════════════════════════════════════════════════ */

.rmp-taxoverview-wrap {
    max-width: 100%;
}

/* Navigation */
.rmp-taxoverview-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin-bottom: 2.5rem;
    padding: .875rem 1rem;
    background: var(--ast-global-color-5, #F6F6F6);
    border-radius: 6px;
    border: 1px solid var(--ast-global-color-7, #f2f2f2);
}
.rmp-taxoverview-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid var(--ast-global-color-7, #f2f2f2);
    background: var(--ast-global-color-4, #fff);
    text-decoration: none;
    color: var(--ast-global-color-3, #393C40);
    font-size: .875rem;
    font-weight: 500;
    transition: all .15s ease;
}
.rmp-taxoverview-nav-item:hover {
    background: var(--ast-global-color-8, #222);
    border-color: var(--ast-global-color-8, #222);
    color: var(--ast-global-color-4, #fff);
}
.rmp-taxoverview-nav-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 2px;
}

/* Sektionen */
.rmp-taxoverview-section {
    margin-bottom: 3rem;
}
.rmp-taxoverview-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .625rem;
    border-bottom: 2px solid var(--ast-global-color-8, #222);
}
.rmp-taxoverview-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--ast-global-color-2, #151616);
}
.rmp-taxoverview-section-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 3px;
}
.rmp-taxoverview-all-link {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ast-global-color-3, #393C40);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}
.rmp-taxoverview-all-link:hover {
    color: var(--ast-global-color-2, #151616);
}
.rmp-taxoverview-section-desc {
    color: var(--ast-global-color-3, #393C40);
    margin: 0 0 1rem;
    font-size: .9375rem;
}
.rmp-taxoverview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .rmp-archive-grid,
    .rmp-taxoverview-grid { grid-template-columns: 1fr; }
    .rmp-term-header { flex-direction: column; text-align: center; }
}

/* ── Verlinkte Terms in Übersichtsleiste ─────────────────── */
.rmp-term-value-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}
.rmp-overview-value--link {
    text-decoration: none;
    color: var(--rmp-accent);
    font-weight: 500;
}
.rmp-overview-value--link:hover {
    text-decoration: underline;
}
a.rmp-term-icon-name {
    text-decoration: none;
    color: var(--rmp-text);
    font-weight: 500;
    font-size: .75rem;
}
a.rmp-term-icon-name:hover {
    color: var(--rmp-accent);
    text-decoration: underline;
}
/* ══════════════════════════════════════════════════════════
   NEUES KOMPAKTES LAYOUT v2.5.0
   ══════════════════════════════════════════════════════════ */

/* ── INFO-GRID OBEN (Zeiten + Meta) ──────────────────────── */
.rmp-info-grid-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    border: 1px solid var(--rmp-border);
    border-radius: var(--rmp-radius-sm);
    overflow: hidden;
    margin: 0 var(--rmp-section-pad) var(--rmp-section-pad);
    background: var(--rmp-bg-soft);
}

.rmp-info-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    text-align: center;
    gap: 0.2rem;
    border-right: 1px solid var(--rmp-border);
    border-bottom: 1px solid var(--rmp-border);
}

.rmp-info-grid-item:last-child {
    border-right: none;
}

/* Responsive borders */
@container (max-width: 700px) {
    .rmp-info-grid-item:nth-child(3n) {
        border-right: none;
    }
}

@container (max-width: 500px) {
    .rmp-info-grid-item:nth-child(2n) {
        border-right: none;
    }
}

/* ── HERO + ICON SIDEBAR ─────────────────────────────────── */
.rmp-hero-wrap {
    display: flex;
    gap: 1.5rem;
    margin: 0 var(--rmp-section-pad) var(--rmp-section-pad);
}

.rmp-hero {
    flex: 1;
    border-radius: var(--rmp-radius);
    overflow: hidden;
}

.rmp-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Icon Sidebar */
.rmp-hero-sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rmp-hero-sidebar-section {
    background: var(--rmp-bg-soft);
    border: 1px solid var(--rmp-border);
    border-radius: var(--rmp-radius-sm);
    padding: 1rem;
}

.rmp-icon-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rmp-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.rmp-icon-section-title svg {
    color: var(--rmp-accent);
}

/* Icon Grid */
.rmp-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.rmp-icon-item {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--rmp-border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--rmp-transition);
    max-width: 60px;
    max-height: 60px;
}

.rmp-icon-item:hover {
    border-color: var(--rmp-accent);
    box-shadow: var(--rmp-shadow);
    transform: translateY(-2px);
}

.rmp-icon-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── INFO-BAR UNTEN (Küche, Methode, Kosten, Gänge, Kalorien) ── */
.rmp-info-bar-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    border: 1px solid var(--rmp-border);
    border-radius: var(--rmp-radius-sm);
    overflow: hidden;
    margin: 0 var(--rmp-section-pad) var(--rmp-section-pad);
    background: var(--rmp-bg-soft);
}

.rmp-info-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    text-align: center;
    gap: 0.2rem;
    border-right: 1px solid var(--rmp-border);
}

.rmp-info-bar-item:last-child {
    border-right: none;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .rmp-hero-wrap {
        flex-direction: column;
    }
    
    .rmp-hero-sidebar {
        flex: 1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .rmp-hero-sidebar-section {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 200px;
    }
}

@media (max-width: 600px) {
    .rmp-hero-sidebar {
        flex-direction: column;
    }
    
    .rmp-hero-sidebar-section {
        flex: 1;
    }
    
    .rmp-icon-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════
   [recipe_index] – Shortcode Stile (Astra-kompatibel)
   ═══════════════════════════════════════════════════════════ */

/* ── Wrapper ── */
.rmp-index-wrap {
    width: 100%;
}

/* ── Rezept-Grid ── */
.rmp-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 2em;
}

/* ── Card ── */
.rmp-index-card {
    background: var(--ast-global-color-5, #fff);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 15px -2px rgba(16,24,40,.05);
    transition: box-shadow .2s ease, transform .2s ease;
}
.rmp-index-card:hover {
    box-shadow: 0 10px 25px -4px rgba(16,24,40,.12);
    transform: translateY(-2px);
}

/* ── Figure / Bild ── */
.rmp-index-card__figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.rmp-index-card__figure a {
    display: block;
    height: 100%;
}
.rmp-index-card__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform .5s ease;
}
.rmp-index-card:hover .rmp-index-card__figure img {
    transform: scale(1.06);
}
.rmp-index-card__no-img {
    width: 100%;
    height: 100%;
    background: var(--ast-global-color-6, #F2F5F7);
}

/* ── Badge (oben links, wie dr-badge) ── */
.rmp-index-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}
.rmp-index-card__badge a {
    display: inline-block;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.4;
}

/* ── Keys / Kategorie-Icons (oben rechts) ── */
.rmp-index-card__keys {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.rmp-index-card__keys a {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,.88);
    border-radius: 4px;
    padding: 2px 6px;
    text-decoration: none !important;
    font-size: 11px;
    color: var(--ast-global-color-2, #1e293b) !important;
    font-weight: 600;
}
.rmp-index-card__keys img {
    width: 18px !important;
    height: 18px !important;
    object-fit: cover;
    border-radius: 2px;
}

/* ── Card Body ── */
.rmp-index-card__body {
    padding: 12px 14px 14px;
}
.rmp-index-card__title {
    margin: 0 0 8px;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}
.rmp-index-card__title a {
    color: var(--ast-global-color-2, #1e293b) !important;
    text-decoration: none !important;
}
.rmp-index-card__title a:hover {
    color: var(--ast-global-color-0, #010101) !important;
}

/* ── Meta (Zeit / Schwierigkeit) ── */
.rmp-index-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.rmp-index-card__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ast-global-color-0, #010101);
    font-weight: 600;
}
.rmp-index-card__meta-item svg {
    flex-shrink: 0;
    color: var(--ast-global-color-0, #010101);
}

/* ── Pagination ── */
.rmp-index-pagination {
    text-align: center;
    padding: 1.5em 0 2em;
}
.rmp-index-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid var(--ast-global-color-6, #e5e7eb);
    border-radius: 4px;
    color: var(--ast-global-color-3, #010101);
    text-decoration: none;
    font-size: 14px;
    transition: background .15s, color .15s;
}
.rmp-index-pagination .page-numbers:hover,
.rmp-index-pagination .page-numbers.current {
    background: var(--ast-global-color-0, #010101);
    color: #fff;
    border-color: var(--ast-global-color-0, #010101);
}

/* ── Leer-Meldung ── */
.rmp-index-empty {
    padding: 2em 0;
    color: var(--ast-global-color-2, #6b7280);
    font-style: italic;
}

/* ── Section-Titel ── */
.rmp-index-section-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--ast-global-color-2, #1e293b) !important;
    margin: 0 0 .8em !important;
    padding-top: .5em;
    border-top: 2px solid var(--ast-global-color-6, #F2F5F7);
}

/* ── Alle Kategorien ── */
.rmp-index-cats {
    margin-bottom: 2em;
}
.rmp-index-cats__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rmp-index-cats__list li a {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid var(--ast-global-color-6, #e5e7eb);
    border-radius: 20px;
    font-size: 13px;
    color: var(--ast-global-color-2, #1e293b) !important;
    text-decoration: none !important;
    background: var(--ast-global-color-6, #F2F5F7);
    transition: background .15s, border-color .15s;
}
.rmp-index-cats__list li a:hover {
    background: var(--ast-global-color-7, #ffcd57);
    border-color: var(--ast-global-color-7, #ffcd57);
    color: var(--ast-global-color-2, #1e293b) !important;
}

/* ── Alphabetischer Index ── */
.rmp-index-alph {
    margin-bottom: 2em;
}
.rmp-index-alph__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 1.5em;
    list-style: none;
    padding: 0;
}
.rmp-index-alph__nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid var(--ast-global-color-6, #e5e7eb);
    color: var(--ast-global-color-2, #1e293b) !important;
    background: var(--ast-global-color-6, #F2F5F7);
    transition: background .15s, color .15s;
}
.rmp-index-alph__nav-link:hover {
    background: var(--ast-global-color-0, #010101);
    border-color: var(--ast-global-color-0, #010101);
    color: #fff !important;
}
.rmp-index-alph__nav-link--disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.rmp-index-alph__section {
    margin-bottom: 1.5em;
}
.rmp-index-alph__letter {
    font-size: 20px;
    font-weight: 700;
    color: var(--ast-global-color-2, #1e293b);
    background: var(--ast-global-color-6, #F2F5F7);
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: .5em;
}
.rmp-index-alph__section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.rmp-index-alph__section ul li a {
    font-size: 13px;
    color: var(--ast-global-color-2, #1e293b) !important;
    text-decoration: none !important;
}
.rmp-index-alph__section ul li a:hover {
    color: var(--ast-global-color-0, #010101) !important;
    text-decoration: underline !important;
}
.rmp-index-alph__count {
    color: var(--ast-global-color-0, #010101);
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .rmp-index-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}
@media (max-width: 480px) {
    .rmp-index-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .rmp-index-card__title {
        font-size: 13px !important;
    }
}


/* ── GRID & SHORTCODE VARIABLEN ───────────────────────────────── */
.rmp-sc-recipes.rmp-sc-grid,
.rmp-taxoverview-grid {
    grid-template-columns: repeat(var(--rmp-grid-columns, 3), 1fr);
    gap: var(--rmp-grid-gap, 1.5rem);
}

.rmp-cols-1 { --rmp-grid-columns: 1; }
.rmp-cols-2 { --rmp-grid-columns: 2; }
.rmp-cols-3 { --rmp-grid-columns: 3; }
.rmp-cols-4 { --rmp-grid-columns: 4; }

.rmp-recipe-card-thumb,
.rmp-archive-card {
    border-radius: var(--rmp-grid-card-radius, 10px);
    font-family: var(--rmp-font-family-body, inherit);
}

.rmp-thumb-title,
.rmp-archive-card-title {
    font-family: var(--rmp-font-family-heading, inherit);
    font-weight: var(--rmp-font-weight-section, 600);
    font-size: var(--rmp-font-size-body, 1rem);
}

.rmp-thumb-meta,
.rmp-archive-card-meta {
    font-size: var(--rmp-font-size-meta, 0.85rem);
    color: var(--rmp-text-muted);
}

/* ── Skip-Link (WCAG 2.4.1) – nur bei Tastaturfokus sichtbar ── */
.rmp-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: var(--rmp-bg, #fff);
    color: var(--rmp-accent, #e74c3c);
    border: 2px solid var(--rmp-accent, #e74c3c);
    border-radius: 4px;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: top .1s;
}
.rmp-skip-link:focus {
    top: 1rem;
    outline: none;
}
.rmp-skip-link:focus-visible {
    top: 1rem;
    outline: 2px solid var(--rmp-accent, #e74c3c);
    outline-offset: 2px;
}

/* ── Collections (Fallback Templates) ─────────────────────────── */
.rmp-collection-single,
.rmp-collection-archive {
    max-width: var(--rmp-max-width, 1000px);
    margin: 0 auto;
    padding: 1.25rem;
}

.rmp-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--rmp-grid-gap, 1.5rem);
}

.rmp-collection-card {
    background: var(--rmp-bg-card, var(--rmp-bg, #fff));
    border: 1px solid var(--rmp-color-border, #e8e8e8);
    border-radius: var(--rmp-radius, 12px);
    box-shadow: var(--rmp-shadow, 0 4px 20px rgba(0,0,0,.08));
    overflow: hidden;
}

.rmp-collection-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rmp-collection-card-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.rmp-collection-card-title {
    padding: 12px 14px 0;
    margin: 0;
    font-size: 1.05rem;
    font-weight: var(--rmp-font-weight-section, 600);
}

.rmp-collection-card-excerpt {
    padding: 10px 14px 14px;
    color: var(--rmp-color-text-muted, #6b7280);
    font-size: 0.95rem;
    line-height: 1.5;
}

.rmp-collection-list-title {
    margin: 0 0 12px;
}


/* Location block */
.rmp-location{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.rmp-location-text{min-width:200px;flex:1}
.rmp-location-name{font-weight:600;margin-bottom:2px}
.rmp-location-address,.rmp-location-note{color:var(--rmp-text-muted);font-size:.92rem;line-height:1.3;margin-top:2px}
.rmp-location-link{white-space:nowrap}

/* Series summary */
.rmp-series-summary{margin:2rem 0}.rmp-series-summary__header{margin-bottom:1.25rem}.rmp-series-summary__title{margin:0 0 .5rem}.rmp-series-summary__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.rmp-series-summary__card{border:1px solid rgba(0,0,0,.08);border-radius:16px;overflow:hidden;background:var(--rmp-bg-card,var(--rmp-bg,#fff))}.rmp-series-summary__link{display:block;color:inherit;text-decoration:none;height:100%}.rmp-series-summary__link.is-static{cursor:default}.rmp-series-summary__media{aspect-ratio:16/10;background:#f6f7f7}.rmp-series-summary__media img{width:100%;height:100%;object-fit:cover;display:block}.rmp-series-summary__body{padding:1rem}.rmp-series-summary__meta{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}.rmp-series-summary__timeline,.rmp-series-summary__badge{font-size:.78rem;line-height:1;padding:.35rem .55rem;border-radius:999px;background:#f1f3f5}.rmp-series-summary__label{margin:0 0 .5rem;font-size:1rem}.rmp-series-summary__subline{margin:-.15rem 0 .55rem;color:#666;font-size:.88rem}.rmp-series-summary__excerpt{margin:0;color:#555;font-size:.92rem}.rmp-series-summary__card.is-root{border-color:rgba(192,57,43,.25);box-shadow:0 0 0 1px rgba(192,57,43,.08)}

.rmp-icon-item.is-static{cursor:default;pointer-events:none;}
