/* ---------------------------------------------------------
   EXO 2 LOCAL FONT FAMILY (ANDROID SAFE)
--------------------------------------------------------- */

@font-face {
  font-family: "Exo2";
  src:
    url("/assets/fonts/exo-2-v26-cyrillic_cyrillic-ext_latin_latin-ext-100.woff2")
      format("woff2"),
    url("/assets/fonts/exo-2-v26-cyrillic_cyrillic-ext_latin_latin-ext-100.woff")
      format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo2";
  src:
    url("/assets/fonts/exo-2-v26-cyrillic_cyrillic-ext_latin_latin-ext-300.woff2")
      format("woff2"),
    url("/assets/fonts/exo-2-v26-cyrillic_cyrillic-ext_latin_latin-ext-300.woff")
      format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo2";
  src:
    url("/assets/fonts/exo-2-v26-cyrillic_cyrillic-ext_latin_latin-ext-regular.woff2")
      format("woff2"),
    url("/assets/fonts/exo-2-v26-cyrillic_cyrillic-ext_latin_latin-ext-regular.woff")
      format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo2";
  src:
    url("/assets/fonts/exo-2-v26-cyrillic_cyrillic-ext_latin_latin-ext-700.woff2")
      format("woff2"),
    url("/assets/fonts/exo-2-v26-cyrillic_cyrillic-ext_latin_latin-ext-700.woff")
      format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo2";
  src:
    url("/assets/fonts/exo-2-v26-cyrillic_cyrillic-ext_latin_latin-ext-900.woff2")
      format("woff2"),
    url("/assets/fonts/exo-2-v26-cyrillic_cyrillic-ext_latin_latin-ext-900.woff")
      format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo2";
  src:
    url("/assets/fonts/exo-2-v26-cyrillic_cyrillic-ext_latin_latin-ext-italic.woff2")
      format("woff2"),
    url("/assets/fonts/exo-2-v26-cyrillic_cyrillic-ext_latin_latin-ext-italic.woff")
      format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* =========================================================
   GLOBAL
========================================================= */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Exo2", sans-serif;
  background: #0a0a0f;
  color: #e1e1e1;
  margin: 0;
  padding-top: 90px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* =========================================================
   METALLIC TEXT
========================================================= */
.metallic-text {
  background: linear-gradient(135deg, #6c7a89, #bdc3c7, #4a5f7f, #6c7a89);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metallic-text:hover {
  background-position: right;
}

/* =========================================================
   NAVBAR (50% TRANSPARENT)
========================================================= */
.navbar {
  background: rgba(12, 12, 18, 0.5); /* ✅ 50% */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 234, 255, 0.005);
  z-index: 1100;
}

@supports (
  (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))
) {
  .navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.navbar-brand {
  max-width: calc(100% - 60px);
  overflow: hidden;
}

.navbar-brand img {
  height: 56px;
}

.navbar-brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  font-weight: 500;
}

/* =========================================================
   DROPDOWNS
========================================================= */
.dropdown-menu {
  background: #101116;
  border-radius: 12px;
  border: 1px solid rgba(0, 234, 255, 0.15);
}

.dropdown-item {
  font-size: 12px;
  color: #e1e1e1;
}

.dropdown-item:hover {
  font-size: 12px;
  color: #e1e1e1;
}

/* =========================================================
   MOBILE NAV (RIGHT PANEL)
========================================================= */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    max-width: 420px;
    background: rgba(12, 12, 18, 0.95);
    padding: 1rem;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 0 0 0.2rem rgba(0, 200, 255, 0.25);
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 0.75rem 0;
  }

  .navbar-nav.ms-auto {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    border: none;
    box-shadow: none;
    background: rgba(16, 17, 22, 0.9);
  }
}

/* =========================================================
   CARDS / PANELS
========================================================= */
.card,
.panel {
  background: #121217;
  border: 1px solid rgba(0, 234, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.25); /* angepasst */
}

/*.server-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.25);
}*/

/* =========================================================
   FORMS
========================================================= */
.form-control {
  background: #1e1f26;
  border: 1px solid rgba(0, 234, 255, 0.12);
  color: #e1e1e1;
}

.form-control:focus {
  border-color: #00eaff;
  background: #272830;
  box-shadow: 0 0 0 0.25rem rgba(0, 200, 255, 0.25); /* angepasst */
}

.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(0, 234, 255, 0.25),
    rgba(0, 234, 255, 0.1)
  );
  border: 1px solid rgba(0, 234, 255, 0.3);
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 200, 255, 0.25); /* angepasst */
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 234, 255, 0.4),
    rgba(0, 234, 255, 0.2)
  );
  box-shadow: 0 6px 12px rgba(0, 200, 255, 0.25); /* angepasst */
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: rgba(12, 12, 18, 0.9);
  border-top: 1px solid rgba(0, 234, 255, 0.12);
  color: #c0c0c0;
}

/* =========================================================
   UTILITIES
========================================================= */
.text-muted {
  color: #8d8e92 !important;
}
.rounded-12 {
  border-radius: 12px;
}
.rot {
  color: #ff4d4d;
}
.legende {
  font-size: 12px;
  color: #8d8e92;
}

/* ============================
   ARK ASA PREMIUM LOGIN CARD
============================ */

.login-wrapper {
  min-height: calc(100vh - 90px);
  display: flex;
  justify-content: center; /* horizontal zentriert */
  align-items: flex-start; /* oben ausgerichtet */
  padding-top: 5px; /* Abstand unter Header */
  background:
    radial-gradient(circle at top, rgba(0, 180, 255, 0.12), transparent 10%),
    linear-gradient(180deg, #05080c, #0b1118);
}

/* ============================
   CARD
============================ */
.login-card.ark-premium {
  display: flex;
  width: 900px;
  max-width: 95%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(12, 18, 25, 0.95);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 50px rgba(0, 200, 255, 0.25),
    /* angepasst */ inset 0 0 0 1px rgba(0, 200, 255, 0.25); /* angepasst */
}

/* ============================
   BILD LINKS
============================ */
.login-image {
  position: relative;
  width: 40%;
  background: #000;
}

.login-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5; /* 👈 50% transparent */
}

/* dunkle Leseschicht */
.login-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.3)
  );
}

/* ASA LOGO UNTEN LINKS */
.login-logo {
  position: absolute;
  bottom: 25px;
  left: 25px;
  width: 180px;
  z-index: 2;
  opacity: 0.9;
}

/* ============================
   FORMULAR RECHTS
============================ */
.login-form {
  flex: 1;
  padding: 3rem;
  color: #e8f6ff;
  background: rgba(8, 12, 18, 0.9);
  backdrop-filter: none;
}

/* Blur nur wenn sauber unterstützt */
@supports (
  (backdrop-filter: blur(5px)) or (-webkit-backdrop-filter: blur(5px))
) {
  .login-form {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
}

.login-form h2 {
  font-weight: 600;
  letter-spacing: 1px;
  color: #eaf8ff;
}

/* Inputs */
.login-form .form-control {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 200, 255, 0.25); /* angepasst */
  color: #e8f6ff;
}

.login-form .form-control:focus {
  border-color: #00c8ff;
  box-shadow: 0 0 0 0.25rem rgba(0, 200, 255, 0.25); /* angepasst */
  background: rgba(0, 0, 0, 0.75);
}

/* Labels */
.login-form .form-label {
  color: #9fdfff;
  font-size: 0.9rem;
}

/* Button */
.login-form .btn-primary {
  background: linear-gradient(135deg, #00c8ff, #006c9c);
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(0, 200, 255, 0.25); /* angepasst */
}

.login-form .btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 12px rgba(0, 200, 255, 0.25); /* angepasst */
}

/* ---------------------------------------------------------
   INPUT FIXES (ANDROID ZOOM BUG)
--------------------------------------------------------- */
input,
textarea,
select {
  font-size: 16px;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
  .login-card {
    flex-direction: column;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .login-image {
    display: none;
  }
}

.server-card {
  position: relative;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* bleibt unverändert */
}
.server-card:hover {
  transform: scale(1.0003);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* bleibt unverändert */
}

.server-card .overlay {
  outline: 0.5px solid rgb(0, 0, 0);
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  inset: 0;
  /* echtes Zentrieren */
  border-radius: 10px;
  top: 50%;
  left: 50%;
  width: 97%;
  height: 95%;
  transform: translate(-50%, -50%);

  background: rgba(0, 0, 0, 0.69);
  color: #fff;
  padding: 12px;
  box-sizing: border-box;
}

.server-card h5 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
}
.server-card .small {
  font-size: 0.85rem;
  color: #ddd;
}

.news-card {
  transition:
    box-shadow 0.3s,
    background-color 0.3s;
  overflow: hidden; /* verhindert Springen bei Collapse */
}

.news-card:hover {
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 12px rgba(0, 200, 255, 0.25); /* angepasst */
}

.news-content-full {
  margin-top: 0.5rem;
}

.news-card .btn {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

/* Alert sanft ausblenden */
.alert.fade-out {
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.alert.hidden {
  opacity: 0;
  transform: translateY(-10px);
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/**  ARK MAP JS */
.ark-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #111;
}

.ark-red {
  background: #d32f2f;
}
.ark-green {
  background: #388e3c;
}
.ark-blue {
  background: #1976d2;
}
.ark-yellow {
  background: #fbc02d;
}

/* ============================
   ARK RULES LAYOUT
============================ */

.ark-rules-wrapper {
  background: rgba(12, 18, 25, 0.95);
}

.ark-rules-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
}

/* ============================
   MENU (LEFT)
============================ */

.ark-rules-menu {
  padding: 1rem;
  background: rgba(8, 12, 18, 0.9);
  border: 1px solid rgba(0, 200, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 200, 255, 0.08);
}

.ark-menu-item {
  cursor: pointer;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 0.35rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.ark-menu-item strong {
  font-size: 0.95rem;
  color: #e8f6ff;
}

.ark-menu-item small {
  display: block;
  font-size: 0.75rem;
  color: #8d8e92;
}

/* Hover */
.ark-menu-item:hover {
  background: rgba(0, 200, 255, 0.06);
}

/* Active */
.ark-menu-item.active {
  background: rgba(0, 200, 255, 0.12);
  border-color: rgba(0, 200, 255, 0.35);
  box-shadow:
    0 0 12px rgba(0, 200, 255, 0.35),
    inset 0 0 0 1px rgba(0, 200, 255, 0.25);
}

/* ============================
   CONTENT (RIGHT)
============================ */

.ark-rules-content {
  padding: 1.75rem;
  background: rgba(10, 14, 20, 0.95);
  border: 1px solid rgba(0, 200, 255, 0.18);
  box-shadow:
    0 0 18px rgba(0, 200, 255, 0.25),
    inset 0 0 0 1px rgba(0, 200, 255, 0.15);
}

#ark-rules-output {
  transition: opacity 0.2s ease;
}

/* Regeltext */
.rule-text {
  line-height: 1.65;
  color: #e1f4ff;
}

.rule-text p {
  margin-bottom: 0.75rem;
}

/* Paragraph marker */
.rule-text strong {
  color: #00c8ff;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 768px) {
  .ark-rules-grid {
    grid-template-columns: 1fr;
  }

  .ark-rules-menu {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
  }

  .ark-menu-item {
    min-width: 180px;
    white-space: nowrap;
  }
}

/** PROGRESBAR */
.progress {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  height: 6px;
}

.progress-bar {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 6px;
}

/* Farben */
.progress-bar.bg-info {
  background-color: #00c8ff;
}
.progress-bar.bg-warning {
  background-color: #fbc02d;
}
.progress-bar.bg-success {
  background-color: #4caf50;
}

.progress-bar {
  transition: width 0.6s ease-in-out;
}

.status-online {
  color: #28a745; /* Grüner Ton, nicht zu dunkel */
  font-weight: bold;
}

.status-offline {
  color: #dc3545; /* Rot */
  font-weight: bold;
}

/** ARCHIVBILDER */
.news-archive-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  transition: all 0.35s ease;
}

.news-archive-img.expanded {
  width: 400px;
  height: 400px;
}
