@font-face { font-family: "Lilita One"; src: url("fonts/lilita-one.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff") format("woff"); font-weight: 400 800; font-display: swap; }

:root {
  --paper: #F1E2BB;
  --paper-deep: #E6D09A;
  --glove: #FFFBF0;
  --ink: #000;
  --muted: #5A5148;
  --green: #7EB852;
  --green-deep: #2F6B22;
  --green-night: #1E4A15;
  --red: #E8302F;
  --mustard: #FED01A;
  --line: 3px solid var(--ink);
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  font-variation-settings: "opsz" 18;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; }
:focus-visible { outline: 3px dashed var(--green-deep); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--mustard); border: var(--line); padding: 8px 14px; z-index: 30; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Wortmarke im Stil des Logos */
.brand {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--mustard);
  text-decoration: none;
  -webkit-text-stroke: 7px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
  display: inline-block;
  padding: 4px 2px;
}

/* Buttons wie aufgeklebte Sticker */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.25rem; line-height: 1;
  color: var(--ink); background: var(--mustard);
  border: var(--line); border-radius: 999px;
  padding: 0.85em 1.5em;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-small { font-size: 1rem; padding: .6em 1.1em; box-shadow: 3px 3px 0 var(--ink); }
.btn-wide { width: 100%; }
.textlink { font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.textlink-btn { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 650; cursor: pointer; color: inherit; }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: var(--line);
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 650; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(32px, 5vw, 56px);
}
.hero h1 { font-size: clamp(3.4rem, 9vw, 7rem); line-height: .92; }
.slogan { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; margin-top: 14px; font-variation-settings: "opsz" 48; }
.lead { margin-top: 18px; max-width: 34em; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 32px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; max-width: 22em; }
.facts div:first-child dd { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.hero-art { margin: 0; justify-self: center; }
.hero-art img { width: min(100%, 440px); }
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: walk-in .9s cubic-bezier(.2, .9, .3, 1.25) both; }
  @keyframes walk-in { from { transform: translateX(60px) rotate(6deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Live-Band */
.ticker {
  display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap;
  padding: 14px var(--gutter);
  background: var(--ink); color: var(--paper);
  text-decoration: none;
}
.ticker-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--mustard); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 1.6s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .35; } }
}
.ticker-text strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--mustard); }
.ticker-cta { margin-left: auto; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Fortschrittsbalken */
.bar { display: block; position: relative; border: var(--line); border-radius: 999px; overflow: hidden; background: var(--green-night); }
.bar i { display: block; height: 100%; width: 0; background: var(--mustard); border-right: 3px solid var(--ink); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bar-mini { width: clamp(120px, 22vw, 260px); height: 16px; border-color: var(--paper); }
.bar-mini i { border-right-color: transparent; }
.bar-big { height: 34px; margin-top: 14px; }

/* Ablauf als Comic-Panels */
.steps { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter); }
.panels { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.panels li {
  background: var(--glove); border: var(--line); border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 22px 26px;
}
.step-no {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  font-family: var(--display); font-size: 1.9rem; line-height: 1;
  background: var(--green); border: var(--line); border-radius: 50%;
  margin-bottom: 16px;
}
.panels h3 { margin-bottom: 8px; }

/* Team */
.team-section { border-top: var(--line); background: var(--paper-deep); }
.team-intro, .team { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.team-intro { padding-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px 48px; align-items: end; }
.team-intro p { max-width: 36em; font-size: 1.125rem; }
.team { list-style: none; margin: 36px auto 0; padding-bottom: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member figure { margin: 0; }
.member .photo {
  aspect-ratio: 4 / 5; border: var(--line); border-radius: 18px; overflow: hidden;
  background: var(--green); box-shadow: 5px 5px 0 var(--ink);
}
.member .photo img { width: 100%; height: 100%; object-fit: cover; }
.member .initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-size: 4rem; color: var(--glove); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.member figcaption { margin-top: 14px; }
.member .name { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.member .role { color: var(--muted); font-weight: 600; }

/* Beteiligung */
.invest {
  background: var(--green-deep); color: var(--glove);
  border-top: var(--line);
  display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: clamp(32px, 5vw, 64px); align-items: start;
  padding: clamp(56px, 8vw, 96px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  scroll-margin-top: 60px;
}
.invest h2 { color: var(--glove); }
.invest-lead { margin-top: 16px; font-size: 1.15rem; max-width: 32em; }
.progress { margin-top: 32px; }
.progress-sum span[data-summe] { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--mustard); }
.progress-of { font-weight: 700; font-size: 1.1rem; }
.progress-meta { margin-top: 10px; opacity: .9; }
.terms { margin: 32px 0 0; display: grid; grid-template-columns: 1fr; max-width: 30em; }
.terms div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 251, 240, .35); }
.terms dt { opacity: .85; }
.terms dd { margin: 0; font-weight: 700; text-align: right; }

#zeichnung { scroll-margin-top: 90px; }
.card {
  background: var(--glove); color: var(--ink);
  border: var(--line); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 26px;
}
.card h3 { font-size: 1.9rem; margin-bottom: 18px; }
.field-label { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.card input[type="text"], .card input[type="number"] {
  width: 100%; font: inherit; font-size: 1.1rem;
  padding: 12px 14px; border: var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.card input:focus-visible { outline-offset: 2px; }
.hint { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.amounts { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: grid; place-items: center; min-height: 48px; padding: 6px;
  border: 2px solid var(--ink); border-radius: 12px; background: #fff;
  font-weight: 700; text-align: center; line-height: 1.1;
}
.chip-free { grid-column: span 3; }
.chips input:checked + span { background: var(--mustard); border-width: 3px; box-shadow: 3px 3px 0 var(--ink); }
.chips input:focus-visible + span { outline: 3px dashed var(--green-deep); outline-offset: 3px; }
.free { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.free-unit { font-weight: 700; font-size: 1.2rem; }
.calc { margin: 14px 0 18px; font-weight: 700; color: var(--green-deep); }
.error { margin-top: 12px; padding: 10px 12px; border: 2px solid var(--red); border-radius: 10px; background: #FDEBE9; font-weight: 600; }
.fine { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.done h3 { margin-bottom: 12px; }
.done p { margin-bottom: 12px; }
.done-nr { padding: 10px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; }
.done .btn { margin-top: 8px; }
.done .textlink-btn { margin-top: 12px; }
.full h3 { margin-bottom: 10px; }

/* Fußzeile */
.foot { border-top: var(--line); background: var(--paper); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 110px; display: grid; gap: 10px; font-size: .92rem; color: var(--muted); }
.foot-inner p { max-width: 60em; }
.brand-foot { font-size: 1.7rem; justify-self: start; margin-bottom: 6px; }

/* Mobile Leiste unten */
.dock { display: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(50vw, 230px); }
  .hero { padding-top: 20px; }
  .panels { grid-template-columns: 1fr; }
  .team-intro { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .invest { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .brand { font-size: 1.7rem; }
  .ticker-cta { display: none; }
  .bar-mini { width: 100%; }
  .card { padding: 20px; }
  .dock {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 8px 8px 16px;
    background: var(--ink); color: var(--paper); border-radius: 999px; text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .25s ease, opacity .25s ease;
  }
  .dock strong { font-family: var(--display); font-weight: 400; color: var(--mustard); font-size: 1.15rem; }
  .dock-btn { font-family: var(--display); background: var(--mustard); color: var(--ink); border-radius: 999px; padding: 10px 16px; }
  .dock.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar i, .btn, .dock { transition: none; }
}
