/* ==========================================================================
   RIMCI - components.css
   Geteilte Bausteine: Bänder, Glasfläche, Leistungen, Schritte, Fragen, Leiste.
   ========================================================================== */

.band {
  position: relative;
  padding: clamp(64px, 8.5vw, 124px) var(--gutter);
  text-align: center;
}
.band--black { background: var(--black); }
.band--flush { padding-top: 0; }
.band--white { background: var(--white); color: var(--black); }
.band--gray { background: var(--gray); color: var(--black); }

.glass {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--head) + 24px) var(--gutter) 64px;
  background-color: #233034;
  background-position: center;
  background-size: cover;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.glass--1 { background-image: url("../assets/glas-1.jpg"); }
.glass--2 { background-color: #2f2629; background-image: url("../assets/glas-2.jpg"); }
.glass__in { max-width: 44rem; min-width: 0; }
.glass--auto { min-height: 0; }
.glass--auto .glass__in { max-width: none; width: 100%; }

/* ---- Leistungen ---- */
.services {
  display: grid;
  gap: 44px;
  max-width: 1240px;
  margin: clamp(44px, 6vw, 82px) auto 0;
}
.service { display: grid; align-content: start; justify-items: center; gap: 10px; }
.service img { width: 56px; height: 56px; margin-bottom: 6px; }
.service h3 { font: 700 0.875rem/1.3 var(--display); letter-spacing: 0; text-transform: uppercase; }
.service p { max-width: 21rem; text-wrap: pretty; }

@media (min-width: 720px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(3, 1fr); row-gap: 48px; margin-top: 56px; }
}

/* ---- Schritte ---- */
.steps {
  display: grid;
  gap: 36px;
  max-width: 1120px;
  margin: clamp(36px, 4.5vw, 56px) auto 0;
}
.step { display: grid; align-content: start; justify-items: center; gap: 8px; }
.step__no { font: 700 var(--fs-h)/1 var(--display); }
.step h3 { font: 700 0.875rem/1.3 var(--display); letter-spacing: 0; text-transform: uppercase; }
.step p { max-width: 21rem; text-wrap: pretty; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

/* ---- Runde Pfeile ---- */
.rail-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}
.rail-btn:hover { background: var(--orange); }
.rail-btn:disabled { opacity: 0.35; cursor: default; background: var(--white); }
.rail-btn svg { width: 20px; height: 20px; }

/* ---- Fragen-Leiste ---- */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  gap: 22px 12px;
  max-width: 760px;
  margin: clamp(32px, 4vw, 44px) auto 0;
}
.quotes__rail {
  order: -1;
  grid-column: 1 / -1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.quotes__rail::-webkit-scrollbar { display: none; }
.quote { display: grid; align-content: start; justify-items: center; gap: 14px; padding-inline: 4px; scroll-snap-align: start; }
.quote h3 { font: 700 0.875rem/1.3 var(--display); letter-spacing: 0; text-transform: uppercase; text-wrap: balance; }
.quote p { max-width: 30rem; text-wrap: pretty; }
.quotes .rail-btn:first-of-type { justify-self: end; }
.quotes .rail-btn:last-of-type { justify-self: start; }

@media (min-width: 860px) {
  .quotes { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 32px; }
  .quotes__rail { order: 0; grid-column: 2; grid-row: 1; }
  .quotes .rail-btn:first-of-type { grid-column: 1; grid-row: 1; justify-self: center; }
  .quotes .rail-btn:last-of-type { grid-column: 3; grid-row: 1; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rail-btn { transition: none; }
}
