*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Silber/Blau/Gold — dieselbe Farbpalette wie die echte GuiTestStudio-Anwendung
   (siehe GuiTestStudio/Themes/Theme.xaml): helle "silberne" Flächen, Blau als Hauptakzent,
   Gold/Bernstein als zweiter Akzent. Variablennamen bleiben aus dem gemeinsamen Template
   (ink/parchment/steel/bronze) erhalten, nur die Werte wurden von der dunklen Comic-Optik
   auf das helle App-Farbschema umgestellt. */
:root {
  --ink:       #F3F4F7;
  --parchment: #1F2328;
  --surface:   #FFFFFF;
  --surface2:  #F8F9FB;
  --border:    #E2E5EA;
  --steel:     #2563EB;
  --bronze:    #B45309;
  --muted:     #69707A;
  /* Dritter Plattform-Akzent — identisch zur Grün-Akzentfarbe der echten App
     (GuiTestStudio/Themes/Theme.xaml, Success #1A7F37 nahe verwandt), site-weit verfügbar für
     Cross-Plattform-Elemente (nicht mehr nur auf der Comic-Seite, siehe comic.css). */
  --android:   #16A34A;
  --serif:     Georgia, 'Times New Roman', serif;
  --sans:      system-ui, -apple-system, sans-serif;
  --mono:      'Courier New', Courier, monospace;
}

/* Halbton-Punktraster — 1:1 aus comic.css hierher verschoben, da jetzt auch außerhalb der
   Comic-Seite verwendet (z. B. Startseiten-Kernvorteile). */
.halftone {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(37, 99, 235, .5) 1px, transparent 1.6px);
  background-size: 9px 9px;
  opacity: .12;
  pointer-events: none;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--steel); text-decoration: none; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, 5vw);
  height: 60px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,229,234,.9);
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--parchment);
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--bronze); }
.nav-logo-icon { height: 28px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  overflow-x: auto;
}

.nav-links a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a.is-current { color: var(--parchment); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 6px;
  background: var(--steel);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: filter .15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.15); color: #fff; }

/* Download-Button: eigener Gold-Akzent, damit er sich neben "Kontakt aufnehmen" (Blau) klar als
   die primäre, eigenständige Handlung abhebt — die Hover-Filter-Regel oben gilt dank .nav-cta
   automatisch mit. */
.nav-cta.nav-download { background: var(--bronze); }

/* ── HERO ─────────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px max(24px, 5vw) 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind the headline */
.hero::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(37, 99, 235,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--bronze);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--parchment);
  text-wrap: balance;
  max-width: 820px;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--steel);
}

.hero-sub {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Kompakte Plattform-Zeile im Hero — sofortiges Cross-Plattform-Signal, ohne den Hero mit einer
   ganzen Karte zu belasten (die ausführliche Botschaft steht in den Kernvorteilen darunter). */
.platform-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
}
.platform-strip-item { color: var(--parchment); }
.platform-strip-sep { color: var(--border); }
.platform-strip-link {
  margin-left: 8px;
  color: var(--steel);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235,.4);
}

/* Abgrenzung zu Chat-Copiloten (Microsoft 365 Copilot, GitHub Copilot, Claude-Chat & Co.) */
.hero-distinction {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 620px;
  margin: 0 auto 56px;
  padding: 16px 22px;
  border: 1px solid rgba(180,83,9,.35);
  background: rgba(180,83,9,.06);
  border-radius: 10px;
  text-align: left;
}

.hero-distinction-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-distinction p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-distinction strong {
  color: var(--bronze);
  font-weight: 700;
}

/* Kompakte Variante des Hero-Bereichs für die Doku-Unterseiten (Installation/Erste Schritte/Tipps) —
   ohne Workflow-Animation und Distinction-Box, dafür mit Breadcrumb. */
.doc-hero {
  min-height: auto;
  padding: 140px max(24px, 5vw) 60px;
}
.doc-hero .hero-sub { margin-bottom: 0; }

.doc-breadcrumb {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.doc-breadcrumb a { color: var(--steel); }

/* ── WORKFLOW ANIMATION ───────────────────────────────────────────────────── */

.workflow-demo {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 auto;
  max-width: 780px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}

.wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wf-box {
  width: 110px;
  padding: 14px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  transition: border-color .3s, box-shadow .3s, background .3s;
}

.wf-box-icon {
  font-size: 1.3rem;
  margin-bottom: 6px;
  display: block;
  filter: grayscale(1) opacity(.4);
  transition: filter .3s;
}

.wf-box-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color .3s;
}

.wf-box-sub {
  font-size: .7rem;
  color: #3a5070;
  margin-top: 3px;
  transition: color .3s;
}

/* active state – set via JS class */
.wf-step.is-active .wf-box {
  border-color: var(--steel);
  background: rgba(37, 99, 235,.08);
  box-shadow: 0 0 24px rgba(37, 99, 235,.18);
}
.wf-step.is-active .wf-box-icon { filter: none; }
.wf-step.is-active .wf-box-label { color: var(--parchment); }
.wf-step.is-active .wf-box-sub { color: var(--muted); }

/* final step uses bronze */
.wf-step.is-done .wf-box {
  border-color: var(--bronze);
  background: rgba(180,83,9,.07);
  box-shadow: 0 0 24px rgba(180,83,9,.15);
}
.wf-step.is-done .wf-box-icon { filter: none; }
.wf-step.is-done .wf-box-label { color: var(--bronze); }

.wf-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wf-arrow-line {
  width: 44px;
  height: 2px;
  background: var(--border);
  position: relative;
  transition: background .4s;
}

.wf-arrow-line::after {
  content: '';
  position: absolute;
  right: -5px; top: -4px;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--border);
  transition: border-left-color .4s;
}

.wf-arrow.is-active .wf-arrow-line { background: var(--steel); }
.wf-arrow.is-active .wf-arrow-line::after { border-left-color: var(--steel); }

/* ── SECTION SHARED ───────────────────────────────────────────────────────── */

section { padding: 100px max(24px, 5vw); }

.section-eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--bronze);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--parchment);
  margin-bottom: 20px;
}

.section-intro {
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* ── CAPABILITIES ─────────────────────────────────────────────────────────── */

.capabilities { background: var(--surface); }

.cap-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.cap-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .28);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .15s;
}
.cap-card:hover {
  background: var(--surface2);
  border-color: var(--steel);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .32);
}

.cap-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: block;
}

.cap-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--parchment);
  letter-spacing: -.01em;
}

.cap-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.cap-tag {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(37, 99, 235,.1);
  border: 1px solid rgba(37, 99, 235,.2);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ── HOW IT WORKS / NUMBERED STEPS ────────────────────────────────────────── */

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px 36px;
  counter-reset: steps;
}

.how-steps.single-column {
  grid-template-columns: 1fr;
  max-width: 720px;
  gap: 40px;
}

.how-step {
  counter-increment: steps;
  position: relative;
  padding-top: 56px;
}

.how-steps.single-column .how-step {
  padding-top: 0;
  padding-left: 64px;
  min-height: 44px;
}

.how-step::before {
  content: counter(steps);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bronze);
  line-height: 1;
  opacity: .9;
}

.how-step-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.how-step-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

.how-step-desc code, .cap-desc code, .callout code, .bento-desc code {
  font-family: var(--mono);
  font-size: .85em;
  color: var(--parchment);
  background: rgba(15,23,42,.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ── FEATURES BENTO ───────────────────────────────────────────────────────── */

.features { background: var(--surface); }

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.bento-card {
  background: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .3);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, transform .15s, box-shadow .15s;
}
.bento-card:hover {
  border-color: var(--steel);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .34);
}

.bento-card.wide  { grid-column: span 7; }
.bento-card.narrow { grid-column: span 5; }
.bento-card.half  { grid-column: span 6; }
.bento-card.full  { grid-column: span 12; }

.bento-badge {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bronze);
  background: rgba(180,83,9,.1);
  border: 1px solid rgba(180,83,9,.2);
  border-radius: 4px;
  padding: 3px 9px;
  align-self: flex-start;
}

.bento-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--parchment);
  letter-spacing: -.015em;
  line-height: 1.25;
  text-wrap: balance;
}

.bento-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 42ch;
}

/* Mini feed visualization */
.bento-feed-demo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.feed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 8px;
  font-size: .8rem;
}
.feed-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feed-dot.changed { background: var(--bronze); }
.feed-dot.same    { background: var(--border); }
.feed-name { flex: 1; color: var(--parchment); }
.feed-meta { font-family: var(--mono); font-size: .65rem; color: var(--muted); }

/* Chat preview */
.bento-chat-demo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.chat-bubble {
  padding: 9px 13px;
  border-radius: 8px;
  font-size: .8rem;
  max-width: 88%;
  line-height: 1.45;
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--steel);
  color: #fff;
}
.chat-bubble.bot {
  align-self: flex-start;
  background: var(--surface2);
  color: var(--parchment);
}

/* Theme-swatch preview (Dokument-Designs) */
.theme-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.theme-swatch {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(31,35,40,.15);
  flex-shrink: 0;
}

/* ── DOC PAGES: callouts, code blocks, TOC, prose ─────────────────────────── */

.doc-section-inner {
  max-width: 760px;
  margin: 0 auto;
}
.doc-section-inner.wide { max-width: 1100px; }

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .2);
  margin: 28px 0;
}
.callout-icon { font-size: 1.2rem; flex-shrink: 0; }
.callout p { font-size: .9rem; color: var(--muted); line-height: 1.65; }
.callout strong { color: var(--parchment); }

.callout.tip   { border-color: rgba(37, 99, 235,.35); background: rgba(37, 99, 235,.06); }
.callout.warn  { border-color: rgba(180,83,9,.35); background: rgba(180,83,9,.06); }

.doc-prose h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--parchment);
  letter-spacing: -.01em;
  margin: 44px 0 16px;
}
.doc-prose h3:first-child { margin-top: 0; }
.doc-prose p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.doc-prose ul, .doc-prose ol {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
  margin: 0 0 16px;
  padding-left: 1.4em;
}
.doc-prose li { margin-bottom: 6px; }
.doc-prose li strong { color: var(--parchment); }
.doc-prose code {
  font-family: var(--mono);
  font-size: .85em;
  color: var(--parchment);
  background: rgba(15,23,42,.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}
.doc-prose a { text-decoration: underline; text-decoration-color: rgba(37, 99, 235,.4); }

.doc-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.doc-nav-card {
  display: block;
  padding: 22px 24px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .26);
  transition: border-color .2s, transform .15s, box-shadow .15s;
}
.doc-nav-card:hover {
  border-color: var(--steel);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .3);
}
.doc-nav-card-label { font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); margin-bottom: 8px; display: block; }
.doc-nav-card-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--parchment); margin-bottom: 6px; }
.doc-nav-card-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */

.cta-section {
  text-align: center;
  padding: 120px max(24px, 5vw);
}

.cta-section .section-title { margin: 0 auto 20px; max-width: 600px; }
.cta-section .section-intro { margin: 0 auto 48px; }

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 8px;
  background: var(--steel);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: filter .15s, transform .15s;
}
.cta-primary:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 32px max(24px, 5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--parchment);
}
.footer-logo span { color: var(--bronze); }

.footer-copy {
  font-size: .8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: .8rem;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .bento-card.wide,
  .bento-card.narrow,
  .bento-card.half { grid-column: span 12; }
  .workflow-demo { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 2.2rem; }
  .wf-box { width: 90px; padding: 10px 8px; }
  .wf-arrow-line { width: 28px; }
  .hero-distinction { flex-direction: column; text-align: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
