/* ===========================================================================
   Gipfelpass — the summit challenge page (/gipfelpass)
   ---------------------------------------------------------------------------
   Needs css/tokens.css, css/loop-pages.css (fonts, body, footer) and
   css/site-header.css. Laid out as the Peaks page is (css/peaks-page.css):
   the hero is Ink in both themes, the sections follow the theme through the
   tokens. Amber is never small text on Chalk: the kickers use --amber-text
   there, plain --amber only on Ink.
   =========================================================================== */

.gp{ --gp-wrap:1120px; --gp-ink:#14201A; --gp-on-ink:#EDEFE8; --gp-on-ink-soft:#A7B2A9; }
.gpWrap{ max-width:var(--gp-wrap); margin:0 auto; padding:0 20px; }
.gpNarrow{ max-width:760px; }
.gp h1, .gp h2{ font-family:var(--display); letter-spacing:-0.015em; margin:0; }
.gp p{ margin:0; }

.gpKicker{
  font-family:var(--mono); font-size:13px; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--amber-text); margin-bottom:20px !important;
}

/* ---- Hero ---- */
.gpHero{
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(240,179,58,0.10), transparent 55%),
    var(--gp-ink);
  color:var(--gp-on-ink);
  margin-top:calc(-1 * var(--bar-space));
  padding:calc(var(--bar-space) + 48px) 0 64px;
  overflow:hidden;
}
.gpHeroGrid{ display:grid; gap:40px; align-items:center; }
.gpEyebrow{
  font-family:var(--mono); font-size:13px; letter-spacing:0.08em; text-transform:uppercase; color:var(--amber);
  margin-bottom:16px !important;
}
.gpHero h1{ font-weight:800; font-size:clamp(44px, 7vw, 80px); line-height:1.0; }
.gpLead{ margin-top:20px !important; font-size:clamp(17px, 1.8vw, 20px); line-height:1.55; color:var(--gp-on-ink); opacity:0.86; max-width:32em; }
.gpCtas{ display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.gpBtn, .gpGhost{
  display:inline-flex; align-items:center; min-height:48px; padding:0 20px; border-radius:999px;
  text-decoration:none; font-weight:500;
}
.gpBtn{ background:var(--amber); color:var(--gp-ink); }
.gpBtn:hover{ background:var(--amber-dark); }
.gpGhost{ color:var(--gp-on-ink); border:1px solid rgba(237,239,232,0.28); }
.gpGhost:hover{ background:rgba(255,255,255,0.07); }
.gpFacts{ margin-top:22px !important; font-family:var(--mono); font-size:13px; color:var(--gp-on-ink-soft); }

/* The edition's three stickers, fanned inside their own column. */
.gpFan{ position:relative; width:100%; max-width:440px; margin:0 auto; aspect-ratio:1/1; }
.gpFan img{ position:absolute; height:auto; filter:drop-shadow(0 14px 18px rgba(0,0,0,0.35)); }

/* ---- Sections ---- */
.gpSection{ padding:72px 0; background:var(--paper); color:var(--ink); }
.gpSection + .gpSection{ padding-top:8px; }

.gpSteps{ list-style:none; padding:0; margin:0; display:grid; gap:16px; counter-reset:none; }
.gpSteps li{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:20px; }
.gpStepNo{
  display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%;
  background:var(--gp-ink); color:var(--amber); font-family:var(--mono); font-size:14px; margin-bottom:14px;
}
.gpSteps h2{ font-weight:800; font-size:19px; line-height:1.25; }
.gpSteps p{ margin-top:6px !important; color:var(--ink-soft); line-height:1.55; }
.gpSteps a, .gpRule a, .gpQuestions a{ color:var(--amber-text); }

.gpComplete{
  margin-top:16px; display:flex; gap:18px; align-items:center;
  background:var(--amber-tint); color:var(--ink); border-radius:14px; padding:16px 20px;
}
.gpComplete img{ width:72px; height:auto; flex:none; }
.gpComplete p{ line-height:1.55; }
.gpComplete b{ font-family:var(--display); font-weight:800; }

.gpSummits{ list-style:none; padding:0; margin:0; display:grid; gap:16px; grid-template-columns:repeat(2, minmax(0, 1fr)); }
.gpSummits a{
  display:flex; flex-direction:column; height:100%; text-decoration:none; color:inherit;
  background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:18px;
}
.gpSummits a:hover{ border-color:var(--ink-soft); }
.gpSummitArt{ display:flex; align-items:center; justify-content:center; aspect-ratio:1/1; margin-bottom:12px; }
.gpSummitArt img{ max-width:82%; max-height:100%; width:auto; height:auto; }
.gpSummitName{ font-family:var(--display); font-weight:800; font-size:19px; }
.gpSummitM{ font-family:var(--mono); font-size:13px; color:var(--ink-soft); margin-top:2px; }
.gpSummitLink{ margin-top:10px; font-size:14px; color:var(--amber-text); }

/* ---- Rules ---- */
.gpRules{ background:var(--surface); border-top:1px solid var(--line); padding-top:64px !important; }
.gpRulesTitle{ font-weight:800; font-size:clamp(28px, 4vw, 38px); }
.gpDate{ margin-top:6px !important; font-family:var(--mono); font-size:13px; color:var(--ink-soft); }
.gpRule{ border-top:1px solid var(--line); }
.gpRule:first-of-type{ margin-top:24px; }
.gpRule:last-of-type{ border-bottom:1px solid var(--line); }
.gpRule summary{
  list-style:none; cursor:pointer; padding:16px 32px 16px 0; position:relative;
  font-weight:500; font-size:17px;
}
.gpRule summary::-webkit-details-marker{ display:none; }
.gpRule summary::after{
  content:"+"; position:absolute; right:4px; top:50%; transform:translateY(-50%);
  font-family:var(--mono); font-size:20px; color:var(--ink-soft);
}
.gpRule[open] summary::after{ content:"−"; }
.gpRule summary:focus-visible{ outline:2px solid var(--amber); outline-offset:2px; border-radius:4px; }
.gpRuleBody{ padding:0 0 18px; color:var(--ink-soft); line-height:1.6; }
.gpRuleBody p + p, .gpRuleBody ol + p, .gpRuleBody p + ul{ margin-top:12px !important; }
.gpRuleBody ol, .gpRuleBody ul{ margin:0; padding-left:22px; display:grid; gap:8px; }
.gpRuleBody strong{ color:var(--ink); font-weight:600; }
.gpQuestions{ margin-top:24px !important; color:var(--ink-soft); }

/* ---- Wider screens ---- */
@media (min-width:760px){
  .gpHeroGrid{ grid-template-columns:1.1fr 1fr; gap:56px; }
  .gpSteps{ grid-template-columns:repeat(4, 1fr); }
  .gpSummits{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
  .gpSection{ padding:88px 0; }
}

/* ---- Gipfelpass additions ---- */
/* The holo sticker's ring is unprinted, where the foil shines: a foil under it. */
.gpHolo{ position:relative; display:block; }
.gpHolo::before{
  content:""; position:absolute; inset:3.5%; border-radius:50%;
  background:conic-gradient(from 30deg, #f9cce6, #c7dcff, #b8f5dc, #faf2c7, #f9cce6);
}
.gpHolo img{ position:relative; width:100%; height:auto; display:block; }
.gpFan .gpHolo, .gpFan img{ position:absolute; }
.gpFan .gpHolo img{ position:relative; }
.gpLevels{ list-style:none; padding:0; margin:0; display:grid; gap:16px; grid-template-columns:repeat(3, minmax(0, 1fr)); }
.gpLevels li{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:18px; display:flex; flex-direction:column; align-items:center; text-align:center; }
.gpLevels .gpHolo, .gpLevels > li > img{ width:82%; margin-bottom:12px; }
.gpLevelName{ font-family:var(--display); font-weight:800; font-size:19px; }
.gpLevelSub{ font-family:var(--mono); font-size:13px; color:var(--ink-soft); margin-top:2px; }
.gpNote{ margin-top:16px !important; color:var(--ink-soft); line-height:1.55; }
.gpEditions{ display:grid; gap:16px; }
.gpEditions > div{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:20px; }
.gpEditions h2{ font-weight:800; font-size:19px; }
.gpEditions p{ margin-top:6px !important; color:var(--ink-soft); line-height:1.55; }
.gpStore{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:28px; }
.gpStore .gpGhost{ min-height:44px; }
.gpOpen{ gap:8px; }
.gpOpen[hidden]{ display:none; }
/* Am Schalter 3: Herr Stempfle beside his Bescheide. The still carries its
   own dark office, so it reads the same in both themes. A stamp is a word in
   the mono face, never an icon: --closed for Abgelehnt, --open for Anerkannt. */
.gpCounterGrid{ display:grid; gap:28px; }
.gpClerk{ display:flex; align-items:center; gap:14px; }
.gpClerk img{ display:block; width:112px; height:auto; flex:none; border-radius:12px; }
.gpClerkName{ font-family:var(--display); font-weight:800; font-size:17px; }
.gpClerkDesk{ font-family:var(--mono); font-size:13px; color:var(--ink-soft); }
.gpCounterTitle{ font-weight:800; font-size:clamp(28px, 4vw, 38px); }
.gpCounterLead{ margin-top:10px !important; color:var(--ink-soft); line-height:1.55; max-width:36em; }
.gpAsks{ list-style:none; padding:0; margin:24px 0 0; display:grid; gap:16px; }
.gpAsks li{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:18px 20px; }
.gpAsk{ font-weight:500; font-size:17px; line-height:1.4; }
.gpSays{ margin-top:10px !important; display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-style:italic; color:var(--ink); }
.gpSays q{ quotes:'„' '“'; }
.gpStamp{
  font-family:var(--mono); font-style:normal; font-size:12px; letter-spacing:0.1em; text-transform:uppercase;
  border:2px solid currentColor; border-radius:4px; padding:1px 7px; transform:rotate(-4deg);
}
.gpStamp-no{ color:var(--closed); }
.gpStamp-ok{ color:var(--open); }
.gpFact{ margin-top:8px !important; color:var(--ink-soft); line-height:1.55; }
.gpFact a{ color:var(--amber-text); }
.gpRuleRef{ font-family:var(--mono); font-size:13px; white-space:nowrap; }
.gpRule{ scroll-margin-top:calc(var(--bar-space, 64px) + 12px); }
@media (min-width:760px){
  .gpCounterGrid{ grid-template-columns:260px 1fr; gap:48px; align-items:start; }
  .gpClerk{ display:block; position:sticky; top:calc(var(--bar-space, 64px) + 24px); }
  .gpClerk img{ width:100%; border-radius:14px; }
  .gpClerk p{ margin-top:10px !important; }
  .gpAsks{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:520px){ .gpLevels{ grid-template-columns:1fr; } .gpLevels li{ flex-direction:row; text-align:left; gap:14px; } .gpLevels .gpHolo, .gpLevels > li > img{ width:84px; flex:none; margin:0; } }
@media (min-width:760px){ .gpEditions{ grid-template-columns:repeat(3, 1fr); } }
