/* Gemeinsamer Kopf und Fuss aller oeffentlichen Grounder-Seiten (Dezember 2026).
   Steht als letztes Stylesheet auf jeder Seite, egal ob start.css, styles-v2.css,
   styles.css oder reise.css darunter liegt. Darum eigene Klassen (gk-*), eigene
   Farben und px-Masse statt rem: die Seiten haben verschiedene Grundschriften.
   Weiss, kein dunkles Thema. Markup: scripts/seitenkopf_einsetzen.py */

:root {
  --kopf: 64px;
}

/* Die alte styles.css schob den Inhalt unter einen festen Kopf. Der neue Kopf
   steht im Fluss (sticky), also kein Abstand mehr oben. */
body:has(> .gk-kopf) { padding-top: 0; }

.gk-kopf, .gk-fuss {
  --gk-tinte: #0E1210;
  --gk-tinte-2: #4A534A;
  --gk-tinte-3: #666F65;
  --gk-linie: rgba(14, 18, 16, 0.13);
  --gk-linie-hi: rgba(14, 18, 16, 0.24);
  --gk-rasen: #16783A;
  --gk-rasen-tief: #0F5C2C;
  --gk-rasen-dunkel: #0C3F21;
  --gk-aus: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: 'Archivo', 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--gk-tinte);
  -webkit-font-smoothing: antialiased;
}
.gk-kopf *, .gk-kopf *::before, .gk-kopf *::after,
.gk-fuss *, .gk-fuss *::before, .gk-fuss *::after { box-sizing: border-box; }
/* styles-v2.css setzt "wght" 400 fest, das wuerde font-weight hier aushebeln. */
.gk-kopf, .gk-kopf *, .gk-fuss, .gk-fuss * { font-variation-settings: normal; }

.gk-rahmen {
  width: 100%;
  max-width: 1248px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Kopf -------------------------------------------------------------------- */
.gk-kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.gk-kopf[data-gescrollt] { border-bottom-color: var(--gk-linie); }
.gk-kopf-innen {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gk-marke {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-right: 20px;
  font-family: 'Big Shoulders Display', 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--gk-rasen-dunkel);
}
.gk-marke img { display: block; width: 22px; height: 22px; }

.gk-navi { display: flex; align-items: center; gap: 2px; }
.gk-navi a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--gk-tinte-2);
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}
.gk-navi a[aria-current="page"] { color: var(--gk-tinte); }

.gk-rechts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Klappmenues (Mitmachen, Sprache) ohne JS ueber details/summary.
   seitenkopf.js schliesst sie bei Klick daneben oder Escape. */
.gk-klapp { position: relative; flex: none; }
.gk-klapp > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease-out;
}
.gk-klapp > summary::-webkit-details-marker { display: none; }
.gk-klapp > summary:active { transform: scale(0.97); }
.gk-klapp > summary:focus-visible { outline: 2px solid var(--gk-rasen); outline-offset: 2px; }
.gk-pfeil { display: block; width: 10px; height: 10px; flex: none; transition: transform 180ms var(--gk-aus); }
.gk-klapp[open] > summary .gk-pfeil { transform: rotate(180deg); }

.gk-mitmachen > summary {
  padding: 0 10px 0 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gk-tinte);
}
.gk-mitmachen[open] > summary { background: rgba(22, 120, 58, 0.08); }

.gk-menue {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  display: grid;
  min-width: 200px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--gk-linie);
  border-radius: 10px;
  box-shadow: 0 12px 28px -12px rgba(12, 63, 33, 0.28);
  transform-origin: top right;
}
@media (prefers-reduced-motion: no-preference) {
  .gk-klapp[open] > .gk-menue { animation: gk-menue-auf 160ms var(--gk-aus); }
  @keyframes gk-menue-auf { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
}
.gk-menue a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gk-tinte-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}
.gk-menue-titel {
  margin: 8px 10px 2px;
  padding-top: 8px;
  border-top: 1px solid var(--gk-linie);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gk-tinte-3);
}
.gk-menue-titel:first-child { margin-top: 2px; padding-top: 0; border-top: 0; }
.gk-nur-schmal { display: none !important; }

/* Sprache: dieselbe Flagge wie der Umschalter aus sprache.js. Auf Seiten mit
   sprache.js fuellt das Skript den leeren Platz .gk-sprache, sonst steht hier
   ein details-Menue mit zwei Links. */
.gk-sprache { display: flex; flex: none; }
.gk-sprache:empty { display: none; }
.gk-sprache-wahl > summary,
.gk-sprache .sprachwahl-knopf {
  gap: 7px;
  height: 38px;
  padding: 0 9px 0 10px;
  border: 1px solid var(--gk-linie-hi);
  border-radius: 6px;
  background: #fff;
  color: var(--gk-tinte);
}
.gk-flagge, .gk-sprache .flagge {
  display: block;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(14, 18, 16, 0.14);
  flex: none;
}
.gk-sprache-wahl .gk-menue { min-width: 150px; }
.gk-sprache-wahl .gk-menue a[aria-current] { color: var(--gk-tinte); font-weight: 700; }
.gk-sprache-wahl .gk-menue a[aria-current]::after {
  content: "";
  margin-inline-start: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gk-rasen);
}

/* Knoepfe im Kopf: Zur App, dazu Abmelden/Dashboard auf Verein und Partner */
.gk-knopf {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  font-family: 'Archivo', 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease-out;
}
.gk-knopf:active { transform: scale(0.97); }
.gk-knopf:focus-visible { outline: 2px solid var(--gk-rasen); outline-offset: 2px; }
.gk-knopf[hidden] { display: none; }
.gk-voll { background: var(--gk-rasen); color: #fff; }
.gk-leer { border: 1px solid var(--gk-linie-hi); color: var(--gk-tinte); background: #fff; }
.gk-extra { display: contents; }

@media (hover: hover) and (pointer: fine) {
  .gk-navi a:hover,
  .gk-mitmachen > summary:hover { background: rgba(22, 120, 58, 0.08); color: var(--gk-tinte); }
  .gk-sprache-wahl > summary:hover,
  .gk-sprache .sprachwahl-knopf:hover,
  .gk-leer:hover { border-color: var(--gk-tinte); }
  .gk-menue a:hover { background: rgba(22, 120, 58, 0.08); color: var(--gk-tinte); }
  .gk-voll:hover { background: var(--gk-rasen-tief); }
}

@media (max-width: 860px) {
  .gk-navi { display: none; }
  .gk-nur-schmal { display: flex !important; }
  .gk-menue-titel.gk-nur-schmal { display: block !important; }
}
@media (max-width: 560px) {
  .gk-rahmen { padding-inline: 16px; }
  .gk-kopf-innen { gap: 6px; }
  .gk-rechts { gap: 6px; }
  .gk-marke { font-size: 21px; margin-right: 0; gap: 6px; }
  .gk-marke img { width: 20px; height: 20px; }
  .gk-mitmachen > summary { padding: 0 8px; font-size: 14px; gap: 5px; }
  .gk-sprache-wahl > summary, .gk-sprache .sprachwahl-knopf { padding: 0 7px 0 8px; gap: 5px; }
  .gk-flagge, .gk-sprache .flagge { width: 21px; height: 14px; }
  .gk-knopf { padding: 0 12px; font-size: 14px; }
  .gk-extra .gk-knopf { padding: 0 10px; }
  /* Eingeloggt (Verein, Partner): Abmelden ist wichtiger als "Zur App". */
  .gk-rechts:has(.gk-extra > :not([hidden])) > .gk-voll { display: none; }
  .gk-kopf:has(.gk-extra > :not([hidden]) ~ :not([hidden])) .gk-marke span { display: none; }
}
@media (max-width: 370px) {
  .gk-marke span { display: none; }
}

/* Fuss -------------------------------------------------------------------- */
.gk-fuss {
  padding-block: 56px 72px;
  border-top: 1px solid var(--gk-linie);
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
}
.gk-fuss-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  gap: 32px clamp(28px, 4vw, 56px);
}
.gk-fuss-marke { display: grid; gap: 8px; align-content: start; justify-items: start; }
.gk-fuss-marke p { margin: 0; color: var(--gk-tinte-3); }
.gk-fuss nav { display: grid; gap: 6px; align-content: start; }
.gk-fuss h3 {
  margin: 0 0 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gk-tinte-3);
}
.gk-fuss nav a { color: var(--gk-tinte-2); text-decoration: none; }
.gk-fuss-zeile { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--gk-tinte-3); }
.gk-fuss-zeile:empty { display: none; }
@media (hover: hover) and (pointer: fine) {
  .gk-fuss nav a:hover { color: var(--gk-tinte); text-decoration: underline; }
}
@media (max-width: 960px) {
  .gk-fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gk-fuss-marke { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .gk-fuss-raster { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .gk-kopf, .gk-klapp > summary, .gk-pfeil, .gk-knopf { transition: none; }
}
