/* =========================================================
   packster.de Ratgeber-Artikel | Luftpolsterfolie
   CMS-tauglich, kein Inline-CSS, lokale Schrift.
   Alle Klassen mit Prefix .ra-  (ratgeber-artikel),
   eingekapselt in .ra, um Kollisionen mit dem CMS-Theme
   zu vermeiden.
   CI: Lime #b4eb14, Petrol #00aba9, Ink #1f1f1f
   ========================================================= */

@font-face {
  font-family: 'Ubuntu';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('./fonts/ubuntu-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/ubuntu-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('./fonts/ubuntu-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('./fonts/ubuntu-latin-700-normal.woff2') format('woff2');
}

.ra {
  --lime: #b4eb14;
  --lime-dark: #7b9825;
  --petrol: #00aba9;
  --ink: #1f1f1f;
  --text: #2a2a2a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f3f4f4;
  --bg-tip: #f3f6e6;
  --card: #ffffff;
  --dark: #1a1a1a;
  --radius: 12px;

  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.ra *, .ra *::before, .ra *::after { box-sizing: border-box; }
.ra p { margin: 0 0 14px; }
.ra a { color: var(--petrol); text-decoration: none; }
.ra a:hover { text-decoration: underline; }

.ra-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- LAYOUT ---------- */
.ra-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 32px 0 56px;
  align-items: start;
}
.ra-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- META + HERO ---------- */
.ra-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.ra-meta a { font-weight: 700; }

.ra-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--dark);
}
.ra-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ra-hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
}

/* ---------- HEADINGS ---------- */
.ra-h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.ra-lead {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 20px;
}
.ra-h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 8px;
  padding-bottom: 8px;
}
.ra-h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--lime);
  margin-top: 8px;
}
.ra-h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

/* ---------- TOC ---------- */
.ra-toc {
  background: var(--bg-soft);
  border-left: 4px solid var(--lime);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0 8px;
}
.ra-toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.ra-toc ol {
  margin: 0;
  padding-left: 20px;
}
.ra-toc li { margin-bottom: 6px; }

/* ---------- LISTS ---------- */
.ra-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.ra-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.ra-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

/* ---------- STEPS ---------- */
.ra-steps {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  counter-reset: step;
}
.ra-step {
  position: relative;
  padding-left: 46px;
  margin-bottom: 18px;
  min-height: 32px;
}
.ra-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- INLINE PRODUCT CTA ---------- */
.ra-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--lime);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 22px 0;
}
.ra-cta-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: var(--lime-dark);
}
.ra-cta-icon svg { width: 100%; height: 100%; }
.ra-cta-body { flex: 1; min-width: 0; }
.ra-cta-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}
.ra-cta-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
}
.ra-cta-sub {
  font-size: 0.86rem;
  color: var(--muted);
}
.ra-btn {
  flex: 0 0 auto;
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease;
}
.ra-btn:hover { background: var(--lime-dark); color: #fff; text-decoration: none; }

/* ---------- TIP BOX ---------- */
.ra-tip {
  background: var(--bg-tip);
  border-left: 4px solid var(--lime);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.92rem;
}
.ra-tip strong { color: var(--ink); }

/* ---------- COMPARISON TABLE ---------- */
.ra-table-wrap { overflow-x: auto; margin: 18px 0; }
.ra-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}
.ra-table thead th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  font-weight: 700;
  padding: 12px 16px;
}
.ra-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.ra-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.ra-table td:first-child { font-weight: 500; color: var(--ink); }
.ra-yes { color: var(--lime-dark); font-weight: 700; }
.ra-warn { color: #c98a00; font-weight: 700; }

/* ---------- DARK CTA BANNER ---------- */
.ra-banner {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ra-banner-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 6px;
}
.ra-banner-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 4px;
}
.ra-banner-sub { color: #aeb3b9; font-size: 0.86rem; }

/* ---------- AUTHOR BOX ---------- */
.ra-author {
  display: flex;
  gap: 22px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.ra-author-photo {
  flex: 0 0 auto;
  width: 88px;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
  background: #d9d9d9;
}
.ra-author-body { flex: 1; min-width: 240px; }
.ra-author-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.ra-author-name { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 2px 0; }
.ra-author-role { color: var(--petrol); font-weight: 500; font-size: 0.92rem; }
.ra-author-meta { color: var(--muted); font-size: 0.86rem; margin-bottom: 10px; }
.ra-author-bio { font-size: 0.9rem; margin-bottom: 14px; }
.ra-author-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.ra-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--petrol);
  color: var(--petrol);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}
.ra-btn-outline:hover { background: var(--petrol); color: #fff; text-decoration: none; }

/* ---------- RELATED ARTICLES ---------- */
.ra-related-title { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 8px 0 18px; }
.ra-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ra-related-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink);
}
.ra-related-card:hover { text-decoration: none; border-color: var(--lime); }
.ra-cat {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.ra-related-card h4 { font-size: 0.98rem; font-weight: 700; margin: 0; line-height: 1.35; }

/* ---------- SIDEBAR CARDS ---------- */
.ra-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.ra-box-lime { border-top: 3px solid var(--lime); }
.ra-box-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.ra-box-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 14px; }

/* form */
.ra-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  margin-bottom: 10px;
  background: #fafafa;
}
.ra-field:focus { outline: none; border-color: var(--petrol); }
textarea.ra-field { min-height: 92px; resize: vertical; }
.ra-btn-full { width: 100%; text-align: center; }

/* beliebte produkte */
.ra-prod {
  display: block;
  border-left: 3px solid var(--lime);
  padding: 8px 0 8px 12px;
  margin-bottom: 10px;
  color: var(--ink);
}
.ra-prod:hover { text-decoration: none; }
.ra-prod strong { display: block; font-size: 0.94rem; font-weight: 700; }
.ra-prod span { font-size: 0.82rem; color: var(--muted); }

/* weitere ratgeber */
.ra-links a {
  display: block;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.ra-links a:last-child { border-bottom: none; }

/* sidebar dark cta */
.ra-side-dark {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
}
.ra-side-dark .ra-banner-eyebrow { margin-bottom: 8px; }
.ra-side-dark a {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.ra-side-dark a:hover { color: var(--lime); text-decoration: none; }

/* ---------- FOOTER ---------- */
.ra-footer {
  background: var(--ink);
  color: #c9cdd2;
  margin-top: 40px;
}
.ra-footer-inner { padding: 48px 24px 0; max-width: 1140px; margin: 0 auto; }
.ra-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.ra-footer-col h4 { color: var(--petrol); font-size: 1.05rem; font-weight: 700; margin: 0 0 14px; }
.ra-footer-col p { font-size: 0.9rem; color: #c9cdd2; max-width: 320px; }
.ra-footer-col a { display: block; color: var(--petrol); font-size: 0.9rem; margin-bottom: 8px; }
.ra-footer-col a:hover { color: var(--lime); text-decoration: none; }
.ra-footer-plain { color: #c9cdd2; font-size: 0.9rem; margin-bottom: 8px; }
.ra-footer-bottom {
  border-top: 1px solid #2a2f36;
  margin-top: 40px;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8b9097;
}
.ra-footer-bottom a { color: #8b9097; }
.ra-footer-bottom a:hover { color: var(--lime); text-decoration: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .ra-layout { grid-template-columns: 1fr; }
  .ra-sidebar { position: static; }
  .ra-related-grid { grid-template-columns: 1fr; }
  .ra-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .ra-h1 { font-size: 1.55rem; }
  .ra-cta { flex-direction: column; align-items: flex-start; }
  .ra-banner { flex-direction: column; align-items: flex-start; }
}

/* ---------- FAQ ACCORDION ---------- */
.ra-faq { margin: 18px 0 26px; }
.ra-faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.ra-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--ink);
}
.ra-faq summary::-webkit-details-marker { display: none; }
.ra-faq summary h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}
.ra-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 500;
  transition: transform .2s ease, background .2s ease;
}
.ra-faq details[open] summary::after {
  content: "–";
  background: var(--lime);
}
.ra-faq details[open] summary { border-bottom: 1px solid var(--line); }
.ra-faq details p { padding: 12px 18px 16px; margin: 0; }

/* ---------- CONTACT BOX ---------- */
.ra-box-lime p { font-size: 0.9rem; margin: 0 0 10px; }
.ra-box-lime .ra-links { margin-bottom: 12px; }

/* ---------- MOBILE HARDENING ---------- */
.ra img { max-width: 100%; height: auto; }
.ra * { box-sizing: border-box; }
.ra { overflow-x: hidden; }

/* ---------- MOBILE FORCE ---------- */
@media (max-width: 900px) {
  .ra-layout { display: block !important; }
  .ra-sidebar { position: static !important; margin-top: 32px; }
}
.ra-table-wrap { overflow-x: auto !important; max-width: 100% !important; }
.ra, .ra-wrap, .ra-main { max-width: 100% !important; min-width: 0 !important; }
