/* ==========================================================================
   1. URSPRÜNGLICHES DESIGN (BESTEHENDE SEITEN & SIDEBAR)
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #0f172a;
  color: white;
}

/* Layout Container */
.layout {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 240px;
  background: #111827; /* dunkles modernes blau */
  color: white;
  padding: 60px 20px 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

/* Links */
.sidebar a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 10px;
  transition: 0.2s ease;
}

/* Hover */
.sidebar a:hover {
  background: rgba(167,139,250,0.15);
  color: #c4b5fd;
  transform: translateX(4px);
}

.sidebar.open {
  transform: translateX(0);
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
}

/* Hamburger */
.hamburger {
  position: fixed;
  top: 10px;
  left: 10px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  color: #a78bfa;
}

/* Content */
.content {
  flex: 1;
  padding: 20px;
}

/* Navbar (optional alt) */
.navbar {
  background: #222;
  padding: 15px;
  display: flex;
  gap: 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover {
  color: orange;
}

/* Image */
.small-image {
  width: 200px;
  height: auto;
  margin: 10px 0;
}

/* Center */
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero */
.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.8));
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.overlay-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 72px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  line-height: 1.6;
  opacity: .9;
}

.server-ip {
  margin-top: 20px;
  color: #a78bfa;
  font-size: 18px;
}

/* Download Button (einheitlich!) */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 35px;
  padding: 16px 34px;
  border-radius: 14px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  box-shadow: 0 10px 30px rgba(124,58,237,.4);
  transition: 0.25s ease;
}

.download-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(124,58,237,.55);
}

.download-btn:active {
  transform: scale(0.97);
}

.download-btn::before {
  content: "⬇";
  font-size: 18px;
}

/* Sections */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
}

.container h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 42px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.card {
  background: #1e293b;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.05);
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  background: #263449;
}

.card h3 {
  margin-bottom: 12px;
  color: #8b5cf6;
}

.card p {
  opacity: .9;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #1e293b;
  border-radius: 15px;
  overflow: hidden;
}

th, td {
  padding: 18px;
  text-align: left;
}

th {
  background: #7c3aed;
}

tr:nth-child(even) {
  background: #243247;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px;
  opacity: .7;
}

/* Utilities */
.red {
  color: #ef4444;
}

.legal-page {
  max-width: 850px;
  margin: 80px auto;
  padding: 40px;
  background: #1e293b;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  line-height: 1.7;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Headings */
.legal-page h1 {
  font-size: 42px;
  margin-bottom: 25px;
  text-align: center;
}

.legal-page h2 {
  margin-top: 35px;
  font-size: 22px;
  color: #a78bfa;
}

.legal-page h3 {
  margin-top: 20px;
  font-size: 18px;
  color: #c4b5fd;
}

/* Text */
.legal-page p {
  margin: 10px 0;
  opacity: 0.9;
}

/* Lists */
.legal-page ul {
  margin: 10px 0 10px 20px;
}

.legal-page li {
  margin: 6px 0;
  opacity: 0.9;
}

/* Links */
.legal-page a {
  color: #a78bfa;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* Address */
.legal-page address {
  font-style: normal;
  opacity: 0.85;
  line-height: 1.6;
  margin: 10px 0;
}

/* Mobile Responsiveness for Old Elements */
@media (max-width: 768px) {
  .legal-page {
    margin: 40px 15px;
    padding: 25px;
  }
  .legal-page h1 {
    font-size: 32px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero p {
    font-size: 17px;
  }
}


/* ==========================================================================
   2. NEUE ERWEITERUNGEN (NUR FÜR DIE MINECRAFT-PLUGIN-MAIN-PAGE)
   ========================================================================== */

/* Abstandhalter für die Buttons in deiner .hero Sektion */
.hero .btn-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Neue Basis für Plattform-Buttons (verhindert Konflikte mit .download-btn) */
.platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  color: white !important; /* Erzwingt weiße Schriftfarbe */
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.platform-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Modrinth, GitHub & Discord Farben */
.btn-modrinth { background: #00af5c; box-shadow: 0 4px 12px rgba(0, 175, 92, 0.2); }
.btn-github   { background: #24292e; border: 1px solid rgba(255,255,255,0.1); }
.btn-discord  { background: #5865f2; box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2); }

/* Grid-System speziell für deine Plugins (behebt das Überlappen aus grafik.png) */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin: 30px 0 50px 0;
  text-align: left; /* Überschreibt zentrierten Text aus Hero */
}

/* Neue eigene Kachel-Klasse, damit .card der anderen Seiten heile bleibt */
.plugin-card {
  background: #1e293b;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px; 
  transition: transform 0.25s, background 0.25s;
}

.plugin-card:hover {
  transform: translateY(-5px);
  background: #243247;
}

.plugin-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #a78bfa;
}

.plugin-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1; /* Schiebt die Buttons automatisch sauber ans Kartenende */
}

/* Button-Anordnung innerhalb der Plugin-Karten */
.plugin-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plugin-card-actions .platform-btn {
  padding: 10px 14px;
  font-size: 14px;
}

/* Minecraft Tags (Version & Software) */
.tag-group {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #94a3b8;
}

.tag-version {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
}

/* Eigene Info-Box-Klasse für den Text unter den Plugins */
.plugin-info-box {
  background: #1e293b;
  padding: 40px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .05);
  margin-top: 50px;
  clear: both;
  text-align: left;
}

.plugin-info-box h3 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 15px;
}