/* Reset & Basis */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #eee;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Header */
.sticky-header {
  background-color: #1a1a1a; /* fallback */
  background-image: url("/images/Minecraft-long-Icon5.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 0.3rem 0;
  position: sticky;
  top: 0;
  z-index: 100;

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 60px;
  width: auto;
}

.container {
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-header h1 {
  font-size: 1.8rem;
  color: #e7eb05b9;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #e7eb05b9;
}

/* Main */
main {
  flex: 1;
  width: 95%;
  max-width: 1550px;
  margin: 1rem auto 4rem;
}

/* Hero Video Section */
.hero-video-section {
  position: relative;
  height: 700px;
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
}

.video-wrapper {
  width: 1400px;
  height: 700px;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
  filter: brightness(1);
  border-radius: 12px;
}

.hero-content {
  max-width: 600px;
  color: #fff;
  padding-left: 1rem;
  padding-right: 2rem;
}

.hero-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.btn-primary {
  background-color: #e7eb05b9;
  color: #121212;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 10px rgb(193, 202, 13);
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #e7eb05b9;
  box-shadow: 0 6px 15px rgba(8, 74, 28, 0.8);
}

/* Features Section */
.features-section h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #e7eb05b9;
  text-align: center;
}

/* Alte Features-Liste (als Liste) */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.features-list li {
  background-color: #1f1f1f;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  font-size: 1rem;
  line-height: 1.4;
  color: #ddd;
}

/* Neue Features-Liste mit Buttons (Links) */
.features-section .buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  padding: 1rem;
  justify-content: center;
  text-align: center;
}

.features-section .buttons .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding: 1rem;
  background-color: #262626;
  color: #e7eb05b9;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
  transition: all 0.3s ease;
  font-weight: 600;
  gap: 0.5rem;
}

.features-section .buttons .btn-primary:hover {
  background-color: #e7eb05;
  color: #121212;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(76, 175, 80, 0.5);
}

/* Accordion */
.accordion {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.accordion-item + .accordion-item {
  border-top: 1px solid #333;
}

.accordion-header {
  background-color: #1f1f1f;
  color: #e7eb05;
  cursor: pointer;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.accordion-header:hover,
.accordion-header[aria-expanded="true"] {
  background-color: #2a2a2a;
}

/* Accordion content mit Slide & Fade */
.accordion-content {
  background-color: #1f1f1f;
  padding: 1rem 1.5rem;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(20px);
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
}

.accordion-header[aria-expanded="true"] + .accordion-content {
  opacity: 1;
  transform: translateX(0);
}

/* Suchfeld */
#searchRules-container,
#searchFactionRules-container {
  margin-bottom: 1rem;
  text-align: center;
}

input[type="search"] {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 1px solid #555;
  background-color: #1f1f1f;
  color: #eee;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.icon {
  color: initial !important; /* stoppt Vererbung */
  font-family:
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.9em;
  margin-right: 6px;
}

input[type="search"]:focus {
  outline: none;
  border-color: #e7eb05b9;
  box-shadow: 0 0 8px #e7eb05;
}

/* Scroll To Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 80px;
  right: 30px;
  background-color: #e7eb05b9;
  color: #121212;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 1000;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

/* Footer */
footer {
  background-color: #121212;
  color: #888;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.text-columns {
  display: flex;
  gap: 2rem;
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto 4rem;
  color: #eee;
}

.text-columns .column {
  flex: 1;
  font-family:
    "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* Deine Schriftart */
  background-color: #1f1f1f;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.text-columns h3 {
  color: #e7eb05b9;
  margin-bottom: 1rem;
}

.centered-title {
  text-align: center; /* Text mittig */
  font-size: 1rem; /* Schriftgröße */
  margin: 20px auto; /* Abstand oben/unten + horizontal zentriert */
  padding: 10px 20px; /* etwas Innenabstand für die Box */
  max-width: 400px; /* begrenzte Breite */
  background-color: #141313; /* Hintergrundfarbe für den kleinen Bereich */
  color: #ce7800b9; /* Textfarbe passend zum Design */
  border-radius: 8px; /* abgerundete Ecken */
  font-weight: 600; /* leicht fetter Text */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5); /* optional schöner Schatten */
}

/* ======================
   🌌 GALERIE DESIGN
====================== */

.gallery-header {
  text-align: center;
  padding: 40px 20px 20px;
  background: linear-gradient(180deg, #0d0d0d, #121212);
}

.gallery-header h1 {
  font-size: 2.5rem;
  color: #e7eb05b9;
  margin-bottom: 10px;
}

.gallery-header p {
  color: #aaa;
  font-size: 1.1rem;
}

.gallery-container {
  width: 95%;
  max-width: 1400px;
  margin: 40px auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* Einzelnes Bild */
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

/* Hover Effekt */
.gallery-grid img:hover {
  transform: scale(1.3);
  box-shadow: 0 50px 100px rgba(231, 235, 5, 0.6);
}
