/* vereinsseiten: Solomon Passegger, Websites für Vereine. One stylesheet, no framework, no third-party request.
   Signature: the playing field. The hero is a pitch with its white lines, and the step numbers are set like
   jersey numbers. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15181c;
  --ink-2: #30353c;
  --muted: #5a5f66;          /* 6.1:1 on --bg */
  --line: #d8d5cd;
  --bg: #f6f5f1;
  --paper: #ffffff;
  --green: #1d4d3a;          /* pitch green: white on it 10.2:1, as text on --bg 9.4:1 */
  --green-2: #163d2e;
  --chalk: rgba(255, 255, 255, 0.55);
  --bad: #a3231b;

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-label: 0.875rem;
  --fs-0: 1.0625rem;
  --fs-1: 1.333rem;
  --fs-2: 1.777rem;
  --fs-3: 2.369rem;
  --fs-4: 3.157rem;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 20px;
  --section: 48px;
  --radius: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --section: 80px; --fs-0: 1.125rem; } }
@media (min-width: 1120px) { :root { --gutter: 48px; } }
@media (min-width: 1440px) { :root { --gutter: 64px; } }
@media (min-width: 1920px) { :root { --gutter: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-0)/1.6 var(--f-body); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h1, h2 { text-transform: uppercase; letter-spacing: 0.005em; }
h2 { font-size: var(--fs-3); }
h3 { font-size: var(--fs-2); }
p { margin: 0; max-width: 68ch; }
p + p { margin-top: var(--s4); }
a { color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { padding-inline: var(--gutter); }
.narrow { max-width: 760px; padding-block: var(--s8); }
.label { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); z-index: 10; }
.skip:focus { top: var(--s4); }

/* buttons: the call to action never moves; its colour changes, that is all */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s5);
  font: 600 var(--fs-0)/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn:hover, .btn:focus-visible { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.on-green { background: #fff; border-color: #fff; color: var(--green); }
.btn.on-green:hover, .btn.on-green:focus-visible { background: var(--ink); border-color: var(--ink); color: #fff; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5);
  padding-block: var(--s4); background: var(--paper); border-bottom: 2px solid var(--ink); }
.brand { display: grid; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand b { font: 600 var(--fs-2)/1 var(--f-display); text-transform: uppercase; }
.brand span { font-size: var(--fs-label); color: var(--muted); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:not(.btn):hover, .top nav a:not(.btn):focus-visible { text-decoration: underline; }

/* hero: the pitch */
.hero { position: relative; overflow: hidden; background: var(--green); color: #fff; padding-block: var(--s8) var(--s7); }
.hero .pitch { position: absolute; inset: 0; pointer-events: none; }
/* phones: only the touchline at the right edge, so no line crosses the text */
.hero .pitch::before {            /* the halfway line and the centre circle */
  content: ""; position: absolute; top: -10%; bottom: -10%; right: 10px; width: 2px; background: var(--chalk);
}
.hero .pitch::after { content: none; }
@media (min-width: 1024px) {
  .hero .pitch::before { right: 22%; }
  .hero .pitch::after {
    content: ""; position: absolute; top: 50%; right: 22%; width: min(44vw, 380px); aspect-ratio: 1;
    border: 2px solid var(--chalk); border-radius: 50%; transform: translate(50%, -50%);
  }
}
.hero-inner { position: relative; display: grid; gap: var(--s5); max-width: 980px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.4rem); line-height: 1; }
.hero .lead { font-size: var(--fs-1); line-height: 1.45; max-width: 46ch; }
.hero .price-chip { display: inline-flex; align-items: baseline; gap: var(--s2); padding: var(--s2) var(--s4);
  border: 2px solid #fff; border-radius: var(--radius); font-weight: 600; justify-self: start; }
.hero .price-chip b { font: 600 var(--fs-2)/1 var(--f-display); }
.hero .cta { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero .note { font-size: var(--fs-label); opacity: 0.9; }

/* sections */
.section { padding-block: var(--section); border-top: 2px solid var(--ink); }
.section:first-of-type { border-top: 0; }
.section-head { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
.section-head .label { color: var(--green); }
.section-head p { font-size: var(--fs-1); line-height: 1.45; color: var(--ink-2); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s4); row-gap: var(--s2); align-items: start; }
.steps .no { grid-row: span 2; font: 600 clamp(3.5rem, 10vw, 5rem)/0.85 var(--f-display); color: var(--green); }
.steps p { color: var(--ink-2); }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s7); } }

.included { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.included li { padding: var(--s4) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--s1); }
.included b { font: 600 var(--fs-1)/1.2 var(--f-display); text-transform: uppercase; letter-spacing: 0.01em; }
.included span { color: var(--ink-2); }
@media (min-width: 768px) { .included { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s7); } }
@media (min-width: 1440px) { .included { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.price-box { display: grid; gap: var(--s5); }
.price-box .amount { font: 600 clamp(4rem, 14vw, 7rem)/0.9 var(--f-display); color: var(--green); }
.price-box .amount small { font-size: var(--fs-2); color: var(--ink); }
.price-box ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s2); max-width: 68ch; }
@media (min-width: 1024px) { .price-box { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; column-gap: var(--s8); } }

/* the form sits in a fold: closed by default, opened by its button or by any "Anfrage stellen" link (form.js) */
.form-fold > summary { list-style: none; width: max-content; max-width: 100%; }
.form-fold > summary::-webkit-details-marker { display: none; }
.form-fold .when-open { display: none; }
.form-fold[open] .when-open { display: inline; }
.form-fold[open] .when-closed { display: none; }
.form-fold[open] > summary { margin-bottom: var(--s6); background: var(--paper); border-color: var(--ink); color: var(--ink); }
.form-fold[open] > summary:hover, .form-fold[open] > summary:focus-visible { background: var(--ink); color: #fff; }

/* the form */
.form { display: grid; gap: var(--s6); max-width: 920px; }
.form fieldset { border: 0; border-top: 2px solid var(--ink); margin: 0; padding: var(--s5) 0 0; display: grid; gap: var(--s4); min-width: 0; }
.form legend { font: 600 var(--fs-2)/1.1 var(--f-display); text-transform: uppercase; padding: 0 var(--s2) 0 0; }
.form .intro { color: var(--ink-2); }
.field { display: grid; gap: var(--s1); min-width: 0; }
.field label, .field .q { font-weight: 600; }
.field .hint, .req-note { font-size: var(--fs-label); color: var(--muted); font-weight: 400; }
.req { color: var(--bad); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, input[type="file"] {
  width: 100%; min-width: 0; font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink-2); border-radius: var(--radius); padding: var(--s3);
}
input[type="file"] { padding: var(--s2); }
textarea { min-height: 7.5em; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; }
.pair { display: grid; gap: var(--s4); }
@media (min-width: 680px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checks { display: grid; gap: var(--s2); }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s3); align-items: start; min-height: 44px; padding-top: var(--s2); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: var(--s4); border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.form-status:empty { display: none; }
.form-status.fail { border-color: var(--bad); border-left-width: 8px; }
.form-status.busy { border-left: 8px solid var(--green); }
.form-status ul, .errors { margin: var(--s2) 0 0; padding-left: 1.2em; }
.errors { color: var(--bad); }
.picked { font-size: var(--fs-label); color: var(--muted); }
.submit-row { display: grid; gap: var(--s3); justify-items: start; }

.steps.after, p.after { margin-top: var(--s6); }
.steps.after h2 { font-size: var(--fs-2); }

/* questions */
.faq { display: grid; gap: 0; border-top: 2px solid var(--ink); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.faq summary { cursor: pointer; font: 600 var(--fs-1)/1.3 var(--f-display); text-transform: uppercase; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin-top: var(--s3); color: var(--ink-2); }

/* footer */
.foot { background: var(--ink); color: #d6d3cc; padding-block: var(--s7); font-size: var(--fs-label); }
.foot .cols { display: grid; gap: var(--s5); }
.foot h2 { font: 600 var(--fs-label)/1.4 var(--f-body); text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: var(--s2); }
.foot p, .foot ul { font-size: var(--fs-0); margin: 0; padding: 0; list-style: none; }
.foot a { color: #fff; display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 768px) { .foot .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* legal pages */
.legal h1 { font-size: var(--fs-4); margin-bottom: var(--s5); }
.legal h2 { font-size: var(--fs-2); margin: var(--s6) 0 var(--s3); }
.legal ul { padding-left: 1.2em; max-width: 68ch; }
.legal address { font-style: normal; }

/* motion: one load animation (the halfway line draws in), the rest on interaction only */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero .pitch::before { animation: chalk 900ms var(--ease-out) 150ms both; transform-origin: top; }
  @keyframes chalk { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  .faq summary { transition: color 150ms ease; }
  @media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--green); } }
  .faq summary:focus-visible { color: var(--green); }
}
