/* =========================================================================
   rabattfee.css – zentrales Stylesheet für rabattfee.de (Redesign 2026)
   -------------------------------------------------------------------------
   Aufbau:
     1.  Design-Tokens (Light / System-Dark / Toggle-Dark)
     2.  Reset & Basis-Typografie
     3.  Layout-Helfer (Container, Grid, Section)
     4.  Buttons, Chips, Badges, Formulare
     5.  Header (Desktop + Mobile), Offcanvas-Menü
     6.  Coupon-Karte (zentrale Komponente)
     7.  Produkt-/Slider-Karte („Gutscheine im Fokus")
     8.  Kategorie- und Shop-Raster, A–Z-Leiste
     9.  Shop-Detail (Hero, Sidebar, Redaktionsblöcke)
     10. Accordion (FAQ / Glossar / Details)
     11. Pagination, „Mehr anzeigen"
     12. Modal (Code-Reveal)
     13. Statische Seiten, Kontaktformular, 404
     14. Footer
     15. Utilities, Print, Reduced Motion

   CI: Navy #1e3653 · Gold #e1a730 · Textgold auf Hell #8f6414 (kontrastgeprüft)
   ALLE Farben laufen über Custom Properties – nur so ist der Dark Mode möglich.
   Keine Inline-Styles, keine Farb-Hexwerte in Komponenten-Regeln.
   ========================================================================= */

/* =========================================================================
   1. DESIGN-TOKENS
   ========================================================================= */

/* Dark Mode ist der Standard (SPEC 4.1, Stand 29.08.2026).
   Kaskade bewusst umgedreht: Die DUNKLE Palette steht auf :root und gilt damit
   auch ohne JavaScript. Hell greift nur über [data-theme="light"] – also nur,
   wenn der Nutzer es aktiv gewählt hat. prefers-color-scheme wird NICHT mehr
   als Default ausgewertet. */
:root {
  color-scheme: dark;

  /* --- Marke (Navy/Gold bleiben die CI-Anker) --- */
  --rf-navy: #1e3653;
  --rf-navy-700: #16283e;
  --rf-navy-100: #22334d;
  --rf-gold: #e8b64a;        /* minimal aufgehellt für dunklen Grund */
  --rf-gold-600: #f0c877;    /* Gold als TEXT/Link auf Dunkel – 9,8:1 auf --rf-surface */
  --rf-gold-100: #2c2413;    /* "Gold-Fläche" im Dark = warm getöntes Dunkel */

  /* --- Flächen & Text --- */
  --rf-bg: #0f1a2b;          /* Seite – Navy stark abgedunkelt */
  --rf-surface: #16243a;     /* Karten (Ebene 1) */
  --rf-surface-alt: #1e3653; /* Ebene 2 = das CI-Navy selbst */
  --rf-border: #2a3d5c;
  --rf-text: #e8edf4;
  --rf-text-muted: #a3b2c7;
  --rf-success: #4ade80;
  --rf-danger: #f87171;

  /* --- Abgeleitete Rollen --- */
  --rf-header-bg: #16243a;
  --rf-header-text: #e8edf4;
  --rf-nav-bg: #1e3653;
  --rf-link: var(--rf-gold-600);
  --rf-link-hover: var(--rf-gold);
  --rf-badge-bg: #1e3653;
  --rf-badge-text: var(--rf-gold);
  --rf-cta-bg: #1e3653;
  --rf-cta-text: var(--rf-gold);
  --rf-cta-bg-hover: #274768;
  /* Schrift auf der Gold-FLÄCHE (primärer CTA, Hero-Suchbutton).
     Der Hover-Zustand braucht einen eigenen Token, weil --rf-gold-600 im Dark
     hell und im Light dunkel ist. */
  --rf-btn-gold-text: #1e3653;         /* auf --rf-gold #e8b64a → 6,6:1 */
  --rf-btn-gold-hover-text: #0f1a2b;   /* auf --rf-gold-600 #f0c877 → 11,0:1 */
  --rf-logo-tile: #ffffff;             /* Logos immer auf weißer Kachel */
  --rf-overlay: rgba(4, 10, 18, .7);

  /* --- Schatten (im Dark Mode praktisch aus) --- */
  --rf-shadow-sm: none;
  --rf-shadow: none;
  --rf-shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);

  /* --- Maße --- */
  --rf-radius-sm: 6px;
  --rf-radius: 12px;
  --rf-radius-lg: 18px;
  --rf-radius-pill: 999px;
  --rf-container: 1200px;
  --rf-gap: 16px;
  /* Höhe des Sticky-Menübands – steuert scroll-padding, A–Z-Leiste und Sidebar-Offset. */
  --rf-sticky-h: 56px;

  /* --- Typografie --- */
  --rf-font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --rf-font-mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
}

/* Heller Modus – nur auf ausdrückliche Nutzerwahl (Toggle + localStorage). */
:root[data-theme="light"] {
  color-scheme: light;

  --rf-navy-100: #dbe3ee;
  --rf-gold: #e1a730;
  --rf-gold-600: #8f6414;   /* Gold als TEXT auf hellem Grund: 5,3:1 auf Weiß, 4,8:1 auf --rf-gold-100.
                               Korrektur zum DESIGN-BRIEF – dessen #b8811d erreicht real nur 3,4:1. */
  --rf-gold-100: #fdf3de;

  --rf-bg: #eef1f6;
  --rf-surface: #ffffff;
  --rf-surface-alt: #f6f8fb;
  --rf-border: #d3dbe6;
  --rf-text: #1c2733;
  --rf-text-muted: #526175;   /* leicht abgedunkelt: 4,9:1 auch auf --rf-navy-100 */
  --rf-success: #1c7c4a;
  --rf-danger: #b3261e;

  /* Die obere Leiste ist hell: das Logo /images/logo.png trägt eine dunkle
     Wortmarke. Die Navigationsleiste darunter bleibt Navy. */
  --rf-header-bg: var(--rf-surface);
  --rf-header-text: var(--rf-text);
  --rf-nav-bg: var(--rf-navy);
  --rf-link: var(--rf-navy);
  --rf-link-hover: var(--rf-gold-600);
  --rf-badge-bg: var(--rf-navy);
  --rf-badge-text: var(--rf-gold);
  --rf-cta-bg: var(--rf-navy);
  --rf-cta-text: var(--rf-gold);
  --rf-cta-bg-hover: var(--rf-navy-700);
  --rf-btn-gold-text: #1e3653;         /* auf --rf-gold #e1a730 → 5,7:1 */
  --rf-btn-gold-hover-text: #ffffff;   /* auf --rf-gold-600 #8f6414 → 5,3:1 */
  --rf-overlay: rgba(16, 26, 40, .55);

  --rf-shadow-sm: 0 1px 2px rgba(23, 40, 62, .06);
  --rf-shadow: 0 4px 14px rgba(23, 40, 62, .08);
  --rf-shadow-lg: 0 12px 32px rgba(23, 40, 62, .14);
}

/* =========================================================================
   2. RESET & BASIS
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--rf-sticky-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--rf-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--rf-text);
  background: var(--rf-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; }
svg { fill: currentColor; }

a {
  color: var(--rf-link);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--rf-link-hover); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--rf-text);
  text-wrap: balance;
}

h1 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.35rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.8rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.4rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9375rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

hr {
  border: 0;
  border-top: 1px solid var(--rf-border);
  margin: 32px 0;
}

/* Fokus-Ring – in beiden Modi >= 3:1 */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--rf-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.rf-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 18px;
  background: var(--rf-gold);
  color: var(--rf-navy);
  font-weight: 700;
  border-radius: 0 0 var(--rf-radius-sm) 0;
}
.rf-skip-link:focus { left: 0; }

.rf-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Icon-Sprite (einmal pro Seite im Header eingebunden) */
.rf-sprite { display: none; }
.rf-icon {
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================================
   3. LAYOUT
   ========================================================================= */

.rf-container {
  width: 100%;
  max-width: var(--rf-container);
  margin-inline: auto;
  padding-inline: 16px;
}

.rf-section { padding-block: 48px; }
.rf-section--tight { padding-block: 28px; }
.rf-section--alt { background: var(--rf-surface-alt); }

.rf-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 24px;
}
.rf-section-head h2,
.rf-section-head h3 { margin: 0; }
.rf-section-head .rf-section-link {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--rf-link);
}

.rf-lead {
  max-width: 78ch;
  font-size: 1.0625rem;
  color: var(--rf-text-muted);
}
/* Für kurze Intro-Zeilen, die auf Desktop einzeilig bleiben sollen
   (z. B. /shops): keine Breitenbegrenzung, Umbruch nur wenn der
   Viewport es erzwingt. */
.rf-lead--wide {
  max-width: none;
}
/* Zentrierter Fließtext braucht auch eine zentrierte Box – sonst steht der
   Absatz trotz text-align:center links unter einer mittigen Überschrift. */
.rf-lead.rf-text-center {
  max-width: 65ch;
  margin-inline: auto;
}

.rf-grid { display: grid; gap: var(--rf-gap); }
.rf-grid--cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rf-grid--tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.rf-grid--chips { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rf-grid--thirds { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Zweispaltiges Detail-Layout (Inhalt + Sidebar) */
.rf-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 992px) {
  .rf-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .rf-layout__aside { position: sticky; top: calc(var(--rf-sticky-h) + 24px); }
}

/* Karte – Basisfläche für alles */
.rf-card {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  box-shadow: var(--rf-shadow-sm);
}

/* Breadcrumb */
.rf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  font-size: .875rem;
  color: var(--rf-text-muted);
}
.rf-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.rf-breadcrumb li + li::before {
  content: "›";
  color: var(--rf-text-muted);
}
.rf-breadcrumb a { color: var(--rf-text-muted); }
.rf-breadcrumb a:hover { color: var(--rf-link-hover); }
.rf-breadcrumb [aria-current="page"] { color: var(--rf-text); font-weight: 600; }

/* Hinweisbanner (z. B. Affiliate-Hinweis, i18n-Hinweis) */
.rf-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border: 1px solid var(--rf-border);
  border-left: 4px solid var(--rf-gold);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-surface-alt);
  font-size: .875rem;
  color: var(--rf-text-muted);
}
.rf-note .rf-icon { font-size: 1.25rem; color: var(--rf-gold-600); }
/* Sprachhinweis direkt unter dem Header – hat einen eigenen Außenabstand */
.rf-langnote { margin: 16px auto 0; }

/* =========================================================================
   4. BUTTONS, CHIPS, BADGES, FORMULARE
   ========================================================================= */

.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--rf-radius-sm);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.rf-btn:active { transform: translateY(1px); }

.rf-btn--primary {
  background: var(--rf-cta-bg);
  color: var(--rf-cta-text);
  border-color: var(--rf-cta-bg);
}
.rf-btn--primary:hover {
  background: var(--rf-cta-bg-hover);
  color: var(--rf-cta-text);
  border-color: var(--rf-cta-bg-hover);
}

/* Gold-Fläche mit Navy-Schrift – der eine primäre CTA je Seite */
.rf-btn--gold {
  background: var(--rf-gold);
  color: var(--rf-btn-gold-text);
  border-color: var(--rf-gold);
}
.rf-btn--gold:hover {
  background: var(--rf-gold-600);
  color: var(--rf-btn-gold-hover-text);
  border-color: var(--rf-gold-600);
}

.rf-btn--outline {
  background: transparent;
  color: var(--rf-link);
  border-color: var(--rf-border);
}
.rf-btn--outline:hover {
  border-color: var(--rf-gold);
  color: var(--rf-link-hover);
  background: var(--rf-surface-alt);
}

.rf-btn--ghost {
  background: transparent;
  color: var(--rf-text-muted);
  border-color: transparent;
  min-height: 36px;
  padding: 6px 10px;
}
.rf-btn--ghost:hover { color: var(--rf-link-hover); }

.rf-btn--block { width: 100%; }
.rf-btn--sm { min-height: 36px; padding: 6px 14px; font-size: .8125rem; }
.rf-btn[disabled],
.rf-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* Chips (Filter, Typ-Label, Meta) */
.rf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-pill);
  background: var(--rf-navy-100);
  color: var(--rf-text);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.rf-chip--code { background: var(--rf-gold-100); border-color: var(--rf-gold); color: var(--rf-gold-600); }
.rf-chip--deal { background: var(--rf-navy-100); border-color: var(--rf-border); color: var(--rf-text); }
.rf-chip--verified { background: transparent; border-color: var(--rf-border); color: var(--rf-success); }
.rf-chip--exclusive { background: var(--rf-gold-100); border-color: var(--rf-gold); color: var(--rf-gold-600); }
.rf-chip--expired { background: var(--rf-surface-alt); border-color: var(--rf-border); color: var(--rf-text-muted); }

/* Filter-Chips (Buttons, rein clientseitig – keine URL-Parameter) */
.rf-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.rf-filter {
  min-height: 38px;
  padding: 6px 16px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-pill);
  background: var(--rf-surface);
  color: var(--rf-text);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.rf-filter:hover { border-color: var(--rf-gold); }
.rf-filter[aria-pressed="true"] {
  background: var(--rf-navy);
  border-color: var(--rf-navy);
  color: var(--rf-gold);
}

/* Formularelemente */
.rf-input,
.rf-textarea,
.rf-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-surface);
  color: var(--rf-text);
  font: inherit;
  font-size: .9375rem;
}
.rf-textarea { min-height: 140px; resize: vertical; }
.rf-input::placeholder,
.rf-textarea::placeholder { color: var(--rf-text-muted); opacity: 1; }
.rf-input:focus,
.rf-textarea:focus,
.rf-select:focus { border-color: var(--rf-gold); }

.rf-field { margin-bottom: 16px; }
.rf-field label {
  display: block;
  margin-bottom: 6px;
  font-size: .875rem;
  font-weight: 600;
}

/* jQuery-UI-Autocomplete an das Theme anpassen */
/* z-index-Kette: Inhalt < .rf-alpha 50 < .rf-header 80 < .rf-nav 100
   < .rf-backdrop 1050 < Bootstrap-Modal 1055 < .rf-offcanvas 1100
   < .ui-autocomplete 1150 < .modal.rf-modal-fallback 1200 */
.ui-autocomplete {
  z-index: 1150;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow);
}
.ui-autocomplete .ui-menu-item-wrapper {
  padding: 8px 12px;
  border-radius: var(--rf-radius-sm);
  color: var(--rf-text);
  font-size: .9375rem;
}
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
  background: var(--rf-navy);
  border: 0;
  color: #ffffff;
  margin: 0;
}

/* =========================================================================
   5. HEADER
   ========================================================================= */

.rf-header {
  position: relative;
  /* Über dem Sticky-Band (100): Theme-/Sprach-Dropdowns gehören zum Header und
     dürfen nicht vom Band überdeckt werden. Unkritisch fürs Sticky-Verhalten,
     weil der Header wegscrollt, bevor das Band etwas überlagern könnte. */
  z-index: 110;
  background: var(--rf-header-bg);
  color: var(--rf-header-text);
  border-bottom: 1px solid var(--rf-border);
}

.rf-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.rf-logo { display: inline-flex; align-items: center; }
.rf-logo img { display: block; width: 190px; height: auto; }

/* Das Logo trägt eine dunkle Wortmarke – im Dark Mode braucht es eine helle Kachel,
   sonst verschwindet „RABATTFEE.DE" (gleiche Regel wie für die Shop-Logos). */
.rf-logo img,
.rf-footer__logo img {
  background: var(--rf-logo-tile);
  border-radius: var(--rf-radius-sm);
  padding: 6px 10px;
}
/* Im hellen Modus sitzt das Logo ohnehin auf heller Fläche – Kachel wieder aus. */
:root[data-theme="light"] .rf-logo img,
:root[data-theme="light"] .rf-footer__logo img {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

/* Zähler – EIN Markup für Desktop und Mobile */
.rf-counters {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: var(--rf-text-muted);
  white-space: nowrap;
}
/* Gold nur in der kontrastsicheren Textvariante (#8f6414 auf Hell, #f0c877 im Dark) */
.rf-counter .rf-icon { font-size: 1.15rem; color: var(--rf-gold-600); }
.rf-counter a { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.rf-counter a:hover { color: var(--rf-link-hover); }
.rf-counter strong { color: var(--rf-text); font-size: 1rem; }

.rf-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme-Toggle & Sprachwähler */
.rf-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: transparent;
  color: var(--rf-text);
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.rf-iconbtn:hover { border-color: var(--rf-gold); color: var(--rf-gold-600); background: var(--rf-surface-alt); }
.rf-iconbtn--wide { width: auto; padding-inline: 12px; font-size: .875rem; font-weight: 600; }

/* Icon-Buttons im Navy-Band brauchen helle Schrift – in beiden Themes.
   (--rf-text waere im hellen Theme dunkel und damit auf Navy unlesbar.) */
.rf-nav .rf-iconbtn {
  color: #ffffff;                          /* 12,3:1 auf --rf-nav-bg #1e3653 */
  border-color: rgba(255, 255, 255, .28);
}
.rf-nav .rf-iconbtn:hover {
  color: var(--rf-gold);                   /* 5,7:1 (Light) / 6,6:1 (Dark) auf Navy */
  border-color: var(--rf-gold);
  background: rgba(255, 255, 255, .06);
}

/* Standard ist Dunkel: der Mond zeigt den aktiven Zustand. */
.rf-theme-toggle .rf-icon-sun { display: none; }
.rf-theme-toggle .rf-icon-moon { display: block; }
:root[data-theme="light"] .rf-theme-toggle .rf-icon-sun { display: block; }
:root[data-theme="light"] .rf-theme-toggle .rf-icon-moon { display: none; }

.rf-lang { position: relative; }
.rf-lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 120;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow-lg);
}
.rf-lang__menu[hidden] { display: none; }
.rf-lang__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--rf-radius-sm);
  background: transparent;
  color: var(--rf-text);
  font: inherit;
  font-size: .9375rem;
  text-align: left;
  cursor: pointer;
}
.rf-lang__menu button:hover { background: var(--rf-surface-alt); }
/* Aktive Sprache im CI-Gold (Auftraggeber-Wunsch 29.08.); --rf-gold-600 ist der
   theme-abhängige Textgold-Token und bleibt in beiden Themes AA-konform. */
.rf-lang__menu button[aria-current="true"] { background: var(--rf-navy-100); font-weight: 700; color: var(--rf-gold-600); }
.rf-lang__flag { font-size: 1.1rem; line-height: 1; }
.rf-lang__code {
  min-width: 2.2em;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--rf-text-muted);
}

/* Navigationsleiste */
/* Sticky-Band: haftet bei top:0, weil es im DOM ein Geschwister von <header> ist.
   Bewusst reines CSS – kein Scroll-Listener, kein position:fixed mit Platzhalter
   (beides wäre unnötiger Repaint- bzw. CLS-Aufwand). Kein backdrop-filter:
   der Hintergrund ist in beiden Themes deckendes CI-Navy. */
.rf-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rf-nav-bg);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
.rf-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
}

.rf-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-menu > li { position: relative; }
.rf-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 14px;
  color: #ffffff;
  font-size: .9375rem;
  font-weight: 600;
}
.rf-menu > li > a:hover,
.rf-menu > li > a[aria-current="page"] { color: var(--rf-gold); }
.rf-menu > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--rf-gold); }

.rf-submenu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 95;
  min-width: 250px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--rf-border);
  border-radius: 0 0 var(--rf-radius) var(--rf-radius);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.rf-menu > li:hover > .rf-submenu,
.rf-menu > li:focus-within > .rf-submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.rf-submenu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--rf-radius-sm);
  color: var(--rf-text);
  font-size: .9375rem;
}
.rf-submenu a:hover { background: var(--rf-surface-alt); color: var(--rf-link-hover); }

/* Suchfeld */
.rf-search { flex: 1 1 320px; max-width: 420px; }

/* Startseite: Doppelte Suche vermeiden. Solange die Hero-Suche im Viewport steht,
   bleibt die Suche im Sticky-Band verborgen (rabattfee.js, IntersectionObserver).
   Ohne JavaScript wird .is-hidden nie gesetzt – die Band-Suche ist dann immer da.
   Bewusst visibility statt display: das Feld behält seinen Platz (kein Layout-Shift,
   Menü und Burger springen nicht) und ist verborgen nicht per Tab erreichbar.
   Die globale prefers-reduced-motion-Regel schaltet die Transition mit ab. */
.rf-nav .rf-search {
  /* Einblenden: sofort sichtbar, dann sanft einfaden. */
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.rf-nav .rf-search.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  /* Ausblenden: visibility erst NACH dem Ausfaden umschalten, damit die
     Animation sichtbar bleibt und das Feld danach nicht mehr fokussierbar ist. */
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.rf-search form {
  display: flex;
  align-items: stretch;
  border-radius: var(--rf-radius-pill);
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  overflow: hidden;
}
.rf-search input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 8px 8px 8px 18px;
  border: 0;
  background: transparent;
  color: var(--rf-text);
  font: inherit;
  font-size: .9375rem;
}
.rf-search input:focus { outline: 0; }
.rf-search input::placeholder { color: var(--rf-text-muted); opacity: 1; }
.rf-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  border: 0;
  background: transparent;
  color: var(--rf-gold-600);
  font-size: 1.2rem;
  cursor: pointer;
}
.rf-search button:hover { color: var(--rf-navy); }

/* Mobile-Header */
.rf-header__mobile { display: none; }
.rf-burger { display: none; }

@media (max-width: 991.98px) {
  .rf-header__top { flex-wrap: wrap; gap: 12px; padding-block: 10px; }
  .rf-logo img { width: 150px; }
  .rf-header__tools { order: 2; }
  .rf-counters {
    order: 4;
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--rf-border);
  }
  .rf-counter { font-size: .8125rem; }
  /* Mobil enthält das Sticky-Band nur die Suche – bewusst flach gehalten,
     damit es möglichst wenig Viewport kostet. */
  :root { --rf-sticky-h: 56px; }
  .rf-nav__inner { min-height: 0; padding-block: 6px; gap: 8px; }
  .rf-menu { display: none; }
  .rf-search { max-width: none; flex: 1 1 auto; min-width: 0; }
  .rf-search input { min-height: 42px; }
  .rf-search button { width: 42px; }
  /* Menü-Button im Band – Touch-Ziel 44x44 px */
  .rf-burger { display: inline-flex; flex: none; }
}

/* Offcanvas-Menü */
.rf-offcanvas {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1100;
  width: min(340px, 88vw);
  padding: 20px;
  background: var(--rf-surface);
  border-right: 1px solid var(--rf-border);
  box-shadow: var(--rf-shadow-lg);
  transform: translateX(-102%);
  transition: transform .25s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rf-offcanvas.is-open { transform: none; }
.rf-offcanvas__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.rf-offcanvas__head img { width: 150px; }
.rf-offcanvas ul { list-style: none; margin: 0 0 20px; padding: 0; }
.rf-offcanvas > .rf-offcanvas__nav > ul > li > a {
  display: block;
  padding: 12px 8px;
  border-bottom: 1px solid var(--rf-border);
  color: var(--rf-text);
  font-weight: 600;
}
.rf-offcanvas .rf-submenu-mobile { margin: 0; padding: 4px 0 8px 12px; }
.rf-offcanvas .rf-submenu-mobile a {
  display: block;
  padding: 8px;
  color: var(--rf-text-muted);
  font-size: .9375rem;
}
.rf-offcanvas .rf-submenu-mobile a:hover { color: var(--rf-link-hover); }
.rf-offcanvas__contact { font-size: .875rem; color: var(--rf-text-muted); }

.rf-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--rf-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.rf-backdrop.is-open { opacity: 1; visibility: visible; }

body.rf-no-scroll { overflow: hidden; }

/* =========================================================================
   6. COUPON-KARTE – zentrale Komponente
   Keine Inline-Styles, kein <script> pro Karte. Alles Verhalten ist in
   rabattfee.js delegiert (Container-Listener).
   ========================================================================= */

.rf-coupons { display: grid; gap: 14px; }

.rf-coupon {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 132px;
}
.rf-coupon:hover {
  border-color: var(--rf-gold);
  transform: translateY(-2px);
  box-shadow: var(--rf-shadow);
}

/* Discount-Badge links – feste Maße gegen Layout-Shift */
.rf-coupon__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding: 6px;
  border-radius: var(--rf-radius);
  background: var(--rf-badge-bg);
  color: var(--rf-badge-text);
  text-align: center;
  line-height: 1.1;
}
.rf-coupon__badge-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.rf-coupon__badge-value--sm { font-size: 1rem; }
.rf-coupon__badge-label {
  margin-top: 2px;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
}

/* Shop-Logo in der Karte (Kategorie-/Such-Ansicht; auf der Shopseite redundant) */
.rf-coupon__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding: 8px;
  border-radius: var(--rf-radius);
  background: var(--rf-logo-tile);   /* Logos brauchen immer weißen Grund */
  border: 1px solid var(--rf-border);
}
.rf-coupon__logo img { max-height: 100%; width: auto; object-fit: contain; }

.rf-coupon__body { min-width: 0; }

.rf-coupon__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.rf-coupon__title {
  margin: 0 0 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--rf-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rf-coupon__terms {
  margin: 0 0 6px;
  font-size: .8125rem;
  color: var(--rf-text-muted);
}

.rf-coupon__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: .8125rem;
  color: var(--rf-text-muted);
}

/* Ablaufdatum SICHTBAR – nicht mehr nur im title-Attribut eines Icons */
.rf-coupon__valid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rf-coupon__valid--soon { color: var(--rf-gold-600); font-weight: 600; }
.rf-coupon__valid--today { color: var(--rf-danger); font-weight: 700; }
.rf-coupon__valid--expired { color: var(--rf-text-muted); }

/* Sekundärer Pfad: „Mehr Details" ist ein Textlink, kein Button */
.rf-coupon__toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--rf-link);
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
}
.rf-coupon__toggle:hover { color: var(--rf-link-hover); }
.rf-coupon__toggle[hidden] { display: none; }
.rf-coupon__toggle .rf-icon { transition: transform .2s ease; }
.rf-coupon__toggle[aria-expanded="true"] .rf-icon { transform: rotate(180deg); }

.rf-coupon__details {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-surface-alt);
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--rf-text-muted);
}
.rf-coupon__details[hidden] { display: none; }

/* CTA rechts (Desktop) / vollbreit unten (Mobil) */
.rf-coupon__cta { display: flex; align-items: center; }
.rf-coupon__cta .rf-btn { min-width: 172px; }

/* Ticket-Optik NUR beim Code-CTA – CI-Signal aus dem Altbestand */
.rf-btn--ticket {
  border: 2px dashed var(--rf-gold);
  background: var(--rf-cta-bg);
  color: var(--rf-cta-text);
}
.rf-btn--ticket:hover {
  background: var(--rf-cta-bg-hover);
  color: var(--rf-cta-text);
  border-color: var(--rf-gold);
}

/* Abgelaufene Coupons – gedimmt, Badge grau */
/* DESIGN-BRIEF nennt ~55 % Deckkraft; 65 % hält den Text auch für schwache Sehkraft lesbar
   und dimmt die Karte trotzdem deutlich. Sie liegt ohnehin im eingeklappten Block. */
.rf-coupon--expired { opacity: .65; }
.rf-coupon--expired:hover { opacity: .85; transform: none; border-color: var(--rf-border); box-shadow: none; }
.rf-coupon--expired .rf-coupon__badge {
  background: var(--rf-navy-100);
  color: var(--rf-text-muted);
}

@media (max-width: 767.98px) {
  .rf-coupon {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .rf-coupon__badge,
  .rf-coupon__logo { width: 72px; height: 72px; }
  .rf-coupon__badge-value { font-size: 1.25rem; }
  .rf-coupon__cta { grid-column: 1 / -1; }
  .rf-coupon__cta .rf-btn { width: 100%; min-height: 46px; }
  .rf-coupon__title { font-size: 1rem; }
}

/* Aufklappbare Sektion „Abgelaufene Gutscheine" */
.rf-expired-section {
  margin-top: 32px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  background: var(--rf-surface);
  overflow: hidden;
}
.rf-expired-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--rf-text);
}
.rf-expired-section > summary::-webkit-details-marker { display: none; }
.rf-expired-section > summary .rf-icon { transition: transform .2s ease; }
.rf-expired-section[open] > summary .rf-icon { transform: rotate(180deg); }
.rf-expired-section__body { padding: 0 18px 18px; }

/* =========================================================================
   7. PRODUKT-/SLIDER-KARTE („Gutscheine im Fokus", Suchergebnis-Shops)
   ========================================================================= */

.rf-promo {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  text-align: center;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.rf-promo:hover { border-color: var(--rf-gold); transform: translateY(-2px); box-shadow: var(--rf-shadow); }

.rf-promo__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: var(--rf-radius-sm);
  background: var(--rf-logo-tile);
  border: 1px solid var(--rf-border);
}
.rf-promo__thumb img { max-height: 100%; width: auto; object-fit: contain; }

.rf-promo__meta {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.rf-promo__title {
  flex: 1;
  margin: 0 0 12px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-promo .rf-btn { width: 100%; }
.rf-promo__valid {
  margin-top: 8px;
  font-size: .75rem;
  color: var(--rf-text-muted);
}

/* Swiper-Grundgerüst (Bibliothek liefert Transform, wir nur die Optik) */
.rf-slider { position: relative; }
/* Defensiv: Swiper 6 bringt overflow:hidden auf .swiper-container mit, Swiper 8+
   nur noch auf .swiper. Damit die Slides bei einem Bibliotheks-Update nicht
   waagerecht aus der Seite laufen, klemmen wir sie hier selbst ab. */
.rf-slider .swiper-container,
.rf-slider .swiper { overflow: hidden; }
.rf-slider .swiper-slide { height: auto; }
.rf-slider .swiper-slide > * { height: 100%; }
.rf-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 1px solid var(--rf-border);
  border-radius: 50%;
  background: var(--rf-surface);
  color: var(--rf-text);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--rf-shadow);
}
.rf-slider__nav:hover { border-color: var(--rf-gold); color: var(--rf-gold-600); }
.rf-slider__nav--prev { left: -8px; }
.rf-slider__nav--next { right: -8px; }
.rf-slider__nav.swiper-button-disabled { opacity: .35; cursor: default; }
@media (max-width: 767.98px) { .rf-slider__nav { display: none; } }

/* ---- Kampagnen-Banner (Swiper) ----
   aspect-ratio aus den echten Bannermaßen 970x310 = 97/31. Der Container
   reserviert die Höhe damit schon vor dem Laden – kein Layout-Shift. */
.rf-banner { position: relative; }
.rf-banner__viewport {
  overflow: hidden;
  /* Der Swiper-6-Build der Live-Seite setzt padding:30px auf .swiper-container.
     Für das Banner soll das Bild die Karte randlos füllen. */
  padding: 0;
  border-radius: var(--rf-radius);
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
}
.rf-banner .swiper-wrapper { display: flex; }
.rf-banner .swiper-slide { width: 100%; flex: none; }
.rf-banner .swiper-slide > a { display: block; }
.rf-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 97 / 31;
  object-fit: cover;
}

/* Fallback ohne JavaScript: ohne Swiper stünden alle sechs Banner untereinander.
   rabattfee.js setzt .rf-banner--ready nach der Initialisierung – bewusst eine
   EIGENE Klasse, weil Swiper 6 (.swiper-container-initialized) und Swiper 8+
   (.swiper-initialized) unterschiedlich benennen. */
.rf-banner:not(.rf-banner--ready) .swiper-slide + .swiper-slide { display: none; }
.rf-banner:not(.rf-banner--ready) .rf-banner__dots,
.rf-banner:not(.rf-banner--ready) .rf-banner__nav { display: none; }

.rf-banner__nav { z-index: 6; }
.rf-banner__nav.rf-slider__nav--prev { left: 12px; }
.rf-banner__nav.rf-slider__nav--next { right: 12px; }

.rf-banner__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.rf-banner__dots .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3);
  opacity: 1;
  cursor: pointer;
  transition: background-color .15s ease, width .15s ease;
}
.rf-banner__dots .swiper-pagination-bullet-active {
  width: 22px;
  border-radius: var(--rf-radius-pill);
  background: var(--rf-gold);
}

@media (max-width: 575.98px) {
  .rf-banner__nav { display: none; }
  .rf-banner__dots { bottom: 6px; }
}

/* Hero der Startseite – statisch, LCP-freundlich */
.rf-hero {
  padding-block: 44px 40px;
  background: linear-gradient(180deg, var(--rf-navy) 0%, var(--rf-navy-700) 100%);
  color: #ffffff;
  text-align: center;
}
.rf-hero h1 { color: #ffffff; margin-bottom: 12px; }
.rf-hero__sub {
  max-width: 62ch;
  margin: 0 auto 22px;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, .86);
}
.rf-hero__search { max-width: 620px; margin-inline: auto; }
.rf-hero__search form {
  display: flex;
  border-radius: var(--rf-radius-pill);
  overflow: hidden;
  background: #ffffff;
}
.rf-hero__search input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 10px 12px 10px 22px;
  border: 0;
  background: transparent;
  color: #1c2733;
  font: inherit;
  font-size: 1rem;
}
.rf-hero__search input:focus { outline: 0; }
.rf-hero__search input::placeholder { color: #526175; opacity: 1; }
.rf-hero__search button {
  padding-inline: 24px;
  border: 0;
  background: var(--rf-gold);
  color: var(--rf-btn-gold-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.rf-hero__search button:hover { background: var(--rf-gold-600); color: var(--rf-btn-gold-hover-text); }
.rf-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: rgba(255, 255, 255, .82);
}
/* Trust-Text in Grün (Auftraggeber-Wunsch 29.08.). Fester heller Wert statt
   var(--rf-success): der Hero ist in BEIDEN Themes navy, das dunkle
   Light-Theme-Grün wäre hier unlesbar. #4ade80 auf Navy = 6,7:1 (AA). */
.rf-hero__trust li { display: flex; align-items: center; gap: 8px; color: #4ade80; }
.rf-hero__trust .rf-icon { color: var(--rf-gold); font-size: 1.1rem; }

/* =========================================================================
   8. KATEGORIE- & SHOP-RASTER
   ========================================================================= */

.rf-cat {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.rf-cat:hover { border-color: var(--rf-gold); transform: translateY(-3px); box-shadow: var(--rf-shadow); }
.rf-cat__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--rf-surface-alt); }
.rf-cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.rf-cat:hover .rf-cat__media img { transform: scale(1.04); }
/* Kategoriebilder im dunklen Standard dämpfen, im hellen Modus voll zeigen. */
.rf-cat__media img { filter: brightness(.9); }
:root[data-theme="light"] .rf-cat__media img { filter: none; }
.rf-cat__body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.rf-cat__title { margin: 0 0 6px; font-size: 1.0625rem; }
.rf-cat__title a { color: var(--rf-text); }
.rf-cat__title a:hover { color: var(--rf-link-hover); }
.rf-cat__count {
  margin-bottom: 8px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--rf-gold-600);
}
.rf-cat__teaser {
  flex: 1;
  margin: 0 0 12px;
  font-size: .875rem;
  color: var(--rf-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rf-cat__link { font-size: .875rem; font-weight: 600; }

/* Kategorie-Kacheln (Startseite, kompakt) */
.rf-cattile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  color: var(--rf-text);
  font-size: .9375rem;
  font-weight: 600;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.rf-cattile:hover {
  border-color: var(--rf-gold);
  background: var(--rf-surface-alt);
  color: var(--rf-text);
  transform: translateY(-2px);
}
.rf-cattile .rf-icon { font-size: 1.35rem; color: var(--rf-gold-600); }

/* Shop-Kachel */
.rf-shoptile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  color: var(--rf-text);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color .15s ease, transform .15s ease;
}
.rf-shoptile:hover { border-color: var(--rf-gold); color: var(--rf-text); transform: translateY(-2px); }
.rf-shoptile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  padding: 4px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-logo-tile);
}
.rf-shoptile__logo img { max-height: 100%; width: auto; object-fit: contain; }

/* A–Z-Sprungleiste. Das sticky sitzt am WRAPPER, nicht an der <ul>:
   ein sticky-Element haftet nur innerhalb seines Elternelements, und das
   wäre bei der Liste selbst genau eine Listenhöhe – also gar nicht. */
.rf-alpha-wrap {
  position: sticky;
  top: calc(var(--rf-sticky-h) + 8px);
  z-index: 50;
}
.rf-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
  padding: 12px;
  list-style: none;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  background: var(--rf-surface);
  box-shadow: var(--rf-shadow-sm);
}
.rf-alpha a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding-inline: 6px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  color: var(--rf-text);
  font-size: .875rem;
  font-weight: 700;
}
.rf-alpha a:hover { background: var(--rf-navy); border-color: var(--rf-navy); color: var(--rf-gold); }

.rf-letter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 16px;
  scroll-margin-top: calc(var(--rf-sticky-h) + 76px);
}
.rf-letter h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: var(--rf-radius-sm);
  background: var(--rf-navy);
  color: var(--rf-gold);
  font-size: 1.25rem;
}
.rf-letter::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rf-border);
}

/* Sektionen langer Listen entlasten den Renderer */
.rf-letter-block { content-visibility: auto; contain-intrinsic-size: auto 420px; }

/* Live-Filter über der Shopliste */
.rf-listfilter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.rf-listfilter .rf-input { max-width: 340px; }
.rf-listfilter__count { font-size: .875rem; color: var(--rf-text-muted); }

.rf-empty {
  padding: 32px;
  border: 1px dashed var(--rf-border);
  border-radius: var(--rf-radius);
  background: var(--rf-surface);
  text-align: center;
  color: var(--rf-text-muted);
}

/* =========================================================================
   9. SHOP-DETAIL
   ========================================================================= */

.rf-shophero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 18px 0 28px;
  padding: 22px;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow-sm);
}
.rf-shophero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 96px;
  flex: none;
  padding: 10px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  background: var(--rf-logo-tile);
}
.rf-shophero__logo img { max-height: 100%; width: auto; object-fit: contain; }
.rf-shophero__body { flex: 1 1 300px; min-width: 0; }
.rf-shophero h1 { margin-bottom: 8px; }
.rf-shophero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--rf-text-muted);
}
.rf-shophero__facts li { display: flex; align-items: center; gap: 7px; }
.rf-shophero__facts .rf-icon { color: var(--rf-gold-600); font-size: 1.05rem; }
.rf-shophero__facts strong { color: var(--rf-text); }
.rf-byline {
  font-size: .8125rem;
  /* Grün wie die übrigen "Geprüft"-Elemente (Auftraggeber-Wunsch 29.08.);
     der Token ist pro Theme kontrastkonform definiert. */
  color: var(--rf-success);
}

/* Sidebar-Widgets */
.rf-widget {
  margin-bottom: 20px;
  padding: 18px;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
}
.rf-widget__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rf-border);
  font-size: 1.0625rem;
}
.rf-widget__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-logo-tile);
}
.rf-widget__logo img { max-height: 100%; width: auto; object-fit: contain; }
.rf-facts { margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.rf-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rf-border);
}
.rf-facts li:last-child { border-bottom: 0; }
.rf-facts dt, .rf-facts .rf-facts__key { color: var(--rf-text-muted); }
.rf-facts strong { text-align: right; }
.rf-widget__text { font-size: .9375rem; color: var(--rf-text-muted); }
.rf-widget__text p:last-child { margin-bottom: 0; }

.rf-taglist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rf-taglist a {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-pill);
  background: var(--rf-surface-alt);
  color: var(--rf-text);
  font-size: .8125rem;
  font-weight: 600;
}
.rf-taglist a:hover { border-color: var(--rf-gold); color: var(--rf-link-hover); }

/* Redaktionsblock mit nummerierten Schritten */
/* Lesebreite begrenzt UND als Block zentriert – sonst klebt der Text links
   und rechts bleibt sichtbar Leerraum (Entwickler-Feedback 10.09.). */
.rf-prose { max-width: 78ch; margin-inline: auto; }
.rf-prose h2 { margin-top: 36px; }
.rf-prose h3 { margin-top: 26px; }
.rf-prose p, .rf-prose li { color: var(--rf-text); }
/* Content-Bilder in Redaktionstexten (z. B. Kategorie-Partials aus kategorien-content/):
   volle Breite, abgerundet, ohne Layout-Shift-Risiko dank height:auto. */
.rf-prose__figure { margin: 22px 0; }
.rf-prose__figure img,
.rf-prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.rf-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rf-step;
}
.rf-steps > li {
  position: relative;
  padding: 20px 18px 18px 18px;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
}
.rf-steps > li::before {
  counter-increment: rf-step;
  content: counter(rf-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--rf-navy);
  color: var(--rf-gold);
  font-weight: 800;
  font-size: 1rem;
}
.rf-steps h3 { margin: 0 0 6px; font-size: 1rem; }
.rf-steps p { margin: 0; font-size: .9375rem; color: var(--rf-text-muted); }

/* =========================================================================
   10. ACCORDION
   ========================================================================= */

.rf-accordion { display: grid; gap: 10px; }
.rf-accordion__item {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius);
  overflow: hidden;
}
.rf-accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--rf-text);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.rf-accordion__btn:hover { color: var(--rf-link-hover); }
.rf-accordion__btn .rf-icon { flex: none; font-size: 1.1rem; transition: transform .2s ease; }
.rf-accordion__btn[aria-expanded="true"] { color: var(--rf-gold-600); }
.rf-accordion__btn[aria-expanded="true"] .rf-icon { transform: rotate(180deg); }
.rf-accordion__panel {
  padding: 0 18px 18px;
  font-size: .9375rem;
  color: var(--rf-text-muted);
  border-top: 1px solid var(--rf-border);
  padding-top: 16px;
}
.rf-accordion__panel[hidden] { display: none; }
.rf-accordion__panel p:last-child { margin-bottom: 0; }

.rf-faq-group { margin-bottom: 40px; }
.rf-faq-group > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.rf-faq-group > h2 .rf-icon { color: var(--rf-gold-600); }

/* =========================================================================
   11. PAGINATION & „MEHR ANZEIGEN"
   ========================================================================= */

.rf-loadmore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.rf-loadmore__status {
  font-size: .875rem;
  color: var(--rf-text-muted);
  min-height: 1.4em;
}

.rf-pagination { margin-top: 32px; }
.rf-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rf-pagination a,
.rf-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 10px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-surface);
  color: var(--rf-text);
  font-size: .9375rem;
  font-weight: 600;
}
.rf-pagination a:hover { border-color: var(--rf-gold); color: var(--rf-link-hover); }
.rf-pagination [aria-current="page"] {
  background: var(--rf-navy);
  border-color: var(--rf-navy);
  color: var(--rf-gold);
}
.rf-pagination .is-disabled { opacity: .45; pointer-events: none; }

/* =========================================================================
   12. MODAL (Code-Reveal) – Bootstrap-Modal bleibt die Mechanik
   ========================================================================= */

/* Fallback, falls bootstrap.bundle.min.js nicht geladen wird –
   der Gutscheincode muss trotzdem sichtbar werden. */
.modal.rf-modal-fallback {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1200;
  overflow-y: auto;
  background: var(--rf-overlay);
  opacity: 1;
}
.modal.rf-modal-fallback .modal-dialog {
  max-width: 560px;
  margin: 48px auto;
  transform: none;
}

#detailModalDiv .modal-content {
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  background: var(--rf-surface);
  color: var(--rf-text);
}
#detailModalDiv .modal-body { padding: 28px 26px 26px; }

.rf-modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.rf-modal__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 64px;
  flex: none;
  padding: 6px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-logo-tile);
}
.rf-modal__logo img { max-height: 100%; width: auto; object-fit: contain; }
.rf-modal__title { margin: 0; font-size: 1.0625rem; line-height: 1.35; }

.rf-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rf-border);
  border-radius: 50%;
  background: var(--rf-surface);
  color: var(--rf-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}
.rf-modal__close:hover { color: var(--rf-text); border-color: var(--rf-gold); }

.rf-code {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border: 2px dashed var(--rf-gold);
  border-radius: var(--rf-radius);
  background: var(--rf-gold-100);
  font-family: var(--rf-font-mono);
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2rem);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--rf-text);
  text-align: center;
  user-select: all;
  overflow-wrap: anywhere;
}
.rf-code--none {
  border-style: solid;
  border-color: var(--rf-border);
  background: var(--rf-surface-alt);
  font-family: var(--rf-font);
  font-size: 1rem;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--rf-text-muted);
}

.rf-modal__actions { display: grid; gap: 10px; margin-bottom: 20px; }
@media (min-width: 576px) { .rf-modal__actions { grid-template-columns: 1fr 1fr; } }

.rf-modal__terms {
  padding: 14px 16px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  background: var(--rf-surface-alt);
  font-size: .875rem;
  color: var(--rf-text-muted);
}
.rf-modal__terms h3 { margin: 0 0 6px; font-size: .9375rem; color: var(--rf-text); }
.rf-modal__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: .8125rem;
  color: var(--rf-text-muted);
}
.rf-modal__dates strong { color: var(--rf-text); font-weight: 600; }

/* Kopier-Feedback */
.rf-copy-ok { color: var(--rf-success) !important; border-color: var(--rf-success) !important; }

/* =========================================================================
   13. STATISCHE SEITEN, FORMULARE, 404
   ========================================================================= */

.rf-page {
  max-width: 900px;
  margin-inline: auto;
  padding: 28px;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow-sm);
}
@media (max-width: 575.98px) { .rf-page { padding: 20px 16px; } }
.rf-page h2 { margin-top: 32px; }
.rf-page h2:first-of-type { margin-top: 0; }
.rf-page h3 { margin-top: 24px; font-size: 1.0625rem; }
.rf-page img { border-radius: var(--rf-radius-sm); }
.rf-page figure { margin: 0 0 28px; text-align: center; }
.rf-page figcaption { margin-top: 8px; font-size: .8125rem; color: var(--rf-text-muted); }
.rf-page .rf-indent { margin-left: 20px; }

.rf-quote {
  margin: 0 0 24px;
  padding: 18px 22px;
  border-left: 4px solid var(--rf-gold);
  background: var(--rf-surface-alt);
  border-radius: 0 var(--rf-radius-sm) var(--rf-radius-sm) 0;
  font-style: italic;
}
.rf-quote footer { margin-top: 6px; font-style: normal; font-weight: 700; font-size: .875rem; }

.rf-form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rf-form-grid .rf-field--full { grid-column: 1 / -1; }

.rf-404 { text-align: center; padding-block: 64px; }
.rf-404__code {
  font-size: clamp(4rem, 3rem + 8vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--rf-gold);
  margin: 0 0 8px;
}
.rf-404 .rf-hero__search { margin-inline: auto; }
.rf-404__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* Google-Ads-Zertifikate in der Footer-Logo-Spalte: klein und dezent,
   damit der Footer nicht höher wird. */
.rf-footer__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  max-width: 200px;   /* bricht auf Logobreite um, wie die Tagline darüber */
}
.rf-footer__badges li { display: inline-flex; }
.rf-footer__badges img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--rf-logo-tile);
}

/* =========================================================================
   14. FOOTER
   ========================================================================= */

/* Footer hell wie im Original (#f2f8fd) – das Logo trägt eine dunkle Wortmarke
   und wäre auf Navy kaum lesbar. */
.rf-footer {
  margin-top: 64px;
  background: var(--rf-surface-alt);
  border-top: 1px solid var(--rf-border);
  color: var(--rf-text-muted);
}

.rf-footer__top {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-block: 48px 32px;
}
.rf-footer__logo img { width: 200px; }
/* Tagline auf Logobreite begrenzen. Umbruch ausschließlich an Wortgrenzen –
   kein hyphens, kein break-word: der Key footer.slogan existiert in fünf
   Sprachen, deren längstes Wort ("Gutscheinportal") unter 200px bleibt. */
.rf-footer__tagline {
  max-width: 200px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.rf-footer h2 {
  margin: 0 0 16px;
  color: var(--rf-text);
  font-size: 1rem;
  letter-spacing: .02em;
}
.rf-footer ul { margin: 0; padding: 0; list-style: none; }
.rf-footer li { margin-bottom: 10px; }
.rf-footer a { color: var(--rf-text-muted); font-size: .9375rem; }
.rf-footer a:hover { color: var(--rf-link-hover); }
.rf-footer__disclosure {
  padding: 16px 0;
  border-top: 1px solid var(--rf-border);
  font-size: .8125rem;
}
.rf-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 18px 24px;
  border-top: 1px solid var(--rf-border);
  font-size: .875rem;
}
.rf-footer__bottom p { margin: 0; }

.rf-scrolltop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rf-border);
  border-radius: 50%;
  background: var(--rf-surface);
  color: var(--rf-text);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: var(--rf-shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
.rf-scrolltop.is-visible { opacity: 1; visibility: visible; }
.rf-scrolltop:hover { border-color: var(--rf-gold); color: var(--rf-gold-600); }

/* =========================================================================
   15. UTILITIES / MOTION / PRINT
   ========================================================================= */

.rf-mt-0 { margin-top: 0 !important; }
.rf-mb-0 { margin-bottom: 0 !important; }
.rf-mb-2 { margin-bottom: 16px !important; }
.rf-mb-3 { margin-bottom: 24px !important; }
.rf-mb-4 { margin-bottom: 32px !important; }
.rf-text-center { text-align: center; }
.rf-muted { color: var(--rf-text-muted); }
.rf-nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .rf-header, .rf-nav, .rf-footer, .rf-scrolltop, .rf-offcanvas, .rf-backdrop { display: none !important; }
  body { background: #fff; color: #000; }
  .rf-coupon, .rf-card { break-inside: avoid; }
}
