:root {
  --primary: #111827;
  --accent: #c53b2d;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(0, 0, 0, 0.1);
  --page-gutter: clamp(20px, 3vw, 64px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}

.rp-header {
  border-bottom: 1px solid var(--line);
  padding: 16px var(--page-gutter);
}

.rp-header-inner {
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rp-brand {
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.05rem;
}

.rp-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.rp-nav a:hover {
  color: var(--accent);
}

.rp-main {
  max-width: none;
  margin: 0 auto;
  padding: 28px var(--page-gutter) 48px;
}

.rp-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.rp-back:hover {
  color: var(--accent);
}

.rp-breadcrumbs {
  margin: 0 0 16px;
}

.rp-breadcrumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.rp-breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.rp-breadcrumbs-item:not(:first-child)::before {
  content: "›";
  margin-right: 8px;
  color: rgba(17, 24, 39, 0.35);
  font-weight: 600;
}

.rp-breadcrumbs-item a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.rp-breadcrumbs-item a:hover {
  color: var(--accent);
}

.rp-breadcrumbs-item span {
  color: var(--primary);
  font-weight: 700;
}

.rp-category {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.rp-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
}

.rp-meta {
  margin: 0 0 20px;
  color: var(--muted);
}

.rp-hero {
  margin: 0 0 24px;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

.rp-hero picture {
  display: block;
  width: 100%;
}

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

.ai-image-note {
  margin: 0.55rem 0 1.1rem;
  padding: 0;
  border: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.ai-image-note__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  font-weight: 500;
}

.ai-image-note__summary::-webkit-details-marker {
  display: none;
}

.ai-image-note__summary::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.85;
  flex: 0 0 auto;
}

.ai-image-note__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.ai-image-note__body {
  margin-top: 0.45rem;
  max-width: 42rem;
}

.ai-image-note__body p {
  margin: 0 0 0.4rem;
}

.ai-image-note__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-image-note[open] .ai-image-note__summary {
  color: var(--text);
}

.rp-intro {
  margin: 0 0 28px;
  font-size: 1.08rem;
}

.rp-section {
  margin: 0 0 28px;
}

.rp-section h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.rp-list {
  margin: 0;
  padding-left: 1.25rem;
}

.rp-list li {
  margin: 0 0 8px;
}

.rp-steps {
  margin: 0;
  padding-left: 1.25rem;
}

.rp-steps li {
  margin: 0 0 14px;
}

.rp-faq {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.rp-faq-heading {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.rp-faq-list {
  display: grid;
  gap: 10px;
}

.rp-faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #fafafa;
}

.rp-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}

.rp-faq-item summary::-webkit-details-marker {
  display: none;
}

.rp-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 700;
}

.rp-faq-item[open] summary::after {
  content: "−";
}

.rp-faq-item p {
  margin: 0 0 14px;
  color: var(--text);
}

.rp-footer {
  border-top: 1px solid var(--line);
  padding: 24px var(--page-gutter) 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

.rp-footer-inner {
  max-width: none;
  margin: 0 auto;
}

.rp-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
}

.rp-footer a {
  color: var(--muted);
  text-decoration: none;
}

.rp-footer a:hover {
  color: var(--accent);
}

.rp-related {
  max-width: none;
  margin: 48px auto 0;
  padding: 0 var(--page-gutter) 48px;
}

.rp-related-heading {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.rp-related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rp-related-card {
  margin: 0;
}

.rp-related-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rp-related-link:hover {
  border-color: rgba(239, 125, 24, 0.35);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.rp-related-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f3f4f6;
}

.rp-related-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  flex: 1;
}

.rp-related-cat {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.rp-related-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.rp-related-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.rp-related-time {
  margin: auto 0 0;
  padding-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 960px) {
  .rp-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rp-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Estimated nutrition: shared by SPA and static recipe pages. */
.nutrition-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0; }
.nutrition-grid > div { padding:14px 12px;border:1px solid #eaded3;border-radius:14px;background:#faf6f0; }
.nutrition-grid dt { font-size:13px;color:#62594f;overflow-wrap:anywhere; }
.nutrition-grid dd { margin:8px 0 0;font-size:20px;font-weight:800;color:#182232;white-space:nowrap; }
.nutrition-basis { font-weight:600; }
.nutrition-note,.nutrition-method { font-size:14px;line-height:1.6; }
.nutrition-method summary { cursor:pointer;font-weight:700;padding:8px 0; }
.nutrition-method a { color:#b93125;text-decoration:underline; }
@media(max-width:600px) { .nutrition-grid {grid-template-columns:repeat(2,minmax(0,1fr));} }

/* Direct recipe links also use the screen, with readable columns on desktop. */
.rp-main article > * { min-width: 0; overflow-wrap: anywhere; }
@media screen and (min-width: 1000px) {
  .rp-main article { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: clamp(28px,4vw,80px); row-gap: 16px; align-items: start; }
  .rp-main article > * { grid-column: 1; margin-bottom: 0; }
  .rp-main article > .rp-hero { grid-column: 2; grid-row: 1 / span 6; }
  .rp-hero img { height: clamp(360px,30vw,620px); object-fit: cover; }
  .rp-main article > .rp-section { grid-column: 1 / -1; margin-top: 20px; }
  .rp-main article > .rp-section:first-of-type { grid-column: 1; margin-top: 0; }
  .rp-main article > #zutaten { grid-column: 1; }
  .rp-main article > #zubereitung { grid-column: 2; }
  .rp-section { padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
}
