/*********************************************************
  GLOBAL RESET (safe)
**********************************************************/
*, *::before, *::after{ box-sizing:border-box; }

/*********************************************************
  BASIS / VARIABLEN
**********************************************************/
:root{
  --rb-primary:#60a5fa;
  --rb-primary-soft:rgba(96,165,250,0.18);
  --rb-primary-soft2:rgba(96,165,250,0.10);

  --rb-text-main:#0f172a;

  --rb-card-radius:22px;
  --rb-card-blur:14px;

  --rb-card-shadow:0 6px 14px rgba(15,23,42,0.05);
  --rb-card-shadow-hover:0 10px 20px rgba(15,23,42,0.08);
  --rb-card-outline:rgba(15,23,42,0.03);

  --rb-card-car-filter:drop-shadow(0 10px 14px rgba(15,23,42,0.10));

  --rb-wrap-pad-x:16px;
  --rb-pill-h:40px;
  --rb-pill-pad-x:14px;
  --rb-pill-radius:999px;
}

/*********************************************************
  WRAPPER
**********************************************************/
.rb-vehicles-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:1.15rem var(--rb-wrap-pad-x) 2.2rem;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--rb-text-main);
}

/*********************************************************
  EMBED / FIT-CONTENT MODE
  -> Wenn nur 1–2 Modelle angezeigt werden, kann der Block
     automatisch „shrink-to-fit“ werden, damit du daneben
     z.B. ein Bild setzen kannst.
**********************************************************/
.rb-app-root.rb-fit-content{
  display:inline-block;
  width:fit-content;
  max-width:100%;
}

.rb-app-root.rb-fit-content .rb-vehicles-wrap{
  width:fit-content;
  max-width:none;
  margin:0;
  padding:0;
}

.rb-app-root.rb-fit-content .rb-app-grid{
  grid-template-columns:repeat(auto-fit, minmax(280px, 340px));
  justify-content:start;
}

/*
  SINGLE CARD FIX
  Wenn nur 1 Modell angezeigt wird, wird die 2-Spalten-Mobile-Grid zu schmal.
  -> volle Breite + keine Bild/Text-Kollision
  (Klasse wird im Frontend per JS gesetzt)
*/
/*
  Zusätzlich: Manche Fahrzeugbilder haben unten viel Transparenz.
  Dadurch sitzt das Fahrzeug optisch höher und kann in den Textbereich rutschen.
  In der Single-Ansicht geben wir dem Layout deshalb einen definierten Puffer.
*/
.rb-app-grid.rb-app-grid--single .rb-card{
  row-gap:0.75rem;
}
.rb-app-grid.rb-app-grid--single .rb-card-media{
  padding-top:1.05rem;
  align-items:center;
}
.rb-app-grid.rb-app-grid--single .rb-card-top,
.rb-app-grid.rb-app-grid--single .rb-card-title-wrap{
  z-index:6;
}

.rb-app-grid.rb-app-grid--single .rb-card-title-wrap{
  margin-bottom:1.20rem;
}
@media (max-width:899px){
  .rb-app-grid.rb-app-grid--single{ grid-template-columns:1fr; }

  /* Fit-Content Mode ist für 1 Modell auf Mobile nicht gewünscht */
  .rb-app-root.rb-fit-content.rb-single{
    display:block;
    width:100%;
  }
  .rb-app-root.rb-fit-content.rb-single .rb-vehicles-wrap{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:1.15rem var(--rb-wrap-pad-x) 2.2rem;
  }
  .rb-app-root.rb-fit-content.rb-single .rb-app-grid{
    grid-template-columns:1fr;
    justify-content:stretch;
  }
}

@media (min-width:900px){
  .rb-app-root.rb-fit-content .rb-app-grid{
    grid-template-columns:repeat(auto-fit, minmax(320px, 360px));
  }
}

/*********************************************************
  TOOLBAR
**********************************************************/
.rb-toolbar--v2{
  display:flex;
  flex-direction:column;
  gap:0.55rem;
  margin-bottom:0.65rem;
}

.rb-toolbar-row--filters{
  display:flex;
  gap:0.5rem;
  align-items:center;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-bottom:2px;
}
.rb-toolbar-row--filters::-webkit-scrollbar{display:none;}

@media (min-width:900px){
  .rb-toolbar--v2{
    flex-direction:row;
    align-items:flex-start;
    justify-content:space-between;
    gap:0.9rem;
  }
  .rb-toolbar-row--filters{
    overflow:visible;
    flex-wrap:wrap;
    padding-bottom:0;
    max-width:calc(100% - 320px);
  }
  .rb-toolbar-row--search{
    width:320px;
    flex:0 0 320px;
    margin-left:auto;
  }
}

.rb-toolbar-row--filters{
  border-bottom:1px solid rgba(15,23,42,0.12);
  padding-bottom:6px;
}

.rb-pill{
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;

  border:0;
  border-radius:0;
  background:transparent;

  color:rgba(15,23,42,0.55);
  font-size:0.92rem;
  font-weight:900;
  letter-spacing:0.01em;
  cursor:pointer;

  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;

  transition:color 0.15s ease;
  white-space:nowrap;
  flex:0 0 auto;
  position:relative;
}

.rb-pill::after{
  content:'';
  position:absolute;
  left:0; right:0;
  bottom:-7px;
  height:2px;
  background:transparent;
}

.rb-pill:hover{ color:rgba(15,23,42,0.82); }

.rb-pill--active{
  color:rgba(15,23,42,0.94);
  background:transparent;
}

.rb-pill--active::after{
  background:rgba(15,23,42,0.94);
}

.rb-searchv2{width:100%;}
.rb-searchv2-input{
  width:100%;
  height:var(--rb-pill-h);
  border-radius:12px;
  padding:0 calc(var(--rb-pill-pad-x) + 2px);

  border:1px solid rgba(255,255,255,0.22);
  background:rgba(255,255,255,0.70);
  color:rgba(15,23,42,0.82);
  font-size:0.95rem;
  font-weight:700;
  outline:none;

  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);

  box-shadow:0 4px 10px rgba(15,23,42,0.04), inset 0 1px 0 rgba(255,255,255,0.72);
  transition:background 0.15s ease, border-color 0.15s ease;
}
.rb-searchv2-input::placeholder{color:rgba(15,23,42,0.45);}
.rb-searchv2-input:focus{
  background:rgba(255,255,255,0.86);
  border-color:rgba(96,165,250,0.55);
}

.rb-status-line{
  margin:0.35rem 0 0.85rem;
  font-size:0.74rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:rgba(15,23,42,0.38);
  font-weight:900;
}

/*********************************************************
  GRID
**********************************************************/
.rb-app-grid{
  display:grid;
  gap:0.85rem;
  grid-template-columns:repeat(2, minmax(0,1fr));

  --rb-card-media-h:142px;
  --rb-card-min-h:326px;

  --rb-card-title-size:0.98rem;
  --rb-card-title-lines:2;

  --rb-card-top-glow-h:190px;
}

@media (min-width:900px){
  .rb-vehicles-wrap{padding:1.7rem 1.5rem 3rem;}
  .rb-app-grid{
    gap:1.05rem;
    grid-template-columns:repeat(4, minmax(0,1fr));

    --rb-card-media-h:175px;
    --rb-card-min-h:392px;

    --rb-card-title-size:1.06rem;
    --rb-card-title-lines:2;

    --rb-card-top-glow-h:220px;
  }
}

/*********************************************************
  CARD
**********************************************************/
.rb-card{
  position:relative;
  display:grid;
  grid-template-rows:auto auto var(--rb-card-media-h) auto;
  min-width:0;

  border-radius:var(--rb-card-radius);
  padding:0.90rem;

  background:
    radial-gradient(120% 85% at 50% 112%, rgba(255,255,255,0.76) 0%, rgba(255,255,255,0.00) 62%),
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 56%, rgba(255,255,255,0.86) 100%);

  border:none;
  color:var(--rb-text-main);
  cursor:pointer;
  overflow:hidden;

  backdrop-filter:blur(var(--rb-card-blur));
  -webkit-backdrop-filter:blur(var(--rb-card-blur));

  box-shadow:
    var(--rb-card-shadow),
    0 0 0 1px var(--rb-card-outline),
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(255,255,255,0.28);

  transition:transform 0.15s ease, box-shadow 0.15s ease;
  min-height:var(--rb-card-min-h);
}

.rb-card::before{
  content:"";
  position:absolute;
  left:-18%;
  right:-18%;
  top:-104px;
  height:calc(var(--rb-card-top-glow-h) + 180px);
  background:
    radial-gradient(70% 120% at 50% 18%, var(--rb-primary-soft) 0%, var(--rb-primary-soft2) 38%, rgba(255,255,255,0) 74%),
    linear-gradient(180deg, rgba(96,165,250,0.07) 0%, rgba(255,255,255,0) 76%);
  filter:blur(18px);
  opacity:0.92;
  pointer-events:none;
}

.rb-card:hover{
  transform:translateY(-1px);
  box-shadow:
    var(--rb-card-shadow-hover),
    0 0 0 1px var(--rb-card-outline),
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(255,255,255,0.28);
}

.rb-card:focus-visible{
  outline:2px solid rgba(96,165,250,0.55);
  outline-offset:2px;
}

/* Top row */
.rb-card-top{
  position:relative;
  z-index:3;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:0.6rem;
  margin-bottom:0.45rem;
  min-width:0;
}
.rb-card-brand{display:flex;gap:0.55rem;align-items:center;min-width:0;}

.rb-card-brand-logo-wrap{
  width:38px;height:38px;border-radius:14px;
  display:grid;place-items:center;overflow:hidden;
  background:rgba(15,23,42,0.05);
  border:1px solid rgba(255,255,255,0.18);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  flex:0 0 auto;
}
@media (min-width:900px){
  .rb-card-brand-logo-wrap{width:42px;height:42px;}
}
.rb-card-brand-logo{width:100%;height:100%;object-fit:contain;display:block;}

.rb-card-brand-text{display:flex;flex-direction:column;gap:0.12rem;min-width:0;}
.rb-card-brand-name{
  font-size:0.78rem;
  font-weight:850;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:rgba(15,23,42,0.50);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rb-card-badge-draft{
  display:inline-flex;
  align-self:flex-start;
  font-size:0.70rem;
  padding:0.15rem 0.45rem;
  border-radius:999px;
  background:rgba(245,158,11,0.16);
  border:1px solid rgba(245,158,11,0.35);
  color:rgba(146,64,14,0.95);
  font-weight:900;
}

.rb-card-caret{
  flex:0 0 auto;
  width:30px;height:30px;border-radius:12px;
  display:grid;place-items:center;
  color:rgba(15,23,42,0.52);
  background:rgba(255,255,255,0.55);
  border:1px solid rgba(255,255,255,0.20);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.65);
}

/* Title */
.rb-card-title-wrap{position:relative;z-index:3;min-width:0;margin-bottom:0.40rem;}
.rb-card-title{
  margin:0;
  font-size:var(--rb-card-title-size);
  line-height:1.12;
  font-weight:950;
  letter-spacing:0.01em;

  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;

  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:var(--rb-card-title-lines);
  overflow:hidden;
}

/* Subtitle 2 lines */
.rb-card-subtitle{
  margin:0.20rem 0 0;
  font-size:0.82rem;
  line-height:1.28;
  color:rgba(15,23,42,0.56);

  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;

  white-space:normal;
}

@media (min-width:900px){
  .rb-card-subtitle{
    font-size:0.86rem;
    -webkit-line-clamp:2;
  }
}

/* Media */
.rb-card-media{
  position:relative;z-index:1;
  height:var(--rb-card-media-h);
  width:100%;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding-top:0.10rem;
  min-width:0;
}
.rb-card-media-img{
  position:relative;z-index:1;
  width:100%;height:100%;
  object-fit:contain;
  display:block;
  filter:var(--rb-card-car-filter);
}

/* Footer */
.rb-card-footer{
  position:relative;z-index:1;
  margin-top:0.48rem;
  display:flex;
  flex-direction:column;
  gap:0.16rem;

  padding:0.52rem 0.56rem;
  border-radius:18px;

  background:
    radial-gradient(120% 100% at 25% 0%, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.42) 58%, rgba(255,255,255,0.34) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.40) 100%);

  border:1px solid rgba(255,255,255,0.18);

  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);

  box-shadow:
    0 5px 12px rgba(15,23,42,0.04),
    inset 0 1px 0 rgba(255,255,255,0.72),
    inset 0 -1px 0 rgba(15,23,42,0.02);

  min-width:0;
}

.rb-card-specstrip{
  display:grid;
  grid-template-columns:minmax(0, 1.75fr) minmax(0, 1.25fr) minmax(0, 0.80fr);
  gap:0.34rem;
  align-items:center;
  min-width:0;
}

.rb-spec-item{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:0.24rem;
  padding:0.28rem 0.32rem;

  min-width:0;
  max-width:100%;
  border-radius:999px;

  background:rgba(255,255,255,0.52);
  border:1px solid rgba(255,255,255,0.20);

  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);

  box-shadow:inset 0 1px 0 rgba(255,255,255,0.68);
  color:rgba(15,23,42,0.74);
}

.rb-spec-ic{
  width:13px;height:13px;
  flex:0 0 auto;
  opacity:0.80;
}

.rb-spec-val{
  min-width:0;
  max-width:10.5ch;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  font-weight:950;
  font-variant-numeric:tabular-nums;

  font-size:clamp(0.74rem, 0.9vw, 0.82rem);
}

.rb-card-footer-price{
  margin-top:0.28rem;
  color:rgba(15,23,42,0.58);
  font-size:0.78rem;
  font-weight:560;
  letter-spacing:0.01em;
}

/* Mobile: Specs swipen */
@media (max-width:640px){
  .rb-card-specstrip{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:0.44rem;
    align-items:center;

    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:2px;

    scroll-snap-type:x proximity;
    touch-action:pan-x;

    min-width:0;
  }
  .rb-card-specstrip::-webkit-scrollbar{display:none;}

  .rb-spec-item{
    flex:0 0 auto;
    min-width:max-content;
    max-width:85%;
    scroll-snap-align:start;
    padding:0.32rem 0.40rem;
    gap:0.32rem;
  }
  .rb-spec-val{font-size:0.80rem;max-width:12ch;}
}

@media (min-width:900px){
  .rb-card-specstrip{
    grid-template-columns:minmax(0, 1.55fr) minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap:0.40rem;
  }
  .rb-spec-item{
    padding:0.30rem 0.38rem;
    gap:0.30rem;
  }
  .rb-spec-val{
    max-width:14ch;
    font-size:0.86rem;
  }
}

/*********************************************************
  MODAL + HERO
**********************************************************/
.rb-modal-backdrop{
  position:fixed;inset:0;
  background:rgba(15,23,42,0.65);
  backdrop-filter:blur(4px);
  z-index:2147483645;
}
.rb-modal{
  position:relative;width:100%;height:100%;
  max-width:none;max-height:none;margin:0;border-radius:0;
  background:#ffffff;
  overflow-y:auto;
  animation:rb-modal-slide-down 0.3s ease-out;
  z-index:2147483646;
  scrollbar-width:none;
}
.rb-modal::-webkit-scrollbar{display:none;}
@keyframes rb-modal-slide-down{from{transform:translateY(-6%);opacity:0}to{transform:translateY(0);opacity:1}}
.rb-modal-close{
  position:fixed;top:1rem;right:1rem;
  width:34px;height:34px;border-radius:999px;border:none;
  background:rgba(248,250,252,0.96);
  font-size:1.35rem;line-height:1;cursor:pointer;color:#111827;
  z-index:2147483647;
}

.rb-detail-page{display:flex;flex-direction:column;background:#ffffff;}
.rb-hero{
  position:relative;min-height:100vh;
  background-size:cover;background-position:center;
  border-radius:0;overflow:hidden;
}
.rb-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to bottom, rgba(15,23,42,0.35), rgba(15,23,42,0.7));
  mix-blend-mode:multiply;
}
.rb-hero-inner{
  position:relative;z-index:1;
  max-width:1200px;margin:0 auto;
  height:100%;min-height:100vh;
  padding:3rem 1.5rem 4.5rem;
  display:flex;flex-direction:column;align-items:flex-start;
}
.rb-hero-brand-row{display:flex;align-items:center;gap:0.5rem;margin-bottom:auto;}
.rb-hero-brand-logo{width:140px !important;max-width:140px !important;height:auto !important;display:block;}
.rb-hero-title{
  margin:0 0 0.4rem !important;
  font-size:clamp(2.4rem,3.5vw,3.2rem);
  line-height:1.05;font-weight:800;letter-spacing:0.01em;
  color:#ffffff !important;
}
.rb-hero-subtitle{
  margin:0 0 1rem !important;
  font-size:1.05rem;font-weight:300;
  max-width:640px;color:#e5e7eb !important;
}
.rb-hero-meta{margin-top:0.1rem;display:flex;flex-wrap:wrap;gap:1.8rem;font-size:0.95rem;}
.rb-hero-price{font-weight:700;}
.rb-hero-stats-row{margin-top:22rem;display:flex;flex-wrap:wrap;gap:2.4rem;}
.rb-hero-stat-label{font-size:0.8rem;letter-spacing:0.18em;text-transform:uppercase;opacity:0.95;}
.rb-hero-stat-value{
  font-size:1.15rem;font-weight:800;margin-top:0.18rem;
  border-bottom:2px solid rgba(248,250,252,0.9) !important;
  padding-bottom:0.25rem;
}
.rb-hero-inner,.rb-hero-inner *{color:#ffffff !important;}

/* =========================================================
   DETAIL AREA (unterhalb Hero) – CLEAN DEALER (harmonisch)
   - mehr Luft zwischen Blocks
   - kein rund / kein harter shadow / keine harten Linien
   - text-image: 1 groß + Thumbs ~150px (RECHTS)
========================================================= */

.rb-detail-body{
  --rb-max: 1200px;
  --rb-pad-x: clamp(16px, 3vw, 28px);
  --rb-pad-y: clamp(34px, 5vw, 64px);

  --rb-text: #0f172a;
  --rb-muted: rgba(15,23,42,0.68);
  --rb-soft: rgba(15,23,42,0.035);
  --rb-soft2: rgba(15,23,42,0.06);

  /* deutlich luftiger als vorher */
  --rb-gap-lg: clamp(54px, 6.5vw, 110px);
  --rb-gap-md: clamp(22px, 2.4vw, 34px);
  --rb-gap-sm: 14px;

  --rb-radius: 28px;
  --rb-radius-sm: 18px;
  --rb-border: rgba(15,23,42,0.06);
  --rb-surface: rgba(255,255,255,0.86);
  --rb-surface2: rgba(15,23,42,0.03);
  --rb-shadow: 0 18px 48px rgba(15,23,42,0.06);
  --rb-shadow2: 0 12px 30px rgba(15,23,42,0.04);

  background: #f7f8fc;
  color: var(--rb-text);
  padding: var(--rb-pad-y) var(--rb-pad-x) calc(var(--rb-pad-y) * 1.2);
}

/* Max width / Layout */
.rb-detail-body-inner{ max-width: var(--rb-max); margin: 0 auto; }
.rb-detail-layout{ display:block; margin-top: var(--rb-gap-lg); }
.rb-detail-main{ min-width:0; }

/* Images */
.rb-detail-body img{ max-width:100%; height:auto; display:block; }

/* Surface Cards (High-End) */
.rb-detail-body .rb-surface{
  border-radius: var(--rb-radius);
  padding: clamp(18px, 2.4vw, 28px);
  background:
    radial-gradient(120% 85% at 18% 0%, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0) 72%),
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(15,23,42,0.02) 100%);
  border: 1px solid var(--rb-border);
  box-shadow: var(--rb-shadow2);
}
.rb-detail-body .rb-surface .rb-block-heading{ margin-top: 0; }

/* Blocks: vertikaler Rhythmus */
.rb-detail-body .rb-block{
  margin: var(--rb-gap-lg) 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.rb-detail-body .rb-detail-main > .rb-block:first-child{ margin-top: 0; }
.rb-detail-body .rb-detail-main > .rb-block:last-child{ margin-bottom: 0; }
.rb-detail-body .rb-block .rb-block{ margin:0; }

/* Headings/Text – sauberer Abstand, weniger “Loch” */
.rb-detail-body .rb-block-heading{
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 3.3vw, 3.2rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.015em;
  color: var(--rb-text);
}
.rb-detail-body .rb-block-text{
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--rb-muted);
  max-width: 72ch;
}
.rb-detail-body .rb-block-heading + .rb-block-text{ margin-top: 0; }

/* Buttons (Detailbereich) */
.rb-detail-body .rb-btn{
  height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  border: 0;
  background: rgba(15,23,42,0.08);
  color: rgba(15,23,42,0.92);
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .14s ease, background .14s ease;
}
.rb-detail-body .rb-btn:hover{ transform: translateY(-1px); background: rgba(15,23,42,0.11); }
.rb-detail-body .rb-btn--primary{ background:#0f172a; color:#fff; }
.rb-detail-body .rb-btn--primary:hover{ background:#111c33; }
.rb-detail-body .rb-btn--ghost{ background: rgba(15,23,42,0.06); color: rgba(15,23,42,0.90); }
.rb-detail-body .rb-btn:focus-visible{ outline: 2px solid rgba(96,165,250,0.55); outline-offset: 3px; }

/* =========================================================
   DETAIL EXTRAS (Highlights, Intro, Specs)
========================================================= */
.rb-detail-body .rb-highlights{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: 0 0 var(--rb-gap-md);
}
.rb-detail-body .rb-highlight-chip{
  padding: 8px 12px;
  background: var(--rb-soft2);
  color: rgba(15,23,42,0.82);
  font-weight: 900;
  font-size: 0.92rem;
}

.rb-detail-body .rb-intro{ margin: 0 0 var(--rb-gap-md); }
.rb-detail-body .rb-intro-text{ margin:0; color: var(--rb-muted); line-height:1.85; max-width: 78ch; }

.rb-detail-body .rb-specs-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin: 0;
}
@media (min-width:980px){
  .rb-detail-body .rb-specs-grid{
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 22px;
  }
}
.rb-detail-body .rb-specbox{ padding: 12px 0; }
.rb-detail-body .rb-specbox-label{
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.52);
  font-weight: 900;
}
.rb-detail-body .rb-specbox-value{
  margin-top: 10px;
  font-size: 1.12rem;
  font-weight: 950;
  color: var(--rb-text);
}
.rb-detail-body .rb-specbox-value--small{ font-size: 1.0rem; }
.rb-detail-body .rb-specbox-sub{
  margin-top: 8px;
  color: rgba(15,23,42,0.62);
  font-weight: 750;
}

/* =========================================================
   BLOCK: stats-row
========================================================= */
.rb-detail-body .rb-stat-row{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
  margin-top: var(--rb-gap-md);
}
@media (min-width:980px){
  .rb-detail-body .rb-stat-row{ grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }
}
.rb-detail-body .rb-stat-item{ padding: 0; }
.rb-detail-body .rb-stat-label{
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.52);
  font-weight: 900;
}
.rb-detail-body .rb-stat-value{
  margin-top: 10px;
  font-size: 1.15rem;
  font-weight: 950;
  color: var(--rb-text);
}
.rb-detail-body .rb-stat-desc{
  margin-top: 10px;
  color: rgba(15,23,42,0.64);
  line-height: 1.65;
  font-weight: 700;
  max-width: 56ch;
}

/* =========================================================
   BLOCK: text-image (DEALER LOOK)
   Links: Text (2 Spalten)
   Rechts: 1 groß + Thumbs (150px) – ohne Lightbox-Klick
   (FIX: nutzt rb-gallery-side / rb-gallery-main-btn / rb-gallery-thumbs)
========================================================= */
.rb-detail-body .rb-block-text-image{
  --ti-col-gap: clamp(34px, 5vw, 74px);
  --ti-thumb: 150px;
  --ti-gap: 16px;

  display:grid;
  grid-template-columns: 1fr;
  gap: var(--rb-gap-md);
  align-items:start;
}
@media (min-width:980px){
  .rb-detail-body .rb-block-text-image{
    grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr);
    column-gap: var(--ti-col-gap);
  }
  .rb-detail-body .rb-block-text-image .rb-block-text{
    column-count: 2;
    column-gap: 56px;
    max-width: none;
  }
}
@media (min-width:980px){
  .rb-detail-body .rb-block-text-image--left .rb-ti-text{ order:2; }
  .rb-detail-body .rb-block-text-image--left .rb-ti-image-wrap{ order:1; }
}
.rb-detail-body .rb-block-text-image .rb-ti-image-wrap{
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

/* --- Gallery Layout im Text-Image Block: Desktop = Main links, Thumbs rechts --- */
.rb-detail-body .rb-block-text-image .rb-gallery-side{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  align-items:start;
}

/* Buttons/Wrapper neutral */
.rb-detail-body .rb-block-text-image .rb-gallery-main-btn,
.rb-detail-body .rb-block-text-image .rb-gallery-thumb{
  border:0;
  padding:0;
  background:transparent;
  overflow:hidden;
  display:block;
}

/* Main image: keine Lightbox-Klicks (Thumbs bleiben klickbar fürs Umschalten) */
.rb-detail-body .rb-block-text-image .rb-gallery-main-btn{
  cursor: default;
  pointer-events:none;
}

/* Main img */
.rb-detail-body .rb-block-text-image .rb-gallery-main-btn img,
.rb-detail-body .rb-block-text-image .rb-gallery-img,
.rb-detail-body .rb-block-text-image .rb-gallery-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Thumbs container */
.rb-detail-body .rb-block-text-image .rb-gallery-thumbs{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

/* Thumbs */
.rb-detail-body .rb-block-text-image .rb-gallery-thumb{
  width:100%;
  height:150px;
  cursor:pointer;
}
.rb-detail-body .rb-block-text-image .rb-gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.rb-detail-body .rb-block-text-image .rb-gallery-thumb--active{
  outline: 2px solid rgba(96,165,250,0.65);
  outline-offset: 2px;
}

/* Mobile/Tablet: Main oben, Thumbs darunter als 2er Grid */
@media (max-width:979px){
  .rb-detail-body .rb-block-text-image .rb-gallery-main-btn{
    grid-column: 1 / -1;
    height: clamp(220px, 46vw, 320px);
    pointer-events:none;
  }
  .rb-detail-body .rb-block-text-image .rb-gallery-thumbs{
    grid-column: 1 / -1;
  }
}

/* Desktop: Main links groß (3 Thumbs hoch), Thumbs rechts (150px) */
@media (min-width:980px){
  .rb-detail-body .rb-block-text-image .rb-gallery-side{
    grid-template-columns: minmax(0, 1fr) var(--ti-thumb);
    gap: var(--ti-gap);
  }

  .rb-detail-body .rb-block-text-image .rb-gallery-main-btn{
    grid-column: 1;
    grid-row: 1 / span 3;
    height: calc((var(--ti-thumb) * 3) + (var(--ti-gap) * 2));
  }

  .rb-detail-body .rb-block-text-image .rb-gallery-thumbs{
    grid-column: 2;
    grid-row: 1 / span 3;

    grid-template-columns: 1fr;
    grid-auto-rows: var(--ti-thumb);
    gap: var(--ti-gap);

    max-height: calc((var(--ti-thumb) * 3) + (var(--ti-gap) * 2));
    overflow:auto;
    padding-right: 2px;
  }

  .rb-detail-body .rb-block-text-image .rb-gallery-thumb{
    width: var(--ti-thumb);
    height: var(--ti-thumb);
  }
}

/* =========================================================
   BLOCK: features-grid
========================================================= */
.rb-detail-body .rb-features-grid{
  margin-top: var(--rb-gap-md);
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
}
@media (min-width:980px){
  .rb-detail-body .rb-features-grid{
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 28px;
  }
}
.rb-detail-body .rb-feature-card{
  padding: 0;
  background: transparent;
  border:0;
  box-shadow:none;
}
.rb-detail-body .rb-feature-icon{ font-size: 1.25rem; margin-bottom: 10px; opacity: 0.9; }
.rb-detail-body .rb-feature-title{ font-weight: 950; color: var(--rb-text); }
.rb-detail-body .rb-feature-desc{
  margin: 10px 0 0;
  color: var(--rb-muted);
  line-height: 1.75;
  font-weight: 650;
  max-width: 52ch;
}

/* =========================================================
   BLOCK: gallery (grid/slider/mosaic) + Lightbox
   (FIX: Slider nutzt rb-gallery-side / rb-gallery-main-btn / rb-gallery-thumbs)
========================================================= */
.rb-detail-body .rb-block-gallery-wrap{ padding:0; }
.rb-detail-body .rb-block-gallery{ padding:0; }

/* Grid */
.rb-detail-body .rb-gallery-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-top: var(--rb-gap-md);
}
@media (min-width:980px){
  .rb-detail-body .rb-gallery-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
}
.rb-detail-body .rb-gallery-tile{
  border: 1px solid rgba(15,23,42,0.05);
  padding:0;
  background: rgba(15,23,42,0.02);
  cursor:pointer;
  overflow:hidden;
  border-radius: var(--rb-radius-sm);
  box-shadow: 0 10px 24px rgba(15,23,42,0.04);
}
.rb-detail-body .rb-gallery-image{
  width:100%;
  height: 200px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .18s ease;
}
@media (min-width:980px){ .rb-detail-body .rb-gallery-image{ height: 210px; } }
.rb-detail-body .rb-gallery-tile:hover .rb-gallery-image{ transform: scale(1.05); }

/* Slider (neu: rb-gallery-side) */
.rb-detail-body .rb-gallery-side{
  margin-top: var(--rb-gap-md);
}

/* Mosaic */
.rb-detail-body .rb-gallery-mosaic{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-top: var(--rb-gap-md);
}
@media (min-width:980px){
  .rb-detail-body .rb-gallery-mosaic{ grid-template-columns: repeat(6, minmax(0,1fr)); gap: 18px; }
}
.rb-detail-body .rb-gallery-mosaic .rb-gallery-tile:nth-child(1){ grid-column: span 2; }
@media (min-width:980px){
  .rb-detail-body .rb-gallery-mosaic .rb-gallery-tile:nth-child(1){ grid-column: span 3; }
  .rb-detail-body .rb-gallery-mosaic .rb-gallery-tile:nth-child(2){ grid-column: span 3; }
  .rb-detail-body .rb-gallery-mosaic .rb-gallery-tile:nth-child(3){ grid-column: span 2; }
  .rb-detail-body .rb-gallery-mosaic .rb-gallery-tile:nth-child(4){ grid-column: span 2; }
  .rb-detail-body .rb-gallery-mosaic .rb-gallery-tile:nth-child(5){ grid-column: span 2; }
}

/* Lightbox */
.rb-noscroll{ overflow:hidden !important; }
.rb-lightbox{
  position:fixed; inset:0;
  z-index:2147483647;
  background: rgba(2,6,23,0.86);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
}
.rb-lightbox-inner{
  width: min(1120px, 100%);
  max-height: calc(100vh - 32px);
  overflow:hidden;
  background:#fff;
  border:0;
  box-shadow: 0 28px 80px rgba(0,0,0,0.32);
  position:relative;
}
.rb-lb-close{
  position:absolute;
  top: 12px; right: 12px;
  width: 44px; height: 44px;
  border:0;
  background: rgba(15,23,42,0.08);
  color:#0f172a;
  font-size: 1.5rem;
  cursor:pointer;
}
.rb-lb-stage{
  width:100%;
  height: min(72vh, 720px);
  background:#0b1220;
  display:flex;
  align-items:center;
  justify-content:center;
}
.rb-lb-img{ max-width:100%; max-height:100%; object-fit:contain; }
.rb-lb-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px;
  background:#fff;
}
.rb-lb-btn{
  width: 48px; height: 48px;
  border:0;
  background: rgba(15,23,42,0.08);
  color:#0f172a;
  font-size: 1.6rem;
  cursor:pointer;
}
.rb-lb-count{
  font-weight: 900;
  color: rgba(15,23,42,0.70);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* =========================================================
   BLOCK: tabbed-gallery
========================================================= */
.rb-detail-body .rb-tabs-head{ display:flex; flex-direction:column; gap: 14px; }
.rb-detail-body .rb-tabs-text{ margin:0; color: var(--rb-muted); line-height:1.78; max-width: 78ch; }

.rb-detail-body .rb-tabs-bar{
  display:flex;
  gap: 10px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding: 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.06);
}
.rb-detail-body .rb-tabs-bar::-webkit-scrollbar{ display:none; }

.rb-detail-body .rb-tab-btn{
  border:0;
  background: transparent;
  padding: 10px 16px;
  cursor:pointer;
  font-weight: 950;
  color: rgba(15,23,42,0.62);
  position:relative;
  white-space:nowrap;
  border-radius: 999px;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}
.rb-detail-body .rb-tab-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.72); }
.rb-detail-body .rb-tab-btn--active{
  background: #0f172a;
  color: #fff;
  box-shadow: 0 14px 34px rgba(15,23,42,0.18);
}
/* =========================================================
   BLOCK: hotspots
========================================================= */
.rb-detail-body .rb-hotspots-wrap{
  margin-top: var(--rb-gap-md);
  position:relative;
  overflow:hidden;
  background: transparent;
}
.rb-detail-body .rb-hotspots-img{ width:100%; height:auto; display:block; }

.rb-detail-body .rb-hotspot-dot{
  position:absolute;
  width: 18px; height: 18px;
  border:0;
  background: var(--rb-primary);
  transform: translate(-50%,-50%);
  cursor:pointer;
  box-shadow: 0 18px 34px rgba(15,23,42,0.18);
}
.rb-detail-body .rb-hotspot-dot::after{
  content:"";
  position:absolute;
  inset:-10px;
  background: rgba(96,165,250,0.20);
  animation: rbPulse 1.6s ease-in-out infinite;
}
@keyframes rbPulse{
  0%,100%{ transform: scale(0.85); opacity: 0.55; }
  50%{ transform: scale(1.05); opacity: 0.25; }
}
.rb-detail-body .rb-hotspot-panel{
  margin-top: 18px;
  padding: 0;
}
.rb-detail-body .rb-hotspot-title{ margin:0; font-weight: 950; color: var(--rb-text); }
.rb-detail-body .rb-hotspot-desc{ margin:10px 0 0; color: var(--rb-muted); line-height:1.8; max-width: 78ch; }

/* =========================================================
   BLOCK: accordion
========================================================= */
.rb-detail-body .rb-accordion-list{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: var(--rb-gap-md);
}
.rb-detail-body .rb-accordion-item{
  background: var(--rb-soft);
  border:0;
  overflow:hidden;
}
.rb-detail-body .rb-accordion-header{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 18px;
  border:0;
  background: transparent;
  cursor:pointer;
  font-weight: 950;
  color: var(--rb-text);
}
.rb-detail-body .rb-accordion-icon{
  font-size: 1.35rem;
  color: rgba(15,23,42,0.55);
  font-weight: 900;
}
.rb-detail-body .rb-accordion-content{
  padding: 0 18px 18px;
  color: var(--rb-muted);
  line-height: 1.85;
  max-width: 85ch;
}

/* =========================================================
   BLOCK: image-text-accordion
========================================================= */
.rb-detail-body .rb-block-image-text-accordion{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--rb-gap-md);
  align-items:start;
}
@media (min-width:980px){
  .rb-detail-body .rb-block-image-text-accordion{
    grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
    gap: clamp(34px, 5vw, 74px);
  }
  .rb-detail-body .rb-block-image-text-accordion .rb-ita-text .rb-block-text{
    column-count: 2;
    column-gap: 56px;
    max-width:none;
  }
}
@media (min-width:980px){
  .rb-detail-body .rb-block-image-text-accordion--left .rb-ita-text{ order:2; }
  .rb-detail-body .rb-block-image-text-accordion--left .rb-ita-media{ order:1; }
}
.rb-detail-body .rb-ita-media{ overflow:hidden; background: transparent; border:0; }
.rb-detail-body .rb-ti-image-placeholder{
  padding: 18px;
  background: var(--rb-soft);
  color: rgba(15,23,42,0.60);
  font-weight: 900;
}
.rb-detail-body .rb-ita-acc{ margin-top: var(--rb-gap-md); }
.rb-detail-body .rb-ita-acc .rb-block{ margin:0; }

/* =========================================================
   BLOCK: floor-plans (Bento / High-End)
========================================================= */
.rb-detail-body .rb-block-floor-plans{
  margin: var(--rb-gap-lg) 0;
}
.rb-detail-body .rb-floor-intro{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.rb-detail-body .rb-floor-intro .rb-block-heading{ margin:0; }
.rb-detail-body .rb-floor-intro .rb-block-text{ margin:0; max-width: 76ch; }

.rb-detail-body .rb-floor-grid{
  margin-top: var(--rb-gap-md);
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width:980px){
  .rb-detail-body .rb-floor-grid{
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
  }
  .rb-detail-body .rb-floor-card{ grid-column: span 6; }
  .rb-detail-body .rb-floor-card:nth-child(1){ grid-column: span 7; }
  .rb-detail-body .rb-floor-card:nth-child(2){ grid-column: span 5; }
}

.rb-detail-body .rb-floor-card{
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: var(--rb-radius);
  box-shadow: 0 18px 46px rgba(15,23,42,0.05);
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.rb-detail-body .rb-floor-media{
  margin:0;
  height: 220px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius: var(--rb-radius-sm);
  background: rgba(15,23,42,0.03);
  border: 1px solid rgba(15,23,42,0.06);
}
.rb-detail-body .rb-floor-media img{
  width:100%;
  height: 220px;
  object-fit: contain;
  display:block;
}
.rb-detail-body .rb-floor-media-fallback{
  color: rgba(15,23,42,0.55);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.rb-detail-body .rb-floor-body{ display:flex; flex-direction:column; gap: 14px; }
.rb-detail-body .rb-floor-head{ display:flex; flex-direction:column; gap: 10px; }
.rb-detail-body .rb-floor-chassis{
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.52);
  font-weight: 950;
}
.rb-detail-body .rb-floor-title-row{ display:flex; align-items:baseline; justify-content:space-between; gap: 12px; }
.rb-detail-body .rb-floor-name{
  margin:0;
  font-size: 1.22rem;
  line-height: 1.15;
  font-weight: 950;
  color: #0f172a;
}
.rb-detail-body .rb-floor-desc{
  margin:0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(15,23,42,0.66);
  font-weight: 650;
  max-width: 68ch;
}
.rb-detail-body .rb-floor-price{
  font-size: 0.92rem;
  font-weight: 950;
  color: rgba(15,23,42,0.88);
}

.rb-detail-body .rb-floor-bento{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.rb-detail-body .rb-floor-kv{
  padding: 12px 12px;
  border-radius: var(--rb-radius-sm);
  background: rgba(15,23,42,0.03);
  border: 1px solid rgba(15,23,42,0.06);
}
.rb-detail-body .rb-floor-kv-label{
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.56);
  font-weight: 900;
}
.rb-detail-body .rb-floor-kv-value{
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 950;
  color: rgba(15,23,42,0.92);
  overflow-wrap:anywhere;
}

.rb-detail-body .rb-floor-actions{ padding-top: 2px; }
.rb-detail-body .rb-floor-actions .rb-btn{ width:100%; height: 46px; }

/* Floor Specs: ohne „Cards in Cards“ */
.rb-detail-body .rb-floor-specs{
  margin-top: 2px;
  border-top: 1px solid rgba(15,23,42,0.10);
}
.rb-detail-body .rb-floor-spec-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.rb-detail-body .rb-floor-spec-row:last-child{ border-bottom: 0; }
.rb-detail-body .rb-floor-spec-label{
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.54);
  font-weight: 950;
}
.rb-detail-body .rb-floor-spec-value{
  font-size: 0.92rem;
  font-weight: 950;
  color: rgba(15,23,42,0.90);
  text-align: right;
  max-width: 52%;
  overflow-wrap:anywhere;
}

/* Floor Grid: max. 4 sichtbar, darüber wischen */
.rb-detail-body .rb-floor-grid--scroll{
  display:flex !important;
  gap: 18px;
  overflow-x:auto;
  padding-bottom: 8px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.rb-detail-body .rb-floor-grid--scroll::-webkit-scrollbar{display:none;}
.rb-detail-body .rb-floor-grid--scroll .rb-floor-card{
  scroll-snap-align:start;
  flex: 0 0 min(320px, calc((100% - 54px)/4));
}
@media (min-width: 640px) and (max-width: 979px){
  .rb-detail-body .rb-floor-grid--scroll .rb-floor-card{
    flex: 0 0 calc((100% - 18px)/2);
  }
}
@media (max-width: 639px){
  .rb-detail-body .rb-floor-grid--scroll .rb-floor-card{
    flex: 0 0 min(340px, 86vw);
  }
}

/* Kontakt Button im Floor: pill-rund */
.rb-detail-body .rb-floor-actions .rb-btn--pill{
  border-radius: 999px;
}


/* =========================================================
   BLOCK: color-selector
========================================================= */
.rb-detail-body .rb-color-wrap{
  margin-top: var(--rb-gap-md);
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width:980px){
  .rb-detail-body .rb-color-wrap{
    grid-template-columns: minmax(0,0.62fr) minmax(0,0.38fr);
    gap: clamp(34px, 5vw, 74px);
  }
}
.rb-detail-body .rb-color-media{
  overflow:hidden;
  background: rgba(15,23,42,0.02);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: var(--rb-radius);
  box-shadow: 0 18px 46px rgba(15,23,42,0.05);
}
.rb-detail-body .rb-color-media img{
  width:100%;
  height: min(60vw, 440px);
  object-fit: cover;
}
@media (min-width:980px){
  .rb-detail-body .rb-color-media img{ height: 440px; }
}
.rb-detail-body .rb-color-swatches{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items:stretch;
}
@media (min-width:980px){
  .rb-detail-body .rb-color-swatches{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.rb-detail-body .rb-swatch{
  width:100%;
  display:grid;
  grid-template-columns: 56px 1fr 18px;
  align-items:center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: var(--rb-radius-sm);
  border: 1px solid rgba(15,23,42,0.06);
  background: rgba(255,255,255,0.80);
  cursor:pointer;
  font-weight: 950;
  color: rgba(15,23,42,0.86);
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.rb-detail-body .rb-swatch:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.92); box-shadow: 0 14px 32px rgba(15,23,42,0.06); }
.rb-detail-body .rb-swatch--active{ border-color: rgba(96,165,250,0.35); box-shadow: 0 18px 44px rgba(96,165,250,0.14); }
.rb-detail-body .rb-swatch-dot{ width: 14px; height: 14px; border-radius: 999px; border: 1px solid rgba(15,23,42,0.10); justify-self:end; }
.rb-detail-body .rb-swatch-label{ font-weight: 950; }
.rb-detail-body .rb-swatch-thumb{
  width:56px; height:44px;
  border-radius: 14px;
  overflow:hidden;
  background: rgba(15,23,42,0.05);
  border: 1px solid rgba(15,23,42,0.06);
}
.rb-detail-body .rb-swatch-thumb img{ width:100%; height:100%; object-fit: cover; display:block; }
.rb-detail-body .rb-swatch-thumb--fallback{ border:0; }


/* =========================================================
   BLOCK: video
========================================================= */
.rb-detail-body .rb-video-wrap{ margin-top: var(--rb-gap-md); }
.rb-detail-body .rb-video-frame{
  width:100%;
  aspect-ratio: 16 / 9;
  overflow:hidden;
  border:0;
  background:#0b1220;
  box-shadow:none;
}
.rb-detail-body .rb-video-frame iframe,
.rb-detail-body .rb-video-frame video{
  width:100%;
  height:100%;
  display:block;
  border:0;
  background:#000;
}

/* =========================================================
   BLOCK: downloads
========================================================= */
.rb-detail-body .rb-dl-list{
  display:flex;
  flex-direction:column;
  gap: 14px;
  margin-top: var(--rb-gap-md);
}
.rb-detail-body .rb-dl-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 16px 14px;
  background: var(--rb-soft);
  border:0;
}
.rb-detail-body .rb-dl-left{ min-width:0; }
.rb-detail-body .rb-dl-title{
  font-weight: 950;
  color: var(--rb-text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rb-detail-body .rb-dl-size{
  margin-top: 8px;
  color: rgba(15,23,42,0.60);
  font-weight: 800;
  font-size: 0.9rem;
}
.rb-detail-body .rb-dl-link{
  height: 44px;
  padding: 0 16px;
  border:0;
  background: rgba(15,23,42,0.08);
  color: rgba(15,23,42,0.92);
  font-weight: 950;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* =========================================================
   BLOCK: route-map
========================================================= */
.rb-detail-body .rb-route-wrap{
  margin-top: var(--rb-gap-md);
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width:980px){
  .rb-detail-body .rb-route-wrap{
    grid-template-columns: minmax(0,0.62fr) minmax(0,0.38fr);
    gap: clamp(34px, 5vw, 74px);
  }
}
.rb-detail-body .rb-route-map{ overflow:hidden; background: transparent; border:0; }
.rb-detail-body .rb-route-map img{ width:100%; height: 380px; object-fit: cover; }
.rb-detail-body .rb-route-side{
  padding: 16px 14px;
  background: var(--rb-soft);
  border:0;
}
.rb-detail-body .rb-route-note{ margin:0; color: var(--rb-muted); line-height: 1.85; font-weight: 750; max-width: 80ch; }
.rb-detail-body .rb-route-stops{
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(15,23,42,0.76);
  line-height: 1.75;
  font-weight: 750;
}
.rb-detail-body .rb-route-stops li{ margin: 6px 0; }

/* =========================================================
   BLOCK: cta-section
========================================================= */
.rb-detail-body .rb-block-cta--simple .rb-cta-content,
.rb-detail-body .rb-block-cta--dealer .rb-cta-content{
  padding: 18px;
  background: rgba(96,165,250,0.10);
  border:0;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.rb-detail-body .rb-block-cta--dealer{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width:980px){
  .rb-detail-body .rb-block-cta--dealer{
    grid-template-columns: minmax(0,0.56fr) minmax(0,0.44fr);
    gap: clamp(34px, 5vw, 74px);
  }
}
.rb-detail-body .rb-cta-media{ overflow:hidden; background: transparent; border:0; }
.rb-detail-body .rb-cta-media img{ width:100%; height: 340px; object-fit: cover; }
@media (min-width:980px){
  .rb-detail-body .rb-cta-media img{ height: 100%; min-height: 360px; }
}

/* =========================================================
   BLOCK: image-text-features
========================================================= */
.rb-detail-body .rb-itf-hero{ overflow:hidden; background: transparent; border:0; }
.rb-detail-body .rb-itf-hero img{
  width:100%;
  height: min(60vw, 460px);
  object-fit: cover;
}
@media (min-width:980px){
  .rb-detail-body .rb-itf-hero img{ height: 460px; }
}
.rb-detail-body .rb-itf-body{
  margin-top: var(--rb-gap-md);
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width:980px){
  .rb-detail-body .rb-itf-body{
    grid-template-columns: minmax(0,0.46fr) minmax(0,0.54fr);
    gap: clamp(34px, 5vw, 74px);
  }
  .rb-detail-body .rb-itf-left .rb-block-text{
    column-count: 2;
    column-gap: 56px;
    max-width:none;
  }
}
.rb-detail-body .rb-itf-right{
  padding: 0;
  background: transparent;
  border:0;
}
.rb-detail-body .rb-itf-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.rb-detail-body .rb-itf-item{
  display:block;
  padding: 16px 0;
  border-top: 1px solid rgba(15,23,42,0.06);
}
.rb-detail-body .rb-itf-item:first-child{ padding-top: 0; border-top: 0; }
.rb-detail-body .rb-itf-title{ font-weight: 950; color: var(--rb-text); }
.rb-detail-body .rb-itf-desc{
  margin-top: 8px;
  color: var(--rb-muted);
  line-height: 1.75;
  font-weight: 650;
  max-width: 70ch;
}

/* =========================================================
   UI States (Loading/Empty/Error)
========================================================= */
.rb-detail-body .rb-state,
.rb-detail-body .rb-empty-state{
  padding: 26px 16px;
  background: var(--rb-soft);
  text-align:center;
  color: rgba(15,23,42,0.72);
}
.rb-detail-body .rb-empty-icon{
  width: 44px; height: 44px;
  display:grid; place-items:center;
  margin: 0 auto 12px;
  background: rgba(15,23,42,0.06);
  color: rgba(15,23,42,0.55);
  font-weight: 950;
}
.rb-detail-body .rb-spinner{
  width: 34px; height: 34px;
  border-radius: 0 !important;
  border: 3px solid rgba(15,23,42,0.14);
  border-top-color: rgba(15,23,42,0.55);
  margin: 0 auto 12px;
  animation: rbSpin .9s linear infinite;
}
@keyframes rbSpin{ to{ transform: rotate(360deg); } }

/* Placeholders */
.rb-detail-body .rb-card-media-placeholder,
.rb-detail-body .rb-card-brand-placeholder{
  background: var(--rb-soft);
  color: rgba(15,23,42,0.60);
  font-weight: 900;
}

/* Fallback Block */
.rb-detail-body .rb-block-fallback{
  margin: var(--rb-gap-lg) 0;
  padding: 0;
  color: var(--rb-muted);
  line-height: 1.85;
  max-width: 80ch;
}

/* SAFETY */
.rb-bottom-cta{ display:none !important; }
.rb-block-quickfacts{ display:none !important; }

/* =========================================================
   GLOBAL GALLERY FIX (ÜBERALL) – Slider/Side + Thumbs
   (damit nicht nur im Detailbereich korrekt)
========================================================= */

/* Base */
.rb-gallery-side{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items:start;
}

/* Main (Button oder Div – robust) */
.rb-gallery-main-btn,
.rb-gallery-main{
  border:0;
  padding:0;
  background:transparent;
  overflow:hidden;
  display:block;
  width:100%;
  height: min(56vw, 520px);
  cursor:pointer;
}
@media (min-width:980px){
  .rb-gallery-main-btn,
  .rb-gallery-main{ height: 440px; }
}

/* Main image */
.rb-gallery-main-btn img,
.rb-gallery-main img,
.rb-gallery-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Thumbs row (default: horizontal) */
.rb-gallery-thumbs{
  display:flex;
  gap: 10px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-bottom:2px;
}
.rb-gallery-thumbs::-webkit-scrollbar{display:none;}

.rb-gallery-thumb{
  border:0;
  padding:0;
  background:transparent;
  overflow:hidden;
  flex:0 0 auto;
  width: 120px;
  height: 84px;
  cursor:pointer;
  opacity: 0.92;
  transition: transform .14s ease, opacity .14s ease;
}
.rb-gallery-thumb:hover{ transform: translateY(-1px); opacity: 1; }
.rb-gallery-thumb img,
.rb-gallery-thumb-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.rb-gallery-thumb--active{
  outline: 2px solid rgba(96,165,250,0.65);
  outline-offset: 2px;
  opacity: 1;
}

/* Optional: alter Slider-Markup bleibt kompatibel (falls irgendwo noch genutzt) */
.rb-gallery-slider{
  display:flex;
  gap: 18px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding: 16px 0 0;
}
.rb-gallery-slider::-webkit-scrollbar{ display:none; }
.rb-gallery-slide{ flex:0 0 auto; width: min(88vw, 680px); }
.rb-gallery-slide .rb-gallery-image{ height: min(56vw, 400px); object-fit:cover; }
@media (min-width:980px){
  .rb-gallery-slide{ width: min(560px, 48vw); }
  .rb-gallery-slide .rb-gallery-image{ height: 340px; }
}

/* =========================================================
   0) Scoped Reset: schützt vor WP Theme Button Styles
========================================================= */
.rb-vehicles-wrap button,
.rb-vehicles-wrap input,
.rb-vehicles-wrap select,
.rb-vehicles-wrap textarea{
  font: inherit;
  color: inherit;
}

.rb-vehicles-wrap button{
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* =========================================================
   1) Mobile Pager Styles fehlen komplett
========================================================= */
.rb-detail-body--mobile{
  padding-top: clamp(22px, 4vw, 34px);
}

.rb-mobile-pager{
  margin-top: var(--rb-gap-md);
}

.rb-mobile-pager-nav{
  position: sticky;
  top: 0;
  z-index: 8;

  display: flex;
  gap: 10px;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  padding: 10px 0 12px;

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.rb-mobile-pager-nav::-webkit-scrollbar{ display:none; }

.rb-mobile-tab{
  flex: 0 0 auto;

  height: 40px;
  padding: 0 14px;

  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(15,23,42,0.06);
  color: rgba(15,23,42,0.72);

  font-weight: 950;
  white-space: nowrap;
}

.rb-mobile-tab--active{
  background: rgba(96,165,250,0.18);
  border-color: rgba(96,165,250,0.32);
  color: rgba(15,23,42,0.92);
}

.rb-mobile-pager-track{
  display: flex;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.rb-mobile-pager-track::-webkit-scrollbar{ display:none; }

.rb-mobile-pane{
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;

  padding-top: 18px;
}

.rb-pane-inner{
  max-width: var(--rb-max);
  margin: 0 auto;
}

/* =========================================================
   2) Fix: Text Image Gallery zielt falsch auf main-btn
   Dein Markup hat rb-gallery-main als Grid Item
========================================================= */

/* Mobile default: 1 Spalte, damit nichts „halb“ steht */
.rb-detail-body .rb-block-text-image .rb-gallery-side{
  grid-template-columns: 1fr;
}

/* Mobile: Main über Thumbs */
@media (max-width:979px){
  .rb-detail-body .rb-block-text-image .rb-gallery-main{
    grid-column: 1 / -1;
    height: clamp(220px, 46vw, 320px);
  }
  .rb-detail-body .rb-block-text-image .rb-gallery-thumbs{
    grid-column: 1 / -1;
  }
}

/* Desktop: Main links groß, Thumbs rechts */
@media (min-width:980px){
  .rb-detail-body .rb-block-text-image .rb-gallery-side{
    grid-template-columns: minmax(0, 1fr) var(--ti-thumb);
    gap: var(--ti-gap);
  }

  .rb-detail-body .rb-block-text-image .rb-gallery-main{
    grid-column: 1;
    grid-row: 1 / span 3;
    height: calc((var(--ti-thumb) * 3) + (var(--ti-gap) * 2));
  }

  .rb-detail-body .rb-block-text-image .rb-gallery-thumbs{
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

/* =========================================================
   3) iOS Scroll Feeling im Modal
========================================================= */
.rb-modal{
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* =========================================================
   4) Hero Stats auf Mobile: 22rem ist zu brutal
========================================================= */
@media (max-width:900px){
  .rb-hero{ min-height: 100svh; }
  .rb-hero-stats-row{
    margin-top: clamp(18px, 10vh, 120px);
    gap: 1.2rem;
  }
}


/*********************************************************
  INTERIOR HIGH-END REFRESH (v1.3.1)
  Ziel: Hersteller-Look, klare Gradlinigkeit, keine „cards in cards“
  Außen-Karten bleiben unverändert.
**********************************************************/

/* Tap/Focus: keine komischen „Striche“ */
.rb-detail-body,
.rb-detail-body *{
  -webkit-tap-highlight-color: transparent;
}
.rb-detail-body a,
.rb-detail-body button{
  text-decoration: none;
}

/* Hero: keine harte Unterstreichung */
.rb-hero-stat-value{
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Surfaces im Detailbereich: weg mit „Card in Card“ */
.rb-detail-body .rb-surface{
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Globaler Rhythmus wie beim Hersteller */
.rb-detail-body{
  background: #f5f6fb;
}
.rb-detail-body .rb-detail-body-inner{
  max-width: 1200px;
}
.rb-detail-body .rb-block{
  margin: clamp(44px, 6vw, 96px) 0 !important;
}

/* Typo: clean, high-end */
.rb-detail-body .rb-block-heading{
  font-size: clamp(2.0rem, 3.1vw, 3.0rem) !important;
  letter-spacing: -0.02em !important;
}

/* Media überall einheitlich */
.rb-detail-body .rb-color-media,
.rb-detail-body .rb-video-frame,
.rb-detail-body .rb-route-map,
.rb-detail-body .rb-cta-media,
.rb-detail-body .rb-itf-hero,
.rb-detail-body .rb-ti-media,
.rb-detail-body .rb-ita-media{
  border-radius: 26px !important;
  overflow: hidden;
}

/* Gallery Thumbs: keine Outline-Linien */
.rb-detail-body .rb-gallery-thumb--active,
.rb-detail-body .rb-block-text-image .rb-gallery-thumb--active{
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(96,165,250,0.28), 0 18px 44px rgba(15,23,42,0.08) !important;
  border-radius: 18px;
}

/* Color Swatches: größer, sauberer, kein „Strich“ */
.rb-detail-body .rb-swatch{
  border-radius: 18px;
}
.rb-detail-body .rb-swatch-thumb{
  width: 74px;
  height: 52px;
  border-radius: 16px;
}
.rb-detail-body .rb-swatch:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(96,165,250,0.20);
}

/* Floor-Plans: perfekte Gradlinigkeit (1/2/3/4 Logik) */
.rb-detail-body .rb-floor-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

/* Mobile: grundsätzlich 2 Spalten, 1 Modell = full width, 3 = 2 oben / 1 unten größer */
@media (max-width: 639px){
  .rb-detail-body .rb-floor-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-detail-body .rb-floor-grid[data-count="1"]{ grid-template-columns: 1fr; }
  .rb-detail-body .rb-floor-grid[data-count="3"] .rb-floor-card:nth-child(3){ grid-column: 1 / -1; }
}

/* Tablet: immer 2 Spalten, 1 Modell = full width */
@media (min-width: 640px) and (max-width: 979px){
  .rb-detail-body .rb-floor-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-detail-body .rb-floor-grid[data-count="1"]{ grid-template-columns: 1fr; }
}

/* Desktop: 1,2,3,4 exakt nebeneinander */
@media (min-width: 980px){
  .rb-detail-body .rb-floor-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rb-detail-body .rb-floor-grid[data-count="1"]{ grid-template-columns: 1fr; }
  .rb-detail-body .rb-floor-grid[data-count="2"]{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-detail-body .rb-floor-grid[data-count="3"]{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rb-detail-body .rb-floor-grid[data-count="4"]{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Floor Card: bento-clean, gleiche Größen */
.rb-detail-body .rb-floor-card{
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(15,23,42,0.08) !important;
  border-radius: 26px !important;
  box-shadow: 0 18px 46px rgba(15,23,42,0.06) !important;
  padding: 16px !important;
  min-height: 100%;
}

/* Floor Media: stabile Proportion, kein Überlappen */
.rb-detail-body .rb-floor-media{
  height: auto !important;
  aspect-ratio: 16 / 9;
  padding: 12px;
  border-radius: 18px !important;
  background: rgba(255,255,255,0.92) !important;
}
.rb-detail-body .rb-floor-media img{
  height: 100% !important;
  width: 100% !important;
  object-fit: contain !important;
}

/* Titles: niemals ins Bild */
.rb-detail-body .rb-floor-name{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bento KV Tiles: gradlinig */
.rb-detail-body .rb-floor-kv{
  border-radius: 18px !important;
  background: rgba(15,23,42,0.035) !important;
}

/* Listen ohne Punkte (falls Theme reinfunkt) */
.rb-detail-body .rb-route-stops{
  list-style: none !important;
  padding-left: 0 !important;
}
.rb-detail-body .rb-route-stops li{
  padding: 8px 0;
  border-top: 1px solid rgba(15,23,42,0.06);
}
.rb-detail-body .rb-route-stops li:first-child{
  border-top: 0;
}


/* Override alte 12er-Grid-Spans komplett */
.rb-detail-body .rb-floor-card,
.rb-detail-body .rb-floor-card:nth-child(1),
.rb-detail-body .rb-floor-card:nth-child(2){
  grid-column: auto !important;
}

/* Floor-Text: gleiche Höhe, sauber */
.rb-detail-body .rb-floor-desc{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Allgemein im Detail: keine Bullet-Points */
.rb-detail-body ul{
  list-style: none;
  padding-left: 0;
}

/* =========================================================
   Kontaktbereich (Contact Form 7)
   Wird automatisch unter jedem [reisemobile_berens] gerendert
========================================================= */

.rb-contact-section{
  width: 100%;
  padding: 44px 0 14px;
}

.rb-contact-inner{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.rb-contact-card{
  border-radius: 28px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 12px 34px rgba(2,6,23,0.08);
  padding: 30px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rb-contact-head{
  margin-bottom: 16px;
}

.rb-contact-title{
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: rgba(15,23,42,0.95);
}

.rb-contact-text{
  margin: 0;
  max-width: 70ch;
  color: rgba(15,23,42,0.64);
  font-size: 14px;
  line-height: 1.55;
}

.rb-contact-form{
  margin-top: 18px;
}

/* CF7 Form Styling */
.rb-contact-section .wpcf7{
  margin: 0;
}

.rb-contact-section .wpcf7 form{
  margin: 0;
}

.rb-contact-section .wpcf7 form p{
  margin: 0 0 12px;
}

.rb-contact-section .wpcf7 form p:last-child{
  margin-bottom: 0;
}

/* Optionales Grid, wenn du es im CF7-Formular als Wrapper nutzt */
.rb-contact-section .rb-cf-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 720px){
  .rb-contact-section .rb-cf-grid{ grid-template-columns: 1fr; }
}

.rb-contact-section .wpcf7-form-control-wrap{
  display: block;
}

.rb-contact-section input[type="text"],
.rb-contact-section input[type="email"],
.rb-contact-section input[type="tel"],
.rb-contact-section input[type="url"],
.rb-contact-section input[type="number"],
.rb-contact-section textarea,
.rb-contact-section select{
  width: 100% !important;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.82);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.35;
  color: rgba(15,23,42,0.90);
  outline: none;
  box-shadow: 0 6px 18px rgba(2,6,23,0.05);
}

.rb-contact-section textarea{
  min-height: 130px;
  resize: vertical;
}

.rb-contact-section input:focus,
.rb-contact-section textarea:focus,
.rb-contact-section select:focus{
  border-color: rgba(15,23,42,0.22);
  box-shadow: 0 10px 26px rgba(2,6,23,0.10);
}

.rb-contact-section .wpcf7-submit{
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: rgba(15,23,42,0.96);
  color: rgba(255,255,255,0.98);
  box-shadow: 0 12px 32px rgba(2,6,23,0.22);
}

.rb-contact-section .wpcf7-submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(2,6,23,0.26);
}

.rb-contact-section .wpcf7-spinner{
  margin-left: 10px;
}

.rb-contact-section .wpcf7-response-output{
  margin: 16px 0 0;
  border-radius: 14px;
}

.rb-contact-section .wpcf7-not-valid-tip{
  font-size: 12px;
  margin-top: 6px;
}

@media (max-width: 720px){
  .rb-contact-section{ padding: 34px 0 10px; }
  .rb-contact-card{ padding: 20px; border-radius: 22px; }
  .rb-contact-title{ font-size: 19px; }
}


/* Kontakt im Modal: bündig mit Detail-Content */
.rb-detail-body .rb-contact-section--modal{
  padding: var(--rb-gap-lg) 0 0;
}
.rb-detail-body .rb-contact-section--modal .rb-contact-inner{
  max-width: none;
  padding: 0;
}
.rb-detail-body .rb-contact-section--modal .rb-contact-card{
  border-radius: var(--rb-radius);
  box-shadow: var(--rb-shadow2);
}
