/* ==========================================================
   managerspiele.net – Hauptstylesheet
   ========================================================== */

:root {
  --rasen: #1f5e36;
  --rasen-hell: #276b40;
  --kreide: #f3f6ee;
  --tafel: #16201a;
  --amber: #ffb21a;
  --tribuene: #b0c4de;   /* Hommage an den alten Seitenhintergrund */
  --tinte: #1b2a21;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --text: "Barlow", "Segoe UI", Arial, sans-serif;
  --led: "VT323", "Courier New", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tinte);
  background: var(--kreide);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  background: var(--rasen);
  color: var(--kreide);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem clamp(1rem, 4vw, 2.5rem);
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .02em;
  text-decoration: none;
}
.kopf nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  margin-left: 1.25rem;
  opacity: .85;
}
.kopf nav a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Spielfeld + Anzeigetafel ---------- */
.spielfeld {
  background:
    repeating-linear-gradient(90deg, var(--rasen) 0 70px, var(--rasen-hell) 70px 140px);
  padding: clamp(1.25rem, 3.5vw, 2.25rem) clamp(1rem, 4vw, 2.5rem);
  position: relative;
}
.spielfeld::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  border-left: 2px solid rgba(243,246,238,.35);
}
.spielfeld::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(34vw, 220px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(243,246,238,.35);
  border-radius: 50%;
}
.tafel {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  background: var(--tafel);
  border: 5px solid #3a463e;
  border-radius: 6px;
  box-shadow: 0 10px 0 -5px #2b352f, 0 20px 36px rgba(0,0,0,.35);
  padding: clamp(.8rem, 2.5vw, 1.3rem);
  text-align: center;
  color: var(--amber);
  font-family: var(--led);
  text-shadow: 0 0 8px rgba(255,178,26,.55);
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.5px);
  background-size: 5px 5px;
}
.tafel .zeile-klein {
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  margin: 0;
  letter-spacing: .08em;
}
.tafel h1 {
  font-family: var(--led);
  font-weight: 400;
  font-size: clamp(2.4rem, 10vw, 4.25rem);
  line-height: .95;
  margin: .15rem 0 .4rem;
  letter-spacing: .04em;
}
.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid #2f3a33;
  padding-top: .4rem;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
}
.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: laufen 22s linear infinite;
}
@keyframes laufen { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker span { animation: none; padding-left: 0; white-space: normal; }
}

.anstoss {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 1.25rem;
}
.knopf {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  padding: .55rem 1.75rem;
  background: var(--kreide);
  color: var(--rasen);
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 5px 0 #c9d1c2;
}
.knopf:hover { background: #fff; }
.knopf:active { transform: translateY(3px); box-shadow: 0 2px 0 #c9d1c2; }
.anstoss p {
  color: var(--kreide);
  margin: .6rem auto 0;
  max-width: 34rem;
}

/* ---------- Inhalt ---------- */
main {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}
h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 .5rem;
  color: var(--rasen);
}
.einleitung { margin: 0 0 2rem; }
.einleitung p { margin: 0 0 .9rem; }
.einleitung p:last-child { margin-bottom: 0; }

.tabellen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.liga h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0;
  padding: .5rem .9rem;
  background: var(--tribuene);
  border-radius: 4px 4px 0 0;
}
.liga ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 2px solid var(--tribuene);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}
.liga li {
  padding: .6rem .9rem;
  border-top: 1px solid #dde5ee;
}
.liga li:first-child { border-top: 0; }
.liga li:nth-child(even) { background: #f8faf6; }

.liga a {
  display: block;
  color: var(--rasen);
  font-weight: 600;
  margin: -.6rem -.9rem;
  padding: .6rem .9rem;
  text-decoration: none;
}
.liga a:hover { color: var(--rasen); background: #e9f0e6; }
.liga .folgt { color: #77837b; }
.liga .folgt small { float: right; font-size: .85rem; }

/* ---------- Spieleseiten ---------- */
.innen {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.spiel-kopf {
  background: repeating-linear-gradient(90deg, var(--rasen) 0 70px, var(--rasen-hell) 70px 140px);
  color: var(--kreide);
  padding: 1.1rem 0 1.2rem;
}
.brotkrumen { margin: 0; font-size: .95rem; opacity: .85; }
.brotkrumen a::after { content: " /"; }
.spiel-kopf h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.05;
  margin: .1rem 0 0;
}
.spiel-menue {
  background: var(--tribuene);
  border-bottom: 3px solid #93a9c6;
}
.spiel-menue .innen {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.spiel-menue a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  padding: .3rem .7rem;
  border-radius: 4px;
}
.spiel-menue a:hover { background: rgba(255,255,255,.55); }
.spiel-menue a[aria-current="page"] { background: var(--rasen); color: var(--kreide); }
.spiel-inhalt { padding-top: clamp(1.75rem, 4vw, 2.5rem); }
.spiel-inhalt p { margin: 0 0 1rem; }
.spiel-inhalt h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--rasen);
  margin: 2rem 0 .5rem;
}
.steckbrief {
  display: grid;
  grid-template-columns: max-content 1fr;
  margin: 1rem 0;
  border: 2px solid var(--tribuene);
  border-radius: 4px;
}
.steckbrief dt, .steckbrief dd {
  margin: 0;
  padding: .5rem .9rem;
  border-top: 1px solid #dde5ee;
}
.steckbrief dt { font-weight: 600; background: #e8eef5; }
.steckbrief dt:first-of-type, .steckbrief dt:first-of-type + dd { border-top: 0; }
.quellen { margin: 0; padding-left: 1.2rem; }
.quellen a { color: var(--rasen); }
@media (max-width: 560px) {
  .steckbrief { grid-template-columns: 1fr; }
  .steckbrief dd { border-top: 0; padding-top: 0; }
}
.schritte { margin: 0 0 1rem; padding-left: 1.4rem; }
.schritte li { margin-bottom: .35rem; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: .05rem .4rem;
  font-family: var(--display);
  font-weight: 800;
  text-align: center;
  background: var(--kreide);
  border: 1px solid #93a9c6;
  border-bottom-width: 3px;
  border-radius: 4px;
}
.tabelle-rahmen {
  overflow-x: auto;
  margin: 1rem 0 .5rem;
  border: 2px solid var(--tribuene);
  border-radius: 4px;
}
.wertungen { width: 100%; border-collapse: collapse; }
.wertungen th, .wertungen td {
  padding: .5rem .9rem;
  text-align: left;
  white-space: nowrap;
  border-top: 1px solid #dde5ee;
}
.wertungen th {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--tribuene);
  border-top: 0;
}
.wertungen tbody tr:nth-child(even) { background: #f8faf6; }
.wertungen td:last-child { color: var(--rasen); }
.hinweis { font-size: .95rem; color: #55625a; }
.spiel-inhalt blockquote {
  margin: 1rem 0;
  padding: .75rem 1.1rem;
  background: #e8eef5;
  border-left: 5px solid var(--rasen);
  border-radius: 0 4px 4px 0;
}
.spiel-inhalt blockquote p {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
}
.spiel-inhalt blockquote cite { font-style: normal; font-size: .9rem; color: #55625a; }
.spiel-inhalt a { color: var(--rasen); }
.spiel-inhalt code {
  font-family: Consolas, "Courier New", monospace;
  font-size: .92em;
  background: #e8eef5;
  padding: .05rem .3rem;
  border-radius: 3px;
}
.spiel-inhalt pre {
  overflow-x: auto;
  margin: .5rem 0 1rem;
  padding: .75rem 1rem;
  background: var(--tafel);
  color: var(--amber);
  border-radius: 4px;
}
.spiel-inhalt pre code { background: none; padding: 0; color: inherit; font-size: .95rem; }
.faq {
  border: 2px solid var(--tribuene);
  border-radius: 4px;
  margin-bottom: .6rem;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  padding: .7rem 1rem;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2rem;
  font-family: var(--display);
  font-weight: 800;
  color: var(--rasen);
}
.faq[open] summary::before { content: "–"; }
.faq[open] summary { border-bottom: 1px solid #dde5ee; }
.faq > div { padding: .8rem 1rem .2rem 2.2rem; }
.spiel-inhalt h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 1.25rem 0 0;
}
.training td:first-child { font-weight: 600; }
.leer { color: #77837b; font-style: italic; }

/* ---------- Mitmachen ---------- */
.mitmachen {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  background: var(--tribuene);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem 1.5rem;
  align-items: center;
}
.mitmachen h2 { grid-column: 1 / -1; margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.mitmachen p { margin: 0; max-width: 60ch; }
.mitmachen .knopf { background: var(--rasen); color: var(--kreide); box-shadow: 0 5px 0 #143d24; }
.mitmachen .knopf:hover { background: var(--rasen-hell); }
@media (max-width: 560px) {
  .mitmachen { grid-template-columns: 1fr; }
  .mitmachen .knopf { text-align: center; }
}

/* ---------- Fuß ---------- */
footer {
  margin-top: auto;
  background: var(--tinte);
  color: #c8d2c9;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  font-size: .95rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}
footer a { color: var(--kreide); }

/* ---------- Handy ---------- */
@media (max-width: 560px) {
  .kopf { flex-direction: column; gap: .15rem; }
  .kopf nav a { margin: 0 .6rem; }
  .spielfeld { background: repeating-linear-gradient(90deg, var(--rasen) 0 44px, var(--rasen-hell) 44px 88px); }
  .knopf { display: block; }
}
