/* ══════════════════════════════════════════
   SWARMATIC — styles.css
   Master stylesheet for all pages
   ══════════════════════════════════════════ */

:root {
  --bg: #f4f1ec;
  --bg-warm: #ece8e1;
  --ink: #1a1a2e;
  --ink-light: #3a3a52;
  --muted: #9a9690;
  --accent: #2d3a5e;
  --accent-light: rgba(45,58,94,0.08);
  --accent-hover: #3d4f7d;
  --rule: rgba(26,26,46,0.1);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 4rem;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}

.logo {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

a.logo { text-decoration: none; color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.nav-links a:hover { opacity: 1; }

/* ── Nav dropdown ── */
.nav-group { position: relative; }

.nav-group-toggle {
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.nav-group-toggle::after {
  content: '';
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  margin-left: 0.7em;
  vertical-align: 0.18em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.nav-group:hover .nav-group-toggle,
.nav-group:focus-within .nav-group-toggle,
.nav-group-toggle[aria-expanded="true"] { opacity: 1; }

.nav-group-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-0.4rem);
  margin-top: 1.1rem;
  padding: 1.1rem 1.6rem;
  list-style: none;
  display: grid;
  gap: 0.9rem;
  white-space: nowrap;
  background: var(--bg);
  border: 1px solid var(--rule);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu,
.nav-group-toggle[aria-expanded="true"] + .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-submenu a { display: block; opacity: 0.55; }

/* ── Language Toggle ── */
.lang-toggle {
  display: flex;
  align-items: center;
  user-select: none;
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.lang-toggle button.active { opacity: 1; }
.lang-toggle button:hover { opacity: 0.7; }

.lang-divider {
  width: 1px;
  height: 12px;
  background: var(--ink);
  opacity: 0.2;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 4rem 6rem;
  position: relative;
  text-align: center;
}

.hero-ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  opacity: 0.06;
  pointer-events: none;
}

.hero-ornament canvas { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 7.5vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--ink);
}

.hero h1 strong {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(2.6rem, 9vw, 7rem);
  }
  .hero h1 br {
    display: none;
  }
  .manifesto-text h2 br {
    display: none;
  }
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}

.hero-claim {
  margin-top: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 2.5s ease infinite;
}

/* ══════════════════════════════════════════
   SECTIONS (shared)
   ══════════════════════════════════════════ */
.section {
  padding: 8rem 4rem;
  position: relative;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-intro .eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.section-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.section-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.section-divider {
  width: 48px;
  height: 1px;
  background: var(--rule);
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   PRINCIPLES
   ══════════════════════════════════════════ */
.principle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.principle-card {
  padding: 3.5rem 3rem;
  position: relative;
  cursor: default;
  transition: background 0.5s ease;
}

.principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
}

.principle-card:nth-child(odd)::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}

.principle-card:hover {
  background: var(--accent-light);
}

.principle-number {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
}

.principle-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.principle-subtitle {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}

.principle-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 320px;
}

/* ══════════════════════════════════════════
   MANIFESTO
   ══════════════════════════════════════════ */
.manifesto {
  padding: 10rem 4rem;
  display: flex;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--bg-warm);
}

.manifesto-text {
  max-width: 660px;
}

.manifesto-text .eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.manifesto-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 2.5rem;
  color: var(--ink);
}

.manifesto-text h2 em {
  font-style: italic;
  color: var(--accent);
}

.manifesto-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
}

/* the four-step procedure, drawn */
.vf-fig {
  margin: 4.5rem auto 0;
  max-width: 620px;
}

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

.vf-hair { fill: none; stroke: rgba(26,26,46,0.22); stroke-width: 1; }
.vf-dot { fill: rgba(26,26,46,0.5); }
.vf-dot-accent { fill: var(--accent); }
.vf-ring { fill: none; stroke: var(--accent); stroke-width: 1; }
.vf-lbl {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  fill: var(--ink-light);
}
.vf-lbl-accent { fill: var(--accent); font-weight: 500; }
.vf-num {
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: italic;
  fill: rgba(26,26,46,0.45);
}

.vf-fig svg.vf-m { display: none; }
.vf-m .vf-lbl { font-size: 12px; letter-spacing: 1.6px; }
.vf-m .vf-num { font-size: 14px; }

@media (max-width: 700px) {
  .vf-fig { margin-top: 3.5rem; }
  .vf-fig svg.vf-d { display: none; }
  .vf-fig svg.vf-m { display: block; }
}
.vf-num-accent {
  fill: var(--accent);
  font-size: 13px;
  font-style: normal;
}

.vf-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: vfPulse 3.2s cubic-bezier(0.4,0,0.2,1) infinite;
}

@keyframes vfPulse {
  0% { transform: scale(1); opacity: 0.5 }
  70% { transform: scale(3.2); opacity: 0 }
  100% { transform: scale(3.2); opacity: 0 }
}

@media (prefers-reduced-motion: reduce) {
  .vf-pulse { animation: none; opacity: 0; }
}

/* ══════════════════════════════════════════
   ARCHITECTURE
   ══════════════════════════════════════════ */
.architecture {
  padding: 8rem 4rem;
  position: relative;
}

.arch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.arch-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-warm);
  border-radius: 4px;
}

.arch-visual canvas { width: 100%; height: 100%; }

.arch-content { padding-top: 0; }

.arch-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 3rem;
  letter-spacing: -0.015em;
}

.arch-features {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.arch-feature {
  padding-left: 2rem;
  border-left: 1px solid var(--rule);
  transition: border-color 0.4s ease;
}

.arch-feature:hover {
  border-left-color: var(--accent);
}

.arch-feature h4 {
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.arch-subtitle {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-light);
  margin-bottom: 0.6rem;
}

.arch-feature p:last-child {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.cta-section {
  padding: 10rem 4rem;
  text-align: center;
  position: relative;
  background: var(--ink);
  color: var(--bg);
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 3rem;
  border: 1px solid rgba(244,241,236,0.3);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  background: transparent;
}

.cta-button:hover {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
  padding-right: 3.5rem;
}

.cta-button svg {
  width: 14px;
  height: 14px;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.cta-button:hover svg { transform: translateX(4px); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  padding: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

.footer-logo {
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.footer-links a:hover { opacity: 1; }

.footer-right p {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════
   TEAM PAGE
   ══════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin: 0 auto 1.5rem;
  display: block;
  background: rgba(128,128,128,0.08);
  border: 1px solid var(--rule);
}

.team-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.team-member h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.team-role {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 300px;
  margin: 0 auto;
}

.team-links {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.team-links a:hover { opacity: 1; }

/* ══════════════════════════════════════════
   PRODUCTS PAGE
   ══════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.product-card {
  padding: 3rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.product-card:hover {
  border-color: rgba(45,58,94,0.25);
  background: var(--accent-light);
}

.product-status {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: block;
}

.product-card h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.product-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.product-card .text-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.product-card .text-link:hover { opacity: 0.7; }

.product-placeholder {
  padding: 3rem;
  border: 1px dashed var(--rule);
  border-radius: 4px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════
   IMPRESSUM / LEGAL PAGE
   ══════════════════════════════════════════ */
.legal-content {
  max-width: 640px;
  margin: 0 auto;
}

.legal-content h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ══════════════════════════════════════════
   i18n TRANSITIONS
   ══════════════════════════════════════════ */
[data-i18n] { transition: opacity 0.3s ease; }
.lang-fade { opacity: 0 !important; }

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-toggle { display: inline-flex; }
  .nav-right { gap: 1.25rem; }

  /* Panel statt Zeile. Vorher stand hier display:none — die
     Navigation war auf dem Telefon nicht vorhanden, nicht nur
     eingeklappt. */
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5rem 1.5rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-101%);
    transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    max-height: 100vh;
    overflow-y: auto;
  }
  nav[data-nav-open="true"] .nav-links {
    transform: translateY(0);
    visibility: visible;
  }
  .nav-links > li { border-top: 1px solid var(--rule); }
  .nav-links > li:first-child { border-top: 0; }
  .nav-links a,
  .nav-group-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1.1rem 0;
    font-size: 0.8rem;
    opacity: 0.85;
  }

  /* Ohne Hover kein Dropdown: die Untermenuepunkte stehen
     auf dem Telefon dauerhaft offen darunter. */
  .nav-group-toggle { opacity: 0.4; cursor: default; }
  .nav-group-toggle::after { display: none; }
  .nav-submenu {
    position: static;
    transform: none;
    margin: 0 0 0.75rem;
    padding: 0 0 0 1.25rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: none;
    border: 0;
    box-shadow: none;
    min-width: 0;
  }
  .nav-submenu a { padding: 0.65rem 0; opacity: 0.85; }

  /* Formular: zwei Felder nebeneinander passen auf 390px nicht */
  .form-row { flex-direction: column; gap: 0; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .stage-list { gap: 3rem; }
  .stage, .phase { padding-left: 1.25rem; }
  .hero { padding: 6rem 2rem 4rem; }
  .section { padding: 5rem 2rem; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-card:nth-child(odd)::after { display: none; }
  .manifesto { padding: 6rem 2rem; }
  .arch-row { grid-template-columns: 1fr; gap: 3rem; }
  .architecture { padding: 5rem 2rem; }
  .cta-section { padding: 6rem 2rem; }
  footer { padding: 3rem 2rem; flex-direction: column; gap: 2rem; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
  .product-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
/* ══════════════════════════════════════════
   APPEND to css/styles.css — after the
   IMPRESSUM / LEGAL PAGE block.

   Multi-line address and contact blocks are
   single [data-i18n] elements whose value
   contains \n. The i18n engine writes
   textContent, so <br> children would be
   destroyed on the first language switch.
   pre-line renders the newlines instead.
   ══════════════════════════════════════════ */

.legal-content .legal-address {
  white-space: pre-line;
}
/* ══════════════════════════════════════════
   APPEND to css/styles.css

   Adds two components used by methodik.html:
   the domain branch and the phase repertoire.
   Uses existing tokens only — no new colours.
   ══════════════════════════════════════════ */

/* ── Domain branch ── */
.domain-branch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.domain-path {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--rule);
  position: relative;
}

.domain-path + .domain-path {
  border-left: 1px solid var(--rule);
}

.domain-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1rem;
}

.domain-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}

.domain-out {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}

.domain-note {
  max-width: 640px;
  margin: 4rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-light);
}

/* ── Phase repertoire ── */
.phase-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.phase {
  padding-left: 2rem;
  border-left: 1px solid var(--rule);
  transition: border-color 0.4s ease;
}

.phase:hover {
  border-left-color: var(--accent);
}

.phase-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.phase-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 60ch;
}

/* ── Sketchnote images inside .arch-visual ── */
.arch-sketch {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .domain-branch { grid-template-columns: 1fr; }
  .domain-path + .domain-path { border-left: none; }
  .phase-list { gap: 2.5rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .phase, .arch-feature { transition: none; }
}

/* ══════════════════════════════════════════
   SWARM INNOVATION — stage list
   ══════════════════════════════════════════ */
.stage-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.stage {
  padding-left: 2rem;
  border-left: 2px solid var(--accent);
}

.stage-gate {
  border-left: 2px dashed var(--rule);
}

.stage-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.stage-gate .stage-label { color: var(--muted); }

.stage-meta {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.stage-desc {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-light);
  margin-bottom: 2rem;
  max-width: 62ch;
}

.stage-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.stage-items {
  list-style: none;
  margin-bottom: 2.5rem;
}

.stage-items li {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-light);
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-top: 1px solid var(--rule);
  position: relative;
  max-width: 62ch;
}

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

.stage-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.stage-note {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}

.text-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}

.text-link:hover { opacity: 0.6; }

@media (max-width: 900px) {
  .stage-list { gap: 3rem; }
}

/* ══════════════════════════════════════════
   HOMEPAGE — portrait inside .arch-visual
   ══════════════════════════════════════════ */
.arch-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 4px;
}

/* ══════════════════════════════════════════
   SWARMLEDGER — development status block
   ══════════════════════════════════════════ */
.status-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

/* ══════════════════════════════════════════
   KONTAKTFORMULAR
   ══════════════════════════════════════════ */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.form-field {
  display: grid;
  gap: 0.7rem;
}

.form-field label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(45,58,94,0.35);
  padding: 0.8rem 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }

.form-field select {
  appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
                    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.85rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.form-field select:invalid { color: var(--muted); }

.form-field textarea {
  resize: vertical;
  line-height: 1.8;
}

.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover { border-color: var(--accent); }

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--accent-light);
}

.form-field.is-invalid input,
.form-field.is-invalid textarea,
.form-field.is-invalid select { border-color: var(--accent); background: var(--accent-light); }

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink-light);
  cursor: pointer;
}

.form-consent input {
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: 0.3rem;
  border: 1px solid rgba(45,58,94,0.35);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-consent input:hover { border-color: var(--accent); }
.form-consent input:checked { background: var(--accent); border-color: var(--accent); }
.form-consent input:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.form-consent.is-invalid input { border-color: var(--accent); }
.form-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.form-actions {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  margin-top: 0.5rem;
}

.form-actions .cta-button {
  font-family: var(--font-sans);
  cursor: pointer;
  color: var(--ink);
  border-color: rgba(26,26,46,0.25);
}

.form-actions .cta-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.form-status {
  font-size: 0.85rem;
  line-height: 1.7;
  min-height: 1.5em;
}

.form-status.is-pending { color: var(--muted); }
.form-status.is-ok { color: var(--accent); }
.form-status.is-fail { color: var(--accent); border-left: 2px solid var(--accent); padding-left: 0.9rem; }

.form-actions .cta-button:disabled { opacity: 0.45; cursor: default; }

.form-note,
.form-direct {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
}

.form-direct {
  max-width: 680px;
  margin: 4rem auto 0;
}

.form-direct a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── CTA auf hellem Grund (Hero, Abschnitt-Ende) ── */
.cta-button.cta-light {
  color: var(--ink);
  border-color: rgba(26,26,46,0.25);
}

.cta-button.cta-light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.hero-content .cta-button { margin-top: 3rem; }

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
}


/* ══════════════════════════════════════════
   NAV TOGGLE (nur Mobil)
   Das Markup dazu steht in jeder Seite mit
   gemeinsamer Navigation, die Logik in js/main.js.
   ══════════════════════════════════════════ */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  width: 22px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
