/* domi-games – gemeinsames Stylesheet. Nur Systemschriften, keine externen Ressourcen. */

:root {
  --pergament:      #F4E3C1;
  --pergament-hell: #FBF3E2;
  --braun:          #4A2E1A;
  --braun-mittel:   #7A5236;
  --wasser:         #2D7FB8;
  --wasser-dunkel:  #1C5A87; /* für Linktext: ausreichender Kontrast auf Pergament */
  --gold:           #C9962B;
  --gold-hell:      #E8C979;

  --schrift:        system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-titel:  ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;

  --radius:         18px;
  --breite:         60rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pergament);
  color: var(--braun);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--wasser-dunkel);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--braun);
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--schrift-titel);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 4.5vw, 1.75rem); }
h3 { font-size: 1.2rem; }

p,
ul {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--pergament-hell);
  border: 2px solid var(--gold);
  border-radius: 10px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Kopfzeile ─────────────────────────────────────────────── */

.kopf {
  background: var(--braun);
  border-bottom: 4px solid var(--gold);
  color: var(--pergament-hell);
}

.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.marke {
  font-family: var(--schrift-titel);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pergament-hell);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.marke:hover {
  color: var(--gold-hell);
}

.marke-punkt {
  color: var(--gold-hell);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nav a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: var(--pergament-hell);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover {
  background: rgba(244, 227, 193, 0.15);
  color: var(--pergament-hell);
}

.nav a[aria-current="page"] {
  background: var(--gold);
  color: var(--braun);
}

/* ── Inhalt ────────────────────────────────────────────────── */

main {
  flex: 1;
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.text {
  max-width: 42rem;
}

/* Karte mit Holz-/Goldrahmen: brauner Außenrand, goldene Innenlinie. */
.karte {
  background: var(--pergament-hell);
  border: 4px solid var(--braun-mittel);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 3px var(--gold-hell),
    inset 0 0 0 5px var(--gold),
    0 6px 14px rgba(74, 46, 26, 0.18);
  padding: 1.5rem 1.4rem;
  margin-bottom: 1.5rem;
}

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

.karten {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.karten .karte {
  margin-bottom: 0;
}

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

.plattform {
  margin: -0.3rem 0 0.8rem;
  color: var(--braun-mittel);
  font-weight: 600;
}

.status {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--wasser-dunkel);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.status-leise {
  background: transparent;
  color: var(--braun-mittel);
  border: 2px dashed var(--gold);
}

/* Startseite: Begrüßung mit Blubbi */
.willkommen {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.5rem;
}

.willkommen-bild {
  justify-self: center;
  width: 9rem;
  filter: drop-shadow(0 6px 8px rgba(28, 90, 135, 0.25));
}

@media (min-width: 40rem) {
  .willkommen {
    grid-template-columns: 1fr auto;
  }
  .willkommen-bild {
    width: 11rem;
  }
}

.knopf {
  display: inline-block;
  margin: 0.3rem 0.6rem 0.3rem 0;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--wasser-dunkel);
  border: 2px solid var(--gold);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.knopf:hover {
  background: var(--braun);
  color: #fff;
}

/* Rechtstexte: etwas ruhiger */
.recht h2 {
  margin-top: 1.8rem;
}

.recht h3 {
  margin-top: 1.2rem;
}

.recht address {
  font-style: normal;
}

.hinweis {
  border-left: 5px solid var(--wasser);
  background: var(--pergament-hell);
  padding: 0.8rem 1rem;
  border-radius: 0 10px 10px 0;
}

.stand {
  color: var(--braun-mittel);
  font-size: 0.95rem;
}

/* ── Fußzeile ──────────────────────────────────────────────── */

.fuss {
  background: var(--braun);
  border-top: 4px solid var(--gold);
  color: var(--pergament-hell);
}

.fuss-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2rem;
}

.fuss a {
  color: var(--pergament-hell);
}

.fuss a:hover {
  color: var(--gold-hell);
}

.fuss p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .knopf,
  .nav a {
    transition: background-color 0.15s ease, color 0.15s ease;
  }
}
