/* ── Landing Page Styles ── */
/* self-hosted (no request to Google before the privacy consent) */
@font-face { font-family: 'Open Sans'; font-weight: 300; font-display: swap; src: url('../fonts/open-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 400; font-display: swap; src: url('../fonts/open-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 600; font-display: swap; src: url('../fonts/open-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 700; font-display: swap; src: url('../fonts/open-sans-latin-700-normal.woff2') format('woff2'); }

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

html, body {
  height: 100%;
}

/* base size +10 % – every rem below scales with it */
html { font-size: 110%; touch-action: manipulation; }

body {
  font-family: 'Open Sans', sans-serif;
  background: #f6f3ea;
  color: #1c2a20;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Main Container ── */
.landing-container {
  width: 100%;
  max-width: 520px;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* ── Logo ── */
.landing-logo {
  width: 76px;
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
  animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Club Title ── */
.landing-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a3a1a;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.landing-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: #647067;
  text-align: center;
  margin-bottom: 20px;
}

/* ── Auth Section ── */
.auth-section {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1c2a20;
  text-align: center;
  margin-bottom: 16px;
}

.auth-error {
  color: #c0392b;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 12px;
  display: none;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  padding: 8px 12px;
}

.auth-error.visible {
  display: block;
}

/* ── Code Input ── */
.code-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

.code-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1.1rem;
  font-family: 'Open Sans', sans-serif;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.code-input:focus {
  border-color: #2f5d3a;
  box-shadow: 0 0 0 3px rgba(47, 93, 58, 0.18);
}

.code-submit {
  padding: 12px 20px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  background: #2f5d3a;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
.code-submit:hover {
  background: #1f3d27;
}
}

.code-submit:active {
  transform: scale(0.97);
}

/* ── Auth Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #647067;
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4ddce;
}

/* ── Demo Button ── */
.demo-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  background: #fff;
  color: #1c2a20;
  border: 2px solid #e4ddce;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}

@media (hover: hover) and (pointer: fine) {
.demo-btn:hover {
  border-color: #647067;
  background: #f8f5ee;
}
}

.demo-btn:active {
  transform: scale(0.97);
}

/* ── Navigation Cards ── */
.nav-cards {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
  animation: fadeIn 0.4s ease-out;
}

.nav-cards.visible {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nav-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 2px solid #e4ddce;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
.nav-card:hover {
  border-color: #1f3d27;
  box-shadow: 0 4px 16px rgba(44, 82, 130, 0.12);
  transform: translateY(-2px);
}
}

.nav-card:active {
  transform: translateY(0);
}

.nav-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.nav-card.featured {
  border-color: #2f5d3a;
  background: linear-gradient(135deg, #f4f9f0 0%, #ffffff 70%);
}

.nav-card-icon.ergebnisse {
  background: linear-gradient(135deg, #1f3d27 0%, #6a9f3a 100%);
  color: #fff;
  font-size: 1.5rem;
}

.nav-card-icon.rekorde {
  background: linear-gradient(135deg, #c8962e 0%, #e7c46a 100%);
  color: #fff;
  font-size: 1.5rem;
}

.remember-label small {
  display: block;
  font-size: 0.75rem;
  color: #647067;
}

.nav-card-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #c8962e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}

.nav-card-icon.wrapped {
  background: linear-gradient(135deg, #8a6510 0%, #c8962e 100%);
  color: #fff;
  font-size: 1.5rem;
}

.nav-card-icon.desktop {
  background: linear-gradient(135deg, #10241a 0%, #2f5d3a 100%);
  color: #fff;
  font-size: 1.5rem;
}

.nav-card-text {
  flex: 1;
}

.nav-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 2px;
}

.nav-card-desc {
  font-size: 0.8rem;
  color: #647067;
  line-height: 1.3;
}

.nav-card-arrow {
  font-size: 1.2rem;
  color: #647067;
  transition: transform 0.2s;
}

@media (hover: hover) and (pointer: fine) {
.nav-card:hover .nav-card-arrow {
  transform: translateX(4px);
  color: #1f3d27;
}
}

/* ── Welcome message ── */
.welcome-msg {
  display: none;
  text-align: center;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: #2d6a2d;
  font-weight: 600;
}

.welcome-msg.visible {
  display: block;
}

/* ── Privacy Consent ── */
.privacy-consent {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #f8f5ee;
  border: 1px solid #e4ddce;
  border-radius: 12px;
  animation: fadeIn 0.4s ease-out;
}

.privacy-consent.visible {
  display: block;
}

.privacy-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #1a3a1a;
  margin-bottom: 10px;
  text-align: center;
}

.privacy-text {
  font-size: 0.85rem;
  color: #647067;
  line-height: 1.5;
  margin-bottom: 14px;
}

.privacy-text p {
  margin-bottom: 8px;
}

.privacy-text a {
  color: #2f5d3a;
  text-decoration: underline;
}

.privacy-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #1c2a20;
  cursor: pointer;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #e4ddce;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.privacy-checkbox-label:active {
  background: #f8f5ee;
}

.privacy-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  accent-color: #2f5d3a;
  cursor: pointer;
}

.privacy-accept-btn {
  width: 100%;
}

.privacy-accept-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Footer Links ── */
.footer-links {
  width: 100%;
  text-align: center;
  margin-top: 24px;
}

.footer-links a {
  color: #647067;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
.footer-links a:hover {
  color: #1f3d27;
  text-decoration: underline;
}
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .landing-container {
    padding: 16px 16px 24px;
  }

  .landing-logo {
    width: 64px;
  }

  .landing-title {
    font-size: 1rem;
  }

  .auth-section {
    padding: 20px 16px;
  }

  .code-input-group {
    flex-direction: column;
  }

  .code-submit {
    width: 100%;
  }

  .nav-card {
    padding: 14px 16px;
  }

  .privacy-checkbox-label {
    padding: 12px;
    gap: 12px;
  }

  .privacy-checkbox-label input[type="checkbox"] {
    width: 26px;
    height: 26px;
  }
}

/* ── Settings below the cards: light/dark, install app, logout ── */
.settings {
  margin-top: 14px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  text-align: left;
}
.settings-heading {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a857c;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 6px 4px;
  border: 0;
  border-top: 1px solid #edf1f4;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  color: #1c2a20;
  text-align: left;
}
.settings-heading + .settings-row,
.settings > .settings-row:first-child { border-top: 0; }
.settings-btn { cursor: pointer; touch-action: manipulation; }
a.settings-row { box-sizing: border-box; text-decoration: none; }
.settings-btn.danger { color: #c0392b; }
.settings-arrow { color: #647067; font-size: 1.2rem; }
.settings-row { flex-wrap: wrap; row-gap: 6px; }
.settings-label { white-space: nowrap; }
.settings-label small { display: block; font-size: 0.78rem; color: #7a857c; }
.settings-small-btn {
  border: 1px solid #c9d6cb;
  border-radius: 999px;
  padding: 6px 14px;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #2f5d3a;
  cursor: pointer;
  touch-action: manipulation;
}
:root[data-theme="dark"] .settings-small-btn { color: #a9d38a; border-color: #3a5040; }
:root[data-theme="dark"] .settings-label small { color: #9aaa9e; }
.settings-row[hidden] { display: none !important; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #eef2ee; }
.seg button {
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #647067;
  cursor: pointer;
  touch-action: manipulation;
}
.seg button[aria-pressed="true"] { background: #2f5d3a; color: #fff; }
:root[data-theme="dark"] .settings { border-top-color: #26362b; }
:root[data-theme="dark"] .settings-row { color: #dfe7dd; border-top-color: #22302a; }
:root[data-theme="dark"] .settings-btn.danger { color: #ef8a7c; }
:root[data-theme="dark"] .seg { background: #1b281f; }
:root[data-theme="dark"] .seg button { color: #a9b8ad; }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: #3a7045; color: #fff; }

.install-hint[hidden] {
  display: none !important;
}

.install-hint {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6ead0;
  font-size: 0.84rem;
  color: #1c2a20;
}

/* ── Dark mode (toggle in js/theme.js, light is the default) ── */
/* tokens for the shared top bar (nav.css) on the privacy page */
:root[data-theme="dark"] { color-scheme: dark; --bg: #0e1511; --surface: #16211a; --surface-2: #1b281f; --ink: #eaf0e8; --muted: #9aaa9e; --line: #26362b; }
:root[data-theme="dark"] body { background: linear-gradient(135deg, #0e1511 0%, #16211a 100%); color: #d8e2d9; }
:root[data-theme="dark"] .landing-title,
:root[data-theme="dark"] .auth-heading,
:root[data-theme="dark"] .privacy-heading,
:root[data-theme="dark"] .nav-card-title { color: #eaf0e8; }
:root[data-theme="dark"] .landing-subtitle,
:root[data-theme="dark"] .nav-card-desc,
:root[data-theme="dark"] .remember-label small { color: #9aaa9e; }
:root[data-theme="dark"] .auth-section { background: #16211a; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35); }
:root[data-theme="dark"] .auth-error { background: #3a1c1a; border-color: #6b2b26; color: #ff8a7a; }
:root[data-theme="dark"] .code-input { background: #0e1511; color: #eaf0e8; border-color: #2d4033; }
:root[data-theme="dark"] .code-input:focus { border-color: #8cc063; box-shadow: 0 0 0 3px rgba(140, 192, 99, 0.2); }
:root[data-theme="dark"] .code-submit { background: #2f5d3a; }
:root[data-theme="dark"] .auth-divider,
:root[data-theme="dark"] .footer-links a,
:root[data-theme="dark"] .nav-card-arrow { color: #6f7f73; }
:root[data-theme="dark"] .auth-divider::before,
:root[data-theme="dark"] .auth-divider::after { background: #26362b; }
:root[data-theme="dark"] .demo-btn { background: #16211a; color: #c9d6cb; border-color: #26362b; }
:root[data-theme="dark"] .nav-card { background: #16211a; border-color: #26362b; }
:root[data-theme="dark"] .nav-card.featured { border-color: #6a9f3a; background: linear-gradient(135deg, #1b2c20 0%, #16211a 70%); }
:root[data-theme="dark"] .welcome-msg { color: #8cc063; }
:root[data-theme="dark"] .privacy-consent { background: #1b281f; border-color: #26362b; }
:root[data-theme="dark"] .privacy-text { color: #b8c5ba; }
:root[data-theme="dark"] .privacy-text a { color: #8cc063; }
:root[data-theme="dark"] .privacy-checkbox-label { color: #d8e2d9; border-color: #26362b; }
:root[data-theme="dark"] .privacy-checkbox-label:active { background: #1f2e24; }
:root[data-theme="dark"] .privacy-checkbox-label input[type="checkbox"] { accent-color: #6a9f3a; }
:root[data-theme="dark"] .install-hint { background: #2e2716; color: #e6dcc4; }
/* privacy page (datenschutz.html) */
:root[data-theme="dark"] .privacy-content { background: #16211a; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35); }
:root[data-theme="dark"] .privacy-content h2,
:root[data-theme="dark"] .privacy-content h3,
:root[data-theme="dark"] .privacy-content strong { color: #eaf0e8; }
:root[data-theme="dark"] .privacy-content p,
:root[data-theme="dark"] .privacy-content li { color: #b8c5ba; }
:root[data-theme="dark"] .privacy-content a,
:root[data-theme="dark"] .privacy-back { color: #8cc063; }
:root[data-theme="dark"] .privacy-meta { color: #6f7f73; }
@media (hover: hover) and (pointer: fine) {
  :root[data-theme="dark"] .code-submit:hover { background: #3a7045; }
  :root[data-theme="dark"] .nav-card:hover { border-color: #8cc063; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); }
  :root[data-theme="dark"] .nav-card:hover .nav-card-arrow,
  :root[data-theme="dark"] .footer-links a:hover { color: #8cc063; }
  :root[data-theme="dark"] .demo-btn:hover { background: #1b281f; border-color: #3a5040; }
}

/* ── Settings: ⚙ top left, fullscreen dialog with ✕ (js/landing.js) ── */
.settings-gear {
  position: absolute;   /* scrolls away with the page header – never floats over the cards */
  top: calc(10px + env(safe-area-inset-top));
  left: 12px;
  z-index: 30;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #e4ddce;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #647067;
  cursor: pointer;
  touch-action: manipulation;
}
.settings-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  background: #f5f7f4;
  padding: calc(8px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  animation: settings-in 0.2s ease-out;
}
.settings-sheet[hidden] { display: none !important; }
.settings-sheet-inner { max-width: 520px; margin: 0 auto; }
.settings-sheet-head {
  position: sticky;
  top: calc(-8px - env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 12px;
  background: #f5f7f4;
}
.settings-title { margin: 0; font-size: 1.15rem; font-weight: 700; color: #1a3a1a; }
.settings-close {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid #e4ddce;
  border-radius: 50%;
  background: #fff;
  color: #1c2a20;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.settings-sheet .settings {
  margin: 0;
  padding: 4px 16px;
  border-top: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
body.settings-open { overflow: hidden; }
@keyframes settings-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
:root[data-theme="dark"] .settings-gear { background: rgba(22, 33, 26, 0.85); border-color: #26362b; color: #a9b8ad; }
:root[data-theme="dark"] .settings-sheet,
:root[data-theme="dark"] .settings-sheet-head { background: #0e1511; }
:root[data-theme="dark"] .settings-title { color: #eaf0e8; }
:root[data-theme="dark"] .settings-close { background: #16211a; border-color: #26362b; color: #eaf0e8; }
:root[data-theme="dark"] .settings-sheet .settings { background: #16211a; box-shadow: none; }
.settings-close:focus:not(:focus-visible) { outline: none; }

/* ── Ringo top right (start page) – his speech bubble comes from js/ringo-app.js ── */
.ringo-top {
  position: absolute;   /* like ⚙: part of the page header */
  top: calc(9px + env(safe-area-inset-top));
  right: 12px;
  z-index: 30;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  filter: drop-shadow(0 3px 8px rgba(28, 42, 32, 0.18));
}

/* ── Loading screen instead of the code entry while a remembered sign-in is checked (index.html) ── */
.signin-loading { display: none; padding: 18px 0 8px; text-align: center; color: #647067; }
.signin-loading p { margin: 10px 0 0; font-size: 0.92rem; }
.signing-in .signin-loading { display: block; }
/* code entered: Ringo aims while the code is checked (js/landing.js) – only the form is swapped */
.code-checking .signin-loading { display: block; }
.code-checking #code-form,
.code-checking #code-error { display: none !important; }
.signing-in #code-form,
.signing-in #auth-heading,
.signing-in #code-error { display: none !important; }
:root[data-theme="dark"] .signin-loading { color: #9aaa9e; }

/* ══ Start page for visitors (index.html): hero with the app in motion, features, how to get access ══════════════
   Look of the club's posts (SGSocial docs/BRAND.md): green radial gradient, target rings, one gold ring, Montserrat.
   Hidden for signed-in shooters/admins and while a remembered sign-in is checked – they see only their cards. */
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
:root { --lp-gold: #e7c46a; --lp-gold-ink: #1c3322; --lp-forest: #1f3d27; --lp-cream: #f6ead0; }

.signed-in .visitor-only,
.signing-in .visitor-only { display: none !important; }
/* the ⚙ settings only for signed-in shooters/admins (logout, install, light/dark) – visitors have nothing to set */
:root:not(.signed-in):not(.signing-in) .settings-gear { display: none; }
.member-head { display: none; }
.signed-in .member-head,
.signing-in .member-head { display: flex; flex-direction: column; align-items: center; }

.hero {
  position: relative;
  flex-shrink: 0;   /* body is a fixed-height flex column – with overflow: hidden the hero would shrink away */
  width: 100%;
  overflow: hidden;
  color: #fff;
  padding: calc(15px + env(safe-area-inset-top)) 20px 30px;   /* club line on the height of Ringo top right */
  background: radial-gradient(130% 85% at 72% 64%, #4f8e5b 0%, #2d5b37 32%, #1c3a24 62%, #0b170f 100%);
}
.hero::before {   /* target rings */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.065) 0 1px, transparent 1px 36px);
}
.hero::after {    /* the gold ring */
  content: "";
  position: absolute;
  left: 72%;
  top: 64%;
  width: 470px;
  height: 470px;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(231, 196, 106, 0.55);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; }
.hero-club { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-right: 56px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.92); }
.hero-club img { width: 34px; height: auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3)); }
.hero-over {    /* the club subtitle (12.11.2026) – normal case, it is a sentence */
  margin-top: 22px;
  font: 600 0.95rem/1.3 'Montserrat', sans-serif;
  color: var(--lp-gold);
}
.hero-title { margin-top: 10px; font: 700 2.45rem/1.04 'Montserrat', sans-serif; letter-spacing: -0.02em; }
.hero-title span { display: block; }
.hero-sub { margin-top: 14px; max-width: 30em; font-size: 1rem; line-height: 1.45; color: rgba(255, 255, 255, 0.88); }
.hero-copy > * { animation: lp-rise 0.7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.2s; }
.hero-copy > :nth-child(5) { animation-delay: 0.28s; }
.hero-copy > :nth-child(6) { animation-delay: 0.36s; }
@keyframes lp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* the big gold "Demo" button – used in the hero and below the features */
.hero-cta { display: flex; flex-direction: column; gap: 10px; max-width: 370px; margin-top: 22px; }
.cta-demo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px 13px 14px;
  border-radius: 12px;
  background: var(--lp-gold);
  color: var(--lp-gold-ink);
  text-decoration: none;
  font: 700 1.1rem/1.15 'Montserrat', sans-serif;
  touch-action: manipulation;
  transition: transform 0.15s;
}
.cta-demo small { display: block; margin-top: 3px; font: 600 0.76rem/1.2 'Open Sans', sans-serif; opacity: 0.78; }
.cta-demo:active { transform: scale(0.98); }
.cta-play { position: relative; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--lp-gold-ink); }
.cta-play::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 13px;
  border-left: 14px solid var(--lp-gold);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
/* as visible as the demo button – most visitors are members with an access card */
.cta-code {
  display: block;
  padding: 11px 16px;
  border-radius: 12px;
  background: #fff;
  color: #1f3d27;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  touch-action: manipulation;
}
.cta-code small { display: block; font-weight: 500; font-size: 0.74rem; color: #4a5a4f; }
/* the code field in the hero – PC only (below) */
.hero-code { display: none; max-width: 370px; margin-top: 14px; }
.hero-code label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: #fff; }
.hero-code-row { display: flex; gap: 8px; }
.hero-code input {
  flex: 1; min-width: 0; padding: 12px 14px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 12px;
  font: 600 1.05rem/1.2 'Open Sans', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #1c2a20; background: #fff;
}
.hero-code input::placeholder { letter-spacing: 0.06em; text-transform: none; color: #8a968d; font-weight: 400; }
.hero-code button { padding: 0 18px; border: 0; border-radius: 12px; background: #e7c46a; color: #1f3d27; font: 700 1rem/1 'Montserrat', sans-serif; cursor: pointer; }
/* "Code eingeben" top right for visitors (next to Ringo) */
.top-code {
  position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 68px; z-index: 30;
  padding: 7px 14px; border-radius: 8px; border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff; font: 700 0.86rem/1.2 'Montserrat', sans-serif; text-decoration: none; touch-action: manipulation;
}
/* narrow phones: the big white button in the hero is right there – the header has no room next to the club name */
@media (max-width: 599px) { .top-code { display: none; } }
/* visitors: only one Ringo – the one in the hero ("Probier die Demo!", 84 px); the one top right is the install hint for
   signed-in members (js/ringo-app.js), "Code eingeben" moves to the corner (12.11.2026) */
html:not(.signed-in):not(.signing-in) .ringo-top { display: none; }
html:not(.signed-in):not(.signing-in) .top-code { right: 16px; }
.float-bubble { font-size: 0.9rem; padding: 9px 14px; }
.hero-next { margin-top: 16px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.85); }
.hero-next[hidden] { display: none; }
.hero-next b { color: #fff; font-weight: 700; }
.hero-next-name { display: block; padding-left: 16px; color: rgba(255, 255, 255, 0.7); }
.hero-next-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lp-gold);
  vertical-align: 1px;
}

/* two phones: front plays the app (img/landing-ergebnisse.mp4), back shows the record book */
.hero-visual { position: relative; height: 450px; margin: 22px auto 0; max-width: 420px; }
.phone {
  position: absolute;
  width: 200px;
  padding: 8px;
  border-radius: 36px;
  background: linear-gradient(145deg, #2d332f, #131714);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.09);
}
.phone img,
.phone video { display: block; width: 100%; height: auto; aspect-ratio: 520 / 1146; border-radius: 29px; background: #f3ede0; object-fit: cover; }
.phone-front { left: 50%; top: 0; z-index: 2; --t: translateX(-30%) rotate(3deg); transform: var(--t); animation: lp-float 6s ease-in-out infinite; }
.phone-back { left: 50%; top: 46px; --t: translateX(-102%) rotate(-7deg) scale(0.86); transform: var(--t); filter: brightness(0.9); animation: lp-float 7s ease-in-out -2s infinite; }
@keyframes lp-float { 0%, 100% { transform: var(--t) translateY(0); } 50% { transform: var(--t) translateY(-10px); } }
.float-ringo { position: absolute; z-index: 3; right: 2%; bottom: 0; display: flex; align-items: center; gap: 8px; flex-direction: row-reverse; }
.float-ringo .ringo-avatar { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.float-bubble {
  position: relative;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--lp-cream);
  color: #3d3214;
  font: 700 0.8rem/1.2 'Montserrat', sans-serif;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  animation: lp-rise 0.6s 1.2s both;
}
.float-bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  margin-top: -7px;
  border: 7px solid transparent;
  border-right: 0;
  border-left: 9px solid var(--lp-cream);
}

@media (min-width: 860px) {
  .hero { padding: calc(40px + env(safe-area-inset-top)) 40px 64px; }
  .hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 32px; }
  .hero-title { font-size: 3.5rem; }
  .hero-visual { height: 590px; margin: 0; max-width: none; }
  .phone { width: 262px; border-radius: 44px; padding: 10px; }
  .phone img, .phone video { border-radius: 35px; }
  .hero::after { width: 640px; height: 640px; }
}

/* features and steps (light page below the hero) */
.features, .steps { width: 100%; }
.section-over {
  margin: 32px 0 12px;
  font: 700 1.2rem/1.25 'Montserrat', sans-serif;
  color: #1c2a20;
}
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  border: 1px solid #e4ddce;
  border-radius: 14px;
  background: #fff;
  color: #1c2a20;
  text-decoration: none;
  touch-action: manipulation;
  transition: border-color 0.15s;
}
.feature:active { transform: scale(0.98); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 1.35rem; color: #fff; }
.f-ergebnisse { background: #2f5d3a; }
.f-rekorde { background: #d9ad4c; }
.f-ringo { background: var(--lp-cream); box-shadow: inset 0 0 0 2px #c8962e; }
.f-teilen { background: #2f6aa6; }
.feature-title { font: 700 0.95rem/1.2 'Montserrat', sans-serif; }
.feature-text { font-size: 0.8rem; line-height: 1.38; color: #647067; }
.cta-wide { margin-top: 14px; }
.cta-wide.cta-demo, .cta-wide .cta-demo { box-shadow: none; }
.step-list { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e4ddce;
  border-radius: 14px;
  background: #fff;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #4a5a4f;
}
.step-list b { display: block; margin-bottom: 2px; font: 700 0.95rem/1.25 'Montserrat', sans-serif; color: #1c2a20; }
.step-no {
  flex-shrink: 0;
  width: 26px;
  color: #2f5d3a;
  font: 700 1.6rem/1 'Montserrat', sans-serif;
}
.visit {
  margin-top: 16px;
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--lp-forest);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  line-height: 1.45;
}
.visit-title { margin-bottom: 6px; font: 700 1.05rem/1.2 'Montserrat', sans-serif; color: var(--lp-gold); }
.visit b { color: #fff; }
.visit-times { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.visit-times { gap: 4px 0; }
.visit-times span { font-size: 0.86rem; }
.visit-times span + span::before { content: "·"; margin: 0 8px; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 599px) {    /* narrow: one per line – a wrapped dot would start the next line */
  .visit-times { flex-direction: column; }
  .visit-times span + span::before { content: none; }
}
.visit-where { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
.visit-links { margin-top: 8px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
.visit a { color: var(--lp-gold); font-weight: 600; }
.features + .steps + .auth-section,
.steps + .auth-section { margin-top: 28px; }
.signed-in .auth-section,
.signing-in .auth-section { margin-top: 0; }

@media (hover: hover) and (pointer: fine) {
  .feature:hover { border-color: #b9c9b6; }
  .cta-code:hover { background: #f4efe2; }
  .top-code:hover { background: rgba(255, 255, 255, 0.12); }
}

:root[data-theme="dark"] .section-over { color: #eaf0e8; }
:root[data-theme="dark"] .step-no { color: #8cc063; }
:root[data-theme="dark"] .feature,
:root[data-theme="dark"] .step-list li { background: #16211a; border-color: #26362b; box-shadow: none; color: #d8e2d9; }
:root[data-theme="dark"] .feature-title,
:root[data-theme="dark"] .step-list b { color: #eaf0e8; }
:root[data-theme="dark"] .feature-text,
:root[data-theme="dark"] .step-list li { color: #9aaa9e; }
:root[data-theme="dark"] .visit { background: #16211a; border: 1px solid #26362b; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .phone, .float-bubble { animation: none !important; }
}

/* ── PC (many seniors use the app there): larger type, the light part below the hero in the width of the hero ── */
@media (min-width: 1000px) {
  html { font-size: 125%; }
  html[data-font="large"] { font-size: 140% !important; }
  .landing-container { max-width: 1100px; }
  /* the code field right in the hero instead of the button that jumps down */
  .hero-code { display: block; }
  .cta-code { display: none; }
  .landing-container > * { max-width: 620px; }
  .landing-container > .features, .landing-container > .steps { max-width: 1100px; }
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .step-list { flex-direction: row; }
  .step-list li { flex: 1; }
  /* signed in: last evening and next club evening above the page cards (js: showMemberInfo) */
  .member-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 14px; width: 100%; margin-top: 18px; }
  .member-info[hidden] { display: none; }
  .mi-card { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 16px; border: 1px solid #e4ddce;
    background: #fff; color: #1c2a20; text-decoration: none; }
  .mi-last { background: #1f3d27; border-color: #1f3d27; color: #fff; }
  .mi-title { font: 600 0.82rem/1.2 'Open Sans', sans-serif; color: #8a6510; }
  .mi-last .mi-title { color: #e7c46a; }
  .mi-big { font: 700 1.05rem/1.25 'Montserrat', sans-serif; }
  .mi-line, .mi-sub { font-size: 0.86rem; line-height: 1.35; }
  .mi-sub { color: #647067; }
  :root[data-theme="dark"] .mi-card:not(.mi-last) { background: #16211a; border-color: #26362b; color: #eaf0e8; }
  :root[data-theme="dark"] .mi-sub { color: #9aaa9e; }
  /* signed in: the page cards sit in the sign-in box – it gets the width for two cards side by side */
  .signed-in .landing-container > .auth-section { max-width: 920px; }
  .nav-cards.visible { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
