/* ══════════════════════════════════════════
   SWARMATIC — css/strands.css
   Lädt nach styles.css und index.css.
   Ergänzt Tokens und Bausteine; überschreibt
   nichts Bestehendes.
   ══════════════════════════════════════════ */


/* ── Strang-Farben ───────────────────────── */

:root {
  --strand-umbau: #2d3a5e;
  --strand-umbau-light: rgba(45, 58, 94, 0.08);
  --strand-software: #1f5751;
  --strand-software-light: rgba(31, 87, 81, 0.08);
  --strand-startup: #5a3350;
  --strand-startup-light: rgba(90, 51, 80, 0.08);
}


/* ── Warum es uns gibt ───────────────────── */

.st-philo-list {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Drei Spalten, nicht zwei: die Skizze steht links, rechts bleibt
   derselbe Rand frei. Nur so sitzt die Textspalte mittig unter der
   zentrierten Überschrift — mit Skizze wie ohne. */
.st-philo-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 170px;
  gap: 2.5rem;
  align-items: start;
}

.st-philo-fig {
  grid-column: 1;
  margin: 0;
  padding-top: 0.25rem;
}

.st-philo-fig img {
  display: block;
  width: 100%;
  height: auto;
}

/* Feste Spalte. Ohne sie rutscht der Text in Spalte eins,
   sobald main.js eine fehlende Skizze ausblendet — und bricht
   dann in 170 Pixel Breite um. */
.st-philo-p {
  grid-column: 2;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-light);
  margin: 0;
  max-width: 62ch;
}

.st-philo-note {
  max-width: 880px;
  margin: 3.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
}

@media (max-width: 980px) {
  .st-philo-row { grid-template-columns: 140px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .st-philo-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .st-philo-fig { width: 120px; grid-column: 1; }
  .st-philo-p { grid-column: 1; }
}


/* ── Der Baum ────────────────────────────── */

.st-tree {
  margin: 0 auto 4rem;
  max-width: 1000px;
}

.st-tree svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.st-tree--narrow { display: none; max-width: 340px; }

@media (max-width: 820px) {
  .st-tree--wide { display: none; }
  .st-tree--narrow { display: block; }
}

/* Äste */
.st-br {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.st-br--umbau { stroke: var(--strand-umbau); }
.st-br--software { stroke: var(--strand-software); }
.st-br--startup { stroke: var(--strand-startup); }

/* Die Fortsetzung läuft aus: der Ast hört nicht auf, er geht weiter */
.st-br--tail { stroke-dasharray: 2 7; opacity: 0.55; }

/* Knoten */
.st-node { fill: var(--bg); stroke-width: 1.6; }
.st-node--root { stroke: var(--ink); }
.st-node--umbau { stroke: var(--strand-umbau); }
.st-node--software { stroke: var(--strand-software); }
.st-node--startup { stroke: var(--strand-startup); }

/* Icons: Platzhalter, bis die echten da sind */
.st-icon { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.st-icon--root { stroke: var(--ink); }
.st-icon--umbau { stroke: var(--strand-umbau); }
.st-icon--software { stroke: var(--strand-software); }
.st-icon--startup { stroke: var(--strand-startup); }

/* Beschriftung im Baum */
.st-node-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  fill: var(--ink);
}
.st-strand-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  fill: var(--ink);
}
.st-strand-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.06em;
  fill: var(--muted);
}


/* ── Die drei Strangkarten ───────────────── */

.st-strands {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.st-strand {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 2rem 0 2rem 1.75rem;
  border-left: 3px solid var(--rule);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.st-strand:hover { transform: translateY(-3px); }

.st-strand-n {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.st-strand h3 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.st-strand-lede {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-light);
  margin: 0 0 1.5rem;
}

.st-strand-proof {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 1.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
}

.st-strand-go {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.st-strand--umbau { border-left-color: var(--strand-umbau); }
.st-strand--umbau .st-strand-proof { background: var(--strand-umbau-light); color: var(--strand-umbau); }
.st-strand--umbau .st-strand-go { color: var(--strand-umbau); }

.st-strand--software { border-left-color: var(--strand-software); }
.st-strand--software .st-strand-proof { background: var(--strand-software-light); color: var(--strand-software); }
.st-strand--software .st-strand-go { color: var(--strand-software); }

.st-strand--startup { border-left-color: var(--strand-startup); }
.st-strand--startup .st-strand-proof { background: var(--strand-startup-light); color: var(--strand-startup); }
.st-strand--startup .st-strand-go { color: var(--strand-startup); }

@media (max-width: 900px) {
  .st-strands { grid-template-columns: 1fr; gap: 0; }
  .st-strand { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}


/* ── Strang-Abschnitte: der Ast läuft weiter ── */

.st-section { position: relative; }

.st-section::before {
  content: '';
  position: absolute;
  left: 2.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: currentColor;
  opacity: 0.22;
}

.st-section--umbau { color: var(--strand-umbau); }
.st-section--software { color: var(--strand-software); }
.st-section--startup { color: var(--strand-startup); }

.st-section > * { color: initial; }

.st-section--umbau .section-intro .eyebrow { color: var(--strand-umbau); }
.st-section--software .section-intro .eyebrow { color: var(--strand-software); }
.st-section--startup .section-intro .eyebrow { color: var(--strand-startup); }

@media (max-width: 900px) {
  .st-section::before { left: 1rem; }
}


/* ── Produktleiter mit Knoten auf dem Ast ── */

.st-ladder {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.st-rung {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--rule);
}

.st-rung::before {
  content: '';
  position: absolute;
  left: 0;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--rule);
}

.st-section--umbau .st-rung { border-top-color: var(--strand-umbau); }
.st-section--umbau .st-rung::before { border-color: var(--strand-umbau); }
.st-section--umbau .st-rung-meta { color: var(--strand-umbau); }

.st-section--software .st-rung { border-top-color: var(--strand-software); }
.st-section--software .st-rung::before { border-color: var(--strand-software); background: var(--bg-warm); }
.st-section--software .st-rung-meta { color: var(--strand-software); }

.st-section--startup .st-rung { border-top-color: var(--strand-startup); }
.st-section--startup .st-rung::before { border-color: var(--strand-startup); }
.st-section--startup .st-rung-meta { color: var(--strand-startup); }

.st-rung-h {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.3rem;
}

.st-rung-meta {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.st-rung-p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-light);
  margin: 0;
}

.st-note {
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg);
  border-left: 2px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-light);
}

.st-more {
  max-width: 1000px;
  margin: 2.5rem auto 0;
}

@media (max-width: 900px) {
  .st-ladder { grid-template-columns: 1fr; gap: 2.5rem; }
}


/* ── Unsere Firmen ───────────────────────── */

.st-portfolio {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.st-card {
  padding: 1.5rem;
  background: var(--bg-warm);
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.st-card:hover { transform: translateY(-3px); }

.st-card-img {
  margin: 0 0 1.25rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: var(--bg);
}

.st-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.st-card-p {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-light);
  margin: 0 0 1.5rem;
}

.st-phases {
  display: flex;
  gap: 4px;
  margin-bottom: 0.6rem;
}

.st-ph {
  flex: 1;
  height: 3px;
  background: var(--rule);
  border-radius: 2px;
}

.st-ph--done { background: var(--accent); opacity: 0.45; }
.st-ph--now { background: var(--accent); }

.st-card-phase {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.st-phases-legend {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
}

@media (max-width: 1100px) { .st-portfolio { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .st-portfolio { grid-template-columns: 1fr; } }


/* ── Schlanke Navigation (Landingpages) ──── */

.nav-lean .nav-right { justify-content: flex-end; }


/* ── Einfache Inhaltsseiten ──────────────── */

.st-prose {
  max-width: 720px;
  margin: 0 auto;
}

.st-prose p {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--ink-light);
  margin: 0 0 1.5rem;
}

.st-prose h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
}

.st-prose ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.st-prose li {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-light);
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}

.st-prose li:last-child { border-bottom: 1px solid var(--rule); }

.st-status {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  background: var(--accent-light);
  border-radius: 3px;
  margin-bottom: 1.5rem;
}
