@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@500;600;700&display=swap");

:root {
  --orange: #ff8a2b;
  --orange-hot: #ff6a00;
  --ink: #10131a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-solid: #1a1e28;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 138, 43, 0.28);
  --muted: #939baf;
  --text: #f2f3f7;
  --text-soft: #cfd4e0;
  --radius: 12px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 900px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-pad: clamp(2.75rem, 6vw, 3.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ink);
  line-height: 1.65;
  font-size: 1.05rem;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 65% 40% at 10% 0%, rgba(255, 138, 43, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 35% at 100% 8%, rgba(255, 106, 0, 0.05), transparent 50%),
    linear-gradient(180deg, #151922 0%, var(--ink) 45%);
}

a {
  color: var(--orange);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255, 138, 43, 0.14);
  color: #ffc48a;
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

.wrap {
  width: min(var(--max), calc(100% - 2.25rem));
  margin-inline: auto;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: visible;
}
.logo-mark .block-shape {
  fill: var(--orange);
}
.logo-mark .pulse {
  fill: #1a1008;
  transform-box: fill-box;
  transform-origin: center;
}
.logo-mark .pulse-ring {
  fill: none;
  stroke: #1a1008;
  stroke-width: 1.75;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.logo:hover .logo-mark .pulse {
  animation: impulse-pulse 0.9s var(--ease);
}
.logo:hover .logo-mark .pulse-ring {
  animation: impulse-ring 0.9s var(--ease);
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.1;
}
.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-text span {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

@keyframes impulse-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  45% {
    transform: scale(1.95);
    opacity: 0.2;
  }
}
@keyframes impulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.75;
    stroke-width: 2;
  }
  70% {
    transform: scale(2.35);
    opacity: 0;
    stroke-width: 0.5;
  }
  100% {
    transform: scale(2.35);
    opacity: 0;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.15);
  background: rgba(16, 19, 26, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.85rem;
}
.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-left: auto;
}
.nav-main a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 4.25rem) 0 var(--section-pad);
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 43, 0.3), transparent);
}
.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  background: linear-gradient(120deg, #fff 25%, #ffd4a8 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-in 0.65s var(--ease) both;
}
.hero h1 {
  margin: 0 0 0.9rem;
  max-width: 34rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.2vw, 1.32rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--text-soft);
  animation: brand-in 0.65s var(--ease) 0.06s both;
}
.lead {
  margin: 0 0 1.1rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  animation: brand-in 0.65s var(--ease) 0.12s both;
}
.hero-cta {
  margin: 0;
  animation: brand-in 0.65s var(--ease) 0.18s both;
}
.hero-cta a {
  font-weight: 700;
  font-size: 0.95rem;
}
@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sections — one rhythm */
.section {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type {
  border-bottom: none;
}
.section-accent {
  background:
    radial-gradient(ellipse 70% 80% at 0% 40%, rgba(255, 138, 43, 0.1), transparent 55%),
    rgba(255, 138, 43, 0.03);
  border-bottom-color: var(--line-strong);
}
.section-head {
  margin-bottom: 1.5rem;
  max-width: 38rem;
}
.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffc48a;
}
.section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--text);
}
.section-accent h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
}
.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Plugin flow — symbolic */
.flow {
  --flow-icon: 2.85rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 1.15rem 0.75rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem 0;
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 138, 43, 0.18);
  background:
    radial-gradient(ellipse 80% 120% at 50% -20%, rgba(255, 138, 43, 0.1), transparent 55%),
    rgba(8, 10, 14, 0.45);
}
.flow::before {
  content: "";
  position: absolute;
  /* Nur zwischen 1. und letztem Icon — Spaltenzentren bei 12.5% / 87.5% */
  top: calc(1.15rem + var(--flow-icon) / 2);
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 138, 43, 0.2),
    rgba(255, 138, 43, 0.75) 18%,
    rgba(255, 106, 0, 0.85) 50%,
    rgba(255, 138, 43, 0.75) 82%,
    rgba(255, 138, 43, 0.2)
  );
  pointer-events: none;
  z-index: 0;
}
.flow-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding: 0 0.55rem;
  background: none;
  border: none;
}
.flow-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--flow-icon);
  height: var(--flow-icon);
  margin-bottom: 0.55rem;
  border-radius: 50%;
  color: #ffd4a8;
  background: #12151c;
  background-image: linear-gradient(
    160deg,
    rgba(255, 138, 43, 0.4),
    rgba(255, 106, 0, 0.15) 52%,
    #12151c 100%
  );
  border: 1px solid rgba(255, 138, 43, 0.5);
  /* Deckt die Linie unter dem Icon ab — Segment nur dazwischen sichtbar */
  box-shadow:
    0 0 0 6px #0d1016,
    0 8px 22px rgba(255, 106, 0, 0.2);
}
.flow-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}
.flow-step strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.flow-step > span:last-child {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  max-width: none;
}

/* Shared blocks — one card language */
.blocks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.block {
  margin: 0;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 138, 43, 0.05), transparent 42%),
    var(--panel);
}
.block h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
.block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}
.block-note {
  margin: 0 0 0.55rem !important;
  font-size: 0.88rem !important;
  color: var(--text-soft) !important;
}
.platforms-foot {
  margin: 1.15rem 0 0;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.blocks-numbered .block {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.2rem;
}
.block-num {
  grid-row: 1 / -1;
  align-self: start;
  margin-top: 0.1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--orange);
  min-width: 1.5rem;
}
.blocks-numbered .block h3 {
  grid-column: 2;
}
.blocks-numbered .block p {
  grid-column: 2;
}
.blocks-numbered .block .example,
.blocks-numbered .block .example-fold {
  grid-column: 2;
}

.example-fold {
  margin: 0.65rem 0 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0c10;
  overflow: hidden;
}
.example-fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c5cad6;
  user-select: none;
}
.example-fold > summary::-webkit-details-marker {
  display: none;
}
.example-fold > summary::before {
  content: "▸ ";
  color: var(--orange);
  font-weight: 700;
}
.example-fold[open] > summary::before {
  content: "▾ ";
}
.example-fold > summary:hover {
  color: #e8ecf4;
  background: rgba(255, 255, 255, 0.03);
}
.example-fold .example {
  margin: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  max-height: 16rem;
  overflow: auto;
}

.example {
  margin: 0.65rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0c10;
  overflow-x: auto;
}
.example-console {
  border-left: 3px solid var(--orange);
  background: #080a0e;
}
.example code {
  display: block;
  padding: 0;
  background: none;
  color: #c5cad6;
  font-size: 0.76rem;
  line-height: 1.55;
  white-space: pre;
  border-radius: 0;
}
.ex-time {
  color: #6a7388;
}
.ex-dim {
  color: #8b93a8;
}
.ex-name {
  color: #ff8a2b;
  font-weight: 700;
}
.ex-banner {
  color: #ffb06a;
  font-weight: 600;
}
.ex-other {
  color: #4e5566;
}
.ex-other .ex-time {
  color: #3d4454;
}
.ex-plugin {
  color: #f2f4f8;
  font-weight: 700;
}
.ex-ver {
  color: #55c97a;
  font-weight: 600;
}
.ex-cmd {
  color: #e6edf7;
}
.ex-muted {
  color: #8b93a8;
}

.section-accent .block {
  border-color: rgba(255, 138, 43, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 138, 43, 0.08), transparent 45%),
    rgba(12, 14, 19, 0.35);
}

/* Roles — same blocks, two columns */
.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.ticks {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ticks li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 43, 0.14);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.footer-nav a:hover {
  color: var(--orange);
}

/* Legal */
.legal-page {
  padding: 2.5rem 0 3.5rem;
}
.legal-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.legal-badge {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #ffc48a;
  background: rgba(255, 138, 43, 0.12);
  border: 1px solid rgba(255, 138, 43, 0.28);
}
.legal-page h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 650;
}
.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.legal-page p {
  margin: 0 0 0.85rem;
  max-width: 42rem;
}
.legal-page ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  max-width: 42rem;
}
.legal-page li {
  margin-bottom: 0.35rem;
}
.legal-placeholder {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: #ffc48a;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86em;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-main {
    display: none;
    position: absolute;
    left: 1.125rem;
    right: 1.125rem;
    top: 4rem;
    margin-left: 0;
    flex-direction: column;
    padding: 0.45rem;
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .nav-main.open {
    display: flex;
  }
  .site-header {
    position: relative;
  }
  .roles {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 0.75rem;
    padding: 1.1rem 0.85rem 1.15rem;
  }
  .flow::before {
    display: none;
  }
  .flow-step {
    padding: 0.85rem 0.7rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 138, 43, 0.16);
    background: rgba(12, 14, 19, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .hero h1,
  .lead,
  .hero-cta {
    animation: none;
  }
  .logo-mark .pulse,
  .logo-mark .pulse-ring {
    animation: none;
  }
}
