/* =========================
   BUTTONS
========================= */

.btn {
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);

  font-weight: 600;
  letter-spacing: 0.3px;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: rgba(0,0,0,0.4);
  color: white;

  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

/* COLORS */
.btn-login    { border-color:#00fff7; color:#00fff7; }
.btn-register { border-color:#ff4da6; color:#ff4da6; }
.btn-discord  { border-color:#7289da; color:#7289da; }
.btn-play     { border-color:#00ff88; color:#00ff88; }

.hero-buttons a.btn-login {
  background: rgba(0,255,247,0.2);
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
  box-shadow:
    0 0 10px currentColor,
    0 0 20px rgba(255,255,255,0.15);
}

.hero-buttons .btn:active {
  transform: scale(0.96);
}

/* =========================
   STEIN
========================= */

.ark-laws {
  width: 260px;
  max-width: 90%;
  margin: 40px auto;
  position: relative;
}

.ark-laws img {
  width: 100%;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(0,255,150,0.5));
}

.ark-laws img:hover {
  transform: scale(1.05);
  filter:
    drop-shadow(0 0 20px rgba(0,255,150,0.7))
    drop-shadow(0 0 40px rgba(0,255,150,0.4));
}

@keyframes float {
  50% { transform: translateY(-12px); }
}

/* CLICK AREAS */
.stone {
  position: absolute;
  width: 30%;
  height: 18%;
  bottom: 6%;
  cursor: pointer;
  background: transparent;
  border: none;
}

.ernst  { left: 5%; }
.lustig { left: 35%; }
.episch { left: 65%; }

/* =========================
   GLOBAL CARD SYSTEM
========================= */

.card,
.server-box,
.feature-box {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* HOVER GLOBAL */
.card:hover,
.server-box:hover,
.feature-box:hover {
  transform: translateY(-8px) scale(1.03);
}

/* SHINE */
.card::after,
.server-box::after,
.feature-box::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
  transform: rotate(25deg);
  transition: 0.5s;
}

.card:hover::after,
.server-box:hover::after,
.feature-box:hover::after {
  top: 100%;
}

/* =========================
   SERVER BOX
========================= */

.server-box {
  min-width: 240px;
  padding: 18px;
  border-radius: 16px;

  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

/* STATUS COLORS */
.server-box.online {
  --glow: rgba(0,255,150,0.6);
  border-color: rgba(0,255,150,0.4);
}

.server-box.offline {
  --glow: rgba(255,60,60,0.6);
  border-color: rgba(255,60,60,0.4);
}

/* HOVER (DYNAMIC) */
.server-box:hover {
  box-shadow:
    0 0 20px var(--glow),
    0 0 40px rgba(0,0,0,0.5);
}

/* GLOW OVERLAY */
.server-box::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top,
    var(--glow),
    transparent 70%
  );

  opacity: 0;
  transition: 0.4s;
}

.server-box:hover::before {
  opacity: 0.5;
}

/* TEXT */
.server-box h4 {
  color: #00fff7;
  margin-bottom: 10px;
}

.server-box .status.online {
  color: #00ff88;
}

.server-box .status.offline {
  color: #ff4444;
}

.server-box .players {
  font-size: 14px;
  opacity: 0.8;
}

/* =========================
   COMING SOON
========================= */

.server-box.coming {
  opacity: 0.7;
}

.coming-text {
  font-size: 14px;
  opacity: 0.6;
}

.soon-bar {
  margin-top: 10px;
  height: 5px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.soon-bar div {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg,#00fff7,transparent);
  animation: loading 2s linear infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* =========================
   HIGHLIGHT CARDS
========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 16px;
}

.card {
  padding: 18px;
  border-radius: 14px;
  max-width: 260px;
  margin: 0 auto;

  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(0,255,247,0.25);
  text-align: center;
}

/* =========================
   FEATURES
========================= */

.features {
  margin-top: 30px;
}

.bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.bar div {
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg,#00fff7,#00ff88);
}

/* =========================
   COOKIE
========================= */

#cookieBanner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 520px;
  z-index: 5000;
}

.cookie-box {
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,10,20,0.8);
  border: 1px solid rgba(0,255,247,0.4);
}

.cookie-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-actions button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,255,247,0.4);
  background: rgba(0,255,247,0.1);
  color: #00fff7;
}
/* ================= ICON FLOAT FIX ================= */

.icon {
  font-size: 24px;
  margin-bottom: 8px;

  display: inline-block; /* 🔥 WICHTIG für Animation */

  animation: floatIcon 3s ease-in-out infinite;
}

/* Animation sauber definiert */
@keyframes floatIcon {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); } /* bisschen stärker */
  100% { transform: translateY(0); }
}
.feature-box:hover .icon {
  transform: translateY(-6px) scale(1.1);
}
.card:hover .icon,
.server-box:hover .icon,
.feature-box:hover .icon {
  transform: translateY(-8px) scale(1.15);

  text-shadow:
    0 0 10px currentColor,
    0 0 20px rgba(255,255,255,0.2);
}
/* =========================
   MODAL SYSTEM (FINAL)
========================= */

.overlay {
  position: fixed;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);

  z-index: 9999;
}

.overlay.hidden {
  display: none;
}
.ark-panel {
  width: 90%;
  max-width: 360px;

  padding: 25px;
  border-radius: 18px;

  background: rgba(0,0,0,0.95);

  border: 1px solid rgba(0,255,247,0.6);

  box-shadow:
    0 0 25px rgba(0,255,247,0.5),
    0 0 60px rgba(0,255,247,0.2);

  text-align: center;
  position: relative;
}
.ark-close {
  position: absolute;
  top: 10px;
  right: 14px;

  font-size: 16px;
  color: white;

  background: transparent;
  border: none;

  cursor: pointer;
  transition: 0.2s;
}

.ark-close:hover {
  color: #ff4444;
  transform: scale(1.2);
}
.tek-header {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 10px;
}

.tek-header .access {
  color: #00ff88;
  font-weight: bold;
  text-shadow: 0 0 6px #00ff88;
}
#rulesTitle {
  font-size: 24px;
  margin: 10px 0;

  color: white;

  text-shadow:
    0 0 10px #00fff7,
    0 0 25px rgba(0,255,247,0.4);
}

#rulesText {
  line-height: 1.6;
  opacity: 0.9;
}
.rules-link {
  display: inline-block;
  margin-top: 15px;

  padding: 8px 14px;
  border-radius: 10px;

  border: 1px solid #00fff7;
  color: #00fff7;
  text-decoration: none;

  transition: 0.25s;
}

.rules-link:hover {
  background: rgba(0,255,247,0.2);
  box-shadow: 0 0 10px rgba(0,255,247,0.5);
}
.ark-panel form {
  display: flex;
  flex-direction: column;
  gap: 12px;

  margin-top: 15px;
}

.ark-panel input {
  width: 100%;
  padding: 10px;

  border-radius: 8px;
  border: none;

  background: rgba(255,255,255,0.1);
  color: white;
}
.ark-panel .btn {
  align-self: center;

  padding: 10px 18px;
  border-radius: 10px;

  border: 1px solid #00fff7;
  color: #00fff7;

  background: rgba(0,255,247,0.1);

  transition: 0.25s;
}

.ark-panel .btn:hover {
  background: rgba(0,255,247,0.25);
  box-shadow: 0 0 10px rgba(0,255,247,0.5);
}
.discord-btn {
  display: inline-block;
  margin-top: 12px;

  padding: 8px 14px;
  border-radius: 10px;

  border: 1px solid #7289da;
  color: #7289da;
  text-decoration: none;

  transition: 0.25s;
}

.discord-btn:hover {
  background: rgba(114,137,218,0.2);
  box-shadow: 0 0 10px rgba(114,137,218,0.5);
}

