/* Eingangsseite und Anleitung. Nüchtern, gut lesbar, auch auf dem Handy. */

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

:root {
  --grund: #0f1d16;
  --flaeche: #182c22;
  --rand: #2c4738;
  --schrift: #e9f2ec;
  --akzent: #4ce863;
  --gedaempft: #9db3a6;
}

body {
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--grund);
  color: var(--schrift);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 64rem;
  margin: 0 auto 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rand);
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--akzent); }
.unterzeile { color: var(--gedaempft); }

.zustand { font-size: .9rem; color: var(--gedaempft); }
.zustand.getrennt { color: #ffb3b3; }

main { max-width: 64rem; margin: 0 auto; }

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.kachel {
  display: block;
  padding: 1.4rem 1.5rem;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: .9rem;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}

.kachel:hover { border-color: var(--akzent); transform: translateY(-2px); }
.kachel:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.kachel.gross { grid-column: 1 / -1; background: linear-gradient(160deg, #1d3a2b, #16291f); }

.kachel .zeichen {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: .8rem;
  border-radius: .6rem;
  background: rgba(76, 232, 99, .14);
  color: var(--akzent);
  font-size: 1.2rem;
}

.kachel h2 { font-size: 1.2rem; margin-bottom: .3rem; }
.kachel p { color: var(--gedaempft); font-size: .95rem; }

.kachel.aus { opacity: .45; pointer-events: none; }
.kachel .marke {
  display: inline-block;
  margin-top: .6rem;
  font-size: .8rem;
  color: #ffb3b3;
}

.ueberblick {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rand);
  border-radius: .9rem;
}

.ueberblick h2 { font-size: 1rem; margin-bottom: .9rem; color: var(--gedaempft); font-weight: 600; }

dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: .9rem 1.5rem;
}

dt { font-size: .82rem; color: var(--gedaempft); }
dd { font-size: 1.05rem; }

.hinweis {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: #3a2a12;
  border: 1px solid #6b5220;
  border-radius: .7rem;
  color: #f5e3c2;
}

.fuss {
  max-width: 64rem;
  margin: 3rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rand);
  color: var(--gedaempft);
  font-size: .88rem;
}

code {
  padding: .1rem .35rem;
  background: rgba(255, 255, 255, .08);
  border-radius: .25rem;
  font-family: ui-monospace, monospace;
  font-size: .9em;
}

/* ── Anleitung ───────────────────────────────────────────────────────────── */

.zurueck {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--akzent);
  text-decoration: none;
}

.zurueck:hover { text-decoration: underline; }

article { max-width: 48rem; margin: 0 auto; }
article h2 { margin: 2.5rem 0 .8rem; font-size: 1.3rem; color: var(--akzent); }
article h3 { margin: 1.5rem 0 .4rem; font-size: 1.05rem; }
article p, article li { color: #d5e3da; }
article ul, article ol { margin: .6rem 0 .6rem 1.4rem; }
article li { margin-bottom: .4rem; }

table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
th, td { padding: .55rem .6rem; text-align: left; border-bottom: 1px solid var(--rand); }
th { color: var(--gedaempft); font-size: .85rem; font-weight: 600; }

kbd {
  display: inline-block;
  padding: .1rem .45rem;
  border: 1px solid var(--rand);
  border-radius: .3rem;
  background: rgba(255, 255, 255, .06);
  font-family: ui-monospace, monospace;
  font-size: .9em;
}
