/* SV Poseidon – Mitgliederinitiative Freibad
   Palette: Beckenblau / Kachel / Leinenrot / Leinengelb auf kühlem Papier. */
:root {
  --ink: #13202B;
  --ink-soft: #4A5A66;
  --paper: #F6F9FA;
  --tile: #E2EDF2;
  --tile-line: #C9DAE2;
  --pool: #0E4A6B;
  --pool-deep: #082F47;
  --rope-red: #D64933;
  --rope-yellow: #F4C542;
  --white: #FFFFFF;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 42rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--pool); }
:focus-visible { outline: 3px solid var(--rope-yellow); outline-offset: 2px; }
code { font-family: var(--mono); font-size: .85em; }

/* Kopf ----------------------------------------------------------------- */
.site-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--tile-line);
  background: var(--white);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
}
.wordmark-sub { font-weight: 400; color: var(--ink-soft); }
.wordmark-wave {
  width: 28px; height: 28px; border-radius: 6px; background: var(--pool);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 20c4-4 8-4 12 0s8 4 12 0' stroke='%23fff' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: cover;
}

/* Schwimmleine: das eine wiederkehrende Element der Seite ----------------- */
.rope {
  height: 10px;
  max-width: var(--measure);
  margin: 0 auto;
  border-radius: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--rope-red) 0 22px,
    var(--rope-yellow) 22px 34px,
    var(--pool) 34px 56px,
    var(--rope-yellow) 56px 68px
  );
}

/* Hero ------------------------------------------------------------------ */
.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.75rem;
}
.hero-klein { padding-bottom: 3.5rem; }
.eyebrow {
  margin: 0 0 1rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pool);
}
h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--pool-deep);
}
.lede { margin: 0 0 1.25rem; font-size: 1.125rem; color: var(--ink-soft); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.hero-count { margin: 1.25rem 0 0; color: var(--ink-soft); }
.hero-count strong { color: var(--pool); font-size: 1.3em; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 6px;
  border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pool); color: var(--white); }
.btn-primary:hover { background: var(--pool-deep); }
.btn-quiet { background: transparent; color: var(--pool); border-color: var(--tile-line); }
.btn-quiet:hover { border-color: var(--pool); }
.btn-block { width: 100%; padding: 1rem; font-size: 1.0625rem; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--rope-red); cursor: pointer; text-decoration: underline; }

/* Das Dokument ------------------------------------------------------------ */
.dokument {
  max-width: var(--measure);
  margin: 2.5rem auto;
  padding: 2.25rem 1.5rem 2.5rem;
  background: var(--white);
  border: 1px solid var(--tile-line);
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
}
@media (min-width: 40rem) { .dokument { padding: 3rem 3.25rem 3.25rem; } }
.dok-kopf { margin: 0 0 1.75rem; font-family: var(--display); font-size: .85rem; color: var(--ink-soft); }
.dok-titel {
  margin: 0 0 1.5rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.25;
  color: var(--pool-deep);
}
.dokument h3 {
  margin: 2rem 0 .6rem;
  font-family: var(--display); font-size: .85rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--pool);
}
.dokument p { margin: 0 0 1em; }
.tops { list-style: none; margin: 0; padding: 0; }
.tops li {
  display: grid; grid-template-columns: 4.2rem 1fr; gap: .5rem;
  padding: .55rem 0; border-top: 1px solid var(--tile);
}
.tops li:last-child { border-bottom: 1px solid var(--tile); }
.top-nr { font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--pool); padding-top: .15rem; }

/* Formular ---------------------------------------------------------------- */
.formular { max-width: var(--measure); margin: 0 auto; padding: 2.75rem 1.25rem 3.5rem; }
.formular h2 {
  margin: 0 0 .6rem;
  font-variation-settings: "wdth" 108; font-weight: 800; font-size: 1.9rem; letter-spacing: -.015em;
  color: var(--pool-deep);
}
.form-intro { margin: 0 0 1.5rem; color: var(--ink-soft); }
.form { display: grid; gap: 1.25rem; }

.erklaerung {
  margin: 0;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: var(--tile);
  border-left: 4px solid var(--pool);
  border-radius: 0 4px 4px 0;
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.55;
}
.erk-name {
  font-weight: 600; color: var(--pool-deep);
  border-bottom: 2px solid var(--pool);
  padding: 0 .15em;
}
.erk-name-leer { color: var(--ink-soft); font-weight: 400; border-bottom-style: dashed; }

.grid-2 { display: grid; gap: 1.25rem; align-items: end; }
@media (min-width: 34rem) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.feld label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.optional { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.feld input[type="text"], .feld input[type="email"] {
  width: 100%;
  padding: .75rem .85rem;
  border: 1.5px solid var(--tile-line);
  border-radius: 6px;
  background: var(--white);
  font: inherit; color: var(--ink);
}
.feld input:focus { border-color: var(--pool); outline: none; box-shadow: 0 0 0 3px rgba(14, 74, 107, .18); }
.feld-fehler input { border-color: var(--rope-red); }
.feld-hinweis { margin: .35rem 0 0; font-size: .875rem; color: var(--rope-red); }

.feld-check label { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.feld-check input { flex: 0 0 auto; width: 1.35rem; height: 1.35rem; margin: .1rem 0 0; accent-color: var(--pool); }

.alert {
  margin: 0 0 1rem; padding: .85rem 1rem;
  border-left: 4px solid var(--rope-red); background: #FBE9E5;
  border-radius: 0 4px 4px 0; font-weight: 500;
}
.kleingedruckt { margin: 0; font-size: .875rem; color: var(--ink-soft); }

/* Honeypot – für Menschen unsichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fuß --------------------------------------------------------------------- */
.site-foot { margin-top: 2rem; }
.foot-inner {
  max-width: var(--measure); margin: 0 auto; padding: 2rem 1.25rem 3rem;
  font-size: .875rem; color: var(--ink-soft);
}
.foot-inner p { margin: 0 0 1rem; }
.foot-inner strong { color: var(--ink); }
.foot-meta { font-size: .8rem; }

/* Verwaltung -------------------------------------------------------------- */
.admin { max-width: 64rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.admin h1 { font-size: 2rem; }
.kacheln { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.kachel {
  min-width: 8rem; padding: 1rem 1.25rem;
  background: var(--white); border: 1px solid var(--tile-line); border-radius: 6px;
  display: flex; flex-direction: column;
}
.kachel-zahl { font-size: 2rem; font-weight: 800; color: var(--pool-deep); line-height: 1.1; }
.kachel-label { font-size: .85rem; color: var(--ink-soft); }
.tabelle-wrap { overflow-x: auto; margin-top: 1.5rem; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .925rem; background: var(--white); }
.tabelle th, .tabelle td { padding: .55rem .7rem; border-bottom: 1px solid var(--tile-line); text-align: left; vertical-align: top; }
.tabelle th { background: var(--tile); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.mono { font-family: var(--mono); font-size: .85em; white-space: nowrap; }
.warn { color: var(--rope-red); font-size: .85em; }
.leer { color: var(--ink-soft); margin-top: 2rem; }
