/* ============================================================================
   Schachstube — Vorabseite.
   Derselbe Stil wie die spätere Anwendung, komplett in CSS gezeichnet:
   Bretterwand, Eichenbalken, Pergament, Messing. Kein einziges Bild.
   ========================================================================== */

@font-face { font-family: "Cinzel";
  src: url("schriften/cinzel-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-display: swap; }
@font-face { font-family: "EB Garamond";
  src: url("schriften/eb-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond";
  src: url("schriften/eb-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-display: swap; }
@font-face { font-family: "EB Garamond";
  src: url("schriften/eb-garamond-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono";
  src: url("schriften/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap; }

:root {
  --pergament:   #F1E4C6;
  --pergament-2: #E3D0A8;
  --tinte:       #382613;
  --tinte-blass: #7A6039;
  --tinte-linie: rgba(75, 51, 22, .3);

  --messing:      #C08B33;
  --messing-hell: #F0C877;
  --messing-tief: #7A5416;
  --siegel:       #8E2B22;

  --antiqua: "Cinzel", Georgia, serif;
  --lauf: "EB Garamond", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --holzwand:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.55) 0 3px, rgba(255,225,180,.05) 3px 5px, transparent 5px 172px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.055) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(94deg, rgba(255,220,170,.035) 0 1px, transparent 1px 46px),
    linear-gradient(178deg, #462E1D, #2C1B10 55%, #1D1108);

  --balken:
    repeating-linear-gradient(0deg,
      rgba(0,0,0,.30) 0 2px, rgba(255,220,170,.05) 2px 3px, transparent 3px 26px),
    repeating-linear-gradient(88deg, rgba(255,225,185,.05) 0 1px, transparent 1px 30px),
    linear-gradient(#6B4526, #4A2E18 60%, #35200F);

  --papier:
    radial-gradient(52% 38% at 16% 12%, rgba(150,110,55,.13), transparent 62%),
    radial-gradient(46% 36% at 86% 82%, rgba(140,100,48,.15), transparent 62%),
    repeating-linear-gradient(46deg, rgba(160,125,70,.045) 0 1px, transparent 1px 5px),
    linear-gradient(168deg, var(--pergament), var(--pergament-2));
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--lauf);
  font-size: 18px;
  line-height: 1.6;
  color: #E6D3AE;
  background: #24170D;
  background-image: var(--holzwand);
  background-attachment: fixed;
  -webkit-text-size-adjust: 100%;
}

/* Kerzenschein von oben, Schatten in den Ecken */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% -6%, rgba(255,190,105,.26), transparent 62%),
    radial-gradient(38% 30% at 8% 30%, rgba(255,170,80,.12), transparent 65%),
    radial-gradient(130% 95% at 50% 45%, transparent 52%, rgba(10,5,2,.62));
}

/* Feines Korn, sonst wirken reine Verläufe wie Kunststoff */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .30; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'>\
<filter id='k'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/>\
</filter><rect width='140' height='140' filter='url(%23k)' opacity='.5'/></svg>");
}

.stube {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 28px) 48px;
}

/* ---------------------------------------------------------- Wirtshausschild */

.schild {
  position: relative;
  margin: clamp(54px, 10vw, 96px) auto 36px;
  padding: clamp(16px, 3.4vw, 28px) 24px clamp(20px, 4vw, 32px);
  text-align: center;
  border-radius: 5px;
  background-image: var(--balken);
  border: 2px solid #2A1A0C;
  box-shadow:
    inset 0 2px 0 rgba(255,222,175,.28),
    inset 0 -3px 6px rgba(0,0,0,.5),
    inset 0 0 0 6px rgba(0,0,0,.18),
    0 22px 34px -20px rgba(0,0,0,.9);
}
.schild::before, .schild::after {
  content: "";
  position: absolute;
  top: clamp(-50px, -8vw, -86px);
  width: 5px;
  height: clamp(50px, 8vw, 86px);
  background: repeating-linear-gradient(180deg,
    var(--messing-hell) 0 3px, var(--messing-tief) 3px 5px, #2A1A0C 5px 8px);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(0,0,0,.6);
}
.schild::before { left: 15%; }
.schild::after  { right: 15%; }

.schild h1 {
  margin: 0;
  font-family: var(--antiqua);
  font-weight: 600;
  font-size: clamp(26px, 6.4vw, 46px);
  letter-spacing: .16em;
  color: #F3DCA9;
  text-shadow:
    0 -1px 0 rgba(0,0,0,.75),
    0 1px 0 rgba(255,225,175,.30),
    0 0 26px rgba(255,190,105,.35);
}
.schild p {
  margin: 10px 0 0;
  font-style: italic;
  font-size: 15px;
  color: #C6A776;
}
.schild i {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--messing-hell), var(--messing) 55%, #3A2609);
  box-shadow: 0 1px 2px rgba(0,0,0,.7);
}
.schild i:nth-of-type(1) { top: 9px; left: 11px; }
.schild i:nth-of-type(2) { top: 9px; right: 11px; }
.schild i:nth-of-type(3) { bottom: 9px; left: 11px; }
.schild i:nth-of-type(4) { bottom: 9px; right: 11px; }

/* ------------------------------------------------------------------ Zettel */

.zettel {
  position: relative;
  margin-bottom: 26px;
  padding: 28px 26px 26px;
  color: var(--tinte);
  border-radius: 2px;
  background-image: var(--papier);
  box-shadow:
    inset 0 0 46px rgba(140,100,48,.30),
    inset 0 0 0 1px rgba(120,88,42,.22),
    0 16px 30px -18px rgba(0,0,0,.85);
  clip-path: polygon(
    0.5% 0.7%, 26% 0.1%, 58% 1.0%, 84% 0.2%, 99.5% 0.9%,
    99.9% 28%, 99.2% 55%, 99.8% 82%, 99.4% 99.3%,
    72% 99.9%, 41% 99.0%, 14% 99.8%, 0.6% 99.1%,
    0.1% 74%, 0.8% 47%, 0.2% 22%);
}
/* Messingnagel oben in der Mitte */
.zettel::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  width: 13px; height: 13px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, var(--messing-hell), var(--messing) 52%, #40290A);
  box-shadow: 0 3px 5px rgba(90,60,20,.55);
}
.zettel--gross { padding-bottom: 30px; }

.marke {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #94743F;
}

.zettel h2 {
  font-family: var(--antiqua);
  font-weight: 600;
  font-size: clamp(20px, 4vw, 25px);
  letter-spacing: .04em;
  line-height: 1.25;
  margin: 10px 0 16px;
  color: #4B3316;
}
.zettel h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #94743F;
  margin: 24px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--tinte-linie);
}

.fliess { margin: 0 0 14px; }
.fliess:last-child { margin-bottom: 0; }

.punkte { list-style: none; margin: 0; padding: 0; }
.punkte li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-bottom: 1px dashed var(--tinte-linie);
}
.punkte li:last-child { border-bottom: 0; }
.punkte li::before {
  content: "♟";
  position: absolute;
  left: 2px;
  top: 8px;
  color: var(--messing-tief);
  font-size: 14px;
}
.punkte b { font-weight: 600; }
.punkte--schlicht li { padding-left: 0; border-bottom: 0; padding-top: 2px; padding-bottom: 2px; }
.punkte--schlicht li::before { content: none; }

.warnung {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-left: 3px solid var(--siegel);
  background: rgba(142,43,34,.10);
  border-radius: 0 3px 3px 0;
  font-size: 15px;
  color: #7A2318;
}
.hinweis {
  margin: 20px 0 0;
  font-style: italic;
  font-size: 15px;
  color: var(--tinte-blass);
}

code {
  font-family: var(--mono);
  font-size: .9em;
  background: rgba(120,88,42,.14);
  border-radius: 3px;
  padding: 1px 5px;
}

.fussnote {
  text-align: center;
  font-style: italic;
  color: #C6A776;
  margin: 32px 0 0;
}

.fussleiste {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  font-size: 15px;
}
.fussleiste a {
  color: #C3A377;
  text-decoration: none;
  border-bottom: 1px solid rgba(192,139,51,.4);
  padding-bottom: 1px;
}
.fussleiste a:hover { color: var(--messing-hell); border-bottom-color: var(--messing-hell); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .zettel { padding: 24px 20px; }
}
