/* ============================================================
   Germany Business Gateway — page styles
   Mirrors the China Business Gateway visual language.
   Uses the global design tokens from style.css.
   ============================================================ */

/* ---------- Active nav state ---------- */
.nav-links a.is-active { color: var(--gold); }
.nav-links a.is-active::after { width: 100%; }

/* ---------- Page-scoped header treatment (Germany Business only) ---------- */
body.gbg-page { background: var(--cream); }
.gbg-page .site-header {
  background: rgba(244, 241, 234, 0.86);
  border-bottom: 1px solid rgba(194, 160, 76, 0.38);
}

/* ============================================================
   GATEWAY HERO (copy + interactive map)
   ============================================================ */
.gbg { background: var(--cream); padding: 0 0 56px; }
.gbg > .container.gbg-grid {
  max-width: none;
  width: 100%;
  padding-top: 44px;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: clamp(6px, 1.5vw, 26px);
}
.gbg-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  column-gap: clamp(16px, 2vw, 44px);
  align-items: center;
}
.gbg-map-col { position: relative; min-width: 0; }

/* Left copy column */
.gbg-intro { max-width: 470px; }
.gbg-intro h1 {
  font-size: clamp(2.6rem, 3.2vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  margin-bottom: 22px;
}
.gbg-intro .lead {
  font-size: 1.1rem; line-height: 1.7; color: var(--grey-text);
  max-width: 440px; margin-bottom: 34px;
}
.gbg-rule { width: 64px; height: 3px; background: var(--gold); margin: 6px 0 26px; }

.gbg-features { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 22px; }
.gbg-feature { display: flex; gap: 18px; align-items: flex-start; }
.gbg-feature .ic {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--gold); display: grid; place-items: center;
  color: var(--gold); background: rgba(194,160,76,.06);
}
.gbg-feature .ic svg { width: 24px; height: 24px; }
.gbg-feature h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.gbg-feature p { font-size: 0.92rem; color: var(--grey-text); margin: 0; }

.gbg-callout {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--gold); border-radius: 12px;
  padding: 20px 22px; background: rgba(194,160,76,.05);
}
.gbg-callout .ic { color: var(--gold); flex: none; }
.gbg-callout .ic svg { width: 30px; height: 30px; }
.gbg-callout .label {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 6px;
}
.gbg-callout p { font-size: 0.95rem; color: var(--navy); margin: 0; }

/* ============================================================
   MAP (portrait — sized by height, floats on the beige page)
   ============================================================ */
.gbg-map-wrap { position: relative; }
.gbg-map {
  display: block; margin: 0 auto;
  height: clamp(500px, 80vh, 920px);
  width: auto; max-width: 100%;
  margin-top: -20px;             /* subtle rise into the divider zone */
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 26px 46px rgba(15,28,48,.22));
}

/* Federal-state shapes — fine, understated gold borders */
.de-state {
  fill: var(--navy);
  stroke: rgba(194, 160, 76, 0.55);
  stroke-width: 0.5;
  stroke-linejoin: round;
  transition: fill .28s ease, stroke .28s ease, stroke-width .28s ease, filter .28s ease, opacity .28s ease;
  cursor: default;
}
.de-state:hover,
.de-state.is-hover {
  fill: #34507f;
  stroke: var(--gold-soft);
  stroke-width: 0.9;
  filter: drop-shadow(0 0 3px rgba(194, 160, 76, 0.55));
}
.de-state.is-active { fill: #3d5d92; stroke: var(--gold-soft); stroke-width: 0.9; }

/* Sector-filter highlighting */
.gbg-map.is-filtering .de-state { opacity: 0.32; }
.gbg-map.is-filtering .de-state.match { opacity: 1; fill: #34507f; }

/* State labels (centered, calm) */
.de-label { text-anchor: middle; pointer-events: none; }
/* Map labels — brand serif, warm off-white, dark halo (matches the UK map). */
.dl {
  fill: rgba(244, 238, 226, 0.9);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.015em;
  paint-order: stroke;
  stroke: rgba(13, 23, 40, 0.6);
  stroke-width: 2px;
}

/* ---- Strategic markers ---- */
.de-dot { cursor: pointer; transition: fill .2s ease; }
/* Berlin — primary focus: muted deep red, soft glow + ring */
.de-bj {
  fill: #9e3b3b; stroke: rgba(255,255,255,.85); stroke-width: 1;
  filter: drop-shadow(0 0 5px rgba(158,59,59,.65));
}
.de-bj:hover { fill: #b14848; }
.de-ring { fill: none; stroke: #9e3b3b; stroke-width: 1; opacity: 0.45; pointer-events: none; }
/* Secondary hubs — subtle gold */
.de-sec {
  fill: var(--gold-soft); stroke: rgba(255,255,255,.85); stroke-width: 0.7; opacity: 1;
  filter: drop-shadow(0 0 3px rgba(194,160,76,.6));
}
.de-sec:hover { fill: var(--gold); }
.de-sec-ring { fill: none; stroke: var(--gold); stroke-width: 0.8; opacity: 0.32; pointer-events: none; }

/* ---- Premium hover tooltip (dark navy card) ---- */
.gbg-tooltip {
  position: fixed; z-index: 60; pointer-events: none; width: 250px;
  background: linear-gradient(158deg, var(--navy-soft) 0%, var(--navy) 52%, var(--navy-deep) 100%);
  color: #fff; border: 1px solid rgba(194,160,76,.42);
  border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 20px 46px rgba(15,28,48,.45);
  opacity: 0; transform: translateY(6px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
}
.gbg-tooltip.show { opacity: 1; transform: translateY(0) scale(1); }
.gbg-tooltip .tt-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.12; margin: 0; color: #fff; }
.gbg-tooltip .tt-div { width: 36px; height: 2px; background: var(--gold); margin: 11px 0; }
.gbg-tooltip .tt-stmt { font-size: 0.84rem; line-height: 1.5; color: rgba(255,255,255,.82); margin: 0 0 12px; }
.gbg-tooltip .tt-sub { font-size: 0.66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 7px; font-weight: 600; }
.gbg-tooltip .tt-ind { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gbg-tooltip .tt-ind li { font-size: 0.72rem; letter-spacing: .02em; color: var(--gold-soft);
  border: 1px solid rgba(194,160,76,.4); border-radius: 30px; padding: 3px 10px; }
.gbg-tooltip .tt-rel { font-size: 0.8rem; line-height: 1.5; color: rgba(255,255,255,.75); margin: 0; }

/* ---- Mobile state card (revealed on tap) ---- */
.gbg-mobcard {
  background: linear-gradient(158deg, var(--navy-soft) 0%, var(--navy) 52%, var(--navy-deep) 100%);
  color: #fff; border: 1px solid rgba(194,160,76,.42);
  border-radius: var(--radius); padding: 26px 24px 28px; margin-top: 18px;
  box-shadow: 0 18px 40px rgba(15,28,48,.34); position: relative;
  animation: gbCardIn .25s ease;
}
@keyframes gbCardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.gbg-mobcard .mc-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border: none; background: none; color: rgba(255,255,255,.65); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.gbg-mobcard .mc-close:hover { color: var(--gold-soft); }
.gbg-mobcard .tt-name { font-family: var(--serif); font-size: 1.5rem; margin: 0; color: #fff; }
.gbg-mobcard .tt-div { width: 40px; height: 3px; background: var(--gold); margin: 13px 0; }
.gbg-mobcard .tt-stmt { font-size: 0.92rem; line-height: 1.55; color: rgba(255,255,255,.82); margin: 0 0 14px; }
.gbg-mobcard .tt-sub { font-size: 0.66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; font-weight: 600; }
.gbg-mobcard .tt-ind { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gbg-mobcard .tt-ind li { font-size: 0.8rem; color: var(--gold-soft);
  border: 1px solid rgba(194,160,76,.4); border-radius: 30px; padding: 5px 13px; }
.gbg-mobcard .tt-rel { font-size: 0.88rem; line-height: 1.55; color: rgba(255,255,255,.75); margin: 0; }

/* ============================================================
   WHY GERMANY
   ============================================================ */
.gbg-why { padding: 88px 0; }
.gbg-why.bg-cream { background: var(--cream); }
.gbg-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ============================================================
   EXPLORE BY SECTOR
   ============================================================ */
.gbg-sectors { padding: 0 0 92px; }
.gbg-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.gbg-pill {
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 30px; padding: 11px 22px; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.gbg-pill:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.gbg-pill.active { background: var(--navy); color: var(--gold-soft); border-color: var(--navy); }
.gbg-sector-note { margin-top: 22px; font-size: 0.86rem; color: var(--grey-text); }
.gbg-sector-note strong { color: var(--navy); }

/* ============================================================
   CONTACT CTA
   ============================================================ */
.gbg-cta { background: var(--cream); padding: 16px 0 80px; }
.gbg-cta-card {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 56px; text-align: center; position: relative; overflow: hidden;
}
.gbg-cta-card::after { content:""; position:absolute; left:50%; top:-40%; transform:translateX(-50%); width:420px; height:420px; border:1px solid rgba(194,160,76,.2); border-radius:50%; }
.gbg-cta-card .inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.gbg-cta-card .eyebrow { color: var(--gold); }
.gbg-cta-card h2 { font-size: clamp(1.8rem,3.6vw,2.6rem); margin: 0 0 14px; }
.gbg-cta-card p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 30px; }
.gbg-cta-card .role-note { font-size: 0.86rem; color: rgba(255,255,255,.6); margin-top: 22px; }
.gbg-disclaimer { font-size: 0.8rem; color: var(--grey-text); text-align: center; padding: 30px 0 0; max-width: 760px; margin: 0 auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .gbg > .container.gbg-grid {
    max-width: 820px; margin: 0 auto;
    padding-left: 28px; padding-right: 28px; padding-top: 38px;
  }
  .gbg-grid { grid-template-columns: 1fr; gap: 34px; }
  .gbg-intro { max-width: none; }
  .gbg-map { margin-top: 0; height: auto; width: 100%; max-width: 560px; }
  .gbg-map-col { max-width: 560px; margin: 0 auto; width: 100%; }
  .gbg-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .gbg { padding: 0 0 28px; }
  .dl { font-size: 13px; }
  .gbg-cta-card { padding: 40px 24px; }
}

/* Tooltip hint for clickable regions (e.g. Lower Saxony) */
.gbg-tooltip .tt-more { margin: 11px 0 0; font-size: 0.74rem; font-weight: 600; letter-spacing: .04em; color: var(--gold); }

/* Chinese map labels (ZH mode) — CJK font; sizing inherits from .dl */
.de-label .dl.dl-cn {
  font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",sans-serif;
  letter-spacing: 0.02em;
}

/* ============================================================
   GATEWAY IMPROVEMENT PACKAGE (shared with the China gateway):
   map hint, sector hit chips, report cards, focus states
   ============================================================ */
.cbg-map-hint {
  margin: 14px 4px 0; text-align: center;
  font-size: 0.82rem; letter-spacing: .03em; color: var(--grey-text);
}
.cbg-map-hint::before {
  content: ""; display: inline-block; width: 20px; height: 2px;
  background: var(--gold); vertical-align: middle; margin: -2px 10px 0 0;
}
.cbg-sector-hits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cbg-sector-hits[hidden] { display: none; }
.cbg-sector-hit {
  font-size: 0.84rem; font-weight: 500; color: var(--navy); text-decoration: none;
  background: #fff; border: 1px solid rgba(194,160,76,.5); border-radius: 20px;
  padding: 6px 15px; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cbg-sector-hit:hover { background: var(--navy); color: var(--gold-soft); border-color: var(--navy); }
.cbg-sector-clear {
  font-family: var(--sans); font-size: 0.8rem; color: var(--grey-text);
  background: none; border: none; cursor: pointer; padding: 6px 10px;
  text-decoration: underline; text-underline-offset: 3px;
}
.cbg-sector-clear:hover { color: var(--gold); }
.cbg-reports { background: var(--cream); padding: 0 0 88px; }
.cbg-rep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cbg-rep-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px 22px; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.cbg-rep-card::before {
  content: ""; display: block; width: 34px; height: 2px;
  background: var(--gold); margin-bottom: 16px;
}
.cbg-rep-card h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.cbg-rep-card p { font-size: 0.9rem; line-height: 1.55; color: var(--grey-text); margin: 0 0 16px; }
.cbg-rep-card .rep-go { font-size: 0.84rem; font-weight: 600; letter-spacing: .03em; color: var(--gold); }
.cbg-rep-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.cta-mail { margin-top: 14px; font-size: 0.9rem; }
.cta-mail a { color: var(--grey-text); text-decoration: none; }
.cta-mail a:hover { color: var(--gold); }
.cbg-sector-hit:focus-visible,
.cbg-sector-clear:focus-visible,
.gbg-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cbg-rep-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.de-state:focus-visible {
  outline: none;
  fill: #34507f; stroke: var(--gold-soft); stroke-width: 1;
}
@media (max-width: 1024px) {
  .cbg-rep-grid { grid-template-columns: 1fr 1fr; }
  .cbg-rep-grid .cbg-rep-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .gbg-features { gap: 14px; margin-bottom: 24px; }
  .cbg-map-hint { font-size: 0.8rem; margin-top: 10px; }
  .cbg-rep-grid { grid-template-columns: 1fr; gap: 14px; }
  .cbg-rep-grid .cbg-rep-card:last-child { grid-column: auto; }
  .cbg-rep-card { padding: 20px 18px 18px; }
  .cbg-reports { padding-bottom: 56px; }
}

.cbg-rep-more { margin-top: 20px; font-size: 0.9rem; }
.cbg-rep-more a { color: var(--grey-text); text-decoration: none; }
.cbg-rep-more a:hover { color: var(--gold); }
