/* LetzGuess – Play for Good (letzguess.online) */

:root {
  --cream: #fbf6ee;
  --cream-2: #f4ecdd;
  --paper: #fffcf6;
  --forest: #1f5c4a;
  --forest-deep: #164536;
  --moss: #7fa36b;
  --moss-soft: #dfe8d3;
  --terra: #d9734e;
  --terra-text: #a64b29;
  --terra-soft: #f7e0d4;
  --sun: #f2c14e;
  --sun-soft: #fbedc6;
  --ink: #2b2722;
  --ink-2: #5d554b;
  --line: rgba(43, 39, 34, 0.12);
  --line-strong: rgba(43, 39, 34, 0.2);

  --display: 'Fraunces Variable', 'Iowan Old Style', Georgia, serif;
  --text: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 0 rgba(43, 39, 34, 0.05), 0 18px 40px -24px rgba(31, 92, 74, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
  color: var(--forest-deep);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

a, button, summary, .btn {
  touch-action: manipulation;
}

.btn, summary, .brand, .site-nav a {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--forest);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.7em 1.35em;
  border-radius: 999px;
  border: 2px solid var(--forest);
  background: var(--forest);
  color: var(--cream);
  font: 600 1rem/1.2 var(--text);
  text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 160ms, box-shadow 160ms, color 160ms;
}
.btn:active { transform: scale(0.97); }

.btn-big {
  min-height: 64px;
  padding: 0.85em 1.7em;
  font-size: 1.2rem;
  box-shadow: 0 2px 0 var(--forest-deep), 0 18px 30px -16px rgba(31, 92, 74, 0.7);
}
.btn-big::after {
  content: '';
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--sun);
  margin-left: 0.15em;
}
.btn-small { min-height: 40px; padding: 0.5em 1.1em; font-size: 0.95rem; }
.btn-outline { background: transparent; color: var(--forest); }
.btn-light { background: var(--cream); color: var(--forest-deep); border-color: var(--cream); }

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--forest);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
  .btn-outline:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
  .btn-light:hover { background: var(--sun); border-color: var(--sun); color: var(--forest-deep); }
  .link-quiet:hover, a:hover { color: var(--forest-deep); text-decoration-thickness: 2px; }
  .site-nav a:hover { background: var(--cream-2); }
  .faq summary:hover { color: var(--forest); }
  .help-item a:hover .help-name { text-decoration: underline; text-decoration-thickness: 2px; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 246, 238, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
  transition: border-color 200ms;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest-deep);
  margin-right: auto;
  min-height: 44px;
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand-sub {
  font-family: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--terra-text);
  letter-spacing: 0.01em;
}

.site-nav { display: none; gap: 4px; }
.site-nav a {
  padding: 0.5em 0.8em;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 160ms;
}

@media (min-width: 980px) {
  .site-nav { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(28px, 6vw, 72px) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  display: grid;
  grid-template-areas: 'title' 'lede' 'score' 'cta';
  gap: 20px;
  padding-bottom: clamp(120px, 16vw, 210px);
}
.hero-title { grid-area: title; }
.hero .lede { grid-area: lede; }
.scoreboard { grid-area: score; }
.hero-cta { grid-area: cta; }
@media (max-width: 1079px) {
  .scoreboard { max-width: 640px; }
}
@media (min-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: 'title score' 'lede score' 'cta score';
    align-content: center;
    column-gap: 56px;
    row-gap: 0;
  }
  .scoreboard { align-self: center; }
  .hero .lede { margin-top: 22px; }
  .hero-cta { margin-top: 30px; }
}

.hero h1 {
  font-size: clamp(2.9rem, 1.2rem + 6.4vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 680;
  max-width: 9.5em;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
}
.lede {
  max-width: 34em;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.hero-note {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

@media (max-width: 520px) {
  .hero-actions .btn-big { width: 100%; }
}

/* Scoreboard */
.scoreboard {
  position: relative;
  container-type: inline-size;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3.2vw, 36px);
  box-shadow: var(--shadow);
}
.score-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}
.score-label {
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}
.live.is-ok .live-dot {
  background: var(--moss);
  box-shadow: 0 0 0 0 rgba(127, 163, 107, 0.6);
  animation: pulse 2.4s var(--ease-out) infinite;
}
.live.is-error .live-dot { background: var(--terra); }
.live.is-error { color: var(--terra-text); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 163, 107, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(127, 163, 107, 0); }
}

.score-value {
  margin-top: 6px;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.8rem, 1.6rem + 6vw, 5.6rem);
  font-size: clamp(2.2rem, 1.9 * 100cqi / var(--chars, 9), 6.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--forest-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.milestone { margin-top: clamp(16px, 2.4vw, 26px); }
.milestone-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.milestone-name {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.milestone-percent {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.milestone-meta {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* Progress bars */
.bar {
  --h: 12px;
  position: relative;
  height: var(--h);
  border-radius: 999px;
  background: var(--cream-2);
  box-shadow: inset 0 1px 2px rgba(43, 39, 34, 0.12);
  overflow: hidden;
  margin-top: 10px;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p, 0) * 1%);
  border-radius: inherit;
  background: var(--moss);
  transition: width 900ms var(--ease-out);
}
.bar-hero { --h: 22px; }
.bar-hero .bar-fill {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 0 8px, transparent 8px 16px),
    var(--moss);
}
.bar.is-done .bar-fill { background: var(--forest); }
.bar.is-planned .bar-fill { background: var(--line-strong); }

/* Hills */
.hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(120px, 17vw, 240px);
  z-index: -1;
}

/* Sections */
.section {
  padding: clamp(56px, 9vw, 112px) 0;
}
.section-tint { background: var(--cream-2); }
.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
@media (min-width: 1100px) {
  .section-head {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: end;
    gap: 64px;
  }
}
.section-title {
  font-size: clamp(1.95rem, 1.3rem + 2.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 620;
}
.section-intro {
  color: var(--ink-2);
  max-width: 40em;
}

/* Steps */
.steps {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: none;
}
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}
.step {
  position: relative;
  padding-top: 20px;
  border-top: 2px solid var(--forest);
}
.step-num {
  display: block;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 500;
  font-size: 3.4rem;
  line-height: 1;
  color: #c4603b; /* etwas dunkleres Terrakotta: 3,8:1 statt 3,0:1 auf Creme */
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 620;
}
.step p {
  margin-top: 10px;
  color: var(--ink-2);
  max-width: 32em;
}
.aside-note {
  margin-top: clamp(32px, 4vw, 48px);
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--sun-soft);
  color: var(--ink);
  font-weight: 500;
  max-width: 46em;
}

/* Campaign trail */
.trail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.trail-empty, .team-empty, .help-empty, .ledger-empty {
  color: var(--ink-2);
}
.trail-empty {
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
}

.campaign {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 16px;
}
.campaign::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: -18px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 12px);
}
.campaign:last-child::before { display: none; }
.campaign.is-done::before { background: var(--forest); }

.campaign-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.15rem;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  color: var(--ink-2);
  position: relative;
  z-index: 1;
}
.campaign.is-done .campaign-marker { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.campaign.is-active .campaign-marker { background: var(--sun); border-color: var(--sun); color: var(--forest-deep); box-shadow: 0 0 0 6px rgba(242, 193, 78, 0.28); }
.campaign-marker svg { width: 20px; height: 20px; }

.campaign-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.6vw, 28px);
}
.campaign.is-active .campaign-card {
  border-color: rgba(31, 92, 74, 0.35);
  box-shadow: var(--shadow);
  border-radius: var(--r-lg);
}
.campaign.is-planned .campaign-card { background: transparent; }

.campaign-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
}
.badge-done { background: var(--forest); color: var(--cream); }
.badge-active { background: var(--sun); color: var(--forest-deep); }
.badge-planned { background: var(--cream-2); color: var(--ink-2); border: 1px solid var(--line); }
.campaign-region { font-size: 0.9rem; color: var(--ink-2); }

.campaign-title {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  line-height: 1.18;
  font-weight: 620;
}
.campaign-subtitle {
  margin-top: 4px;
  color: var(--ink-2);
  font-weight: 500;
}
.campaign-impact {
  margin-top: 12px;
  max-width: 60ch;
}
.campaign-progress { margin-top: 18px; }
.campaign-progress-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  font-size: 0.95rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.campaign-progress-row strong { color: var(--ink); font-weight: 650; }

.campaign-facts {
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .campaign-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.fact {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--cream);
  border: 1px solid var(--line);
}
.fact dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}
.fact dd {
  margin: 2px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.fact-pledge { font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.fact-wanted { background: var(--terra-soft); border-color: rgba(217, 115, 78, 0.35); }
.fact-wanted dd a { color: var(--terra-text); }

.sponsor-call {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  border: 2px dashed rgba(217, 115, 78, 0.55);
  background: rgba(255, 252, 246, 0.6);
}
.sponsor-call h3 { font-size: 1.4rem; }
.sponsor-call p { margin-top: 8px; color: var(--ink-2); max-width: 58ch; }
@media (min-width: 820px) {
  .sponsor-call { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
}

/* Live numbers */
.numbers {
  background: var(--forest);
  color: var(--cream);
  padding: clamp(48px, 7vw, 88px) 0;
}
.numbers-title {
  color: var(--cream);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  font-weight: 600;
}
.numbers-grid {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
}
@media (min-width: 900px) {
  .numbers-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.num {
  border-left: 2px solid rgba(242, 193, 78, 0.7);
  padding-left: 14px;
}
.num dt {
  font-size: 0.9rem;
  color: rgba(251, 246, 238, 0.78);
}
.num dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-weight: 550;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--cream);
  overflow-wrap: anywhere;
}
.numbers-note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: rgba(251, 246, 238, 0.72);
}

/* Crews */
.crews-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .crews-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: start; }
  .crews-grid .teams-board { position: sticky; top: 96px; }
}
.crews-copy > p { margin-top: 22px; color: var(--ink-2); max-width: 36em; }
.crew-tags {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.crew-tags li {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--paper);
  border: 1.5px solid var(--forest);
  color: var(--forest-deep);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 220ms var(--ease-pop), background-color 160ms;
}
.crew-tags li:nth-child(3n + 1) { --tilt: -2deg; background: var(--sun-soft); }
.crew-tags li:nth-child(3n + 2) { --tilt: 1.5deg; }
.crew-tags li:nth-child(3n) { --tilt: -1deg; background: var(--terra-soft); border-color: var(--terra-text); color: var(--terra-text); }
@media (hover: hover) and (pointer: fine) {
  .crew-tags li:hover { transform: rotate(0deg) scale(1.06); }
}
.crew-howto {
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--moss-soft);
}
.crew-howto h3 { font-size: 1.25rem; }
.crew-howto ol {
  margin: 12px 0 0;
  padding-left: 1.3em;
  display: grid;
  gap: 10px;
}
.crew-howto li { padding-left: 4px; }
.crew-howto li::marker { color: var(--forest); font-family: var(--display); font-weight: 700; }

.teams-board {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.board-title { font-size: 1.4rem; }
.team-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.team-empty {
  padding: 18px;
  border-radius: var(--r-sm);
  background: var(--cream);
  border: 1px dashed var(--line-strong);
}
.team {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.team:last-child { border-bottom: 0; }
.team-rank {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.15rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.team:nth-child(1) .team-rank { color: var(--terra-text); }
.team-name {
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.team-points {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
}
.team .bar {
  --h: 6px;
  grid-column: 2 / 4;
  margin-top: 2px;
}

/* Ledger */
.ledger-empty {
  display: grid;
  gap: 6px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
}
.ledger-empty strong {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest-deep);
}
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.ledger-count {
  margin-bottom: 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.ledger-table th, .ledger-table td {
  text-align: left;
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.ledger-table thead th {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--cream);
}
.ledger-table tbody tr:last-child td { border-bottom: 0; }
.ledger-amount { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger-proof { display: inline-flex; align-items: center; min-height: 44px; margin-block: -11px; font-weight: 600; }

@media (max-width: 720px) {
  .ledger-table, .ledger-table tbody, .ledger-table tr, .ledger-table td { display: block; }
  .ledger-table { border: 0; background: transparent; }
  .ledger-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ledger-table tr {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 8px 4px;
    margin-bottom: 12px;
  }
  .ledger-table td { border: 0; padding: 6px 14px; }
  .ledger-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-2);
  }
}

/* Direct help */
.help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 820px) {
  .help-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}
.help-item { border-bottom: 1px solid var(--line-strong); }
.help-item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 18px 0;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.help-name {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--forest-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.help-host {
  align-self: center;
  font-size: 0.875rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.help-desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.975rem; }
@media (max-width: 560px) {
  .help-item a { grid-template-columns: minmax(0, 1fr); }
  .help-host { order: 3; align-self: start; }
}
.help-item svg { display: inline; width: 0.8em; height: 0.8em; vertical-align: baseline; margin-left: 4px; }

/* FAQ */
.faq { max-width: 880px; margin-top: clamp(24px, 4vw, 40px); border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 0;
  line-height: 1.3;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  color: var(--forest-deep);
  transition: color 160ms;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--forest), var(--forest)) center / 12px 2px no-repeat,
    linear-gradient(var(--forest), var(--forest)) center / 2px 12px no-repeat,
    var(--paper);
  border: 1px solid var(--line-strong);
  transition: transform 220ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0 22px;
  max-width: 64ch;
  color: var(--ink-2);
}

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: var(--cream);
  padding: clamp(48px, 7vw, 80px) 0 calc(40px + env(safe-area-inset-bottom, 0px));
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
}
.footer-brand {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100;
  font-weight: 650;
  font-size: 1.6rem;
  line-height: 1.1;
}
.footer-brand span { color: var(--sun); font-weight: 500; }
.footer-head {
  font-family: var(--text);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 650;
}
.footer-text {
  margin-top: 8px;
  color: rgba(251, 246, 238, 0.78);
  max-width: 34em;
  font-size: 0.975rem;
}
.footer-grid .btn { margin-top: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.footer-links a {
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: min(92vw, 460px);
  transform: translate(-50%, 0);
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--forest-deep);
  color: var(--cream);
  box-shadow: 0 20px 40px -18px rgba(22, 69, 54, 0.8);
  font-weight: 500;
  animation: toast-in 320ms var(--ease-out);
}
.toast strong { color: var(--sun); }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Garten im Punktestand */
.garden-wrap { margin-top: 14px; }
.garden {
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 150;
  overflow: visible;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fff6df 0%, var(--paper) 70%);
}
.garden-sky-hill { fill: var(--moss-soft); }
.garden-bed { fill: #b9cda3; }
.plant-seed { fill: #8a6a4b; opacity: 0.35; transition: opacity 400ms; }
.plant-slot.is-grown .plant-seed { opacity: 0; }
.plant {
  transform: scale(var(--g, 0));
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 900ms var(--ease-pop) var(--d, 0ms);
}
.plant-sway {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.plant-slot.is-growing .plant { opacity: 0.92; }
@media (hover: hover) and (pointer: fine) {
  .plant-slot.is-grown:hover .plant-sway { animation: sway 900ms var(--ease-out); }
}
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  55% { transform: rotate(4deg); }
  80% { transform: rotate(-1.5deg); }
}
.bee { opacity: 0; transition: opacity 600ms; }
.garden.has-bloom .bee {
  opacity: 1;
  animation: bee-fly 11s ease-in-out infinite;
}
.bee-wing { animation: bee-wing 140ms linear infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bee-fly {
  0% { transform: translate(40px, 70px); }
  20% { transform: translate(130px, 52px); }
  40% { transform: translate(210px, 76px) scaleX(-1); }
  60% { transform: translate(300px, 48px) scaleX(-1); }
  80% { transform: translate(180px, 40px); }
  100% { transform: translate(40px, 70px); }
}
@keyframes bee-wing { from { transform: scaleY(1); } to { transform: scaleY(0.45); } }
.garden-caption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* Live-Ticker */
.score-line { position: relative; margin-top: 10px; }
.score-line .score-value { margin-top: 0; }
.ticker-pops {
  position: absolute;
  right: 0;
  top: 0;
  pointer-events: none;
}
.ticker-pop {
  position: absolute;
  right: 0;
  top: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--forest-deep);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  animation: ticker-pop 2200ms var(--ease-out) forwards;
}
@keyframes ticker-pop {
  0% { opacity: 0; transform: translateY(14px) scale(0.92); }
  15% { opacity: 1; transform: translateY(0) scale(1); }
  70% { opacity: 1; transform: translateY(-10px) scale(1); }
  100% { opacity: 0; transform: translateY(-26px) scale(0.98); }
}
.ticker {
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.ticker strong {
  display: inline-block;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

/* Was bedeuten 1.000 Punkte? */
.explain-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .explain-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
}
.explain-lede { margin-top: 18px; color: var(--ink-2); max-width: 34em; font-size: 1.1rem; }
.explain-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.explain-facts li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-strong);
}
.explain-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.explain-facts strong {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 650;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  line-height: 1;
  color: var(--terra-text);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.explain-facts span { color: var(--ink-2); }
@media (max-width: 480px) {
  .explain-facts li { grid-template-columns: minmax(0, 1fr); }
}

.calc {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3.4vw, 36px);
  box-shadow: 0 30px 60px -36px rgba(22, 69, 54, 0.9);
}
@media (min-width: 960px) {
  .calc { transform: rotate(-0.6deg); }
}
.calc-title { color: var(--cream); font-size: 1.5rem; }
.calc-maps {
  border: 0;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.calc-maps legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(251, 246, 238, 0.78);
}
.chip { position: relative; display: inline-flex; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(251, 246, 238, 0.4);
  font-weight: 600;
  transition: background-color 160ms, color 160ms, border-color 160ms, transform 140ms var(--ease-out);
}
.chip input:checked + span { background: var(--sun); border-color: var(--sun); color: var(--forest-deep); }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 3px; }
.chip input:active + span { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .chip input:not(:checked):hover + span { border-color: var(--cream); }
}
.calc-label {
  display: block;
  margin-top: 22px;
  font-weight: 500;
}
.calc-label output { font-weight: 700; color: var(--sun); font-variant-numeric: tabular-nums; }
.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 6px 0 0;
  background: transparent;
  cursor: pointer;
}
.calc-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun), rgba(251, 246, 238, 0.25));
}
.calc-range::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun), rgba(251, 246, 238, 0.25));
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--cream);
  border: 4px solid var(--terra);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 140ms var(--ease-out);
}
.calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream);
  border: 4px solid var(--terra);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.calc-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-range:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 999px; }
.calc-out { margin-top: 10px; }
.calc-points {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 650;
  line-height: 1;
}
.calc-points output {
  font-size: clamp(3rem, 2rem + 4vw, 4.6rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--cream);
}
.calc-points span { font-size: 1.3rem; color: var(--sun); margin-left: 4px; }
.calc-meter { --h: 8px; background: rgba(251, 246, 238, 0.16); box-shadow: none; }
.calc-meter .bar-fill { background: var(--sun); transition: width 180ms var(--ease-out); }
.calc-meta { margin-top: 14px; color: rgba(251, 246, 238, 0.86); min-height: 3.2em; }

/* Visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .garden.has-bloom .bee { animation: none; transform: translate(300px, 60px); }
  .bee-wing { animation: none; }
  .calc { transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
