/* ============================================================
   MD TRADE – globales Theme (Design von /restposten-ankauf)
   Einmal in header.php eingebunden → auf allen Seiten verfügbar.
   Aktivierung pro Seite: <main class="ra-page"> … </main>
   ============================================================ */
:root {
  --ra-primary:#1d4ed8; --ra-primary-dark:#1e3a8a; --ra-accent:#f59e0b;
  --ra-green:#059669; --ra-danger:#dc2626; --ra-ink:#0f172a; --ra-muted:#475569; --ra-line:#e5e7eb;
}
.ra-page h2, .ra-page h3, .ra-page h5, .ra-page h6 { color: var(--ra-ink) !important; }
.ra-page p { color: var(--ra-muted); font-size: 1.05rem; line-height: 1.75; }

/* Hero */
.ra-hero { position: relative; background: linear-gradient(135deg,#0b1220 0%,#14213d 55%,#1e3a8a 100%); color:#fff; overflow:hidden; }
.ra-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(1200px 400px at 80% -10%, rgba(245,158,11,.18), transparent 60%), radial-gradient(900px 500px at 0% 120%, rgba(37,99,235,.35), transparent 60%); pointer-events:none; }
.ra-hero .container { position:relative; z-index:2; }
.ra-eyebrow { display:inline-flex; align-items:center; gap:.5rem; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); color:#fde68a; padding:7px 16px; border-radius:999px; font-size:.85rem; font-weight:600; letter-spacing:.02em; margin-bottom:22px; }
.ra-hero h1 { color:#fff; font-weight:800; line-height:1.12; font-size:clamp(2rem,4.4vw,3.3rem); }
.ra-hero h1 span { color:#fbbf24; }
.ra-hero .ra-sub { color:#cbd5e1; font-size:1.15rem; max-width:660px; margin:18px 0 30px; line-height:1.7; }
.ra-hero-copy { text-align:left; }
.ra-hero-points { list-style:none; display:flex; flex-wrap:wrap; gap:10px 22px; padding:0; margin:22px 0 30px; }
.ra-hero-points li { display:flex; align-items:center; gap:9px; color:rgba(255,255,255,.88); font-size:1rem; }
.ra-hero-points li::before { content:"✓"; width:20px; height:20px; border-radius:50%; background:var(--ra-green); color:#fff; font-size:.72rem; font-weight:800; display:flex; align-items:center; justify-content:center; flex:none; }

/* Buttons */
.ra-cta-row { display:flex; flex-wrap:wrap; gap:14px; }
.ra-btn { display:inline-flex; align-items:center; justify-content:center; gap:.55rem; min-height:52px; padding:14px 30px; border-radius:10px; font-weight:700; font-size:1.02rem; text-decoration:none; transition:transform .15s ease, box-shadow .15s ease, background .15s ease; }
.ra-btn-primary { background:var(--ra-accent); color:#1a1300; box-shadow:0 10px 25px rgba(245,158,11,.35); }
.ra-btn-primary:hover { transform:translateY(-2px); background:#fbbf24; color:#1a1300; }
.ra-btn-ghost { background:rgba(255,255,255,.06); color:#fff; border:1px solid rgba(255,255,255,.35); }
.ra-btn-ghost:hover { background:rgba(255,255,255,.14); color:#fff; transform:translateY(-2px); }

/* Trust-Bar */
.ra-trustbar { background:var(--ra-ink); }
.ra-trustbar .ra-trust-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; padding:22px 0; }
.ra-trust-item { text-align:center; color:#e2e8f0; }
.ra-trust-item strong { display:block; font-size:1.65rem; color:#fbbf24; font-weight:800; line-height:1; }
.ra-trust-item span { font-size:.92rem; color:#94a3b8; }

/* TOC */
.ra-page nav.table-of-contents { border:1px solid var(--ra-line); background:#f8fafc; padding:1.5rem 1.6rem; border-radius:12px; }
.ra-page nav.table-of-contents li { margin-bottom:.55rem; }
.ra-page nav.table-of-contents a { color:var(--ra-primary); text-decoration:none; font-weight:500; }
.ra-page nav.table-of-contents a:hover { text-decoration:underline; }

/* Sections & Headings */
.ra-page section { scroll-margin-top:110px; }
.ra-page section + section { margin-top:3rem; }
.ra-page h2.ra-h2 { font-weight:800; margin-bottom:1rem; font-size:clamp(1.5rem,3vw,2rem); }
.ra-page h2.ra-h2 .ra-kicker { display:block; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ra-primary); font-weight:700; margin-bottom:.4rem; }

/* Bild-Figur */
.ra-figure { margin:1.6rem 0 0; border-radius:14px; overflow:hidden; border:1px solid var(--ra-line); }
.ra-figure img { width:100%; height:auto; display:block; }

/* Card-Grid */
.ra-card-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:1.4rem; }
.ra-card { border:1px solid var(--ra-line); border-radius:12px; padding:20px; background:#fff; transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.ra-card:hover { box-shadow:0 14px 30px rgba(15,23,42,.08); transform:translateY(-3px); border-color:#c7d2fe; }
.ra-card .ra-ic { font-size:1.6rem; line-height:1; }
.ra-card h3 { font-size:1.12rem; margin:.6rem 0 .35rem; font-weight:700; }
.ra-card p { font-size:.96rem; margin:0; }

/* Highlight */
.ra-highlight { background:linear-gradient(180deg,#fffbeb 0%,#fff7e0 100%); border:2px solid var(--ra-accent); padding:26px 28px; border-radius:14px; box-shadow:0 12px 30px rgba(245,158,11,.14); }
.ra-badge { display:inline-block; background:var(--ra-green); color:#fff; padding:5px 14px; border-radius:999px; font-size:.82rem; font-weight:700; letter-spacing:.03em; margin-bottom:14px; }
.ra-highlight h3 { margin-bottom:14px; font-weight:800; }
.ra-check { list-style:none; margin:0; padding:0; }
.ra-check li { position:relative; padding-left:34px; margin-bottom:12px; color:#3f3208; font-size:1.02rem; }
.ra-check li:last-child { margin-bottom:0; }
.ra-check li::before { content:"✓"; position:absolute; left:0; top:0; width:24px; height:24px; border-radius:50%; background:var(--ra-green); color:#fff; font-size:.8rem; font-weight:800; display:flex; align-items:center; justify-content:center; }

/* Strenge Bedingungen / Warnbox */
.ra-condition { border:1px solid #fecaca; border-left:6px solid var(--ra-danger); background:#fef2f2; padding:26px 28px; border-radius:12px; }
.ra-condition h3 { color:var(--ra-danger) !important; font-weight:800; margin-bottom:10px; }
.ra-condition ul { margin:14px 0 0; padding-left:0; list-style:none; }
.ra-condition ul li { position:relative; padding-left:30px; margin-bottom:11px; color:#7f1d1d; }
.ra-condition ul li::before { content:"•"; position:absolute; left:8px; color:var(--ra-danger); font-weight:800; font-size:1.2rem; line-height:1; }
.ra-condition .ra-soft { margin-top:16px; background:#fff; border:1px dashed #fca5a5; border-radius:10px; padding:14px 16px; color:#7f1d1d; font-size:.98rem; }

/* Steps / HowTo */
.ra-steps { counter-reset:step; display:grid; gap:16px; margin-top:1.4rem; }
.ra-step { position:relative; border:1px solid var(--ra-line); border-radius:12px; padding:20px 22px 20px 74px; background:#fff; }
.ra-step::before { counter-increment:step; content:counter(step); position:absolute; left:20px; top:20px; width:38px; height:38px; border-radius:10px; background:var(--ra-primary); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; font-size:1.05rem; }
.ra-step h3 { font-size:1.1rem; font-weight:700; margin:0 0 .35rem; }
.ra-step p { margin:0; font-size:.98rem; }

/* Tabellen */
.ra-table { width:100%; border-collapse:collapse; margin-top:1.2rem; font-size:.98rem; }
.ra-table th, .ra-table td { border:1px solid var(--ra-line); padding:11px 14px; text-align:left; vertical-align:top; }
.ra-table th { background:#f8fafc; font-weight:700; color:var(--ra-ink); }
.ra-scroll { overflow-x:auto; }

/* Chips */
.ra-chips { display:flex; flex-wrap:wrap; gap:10px; margin-top:1.2rem; }
.ra-chip { background:#eff6ff; border:1px solid #dbeafe; color:#1e40af; font-weight:600; padding:9px 16px; border-radius:999px; font-size:.95rem; }

/* FAQ (CSS-only Accordion) */
.ra-faq details { border:1px solid var(--ra-line); border-radius:12px; padding:4px 20px; margin-bottom:12px; background:#fff; transition:box-shadow .2s ease; }
.ra-faq details[open] { box-shadow:0 10px 24px rgba(15,23,42,.06); border-color:#c7d2fe; }
.ra-faq summary { list-style:none; cursor:pointer; font-weight:700; color:var(--ra-ink); padding:16px 34px 16px 0; position:relative; font-size:1.06rem; }
.ra-faq summary::-webkit-details-marker { display:none; }
.ra-faq summary::after { content:"+"; position:absolute; right:2px; top:50%; transform:translateY(-50%); font-size:1.5rem; color:var(--ra-primary); font-weight:400; }
.ra-faq details[open] summary::after { content:"–"; }
.ra-faq .ra-answer { padding:0 0 18px; color:var(--ra-muted); line-height:1.7; }

/* Final-CTA */
.ra-final-cta { background:linear-gradient(135deg,#14213d 0%,#1e3a8a 100%); border-radius:18px; padding:40px; color:#fff; text-align:center; margin-top:3rem; }
.ra-final-cta h2 { color:#fff !important; font-weight:800; }
.ra-final-cta p { color:#cbd5e1; max-width:640px; margin:12px auto 26px; }
.ra-contactline { display:flex; flex-wrap:wrap; gap:22px; justify-content:center; margin-top:20px; }
.ra-contactline a { color:#fde68a; text-decoration:none; font-weight:600; }
.ra-contactline a:hover { text-decoration:underline; }

/* Sidebar */
.ra-side-card { border:1px solid var(--ra-line); border-radius:14px; padding:22px; background:#fff; margin-bottom:22px; }
.ra-side-cta { background:linear-gradient(135deg,#1e3a8a,#1d4ed8); color:#fff; text-align:center; }
.ra-side-cta h4 { color:#fff !important; font-weight:800; }
.ra-side-cta p { color:#dbeafe; }
.ra-side-cta .ra-btn-primary { width:100%; margin-top:6px; }
.ra-side-card h4, .ra-side-card h5 { font-weight:700; }
.ra-linklist { list-style:none; margin:.6rem 0 0; padding:0; }
.ra-linklist li { margin-bottom:10px; }
.ra-linklist a { color:var(--ra-primary); text-decoration:none; font-weight:600; display:inline-flex; align-items:center; gap:.45rem; }
.ra-linklist a:hover { text-decoration:underline; }
.ra-sticky { position:sticky; top:100px; }

/* Responsive */
@media (max-width:991px){
  .ra-trustbar .ra-trust-grid { grid-template-columns:repeat(2,1fr); gap:18px; }
  .ra-card-grid { grid-template-columns:1fr; }
  .ra-sticky { position:static; }
  .ra-hero { padding-top:160px !important; padding-bottom:70px !important; }
  .ra-hero-copy { text-align:center; }
  .ra-hero-copy .ra-cta-row, .ra-hero-points { justify-content:center; }
}
@media (max-width:575px){ .ra-final-cta { padding:28px 20px; } }
