/* others. – give.gpmc.ch. Mobile first, angelehnt an Rollup und Glaskleber der
   Kampagne (Türkis-Verlauf, Rangen, Gold) und das GPMC Design-Manual. */

@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proxima-nova-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("/fonts/proxima-nova-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rangen";
  src: url("/fonts/rangen.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --tuerkis: #3fb6a9;
  --tuerkis-dunkel: #2f797f;
  --tuerkis-tief: #2c6673;
  --grau: #3c3c3b;
  --gold: #ffbd58;
  --sand: #f4e0cf;
  --rot: #d9415c;
  --karte: #f4f4f4;
  --hell: #eef6f5;
  --weiss: #ffffff;
  --verlauf: linear-gradient(150deg, #3eb4a7 0%, #359290 55%, #2f797f 100%);
  --radius: 22px;
  --shadow: 0 10px 30px rgba(28, 77, 82, 0.16);
  --font: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --display: "Rangen", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--grau);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--tuerkis-tief); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.gold { color: var(--gold); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(62, 180, 167, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}
.topbar__brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--weiss); text-decoration: none;
  font-family: var(--display); font-size: 1.5rem; line-height: 1;
}
.topbar__brand img { width: 24px; height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--weiss); outline-offset: 3px; }
.btn--gold { background: var(--gold); color: var(--grau); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.btn--light { background: var(--weiss); color: var(--tuerkis-tief); }
.btn--small { padding: 8px 16px; font-size: 0.8125rem; }

/* ---------- Hero (wie das Rollup) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 28px 0 64px;
  color: var(--weiss);
  background: var(--verlauf);
}
.hero::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 44px;
  background: var(--weiss);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 0; }
.hero__head { text-align: center; position: relative; z-index: 2; }
.hero__title {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(4.5rem, 26vw, 9rem); line-height: 0.95;
  letter-spacing: -0.01em;
}
.hero__subtitle {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 8.5vw, 3rem); line-height: 1.05;
}
.hero__photo {
  margin: -6px -20px -44px;
  position: relative; z-index: 0;
}
.hero__photo img {
  width: 100%; height: 280px; object-fit: cover; object-position: 55% 62%;
  /* Weich in den Verlauf auslaufen wie auf dem Rollup */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 62%, transparent 100%),
                      linear-gradient(to right, transparent 0%, #000 18%, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 62%, transparent 100%),
              linear-gradient(to right, transparent 0%, #000 18%, #000 85%, transparent 100%);
  mask-composite: intersect;
}

.progress {
  position: relative; z-index: 2;
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 18px 20px 18px;
  background: var(--karte); color: var(--grau);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.progress__live {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 6px;
  font-family: var(--display); font-size: 1.25rem; color: var(--rot);
}
.live-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--rot); position: relative; flex: 0 0 auto;
}
.live-dot::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--rot);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.progress__numbers { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 12px; }
.progress__amount {
  margin: 0;
  font-family: var(--display); font-size: clamp(2.5rem, 12vw, 3.5rem); line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.progress__goal { margin: 0; font-size: 1rem; }
.progress__track {
  position: relative; height: 22px;
  background: #dfe9e7;
  border-radius: 999px; overflow: hidden;
}
.progress__fill {
  height: 100%; width: 0;
  min-width: 22px; /* auch bei 0 % ein sichtbarer Anfang */
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tuerkis), #6cc9b8 55%, var(--gold));
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.progress__fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 2.8s ease-in-out infinite;
  border-radius: inherit;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
/* Über dem Ziel: der Balken skaliert auf den Betrag, der Strich zeigt das Ziel. */
.progress__goalmark {
  position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px;
  background: var(--grau); border-radius: 2px;
}
.progress--over .progress__fill { background: linear-gradient(90deg, var(--tuerkis), var(--gold) 70%, #ffd38f); }
.progress__over {
  margin: 12px 0 0; padding: 10px 12px;
  background: #fff3df; border-radius: 12px;
  font-size: 0.9375rem; font-weight: 700;
}
.progress__meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 10px; font-size: 0.9375rem;
}
@media (prefers-reduced-motion: reduce) {
  .progress__fill, .mini-progress__fill { transition: none; }
  .progress__fill::after, .live-dot::after { animation: none; }
}

.hero__cta { text-align: center; padding-top: 28px; position: relative; z-index: 2; }
.hero__claim {
  margin: 0 0 10px;
  font-family: var(--display); font-size: clamp(1.75rem, 8vw, 2.5rem); line-height: 1.1;
}
.hero__claim .gold { display: block; font-size: 1.45em; }
.hero__places {
  margin: 0 0 22px;
  font-family: var(--display); font-size: 1.125rem; color: var(--grau);
}
.hero__note { margin: 16px 0 0; font-size: 0.9375rem; opacity: 0.95; }
.hero__note:empty { display: none; }

/* ---------- Abschnitte ---------- */
.section { padding: 56px 0; }
.section--tint { background: var(--hell); }
.section--dark { background: var(--verlauf); color: var(--weiss); }
.section--dark .title { color: var(--weiss); }
.title {
  margin: 0 0 14px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.05;
  color: var(--tuerkis-dunkel);
}
.lead { font-size: 1.25rem; font-weight: 700; line-height: 1.45; }
.section__intro { margin-bottom: 28px; }

/* ---------- Phasen ---------- */
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: phase; }
.phase {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  counter-increment: phase;
}
.phase::before {
  content: counter(phase);
  position: absolute; top: 12px; right: 18px;
  font-family: var(--display); font-size: 3rem; line-height: 1;
  color: rgba(63, 182, 169, 0.25);
}
.phase__date { margin: 0 0 2px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tuerkis-dunkel); }
.phase__title { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 1.875rem; line-height: 1.1; color: var(--grau); }
.phase__idea { padding: 10px 12px; background: var(--sand); border-radius: 12px; font-size: 0.9375rem; }
.phase__start { font-size: 0.875rem; color: #6b6b69; }
.phase__badge {
  display: inline-block; margin-bottom: 10px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: #e8eeed; color: var(--grau);
}
.phase__badge:empty { display: none; }
.phase--active { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.phase--active .phase__badge { background: var(--gold); color: var(--grau); }
.phase--done { opacity: 0.75; }
.phase--done .phase__badge { background: var(--tuerkis); color: var(--weiss); }

.finale {
  margin-top: 20px; padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--verlauf); color: var(--weiss);
}

/* ---------- Projekte ---------- */
.projects { display: grid; gap: 24px; }
.project {
  display: flex; flex-direction: column;
  background: var(--weiss);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.project__body { padding: 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.project__tag { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tuerkis); }
.project__title { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }

.split { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 8px; }
.split li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 8px; border-bottom: 1px dashed #d6e2df;
  font-size: 0.9375rem;
}
.split strong { white-space: nowrap; color: var(--tuerkis-dunkel); }

.mini-progress { margin-bottom: 16px; }
.mini-progress__track { height: 10px; background: #e5efed; border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.mini-progress__fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--tuerkis), var(--gold)); border-radius: 999px; transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.mini-progress p { margin: 0; font-size: 0.9375rem; }

.video { position: relative; aspect-ratio: 16 / 9; background: var(--grau); }
.video iframe, .video__play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { padding: 0; cursor: pointer; background: #000; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.video__play:hover img { opacity: 1; }
.video__play:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.video__icon {
  position: absolute; top: 50%; left: 50%; width: 68px; height: 68px;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(63, 182, 169, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.video__icon::after {
  content: ""; position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--weiss);
}

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.gallery img, .gallery__ph { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 12px; }
.gallery__ph {
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #eef4f3, #eef4f3 8px, #e5eeec 8px, #e5eeec 16px);
  color: #8aa39e; font-size: 0.75rem; text-align: center;
}

.note {
  margin-top: 28px; padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: #fff6e8; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9375rem;
}

/* ---------- Ankerbeispiele (wie der Glaskleber) ---------- */
.anchors { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.anchors li {
  display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto;
  column-gap: 16px; align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}
.anchors img { grid-row: 1; grid-column: 1; width: 64px; height: auto; max-height: 64px; object-fit: contain; justify-self: center; }
.anchors__amount {
  grid-row: 2; grid-column: 1; margin: 2px 0 0;
  font-family: var(--display); font-size: 1.75rem; line-height: 1; color: var(--grau);
  text-align: center; white-space: nowrap;
}
.anchors__amount small { font-family: var(--font); font-style: italic; font-size: 0.75rem; margin-left: 2px; }
.anchors li:not(:has(img)) .anchors__amount { grid-row: 1 / span 2; }
.anchors span { grid-row: 1 / span 2; grid-column: 2; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }

/* ---------- Glas ---------- */
.glass { display: grid; gap: 16px; align-items: center; }
.glass__icon { width: 110px; height: auto; margin: 0 auto; }

/* ---------- Spenden ---------- */
.donate {
  margin-top: 20px;
  background: var(--weiss);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.donate iframe { display: block; min-height: 760px; border: 0; }
.donate__closed { margin-top: 20px; padding: 20px; background: var(--weiss); border-radius: var(--radius); font-weight: 700; }

/* ---------- Fusszeile ---------- */
.footer { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); background: var(--grau); color: var(--weiss); }
.footer__inner { display: flex; align-items: center; gap: 18px; }
.footer img { width: 44px; height: auto; }
.footer a { color: var(--weiss); }
.footer p { margin: 0; }

/* ---------- Grössere Bildschirme ---------- */
@media (min-width: 720px) {
  body { font-size: 1.125rem; }
  .topbar { padding-left: 32px; padding-right: 32px; }
  .wrap { padding: 0 32px; }
  .section { padding: 84px 0; }
  .phases { grid-template-columns: repeat(3, 1fr); }
  .anchors { grid-template-columns: repeat(2, 1fr); }
  .glass { grid-template-columns: 130px 1fr; }
  .glass__icon { width: 130px; }
  .progress { padding: 24px 28px 22px; }
  .progress__track { height: 28px; }
}
@media (min-width: 1000px) {
  .projects { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 48px 0 96px; }
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    grid-template-areas: "head photo" "progress photo" "cta photo";
    column-gap: 40px; align-items: start;
  }
  .hero__head { grid-area: head; text-align: left; }
  .hero__photo { grid-area: photo; margin: 0 -32px 0 0; align-self: stretch; }
  .hero__photo img { height: 100%; max-height: 640px; }
  .progress { grid-area: progress; margin: 28px 0 0; max-width: none; }
  .hero__cta { grid-area: cta; text-align: left; }
}
@media (min-width: 720px) and (max-width: 999px) {
  .project { flex-direction: row; }
  .project .video { flex: 0 0 46%; aspect-ratio: auto; min-height: 260px; }
}
