/* ═══════════════════════════════════════════════════════
   ECHO – Ratgeber / Premium Journal
   Cinematic dark editorial design
═══════════════════════════════════════════════════════ */

/* ── Background: image + dark overlay ───────────────────── */
body {
  background: #06051a;
}

.ec-page {
  background:
    linear-gradient(rgba(6,5,26,0.72), rgba(6,5,26,0.72)),
    url('/static/img/middle-index.png') center top / 100% auto no-repeat fixed !important;
  background-color: #06051a !important;
}

/* ── Content column ─────────────────────────────────────── */
.rg-page {
  position: relative;
  max-width: clamp(640px, 76vw, 900px);
  margin: 0 auto;
  padding: 0 2rem 8rem;
  z-index: 1;
}

/* ── Hero — open, no panel ──────────────────────────────── */
.rg-hero {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rg-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(124,58,237,0.14);
  border: 1px solid rgba(124,58,237,0.32);
  border-radius: 999px;
  padding: .3rem 1rem;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 1.5rem;
}

.rg-h1 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 1.25rem;
  color: #f4f0ff;
  text-shadow: 0 2px 40px rgba(192,132,252,0.18);
}

.rg-lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.74;
  max-width: 640px;
  margin: 0;
}

/* ── Article meta ────────────────────────────────────────── */
.rg-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: .75rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: .04em;
}
.rg-meta span::before { content: '·'; margin-right: .5rem; }
.rg-meta span:first-child::before { content: ''; margin: 0; }

/* ── Glass panels — one per section ─────────────────────── */
.rg-panel {
  background: rgba(255,255,255,0.038);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  box-shadow:
    0 4px 32px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

/* Top purple glow line on each panel */
.rg-panel::before {
  content: '';
  display: block;
  height: 1px;
  margin: -2rem -2.25rem 1.75rem;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.30) 40%, rgba(192,132,252,0.18) 60%, transparent);
}

/* ── Chapter headings ────────────────────────────────────── */
.rg-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.22rem, 2.5vw, 1.48rem);
  font-weight: 600;
  color: #e8deff;
  margin: 0 0 1rem;
  letter-spacing: -.01em;
  padding-left: 1rem;
  border-left: 3px solid rgba(168,85,247,0.65);
  line-height: 1.3;
}

.rg-h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #c4b8e8;
  margin: 1.75rem 0 .6rem;
  padding-left: .75rem;
  border-left: 2px solid rgba(124,58,237,0.35);
}

/* ── Body text ───────────────────────────────────────────── */
.rg-body p,
.rg-panel p {
  color: rgba(255,255,255,0.66);
  line-height: 1.80;
  margin-bottom: 1rem;
  font-size: .97rem;
}

/* ── Enhanced lists ──────────────────────────────────────── */
.rg-body ul,
.rg-panel ul {
  color: rgba(255,255,255,0.66);
  line-height: 1.74;
  margin: .75rem 0 1.25rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: .5rem;
}

.rg-body li,
.rg-panel li {
  position: relative;
  padding: .6rem .75rem .6rem 2.25rem;
  font-size: .96rem;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.14);
  border-radius: 10px;
  line-height: 1.55;
}

.rg-body li::before,
.rg-panel li::before {
  content: '';
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9333ea;
  box-shadow: 0 0 6px rgba(147,51,234,0.6);
}

/* ── Links ───────────────────────────────────────────────── */
.rg-body a,
.rg-panel a {
  color: #a78bfa;
  text-decoration: none;
  border-bottom: 1px solid rgba(167,139,250,0.28);
  transition: color .15s, border-color .15s;
}
.rg-body a:hover,
.rg-panel a:hover {
  color: #c084fc;
  border-color: rgba(192,132,252,0.55);
}

/* ── Callout / highlight box ─────────────────────────────── */
.rg-callout {
  position: relative;
  background: rgba(109,40,217,0.10);
  border: 1px solid rgba(124,58,237,0.26);
  border-radius: 14px;
  padding: 1.25rem 1.6rem;
  margin: 1.5rem 0;
  color: rgba(255,255,255,0.65);
  font-size: .94rem;
  line-height: 1.70;
  overflow: hidden;
}

.rg-callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed 0%, #c084fc 55%, transparent 100%);
}

.rg-callout strong {
  color: rgba(255,255,255,0.85);
  display: block;
  margin-bottom: .35rem;
  font-size: .92rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ── Elegant CTA box ─────────────────────────────────────── */
.rg-cta-box {
  position: relative;
  background:
    radial-gradient(ellipse 90% 100% at 50% 110%, rgba(109,40,217,0.28) 0%, transparent 65%),
    rgba(255,255,255,0.028);
  border: 1px solid rgba(124,58,237,0.28);
  border-radius: 22px;
  padding: 3rem 2rem;
  margin-top: 3rem;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 48px rgba(80,20,160,0.18), inset 0 1px 0 rgba(255,255,255,0.07);
}

.rg-cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,132,252,0.5), transparent);
}

.rg-cta-box h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #f4f0ff;
  margin: 0 0 .6rem;
  letter-spacing: -.01em;
}

.rg-cta-box p {
  color: rgba(255,255,255,0.48);
  font-size: .93rem;
  margin-bottom: 2rem;
  line-height: 1.62;
}

.rg-cta {
  display: inline-block;
  background: linear-gradient(135deg, #6d28d9, #9333ea 55%, #c084fc);
  color: #fff;
  padding: .9rem 2.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: none;
  letter-spacing: .02em;
  box-shadow: 0 4px 28px rgba(109,40,217,0.45), 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: box-shadow .2s, transform .18s;
}
.rg-cta:hover {
  box-shadow: 0 8px 40px rgba(109,40,217,0.62);
  transform: translateY(-2px);
  border-bottom: none;
  color: #fff;
}

/* ── Disclaimer ──────────────────────────────────────────── */
.rg-disclaimer {
  margin-top: 2.5rem;
  font-size: .76rem;
  color: rgba(255,255,255,0.22);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.25rem;
  line-height: 1.6;
}

/* ── Related articles ────────────────────────────────────── */
.rg-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.rg-related-label {
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1rem;
}

.rg-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.rg-related-link {
  font-size: .82rem;
  color: #a78bfa;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.20);
  border-radius: 999px;
  padding: .38rem 1.1rem;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.rg-related-link:hover {
  background: rgba(124,58,237,0.18);
  border-color: rgba(192,132,252,0.40);
  color: #c084fc;
  border-bottom: none;
}

/* ── Fixed footer ────────────────────────────────────────── */
.public-footer {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6,5,22,0.38) !important;
  backdrop-filter: blur(28px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.15) !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
  z-index: 100;
}

/* ── Mobile: background-attachment fixed bricht auf iOS ─────── */

@media (max-width: 600px) {
  .rg-page { padding-left: 1rem; padding-right: 1rem; max-width: 100%; padding-bottom: 2rem; }
  .rg-hero { padding-top: 2.5rem; }
  .rg-h1 { font-size: 1.75rem; }
  .rg-lead { font-size: 1rem; }
  .rg-panel { padding: 1.5rem 1.25rem; border-radius: 14px; }
  .rg-panel::before { margin: -1.5rem -1.25rem 1.25rem; }
  .rg-cta-box { padding: 2rem 1.25rem; border-radius: 16px; }
  .public-footer { display: none !important; }
}

@media (min-width: 1400px) {
  .rg-page { max-width: 980px; }
}
