/* Reppertoire – custom.css
   Feinschliff nach dem Figma-Entwurf (Home). Tokens liegen in theme.json.
   Mobil-Breakpoint: 781px (WordPress-Standard für Spalten). */

/* ---------- Helfer ---------- */
.rp-gap-8  { --wp--style--block-gap: 8px; }
.rp-gap-16 { --wp--style--block-gap: 16px; }
.rp-gap-24 { --wp--style--block-gap: 24px; }
.rp-gap-32 { --wp--style--block-gap: 32px; }
.rp-gap-48 { --wp--style--block-gap: 48px; }
.rp-quiet a { text-decoration: none; }
.rp-quiet a:hover { text-decoration: underline; }

/* Vollbreite Bänder: sicher bis an den Rand, unabhängig vom Seitenrand */
.wp-site-blocks main > .alignfull,
.wp-site-blocks footer > .alignfull {
  margin-left: calc(var(--wp--style--root--padding-left) * -1);
  margin-right: calc(var(--wp--style--root--padding-right) * -1);
}
/* Footer und Regenbogen-Band immer randlos, Seitenrand über --rp-pad */
.rp-footer, .wp-site-blocks .rainbow-band {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: none !important;
  width: auto !important;
}
.rp-footer {
  box-sizing: border-box;
  padding-left: var(--rp-pad) !important;
  padding-right: var(--rp-pad) !important;
}
.wp-site-blocks > footer, .wp-site-blocks > header { margin-block-start: 0; margin-block-end: 0; }

.rp-band { padding-top: 48px; padding-bottom: 48px; }

/* ---------- Header ---------- */
.rp-header { padding-top: 32px; }
.rp-header__row { border-bottom: 1px solid var(--wp--preset--color--rule); padding-bottom: 30px; gap: 16px; }
.rp-header__brand { gap: 12px; }
.rp-header__brand .wp-block-image { margin: 0; }
.rp-header__brand .wp-block-site-title { margin: 0; }
.rp-header__link { margin: 0; }
.rp-header__nav .wp-block-navigation__container { gap: 72px; }
.rp-header__nav .wp-block-navigation-item__content { padding-block: 10px; }

/* ---------- Footer ---------- */
.rp-footer { --wp--style--block-gap: 0px; }
.rp-footer__top { display: grid; grid-template-columns: 1fr 596px; column-gap: 0; padding-bottom: 32px; }
.rp-footer__top > * { margin: 0; }
.rp-footer__brand .wp-block-site-title { margin: 0; line-height: 1.4; }
.rp-footer__brand p { margin: 4px 0 0; }
.rp-footer__links { padding-top: 12px; }
.rp-footer__nav .wp-block-navigation__container { gap: 16px; }
.rp-footer__nav .wp-block-navigation-item__content { padding-block: 10px; }
.rp-footer__ext { margin-top: 16px; gap: 48px; }
.rp-footer__ext p { margin: 0; }
.rp-footer__ext p:first-child { min-width: 172px; }
.rp-footer__bottom { border-top: 1px solid var(--wp--preset--color--rule-dark); padding-top: 22px; padding-bottom: 38px; }
.rp-footer__bottom p { margin: 0; }

/* ---------- Abschnitte ---------- */
.rp-section { padding-bottom: 64px; }
.rp-section--ruled { border-top: 1px solid var(--wp--preset--color--rule); padding-top: 28px; }
.rp-section__head { margin-bottom: 32px; }
.rp-section__head > p { margin: 0; }

/* ---------- Hero ---------- */
.rp-hero { padding-top: 36px; padding-bottom: 72px; }
.rp-hero__text { display: flex; flex-direction: column; justify-content: space-between; padding-top: 18px; }
.rp-hero__top { --wp--style--block-gap: 48px; }
.rp-hero__top > p:first-child { margin: 0; }
.rp-hero__top .wp-block-heading { margin: 0; }
.rp-hero__top .wp-block-heading, .rp-hero__top .wp-block-heading + * { margin-top: var(--wp--style--block-gap); }
.rp-hero__scroll { margin: 0; }
.rp-hero__caps { margin-top: 16px; }
.rp-hero__caps p { margin: 0; }
.wp-block-cover.rp-ph { min-height: 0; aspect-ratio: var(--rp-ratio, 4 / 3); }
.rp-ph--hero { --rp-ratio: 714 / 554; }

/* ---------- Karten ---------- */
.rp-card .wp-block-post-featured-image { margin: 0; }
.rp-card .wp-block-post-featured-image img { width: 100%; height: auto; aspect-ratio: 416 / 352; object-fit: cover; }
.rp-cat, .rp-cat a { text-transform: uppercase; text-decoration: none; }
.rp-card__title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; line-height: 1.3; }
.rp-card__title::after { content: "\2192"; content: "\2192" / ""; font-family: var(--wp--preset--font-family--body); font-size: 1.5rem; line-height: 1.35; }

/* ---------- Idea-Band ---------- */
.rp-idea__text { --wp--style--block-gap: 16px; }
.rp-idea__text > * { margin-block: 0; }
.rp-idea__text > h2 { margin-top: 16px; }
.rp-idea__text > .rp-idea__body { margin-top: 16px; max-width: 790px; }
.rp-idea__text > .rp-idea__statement { margin-top: 48px; line-height: 1.5; }
.rp-idea__text > p:last-child { margin-top: 24px; }

/* ---------- Colour index ---------- */
.rp-colour-index { padding-top: 44px; padding-bottom: 32px; }
.rp-index { margin-top: 32px; }
.rp-swatch { height: 80px; }
.rp-index__item { --wp--style--block-gap: 8px; }
.rp-index__item > * { margin: 0; }
.rp-index__num { margin: 7px 0 0 14px; font-size: 14px; line-height: 1.5; }
.rp-index__note { margin-top: 24px; }

/* ---------- Field notes ---------- */
.rp-notes__list > * { margin: 0; }
.rp-note { display: grid; grid-template-columns: 341px 1fr 36px; grid-template-areas: "meta text arrow"; border-top: 1px solid var(--wp--preset--color--rule); padding-block: 19px 28px; }
.rp-note > * { margin: 0; }
.rp-note__meta { grid-area: meta; display: flex; align-items: baseline; padding-top: 6px; }
.rp-note__no { min-width: 81px; margin: 0; }
.rp-note__cat { margin: 0; }
.rp-note__text { grid-area: text; --wp--style--block-gap: 6px; }
.rp-note__text > * { margin: 0; }
.rp-note__title { line-height: 1.4; }
.rp-note__desc { margin-top: 6px; }
.rp-note__arrow { grid-area: arrow; justify-self: end; font-family: var(--wp--preset--font-family--body); font-size: 1.75rem; line-height: 1.4; }

/* ---------- Newsletter ---------- */
.rp-news__right > * + * { margin-top: 24px; }
.rp-news__right > .wp-block-buttons { margin-top: 48px; }
.rp-news__right > .wp-block-buttons + p { margin-top: 20px; }
.rp-news__right > p + p { margin-top: 12px; }
.rp-news__cols { row-gap: 24px; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
  .rp-band { padding-top: 24px; padding-bottom: 24px; }

  .rp-header { padding-top: 16px; }
  .rp-header__row { padding-bottom: 8px; row-gap: 8px; }
  .rp-header__brand { flex: 1 1 auto; gap: 8px; }
  .rp-header__link { font-size: 0.6875rem; }
  .rp-header__nav { order: 3; flex: 0 0 100%; width: 100%; font-size: 0.875rem; }
  .rp-header__nav .wp-block-navigation__container { gap: 8px; width: 100%; justify-content: space-between; }

  .rp-section { padding-top: 24px; padding-bottom: 24px; }
  .rp-section--ruled { padding-top: 24px; }
  .rp-section__head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 24px; }

  .rp-hero { padding-top: 24px; padding-bottom: 24px; }
  .rp-hero__text { padding-top: 0; }
  .rp-hero__top { --wp--style--block-gap: 24px; }
  .rp-hero__scroll { display: none; }
  .rp-hero .wp-block-buttons, .rp-news .wp-block-buttons { display: block; }
  .rp-hero .wp-block-button, .rp-hero .wp-block-button__link,
  .rp-news .wp-block-button, .rp-news .wp-block-button__link { width: 100%; text-align: center; }
  .rp-hero__caps { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 24px; }
  .rp-ph--hero { --rp-ratio: 342 / 300; }

  .rp-card .wp-block-post-featured-image img { aspect-ratio: 342 / 280; }

  .rp-idea__wheel.aligncenter { margin-left: 0; margin-right: 0; }
  .rp-idea__text > .rp-idea__statement { margin-top: 24px; }

  .rp-colour-index { padding-top: 24px; padding-bottom: 24px; }
  .rp-index { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; row-gap: 16px; margin-top: 16px; }
  .rp-swatch { height: 64px; }
  .rp-index__num { margin: 8px 0 0; font-size: 12px; text-align: center; }

  .rp-note { grid-template-columns: 1fr 24px; grid-template-areas: "meta meta" "text arrow"; row-gap: 16px; padding-block: 16px; }
  .rp-note__meta { padding-top: 0; gap: 16px; }
  .rp-note__no { min-width: 0; }
  .rp-note__arrow { font-size: 1.5rem; }

  .rp-news__right > * + *, .rp-news__right > .wp-block-buttons, .rp-news__right > .wp-block-buttons + p, .rp-news__right > p + p { margin-top: 24px; }
  .rp-footer__top { grid-template-columns: 1fr; row-gap: 24px; }
  .rp-footer__links { padding-top: 0; }
  .rp-footer__nav { font-size: 0.875rem; }
  .rp-footer__nav .wp-block-navigation__container { gap: 8px; }
  .rp-footer__ext { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rp-footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
}

/* ---------- Unterseiten ---------- */
.rp-intro { padding-top: 40px; padding-bottom: 62px; }
.rp-intro__eyebrow { gap: 6px; }
.rp-intro__eyebrow p, .rp-intro__eyebrow .wp-block-post-title { margin: 0; text-transform: uppercase; font-weight: 400; }
.rp-intro h1, .rp-intro .wp-block-post-title:not(.has-caption-font-size) { line-height: 1.12; }
.rp-hero--feature .rp-hero__text { justify-content: flex-start; }
.rp-photo-stories { padding-top: 32px; }
.rp-photo-stories__label { margin: 0 0 32px; }
.rp-cards--wide .rp-card .wp-block-post-featured-image img { aspect-ratio: 640 / 440; }
.rp-page-content:empty { display: none; }
.rp-page-content { padding-bottom: 32px; }

@media (max-width: 781px) {
  .rp-intro { padding-top: 40px; padding-bottom: 40px; }
  .rp-photo-stories { padding-top: 24px; }
  .rp-photo-stories__label { margin-bottom: 24px; }
  .rp-cards--wide .rp-card .wp-block-post-featured-image img { aspect-ratio: 342 / 280; }
}
