/* ══════════════════════════════════════════════════════════════
   chrome.css — EIN Header (sn-*) + EIN Footer (sf-*) für ALLE Seiten.
   Quelle des Markups: _build/chrome.js — NIE von Hand in Seiten pflegen.
   Eigenständige Farben/Werte, damit es auf jeder Seite gleich aussieht,
   egal ob atlas.css, review.css oder Inline-CSS geladen ist.
   Raster: Innenbreite max. 1280px. Mobile (≤1023px): Burger-Menü rechts.
   ══════════════════════════════════════════════════════════════ */

/* ── Header ──────────────────────────────────────────────────── */
.sn {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sn-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.sn-brand { display: flex; align-items: center; flex-shrink: 0; }
.sn-brand img { height: 32px; width: auto; display: block; }
.sn-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin-left: auto;
  justify-content: flex-end;
}
.sn-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.1px;
  padding: 6px 2px;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.sn-links a:hover { color: #22d3ee; }
.sn-links a.active { color: #22d3ee; }
.sn-links a.sn-cta {
  color: #06111a;
  background: #06b6d4;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  margin-left: 6px;
}
.sn-links a.sn-cta:hover { background: #22d3ee; color: #06111a; }

/* Burger — erst auf Mobile sichtbar */
.sn-burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.sn-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #e5e7eb;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sn.open .sn-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sn.open .sn-burger span:nth-child(2) { opacity: 0; }
.sn.open .sn-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile ≤1023px: Burger oben rechts, Menü als Panel ─────── */
@media (max-width: 1023px) {
  .sn-burger { display: flex; }
  .sn-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 24px 22px;
    background: rgba(8, 8, 8, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .sn.open .sn-links { display: flex; }
  .sn-links a {
    font-size: 16px;
    padding: 13px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .sn-links a:last-of-type { border-bottom: none; }
  .sn-links a.sn-cta {
    margin: 14px 0 0;
    text-align: center;
    padding: 13px 18px;
  }
}

/* ── Footer ──────────────────────────────────────────────────── */
.sf {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 24px 40px;
  text-align: center;
  margin-top: 64px;
}
.sf-inner { max-width: 1280px; margin: 0 auto; }
.sf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-bottom: 24px;
}
.sf-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}
.sf-links a:hover { color: #22d3ee; }
.sf-disclaimer {
  max-width: 720px;
  margin: 0 auto 18px;
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.65;
}
.sf-copy { color: #6b7280; font-size: 13px; margin: 0; }
.sf-accent { color: #06b6d4; }
.sf-ai { color: rgba(255, 255, 255, 0.28); font-size: 11.5px; margin: 12px 0 0; }

@media (max-width: 640px) {
  .sf { padding: 38px 20px 32px; }
  .sf-links { flex-direction: column; gap: 14px; }
}

/* ── Atlas-Familie v2 (af2-*) — EIN Design überall, Quelle: _build/atlas_family.js ── */
.af2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 auto;
}
.af2-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 26px 24px;
  background: #101315;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
a.af2-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 14px 32px rgba(6, 182, 212, 0.16);
}
.af2-self { cursor: default; }
.af2-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.9;
}
.af2-badge.af2-here { color: #22d3ee; }
.af2-logo img { height: 40px; width: auto; display: block; }
.af2-desc {
  color: #9ca3af;
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
}
.af2-link { font-size: 14px; font-weight: 700; }

@media (max-width: 1023px) {
  .af2-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .af2-grid { grid-template-columns: 1fr; }
  .af2-card { padding: 22px 20px; }
  .af2-logo img { height: 36px; }
}
