/* ═══════════════════════════════════════════════════════════
   PAGES — hero, SPARK loop, graph, roadmap, CTA, subpages, blog
   ═══════════════════════════════════════════════════════════ */

/* ═══════ HERO (landing) ═══════ */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; padding: 130px 48px 70px; overflow: hidden; text-align: center;
}
.hero-bg-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(58, 189, 176, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(58, 189, 176, 0.025) 1px, transparent 1px);
    background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.hero-orb-1 { width: 600px; height: 600px; background: var(--accent-teal); top: -200px; right: -100px; opacity: 0.1; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--accent-orange); bottom: -100px; left: -100px; opacity: 0.07; }
.hero-orb-3 { width: 350px; height: 350px; background: var(--accent-teal); top: 40%; left: 30%; opacity: 0.04; }
.particles-container { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle { position: absolute; border-radius: 50%; opacity: 0.25; }

.hero-content { max-width: 960px; position: relative; z-index: 2; visibility: hidden; }
.hero-content.ready { visibility: visible; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
    background: var(--glass); border: 1px solid var(--border-subtle); border-radius: 100px;
    font-size: 0.82rem; color: var(--accent-teal-light); margin-bottom: 28px; backdrop-filter: blur(10px);
    font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }

.hero-title { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 900; line-height: 1.07; letter-spacing: -2.5px; margin-bottom: 24px; max-width: 18ch; margin-left: auto; margin-right: auto; overflow-wrap: break-word; hyphens: auto; }
.highlight-gradient {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-orange));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    background-size: 200% 200%; animation: gradient-shift 5s ease-in-out infinite;
}
@keyframes gradient-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-subtitle { font-size: clamp(1.02rem, 1.7vw, 1.25rem); color: var(--text-secondary); max-width: 720px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.statrow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; max-width: 880px; margin: 0 auto; }
.stat { background: var(--bg-secondary); padding: 26px 16px; }
.stat .n { font-size: 2.1rem; font-weight: 900; letter-spacing: -1px; background: linear-gradient(120deg, var(--accent-teal-light), var(--accent-orange-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { font-size: 0.78rem; color: var(--text-secondary); margin-top: 6px; line-height: 1.4; }

/* ═══════ PAGE HERO (subpages) ═══════ */
.page-hero {
    position: relative; overflow: hidden; padding: 160px 48px 70px;
    border-bottom: 1px solid var(--border-subtle);
}
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }
.page-hero .hero-orb-1 { width: 520px; height: 520px; top: -240px; right: -120px; opacity: 0.09; }
.page-hero .hero-orb-2 { width: 340px; height: 340px; bottom: -180px; left: -120px; opacity: 0.06; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--accent-teal-light); }
.breadcrumb a:hover { color: var(--accent-teal); }
.breadcrumb .sep { color: var(--text-muted); }
.page-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 900; letter-spacing: -1.8px; line-height: 1.1; margin-bottom: 16px; }
.page-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-secondary); line-height: 1.7; max-width: 720px; }
.page-hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-hero-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; background: var(--teal-dim); border: 1px solid rgba(58, 189, 176, 0.25); }
.version-tag { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); border: 1px solid var(--border-line-strong); border-radius: 100px; padding: 3px 10px; }

/* ═══════ SPARK LOOP ═══════ */
.spark-flow { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; max-width: var(--maxw); margin: 0 auto; }
.spark-phase-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 22px 18px; position: relative; transition: border-color 0.3s, transform 0.3s; }
.spark-phase-card:hover { border-color: var(--accent-teal); }
.spark-phase-card .lt { font-size: 2.4rem; font-weight: 900; line-height: 1; letter-spacing: -2px; background: linear-gradient(150deg, var(--accent-teal-light), var(--accent-teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.spark-phase-card .pn { font-weight: 700; font-size: 1.02rem; margin: 8px 0; }
.spark-phase-card .pd { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.spark-phase-card .gate { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border-subtle); font-size: 0.76rem; color: var(--accent-teal-light); display: flex; gap: 7px; align-items: flex-start; }
.spark-phase-card .gate::before { content: '✓'; font-weight: 800; color: var(--accent-teal); }
.loop-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px auto 0; color: var(--text-secondary); font-size: 0.9rem; max-width: 820px; text-align: center; }
.loop-note .arc { color: var(--accent-orange); font-weight: 700; font-size: 1.3rem; }

/* Team roles */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; max-width: var(--maxw); margin: 0 auto; }
.role { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 18px; transition: border-color 0.3s, transform 0.3s; }
.role:hover { border-color: var(--border-active); }
.role .em { font-size: 1.3rem; } .role .rn { font-weight: 700; font-size: 0.95rem; margin: 8px 0 2px; }
.role .cmd { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-teal); }
.role .rd { font-size: 0.8rem; color: var(--text-secondary); margin-top: 6px; line-height: 1.45; }

/* Value list */
.vlist { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; max-width: var(--maxw); margin: 0 auto; }
.vitem { display: flex; gap: 16px; padding: 22px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); transition: border-color 0.3s; }
.vitem:hover { border-color: var(--border-active); }
.vitem .vn { font-size: 1.4rem; font-weight: 900; color: var(--accent-orange); line-height: 1; flex-shrink: 0; width: 32px; }
.vitem h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.vitem p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }
.vitem .mech { font-size: 0.82rem; color: var(--accent-teal-light); margin-top: 8px; }

/* ═══════ KNOWLEDGE GRAPH VISUAL ═══════ */
.graph-visual { position: relative; height: 340px; background: var(--bg-primary); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.graph-node {
    position: absolute; padding: 8px 14px; border-radius: 100px; font-size: 0.74rem; font-weight: 600;
    font-family: var(--font-mono); border: 1px solid var(--border-active); background: var(--bg-card);
    color: var(--accent-teal-light); white-space: nowrap; transform: translate(-50%, -50%);
}
.graph-node.orange { color: var(--accent-orange-light); border-color: rgba(232,98,58,0.4); }
.graph-node.violet { color: var(--accent-violet); border-color: rgba(162,155,254,0.4); }
.graph-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.graph-svg line { stroke: var(--border-active); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.5; }

/* ═══════ ROADMAP ═══════ */
.roadmap-track { display: flex; flex-direction: column; max-width: var(--maxw); margin: 0 auto; }
.roadmap-item { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border-subtle); }
.roadmap-item:last-child { border-bottom: 0; }
.roadmap-item .rn { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; background: var(--teal-dim); border: 1px solid rgba(58,189,176,0.3); color: var(--accent-teal-light); }
.roadmap-item.done .rn { background: rgba(0,184,148,0.14); border-color: rgba(0,184,148,0.35); color: var(--accent-green); }
.roadmap-item .rt { font-weight: 700; font-size: 1.08rem; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.roadmap-item .rmeta { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }
.roadmap-item p { color: var(--text-secondary); font-size: 0.93rem; margin-top: 8px; line-height: 1.6; }

/* ═══════ FEATURE LIST (product pages) ═══════ */
.featlist { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; max-width: var(--maxw); margin: 0 auto; list-style: none; }
.featlist li { display: flex; gap: 14px; padding: 20px 22px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); transition: border-color 0.3s; }
.featlist li:hover { border-color: var(--border-active); }
.featlist .fi { color: var(--accent-teal); font-weight: 800; flex-shrink: 0; }
.featlist h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; }
.featlist p { font-size: 0.89rem; color: var(--text-secondary); line-height: 1.55; }

/* Sibling products strip */
.siblings { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; max-width: var(--maxw); margin: 0 auto; }
.sibling { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; transition: border-color 0.3s, background 0.3s; }
.sibling:hover { border-color: var(--border-active); background: var(--bg-card-hover); }
.sibling .se { font-size: 1.2rem; }
.sibling .sn { font-weight: 700; font-size: 0.9rem; margin: 6px 0 4px; }
.sibling .sd { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.45; }

/* ═══════ BLOG ═══════ */
.post-list { display: flex; flex-direction: column; gap: 16px; max-width: 840px; margin: 0 auto; }
.post-item { display: block; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 28px 30px; transition: border-color 0.3s, background 0.3s; }
.post-item:hover { border-color: var(--border-active); background: var(--bg-card-hover); }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); flex-wrap: wrap; }
.post-item h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.5px; margin: 10px 0 8px; }
.post-item p { color: var(--text-secondary); font-size: 0.94rem; line-height: 1.65; }
.post-item .more { display: inline-block; margin-top: 14px; font-size: 0.84rem; font-weight: 600; color: var(--accent-teal-light); }
.post-empty { text-align: center; color: var(--text-muted); padding: 60px 0; }

.prose { max-width: 760px; margin: 0 auto; color: var(--text-secondary); font-size: 1.02rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { color: var(--text-primary); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.8px; margin-top: 2em; line-height: 1.25; }
.prose h3 { color: var(--text-primary); font-size: 1.22rem; font-weight: 700; margin-top: 1.7em; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose a { color: var(--accent-teal-light); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-teal); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.5em; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: rgba(255,255,255,0.06); border: 1px solid var(--border-line); border-radius: 6px; padding: 2px 6px; color: var(--accent-teal-light); }
.prose pre { background: #060a12; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 22px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; color: #c9d6e8; font-size: 0.82rem; line-height: 1.75; }
.prose blockquote { border-left: 3px solid var(--accent-teal); padding-left: 20px; color: var(--text-secondary); font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.prose hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 2.4em 0; }

/* ═══════ CTA ═══════ */
.cta-section { padding: 110px 48px; }
.cta-box { text-align: center; background: linear-gradient(135deg, rgba(58,189,176,0.12), rgba(232,98,58,0.10)); border: 1px solid var(--border-line-strong); border-radius: var(--radius-lg); padding: 64px 32px; max-width: 900px; margin: 0 auto; }
.cta-box h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -1px; max-width: 20ch; margin: 0 auto 18px; }
.cta-box p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; max-width: 640px; margin: 0 auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ═══════ SCROLL REVEALS ═══════ */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.9); }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
    .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .spark-flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .roles { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .siblings { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
/* When the navbar runs short of room, the GitHub button goes first: it is a
   secondary link that also sits in the footer and in the slide-in panel, and
   dropping it (plus tighter side padding) keeps all five entries visible far
   longer than collapsing the whole bar would. */
@media (max-width: 1100px) {
    .navbar, .navbar.scrolled { padding-left: 32px; padding-right: 32px; }
    .nav-cta .btn-ghost { display: none; }
}

/* Below this even the trimmed bar stops fitting — hand over to the slide-in
   panel, which carries the same five entries plus GitHub. */
@media (max-width: 900px) {
    /* Both selectors, so the 1100px rule above cannot win for the scrolled bar. */
    .navbar, .navbar.scrolled { padding-left: 24px; padding-right: 24px; }
    .navbar { padding-top: 14px; padding-bottom: 14px; }
    .navbar.scrolled { padding-top: 10px; padding-bottom: 10px; }
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
}
@media (max-width: 860px) {
    .section, .cta-section { padding: 80px 24px; }
    .page-hero { padding: 130px 24px 56px; }
    .footer { padding: 48px 24px 28px; }
    .g2, .g3, .split, .vlist, .featlist { grid-template-columns: minmax(0,1fr); }
    .spark-flow { grid-template-columns: minmax(0,1fr); }
    .siblings { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-container { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width: 640px) {
    .hero { padding: 110px 24px 60px; }
    .hero-title { font-size: clamp(2rem, 8.5vw, 2.4rem); letter-spacing: -1.5px; max-width: 100%; }
    .statrow { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .roles { grid-template-columns: minmax(0,1fr); }
    .siblings { grid-template-columns: minmax(0,1fr); }
    .post-item { padding: 22px 20px; }
    .footer-container { grid-template-columns: minmax(0,1fr); }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-left, .reveal-right, .reveal-scale, .tree-item, .hero-content { opacity: 1 !important; transform: none !important; visibility: visible !important; }
    .highlight-gradient, .hero-badge-dot { animation: none !important; }
    .nav-menu, .nav-menu .pm-group, .nav-menu .nav-menu-foot, .mobile-sub, .mobile-sub-toggle svg, .nav-chev { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
    .nav-menu { transform: none !important; }
}

/* ── Startseite · "So sieht es aus" ─────────────────────────────────────── */
.showcase-video {
    margin: 0 auto 40px;
    max-width: 960px;
}
.showcase-video video {
    display: block;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-line);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-card);
}
.showcase-video figcaption {
    margin-top: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: .9rem;
}
.showcase-examples-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 24px;
}
.card.example .badge {
    white-space: nowrap;
}

/* ═══════ ARTEFAKT-AUSZUG (Startseite, #showcase) ═══════
   Ein wörtlicher Ausschnitt aus einem echten QA-Bericht. Bewusst nah an der
   .code-Optik gehalten: Das soll wie eine Datei aussehen, nicht wie ein
   Marketing-Baustein. Die Tabelle scrollt seitlich statt umzubrechen — die
   Zellen sind Originaltext und dürfen nicht gekürzt werden. */
.artifact-intro { max-width: 760px; margin: 72px auto 24px; text-align: center; }
.artifact-intro h3 { font-size: clamp(1.25rem, 3vw, 1.7rem); margin: 10px 0 12px; letter-spacing: -0.5px; }
.artifact-intro p { color: var(--text-secondary); line-height: 1.65; }

.artifact { max-width: var(--maxw); margin: 0 auto; background: #060a12; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
.artifact-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--border-line); background: var(--bg-card); }
.artifact-path { font-size: 0.78rem; color: var(--text-secondary); word-break: break-all; }
.artifact-quote { margin: 0; padding: 20px 22px; border-left: 3px solid var(--accent-teal); background: var(--teal-dim); color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

.artifact-scroll { overflow-x: auto; }
.artifact-scroll:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: -2px; }
.artifact-table { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 0.78rem; line-height: 1.6; }
.artifact-table th, .artifact-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-line); text-align: left; vertical-align: top; }
.artifact-table thead th { position: sticky; top: 0; background: var(--bg-card); color: var(--text-muted); font-size: 0.7rem; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; }
.artifact-table tbody th { font-family: var(--font-mono); color: var(--accent-teal-light); white-space: nowrap; font-weight: 600; }
.artifact-table td { color: var(--text-secondary); }
.artifact-table code { font-family: var(--font-mono); font-size: 0.94em; color: #c9d6e8; background: rgba(255,255,255,0.05); padding: 1px 5px; border-radius: 4px; }
.artifact-table .artifact-verdict { white-space: nowrap; color: var(--text-light); /* Die Emoji-Glyphe frisst das folgende Leerzeichen optisch auf — der Text bleibt woertlich. */ word-spacing: 0.22em; }
.artifact-idnote { display: block; font-family: var(--font-main); font-size: 0.68rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; text-transform: none; margin-top: 3px; white-space: normal; }

/* Die Zeile, die nicht bestanden ist — der Grund, warum dieser Block existiert. */
.artifact-table tr.is-note { background: var(--orange-dim); }
.artifact-table tr.is-note th { color: var(--accent-orange-light); }
.artifact-table tr.is-note .artifact-verdict { color: var(--accent-orange-light); white-space: normal; min-width: 210px; }

.artifact-hint { display: none; }
.artifact-foot { margin: 0; padding: 18px 22px 0; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }
.artifact .more { display: inline-block; margin: 14px 22px 22px; }

@media (max-width: 860px) {
    .artifact-intro { margin-top: 56px; }
    .artifact-hint { display: block; margin: 10px 22px 0; color: var(--text-muted); font-size: 0.74rem; }
}
