/* Grundlayout: alles zentriert, dunkler Hintergrund */
body {
  font-family: "Verdana", Arial, sans-serif;
  margin: 0;
  padding: 2rem 0;
  background-color: #2b2b2b;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Breite der Seite (Header, Inhalt, Footer) */
.page-wrapper {
  width: 750px;         /* hier kannst du 600–800 wählen */
  max-width: 95vw;
}

/* Header mit MC-Werkbank.de */
header.site-header {
  width: 100%;
  background: #101010 url("minecraft_pixel_bg.png");
  background-size: 32px 32px;
  box-shadow: 0 0 0 4px #000;
  margin-bottom: 0.5rem;
  text-align: center;
  padding: 1.2rem 0.5rem;
  box-sizing: border-box;
}

.site-title {
  font-size: 2.2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffe082;
  text-shadow:
    3px 3px 0 #000,
    -1px 0 0 #000,
    0 1px 0 #000;
  margin: 0;
  font-weight: 900;
  image-rendering: pixelated;
}

/* Hauptcontainer: Sidebar + Content */
.container {
  display: flex;
  width: 100%;
  background: #1a1a1a;
  box-shadow: 0 0 0 4px #000;
  border-radius: 0;
}

/* Sidebar im Minecraft-Look */
nav.sidebar {
  width: 210px;
  background: linear-gradient(#3c8f3c, #2f6b2f);
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-sizing: border-box;
  border-right: 4px solid #000;
  image-rendering: pixelated;
}

nav.sidebar h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 0.5rem 0;
}

nav.sidebar a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 0;
  border: 2px solid transparent;
  background: rgba(0, 0, 0, 0.15);
  display: block;
  font-size: 0.9rem;
}

nav.sidebar a:hover,
nav.sidebar a.active {
  border-color: #ffd54f;
  background: rgba(0, 0, 0, 0.4);
}

/* Content-Bereich */
main.content {
  flex: 1;
  padding: 1.5rem 2rem;
  box-sizing: border-box;
  background: #262626 url("minecraft_pixel_bg.png");
  background-size: 32px 32px;
  color: #f5f5f5;
  image-rendering: pixelated;
}

h1, h2 {
  color: #ffe082;
  text-shadow: 2px 2px 0 #000;
  margin-top: 0;
}

/* Tabellen kantig */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  background: rgba(0,0,0,0.3);
}

table th,
table td {
  border: 2px solid #111;
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
}

table th {
  background: #336633;
}

/* Footer unter dem Container, gleiche Breite */
footer.footer {
  width: 100%;
  margin-top: 0.5rem;
  background: #111;
  color: #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  box-sizing: border-box;
  box-shadow: 0 0 0 4px #000;
}

footer.footer nav.footer-nav a {
  color: #ccc;
  text-decoration: none;
  margin-right: 1rem;
}

footer.footer nav.footer-nav a:hover {
  text-decoration: underline;
}

/* kleines zentriertes Cookie-Banner */
#cookie-banner {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

.cookie-box {
  max-width: 420px;
  background: #222;
  color: #f5f5f5;
  border: 4px solid #ffd54f;
  box-shadow: 0 0 0 4px #000;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  image-rendering: pixelated;
}

.cookie-box p {
  margin: 0 0 0.8rem 0;
}

.cookie-box button {
  background: #43a047;
  border: 3px solid #1b5e20;
  color: #fff;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-weight: 700;
  border-radius: 0;
}

.cookie-box button:hover {
  background: #66bb6a;
}

/* Responsive */
@media (max-width: 900px) {
  .page-wrapper {
    width: 95vw;
  }
  .container {
    flex-direction: column;
  }
  nav.sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 4px solid #000;
  }
  main.content {
    padding: 1rem;
  }
}
