/* ============================================================
   reisenbezahlbar — deals polish overlay
   Pushes the magazine baseline toward a dense, conversion-focused
   deal-site aesthetic (urlaubspiraten / travelcircus inspiration).
   ============================================================ */

/* Sticky deal banner under header */
.rb-deal-strip {
  background: linear-gradient(90deg, var(--coral) 0%, var(--sun) 100%);
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  position: sticky;
  top: var(--header-h, 88px);
  z-index: 90;
  box-shadow: 0 4px 14px rgba(251, 111, 70, 0.25);
}
.rb-deal-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  flex-wrap: wrap;
}
.rb-deal-strip__pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rb-deal-strip a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rb-deal-strip a:hover { color: var(--cream); }

/* Stronger hero — bolder CTA, deal-style price emphasis */
.rb-hero { padding: 60px 0 40px; }
.rb-hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.rb-hero .lead, .rb-hero p {
  font-size: 18px;
  color: var(--navy-soft);
}
.rb-btn-primary, .rb-btn-large {
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px rgba(251, 111, 70, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rb-btn-primary:hover, .rb-btn-large:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(251, 111, 70, 0.45);
}

/* Article cards as deal-cards: bigger image, badge ribbon, dense layout.
   align-items: start prevents single-row grids from stretching cards down
   to the height of the tallest grid item (which used to leave a big white
   block under a lone article on category pages with a tall sidebar). */
.rb-articles__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) {
  .rb-articles__list { grid-template-columns: 1fr; }
}

.rb-articles__layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}
@media (max-width: 1000px) {
  .rb-articles__layout { grid-template-columns: 1fr; }
}

/* Defense-in-depth: PHP filter swallows the Recent Comments widget; this
   CSS rule hides any stray instance that slips past the filter (e.g. if
   the widget output is wrapped in extra markup by a plugin). */
.rb-sidebar .rb-widget:has(.wp-block-latest-comments) { display: none; }
.rb-sidebar .wp-block-latest-comments { display: none !important; }
/* Hide the empty aside that register_sidebar always emits (the inner
   block is suppressed by widget_block_content but the wrapper survives). */
.rb-sidebar .rb-widget:empty { display: none; }

/* ─── Über uns trust box ────────────────────────────────────────── */
.rb-about-us {
  margin: 56px 0 32px;
  padding: 28px;
  background: linear-gradient(135deg, #fff7f1 0%, #fff 100%);
  border: 1px solid var(--line);
  border-left: 4px solid #FF6B3D;
  border-radius: var(--radius-lg);
}
.rb-about-us__inner { display: flex; gap: 22px; align-items: flex-start; }
.rb-about-us__avatar { flex-shrink: 0; }
.rb-about-us__avatar svg { display: block; border-radius: 50%; }
.rb-about-us__title { margin: 0 0 8px; font-size: 1.25rem; }
.rb-about-us__copy p { margin: 0 0 8px; line-height: 1.55; }
.rb-about-us__pledge { font-size: 0.95rem; color: var(--ink-soft, #555); }
@media (max-width: 640px) {
  .rb-about-us__inner { flex-direction: column; gap: 14px; }
}

/* ─── Verwandte Artikel ─────────────────────────────────────────── */
.rb-related { margin: 48px 0; }
.rb-related__head { margin-bottom: 22px; }
.rb-related__head h2 { margin: 4px 0 0; font-size: 1.5rem; }
.rb-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .rb-related__grid { grid-template-columns: 1fr; } }
.rb-related__card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.rb-related__card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.rb-related__img img { display: block; width: 100%; height: 160px; object-fit: cover; }
.rb-related__body { padding: 16px; }
.rb-related__cat {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #FF6B3D; margin-bottom: 6px;
}
.rb-related__title {
  margin: 0 0 8px; font-size: 1.05rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rb-related__excerpt {
  margin: 0; font-size: 0.9rem; color: var(--ink-soft, #555);
  line-height: 1.45;
}

/* ─── Feedback widget ───────────────────────────────────────────── */
.rb-feedback {
  margin: 32px 0 8px; padding: 18px 22px;
  background: #f8fafc; border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.rb-feedback__q { font-weight: 600; }
.rb-feedback__buttons { display: flex; gap: 10px; }
.rb-feedback__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer; font-size: 0.92rem;
  transition: all .15s ease;
}
.rb-feedback__btn:hover { border-color: #FF6B3D; transform: translateY(-1px); }
.rb-feedback__btn[disabled] { opacity: 0.6; cursor: default; transform: none; }
.rb-feedback__thanks { margin: 0; color: #2d6a4f; font-size: 0.92rem; }

/* ─── Affiliate trust line under outbound rel=sponsored links ──── */
.rb-content a[rel~="sponsored"]::after {
  content: " 🛒"; font-size: 0.85em; opacity: 0.65;
}
.rb-content .rb-affiliate-disclosure {
  font-size: 0.82rem; color: var(--ink-soft, #666);
  border-left: 3px solid #FF6B3D; padding: 8px 12px;
  background: #fff7f1; margin: 16px 0; border-radius: 4px;
}

/* ─── Sticky mobile newsletter bar ──────────────────────────────── */
.rb-sticky-newsletter {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none;
  padding: 12px 14px;
  background: #1B2A4E; color: #fff;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.18);
  align-items: center; gap: 12px;
}
.rb-sticky-newsletter[data-state="dismissed"] { display: none !important; }
.rb-sticky-newsletter__copy { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.rb-sticky-newsletter__copy strong { font-size: 0.95rem; }
.rb-sticky-newsletter__copy span { font-size: 0.78rem; opacity: 0.85; }
.rb-sticky-newsletter__actions { display: flex; align-items: center; gap: 8px; }
.rb-sticky-newsletter__cta {
  background: #FF6B3D; color: #fff; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 0.9rem;
}
.rb-sticky-newsletter__close {
  background: transparent; color: #fff; border: 0; font-size: 1.6rem;
  line-height: 1; padding: 4px 10px; cursor: pointer; opacity: 0.7;
}
.rb-sticky-newsletter__close:hover { opacity: 1; }
@media (max-width: 760px) { .rb-sticky-newsletter { display: flex; } }

/* ─── Empty / sparse category state ────────────────────────────── */
.rb-empty-suggestions {
  margin: 24px 0; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.rb-empty-suggestions h3 { margin: 0 0 8px; font-size: 1.1rem; }
.rb-empty-suggestions__list {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none;
}
.rb-empty-suggestions__list a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: #fff7f1; color: #FF6B3D; text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  border: 1px solid rgba(255,107,61,0.25);
}
.rb-empty-suggestions__list a:hover { background: #FF6B3D; color: #fff; }

.rb-article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.rb-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(27, 42, 78, 0.14);
  border-color: var(--coral);
}
.rb-article-card__image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ocean-light), var(--sand));
}
.rb-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.rb-article-card:hover .rb-article-card__image img { transform: scale(1.06); }

/* Corner ribbon badge (top-left) */
.rb-card-ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(251, 111, 70, 0.4);
}
.rb-card-ribbon--ocean { background: var(--ocean-dark); box-shadow: 0 4px 12px rgba(46, 112, 138, 0.4); }
.rb-card-ribbon--sun   { background: var(--sun); color: var(--navy); box-shadow: 0 4px 12px rgba(255, 166, 77, 0.4); }

/* Destination chip (bottom-left over image) */
.rb-card-dest {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(27, 42, 78, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rb-article-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rb-article-card__meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.rb-article-card__cat {
  background: var(--cream-2);
  color: var(--coral-dark) !important;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.rb-article-card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
}
.rb-article-card__title a {
  color: var(--navy);
  background-image: linear-gradient(var(--coral), var(--coral));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .25s ease, color .15s ease;
}
.rb-article-card__title a:hover {
  color: var(--coral);
  background-size: 100% 2px;
}
.rb-article-card__excerpt {
  color: var(--navy-soft);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.rb-article-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--coral);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  align-self: flex-start;
  transition: background-color .15s ease, transform .15s ease;
  box-shadow: 0 4px 12px rgba(251, 111, 70, 0.25);
}
.rb-article-card__more:hover {
  background: var(--coral-dark);
  color: #fff !important;
  transform: translateX(2px);
}

/* Categories grid — denser, more visual */
.rb-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .rb-cats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .rb-cats__grid { grid-template-columns: 1fr; } }
.rb-cat-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rb-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(27, 42, 78, 0.1);
  border-color: var(--coral);
}
.rb-cat-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--cream-2), var(--cream));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
}
.rb-cat-card__icon svg { width: 28px; height: 28px; }
.rb-cat-card h3 {
  font-size: 16px;
  margin: 0 0 4px;
}
.rb-cat-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Section heading polish */
.rb-deals__head, .rb-cats__head {
  margin-bottom: 28px;
}
.rb-cats__head {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}
.eyebrow {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2.5px;
}

/* Trust bar density */
.rb-trust-bar {
  background: var(--navy);
  color: #fff;
  padding: 32px 0;
  text-align: center;
}
.rb-trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .rb-trust-bar__grid { grid-template-columns: repeat(2, 1fr); } }
.rb-trust-bar__num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 800;
  font-style: italic;
  color: var(--sun);
  display: block;
  line-height: 1;
}
.rb-trust-bar__label {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.8;
}

/* Promo bar — bolder color */
.rb-promo-bar {
  background: var(--navy);
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
  text-align: center;
}
.rb-promo-bar a {
  color: var(--sun-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rb-promo-bar a:hover { color: var(--cream); }

/* Header CTA — spark coral */
.rb-header__cta .rb-btn-primary {
  background: var(--coral);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
}
.rb-header__cta .rb-btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

/* Section spacing */
.section, .rb-articles {
  padding: 56px 0;
}
@media (max-width: 760px) {
  .section, .rb-articles { padding: 40px 0; }
}

/* Footer CTA — deal-energy gradient */
.rb-footer-cta {
  background: linear-gradient(135deg, var(--coral) 0%, var(--sun) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.rb-footer-cta h2 { color: #fff; }
.rb-footer-cta__form input {
  border-radius: 999px;
  padding: 14px 22px;
  border: none;
  font-size: 16px;
}
.rb-footer-cta__form button {
  background: var(--navy) !important;
  border: none;
  color: #fff !important;
  border-radius: 999px;
  padding: 14px 30px;
  font-weight: 700;
  margin-left: 8px;
  cursor: pointer;
}

/* Sidebar widgets — stronger visual frame */
.rb-sidebar .widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}
.rb-sidebar .widget-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--navy);
}
