/* Regelseiten (erzeugt von tool/build_site.dart aus site/assets/rules.css).
   Baut auf site.css auf: Tannengrün, Messing, Papier. */
:root {
  --card-ink: #1b1f1d;
  --card-red: #b3343a;
  --line: rgba(201, 164, 92, 0.35);
  --ok: #7cc79a;
  --no: #e5776b;
}

.crumbs {
  font-size: 0.92rem;
  color: rgba(243, 238, 227, 0.75);
  margin: -1rem 0 1.25rem;
}

.lead {
  font-size: 1.12rem;
}

.quick {
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.4rem 1.25rem 0.6rem;
  margin: 1.5rem 0;
}

.quick h2 {
  color: var(--green);
  margin-top: 1rem;
}

.quick-rules {
  padding-left: 1.4rem;
  margin: 0 0 0.6rem;
}

.quick-rules li {
  margin-bottom: 0.55rem;
}

.cta {
  background: var(--green-soft);
  border: 1px solid rgba(201, 164, 92, 0.5);
  border-radius: 14px;
  padding: 1rem 1.25rem 1.25rem;
  margin: 1.5rem 0 2rem;
}

.facts {
  display: grid;
  grid-template-columns: minmax(7rem, max-content) 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1.5rem;
}

.facts dt {
  font-weight: 600;
  color: var(--brass);
}

.facts dd {
  margin: 0;
}

.cards-table th,
.cards-table td {
  border-bottom: 1px solid var(--line);
}

.cards-table thead th {
  color: var(--brass);
  font-weight: 600;
}

.cards-table tbody th {
  font-weight: 400;
  width: 42%;
}

.row-label {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.hand {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  vertical-align: middle;
}

/* Kleine Spielkarte aus CSS, ohne Grafik. */
.pc {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 3.2rem;
  background: var(--paper);
  color: var(--card-ink);
  border: 1px solid #d6cdbb;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.05;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.pc.red,
.wish .red {
  color: var(--card-red);
}

.pc-r {
  font-size: 0.95rem;
}

.pc-s {
  font-size: 1.05rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.profile-note {
  font-size: 0.92rem;
  color: rgba(243, 238, 227, 0.75);
}

.variants {
  list-style: none;
  padding: 0;
}

.variants li {
  border-left: 3px solid var(--brass);
  padding: 0.1rem 0 0.1rem 0.9rem;
  margin-bottom: 1rem;
}

.variants h3 {
  margin: 0 0 0.2rem;
}

.badge {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05rem 0.35rem;
  margin-left: 0.3rem;
  white-space: nowrap;
}

.example {
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.2rem 1.25rem 1rem;
  margin-bottom: 1.25rem;
}

.ex-table {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.ex-label {
  font-size: 0.92rem;
  color: rgba(243, 238, 227, 0.75);
}

.wish {
  font-weight: 600;
}

.ex-options {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ex-option {
  min-height: 48px;
  min-width: 48px;
  padding: 0.4rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--green);
  color: var(--paper);
  font: inherit;
  cursor: pointer;
}

.ex-option:disabled {
  cursor: default;
}

.ex-option.is-ok {
  border-color: var(--ok);
}

.ex-option.is-no {
  border-color: var(--no);
}

.ex-word {
  display: inline-block;
  padding: 0 0.6rem;
  font-weight: 600;
}

.ex-feedback {
  min-height: 1.6em;
  font-weight: 600;
}

.ex-solution summary,
.faq summary {
  cursor: pointer;
  color: var(--brass);
  font-weight: 600;
}

.ex-solution li.ok strong {
  color: var(--ok);
}

.ex-solution li.no strong {
  color: var(--no);
}

.faq {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}

.faq p {
  margin: 0.5rem 0 0;
}

.games,
.game-list {
  list-style: none;
  padding: 0;
}

.games li {
  margin-bottom: 0.8rem;
}

.games a {
  font-weight: 600;
  margin-right: 0.4rem;
}

.game-list li {
  border-top: 1px solid var(--line);
  padding-top: 0.4rem;
}

.game-list h2 {
  margin-top: 0.8rem;
}

.first-rule {
  color: rgba(243, 238, 227, 0.8);
  font-size: 0.97rem;
}

.footer .langs {
  display: block;
  margin-top: 0.6rem;
}

.footer .fine {
  margin: 0.8rem auto 0;
  max-width: 36rem;
  font-size: 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Sprachwahl oben rechts: <details>, ohne JavaScript bedienbar. */
.langmenu {
  position: relative;
  font-size: 0.95rem;
}

.langmenu summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
  border: 1px solid rgba(201, 164, 92, 0.55);
  border-radius: 999px;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.langmenu summary::-webkit-details-marker {
  display: none;
}

.langmenu summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.langmenu[open] summary {
  background: var(--green-soft);
}

.langmenu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 10;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  min-width: 10rem;
  background: var(--green-soft);
  border: 1px solid rgba(201, 164, 92, 0.55);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.langmenu li {
  margin: 0;
}

.langmenu a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--paper);
  text-decoration: none;
}

.langmenu a:hover,
.langmenu a:focus-visible {
  background: var(--green);
  color: var(--brass);
}

.langmenu a[aria-current] {
  color: var(--brass);
  font-weight: 600;
}

/* Offizielle Store-Badges, unverändert eingebunden. */
.buttons {
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.store-badge img {
  display: block;
  width: auto;
}

.store-badge.app-store img {
  height: 40px;
}

/* Googles PNG hat transparenten Rand; größer gezeigt, wirkt es gleich groß
   wie das Apple-Badge. Der negative Rand gleicht den Abstand aus. */
.store-badge.google-play img {
  height: 52px;
  margin: -6px -7px;
}

/* Startseite */
.game-cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.game-cards li {
  display: flex;
}

/* Gleich hohe Karten; "Regeln lesen" sitzt bei allen unten auf einer Linie. */
.game-cards a {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  text-decoration: none;
}

.game-cards a:hover .game-more,
.game-cards a:focus-visible .game-more {
  text-decoration: underline;
}

.game-name {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--green);
}

.game-text {
  display: block;
  margin: 0.2rem 0 0.4rem;
}

.game-more {
  color: #6a4f14;
  font-weight: 600;
  margin-top: auto;
}

.why li {
  margin-bottom: 0.5rem;
}

@media (min-width: 40rem) {
  .game-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .cta,
  #ausprobieren,
  #weitere,
  .footer,
  .crumbs,
  .langmenu {
    display: none;
  }

  .quick,
  .example {
    border: 1px solid #999;
  }

  h2,
  .facts dt,
  .cards-table thead th {
    color: #000;
  }

  details > *:not(summary) {
    display: block;
  }
}
