/* =========================================================================
   CxP — Content x Publishing
   Editorial, hell, warmes Papier + tiefes Schwarz, EIN Signal-Akzent (Vermilion).
   Display: Bricolage Grotesque · Text: IBM Plex Sans · Daten: IBM Plex Mono.
   ========================================================================= */

:root {
    --paper:    #f4f1ea;
    --paper-2:  #ece7dc;
    --card:     #fbfaf6;
    --ink:      #15120f;
    --ink-2:    #100e0b;   /* dunkle Panels */
    --ink-soft: #38332d;

    --muted:    #6e675c;
    --muted-2:  #948c7e;

    --red:      #ff3b1f;
    --red-2:    #e02d11;

    --line:     rgba(21,18,15,.13);
    --line-2:   rgba(21,18,15,.07);

    --on-dark:      #f1ede4;
    --on-dark-mute: #a59c8d;
    --line-dark:    rgba(241,237,228,.14);

    --display: "Bricolage Grotesque", Georgia, serif;
    --sans:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --maxw: 1200px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 300;
    background: var(--paper);
    color: var(--ink);
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
main { display: block; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.accent { color: var(--red); }
.mono { font-family: var(--mono); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: clamp(70px, 10vw, 140px) 0; position: relative; }
section[id], .hero[id] { scroll-margin-top: 76px; }

/* Mono-Label mit rotem Punkt */
.mono-label {
    font-family: var(--mono); font-size: 12px; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
    display: inline-flex; align-items: center; gap: 11px;
}
.dot-red { width: 7px; height: 7px; background: var(--red); display: inline-block; }

.sec-head { max-width: 38rem; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.05; margin-top: 16px; }
.sec-sub { color: var(--muted); margin-top: 16px; font-size: 17px; }

/* ============================ BUTTONS ============================ */
.btn {
    display: inline-flex; align-items: center; gap: 11px;
    font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .01em;
    padding: 15px 26px; border-radius: 2px; cursor: pointer; border: 1.5px solid transparent;
    transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); transform: translateY(-2px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn-red:hover .arr, .btn-line:hover .arr { transform: translateX(5px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--red); color: var(--red); }

/* ============================ NAV ============================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px max(32px, calc((100vw - var(--maxw)) / 2 + 32px));
    transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s;
    border-bottom: 1px solid transparent;
}
.nav.is-stuck {
    background: rgba(244,241,234,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding-top: 13px; padding-bottom: 13px; border-bottom-color: var(--line);
}
.brand { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.01em; color: var(--ink); }
.brand .x { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links .nav-cta { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; background: var(--red); color: #fff; padding: 10px 18px; border-radius: 2px; }
.nav-links .nav-cta:hover { background: var(--red-2); color: #fff; }
.nav-toggle { display: none; }

/* ============================ HERO ============================ */
.hero {
    padding: clamp(140px, 20vh, 220px) 0 clamp(70px, 10vw, 120px);
    position: relative; overflow: hidden;
    background:
        linear-gradient(180deg, var(--paper), var(--paper-2));
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line-2) 1px, transparent 1px);
    background-size: 100% 56px; opacity: .5; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-inner { position: relative; max-width: 17ch; }
.hero-inner { max-width: none; }
.hero h1 {
    font-size: clamp(42px, 7vw, 92px); line-height: .98; font-weight: 800;
    margin: 22px 0 0; max-width: 16ch;
}
.hero-lead { margin: 30px 0 38px; max-width: 44ch; font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft); line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================ TICKER ============================ */
.ticker { background: var(--ink-2); color: var(--on-dark); overflow: hidden; padding: 16px 0; white-space: nowrap; border-top: 1px solid var(--ink); }
.ticker-track { display: inline-flex; align-items: center; animation: marquee 34s linear infinite; will-change: transform; }
.ticker-item { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); padding: 0 4px; }
.ticker-dot { color: var(--red); padding: 0 26px; font-weight: 700; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================ TRUTH ============================ */
.truth-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
.truth h2 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.04; margin-top: 16px; }
.truth-body { font-size: 18px; color: var(--ink-soft); }
.truth-body p { margin: 0 0 20px; }
.strike-list { display: flex; flex-direction: column; gap: 6px; margin: 0 0 28px !important; }
.strike-list span { font-family: var(--display); font-size: clamp(19px, 2.4vw, 26px); color: var(--muted-2); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.truth-body em { font-style: italic; color: var(--ink); }
.truth-punch { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; color: var(--ink) !important; }
.truth-punch::before { content: ""; display: block; width: 46px; height: 3px; background: var(--red); margin-bottom: 20px; }

/* ============================ RESULTS PANEL (dunkel) ============================ */
.panel { background: var(--ink-2); color: var(--on-dark); }
.panel .mono-label { color: var(--on-dark-mute); }
.panel-head { max-width: 40rem; margin-bottom: clamp(40px, 5vw, 64px); }
.panel-head h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.05; margin-top: 16px; color: #fff; }
.panel-head p { color: var(--on-dark-mute); margin-top: 16px; font-size: 16.5px; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.result { background: var(--ink-2); padding: 32px 30px; }
.result-label { font-family: var(--display); font-weight: 500; font-size: 20px; color: #fff; margin-bottom: 22px; }
.result-ba { display: flex; flex-direction: column; gap: 12px; }
.ba-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; }
.ba-tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-mute); }
.ba-bar { height: 8px; background: rgba(241,237,228,.08); border-radius: 4px; overflow: hidden; }
.ba-fill { display: block; height: 100%; width: 0; border-radius: 4px; transition: width 1.1s var(--ease); }
.ba-from .ba-fill { background: var(--on-dark-mute); }
.ba-to .ba-fill { background: var(--red); }
.ba-val { font-family: var(--mono); font-size: 15px; color: var(--on-dark); min-width: 4ch; text-align: right; }
.ba-val.accent { color: var(--red); font-weight: 500; }
/* Balkenbreiten erst beim Reveal */
.reveal.in .result-ba[data-dir="down"] .ba-from .ba-fill { width: 100%; }
.reveal.in .result-ba[data-dir="down"] .ba-to   .ba-fill { width: 12%; }
.reveal.in .result-ba[data-dir="up"]   .ba-from .ba-fill { width: 24%; }
.reveal.in .result-ba[data-dir="up"]   .ba-to   .ba-fill { width: 100%; }
.result-note { margin-top: 18px; font-size: 12px; letter-spacing: .03em; color: var(--on-dark-mute); }

/* ============================ SERVICES ============================ */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-card { background: var(--card); padding: 38px 34px 32px; display: flex; flex-direction: column; transition: background .3s var(--ease), transform .3s var(--ease); position: relative; }
.svc-card:hover { background: #fff; }
.svc-no { font-size: 13px; color: var(--red); letter-spacing: .04em; }
.svc-card h3 { font-size: 30px; margin: 12px 0 12px; }
.svc-card p { color: var(--muted); font-size: 16px; margin: 0 0 26px; flex: 1; }
.svc-go { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.svc-go .arr { color: var(--red); transition: transform .25s var(--ease); }
.svc-card:hover .svc-go .arr { transform: translateX(5px); }

/* ============================ TEAM ============================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { border-top: 2px solid var(--ink); padding: 22px 0 0; }
.team-mono { font-size: 12px; color: var(--red); letter-spacing: .1em; }
.team-name { font-family: var(--display); font-weight: 700; font-size: 28px; margin-top: 14px; }
.team-role { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.team-line { color: var(--ink-soft); font-size: 16px; margin: 16px 0 0; }

/* ============================ SERVICE-LANDINGPAGE ============================ */
.svc-hero { padding: clamp(130px, 18vh, 190px) 0 clamp(20px, 4vw, 50px); background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.svc-hero h1 { font-size: clamp(40px, 6.4vw, 82px); line-height: .98; font-weight: 800; margin: 22px 0 0; }
.svc-hero h1 span { display: block; }
.svc-intro { margin: 28px 0 36px; max-width: 50ch; font-size: clamp(17px, 1.9vw, 20px); color: var(--ink-soft); }

.proof { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.proof-row {
    display: grid; grid-template-columns: 56px 1.1fr 1fr; align-items: baseline; gap: 22px;
    padding: 26px 0; border-bottom: 1px solid var(--line);
    transition: padding-left .3s var(--ease);
}
.proof-row:hover { padding-left: 12px; }
.proof-idx { font-size: 13px; color: var(--red); }
.proof-plain { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.2; }
.proof-tech { font-size: 13px; letter-spacing: .02em; color: var(--muted); line-height: 1.5; }

/* ============================ FUNNEL ============================ */
.funnel-sec { background: var(--ink-2); color: var(--on-dark); padding: clamp(70px, 10vw, 130px) 0; }
.funnel-sec .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.funnel-head .mono-label { color: var(--on-dark-mute); }
.funnel-head h2 { font-size: clamp(34px, 5vw, 62px); line-height: .98; font-weight: 800; margin: 18px 0 22px; color: #fff; }
.funnel-head p { color: var(--on-dark-mute); font-size: 17px; max-width: 32ch; }
.funnel-head .mailto { display: inline-block; margin-top: 30px; font-family: var(--mono); font-size: 16px; color: var(--red); border-bottom: 1px solid rgba(255,59,31,.4); padding-bottom: 3px; }

.funnel { background: rgba(241,237,228,.03); border: 1px solid var(--line-dark); border-radius: 4px; padding: clamp(24px, 3.5vw, 38px); }
.funnel-bar { display: flex; gap: 8px; margin-bottom: 28px; }
.funnel-bar .seg { flex: 1; height: 3px; background: rgba(241,237,228,.12); border-radius: 2px; }
.funnel-bar .seg.active { background: var(--red); }
.funnel-bar .seg.done { background: var(--red-2); }

.step { display: none; animation: fade .45s var(--ease); }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-label { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--on-dark-mute); margin-bottom: 18px; }
.step-label .mono { color: var(--red); margin-right: 8px; }

.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topic { display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; background: transparent; border: 1px solid var(--line-dark); color: var(--on-dark); padding: 16px 16px; border-radius: 3px; font-family: var(--sans); font-size: 15.5px; transition: border-color .2s, background .2s, transform .2s; }
.topic:hover { border-color: var(--red); transform: translateY(-2px); }
.topic.selected { border-color: var(--red); background: rgba(255,59,31,.10); }
.topic .t-arrow { color: var(--red); font-family: var(--mono); transition: transform .2s; }
.topic:hover .t-arrow, .topic.selected .t-arrow { transform: translateX(3px); }

.field { margin-bottom: 15px; }
.field label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--on-dark-mute); margin-bottom: 7px; text-transform: uppercase; }
.field .req { color: var(--red); }
.field input, .field textarea { width: 100%; background: rgba(16,14,11,.6); border: 1px solid var(--line-dark); color: var(--on-dark); font-family: var(--sans); font-size: 16px; font-weight: 300; padding: 13px 14px; border-radius: 3px; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: rgba(16,14,11,.85); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.funnel-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }
.link-back { background: none; border: none; color: var(--on-dark-mute); cursor: pointer; font-family: var(--mono); font-size: 13px; padding: 8px 0; transition: color .2s; }
.link-back:hover { color: var(--on-dark); }
.funnel-note { font-size: 12px; color: var(--on-dark-mute); margin-top: 14px; }
.form-error { color: #ff9a87; font-size: 14px; margin-top: 12px; min-height: 1px; }

.funnel-done { text-align: center; padding: 24px 0; }
.funnel-done .seal { width: 58px; height: 58px; margin: 0 auto 20px; border: 1.5px solid var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 26px; }
.funnel-done h3 { font-size: 28px; color: #fff; margin-bottom: 10px; }
.funnel-done p { color: var(--on-dark-mute); font-size: 16px; max-width: 26ch; margin: 0 auto; }

/* ============================ FOOTER ============================ */
.foot { background: var(--ink-2); color: var(--on-dark); padding: 60px 0 36px; border-top: 1px solid var(--ink); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .brand { color: #fff; font-size: 26px; }
.foot-brand p { color: var(--on-dark-mute); font-size: 15px; margin-top: 14px; max-width: 26ch; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col .mono-label { color: var(--red); margin-bottom: 4px; }
.foot-col a { color: var(--on-dark-mute); font-size: 14.5px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--on-dark-mute); font-size: 13px; }

/* ============================ REVEAL ============================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .ticker-track { animation: none; }
    html { scroll-behavior: auto; }
    .ba-fill { transition: none; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
    body { font-size: 17px; }
    .nav-links { display: none; }
    .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: rgba(244,241,234,.98); backdrop-filter: blur(16px); padding: 96px 30px 30px; border-left: 1px solid var(--line); }
    .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
    .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .truth-grid, .funnel-sec .wrap { grid-template-columns: 1fr; }
    .results-grid, .svc-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; gap: 4px; }
    .proof-row { grid-template-columns: 40px 1fr; }
    .proof-tech { grid-column: 2; }
    .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .wrap { padding: 0 20px; }
    .field-row, .topic-grid { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .foot-top { grid-template-columns: 1fr; gap: 26px; }
    .foot-legal { flex-direction: column; }
}

/* ============================ LANDINGPAGE-BAUSTEINE ============================ */
.nav-links { gap: 24px; }

.lp-split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 72px); }
.lp-text { font-size: 18px; color: var(--ink-soft); line-height: 1.7; margin: 16px 0 0; }
.lp-praxis { color: var(--ink); }
.lp-praxis::before { content: ""; display: block; width: 40px; height: 3px; background: var(--red); margin-bottom: 18px; }

.nutzen-sec { background: var(--paper-2); }
.nutzen-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.nutzen-list li { display: flex; gap: 14px; align-items: baseline; font-size: 17px; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line); }
.nutzen-check { color: var(--red); font-weight: 700; flex-shrink: 0; }

.faq-list { border-top: 1px solid var(--line); max-width: 62rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--display); font-weight: 500; font-size: clamp(18px, 2vw, 23px); color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--red); transition: opacity .25s var(--ease); }
.faq-plus::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq-plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item[open] .faq-plus::after { opacity: 0; }
.faq-a { color: var(--ink-soft); font-size: 17px; line-height: 1.7; padding: 4px 40px 26px 0; max-width: 54rem; }

@media (max-width: 900px) {
    .lp-split .wrap { grid-template-columns: 1fr; }
    .nutzen-list { grid-template-columns: 1fr; }
    .nav-links { gap: 22px; }
}
