/* ════════════════════════════════════════════════════════
   Erfahrungsberichte (erfahrungsberichte.css) – RTG Camping
   Google-Bewertungen (Rating-Header + Karten-Grid oder Empty-State)
   + ausgewählte Referenz-Projekte (Platzhalter). Baukasten &
   Signature 1:1 aus home.css/main.css abgeleitet: Navy dominant,
   Gold sparsam, diagonale Schnittkanten. (.erf-*-Präfix = seiten-eigen)
   ════════════════════════════════════════════════════════ */

/* ── Seiten-Hero (Navy, Gold-Keil, Liniengitter – wie Startseite) ── */
.erf-hero {
  position: relative;
  background: var(--gradient-navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.erf-hero::before {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
  background: linear-gradient(160deg, rgba(255,205,0,.14), rgba(255,205,0,0) 60%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}
.erf-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 100% 46px;
}
.erf-hero-inner { padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(3.5rem, 8vw, 6.5rem); }
.erf-hero-content { max-width: 44rem; }
.erf-hero h1 { color: #fff; font-size: clamp(2.4rem, 6.4vw, 4.4rem); margin: 1rem 0 1.25rem; }
.erf-hero h1 em { color: var(--gold); font-style: normal; }
.erf-hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(255,255,255,.82); max-width: 40rem; line-height: 1.7;
}

/* ════════════════════════════════════════════════════════
   Sterne (Inline-SVG) – gefüllt = Gold, leer = --line
   ════════════════════════════════════════════════════════ */
.erf-stars { display: inline-flex; align-items: center; gap: .15rem; line-height: 0; }
.erf-star { display: block; }
.erf-star.is-full  path { fill: var(--gold); }
.erf-star.is-empty path { fill: var(--line); }
/* Gradient-Stops für teilgefüllte Sterne (Tokens via CSS statt Attribut) */
.erf-stop-gold { stop-color: var(--gold); }
.erf-stop-line { stop-color: var(--line); }

/* ── Rating-Header (Navy-Panel, diagonale Kante) ── */
.erf-rating {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--gradient-navy); color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  margin-bottom: 2.75rem;
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
  box-shadow: var(--shadow-md);
}
.erf-rating::after {
  content: ""; position: absolute; top: 0; right: 0; width: 40%; height: 100%; z-index: -1;
  background: linear-gradient(160deg, rgba(255,205,0,.16), rgba(255,205,0,0) 62%);
  clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%);
}
.erf-rating-score { display: flex; align-items: baseline; gap: .5rem; }
.erf-rating-num {
  font-family: var(--font-display); font-weight: 400; color: var(--gold);
  font-size: clamp(3rem, 8vw, 4.25rem); line-height: 1;
}
.erf-rating-of {
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: 1.05rem; color: rgba(255,255,255,.6);
}
.erf-rating-body { display: flex; flex-direction: column; gap: .55rem; }
.erf-rating-count {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-style: italic; font-weight: 600;
  font-size: .98rem; color: rgba(255,255,255,.82);
}
.erf-rating-g { display: inline-flex; color: var(--gold); }
.erf-rating-btn { justify-self: start; }

@media (min-width: 780px) {
  .erf-rating {
    grid-template-columns: auto 1fr auto;
    gap: 2.25rem; padding: 2.1rem 2.4rem;
  }
  .erf-rating-score {
    padding-right: 2.25rem; border-right: 1px solid rgba(255,255,255,.16);
    flex-direction: column; align-items: flex-start; gap: .1rem;
  }
  .erf-rating-btn { justify-self: end; }
}

/* ── Reviews-Grid ── */
.erf-reviews {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
@media (min-width: 560px)  { .erf-reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .erf-reviews { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .erf-reviews { grid-template-columns: repeat(4, 1fr); } }
.erf-review-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .9rem;
}
.erf-review-card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 46px; background: var(--gold);
}
.erf-review-source {
  position: absolute; top: 1.35rem; right: 1.35rem;
  display: inline-flex; color: var(--muted-2); opacity: .8;
}
.erf-review-head { display: flex; align-items: center; gap: .85rem; }
.erf-avatar {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.05rem;
  letter-spacing: .01em;
}
.erf-review-meta { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.erf-review-name {
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: 1.02rem; color: var(--navy); line-height: 1.2;
}
.erf-review-time { font-size: .82rem; color: var(--muted-2); }
.erf-review-text {
  font-size: .9rem; color: var(--muted); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 8; line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
}
/* Kompakter für 4 Karten pro Reihe */
.erf-review-card { padding: 1.4rem 1.35rem; gap: .7rem; }
.erf-review-source { top: 1.15rem; right: 1.15rem; }
.erf-review-head { gap: .7rem; }
.erf-avatar { width: 40px; height: 40px; font-size: .95rem; }
.erf-review-name { font-size: .94rem; }
/* Aufklappen langer Rezensionen */
.erf-review-text.is-expanded { -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.erf-review-toggle {
  align-self: flex-start; margin-top: -.15rem; padding: 0;
  font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: .82rem;
  color: var(--gold-600); background: none; border: none; cursor: pointer;
}
.erf-review-toggle:hover { text-decoration: underline; }

/* ── Empty-State (ehrlich, kein Fake) ── */
.erf-empty {
  position: relative; overflow: hidden;
  max-width: 40rem; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.75rem;
  box-shadow: var(--shadow-sm);
}
.erf-empty::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  height: 4px; width: 64px; background: var(--gold);
}
.erf-empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%; margin-bottom: 1.35rem;
  background: rgba(0,40,85,.06); color: var(--navy);
}
.erf-empty h3 { margin-bottom: .75rem; }
.erf-empty p {
  color: var(--muted); line-height: 1.7; max-width: 32rem;
  margin: 0 auto 1.75rem;
}

/* ════════════════════════════════════════════════════════
   Ausgewählte Projekte (Referenzen · Platzhalter)
   ════════════════════════════════════════════════════════ */
.erf-projects {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem;
}
.erf-project-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.erf-project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }

/* Foto-Platzhalter (Navy-Fläche, Liniengitter, Gold-Icon) */
.erf-project-media {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 3;
  background: var(--gradient-navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.erf-project-media::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
}
.erf-project-media::after {
  content: ""; position: absolute; top: 0; right: 0; width: 44%; height: 100%; z-index: -1;
  background: linear-gradient(160deg, rgba(255,205,0,.16), rgba(255,205,0,0) 62%);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
}
/* Echtes Projektfoto: füllt die Karte, Deko-Muster ausblenden */
.erf-project-media.has-photo { background: var(--paper-2); }
.erf-project-media.has-photo::before, .erf-project-media.has-photo::after { display: none; }
.erf-project-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.erf-project-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
}
.erf-project-badge {
  position: absolute; top: .85rem; left: .85rem;
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: .68rem; letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.2);
  padding: .28rem .6rem; border-radius: 6px;
}
.erf-project-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex-grow: 1; }
.erf-project-cat {
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: 1.08rem; color: var(--navy); line-height: 1.25;
}
.erf-project-dot { color: var(--gold-600); }
.erf-project-desc { font-size: .93rem; color: var(--muted); line-height: 1.6; margin: 0; }

.erf-projects-note {
  margin-top: 2rem; text-align: center;
  font-size: .95rem; color: var(--muted); font-style: italic;
}

/* ════════════════════════════════════════════════════════
   CTA-Band (Near-Black, diagonale Kante) – 1:1 wie home.css,
   hier repliziert, da home.css auf dieser Seite nicht geladen wird.
   ════════════════════════════════════════════════════════ */
.cta-band {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.cta-band::before {
  content: ""; position: absolute; top: 0; right: 0; width: 40%; height: 100%;
  background: var(--gradient-navy); opacity: .5;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.cta-text h2 { color: #fff; margin: .6rem 0 .75rem; }
.cta-text p { color: rgba(255,255,255,.75); max-width: 34rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.cta-phone {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.25rem; color: #fff;
}
.cta-phone svg { color: var(--gold); }
.cta-phone:hover { color: var(--gold); }
@media (min-width: 820px) {
  .cta-inner { grid-template-columns: 1.4fr auto; }
  .cta-actions { justify-content: flex-end; }
}

/* ── FAQ / Answer-First-Sektion (2026-07-24) ── */
.erf-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 3.5rem; }
.erf-faq h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin-bottom: .7rem; }
.erf-faq p { line-height: 1.7; color: var(--muted); }
.erf-faq a { color: var(--navy); font-weight: 600; }
@media (max-width: 800px) { .erf-faq { grid-template-columns: 1fr; gap: 2rem; } }
