/* ============================================================
   Info-Seite GEO – Stylesheet
   Erweitert shared/theme.css mit GEO-spezifischen Komponenten
   Aufgebaut wie info-seite.css für SEO-Optimierung
   ============================================================ */

/* ---------- Sticky TOC bar ---------- */
.geo-toc-bar {
  position: sticky;
  top: 116px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--sh-line);
  z-index: 4;
}
.geo-toc-bar-inner {
  max-width: var(--sh-container);
  margin: 0 auto;
  padding: 0 var(--sh-pad);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.geo-toc-bar-inner::-webkit-scrollbar { display: none; }
.geo-toc-bar a {
  display: inline-block;
  flex-shrink: 0;
  padding: 14px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sh-ink-soft, #555);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.geo-toc-bar a:hover { color: var(--sh-ink); }
.geo-toc-bar a.active {
  color: var(--sh-red);
  border-bottom-color: var(--sh-red);
}

/* ---------- Hero ---------- */
.geo-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 960px) { .geo-hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Generic grids used by chapters ---------- */
.geo-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  align-items: start;
}
.geo-two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .geo-two-col { grid-template-columns: 1fr !important; gap: 36px !important; }
  .geo-three-col { grid-template-columns: 1fr !important; }
  .geo-pros-cons { grid-template-columns: 1fr !important; }
  .geo-stat-row { grid-template-columns: 1fr !important; gap: 16px !important; }
  .geo-kernbereiche-cards { grid-template-columns: 1fr !important; gap: 12px !important; }
  .geo-platform-grid { grid-template-columns: 1fr !important; }

  .geo-two-col > *,
  .geo-three-col > *,
  .geo-pros-cons > *,
  .geo-stat-row > * { min-width: 0 !important; }
}

/* ---------- Anchors (offset for sticky header + toc) ---------- */
.geo-anchor {
  display: block;
  position: relative;
  top: -120px;
  height: 0;
}

/* ---------- Section coloring ---------- */
.geo-sec-white { background: #fff; }
.geo-sec-soft { background: #f5f1ec; }

/* ---------- Tabs (Kernbereiche) ---------- */
.geo-tabs-bar { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid #e6e6e3; margin-bottom: 36px; }
.geo-tab-btn {
  background: transparent; border: 0; padding: 14px 18px;
  font-size: 13px; font-weight: 700; color: #555; cursor: pointer;
  border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
  font-family: inherit; letter-spacing: 0.4px;
}
.geo-tab-btn:hover { color: #1A1A1A; }
.geo-tab-btn.active { color: #E21F27; border-bottom-color: #E21F27; }
@media (max-width: 720px) {
  .geo-tab-btn { padding: 10px 12px; font-size: 12px; }
}

/* ---------- Rich text ---------- */
.geo-richtext p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--sh-ink);
  margin: 0 0 18px;
}
.geo-richtext p strong { font-weight: 700; }
.geo-richtext h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 32px 0 14px;
  letter-spacing: -0.01em;
}

/* ---------- Callout box ---------- */
.geo-callout {
  background: #fff0f0;
  border-left: 4px solid var(--sh-red);
  border-radius: 8px;
  padding: 24px 28px;
}
.geo-callout p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--sh-ink);
}

/* ---------- Tables ---------- */
.geo-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.geo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 18px 36px -14px rgba(15,23,42,0.16),
    0 6px 14px -6px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
.geo-table thead th {
  background: var(--sh-ink);
  color: #fff;
  text-align: left;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.geo-table thead th:last-child { border-right: 0; }
.geo-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--sh-line);
  border-right: 1px solid var(--sh-line);
  vertical-align: middle;
}
.geo-table tbody td:last-child { border-right: 0; }
.geo-table tbody tr:nth-child(even) td { background: rgba(245,241,236,0.55); }
.geo-table tbody tr:hover td { background: rgba(226,31,39,0.04); }
.geo-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--sh-red); }
.geo-table tbody tr { transition: background 180ms; }
.geo-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 900px) {
  .geo-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .geo-table thead, .geo-table tbody { display: table; width: 100%; min-width: 480px; }
}

/* ---------- Pros / Cons ---------- */
.geo-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 760px) { .geo-pros-cons { grid-template-columns: 1fr; } }
.geo-pc-card {
  border-radius: 14px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--sh-line);
  box-shadow:
    0 18px 36px -14px rgba(15,23,42,0.16),
    0 6px 14px -6px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
.geo-pc-card.pros { border-top: 4px solid #059669; }
.geo-pc-card.cons { border-top: 4px solid var(--sh-red); }
.geo-pc-card h4 {
  font-size: 18px; font-weight: 800; margin: 0 0 18px;
}
.geo-pc-card ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.geo-pc-card li {
  position: relative; padding-left: 28px;
  font-size: 15px; line-height: 1.6; color: var(--sh-ink);
}
.geo-pc-card.pros li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #059669; font-weight: 800; font-size: 18px; }
.geo-pc-card.cons li::before { content: '✗'; position: absolute; left: 0; top: 0; color: var(--sh-red); font-weight: 800; font-size: 18px; }

/* ---------- Steps ---------- */
.geo-steps { display: flex; flex-direction: column; gap: 0; }
.geo-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--sh-line);
}
.geo-step:last-child { border-bottom: 0; }
.geo-step-num {
  font-size: 56px; font-weight: 900; color: var(--sh-red);
  line-height: 1; font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.geo-step-body h3 { font-size: 19px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.geo-step-body p { font-size: 16px; line-height: 1.7; color: var(--sh-ink); margin: 0; }
@media (max-width: 600px) {
  .geo-step { grid-template-columns: 1fr; gap: 8px; }
  .geo-step-num { font-size: 40px; }
}

/* ---------- Platform grid (KI-Plattformen) ---------- */
.geo-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ---------- Calculator ---------- */
.geo-calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .geo-calc-grid { grid-template-columns: 1fr; } }

.geo-calc-card {
  background: #fff;
  border: 1px solid var(--sh-line);
  border-radius: 16px;
  padding: 32px;
  box-shadow:
    0 18px 36px -14px rgba(15,23,42,0.16),
    0 6px 14px -6px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
.geo-calc-q {
  padding: 18px 0;
  border-bottom: 1px solid var(--sh-line);
}
.geo-calc-q:last-child { border-bottom: 0; }
.geo-calc-q-label {
  font-size: 14.5px; font-weight: 700; color: var(--sh-ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.geo-calc-q-options {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.geo-calc-opt {
  background: #f5f1ec;
  border: 1px solid var(--sh-line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all .15s;
}
.geo-calc-opt:hover { color: var(--sh-ink); }
.geo-calc-opt.active {
  background: var(--sh-red);
  border-color: var(--sh-red);
  color: #fff;
}

.geo-calc-result {
  background: linear-gradient(160deg, #fff 0%, #f5f1ec 100%);
  border: 1px solid var(--sh-line);
  border-radius: 16px;
  padding: 32px;
  position: sticky; top: 120px;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow:
    0 18px 36px -14px rgba(15,23,42,0.16),
    0 6px 14px -6px rgba(15,23,42,0.08);
}
.geo-calc-score {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  border: 3px solid;
  box-shadow:
    0 10px 22px -8px rgba(15,23,42,0.16),
    inset 0 1px 0 rgba(255,255,255,0.95);
}
.geo-calc-score-label {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.4px; color: #666;
}
.geo-calc-score-num {
  font-size: 96px; font-weight: 900; line-height: 1;
  letter-spacing: -0.04em; margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.geo-calc-score-state { font-size: 16px; font-weight: 700; }
.geo-calc-meta { font-size: 14.5px; line-height: 1.6; color: #444; }
.geo-calc-meta strong { color: var(--sh-ink); }

/* ---------- FAQ ---------- */
.geo-faq-list { display: flex; flex-direction: column; gap: 12px; }
.geo-faq-item {
  border: 1px solid var(--sh-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 10px 22px -8px rgba(15,23,42,0.12),
    0 4px 8px -3px rgba(15,23,42,0.06),
    inset 0 1px 0 rgba(255,255,255,0.95);
  transition: border-color .15s, box-shadow .25s, transform .25s;
}
.geo-faq-item:hover { transform: translateY(-2px); }
.geo-faq-item.open {
  border-color: var(--sh-red);
  box-shadow:
    0 28px 48px -16px rgba(226,31,39,0.22),
    0 12px 20px -8px rgba(15,23,42,0.12),
    inset 0 1px 0 rgba(255,255,255,0.95);
}
.geo-faq-item .geo-faq-q {
  width: 100%; background: transparent; border: 0;
  text-align: left; padding: 22px 26px;
  font-size: 17px; font-weight: 700; color: var(--sh-ink);
  cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 16px;
  letter-spacing: -0.01em;
}
.geo-faq-item .geo-faq-icon {
  display: inline-flex; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: #f5f1ec; border-radius: 50%;
  transition: transform .25s ease, background .15s, color .15s;
  color: #555; flex-shrink: 0;
}
.geo-faq-item.open .geo-faq-icon { transform: rotate(180deg); background: var(--sh-red); color: #fff; }
.geo-faq-item .geo-faq-a {
  padding: 0 26px 24px;
  font-size: 15.5px; line-height: 1.75; color: var(--sh-ink);
}
.geo-faq-item .geo-faq-a p { margin: 0; }

/* ---------- Final CTA ---------- */
.geo-final-cta {
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 60%, #3A1A1A 100%);
  color: #fff;
  padding: clamp(64px, 9vw, 112px) 0;
  position: relative;
  overflow: hidden;
}
.geo-final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(226,31,39,0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(226,31,39,0.12) 0%, transparent 40%);
  pointer-events: none;
}
.geo-final-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) { .geo-final-inner { grid-template-columns: 1fr; } }
.geo-final-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--sh-red); margin-bottom: 18px;
  padding: 6px 14px;
  background: rgba(226,31,39,0.12);
  border-radius: 999px;
  border: 1px solid rgba(226,31,39,0.25);
}
.geo-final-h {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.1; margin: 0 0 18px; color: #fff;
}
.geo-final-p {
  font-size: 17px; line-height: 1.65;
  color: rgba(255,255,255,0.78); margin: 0;
  max-width: 560px;
}
.geo-final-actions { display: flex; flex-direction: column; gap: 14px; }
.geo-final-tel {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 18px 28px; border-radius: 8px;
  font-size: 17px; font-weight: 700; text-decoration: none;
  color: #fff; background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  transition: background .15s, border-color .15s;
}
.geo-final-tel:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
