/* leibchen · Einladungsseite · Version 0.3.1 · Stand 04.12.2026
   Zuerst für schmale Bildschirme. Dunkel ist die Heimat der Marke, hell folgt der Einstellung des Geräts. */

@font-face {
  font-family: "Barlow";
  src: url("schrift/Barlow-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --grund: #0B0B0B;
  --text: #FFFFFF;
  --leise: rgba(255, 255, 255, 0.62);
  --linie: rgba(255, 255, 255, 0.35);
  --gelb: #D9F23A;
  --haupt-grund: #D9F23A;
  --haupt-text: #141414;
  --haupt-nr-grund: #141414;
  --haupt-nr-text: #D9F23A;
  --neben-nr-grund: rgba(255, 255, 255, 0.14);
  --neben-nr-text: #FFFFFF;
}

@media (prefers-color-scheme: light) {
  :root {
    --grund: #FFFFFF;
    --text: #141414;
    --leise: rgba(20, 20, 20, 0.62);
    --linie: rgba(20, 20, 20, 0.28);
    --gelb: #7E9A00;
    --haupt-grund: #141414;
    --haupt-text: #FFFFFF;
    --haupt-nr-grund: #D9F23A;
    --haupt-nr-text: #141414;
    --neben-nr-grund: rgba(20, 20, 20, 0.08);
    --neben-nr-text: #141414;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--text);
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  padding:
    max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.kopf,
.mitte,
.fuss {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

/* Die Wortmarke bringt ihren Schutzraum in der Datei mit (120 von 615 je Seite). */
.marke {
  display: block;
  height: 56px;
  width: auto;
  margin: -10px 0 0 -11px;
}

.mitte {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 24px;
}

.verein {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: var(--leise);
  overflow-wrap: anywhere;
}

.mannschaft {
  margin: 0 0 28px;
  font-size: clamp(3rem, 17vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Lange Namen (ab etwa 12 Zeichen) setzt der Dienst mit dieser Klasse. */
.mannschaft.lang { font-size: clamp(2.25rem, 11vw, 3rem); line-height: 1.05; }

.hinweis {
  margin: -8px 0 24px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--leise);
}

.schritte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.schritt {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 18px 14px 14px;
  border-radius: 20px;
  border: 2px solid var(--linie);
  color: var(--text);
  text-decoration: none;
  font-size: 1.3125rem;
  line-height: 1.15;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease;
}

.schritt:active { transform: scale(0.985); }

.schritt:focus-visible {
  outline: 3px solid var(--gelb);
  outline-offset: 3px;
}

.was { flex: 1; min-width: 0; }

.nr {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--neben-nr-grund);
  color: var(--neben-nr-text);
}

.pfeil,
.haken {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.haken { display: none; }

/* Betonung: der nächste offene Schritt. schritt.js setzt „betont“ und „erledigt“; ohne Skript bleibt Schritt 1 betont. */
.schritt.betont {
  background: var(--haupt-grund);
  border-color: var(--haupt-grund);
  color: var(--haupt-text);
}

.schritt.betont .nr {
  background: var(--haupt-nr-grund);
  color: var(--haupt-nr-text);
}

.schritt.erledigt { color: var(--leise); }
.schritt.erledigt .ziffer { display: none; }
.schritt.erledigt .haken { display: block; color: var(--gelb); }
.schritt.erledigt .nr { background: transparent; border: 2px solid var(--linie); }

.fuss {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 0.9375rem;
}

.fuss a {
  color: var(--leise);
  text-decoration: none;
  padding: 12px 4px;
}

.fuss a:hover,
.fuss a:focus-visible { color: var(--text); }

/* Unterseiten: Impressum, Datenschutz */
.blatt { flex: 1; padding-block: 28px; }
.blatt h1 { margin: 0 0 20px; font-size: 2rem; line-height: 1.1; }
.blatt p { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.45; color: var(--leise); }
.blatt h2 { margin: 26px 0 8px; font-size: 1.1875rem; line-height: 1.2; }
.blatt address { margin: 0 0 14px; font-style: normal; font-size: 1.0625rem; line-height: 1.45; color: var(--leise); }
.blatt a { color: inherit; }
/* Angabe, die noch fehlt: fällt auf, bis sie eingetragen ist. */
.offen { background: #FFD60A; color: #0B0B0B; padding: 0 4px; border-radius: 3px; }
.kopf a { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .schritt { transition: none; }
}
