/* ============================================================
   RKS-Tuning GmbH — Page-specific styles
   ============================================================ */

/* ---------- Page-hero eyebrow chip (50% size) ---------- */
.page-hero .eyebrow .chip {
  --eyebrow-chip-size: 22px;
}

/* ---------- Footer logos ---------- */
.footer-logos {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.footer-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* ---------- Home hero slider ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height-desktop);
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(29,61,63,.92) 30%, rgba(29,61,63,.55) 60%, rgba(29,61,63,.15) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* AI badge on content images */
.split .split-img .ai-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-block;
  z-index: 2;
  line-height: 0;
  width: 20px;
  height: 20px;
  overflow: hidden;
}
.split .split-img .ai-badge img {
  width: 20px;
  height: 20px;
  max-height: 20px;
  max-width: 20px;
  display: block;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.8;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}

/* AI badge on hero slides */
.hero-slide .ai-badge.hero-ai {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  z-index: 3;
  line-height: 0;
}
.hero-slide .ai-badge.hero-ai img {
  width: 20px;
  height: 20px;
  display: block;
  opacity: 0.8;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 640px; }
.hero-content h2 { color: var(--color-on-dark-heading); margin-bottom: var(--space-lg); font-size: var(--text-display-size); letter-spacing: var(--text-display-tracking); line-height: var(--text-display-lh); }
.hero-content p { color: var(--color-on-dark); font-size: 19px; margin-bottom: var(--space-xl); }
.hero-content .eyebrow { color: var(--color-on-dark-heading); gap: 11px; font-size: var(--text-label-size); font-weight: var(--text-label-weight); font-family: var(--font-body); margin-bottom: var(--space-md); letter-spacing: var(--text-label-tracking); text-transform: var(--text-label-transform); }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* Google rating widget (static, no cookies) */
.google-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-md);
    padding: 8px 14px;
    background: rgba(29, 61, 63, 0.55);
    border: 1px solid var(--color-on-dark-border);
    border-radius: var(--radius-control);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 14px;
}
.google-rating .google-logo { display: flex; align-items: center; }
.google-rating-score {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--color-on-dark-heading);
    letter-spacing: -0.01em;
}
.google-rating-stars { display: inline-flex; gap: 2px; }
.google-rating-count {
    color: var(--color-on-dark-muted);
    font-size: 13px;
}
.google-rating-date {
    color: rgba(245, 247, 250, 0.45);
    font-size: 12px;
    margin-left: 4px;
}
.google-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--color-on-dark-divider);
    color: var(--color-on-dark-muted);
    font-size: 12px;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.google-rating-link:hover { color: var(--color-on-dark-heading); }
.google-rating-link i, .google-rating-link svg { width: 12px; height: 12px; }
/* dark-hero ghost button: readable on the photo overlay */
.hero .hero-actions .btn-ghost, .hero .btn-ghost { color: var(--color-on-dark-heading); border-color: var(--color-on-dark-border); }
.hero .hero-actions .btn-ghost:hover, .hero .btn-ghost:hover { background: rgba(245,247,250,.08); border-color: var(--color-on-dark); }

/* slide dots */
.hero-dots {
  position: absolute;
  left: var(--container-gutter);
  bottom: var(--space-xl);
  z-index: 3;
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 38px; height: 4px; border-radius: 2px;
  background: rgba(245,247,250,.35);
  transition: background var(--transition-fast), width var(--transition-fast);
}
.hero-dots button.active { background: var(--color-accent); width: 56px; }

/* ---------- Home: service quick cards ---------- */
.service-cards { }
.service-card { display: block; }
.service-card .sc-top { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.service-card .sc-icon {
  flex: 0 0 auto;
  width: var(--service-icon-chip); height: var(--service-icon-chip);
  border-radius: 50%;
  background: var(--service-icon-chip-bg);
  color: var(--service-icon-color);
  display: grid; place-items: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.service-card .sc-icon i, .service-card .sc-icon svg { width: 26px; height: 26px; }
.service-card:hover .sc-icon { background: var(--color-accent); color: #fff; }
.service-card h4 { display: flex; align-items: center; gap: 10px; }
.service-card .arrow { margin-left: auto; color: var(--color-accent); opacity: 0; transform: translateX(-6px); transition: opacity var(--transition-fast), transform var(--transition-fast); }
.service-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* ---------- Home: featured dark band ---------- */
.featured-band { background: var(--color-primary); position: relative; overflow: hidden; }
.featured-band .split-img > img { height: 100%; min-height: 380px; }
.featured-band .split { gap: var(--space-xl); }

/* ---------- Product feature (produkte) ---------- */
.product-feature {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.product-feature .pf-grid { display: grid; grid-template-columns: 1fr 1fr; }
.product-feature .pf-img { background: var(--color-surface); display: grid; place-items: center; padding: var(--space-xl); }
.product-feature .pf-img img { max-height: 340px; width: auto; }
.product-feature .pf-body { padding: var(--space-xl); }
.product-feature .pf-body h3 { margin-bottom: var(--space-md); }
.product-feature .pf-body p { color: var(--color-text); margin-bottom: var(--space-lg); }
.product-feature .check-list li { font-size: var(--text-body-sm-size); }
.product-feature.reverse .pf-img { order: 2; }
.product-feature .size-chips { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-lg); }
.product-feature .size-chips span {
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--color-surface); border: 1px solid var(--color-border);
  font-size: var(--text-body-sm-size); font-weight: 600; color: var(--color-primary);
}

/* legal / text pages */
.legal { max-width: 820px; }
.legal h2 { margin: var(--space-xl) 0 var(--space-md); font-size: var(--text-h4-size); }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin-bottom: var(--space-md); }
.legal ul { margin: 0 0 var(--space-md) var(--space-xl); }
.legal ul li { list-style: disc; margin-bottom: var(--space-sm); }
.legal .toc {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.legal .toc ol { margin-left: var(--space-lg); }
.legal .toc li { list-style: decimal; }
.legal .toc a { color: var(--color-primary); font-weight: 600; }
.legal .toc a:hover { color: var(--color-accent); }

/* anfahrt map */
.map-wrap {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 460px;
  background: var(--color-surface);
}
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-wrap .pin {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: var(--color-white); border-radius: var(--radius-pill);
  padding: 10px 18px; box-shadow: var(--card-shadow);
  display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--color-primary); font-size: var(--text-body-sm-size);
}
.map-wrap .pin i, .map-wrap .pin svg { width: 18px; height: 18px; color: var(--color-accent); }

/* anfahrt map (alternate class used in anfahrt.html) */
.map-embed {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  min-height: 460px;
  background: var(--color-surface);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed .map-static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-embed .map-attribution {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  font-size: 0.7rem;
  color: var(--color-muted, #666);
  background: rgba(255,255,255,0.85);
  text-align: right;
}
.map-embed .map-attribution a { color: var(--color-muted, #666); }

/* anfahrt grid */
.anfahrt-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-xl);
  align-items: stretch;
}
.anfahrt-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--card-radius);
  padding: var(--space-xl);
  box-shadow: var(--card-shadow);
}
.anfahrt-item { display: flex; align-items: flex-start; gap: var(--space-md); }
.anfahrt-item .ci-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--color-accent); color: var(--color-white);
  display: grid; place-items: center;
}
.anfahrt-item .ci-icon i, .anfahrt-item .ci-icon svg { width: 22px; height: 22px; }
.anfahrt-item .ci-label { font-size: var(--text-body-xs-size); text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); font-weight: 700; }
.anfahrt-item .ci-value { font-size: var(--text-body-size); color: var(--color-text); line-height: 1.5; }
.anfahrt-item .ci-value a { color: var(--color-primary); font-weight: 600; }
.anfahrt-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-sm); }

/* brand wall (alle-marken) */
.brand-wall {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  margin-top: var(--space-md);
}
.brand-chip {
  display: inline-flex; align-items: center;
  padding: 10px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-body-sm-size);
  font-weight: 600;
  color: var(--color-text);
  transition: all .2s ease;
}
.brand-chip:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); box-shadow: var(--card-shadow); }

/* featured band (index – dark section with image) */
.featured-band {
  background: var(--color-primary);
  color: var(--color-on-dark);
}
.featured-band .split-text h2, .featured-band .split-text .eyebrow { color: var(--color-on-dark-heading); }
.featured-band .split-text p { color: var(--color-on-dark-muted); }
.featured-band .chip { background: var(--color-accent); }
.featured-band .chip svg { color: var(--color-on-dark-heading); }
.featured-band .check-list li { color: var(--color-on-dark-muted); }
.featured-band .check-list li::before { color: var(--color-accent); }
.featured-band .split-cta { margin-top: var(--space-lg); }
.featured-band .split-img img {
  border-radius: var(--card-radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  max-height: 420px; object-fit: cover; width: 100%;
}
.featured-band .split-img .ai-badge img {
  width: 20px;
  height: 20px;
  max-height: 20px;
  max-width: 20px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.featured-band .split-img { position: relative; }
.featured-band .split-img .ai-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  display: inline-block;
  line-height: 0;
  width: 20px;
  height: 20px;
}
.btn-white {
  background: var(--color-white); color: var(--color-primary);
  border-color: var(--color-white);
}
.btn-white:hover { background: var(--color-accent); color: var(--color-white); }
.btn-white i, .btn-white svg { color: inherit; }

/* ---------- Responsive (pages) ---------- */
@media (max-width: 768px) {
  .product-feature .pf-grid { grid-template-columns: 1fr; }
  .product-feature.reverse .pf-img { order: 0; }
  .product-feature .pf-img img { max-height: 240px; }
  .hero { padding-top: 64px; }
  .page-hero { padding-top: calc(64px + var(--space-section)); }
  .hero-content h1 { font-size: var(--text-display-size); }
  .map-wrap { height: 340px; }
  .map-embed { height: 340px; }
  .anfahrt-grid { grid-template-columns: 1fr; }
  .featured-band .split-img { order: -1; }
}
@media (max-width: 640px) {
  .hero-content p { font-size: 17px; }
  .brand-chip { padding: 8px 14px; font-size: var(--text-body-xs-size); }
}
