/* Gemeinsames Stylesheet fuer die Content-/Cluster-Seiten (Tracking, Leadgenerierung, Ratgeber).
   Baut auf demselben Design-System wie die Startseite auf, ergaenzt um Fliesstext (.prose),
   Breadcrumb, FAQ und CTA-Band. Startseite und /attribution/ behalten ihr eigenes Inline-CSS. */
:root {
  --sans: -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;

  --p-ink: #1b1a14;
  --p-muted: rgba(27, 26, 20, 0.52);
  --p-line: rgba(27, 26, 20, 0.08);
  --p-card: rgba(255, 255, 255, 0.55);

  --d-fg: #ece8df;
  --d-muted: rgba(236, 232, 223, 0.55);
  --d-line: rgba(236, 232, 223, 0.1);
  --d-card: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: #0d0d0b;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}
.inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; width: 100%; }
.measure { max-width: 720px; margin: 0 auto; }

/* ---------- Bands ---------- */
.band { position: relative; }
.band.dark { background: radial-gradient(120% 100% at 50% 0%, #1a1a12 0%, #0d0d0b 78%); color: var(--d-fg); }
.band.paper { background: radial-gradient(120% 100% at 50% 0%, #f7f5ef 0%, #ece9e0 80%); color: var(--p-ink); }
.band::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 10%, rgba(236, 232, 223, 0.25) 38%, rgba(255, 253, 245, 0.6) 50%, rgba(236, 232, 223, 0.25) 62%, transparent 90%);
  background-size: 220% 100%; opacity: 0.55; animation: seam 14s linear infinite;
}
.band:first-child::after { display: none; }
@keyframes seam { from { background-position: 130% 0; } to { background-position: -130% 0; } }

/* ---------- Logo / Nav ---------- */
.logo { font-family: var(--sans); font-weight: 600; letter-spacing: -0.015em; user-select: none; text-decoration: none; color: inherit; display: inline-block; }
.logo .soft { font-weight: 500; opacity: 0.62; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 0; }
.nav .logo { font-size: 1.25rem; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; }
.nav-links a { color: var(--d-muted); text-decoration: none; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--d-fg); }
.nav-links a.nav-cta { color: var(--d-fg); font-weight: 500; }
@media (max-width: 640px) { .nav-links .nav-text { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans); cursor: pointer; border: none; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: transform 0.18s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem; font-weight: 500; letter-spacing: 0.01em; padding: 0.95rem 2.1rem; border-radius: 999px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.9; }
.btn-light { background: #ece8df; color: #141410; }
.btn-light:hover { box-shadow: 0 8px 30px -8px rgba(236, 232, 223, 0.4); }
.btn-ghost { background: none; padding: 0.5rem 0.4rem; font-size: 0.95rem; color: var(--d-muted); }
.btn-ghost:hover { color: var(--d-fg); }

/* ---------- Breadcrumb ---------- */
.crumb { padding-top: 2.4rem; font-size: 0.8rem; letter-spacing: 0.01em; color: var(--d-muted); }
.crumb a { color: var(--d-muted); text-decoration: none; transition: color 0.2s ease; }
.crumb a:hover { color: var(--d-fg); }
.crumb span { opacity: 0.5; margin: 0 0.5rem; }

/* ---------- Page hero ---------- */
.page-hero { padding: 6vh 0 9vh; max-width: 60ch; }
.page-hero .sc-eyebrow { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.5; margin-bottom: 1.1rem; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.07; letter-spacing: -0.03em;
}
.page-hero .lede { margin-top: 1.5rem; max-width: 56ch; font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--d-muted); }
.page-hero .cta-row { margin-top: 2.4rem; display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.page-hero .cta-note { margin-top: 1.1rem; font-size: 0.82rem; color: var(--d-muted); }

/* ---------- Prose (Artikelkoerper) ---------- */
.prose { padding: 9vh 0 7vh; }
.prose > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.prose p { font-size: 1.08rem; line-height: 1.72; color: rgba(27, 26, 20, 0.82); margin-top: 1.25rem; }
.prose p:first-child { margin-top: 0; }
.prose .lead { font-size: 1.2rem; line-height: 1.6; color: var(--p-ink); }
.prose h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  letter-spacing: -0.02em; line-height: 1.15; color: var(--p-ink); margin-top: 3.4rem;
}
.prose h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; color: var(--p-ink); margin-top: 2rem; }
.prose ul, .prose ol { margin-top: 1.2rem; padding-left: 1.3rem; }
.prose li { font-size: 1.05rem; line-height: 1.65; color: rgba(27, 26, 20, 0.82); margin-top: 0.55rem; }
.prose li::marker { color: rgba(27, 26, 20, 0.4); }
.prose a { color: var(--p-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(27, 26, 20, 0.3); transition: text-decoration-color 0.2s ease; }
.prose a:hover { text-decoration-color: var(--p-ink); }
.prose strong { font-weight: 600; color: var(--p-ink); }
.prose blockquote {
  margin: 2.2rem auto; padding: 1.3rem 1.6rem; border-left: 2px solid rgba(27, 26, 20, 0.35);
  background: rgba(255, 255, 255, 0.45); border-radius: 0 14px 14px 0;
  font-size: 1.06rem; line-height: 1.6; color: var(--p-ink);
}
.prose blockquote p { color: var(--p-ink); margin-top: 0.6rem; }
.prose blockquote p:first-child { margin-top: 0; }

/* ---------- Visuals (.viz) — gemeinsame Bausteine für Seiten-Grafiken ---------- */
.viz { max-width: 720px; margin: 2.6rem auto; }
.viz-card {
  position: relative; border: 1px solid #1b1a14; border-radius: 22px;
  background: #1b1a14; color: #f7f5ef; padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: 0 30px 70px -34px rgba(27, 26, 20, 0.55);
}
.viz-title { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; letter-spacing: -0.01em; }
.viz-sub { font-size: 0.85rem; color: rgba(247, 245, 239, 0.6); margin-top: 0.25rem; }
.viz-head { margin-bottom: 1.3rem; }
.viz-note { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid rgba(236, 232, 223, 0.12); font-size: 0.88rem; line-height: 1.55; color: rgba(247, 245, 239, 0.68); }
.viz-note b { color: #f7f5ef; font-weight: 600; }

/* Balkenzeilen */
.viz-row { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.7rem; }
.viz-row:last-child { margin-bottom: 0; }
.viz-lab { width: 9rem; flex-shrink: 0; font-size: 0.8rem; line-height: 1.25; color: rgba(247, 245, 239, 0.8); }
.viz-lab small { display: block; font-size: 0.67rem; color: rgba(247, 245, 239, 0.45); letter-spacing: 0.03em; }
.viz-track { flex: 1; height: 24px; border-radius: 7px; background: rgba(236, 232, 223, 0.07); overflow: hidden; }
.viz-fill { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #6fae7a, #9fd0a8); transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.viz-fill.gold { background: linear-gradient(90deg, #c2a05e, #e2cda0); }
.viz-fill.dim { background: rgba(236, 232, 223, 0.22); }
.viz-val { width: 6rem; flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.viz-val span { display: block; font-size: 0.67rem; color: rgba(247, 245, 239, 0.45); }
@media (max-width: 560px) { .viz-lab { width: 6.5rem; } .viz-val { width: 4.7rem; } }

.viz-flowlab { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247, 245, 239, 0.45); margin-bottom: 0.6rem; }

/* Fluss-Diagramm (Knoten + Pfeile) */
.viz-flow { display: flex; align-items: stretch; gap: 0.6rem; flex-wrap: wrap; }
.viz-node { flex: 1; min-width: 0; border: 1px solid rgba(236, 232, 223, 0.2); border-radius: 14px; padding: 0.9rem 0.9rem; background: rgba(255, 255, 255, 0.04); }
.viz-node .n-step { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247, 245, 239, 0.4); }
.viz-node .n-title { display: block; font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 0.3rem; }
.viz-node .n-sub { display: block; font-size: 0.76rem; color: rgba(247, 245, 239, 0.55); margin-top: 0.25rem; line-height: 1.4; }
.viz-node.good { border-color: rgba(111, 174, 122, 0.5); }
.viz-node.bad { border-color: rgba(201, 138, 125, 0.5); }
.viz-arrow { align-self: center; flex: 0 0 auto; color: rgba(236, 232, 223, 0.35); font-size: 1.1rem; }
@media (max-width: 560px) { .viz-flow { flex-direction: column; } .viz-arrow { transform: rotate(90deg); } }

/* Vergleich (zwei Spalten) */
.viz-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.viz-col { border: 1px solid rgba(236, 232, 223, 0.16); border-radius: 16px; padding: 1.1rem 1.1rem 1.2rem; }
.viz-col.mine { border-color: rgba(236, 232, 223, 0.45); background: rgba(255, 255, 255, 0.05); }
.viz-col h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.8rem; }
.viz-col ul { list-style: none; margin: 0; padding: 0; }
.viz-col li { font-size: 0.85rem; line-height: 1.4; padding: 0.45rem 0 0.45rem 1.4rem; position: relative; color: rgba(247, 245, 239, 0.82); border-top: 1px solid rgba(236, 232, 223, 0.08); }
.viz-col li:first-child { border-top: none; }
.viz-col.mine li::before { content: "✓"; position: absolute; left: 0; color: #8fc79a; font-weight: 600; }
.viz-col.them li::before { content: "–"; position: absolute; left: 0; color: rgba(247, 245, 239, 0.35); }
.viz-col.them { color: rgba(247, 245, 239, 0.6); }
@media (max-width: 560px) { .viz-cmp { grid-template-columns: 1fr; } }

/* Slider (interaktiv) */
.viz-slider { margin: 0.4rem 0 1.4rem; }
.viz-slider label { display: flex; justify-content: space-between; font-size: 0.82rem; color: rgba(247, 245, 239, 0.7); margin-bottom: 0.5rem; }
.viz-slider label b { color: #f7f5ef; font-variant-numeric: tabular-nums; }
.viz-slider input[type="range"] { width: 100%; accent-color: #c2a05e; cursor: pointer; }
.viz-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.viz-duo .d-cell { border: 1px solid rgba(236, 232, 223, 0.16); border-radius: 14px; padding: 1rem; }
.viz-duo .d-cap { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(247, 245, 239, 0.55); line-height: 1.3; min-height: 2.4em; }
.viz-duo .d-num { font-family: var(--serif); font-size: 2rem; font-weight: 500; letter-spacing: -0.01em; margin: 0.5rem 0 0.1rem; }
.viz-duo .d-num small { font-family: var(--sans); font-size: 0.8rem; color: rgba(247, 245, 239, 0.5); }
.viz-duo .d-bar { height: 8px; border-radius: 5px; background: rgba(236, 232, 223, 0.08); overflow: hidden; margin-top: 0.6rem; }
.viz-duo .d-bar i { display: block; height: 100%; border-radius: 5px; transition: width 0.4s ease; }
.viz-duo .d-cell.bad .d-bar i { background: rgba(201, 138, 125, 0.85); }
.viz-duo .d-cell.good .d-bar i { background: linear-gradient(90deg, #6fae7a, #9fd0a8); }
@media (max-width: 560px) { .viz-duo { grid-template-columns: 1fr; } }
/* Customer-Journey-Timeline (animiert) */
.cjt { position: relative; margin-top: 0.3rem; }
.cjt-rail { position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: rgba(236, 232, 223, 0.14); z-index: 0; }
.cjt-comet { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #e2cda0; box-shadow: 0 0 11px 2px rgba(226, 205, 160, 0.6); animation: cjtfall 5s linear infinite; }
.cjt-comet.two { animation-delay: 2.5s; background: #9fd0a8; box-shadow: 0 0 11px 2px rgba(143, 199, 154, 0.6); }
@keyframes cjtfall { 0% { top: 0; opacity: 0; } 7% { opacity: 1; } 93% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.cjt-node { position: relative; z-index: 1; padding: 0 0 1.15rem 44px; }
.cjt-blind .cjt-node:last-child { padding-bottom: 0; }
.cjt-dot { position: absolute; left: 8px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #1b1a14; border: 2px solid rgba(236, 232, 223, 0.4); }
.cjt-node.win .cjt-dot { border-color: #6fae7a; background: #6fae7a; box-shadow: 0 0 0 4px rgba(111, 174, 122, 0.15); }
.cjt-day { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247, 245, 239, 0.4); }
.cjt-t { display: block; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 0.15rem; }
.cjt-t .eur { color: #9fd0a8; }
.cjt-s { display: block; font-size: 0.78rem; color: rgba(247, 245, 239, 0.5); margin-top: 0.15rem; line-height: 1.4; }
.cjt-blind { position: relative; margin-top: 0.3rem; padding: 1.1rem 0 0.2rem; }
.cjt-blind::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0.5rem; border: 1.5px dashed rgba(236, 232, 223, 0.22); border-radius: 14px; pointer-events: none; }
.cjt-blindtag { position: absolute; top: -8px; left: 40px; background: #1b1a14; padding: 0 8px; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247, 245, 239, 0.5); }

@media (prefers-reduced-motion: reduce) { .viz-fill, .viz-duo .d-bar i { transition: none; } .cjt-comet { display: none; } }

/* ---------- Author box (E-E-A-T) ---------- */
.author {
  max-width: 720px; margin: 3.5rem auto 0; padding: 1.6rem 1.7rem;
  display: flex; gap: 1.2rem; align-items: flex-start;
  border: 1px solid var(--p-line); background: rgba(255, 255, 255, 0.5); border-radius: 18px;
}
.author-photo { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: center top; border: 1px solid var(--p-line); }
.author-kicker { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--p-muted); }
.author-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; color: var(--p-ink); margin-top: 0.15rem; }
.author-role { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.55; color: var(--p-muted); }
.author-links { margin-top: 0.7rem; font-size: 0.9rem; }
.author-links a { color: var(--p-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(27, 26, 20, 0.3); }
.author-links a:hover { text-decoration-color: var(--p-ink); }
@media (max-width: 560px) { .author { flex-direction: column; } }

/* ---------- FAQ ---------- */
.faq-block { padding: 2vh 0 10vh; }
.faq-block h2 {
  max-width: 720px; margin: 0 auto 1rem; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.02em; color: var(--p-ink);
}
.faq { max-width: 720px; margin: 1.5rem auto 0; }
.faq-item { padding: 1.5rem 0; border-top: 1px solid rgba(27, 26, 20, 0.14); }
.faq-item:first-child { border-top: none; }
.faq-item h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; color: var(--p-ink); }
.faq-item p { margin-top: 0.55rem; color: var(--p-muted); font-size: 0.99rem; line-height: 1.65; }
.faq-item a { color: var(--p-ink); text-underline-offset: 2px; }

/* ---------- Related / Cluster-Links ---------- */
.related { padding: 8vh 0 10vh; }
.related h2 { text-align: center; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: -0.02em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 3rem; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { display: block; border: 1px solid var(--d-line); background: var(--d-card); border-radius: 18px; padding: 1.6rem 1.5rem; text-decoration: none; color: inherit; transition: border-color 0.2s ease, transform 0.2s ease; }
.related-card:hover { border-color: rgba(236, 232, 223, 0.28); transform: translateY(-2px); }
.related-card .rc-tag { display: block; font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--d-muted); }
.related-card .rc-title { display: block; margin-top: 0.6rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.related-card .rc-sub { display: block; margin-top: 0.4rem; font-size: 0.9rem; color: var(--d-muted); line-height: 1.5; }

/* ---------- CTA band ---------- */
.cta { text-align: center; padding: 12vh 0; }
.cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4.4vw, 2.7rem); letter-spacing: -0.02em; line-height: 1.15; max-width: 22ch; margin: 0 auto; }
.cta p { margin: 1.4rem auto 0; max-width: 48ch; color: var(--d-muted); font-size: 1.02rem; }
.cta .cta-row { margin-top: 2.4rem; display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--p-line); padding: 3rem 0 4rem; }
.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.foot-row .logo { font-size: 1.05rem; opacity: 0.8; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.86rem; }
.foot-links a { color: var(--p-muted); text-decoration: none; transition: color 0.2s ease; }
.foot-links a:hover { color: var(--p-ink); }
.copyright { margin-top: 1.7rem; font-size: 0.8rem; color: var(--p-muted); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.page-hero .sc-eyebrow, .page-hero h1, .page-hero .lede, .page-hero .cta-row, .page-hero .cta-note { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.page-hero h1 { animation-delay: 0.06s; }
.page-hero .lede { animation-delay: 0.14s; }
.page-hero .cta-row { animation-delay: 0.22s; }
.page-hero .cta-note { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .band::after { animation: none; }
  .page-hero .sc-eyebrow, .page-hero h1, .page-hero .lede, .page-hero .cta-row, .page-hero .cta-note { animation: none; }
}
