/* Gemeinsam für index.html, impressum.html und datenschutz.html.
   Bewusst ohne Webfonts und ohne fremde Quellen: diese Seiten laden nichts von
   Dritten, sonst stimmte die Datenschutzerklärung nicht mehr. */

:root {
  --grund: #f7f6f3;
  --flaeche: #ffffff;
  --tinte: #1d1b19;
  --tinte-leise: #5e5954;
  --kante: #e4e1dc;
  --akzent: #0d6e74;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #121212;
    --flaeche: #1b1b1a;
    --tinte: #f0eeea;
    --tinte-leise: #a9a49d;
    --kante: #2f2d2a;
    --akzent: #5cc3c8;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --grund: #121212;
  --flaeche: #1b1b1a;
  --tinte: #f0eeea;
  --tinte-leise: #a9a49d;
  --kante: #2f2d2a;
  --akzent: #5cc3c8;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}

.spalte {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: var(--akzent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Kopf und Fuß ----------------------------------------------------- */

.kopf {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.marke {
  color: var(--tinte);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.fuss {
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--kante);
  color: var(--tinte-leise);
  font-size: 0.9rem;
}

.fuss a {
  color: inherit;
}

/* --- Inhalt ------------------------------------------------------------ */

h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 3rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--kante);
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.4rem;
}

p,
ul,
dl {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

.leise {
  color: var(--tinte-leise);
}

.stand {
  color: var(--tinte-leise);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

address {
  font-style: normal;
}

/* Kasten oben: das Wichtigste in Kürze, und das Inhaltsverzeichnis. */
.kasten {
  background: var(--flaeche);
  border: 1px solid var(--kante);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}

.kasten > :last-child {
  margin-bottom: 0;
}

.kasten h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 1.05rem;
}

/* Steckbrief je Projekt: Begriff links, Erklärung rechts; am Handy untereinander. */
.fakten {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 1.5rem;
}

.fakten dt {
  font-weight: 600;
}

.fakten dd {
  margin: 0;
}

.fakten dd > ul {
  margin: 0;
}

@media (max-width: 560px) {
  .fakten {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .fakten dd + dt {
    margin-top: 0.85rem;
  }
}

/* Startseite: die Spiele als Karten. */
.projekte {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0;
}

.projekte li + li {
  margin-top: 0;
}

.projekte a {
  display: block;
  background: var(--flaeche);
  border: 1px solid var(--kante);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: var(--tinte);
  text-decoration: none;
}

.projekte a:hover {
  border-color: var(--akzent);
}

.projekte strong {
  display: block;
  font-size: 1.1rem;
}

.projekte span {
  color: var(--tinte-leise);
}
