/* ============================================================
   SIGES Brand Guide  [siges_brand_guide]
   Standalone design — alle Regeln auf .sg scoped
   ============================================================ */

/* ── Reset innerhalb des Wrappers ────────────────────────────── */
.sg, .sg * { box-sizing: border-box; }
.sg p, .sg h1, .sg h2, .sg h3 { margin: 0; padding: 0; }

/* ── Page-Titel + Theme-Wrapper verstecken (nur Brand-Guide-Page) ── */
.page-id-20693 .entry-header,
.page-id-20693 .entry-title,
.page-id-20693 .page-header {
  display: none;
}
/* Elementor-Content-Padding entfernen — .sg hat eigene Sections */
.page-id-20693 .elementor-widget-shortcode > .elementor-widget-container {
  padding: 0;
}
/* Body-Padding entfernen damit Dark-Header bis unter Nav reicht */
.page-id-20693.has-sg-brand-guide {
  padding-top: 0;
}

/* ── Shell: Full-Width Sidebar + Content Layout ─────────────── */
.sg {
  font-family: 'Ageo', Inter, system-ui, sans-serif;
  color: var(--siges-text, #2C2825);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.sg__sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--siges-bg, #F7F5F1);
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.sg__sidebar-inner {
  padding: 2.5rem 2rem;
  flex: 1;
}
.sg__sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--siges-border, #ECE9E4);
}
.sg__sidebar-logo {
  font-family: 'Ageo', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--siges-text, #2C2825);
}
.sg__sidebar-sub {
  font-family: 'Ageo', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--siges-text-muted, #6b6357);
}
.sg__sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sg__sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--sg-radius-sm, 8px);
  text-decoration: none;
  color: var(--siges-text-muted, #6b6357);
  transition: background 0.15s, color 0.15s;
}
.sg__sidebar-link:hover { background: rgba(0,0,0,0.04); color: var(--siges-text, #2C2825); }
.sg__sidebar-link.is-active {
  background: rgba(190,155,83,0.15);
  color: var(--siges-gold, #BE9B53);
}
.sg__sidebar-num {
  font-family: 'Ageo', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--siges-gold, #BE9B53);
  opacity: 0.6;
  flex-shrink: 0;
  min-width: 24px;
}
.sg__sidebar-link.is-active .sg__sidebar-num { opacity: 1; }
.sg__sidebar-label {
  font-family: 'Ageo', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ── Main Content — füllt restliche Breite, wie bei aktuelle-immobilien ── */
.sg__main {
  flex: 1;
  min-width: 0;
  width: 0; /* forces flex child to not overflow */
}

/* ── Shared Inner — volle Breite + konsistentes Padding ─────── */
.sg__inner {
  width: 100%;
  padding: 0 clamp(28px, 3.5vw, 56px);
}

/* ── Section-Label ───────────────────────────────────────────── */
.sg__section-label {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--siges-text-muted, #6b6357);
  margin-bottom: 48px;
  display: block;
}

.sg__section--light .sg__section-label {
  color: var(--siges-text-muted, #6b6357);
}

.sg__num { color: var(--siges-gold, #BE9B53); }

/* ============================================================
   HEADER
   ============================================================ */
.sg__header {
  background: var(--siges-bg, #F7F5F1);
  padding: clamp(80px, 12vw, 160px) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
  position: relative;
  /* Sub-pixel Spalt zum nächsten Abschnitt vermeiden */
  margin-bottom: -1px;
}

.sg__header::before {
  content: 'SIGES';
  position: absolute;
  font-family: 'Ageo', sans-serif;
  font-weight: 900;
  font-size: 40vw;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.03);
  right: -5vw;
  bottom: -5vw;
  pointer-events: none;
  user-select: none;
}

.sg__header-content {
  position: relative;
  z-index: 1;
}

.sg__eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--siges-gold, #BE9B53);
  margin-bottom: 32px;
}

.sg .sg__brand-name {
  font-family: 'Ageo', sans-serif;
  font-size: clamp(80px, 16vw, 200px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--siges-text, #2C2825);
  margin-bottom: 40px;
}

.sg__brand-claim {
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 400;
  color: var(--siges-text-muted, #6b6357);
  max-width: 48ch;
  line-height: 1.6;
}

/* ============================================================
   SECTIONS (no header needed — sidebar handles nav)
   ============================================================ */
.sg__section {
  padding: clamp(56px, 6vw, 96px) 0;
  background: var(--siges-bg, #F7F5F1);
  color: var(--siges-text, #2C2825);
  scroll-margin-top: 0;
}

.sg__section--light {
  background: var(--siges-bg, #f7f5f1);
  color: var(--siges-text, #2C2825);
}

.sg__section--cream {
  background: #E9E3D7;
  color: var(--siges-text, #2C2825);
}

/* ============================================================
   TYPOGRAFIE — Font Blocks
   ============================================================ */
.sg__font-block {
  margin-bottom: 80px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--siges-border, #ECE9E4);
}

.sg__section--light .sg__font-block {
  border-bottom-color: var(--siges-border, #ECE9E4);
}

.sg__font-block:last-of-type { border-bottom: none; margin-bottom: 0; }

.sg__font-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.sg .sg__font-name {
  font-size: clamp(44px, 7vw, 100px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--siges-text, #2C2825);
}

.sg__section--light .sg .sg__font-name { color: var(--siges-text, #2C2825); }

.sg__font-meta {
  text-align: right;
}

.sg__font-role {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--siges-text-muted, #6b6357);
  margin-bottom: 4px;
}

.sg__section--light .sg__font-role { color: var(--siges-text-muted, #6b6357); }

.sg__font-fallback {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: var(--siges-text-muted, #6b6357);
}

.sg__section--light .sg__font-fallback { color: rgba(44,40,37,0.35); }

/* Weight Grid */
.sg__weight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}

.sg__weight-item {
  background: rgba(0,0,0,0.03);
  padding: 24px 28px 28px;
  border-radius: 6px;
}

.sg__section--light .sg__weight-item {
  background: rgba(0,0,0,0.02);
}

.sg__weight-label {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--siges-text-muted, #6b6357);
  margin-bottom: 16px;
}

.sg__section--light .sg__weight-label { color: var(--siges-text-muted, #6b6357); }

.sg__weight-sample {
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.2;
  color: var(--siges-text, #2C2825);
}

.sg__section--light .sg__weight-sample { color: var(--siges-text, #2C2825); }

/* ── Type Scale ──────────────────────────────────────────────── */
.sg__scale-block {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sg__section--light .sg__scale-block { border-top-color: var(--siges-border, #ECE9E4); }

.sg__scale-heading {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--siges-text-muted, #6b6357);
  margin-bottom: 24px;
}

.sg__section--light .sg__scale-heading { color: var(--siges-text-muted, #6b6357); }

.sg__scale-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sg__scale-item {
  background: rgba(0,0,0,0.03);
  padding: 20px 28px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
}

.sg__section--light .sg__scale-item { background: rgba(0,0,0,0.02); }

.sg__scale-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.sg__scale-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.sg__section--light .sg__scale-label { color: var(--siges-text, #2C2825); }

.sg__scale-size {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
}

.sg__section--light .sg__scale-size { color: var(--siges-text-muted, #6b6357); }

.sg__scale-sample {
  font-family: 'Ageo', Inter, system-ui, sans-serif;
  line-height: 1.15;
  color: var(--siges-text, #2C2825);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg__section--light .sg__scale-sample { color: var(--siges-text, #2C2825); }

/* ============================================================
   FARBEN
   ============================================================ */
.sg__color-group {
  margin-bottom: 56px;
}

.sg__color-group-label {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--siges-text-muted, #6b6357);
  margin-bottom: 12px;
}

/* Swatch-Row im Figma-Stil: zusammengeklebte horizontale Reihe.
   border-radius nur an Außenecken via overflow:hidden auf dem Container. */
.sg__swatch-row {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sg__swatch {
  flex: 1;
  height: 84px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 10px 14px;
  transition: flex-grow 0.25s ease;
  cursor: default;
}

.sg__swatch:hover { flex-grow: 1.4; }

.sg__swatch-hex {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.85;
  display: block;
}

/* ============================================================
   EMPLOYER BRANDING — Team Cards
   ============================================================ */
.sg__section--cream .sg__section-label { color: var(--siges-text-muted, #6b6357); }
.sg__section--cream .sg__section-label--dark { color: var(--siges-text-muted, #6b6357); }

.sg__team-intro {
  margin-bottom: 48px;
}

.sg__team-claim {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--siges-text, #2C2825);
  max-width: 56ch;
}

/* ── Skeleton grid ───────────────────────────────────────────── */
.sg__skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  margin-bottom: 32px;
}

/* Wireframe-Cards — echtes Card-Layout, Platzhalter statt Inhalt.
   Farbe kommt von siges-team__inner (via --c{n} oder --personal-bg). */
.sg .sg-wf-card { pointer-events: none; }

.sg-wf__bar {
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
}
.sg-wf__bar--role  { height: 16px; width: 62%; }
.sg-wf__bar--name  { height: 12px; width: 80%; margin-bottom: 6px; }
.sg-wf__bar--title { height: 9px;  width: 48%; }

.sg-wf__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  flex-shrink: 0;
}

/* ── Farb-Legende ─────────────────────────────────────────────── */
.sg__color-legend {
  display: flex;
  gap: 12px 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--siges-border, #ECE9E4);
}

.sg__legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sg__legend-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

.sg__legend-label {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--siges-text-muted, #6b6357);
}

/* ============================================================
   BUTTONS — Section 04 (Light Background)
   ============================================================ */
.sg__btn-intro {
  margin-bottom: 56px;
}

.sg__btn-claim {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--siges-text, #2C2825);
  max-width: 64ch;
  margin: 0;
}

.sg__btn-claim strong {
  font-weight: 700;
  color: var(--siges-text, #2C2825);
}

.sg__btn-group {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--siges-border, #ECE9E4);
}
.sg__btn-group:last-of-type { border-bottom: none; }

.sg__btn-group-label {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--siges-text-muted, #6b6357);
  margin-bottom: 20px;
}

.sg__btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  align-items: center;
}

/* Buttons in der Brand-Guide-Section sind rein dekorativ */
.sg .sg-btn-demo {
  pointer-events: none;
  background: var(--page-accent, var(--siges-gold, #BE9B53));
  color: var(--page-accent-contrast, #fff);
  border: none;
  outline: none;
  box-shadow: none;
}

.sg .sg-btn-demo--hover {
  filter: brightness(0.9);
}

.sg__btn-note {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: var(--siges-text-muted, #6b6357);
  margin: 8px 0 0;
}
.sg__btn-note code {
  background: rgba(0,0,0,0.05);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--siges-text, #2C2825);
}

/* Spec-Tabelle */
.sg__btn-spec {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  margin-top: 14px;
  background: rgba(255,255,255,0.5);
  border-radius: 8px;
  overflow: hidden;
}
.sg__btn-spec th,
.sg__btn-spec td {
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--siges-border, #ECE9E4);
}
.sg__btn-spec tr:last-child th,
.sg__btn-spec tr:last-child td { border-bottom: none; }

.sg__btn-spec th {
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--siges-text-muted, #6b6357);
  font-weight: 400;
  background: rgba(0,0,0,0.03);
}
.sg__btn-spec td:first-child {
  color: var(--siges-text, #2C2825);
  font-weight: 500;
  width: 220px;
}
.sg__btn-spec td:last-child code {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  color: var(--siges-text, #2C2825);
  background: rgba(0,0,0,0.05);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .sg__scale-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .sg__swatch { height: 64px; padding: 0 0 8px 10px; }
  .sg__swatch-hex { font-size: 10px; }
  .sg__weight-grid {
    grid-template-columns: 1fr;
  }
  .sg__font-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .sg__font-meta { text-align: left; }
  .sg__skeleton-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 4px;
  }
}

/* ── 05 Design Tokens ──────────────────────────────────────────── */
.sg__sub-title {
  font-family: 'Ageo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--siges-text, #2C2825);
  margin: 0 0 1.25rem;
}
.sg__section--light .sg__sub-title { color: var(--siges-text, #2C2825); }

.sg__token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
}
.sg__token-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.sg__token-var {
  font-size: 0.7rem;
  color: var(--siges-text-muted);
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.sg__token-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--siges-text);
}
.sg__token-note {
  font-size: 0.72rem;
  color: var(--siges-text-muted);
}

/* Radius demos */
.sg__radius-demo {
  width: 64px;
  height: 64px;
  background: var(--siges-gold, #BE9B53);
  opacity: 0.25;
}

/* Shadow demos */
.sg__shadow-demo {
  width: 72px;
  height: 72px;
  background: var(--siges-bg, #F7F5F1);
  border-radius: var(--sg-radius);
}

/* Padding demos */
.sg__pad-demo {
  width: 100px;
  height: 80px;
  background: rgba(190,155,83,0.1);
  border: 1px dashed var(--siges-gold);
  border-radius: var(--sg-radius);
  display: flex;
  align-items: stretch;
}
.sg__pad-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sg__pad-content {
  width: 100%;
  height: 100%;
  background: var(--siges-gold);
  opacity: 0.3;
  border-radius: 4px;
}

/* ── 06 Cards ──────────────────────────────────────────────────── */
.sg__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.sg__card-demo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sg__card {
  flex: 1;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sg__card:hover {
  box-shadow: var(--sg-shadow-hover) !important;
  transform: translateY(-2px);
}
.sg__card-label {
  font-size: 0.72rem;
  color: var(--siges-text-muted);
  display: block;
  line-height: 1.5;
}

/* ── 07 GSAP Animations ────────────────────────────────────────── */
.sg__section--dark-removed {
  background: var(--siges-bg, #F7F5F1);
  color: var(--siges-text, #2C2825);
}
.sg__section--dark .sg__section-label { color: var(--siges-text-muted, #6b6357); }
.sg__section--dark .sg__sub-title { color: #fff; }

.sg__anim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}
.sg__anim-card {
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--siges-border, #ECE9E4);
  border-radius: var(--sg-radius);
  padding: 1.5rem;
  text-align: center;
  transition: background 0.2s;
}
.sg__anim-card:hover { background: rgba(0,0,0,0.06); }
.sg__anim-card code {
  display: block;
  font-size: 0.78rem;
  color: var(--siges-gold, #BE9B53);
  margin-bottom: 0.5rem;
  background: none;
  padding: 0;
}
.sg__anim-card p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.sg__stagger-demo {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.sg__stagger-item {
  width: 56px;
  height: 56px;
  border-radius: var(--sg-radius);
  background: rgba(190,155,83,0.2);
  border: 1px solid rgba(190,155,83,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--siges-gold, #BE9B53);
}

.sg__anim-preview {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--sg-radius-lg);
  padding: 1.5rem 2rem;
}

/* ── 08 Layout ─────────────────────────────────────────────────── */
.sg__layout-demo {
  background: rgba(0,0,0,0.04);
  border-radius: var(--sg-radius);
  padding: 1rem;
  overflow: hidden;
}
.sg__layout-viewport {
  background: rgba(190,155,83,0.08);
  border: 1px dashed var(--siges-gold);
  border-radius: 4px;
  padding: 8px;
  position: relative;
}
.sg__layout-viewport::before {
  content: '← Viewport (100vw) →';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--siges-text-muted);
  white-space: nowrap;
}
.sg__layout-container {
  background: rgba(190,155,83,0.25);
  border-radius: 4px;
  padding: 16px 12px;
  margin: 0 auto;
  max-width: min(100%, 320px);
  text-align: center;
}
.sg__layout-label {
  font-size: 0.72rem;
  color: var(--siges-text);
  font-weight: 600;
}

.sg__code-block {
  background: rgba(0,0,0,0.06);
  border-left: 3px solid var(--siges-gold, #BE9B53);
  border-radius: 0 var(--sg-radius-sm) var(--sg-radius-sm) 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
}
.sg__code-block code {
  font-size: 0.78rem;
  color: var(--siges-text);
  background: none;
  padding: 0;
  white-space: pre;
}

