/* Bewertungsseite eversionerfahrung.de
   Gestaltung nach dem Claude-Design-Entwurf „Eversion Erfahrungen v3“:
   neutrale Bewertungsplattform-Optik, grüne Sterne, IBM Plex Sans (selbst gehostet, SIL OFL). */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }

html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body > .erf-layout, body > .erf-detail { flex: 1 0 auto; }


body {
  --erf-ink: #1a1a1a;
  --erf-text: #2a2a2a;
  --erf-soft: #444;
  --erf-muted: #6b6b6b;
  --erf-line: #e4e4e0;
  --erf-line-2: #d8d8d2;
  --erf-line-3: #f0f0ec;
  --erf-bg: #f4f4f2;
  --erf-track: #ecece8;
  --erf-green: #1e7f4f;
  background: var(--erf-bg);
  color: var(--erf-ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body *, body *::before, body *::after { box-sizing: border-box; }
body [hidden] { display: none !important; }
body a { color: var(--erf-ink); }
body a:hover { color: var(--erf-green); }
body button, body input, body select, body textarea { font-family: inherit; }
body h1, body h2 { font-family: inherit; color: var(--erf-ink); }

.erf-wrap { max-width: 1100px; margin: 0 auto; padding-inline: 24px; }
.erf-muted { color: var(--erf-muted); }
.erf-small { font-size: 12px; color: var(--erf-muted); line-height: 1.45; }

/* ---------- Kopf ---------- */
.erf-hero { background: #fff; border-bottom: 1px solid var(--erf-line); }
.erf-hero-inner {
  padding-block: 32px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between;
}
.erf-hero-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.erf-hero-text > .erf-muted { font-size: 13px; }
.erf-h1 { margin: 0; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.erf-score { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.erf-stars { font-size: 22px; letter-spacing: 2px; color: var(--erf-green); }
.erf-avg { font-size: 20px; font-weight: 700; }
.erf-score .erf-muted { font-size: 14px; }

body .erf-btn {
  display: inline-block; border: 0; border-radius: 6px; background: var(--erf-ink); color: #fff;
  font-weight: 600; font-size: 15px; padding: 12px 22px; text-decoration: none; cursor: pointer;
}
body .erf-btn:hover { color: #fff; background: #000; }
body .erf-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.erf-btn:focus-visible, .erf-pill:focus-visible { outline: 2px solid var(--erf-green); outline-offset: 2px; }
.erf-linkbtn { border: 0; background: none; padding: 0 6px; cursor: pointer; font-size: 14px; text-decoration: underline; color: var(--erf-ink); }

/* ---------- Filterleiste ---------- */
.erf-bar {
  position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--erf-line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.erf-bar-inner { padding-block: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 599px) {
  /* Auf dem Handy bricht die Leiste um; fixiert würde sie zu viel Platz belegen. */
  .erf-bar { position: static; }
  .erf-pill { padding: 7px 12px; font-size: 13px; }
  .erf-drop { min-width: 200px; }
}
.erf-spacer { flex: 1 1 0; min-width: 8px; }
.erf-menu { position: relative; }
.erf-pill {
  display: flex; align-items: center; gap: 6px; border: 1px solid var(--erf-line-2); background: #fff; color: var(--erf-ink);
  border-radius: 100px; padding: 9px 16px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.erf-pill b { font-weight: 600; }
.erf-pill > span:last-child { font-size: 10px; margin-left: 2px; }
.erf-pill.is-active, .erf-pill[aria-expanded="true"] { border-color: var(--erf-ink); }
.erf-pill.is-active { background: var(--erf-bg); }
.erf-drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; z-index: 6; background: #fff;
  border: 1px solid var(--erf-line); border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  padding: 6px; display: flex; flex-direction: column;
}
.erf-menu--right .erf-drop { left: auto; right: 0; }
.erf-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 0; border-radius: 6px;
  padding: 9px 10px; background: transparent; font-size: 14px; text-align: left; cursor: pointer; color: var(--erf-ink);
}
.erf-opt:hover, .erf-opt.is-on { background: var(--erf-bg); }
.erf-opt.is-on { font-weight: 600; }
.erf-opt .erf-muted { font-size: 12px; }

/* ---------- Layout ---------- */
.erf-layout { padding-top: 28px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.erf-aside { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.erf-main { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 799px) {
  .erf-aside { max-width: none; order: 2; }
  .erf-wrap { padding-inline: 16px; }
}

.erf-box {
  background: #fff; border: 1px solid var(--erf-line); border-radius: 8px; padding: 20px;
  display: flex; flex-direction: column; gap: 8px; font-size: 13px;
}
.erf-box-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--erf-ink); }
.erf-box--text { line-height: 1.55; color: var(--erf-soft); }
.erf-box--text p { margin: 0 0 8px; }
.erf-box--text p:last-child { margin-bottom: 0; color: var(--erf-muted); }

.erf-track { height: 8px; border-radius: 4px; background: var(--erf-track); overflow: hidden; display: block; }
.erf-track > span { display: block; height: 100%; background: var(--erf-green); }
.erf-dist {
  display: grid; grid-template-columns: 62px 1fr 24px; align-items: center; gap: 10px; width: calc(100% + 12px);
  border: 0; border-radius: 6px; padding: 5px 6px; margin: 0 -6px; cursor: pointer; font-size: 13px; text-align: left;
  color: var(--erf-ink); background: transparent;
}
.erf-dist:hover, .erf-dist.is-on { background: var(--erf-track); }
.erf-dist > span:last-child { text-align: right; }
.erf-platform {
  text-decoration: none; display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 10px; font-size: 13px;
}
.erf-platform b { text-align: right; font-weight: 600; }

/* ---------- Liste ---------- */
.erf-count { padding: 12px 16px; gap: 10px; }
.erf-count > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.erf-count-label { font-size: 15px; font-weight: 600; }
.erf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--erf-line-3); }
.erf-chip { border: 1px solid var(--erf-line-2); background: var(--erf-bg); border-radius: 100px; padding: 4px 10px; font-size: 13px; cursor: pointer; color: var(--erf-ink); }
.erf-list { display: flex; flex-direction: column; gap: 12px; }
.erf-empty { padding: 32px; font-size: 15px; color: var(--erf-muted); }

.erf-card {
  background: #fff; border: 1px solid var(--erf-line); border-radius: 8px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
@media (max-width: 599px) { .erf-card { padding: 18px 16px; } }
.erf-card-head { display: flex; align-items: center; gap: 12px; }
.erf-ava {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; color: #132229;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
}
.erf-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.erf-who-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.erf-name { font-size: 15px; font-weight: 600; }
.erf-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--erf-green); }
.erf-verified > span {
  width: 14px; height: 14px; border-radius: 50%; background: var(--erf-green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; line-height: 1;
}
.erf-src {
  font-size: 12px; font-weight: 500; color: var(--erf-soft); background: var(--erf-bg); border-radius: 4px;
  padding: 4px 8px; white-space: nowrap;
}
.erf-card-stars { font-size: 16px; letter-spacing: 2px; color: var(--erf-green); }
.erf-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.erf-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--erf-text); white-space: pre-line; text-wrap: pretty; overflow-wrap: anywhere; }
.erf-text--reply { font-size: 14px; line-height: 1.55; }

.erf-video {
  position: relative; width: 220px; max-width: 100%; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: #1a1a1a;
}
.erf-video img, .erf-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.erf-video.is-playing .erf-letter-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.erf-letter .erf-small { display: flex; flex-direction: column; gap: 4px; }

.erf-reply { background: var(--erf-bg); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.erf-reply-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }

.erf-card-foot {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px;
  border-top: 1px solid var(--erf-line-3); font-size: 12px; color: var(--erf-muted);
}
.erf-card-foot a { color: var(--erf-muted); }

/* ---------- Formular ---------- */
.erf-form { padding: 28px; gap: 14px; margin-top: 16px; scroll-margin-top: 90px; }
@media (max-width: 599px) { .erf-form { padding: 20px 16px; } }
.erf-h2 { margin: 0; font-size: 20px; font-weight: 700; }
.erf-form-intro { font-size: 14px; line-height: 1.55; color: var(--erf-soft); }
.erf-form-intro p { margin: 0; }
.erf-form form { display: flex; flex-direction: column; gap: 10px; }
.erf-form input:not([type="checkbox"]), .erf-form select, .erf-form textarea {
  font-size: 15px; line-height: 1.5; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--erf-line-2);
  background: #fff; color: var(--erf-ink); width: 100%;
}
.erf-form input:focus, .erf-form select:focus, .erf-form textarea:focus { outline: 2px solid var(--erf-ink); outline-offset: 0; }
.erf-form textarea { resize: vertical; }
.erf-form .erf-btn { align-self: flex-start; }
.erf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--erf-soft); cursor: pointer; }
.erf-consent input { margin-top: 3px; accent-color: var(--erf-ink); flex: none; }
.erf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.erf-error { margin: 0; font-size: 14px; color: #8e1f0b; }
.erf-thanks { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--erf-soft); }
.erf-thanks-title { font-size: 17px; font-weight: 600; color: var(--erf-ink); }
.erf-thanks .erf-linkbtn { align-self: flex-start; padding: 0; }

/* ---------- Kopf / Fuß der Website ---------- */
.erf-top { background: #fff; border-bottom: 1px solid var(--erf-line); }
.erf-top-inner { padding-block: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.erf-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; text-decoration: none; }
.erf-logo { width: 28px; height: 28px; border-radius: 6px; background: var(--erf-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.erf-foot { border-top: 1px solid var(--erf-line); background: #fff; }
.erf-foot-inner { padding-block: 20px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--erf-muted); }
.erf-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.erf-kicker { font-size: 13px; }
.erf-box-title { margin: 0 0 4px; }
.erf-name a, .erf-title a { color: inherit; text-decoration: none; }
.erf-name a:hover, .erf-title a:hover { text-decoration: underline; }
.erf-title { margin: 0; }
.erf-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ---------- Einzelseite ---------- */
.erf-detail { padding-top: 24px; padding-bottom: 48px; max-width: 820px; display: flex; flex-direction: column; gap: 16px; }
.erf-crumbs { font-size: 13px; color: var(--erf-muted); }
.erf-detail-h1 { font-size: clamp(22px, 3vw, 28px); margin: 0; }
.erf-detail .erf-title { font-size: 20px; }
.erf-detail-note { margin: 0; }
.erf-detail-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 14px; }
