/* Projektseiten der Gebäudereinigung Roland.
   Farben aus der Brand-Guideline 2026-07: Navy #004976 (Primär),
   Cyan #00baee (Akzent), Grün #00a806 (nur CTA), helle Flächen #f3f8ff.
   Schrift kommt aus dem Seitenkopf (Roboto). */

.rpj-detail,
.rpj-uebersicht {
  padding: 56px 0;
  background: #fff;
}

.rpj-zurueck {
  font-size: 14px;
  margin: 0 0 18px;
}
.rpj-zurueck a {
  color: #004976;
  text-decoration: none;
  font-weight: 500;
}
.rpj-zurueck a:hover { color: #00baee; }

.rpj-h1 {
  font-size: 34px;
  font-weight: 700;
  color: #004976;
  line-height: 1.25;
  margin: 0 0 10px;
  max-width: 900px;
}
.rpj-h2 {
  font-size: 24px;
  font-weight: 700;
  color: #004976;
  margin: 48px 0 18px;
}
.rpj-meta {
  font-size: 15px;
  color: #5a6b7b;
  margin: 0 0 28px;
}

/* ---------- Eckdaten ---------- */
.rpj-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: #dbe6f2;
  border: 1px solid #dbe6f2;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 40px;
}
.rpj-stat {
  background: #f3f8ff;
  padding: 18px 20px;
  text-align: center;
}
.rpj-stat-wert {
  font-size: 26px;
  font-weight: 700;
  color: #004976;
  line-height: 1.2;
}
.rpj-stat-label {
  font-size: 13px;
  color: #5a6b7b;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 4px;
}

/* ---------- Text mit Titelbild ---------- */
.rpj-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.rpj-text p {
  font-size: 16.5px;
  color: #4a6178;
  line-height: 1.8;
  margin: 0 0 18px;
}
.rpj-text p:last-child { margin-bottom: 0; }

.rpj-titelbild {
  margin: 0;
  position: sticky;
  top: 20px;
}
/* Handyfotos sind meist hochkant. Fester Bildausschnitt hält die Seite ruhig,
   ohne dass ein Bild die Textspalte überragt. */
.rpj-titelbild img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 12px 34px rgba(0, 73, 118, .14);
}

/* ---------- Galerie ---------- */
.rpj-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.rpj-galerie figure { margin: 0; }
/* Quadratisch, weil hoch- und querformatige Handyfotos gemischt ankommen:
   ein einheitliches Raster bleibt ruhig, ohne ein Format stark zu beschneiden. */
.rpj-galerie img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 20px rgba(0, 73, 118, .10);
}
.rpj-galerie picture { display: block; }
.rpj-titelbild picture { display: block; }

/* ---------- Verweis auf die Leistungsseite ---------- */
.rpj-inset {
  margin: 48px 0 0;
  background: linear-gradient(135deg, #004976 0%, #013a5e 100%);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.rpj-inset-text strong {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.rpj-inset-text span {
  color: #bcd9ec;
  font-size: 15px;
}
.rpj-inset-btn {
  background: #00a806;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 40px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 168, 6, .28);
}
.rpj-inset-btn:hover { background: #008c05; color: #fff; }

/* ---------- Übersicht ---------- */
.rpj-intro {
  font-size: 17px;
  color: #4a6178;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 0 32px;
}

.rpj-zahlen {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid #dbe6f2;
  border-bottom: 1px solid #dbe6f2;
  margin: 0 0 32px;
}
.rpj-zahlen div { display: flex; flex-direction: column; }
.rpj-zahlen strong {
  font-size: 30px;
  font-weight: 700;
  color: #004976;
  line-height: 1.1;
}
.rpj-zahlen span {
  font-size: 13.5px;
  color: #5a6b7b;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.rpj-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 30px;
}
.rpj-chip {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  background: #f3f8ff;
  color: #004976;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #dbe6f2;
}
.rpj-chip:hover { background: #e4effb; color: #004976; }
.rpj-chip.is-aktiv {
  background: #004976;
  border-color: #004976;
  color: #fff;
}

.rpj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.rpj-kachel {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2ebf4;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.rpj-kachel:hover {
  border-color: #00baee;
  box-shadow: 0 14px 34px rgba(0, 73, 118, .13);
  transform: translateY(-2px);
}
.rpj-kachel-bild img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #f3f8ff;
}
.rpj-kachel-text {
  padding: 18px 20px 20px;
  display: block;
}
.rpj-kachel-art {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #00baee;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.rpj-kachel-titel {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #004976;
  line-height: 1.35;
  margin-bottom: 6px;
}
.rpj-kachel-meta {
  display: block;
  font-size: 14px;
  color: #5a6b7b;
}

.rpj-leer {
  background: #f3f8ff;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}
.rpj-leer p {
  font-size: 16.5px;
  color: #4a6178;
  margin: 0 0 20px;
}
.rpj-btn {
  display: inline-block;
  background: #00a806;
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 40px;
  text-decoration: none;
}
.rpj-btn:hover { background: #008c05; color: #fff; }

/* ---------- Mobil ---------- */
@media (max-width: 991px) {
  .rpj-split { grid-template-columns: 1fr; gap: 28px; }
  .rpj-titelbild { position: static; order: -1; }
}
@media (max-width: 767px) {
  .rpj-detail, .rpj-uebersicht { padding: 36px 0; }
  .rpj-h1 { font-size: 26px; }
  .rpj-h2 { font-size: 21px; margin: 36px 0 14px; }
  .rpj-stat { padding: 14px 12px; }
  .rpj-stat-wert { font-size: 21px; }
  .rpj-stat-label { font-size: 11.5px; }
  .rpj-inset { padding: 24px 22px; }
  .rpj-inset-btn { width: 100%; text-align: center; }
  .rpj-zahlen { gap: 26px; }
  .rpj-zahlen strong { font-size: 24px; }
}
