/* ============================================================
   /state-of-geo — "State of GEO Switzerland" Studien-Seite.
   Vollstaendig gescoped unter body.state-of-geo-page — keine
   globalen Tag-Selektoren, keine CSS-Leaks auf Header/Footer.
   Nutzt die globalen Design-Tokens aus design-tokens.css.
   ============================================================ */

body.state-of-geo-page {
  /* Body-Layer: volle Typografie setzen, damit shared Header/Footer
     nicht auf Browser-Default-Serif zurueckfallen (siehe CLAUDE.md §8). */
  background: var(--bg-obsidian, #04050a);
  color: var(--ink-primary, #f0eee6);
  font-family: var(--font-sans, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Page-lokale Tokens */
.state-of-geo-page {
  --sog-card: rgba(255, 255, 255, 0.03);
  --sog-border: rgba(255, 255, 255, 0.09);
  --sog-muted: var(--ink-muted, rgba(240, 238, 230, 0.62));
  --sog-gut: #10b981;      /* >= 65 */
  --sog-mittel: #f59e0b;   /* 40–64 */
  --sog-kritisch: #ef4444; /* < 40  */
}
.state-of-geo-page *,
.state-of-geo-page *::before,
.state-of-geo-page *::after { box-sizing: border-box; }

.sog {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* ── A) Hero ── */
.sog-hero {
  text-align: center;
  padding: 72px 0 40px;
}
.sog-eyebrow {
  display: inline-block;
  padding: 6px 15px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-pill, 100px);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 20px;
}
.sog-h1 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ink-primary, #f0eee6);
}
.sog-h1 .sog-accent {
  background: var(--grad-headline, linear-gradient(110deg, #ff3d81, #ffb155));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.sog-updated {
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  color: var(--sog-muted);
  margin: 0 0 14px;
}
.sog-updated strong { color: var(--ink-primary, #f0eee6); }
.sog-hero-sub {
  max-width: 680px;
  margin: 0 auto 22px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--sog-muted);
}
.sog-wp-link {
  font-weight: 600;
  color: #a78bfa;
  text-decoration: none;
}
.sog-wp-link:hover { text-decoration: underline; }

/* ── B) KPIs ── */
.sog-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 40px 0 24px;
}
.sog-kpi {
  padding: 26px 20px;
  background: var(--sog-card);
  border: 1px solid var(--sog-border);
  border-radius: var(--radius-lg, 14px);
  text-align: center;
}
.sog-kpi-val {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--ink-primary, #f0eee6);
}
.sog-kpi-lbl {
  margin-top: 8px;
  font-size: 13px;
  color: var(--sog-muted);
  letter-spacing: 0.02em;
}

/* ── Sections ── */
.sog-section { margin-top: 56px; }
.sog-h2 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 6px;
  color: var(--ink-primary, #f0eee6);
}
.sog-sub {
  margin: 0 0 20px;
  color: var(--sog-muted);
  font-size: 15px;
  max-width: 760px;
}

/* ── Tabellen ── */
.sog-tablewrap { overflow-x: auto; }
.sog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.sog-table th,
.sog-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--sog-border);
  vertical-align: middle;
}
.sog-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sog-muted);
  font-weight: 600;
}
.sog-table td.num, .sog-table th.num { text-align: right; }
.sog-rank { color: var(--sog-muted); font-family: var(--font-mono, monospace); }
.sog-jump { color: var(--ink-primary, #f0eee6); text-decoration: none; }
.sog-jump:hover { color: #a78bfa; }
.sog-dname { font-weight: 600; }
.sog-dom {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  color: var(--sog-muted);
}
.sog-rating { color: var(--sog-muted); font-size: 13.5px; }

/* Score-Pille mit Farbcodierung (>=65 gruen / 40–64 gelb / <40 rot) */
.sog-score {
  display: inline-block;
  min-width: 44px;
  text-align: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill, 100px);
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  font-size: 13.5px;
}
.sog-tier-gut      { background: rgba(16, 185, 129, 0.16);  color: #34d399; border: 1px solid rgba(16,185,129,0.4); }
.sog-tier-mittel   { background: rgba(245, 158, 11, 0.16);  color: #fbbf24; border: 1px solid rgba(245,158,11,0.4); }
.sog-tier-kritisch { background: rgba(239, 68, 68, 0.16);   color: #f87171; border: 1px solid rgba(239,68,68,0.4); }
.sog-tier-none     { background: rgba(255,255,255,0.06);    color: var(--sog-muted); border: 1px solid var(--sog-border); }

/* Art-Badge in der Blocked-Sektion (gezielt vs Bot-Protection) */
.sog-art {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill, 100px);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.sog-art-gezielt { background: rgba(239, 68, 68, 0.16); color: #f87171; border: 1px solid rgba(239,68,68,0.4); }
.sog-art-filter  { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245,158,11,0.35); }
.sog-unresolved { font-size: 13.5px; opacity: 0.8; margin-top: 14px; }

/* ── D) Branche-Details (aufklappbar) ── */
.sog-branche {
  border: 1px solid var(--sog-border);
  border-radius: var(--radius-lg, 14px);
  background: var(--sog-card);
  margin-bottom: 12px;
  overflow: hidden;
}
.sog-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  scroll-margin-top: 80px;
}
.sog-summary::-webkit-details-marker { display: none; }
.sog-branche[open] .sog-summary { border-bottom: 1px solid var(--sog-border); }
.sog-branche-name {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 600;
  font-size: 17px;
  flex: 1;
}
.sog-branche-count { color: var(--sog-muted); font-size: 13px; }
.sog-domains { margin: 0; }
.sog-domains th, .sog-domains td { padding: 10px 18px; }

/* ── SEAKT-Dim-Badges ── */
.sog-dims { white-space: nowrap; }
.sog-dim {
  display: inline-block;
  padding: 1px 6px;
  margin: 1px 3px 1px 0;
  border-radius: 5px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  color: #0a0d18;
}
.sog-dim-s { background: var(--color-s, #5be9dc); }
.sog-dim-e { background: var(--color-e, #5b8ff9); }
.sog-dim-a { background: var(--color-a, #8b5cf6); color: #fff; }
.sog-dim-k { background: var(--color-k, #ff3d81); color: #fff; }
.sog-dim-t { background: var(--color-t, #ffb155); }

/* ── Methodik-Footer + Empty ── */
.sog-method { border-top: 1px solid var(--sog-border); padding-top: 32px; }
.sog-dims-legend {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--sog-muted);
}
.sog-dims-legend li { display: flex; align-items: center; gap: 8px; }
.sog-method-links { font-size: 14px; color: var(--sog-muted); }
.sog-method-links a { color: #a78bfa; text-decoration: none; }
.sog-method-links a:hover { text-decoration: underline; }
.sog-empty {
  margin: 48px 0;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--sog-border);
  border-radius: var(--radius-lg, 14px);
  background: var(--sog-card);
}

/* ── Hinweis-Box: Studie wird weitergefuehrt (unter dem Hero) ── */
.sog-continues {
  margin: 4px 0 36px;
  padding: 16px 20px;
  border: 1px solid var(--sog-border);
  border-left: 3px solid #a78bfa;
  border-radius: var(--radius-lg, 14px);
  background: var(--sog-card);
}
.sog-continues-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-primary, #f0eee6);
}
.sog-continues-body { margin: 0; font-size: 14px; color: var(--sog-muted); }
.sog-continues-link { margin: 10px 0 0; font-size: 14px; }
.sog-continues-link a { color: #a78bfa; text-decoration: none; font-weight: 600; }
.sog-continues-link a:hover { text-decoration: underline; }

/* ── Opt-out / Aufnahme-Box (nur mailto, kein Backend) ── */
.sog-optout {
  margin: 40px 0;
  padding: 22px 24px;
  border: 1px dashed var(--sog-border);
  border-radius: var(--radius-lg, 14px);
  background: var(--sog-card);
  text-align: center;
}
.sog-optout-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-primary, #f0eee6);
}
.sog-optout-body { margin: 0 auto; max-width: 640px; font-size: 14px; color: var(--sog-muted); }
.sog-optout-body a { color: #a78bfa; text-decoration: none; }
.sog-optout-body a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .sog-hero { padding: 52px 0 28px; }
  .sog-kpi-val { font-size: 34px; }
  .sog-table th, .sog-table td { padding: 9px 10px; }
  .sog-dims { white-space: normal; }
}
