/* Ratgeber- und Partnerseiten (/mieten, /mieten/{slug}) im Stil der Startseite */

.rg {
  --rg-red: var(--theme-color, #C80040);
  --rg-ink: #080808;
  --rg-muted: #64748b;
  --rg-soft: rgba(248, 248, 255, 1);
  --rg-tile: #fbe6ec;
  --rg-radius: 12px;
  --rg-shadow: 0 2px 12px rgba(33, 37, 41, 0.08);
  width: 100%;
  color: var(--rg-ink);
}

/* Breite kommt von Bootstrap .container, identisch zu Header, Startseite und Footer */
.rg-wrap {
  position: relative;
}

/* ---------- Hero ---------- */
.rg-hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.75), transparent 45%),
    linear-gradient(120deg, #fbd9e2 0%, #fde8d0 100%);
  padding: 28px 0 56px;
}

.rg-crumbs {
  font-size: .8rem;
  color: #475569;
  margin-bottom: 28px;
}

.rg-crumbs a {
  color: inherit;
  text-decoration: none;
}

.rg-crumbs a:hover {
  text-decoration: underline;
}

.rg-crumbs span {
  margin: 0 6px;
  opacity: .6;
}

.rg-hero-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: center;
}

.rg-badge {
  display: inline-block;
  background: var(--rg-red);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.rg h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -.5px;
}

.rg-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 22px;
  max-width: 640px;
}

.rg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rg-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: var(--rg-shadow);
}

.rg-chip i {
  color: var(--rg-red);
}

.rg-hero-tile {
  background: #fff;
  border-radius: 24px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(200, 0, 64, 0.15);
  position: relative;
}

.rg-hero-tile i {
  font-size: 6.5rem;
  color: var(--rg-red);
}

.rg-hero-tile small {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: .72rem;
  color: var(--rg-muted);
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* ---------- Hinweise ---------- */
.rg-note {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.rg-note-box {
  background: #fff;
  border-radius: var(--rg-radius);
  box-shadow: var(--rg-shadow);
  border-left: 4px solid var(--rg-red);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: .92rem;
  line-height: 1.55;
}

.rg-note-box i {
  color: var(--rg-red);
  margin-top: 3px;
}

.rg-note-box p {
  margin: 0;
}

.rg-note-box p + p {
  margin-top: 6px;
  color: var(--rg-muted);
  font-size: .84rem;
}

.rg-note-box a {
  color: var(--rg-red);
  font-weight: 600;
}

/* ---------- Sektionen ---------- */
.rg-section {
  padding: 64px 0;
}

.rg-section.rg-soft {
  background: var(--rg-soft);
}

.rg h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -.3px;
}

.rg-sub {
  color: var(--rg-muted);
  margin: 0 0 28px;
}

.rg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rg-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.rg-card {
  background: #fff;
  border-radius: var(--rg-radius);
  box-shadow: var(--rg-shadow);
  padding: 24px;
  height: 100%;
}

a.rg-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

a.rg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(33, 37, 41, 0.14);
}

.rg-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--rg-tile);
  color: var(--rg-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
  flex: none;
}

.rg-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.rg-card p {
  margin: 0;
  color: var(--rg-muted);
  line-height: 1.55;
  font-size: .95rem;
}

.rg-card .rg-more {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: var(--rg-red);
  font-weight: 600;
  font-size: .9rem;
}

/* ---------- Anbieter ---------- */
.rg-partners {
  display: grid;
  gap: 16px;
}

.rg-partner {
  background: #fff;
  border-radius: var(--rg-radius);
  box-shadow: var(--rg-shadow);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: center;
}

.rg-partner.rg-own {
  outline: 2px solid var(--rg-red);
}

.rg-partner-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rg-red);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rg-partner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 10px 0 0;
  display: inline;
}

.rg-pill {
  display: inline-block;
  background: var(--rg-tile);
  color: var(--rg-red);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  vertical-align: middle;
}

.rg-partner p {
  margin: 6px 0 0;
  color: var(--rg-muted);
  font-size: .93rem;
  line-height: 1.5;
}

.rg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rg-red);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .2s ease, transform .2s ease;
}

.rg-btn:hover {
  color: #fff;
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.rg-btn small {
  font-weight: 400;
  opacity: .8;
}

/* ---------- Tipps und Checkliste ---------- */
.rg-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.rg-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  line-height: 1.5;
  font-size: .95rem;
}

.rg-list .rg-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rg-tile);
  color: var(--rg-red);
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rg-card h2.rg-card-title {
  font-size: 1.25rem;
  margin-bottom: 18px;
}

/* ---------- FAQ ---------- */
.rg-faq {
  display: grid;
  gap: 12px;
}

.rg-faq details {
  background: #fff;
  border-radius: var(--rg-radius);
  box-shadow: var(--rg-shadow);
  padding: 0 22px;
}

.rg-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

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

.rg-faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--rg-red);
  border-bottom: 2px solid var(--rg-red);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform .2s ease, margin .2s ease;
}

.rg-faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.rg-faq details p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--rg-muted);
  line-height: 1.6;
}

/* ---------- Weitere Geräte ---------- */
.rg-more-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rg-device-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--rg-shadow);
  padding: 10px 18px;
  color: var(--rg-ink);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: transform .2s ease;
}

.rg-device-link:hover {
  transform: translateY(-2px);
  color: var(--rg-red);
}

.rg-device-link i {
  color: var(--rg-red);
}

/* ---------- Übersicht ---------- */
.rg-device-card .rg-icon {
  width: 56px;
  height: 56px;
  font-size: 1.4rem;
}

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .rg-hero-grid {
    grid-template-columns: 1fr;
  }

  .rg-hero-tile {
    display: none;
  }

  .rg-grid-3,
  .rg-grid-2 {
    grid-template-columns: 1fr;
  }

  .rg-partner {
    grid-template-columns: 48px 1fr;
  }

  .rg-partner .rg-btn {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .rg-section {
    padding: 44px 0;
  }
}


/* ---------- Produktbilder ---------- */
.rg-hero-tile img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  margin-bottom: 18px;
}

.rg-hero-tile small {
  padding: 0 14px;
  line-height: 1.3;
}

.rg-partner-logo.rg-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eceef5;
  padding: 6px;
}

.rg-partner-logo.rg-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rg-partner:has(.rg-logo-img) {
  grid-template-columns: 72px 1fr auto;
}

.rg-device-img {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rg-soft);
  border-radius: 10px;
  margin-bottom: 16px;
}

.rg-device-img img {
  mix-blend-mode: multiply;
  max-height: 140px;
  max-width: 80%;
  object-fit: contain;
  transition: transform .25s ease;
}

a.rg-card:hover .rg-device-img img {
  transform: scale(1.06);
}

.rg-price {
  margin-top: 8px !important;
  color: var(--rg-red) !important;
  font-weight: 700;
  font-size: .88rem !important;
}

.rg-device-link img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

@media (max-width: 860px) {
  .rg-partner:has(.rg-logo-img) {
    grid-template-columns: 64px 1fr;
  }

  .rg-partner-logo.rg-logo-img {
    width: 64px;
    height: 64px;
  }
}
