/* ==========================================================================
   Erfahrungen & Kritik (/erfahrungen) · Präfix er-
   Baut auf styles.css + light.css auf (Tokens, .card, .tag, .faq, .press, .btn).
   ========================================================================== */

/* Lesefortschritt */
.er-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.er-progress i { display: block; height: 100%; background: #0b1220; transform-origin: 0 50%; transform: scaleX(0); }

/* ---------------------------------------------------------------- Hero */
.er-hero { padding-top: 132px; padding-bottom: 24px; }
.er-hero-in { max-width: 1060px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.er-h1 { font-size: clamp(34px, 5vw, 66px); line-height: 1.04; margin: 22px 0 0; text-wrap: balance; }
.er-h1 em { display: block; }
.er-hero .lead { max-width: 680px; margin: 22px auto 0; text-wrap: pretty; }
.er-byline { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 30px; text-align: left; }
.er-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 6px 16px -6px rgba(15,23,42,.35); }
.er-byline b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.er-byline span { font-size: 13.5px; color: var(--muted); }
.er-byline-sep { width: 1px; height: 30px; background: var(--line-2); }
.er-byline-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.er-byline-meta span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.er-proof { margin-top: 26px; }
/* Collage aus der Homepage-Sektion „Bühnen“ (.rl-stage, Styles in styles.css) */
.er-stage { margin: 56px auto 0; max-width: 1140px; }
.er-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.12);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.er-live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: erPulse 2s infinite; }
@keyframes erPulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@media (prefers-reduced-motion: reduce) { .er-live i { animation: none; } }

/* ---------------------------------------------------------------- Layout: Inhaltsverzeichnis + Artikel */
.er-body { padding-top: 40px; }
.er-grid { display: grid; grid-template-columns: 250px minmax(0, 760px); justify-content: center; gap: 64px; align-items: start; }
.er-toc { position: sticky; top: 104px; display: grid; gap: 18px; }
.er-toc details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.er-toc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.er-toc summary::-webkit-details-marker { display: none; }
.er-toc summary .i { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.er-toc details[open] summary .i { transform: rotate(180deg); }
.er-toc ol { list-style: none; margin: 0; padding: 0 10px 12px; counter-reset: toc; }
.er-toc li { counter-increment: toc; }
.er-toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--muted); transition: background .2s, color .2s; }
.er-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; padding-top: 2px; color: var(--dim); }
.er-toc a:hover { color: var(--text); background: rgba(15,23,42,.04); }
.er-toc a.on { color: var(--text); background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 0 0 1px var(--line); }
.er-toc a.on::before { color: var(--text); }
.er-toc-cta { width: 100%; justify-content: space-between; font-size: 14px; }

/* ---------------------------------------------------------------- Artikel-Typo */
.er-article { min-width: 0; font-size: 17px; line-height: 1.75; color: var(--muted); }
.er-article > p { margin: 0 0 20px; }
.er-article p b, .er-article p strong { color: var(--text); font-weight: 600; }
.er-article a:not(.btn):not(.press-row) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.er-h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.03em; color: var(--text); font-weight: 500; margin: 80px 0 18px; scroll-margin-top: 110px; }
.er-article [id] { scroll-margin-top: 110px; }
.er-label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }

/* Kurzantwort */
.er-answer { padding: 28px 30px; border-left: 3px solid #0b1220; }
.er-answer p { margin: 12px 0 0; color: var(--muted); }

/* Kennzahlen */
.er-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 0; }
.er-stat { padding: 20px 18px; }
.er-stat b { display: block; font-size: 30px; line-height: 1; letter-spacing: -.035em; color: var(--text); font-weight: 500; }
.er-stat b i { font-style: normal; font-size: .62em; color: #00b67a; vertical-align: .18em; }
.er-stat span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* Faktencheck */
.er-fact { display: flex; gap: 18px; padding: 24px 26px; margin-top: 28px; }
.er-fact-ico, .er-point-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #0b1220; color: #fff; }
.er-fact-ico .i, .er-point-ico .i { width: 19px; height: 19px; }
.er-fact b { color: var(--text); font-weight: 600; }
.er-fact p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.65; }

/* Ansatz: 6 Karten */
.er-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.er-point { padding: 24px 24px 26px; }
.er-point-top { display: flex; justify-content: space-between; align-items: center; }
.er-point-n { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--line-3); }
.er-point h3 { margin: 20px 0 0; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; color: var(--text); font-weight: 500; }
.er-point p { margin: 10px 0 0; font-size: 15px; line-height: 1.65; }

/* Vergleich */
.er-table { margin-top: 24px; border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 40px -28px rgba(15,23,42,.25); }
.er-table table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.er-table th, .er-table td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.er-table tr:last-child th, .er-table tr:last-child td { border-bottom: 0; }
.er-table thead th { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.er-table tbody th { width: 22%; color: var(--text); font-weight: 500; }
.er-table td { color: var(--muted); }
.er-table .hl { background: rgba(11,18,32,.035); color: var(--text); font-weight: 500; }
.er-table thead .hl { background: #0b1220; color: #fff; }
.er-table thead .hl span { display: inline-flex; align-items: center; gap: 6px; }

/* Passt / passt nicht */
.er-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.er-fit .card { padding: 24px 24px 22px; }
.er-fit ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.er-fit li { display: flex; gap: 10px; font-size: 15px; line-height: 1.55; }
.er-fit li .i { flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 50%; }
.er-fit-yes li .i { background: #0b1220; color: #fff; }
.er-fit-yes li { color: var(--text); }
.er-fit-no { background: transparent !important; box-shadow: none !important; border-style: dashed !important; }
.er-fit-no li .i { background: var(--surface-3); color: var(--muted); }
.er-fit-no .er-label { color: var(--muted); }

/* Presse */
.er-article .press { margin-top: 24px; }

/* Bewertungen */
.er-tp { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; padding: 22px 24px; margin-top: 24px; }
.er-tp-score { display: flex; align-items: baseline; gap: 6px; }
.er-tp-score b { font-size: 44px; line-height: 1; letter-spacing: -.04em; color: var(--text); font-weight: 500; }
.er-tp-score span { font-size: 14px; color: var(--muted); }
.er-tp-meta { display: grid; gap: 6px; flex: 1; min-width: 200px; }
.er-tp-meta > span { font-size: 13.5px; color: var(--muted); }
.er-tp .btn { margin-left: auto; }
.er-stars { display: inline-flex; gap: 3px; }
.er-stars i { width: 18px; height: 18px; border-radius: 2px; background: #00b67a; display: grid; place-items: center; }
.er-stars i::before { content: "★"; color: #fff; font-size: 11px; line-height: 1; font-style: normal; }
.er-stars i.off { background: #dcdce6; }
.er-stars.lg i { width: 26px; height: 26px; }
.er-stars.lg i::before { font-size: 16px; }
.er-stars.part i:nth-child(5) { background: linear-gradient(90deg, #00b67a 40%, #dcdce6 40%); }

.er-quote { margin: 28px 0 0; padding: 28px 30px; border-radius: 20px; background: #0b1220; color: #fff; position: relative; overflow: hidden; }
.er-quote::after { content: "“"; position: absolute; right: 18px; top: -26px; font-family: var(--serif); font-size: 180px; line-height: 1; color: rgba(255,255,255,.08); }
.er-quote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -.01em; }
.er-quote footer { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: rgba(255,255,255,.6); }

.er-revs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.er-revs[hidden] { display: none; }
.er-rev { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px 22px; display: grid; gap: 12px; align-content: start;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 40px -30px rgba(15,23,42,.25); }
.er-rev-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.er-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.er-rev-id { min-width: 0; line-height: 1.3; }
.er-rev-id b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-rev-id span { font-size: 12px; color: var(--dim); }
.er-rev time { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.er-rev p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.er-revs-actions { text-align: center; margin-top: 20px; }

/* ---------------------------------------------------------------- KI-Agenten-System */
.er-h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; color: var(--text); font-weight: 500; margin: 44px 0 16px; }
.er-ki { position: relative; margin: 28px 0 0; border-radius: 22px; overflow: hidden; background: #eceef1;
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 40px 80px -50px rgba(15,23,42,.6); }
.er-ki img, .er-ki picture { display: block; width: 100%; height: auto; }
.er-ki figcaption { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 7px; border-radius: 999px;
  background: #0b1220; color: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 8px 22px -10px rgba(0,0,0,.5); }
.er-cap-s { display: none; }
.er-kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; border-radius: 18px; overflow: hidden; background: #0b1220; color: #fff; }
.er-kpis div { padding: 20px 18px; border-right: 1px solid rgba(255,255,255,.08); }
.er-kpis div:last-child { border-right: 0; }
.er-kpis b { display: block; font-size: 32px; line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.er-kpis div:last-child b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 38px; }
.er-kpis span { display: block; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.62); }
.er-depts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.er-dept { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 28px -24px rgba(15,23,42,.3); }
.er-dept > i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, #fff); position: relative; }
.er-dept > i::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.er-dept div { min-width: 0; flex: 1; line-height: 1.35; }
.er-dept b { display: block; font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.er-dept span { font-size: 13px; color: var(--muted); }
.er-dept em { flex: none; font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--muted); padding: 4px 8px; border-radius: 999px; background: var(--surface-2); }
.er-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.er-flow .card { padding: 20px 20px 22px; }
.er-flow-n { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; color: var(--line-3); }
.er-flow b { display: block; margin-top: 14px; font-size: 16.5px; font-weight: 500; color: var(--text); letter-spacing: -.015em; }
.er-flow p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; }
.er-flow-hl { background: #0b1220 !important; border-color: #0b1220 !important; }
.er-flow-hl b { color: #fff; } .er-flow-hl p { color: rgba(255,255,255,.7); } .er-flow-hl .er-flow-n { color: rgba(255,255,255,.3); }
.er-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.er-vs .card { padding: 22px 22px 20px; }
.er-vs ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.er-vs li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.er-vs li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--line-3); }
.er-vs-old { background: transparent !important; box-shadow: none !important; border-style: dashed !important; }
.er-vs-old .er-label { color: var(--muted); }
.er-vs-new li { color: var(--text); }
.er-vs-new li::before { background: #0b1220; }

/* Abschluss-CTA */
.er-cta { margin-top: 28px; padding: 36px 34px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.er-cta h2 { margin: 14px 0 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; color: var(--text); font-weight: 500; }
.er-cta p { max-width: 520px; margin: 12px auto 24px; font-size: 16px; }

/* FAQ */
.er-faq { margin-top: 24px; }

/* Mobile CTA-Leiste */
.er-sticky { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 90; display: none; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease); }
.er-sticky .btn { width: 100%; justify-content: center; box-shadow: 0 16px 36px -14px rgba(11,18,32,.6); }
.er-sticky.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1000px) {
  .er-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .er-toc { position: static; }
  .er-toc-cta { display: none; }
  .er-sticky { display: block; }
}
@media (max-width: 760px) {
  .er-hero { padding-top: 104px; }
  .er-byline-sep { display: none; }
  .er-byline { flex-direction: column; text-align: center; gap: 10px; }
  .er-byline-meta { justify-content: center; }
  .er-stage { margin-top: 36px; }
  .er-article { font-size: 16px; }
  .er-h2 { margin-top: 60px; }
  .er-stats { grid-template-columns: 1fr 1fr; }
  .er-points, .er-fit, .er-revs, .er-depts, .er-flow, .er-vs { grid-template-columns: minmax(0, 1fr); }
  .er-kpis { grid-template-columns: 1fr 1fr; }
  .er-kpis div:nth-child(2) { border-right: 0; }
  .er-kpis div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .er-ki { border-radius: 16px; }
  .er-ki figcaption { left: 8px; top: 8px; font-size: 11.5px; padding: 5px 10px 5px 6px; }
  .er-cap-l { display: none; } .er-cap-s { display: inline; }
  .er-answer, .er-fact, .er-cta { padding-left: 22px; padding-right: 22px; }
  .er-tp .btn { margin-left: 0; }
  .er-cta .btn { width: 100%; justify-content: center; white-space: normal; }
}
/* Vergleich mobil: jede Zeile als Karte, eCom Orbit hervorgehoben */
@media (max-width: 760px) {
  .er-table { overflow: visible; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  .er-table table { min-width: 0; display: block; }
  .er-table thead { display: none; }
  .er-table tbody { display: grid; gap: 12px; }
  .er-table tr { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 14px 30px -24px rgba(15,23,42,.3); }
  .er-table tbody th { width: auto; padding: 14px 16px 6px; border: 0; font-size: 16px; }
  .er-table td { display: grid; grid-template-columns: 116px 1fr; gap: 10px; padding: 8px 16px; border: 0; font-size: 14px; }
  .er-table td::before { content: attr(data-l); font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
  .er-table td.hl { margin: 6px 8px 8px; padding: 12px 10px; border-radius: 12px; background: #0b1220; color: #fff; }
  .er-table td.hl::before { color: rgba(255,255,255,.6); }
}
@media (prefers-reduced-motion: reduce) { .er-sticky { transition: none; } }
