/* ══════════════════════════════════════════
   SWARMATIC — css/index.css
   Nur für index.html. Lädt nach
   styles.css und nutzt ausschließlich dessen
   Tokens — keine neuen Farben, keine neuen Schriften.
   ══════════════════════════════════════════ */

/* ── Spiegel: drei Szenen ── */
.ng-scenes {
  margin: 0 auto 2.5rem;
  max-width: 520px;
  border-top: 1px solid var(--rule);
}
.ng-scenes p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-light);
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

/* ── Spielbrett ── */
.ng-board {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 5rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.ng-board-fig { margin: 0; }
.ng-board-fig svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ng-room { fill: var(--accent-light); stroke: none; }
.ng-bind { fill: none; stroke: var(--ink); stroke-opacity: 0.55; stroke-width: 1.4; }
.ng-reach line {
  stroke: var(--accent);
  stroke-opacity: 0.5;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.ng-reach-dot { fill: none; stroke: var(--accent); stroke-width: 1; }

.ng-board-keys {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.ng-key {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  column-gap: 1.25rem;
  align-items: baseline;
}
.ng-key h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.ng-key p {
  grid-column: 2;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 52ch;
}

/* Legende: dieselbe Form wie in der Figur */
.ng-glyph {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateY(1px);
}
.ng-glyph--room  { background: var(--accent); opacity: 0.35; }
.ng-glyph--bind  { border: 1.4px solid var(--ink); opacity: 0.6; }
.ng-glyph--reach { border: 1px dashed var(--accent); }

/* ── Belege: OmniMentis groß, darunter zwei Karten ── */
.ng-feature {
  display: flex;
  gap: 4rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 3.5rem;
  background: var(--bg-warm);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
.ng-feature-text { flex: 1 1 auto; min-width: 0; }
.ng-feature-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.ng-feature h3 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.ng-feature-lede {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1rem;
}
.ng-feature-text > p:not(.ng-feature-tag):not(.ng-feature-lede) {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-light);
  max-width: 56ch;
}
.ng-feature-status { margin: 2rem 0; border-top: 1px solid var(--rule); }
.ng-feature-status div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
}
.ng-feature-status dt { color: var(--ink); }
.ng-feature-status dd { color: var(--muted); text-align: right; }
.ng-feature-img { flex: 0 0 340px; margin: 0; }
.ng-feature-img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.ng-proof .product-grid { max-width: 1000px; }

.ng-video {
  max-width: 900px;
  margin: 0 auto 4rem;
}
.ng-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: var(--bg-warm);
}

/* ── Filter ── */
.ng-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  margin: 0 auto;
}
.ng-filter-col { padding: 3rem; }
.ng-filter-col--no { border-right: 1px solid var(--rule); }
.ng-filter-col h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.75rem;
}
.ng-filter-col--no h3 { color: var(--muted); }
.ng-filter-col ul { list-style: none; }
.ng-filter-col li {
  font-size: 0.92rem;
  line-height: 1.75;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
.ng-filter-col--no li { color: var(--muted); }
.ng-filter-col--yes li { color: var(--ink-light); }
.ng-filter-col--yes li:last-child,
.ng-filter-col--no li:last-child { border-bottom: 1px solid var(--rule); }

/* ── Fragen ── */
.ng-faq {
  max-width: 760px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.ng-faq details { border-top: 1px solid var(--rule); }
.ng-faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.5rem 2.5rem 1.5rem 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}
.ng-faq summary::-webkit-details-marker { display: none; }
.ng-faq summary::after {
  content: '';
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}
.ng-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ng-faq summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.ng-faq details p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-light);
  max-width: 62ch;
  padding: 0 0 1.75rem;
}

/* ── Schluss ── */
.ng-end-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(244,241,236,0.6);
  max-width: 460px;
  margin: -1.5rem auto 3rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ng-board { grid-template-columns: 1fr; gap: 3rem; }
  .ng-board-fig { max-width: 300px; margin: 0 auto; }
  .ng-proof .product-grid { grid-template-columns: 1fr; }
  .ng-feature { flex-direction: column-reverse; align-items: stretch; gap: 2rem; padding: 2.25rem 1.75rem; }
  .ng-feature-img { flex-basis: auto; }
  .ng-feature-status div { flex-direction: column; gap: 0.2rem; }
  .ng-feature-status dd { text-align: left; }
  .ng-filter { grid-template-columns: 1fr; }
  .ng-filter-col { padding: 2rem 0; }
  .ng-filter-col--no { border-right: 0; }
  .ng-faq summary { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ng-faq summary::after { transition: none; }
}

/* ── Hero: längere Zeile als auf der Startseite,
      daher eine Stufe kleiner ── */
.ng-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: 1.05;
}
.ng-hero .hero-ornament {
  width: min(480px, 100vw);
  height: min(480px, 100vw);
}

/* Filter folgt direkt auf die Belege: kein doppelter Abstand */
.ng-filter-section { padding-top: 2rem; }

/* Menüknopf auf Mobil. In styles.css steht die Grundregel
   (display:none) hinter der Media-Query und gewinnt deshalb
   immer — der Knopf erscheint auf keiner Seite. Bis das dort
   korrigiert ist, holt diese Zeile ihn hier zurück. */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
}

/* ══════════════════════════════════════════
   MEDIEN: Video, Skizzen je Schritt, Workshop-Bilder
   Fehlende Dateien werden ausgeblendet (Bilder über
   main.js, Video über js/i18n/index.js).
   ══════════════════════════════════════════ */

/* ── Video direkt nach dem Hero ── */
.ng-video-section { padding: 0 4rem 8rem; }
.ng-video {
  max-width: 960px;
  margin: 0 auto;
}
.ng-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-warm);
}
.ng-video figcaption,
.ng-gallery figcaption {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 1rem;
}
.ng-video figcaption { text-align: center; }

/* ── Skizze neben jedem SIM-Schritt ── */
.ng-sim .stage {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.ng-stage-text { flex: 1 1 auto; min-width: 0; }
.ng-sketch {
  flex: 0 0 200px;
  margin: 0;
}
.ng-sketch img {
  display: block;
  width: 100%;
  height: auto;
}
.ng-sim .stage-list { max-width: 1000px; }

/* ── Workshop-Bilder unter den Belegen ── */
.ng-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 4rem auto 0;
}
.ng-gallery figure { margin: 0; }
.ng-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-warm);
}

@media (max-width: 900px) {
  .ng-video-section { padding: 0 2rem 5rem; }
  .ng-sim .stage { flex-direction: column-reverse; gap: 1.5rem; }
  .ng-sketch { flex-basis: auto; width: 160px; }
  .ng-gallery { grid-template-columns: 1fr; }
}
