/* Skat Punkte Rechner, Website-Bereich auf chrostudios.com
   Farben aus der App und aus appstore-redirect/index.html uebernommen.
   Keine externen Schriften oder Skripte: laedt schnell, kein Cookiebanner noetig. */

:root {
  color-scheme: dark;
  --bg: #15110C;
  --surface: #1F1912;
  --surface-2: #262019;
  --text: #F5EFE6;
  --muted: #A99C8A;
  --accent: #E0A542;
  --accent-text: #1A1410;
  --border: rgba(255, 255, 255, 0.09);
  --gruen: #7BC96F;
  --rot: #FF6B6B;
  --radius: 12px;
  --max: 780px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 64px;
}

a { color: var(--accent); }
a:hover { color: #F0BC63; }

h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(21px, 3.4vw, 26px);
  line-height: 1.3;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
h3 { font-size: 19px; margin: 24px 0 8px; }

p { margin: 0 0 16px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.lead { font-size: 20px; color: var(--muted); }

.kopf {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.kopf .marke {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
}
.kopf .logo {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  flex: none;
}
.kopf nav { margin-left: auto; font-size: 15px; }
.kopf nav a { margin-left: 16px; text-decoration: none; }

.karte {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}

.knopf {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 10px;
  border: 0;
  font-size: 17px;
  cursor: pointer;
}
.knopf:hover { background: #F0BC63; color: var(--accent-text); }
.knopf.sekundaer {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }

/* App-Hinweis, auf jeder Unterseite gleich */
.app-box {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0 16px;
}
.app-box h2 { margin-top: 0; }

/* Formular */
.feld { margin-bottom: 18px; }
.feld > label { display: block; font-weight: 600; margin-bottom: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
  font-size: 16px;
  user-select: none;
  min-height: 44px;
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:hover { border-color: var(--muted); }
.chip.an {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  font-weight: 600;
}

.zahl { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.zahl button {
  width: 46px; height: 46px;
  font-size: 22px; line-height: 1;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.zahl button:hover { border-color: var(--accent); }
.zahl output { font-size: 22px; font-weight: 700; min-width: 40px; text-align: center; }

input[type="number"] {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 18px;
  width: 120px;
}

/* Ergebnis */
.ergebnis {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 24px;
}
.punkte { font-size: clamp(40px, 9vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.punkte.plus { color: var(--gruen); }
.punkte.minus { color: var(--rot); }
.punkte-label { color: var(--muted); font-size: 15px; margin-top: 6px; }
.rechenweg { margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.rechenweg li { padding: 7px 0; border-top: 1px solid var(--border); }
.rechenweg li:first-child { border-top: 0; }

table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.tabelle-scroll { overflow-x: auto; margin: 16px 0; }

footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 15px;
}
footer a { margin-right: 16px; }

.hinweis { color: var(--muted); font-size: 15px; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding: 20px 16px 48px; }
  .kopf nav a { margin-left: 12px; }
}
