/* content.css — shared styles for ImmerRuf Ratgeber / content pages.
   Built on the existing design tokens (base.css). No new colours, same
   cream + coral system as the rest of the site. Long-form article layout,
   comparison tables, FAQ accordion, callouts, key-takeaway boxes. */

/* ---------- page shell ---------- */
.article {
  background: var(--bg);
  padding-top: 96px;
  padding-bottom: 0;
}

/* scroll-reveal — JS adds .js-reveal to <html>, then .rv + a direction class to
   each element, and toggles .rv-in in/out on scroll (reveals REPLAY both ways).
   Progressive enhancement / SEO-safe: with no JS, nothing is hidden. */
html.js-reveal .rv {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
html.js-reveal .rv-up      { transform: translateY(46px); }
html.js-reveal .rv-down    { transform: translateY(-46px); }
html.js-reveal .rv-left    { transform: translateX(-64px); }
html.js-reveal .rv-right   { transform: translateX(64px); }
html.js-reveal .rv-zoom    { transform: scale(0.85); }
html.js-reveal .rv-zoomrot { transform: scale(0.9) rotate(-4deg); }
html.js-reveal .rv-tilt-l  { transform: translateX(-52px) rotate(-3deg); }
html.js-reveal .rv-tilt-r  { transform: translateX(52px) rotate(3deg); }
html.js-reveal .rv.rv-in   { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .rv { opacity: 1; transform: none; transition: none; }
}

/* three.js ambient hero band */
.article__hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 540px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.article__hero { position: relative; z-index: 1; }
.article__wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.article__wrap--wide { max-width: 1040px; }

/* ---------- breadcrumb ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin: 24px 0 8px;
}
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- hero ---------- */
.article__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 12px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.article__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 18px;
}
.article__lede {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 60ch;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 40px;
}

/* ---------- body typography ---------- */
.prose { color: var(--ink-soft); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2.4em;
  scroll-margin-top: 100px;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.18rem, 1.9vw, 1.45rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 1.8em;
}
.prose p,
.prose li {
  font-size: 1.06rem;
  line-height: 1.7;
}
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.55em; }
.prose ul li::marker { color: var(--accent); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin-left: 0;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
}
.prose blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.86rem;
  font-style: normal;
  color: var(--ink-mute);
}

/* ---------- key takeaways box (GEO-friendly summary) ---------- */
.takeaways {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 36px 0;
}
.takeaways__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
}
.takeaways ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.takeaways li {
  position: relative;
  padding-left: 28px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.takeaways li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- callout / stat highlight ---------- */
.callout {
  background: var(--screen);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin: 36px 0;
}
.callout__stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--peach);
}
.callout__label { font-size: 1rem; line-height: 1.5; color: rgba(244,237,228,0.78); margin-top: 10px; }
.callout cite { display: block; margin-top: 12px; font-size: 0.78rem; color: rgba(244,237,228,0.5); font-style: normal; }

/* ---------- comparison table ---------- */
.cmp-table-wrap { overflow-x: auto; margin: 32px 0; -webkit-overflow-scrolling: touch; }
.cmp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.96rem;
}
.cmp-table th,
.cmp-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cmp-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  border-bottom: 2px solid var(--ink);
}
.cmp-table thead th.is-us {
  background: var(--accent);
  color: #fff;
  border-radius: 12px 12px 0 0;
}
.cmp-table tbody td.is-us { background: rgba(255,90,60,0.06); font-weight: 600; color: var(--ink); }
.cmp-table tbody th {
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.cmp-yes { color: #1c8a4e; font-weight: 700; }
.cmp-no { color: var(--ink-mute); }
.cmp-table tr:last-child td,
.cmp-table tr:last-child th { border-bottom: none; }

/* ---------- FAQ accordion ---------- */
.faq-list { margin: 28px 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.faq-q__icon { flex: none; font-size: 1.4rem; color: var(--accent); transition: transform 0.25s var(--ease); line-height: 1; }
.faq-item[open] .faq-q__icon,
.faq-item.is-open .faq-q__icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-item.is-open .faq-a { max-height: 600px; }
.faq-a__inner { padding: 0 4px 22px; font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); }

/* ---------- in-page table of contents ---------- */
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 32px 0;
}
.toc__title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.toc a { color: var(--ink-soft); text-decoration: none; font-size: 0.98rem; }
.toc a:hover { color: var(--accent); }

/* ---------- author / E-E-A-T block ---------- */
.author {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 40px 0;
}
.author__avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.author__name { font-weight: 600; color: var(--ink); font-size: 0.96rem; }
.author__role { font-size: 0.84rem; color: var(--ink-mute); }

/* ---------- end CTA ---------- */
.article-cta {
  background: var(--screen);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  margin: 56px 0 72px;
  text-align: center;
}
.article-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--cream);
}
.article-cta p { color: rgba(244,237,228,0.74); font-size: 1.05rem; margin: 0 auto 26px; max-width: 46ch; }

/* ---------- hub grid ---------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0 64px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -34px rgba(22,19,15,0.28);
  border-color: rgba(255,90,60,0.4);
}
.hub-card__tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.hub-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.22rem; line-height: 1.22; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 10px;
}
.hub-card__desc { font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 16px; flex: 1; }
.hub-card__more { font-size: 0.9rem; font-weight: 600; color: var(--accent-deep); }

@media (max-width: 600px) {
  .article { padding-top: 80px; }
  .prose p, .prose li { font-size: 1rem; }
}
