main {
  flex-grow: 1;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #1f283e, #3a4f78);
  background-attachment: fixed;
  color: #ffffff;
  padding-top: 50px;
}

header {
  background-color: #2c3e50;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: top 0.3s ease-in-out;
  display: flex;
  align-items: center;
  padding: 5px 30px;
  box-sizing: border-box;
}

.logo-container img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.1) rotate(5deg);
}

nav {
  flex-grow: 1;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 25px 20px;
  font-size: 16px;
  transition: background-color 0.2s;
}

nav a:hover {
  background-color: #34495e;
}

.nav-hidden {
  top: -80px;
}

/* ==================
   About Section Styles
   ================== */

.about-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;

  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.about-image {
  flex: 1;
  max-width: 320px;
}

.about-image img {
  width: 100%;

  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-text {
  flex: 1;
  max-width: 600px;

  text-align: left;
}

.about-text h2 {
  font-size: 36px;
  margin-top: 0;
  margin-bottom: 20px;

  text-align: center;
}

.about-text p {
  font-size: 18px;
  line-height: 1.6;
}

/* ==================
   Partner Section Styles
   ================== */

.partner-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 60px 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-logo {
  flex: 1;
  max-width: 250px;
}

.partner-logo img {
  width: 100%;
  border-radius: 12px;
  box-sizing: border-box;
}

.partner-text {
  flex: 1;
  max-width: 600px;
  text-align: right;
}

.partner-text h2 {
  font-size: 36px;
  margin-top: 0;
}

.partner-text h3 {
  font-size: 24px;
  color: #a7c5ff;
}

.partner-text p {
  font-size: 18px;
  line-height: 1.6;
}

/* ==================
   Features Section Styles
   ================== */

.features-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 60px;
}

.features-section h2 {
  font-size: 36px;
  margin-bottom: 50px;
  text-align: center;
}

.features-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-card i {
  font-size: 48px;
  color: #a7c5ff;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
}

/* ==================
   Footer Styles
   ================== */

footer {
  padding: 40px 20px;
  margin-top: 60px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.2);
}

.social-icons {
  margin-bottom: 20px;
}

.social-icons a {
  font-size: 28px;
  color: #ffffff;
  margin: 0 15px;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #a7c5ff;
  transform: scale(1.2);
}

.copyright p {
  margin: 0;
  font-size: 14px;
  color: #dddddd;
}

/* ==================
   Server Section Styles
   ================== */

.server-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 60px;
}

.server-section h2 {
  font-size: 36px;
  margin-bottom: 50px;
  text-align: center;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.server-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.server-info {
  text-align: left;
}

.server-info h3 {
  margin: 0 0 5px 0;
  font-size: 20px;
}

.server-info p {
  margin: 0;
  font-size: 14px;
  color: #cccccc;
}

.connect-btn {
  background-color: #3498db;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s;
}

.connect-btn:hover {
  background-color: #2980b9;
}

/* ==================
   Team Page Styles
   ================== */

.team-intro {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
}

.team-intro h1 {
  font-size: 38px;
  margin-bottom: 20px;
}

.team-intro p {
  font-size: 18px;
  line-height: 1.7;
  color: #cccccc;
}

.team-section {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.team-member-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.team-member-card img {
  width: 150px;
  height: 150px;
  border-radius: 15px;

  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member-card h3 {
  font-size: 24px;
  margin: 0 0 5px 0;
}

.member-role {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

/* ==================
   Rollen-Farben
   ================== */

.role-founder {
  color: #aa00aa;
}

.role-management {
  color: #2072c3;
}

.role-admin {
  color: #54feff;
}

.role-moderator {
  color: #3498db;
}

.role-developer {
  color: #cc4646;
}

.role-builder {
  color: #20fd54;
}

/* ==================
   Responsive Design für Mobilgeräte
   ================== */

@media (max-width: 900px) {
  .about-section,
  .partner-section {
    flex-direction: column;
    margin: 40px auto;
    gap: 40px;
  }

  .partner-section .partner-logo {
    order: -1;
  }

  .about-text {
    text-align: center;
  }

  .partner-section h2 {
    text-align: center;
  }

  .partner-text {
    text-align: center;
  }

  .about-text h2,
  .features-section h2,
  .partner-section h2,
  .server-section h2,
  .team-intro h1 {
    font-size: 30px;
  }
}

/* ==================
   Status Page Styles
   ================== */

.status-page-intro {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
}

.status-page-intro h1 {
  font-size: 38px;
  margin-bottom: 10px;
}

.status-grid-section {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
}

.status-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.status-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.status-card-icon img {
  width: 80px;
  height: 80px;
}

.status-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.status-card-header {
  text-align: center;
  margin-bottom: 10px;
}

.status-card-header h3 {
  margin: 0;
  font-size: 22px;
}

.status-card-description {
  margin: 0 0 15px 0;
  color: #cccccc;
  font-size: 15px;
  flex-grow: 1;
}

.status-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-count {
  font-size: 14px;
  font-weight: bold;
  color: #a7c5ff;
}

/* ==================================
   Pawhost Easter Egg Styles
==================================== */

body.pawhost-theme {
  background: linear-gradient(135deg, #4d2000, #000000);
  background-attachment: fixed;
  color: #cccccc;
}

body.pawhost-theme header,
body.pawhost-theme .feature-card,
body.pawhost-theme .server-card,
body.pawhost-theme .status-card body.pawhost-theme .team-member-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 105, 0, 0.2);
}

body.pawhost-theme header {
  background-color: #15202b;
  border-bottom: 1px solid #ff6900;
}

body.pawhost-theme .connect-btn,
body.pawhost-theme .pawhost-btn {
  background-color: #ff6900;
  color: white;
}

body.pawhost-theme .connect-btn:hover,
body.pawhost-theme .pawhost-btn:hover {
  background-color: #e65e00;
}

body.pawhost-theme .feature-card i,
body.pawhost-theme .player-count,
body.pawhost-theme .contact-card i,
body.pawhost-theme .partner-text h3 {
  color: #ff6900;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pawhost-popup {
  position: relative;
  background: #1c1c1c;
  color: #cccccc;
  padding: 40px;
  border-radius: 15px;
  border: 1px solid #ff6900;
  text-align: center;
  max-width: 500px;
  width: 90%;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(255, 105, 0, 0.3);
  overflow: hidden;
}

.popup-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.popup-close-btn img {
  width: 20px;
  height: 20px;
}

.pawhost-popup h2 {
  color: white;
  margin-top: 0;
}

.pawhost-popup p {
  margin-bottom: 30px;
}

a.pawhost-btn {
  display: inline-block;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.paws-animation-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.paw-icon {
  position: absolute;
  top: -10%;
  width: 30px;
  height: 30px;
  background-image: url("../media/images/icons/paw.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.15;
  animation: rain linear infinite;
}

@keyframes rain {
  to {
    transform: translateY(110vh);
  }
}

/* ==================
   Pre-loader Styles
   ================== */

#preloader {
  position: fixed;
  inset: 0;
  background-color: #15202b;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;

  transition: opacity 0.03s ease;
}

#preloader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0s linear 0.75s;
}

.loader-dots {
  display: flex;
  gap: 15px;
}

.loader-dots span {
  width: 20px;
  height: 20px;
  border-radius: 50%;

  animation: bounce 0.6s infinite alternate, pride-colors 4s linear infinite;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s, 0s;
}
.loader-dots span:nth-child(3) {
  animation-delay: 0.4s, 0s;
}

@keyframes bounce {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-20px);
  }
}

@keyframes pride-colors {
  0% {
    background-color: #ff0000;
  } /* Rot */
  17% {
    background-color: #ff8000;
  } /* Orange */
  33% {
    background-color: #ffff00;
  } /* Gelb */
  50% {
    background-color: #00ff00;
  } /* Grün */
  67% {
    background-color: #0000ff;
  } /* Blau */
  83% {
    background-color: #8000ff;
  } /* Violett */
  100% {
    background-color: #ff0000;
  } /* Zurück zu Rot */
}

/* ==================
   Language Switcher Styles
   ================== */
.lang-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  padding: 0.2em;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
  line-height: 0; /* Verhindert extra Platz unter dem Bild */
}

.lang-btn img {
  width: 2rem;
  height: 2rem;
  display: block;
  pointer-events: none;
}

.lang-btn:hover {
  opacity: 1;
}

.lang-btn.active {
  opacity: 1;
  border-color: #a7c5ff;
}

@media (max-width: 60em) {
  .language-switcher {
    position: fixed;
    bottom: 5rem;
    left: 67.5%;
    transform: translateX(-50%);
    gap: 1.5em;
    z-index: 2001;

    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease-out, visibility 0s linear 300ms;
    transition-delay: 0s;
  }

  body.nav-open .language-switcher {
    opacity: 1;
    visibility: visible;
    transition-delay: 350ms;
  }
}

@media (min-width: 60em) {
  .language-switcher {
    display: flex;
    gap: 0.5em;
  }
}

/* ==================
   Beta Banner Styles
   ================== */

.beta-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: hsl(218 28% 15% / 0.9);
  color: #cccccc;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 900;

  display: flex;
  align-items: center;
  gap: 15px;

  animation: slideInFromRight 0.7s 1s ease-out forwards;
  opacity: 0;
}

.beta-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.beta-banner .beta-icon {
  font-size: 1.5rem;
  color: #a7c5ff;
  font-weight: bold;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==================
   Hero Section Styles
   ================== */

.hero-section {
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.hero-slogan {
  font-size: 1.75rem;
  color: #cccccc;
}

.cursor {
  display: inline-block;
  background-color: #a7c5ff;
  width: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    background-color: #a7c5ff;
  }
  40%,
  60% {
    background-color: transparent;
  }
}

@media (max-width: 60em) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-slogan {
    font-size: 1.25rem;
  }
}

/* ==================
   Contact Page Styles
   ================== */

.contact-intro {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
}

.contact-intro h1 {
  font-size: 38px;
  margin-bottom: 20px;
}

.contact-intro p {
  font-size: 18px;
  line-height: 1.7;
  color: #cccccc;
}

.contact-options-section {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.contact-options-grid {
  display: grid;
  gap: 30px;

  grid-template-columns: 1fr;
}

.contact-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 40px 35px;
  text-align: center;

  display: flex;
  flex-direction: column;

  gap: 25px;
}

.contact-card i {
  font-size: 48px;
  color: #a7c5ff;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.contact-button {
  display: inline-block;
  background-color: #34495e;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.contact-button:hover {
  background-color: #4a6583;
}

@media (min-width: 900px) {
  .contact-options-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==================
   Legal Page Styles
   ================== */

.legal-content {
  max-width: 800px;
  margin: 60px auto 80px auto;
  padding: 30px 40px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  text-align: left;
}

.legal-content h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1em;
  color: #ffffff;
}

.legal-content h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: 2.8em;
  margin-bottom: 1.2em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #a7c5ff;
  color: #ffffff;
}

.legal-content h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #e0e0e0;
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.8;
  color: #cccccc;
}

.legal-content ul {
  padding-left: 25px;
  margin: 1em 0;
}

.legal-content li {
  margin-bottom: 0.75em;
}

.legal-content a {
  color: #a7c5ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-content a:hover {
  color: #ffffff;
}

/* ==================
   Responsive Navigation Styles
   ================== */

.mobile-nav-toggle {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 60em) {
  .primary-navigation {
    position: fixed;
    z-index: 1000;
    inset: 0 0 0 35%;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: min(20vh, 10rem) 2em;
    gap: 2em;
    background: hsl(218 28% 15% / 0.9);
    backdrop-filter: blur(0.5rem);
    transform: translateX(100%);
    transition: transform 350ms ease-out;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .primary-navigation {
    transform: translateX(0%);
  }

  .mobile-nav-toggle {
    display: block;
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    right: 1.5rem;
    z-index: 2000;
    background: transparent;
    border: 0;
    color: white;
    font-size: 1.5rem;
  }
}

.features-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* ==================
   404 Error Page Styles
   ================== */
.error-page-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.error-page-content .error-code {
  font-size: 15rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  z-index: -1;
  user-select: none;
}

.error-page-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5em;
}

.error-page-content p {
  font-size: 1.2rem;
  color: #cccccc;
  max-width: 500px;
  margin-bottom: 2em;
}

.error-page-content .contact-button {
  /* Wir können die bestehende Button-Klasse wiederverwenden */
  font-size: 1rem;
}

@media (max-width: 60em) {
  .error-page-content .error-code {
    font-size: 8rem;
  }
  .error-page-content h1 {
    font-size: 2rem;
  }
}
