/* ======================================
   Body & globale Einstellungen
====================================== */
body {
  background: #111;
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin-bottom: 10px;
  font-size: 2em;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}



/* Footer */
.site-footer {
  text-align: center;
  color: #aaa;
  padding: 20px 0;
  background: #111;
  font-size: 0.9em;
}
.footer-links a {
  color: #ff4d4d;
  text-decoration: none;
  margin: 0 8px;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.7);
}
.modal-content {
  background: #222;
  color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
}
.close {
  color: #ff4d4d;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover { color: #fff; }

/* Menü oben */
nav {
  width: 100%;
  background: #222;
  padding: 10px 0;
  text-align: center;
  font-size: 1.2em;
}
nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.2s;
}
nav a:hover { background: #444; }
nav a.active {
  background: #ff4d4d;
  font-weight: bold;
}

#breadcrumb {
  color: #aaa;
  font-size: 0.9em;
  margin-bottom: 15px;
}

/* Statusanzeige */
#status {
  font-size: 2em;
  font-weight: bold;
  margin: 20px 0;
}

/* ======================================
   Content 
====================================== */
.content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

/* ======================================
   Game Container
====================================== */

.game-container {
  display: inline-block;
  width: 800px;          /* Einheitliche Breite */
  height: 650px;     /* Einheitliche Mindesthöhe */
  background: #1e1e1e;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255,255,255,0.05);
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  caret-color: transparent;   /* Kein blinkender Cursor */
}
.game-container * {
  caret-color: transparent;
  user-select: none;
}

/* === Gemeinsames Box-Design für Header & Board === */
.game-header-box,
.game-board-box {
  background: #2a2a2a;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Header-Styling === */
.game-header-box h1 {
  margin: 0;
  font-size: 1.8em;
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.game-header-box #status {
  font-size: 1.2em;
  font-weight: 500;
  color: #fff;
  margin: 10px 0;
}

.game-header-box button {
  background: #444;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.game-header-box button:hover {
  background: #ff4d4d;
  transform: scale(1.05);
}

/* ======================================
   Werbebereiche
====================================== */
.ad-container {
  width: 160px;
  height: 700px;
  background: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #777;
  font-size: 0.8em;
}
.bottom-ad {
  width: 728px;
  height: 90px;
  background: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #777;
  margin-bottom: 20px;
}

/* Cookie-Banner */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  background: rgba(255,255,255,0.95);
  color: #222;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  font-family: system-ui, sans-serif;
  animation: fadeIn 0.6s ease-in-out;
}
.cookie-text {
  font-size: 0.95em;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.cookie-buttons button {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}
#accept-cookies { background: #4caf50; color: white; }
#accept-cookies:hover { background: #45a049; }
#decline-cookies { background: #f44336; color: white; }
#decline-cookies:hover { background: #d32f2f; }

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ======================================
   Responsive Einstellungen
====================================== */
@media (max-width: 1200px) {
  .content {
    flex-direction: column;
    align-items: center;
  }
  .ad-container { width: 300px; height: 250px; }
  .bottom-ad { width: 100%; }
}
@media (max-width: 768px) {
  .content {
    flex-direction: column;
    align-items: center;
  }
  .ad-container { width: 100%; height: auto; margin-bottom: 10px; }
  .game-container { width: 90%; min-height: 400px; }
}
