/* Grundlayout */
body {
  background: linear-gradient(rgba(30,30,40,0.8), rgba(30,30,40,0.8)),
    url("assets/tetris.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #c9d1d9;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Projekt-Header */
.project-header {
  padding-top: 120px; /* Abstand zum Header */
  padding-bottom: 16px;
  text-align: center;
}

.project-header h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 16px;
}

.project-desc {
  font-size: 1.2rem;
  color: #c9d1d9;
  margin-bottom: 0;
  max-width: 800px;
  margin: 0 auto 0 auto; /* zentriert mit Abstand links/rechts */
  padding-left: 24px;
  padding-right: 24px;
}

/* Quellcode-Link */
.project-code {
  background: rgba(30,30,40,0.3); /* durchsichtig */
  border: 2px solid white;        /* weißer Rand */
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin: 24px auto;
  max-width: 800px;
  text-align: left;  
}

.project-code h2 {
  color: white;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.project-code ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.project-code a {
  color: #58a6ff;
  text-decoration: underline;
  font-weight: bold;
  font-size: 1.1rem;
}

.project-code a:hover {
  color: #79c0ff;
}

/* Installation */
.project-install {
  background: rgba(30,30,40,0.3); /* durchsichtig */
  border: 2px solid white;        /* weißer Rand */
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin: 24px auto;
  max-width: 800px;
  text-align: left;  
}

.project-install h2 {
  color: white;
  font-size: 1.5rem;
}

.project-install ol {
  margin-left: 20px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.project-install li {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.project-install code {
  background: #21262d;
  color: #58a6ff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 1rem;
}

/* Spiel starten */
.project-start {
  background: rgba(30,30,40,0.3);
  border: 2px solid white;
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin: 24px auto;
  width: 800px;
  max-width: 95vw;
  text-align: left;
}
.project-start h2 {
  color: white;
  margin-bottom: 12px;
  font-size: 1.5rem;
}
.project-start code {
  background: #21262d;
  color: #58a6ff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 1.1rem;
}

/* Steuerung */
.project-controls {
  background: rgba(30,30,40,0.3); /* durchsichtig */
  border: 2px solid white;        /* weißer Rand */
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin: 24px auto;
  max-width: 800px;
  text-align: left;  
}

.project-controls h2 {
  color: white;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.project-controls table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.project-controls th,
.project-controls td {
  padding: 8px;
  text-align: left;
  font-size: 1.1rem;
}

.project-controls th {
  color: #58a6ff;
}

/* Features */
.project-features {
  background: rgba(30,30,40,0.3); /* durchsichtig */
  border: 2px solid white;        /* weißer Rand */
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin: 24px auto;
  max-width: 800px;
  text-align: left;  
}

.project-features h2 {
  color: white;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.project-features ul {
  list-style: none;
  padding-left: 0;
}

.project-features li {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* Code-Übersicht */
.project-code-overview {
  background: rgba(30,30,40,0.3); /* durchsichtig */
  border: 2px solid white;        /* weißer Rand */
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin: 24px auto;
  max-width: 800px;
  text-align: left;  
}

.project-code-overview h2 {
  color: white;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.project-code-overview ul {
  margin-bottom: 8px;
}

.project-code-overview code {
  background: #21262d;
  color: #58a6ff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 1.1rem;
}

/* Highscore-System */
.project-highscore {
  background: rgba(30,30,40,0.3); /* durchsichtig */
  border: 2px solid white;        /* weißer Rand */
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin: 24px auto;
  max-width: 800px;
  text-align: left;  
}

.project-highscore h2 {
  color: white;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.project-highscore ul {
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* Fehlerbehebung */
.project-troubleshooting {
  background: rgba(30,30,40,0.3); /* durchsichtig */
  border: 2px solid white;        /* weißer Rand */
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin: 24px auto;
  max-width: 800px;
  text-align: left;  
}

.project-troubleshooting h2 {
  color: white;
  margin-bottom: 12px;
}
.project-troubleshooting ul {
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* Lizenz */
.project-license {
  background: rgba(30,30,40,0.3); /* durchsichtig */
  border: 2px solid white;        /* weißer Rand */
  border-radius: 12px;
  box-shadow: none;
  padding: 24px;
  margin: 24px auto;
  max-width: 800px;
  text-align: left;  
}

.project-license h2 {
  color: white;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.project-license p {
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-header,
  .project-code,
  .project-install,
  .project-controls,
  .project-features,
  .project-code-overview,
  .project-highscore,
  .project-troubleshooting,
  .project-license {
    max-width: 98vw;
    padding: 18px;
    margin: 18px auto;
  }
  .project-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .project-header h1 {
    font-size: 1.3rem;
  }
  .project-desc {
    font-size: 1rem;
  }
  .project-code,
  .project-install,
  .project-start,
  .project-controls,
  .project-features,
  .project-code-overview,
  .project-highscore,
  .project-troubleshooting,
  .project-license {
    padding: 10px;
    margin: 10px auto;
    width: 85vw; /* Breite auf 95% des Viewports */
    max-width: 85vw;
  }
  .project-controls th,
  .project-controls td {
    font-size: 0.9rem;
    padding: 6px;
  }
}