/* System21 – site styles. Brand: mint #5ca595, yellow #fecc00. */

:root {
  --mint: #5ca595;
  --mint-dark: #4a8a7c;
  --mint-deep: #3a6e63;
  --yellow: #fecc00;
  --ink: #1f2a28;
  --muted: #5c6b68;
  --bg: #f6f8f7;
  --card: #ffffff;
  --line: #e2e8e6;
  --hit: #fecc00;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(31, 42, 40, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eeec;
    --muted: #9fb0ac;
    --bg: #131a18;
    --card: #1c2522;
    --line: #2b3733;
    --shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  background: var(--mint);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-badge {
  background: #fff;
  color: #111;
  font-weight: 700;
  padding: 0 7px;
  border: 3px solid #9fb3ae;
  line-height: 1.35;
}

.site-nav { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 16px; }

.site-nav a {
  color: #eafaf5;
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: #fff; text-decoration: underline; }

.lang-switch details { position: relative; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-menu {
  position: absolute;
  right: 0;
  margin-top: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 140px;
  overflow: hidden;
}
.lang-menu a {
  padding: 8px 14px;
  text-decoration: none;
  color: var(--ink);
}
.lang-menu a:hover { background: var(--mint); color: #fff; }
.lang-menu a.active { font-weight: 700; }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--mint) 0%, var(--mint-deep) 100%);
  color: #fff;
  text-align: center;
  padding: 72px 20px 84px;
}

.kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.9rem;
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.2;
  margin: 0 auto 18px;
  max-width: 820px;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #eafaf5;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-privacy { margin-top: 26px; font-size: 0.9rem; color: #d2ece5; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--yellow); color: #111; box-shadow: var(--shadow); }
.btn-primary:hover { background: #ffd83d; }
.btn-primary:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; }

.btn-yellow { background: var(--yellow); color: #111; box-shadow: var(--shadow); }
.btn-yellow:hover { background: #ffd83d; }

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
  opacity: 0.9;
}
.btn-ghost:hover { opacity: 1; }

.hero .btn-ghost { color: #fff; }
.section .btn-ghost { color: var(--mint-dark); }

.btn-danger { color: #b4554d; }

.btn-big { padding: 14px 28px; font-size: 1.1rem; }

/* ---------- sections ---------- */

.section { max-width: 980px; margin: 0 auto; padding: 56px 20px; }

.section h2 { font-size: 1.9rem; margin: 0 0 10px; }

.section-sub { color: var(--muted); margin-top: 0; }

.section-alt {
  max-width: none;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: 940px; margin-left: auto; margin-right: auto; }
.section-alt > h2, .section-alt > h3, .section-alt > p { display: block; }

/* ---------- tool ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 20px;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  font-size: 0.95rem;
  margin-right: 6px;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.chip {
  border: 1.5px solid var(--mint);
  background: transparent;
  color: var(--mint-dark);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { background: var(--mint); color: #fff; }
.chip-active { background: var(--mint); color: #fff; }

.chip-custom { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.chip-custom input {
  width: 80px;
  padding: 7px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
}

.pick-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.count { font-weight: 700; color: var(--mint-dark); }
.pick-actions { display: flex; gap: 8px; }

.ball-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.ball {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.1s ease, transform 0.08s ease;
}
.ball:hover { border-color: var(--mint); }
.ball:active { transform: scale(0.94); }
.ball-on { background: var(--mint); border-color: var(--mint); color: #fff; }
.ball-draw { background: var(--yellow); border-color: var(--yellow); color: #111; }

.ball-grid-s { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
.ball-s { font-size: 0.9rem; }

/* ---------- tips ---------- */

.tips { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 18px; }
.extra-note { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 0.95rem; }

.tip-row { display: flex; align-items: center; gap: 6px; }

.tip-label {
  width: 42px;
  text-align: right;
  padding-right: 6px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tip-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tip-hit { background: var(--hit); border-color: var(--hit); color: #111; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; }

.copied { color: var(--mint-dark); font-weight: 600; }

.result { margin: 16px 0; padding: 14px 18px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.result-intro { font-weight: 700; margin: 0 0 8px; }
.result-muted { color: var(--muted); margin: 0; }
.result-list { margin: 0; padding-left: 20px; }
.result-big { font-weight: 700; color: var(--mint-dark); }
.result-donate { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.result-donate .btn { margin-top: 8px; padding: 6px 14px; font-size: 0.95rem; }

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.step-card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.step-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-icon { font-size: 1.7rem; }

/* ---------- guarantee table ---------- */

.table-title { margin-top: 34px; }

.table-wrap { overflow-x: auto; }

.gtable { border-collapse: collapse; width: 100%; max-width: 940px; margin: 10px auto 0; }

.gtable th, .gtable td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.gtable th { background: var(--mint); color: #fff; }
.gtable tr:nth-child(even) td { background: var(--bg); }
.gtable .jackpot { font-weight: 700; color: var(--mint-dark); }

.math-note { color: var(--muted); font-size: 0.92rem; margin-top: 18px; }

/* ---------- donate ---------- */

.section-donate {
  text-align: center;
  background: linear-gradient(160deg, var(--mint) 0%, var(--mint-deep) 100%);
  color: #fff;
  max-width: none;
  padding: 64px 20px;
}
.section-donate p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- contact ---------- */

.contact-form { max-width: 640px; margin-top: 20px; }
.contact-form p { margin: 0 0 14px; }
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.contact-form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 5px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--mint); }
.contact-form .contact-note { color: var(--muted); font-size: 0.88rem; }
.contact-form .contact-status { margin: 0; font-weight: 600; color: var(--mint-dark); }
.contact-form .contact-status.is-error { color: #b4554d; }
/* Honeypot: für Menschen unsichtbar, Bots füllen es aus */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- notes & footer ---------- */

.notes { color: var(--muted); padding-left: 20px; }
.notes li { margin-bottom: 8px; }

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer a { color: var(--mint-dark); }
.footer-tagline { font-weight: 600; }
.footer-disclaimer { margin-top: 14px; }
.footer-copy { margin-top: 4px; font-size: 0.85rem; }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px; }
.legal a { color: var(--mint-dark); }

/* ---------- print: only the system ---------- */

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-nav, .hero, .section:not(.section-tool), .site-footer,
  .no-print, #s21-setup, .section-sub, .section-donate, .section-notes, .section-contact, .section-alt { display: none !important; }
  .section-tool { padding: 0; }
  .section-tool h2::after { content: " – system21.app"; font-size: 0.8em; color: #555; }
  .card { border: none; box-shadow: none; padding: 0; }
  .tip-ball { width: 32px; height: 32px; border: 1px solid #999; background: #fff !important; color: #000 !important; }
  .tips { gap: 3px; }
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; font-size: 0.9rem; }
  .hero { padding: 48px 16px 56px; }
  .section { padding: 40px 16px; }
  .card { padding: 16px; }
  .ball-grid { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
  .tip-ball { width: 34px; height: 34px; }
}
