/* Gemeinsamer Look: alte Landkarte – vergilbtes Papier, Tinte, Messing. */
:root {
  --papier: #efe0b9;
  --papier-hell: #f6ecd2;
  --papier-dunkel: #d9c08a;
  --rand: #a9864a;
  --tinte: #3a2a18;
  --tinte-leise: #6e5a3e;
  --rot: #9e2a1e;
  --messing: #b8913f;
  --messing-hell: #e4c779;
  --messing-dunkel: #6f5420;
  --see: #c9d4bf;
  --schrift: 'Alegreya', Georgia, serif;
  --titel: 'IM Fell English SC', 'Alegreya SC', Georgia, serif;
  --ziffern: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--schrift);
  color: var(--tinte);
  background-color: var(--papier);
  /* Papierstruktur: feines Rauschen + Flecken + verbrannte Ränder */
  background-image:
    radial-gradient(ellipse at 50% 45%, rgba(255, 250, 230, .55) 0%, rgba(255, 250, 230, 0) 55%),
    radial-gradient(ellipse at 18% 82%, rgba(150, 105, 40, .16) 0, rgba(150, 105, 40, 0) 22%),
    radial-gradient(ellipse at 86% 14%, rgba(150, 105, 40, .14) 0, rgba(150, 105, 40, 0) 18%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(110, 70, 20, .38) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .15 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

h1, h2, h3, .titel { font-family: var(--titel); font-weight: 400; margin: 0; }

.knopf {
  font: inherit; font-family: var(--titel); font-size: 1.15rem; letter-spacing: .03em;
  color: var(--tinte); cursor: pointer;
  padding: .6em 1.3em; border-radius: .4em;
  border: 2px solid var(--tinte);
  background: linear-gradient(var(--papier-hell), var(--papier-dunkel));
  box-shadow: 0 2px 0 var(--tinte), 0 4px 10px rgba(60, 40, 10, .25);
  transition: transform .08s, box-shadow .08s;
  touch-action: manipulation;
}
.knopf:active { transform: translateY(2px); box-shadow: 0 0 0 var(--tinte), 0 2px 6px rgba(60, 40, 10, .25); }
.knopf:disabled { opacity: .45; cursor: default; transform: none; }
.knopf:focus-visible { outline: 3px dashed var(--rot); outline-offset: 3px; }

/* Siegel: rotes Wachs, für den wichtigsten Knopf */
.knopf.siegel {
  color: #f6e3c8; border-color: #5e140d;
  background: radial-gradient(circle at 35% 30%, #c84a37, #8f2116 70%);
  box-shadow: 0 2px 0 #5e140d, 0 4px 12px rgba(80, 10, 0, .35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}

.feld {
  font: inherit; font-size: 1.3rem; padding: .5em .7em; width: 100%;
  border: 2px solid var(--tinte); border-radius: .4em; color: var(--tinte);
  background: rgba(255, 252, 240, .7);
}
.feld:focus { outline: 3px solid var(--messing); }

.leise { color: var(--tinte-leise); }
.punkt { display: inline-block; width: .8em; height: .8em; border-radius: 50%; vertical-align: -.05em; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }

/* Kartusche: Schmuckrahmen um Titel und Karten */
.kartusche {
  position: relative; padding: 1.2em 1.6em; text-align: center;
  border: 2px solid var(--tinte);
  outline: 1px solid var(--tinte); outline-offset: 5px;
  background: rgba(250, 243, 222, .55);
}
.kartusche::before, .kartusche::after {
  content: '✦'; position: absolute; top: 50%; translate: 0 -50%; font-size: .9em; color: var(--tinte);
}
.kartusche::before { left: -.95em; }
.kartusche::after { right: -.95em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Sprachumschalter EN · DE */
.sprachwahl { display: inline-flex; border: 1.5px solid var(--tinte); border-radius: 2em; overflow: hidden; }
.sprachwahl button { font: inherit; font-family: var(--titel); font-size: .95rem; padding: .25em .8em; border: 0; background: transparent; color: var(--tinte); cursor: pointer; }
.sprachwahl button.an { background: var(--tinte); color: var(--papier-hell); }
