/* ============================================================
   RL Hosting – Design im RL-Dev Stil (Neon / Glassmorphism)
   Akzente: #b44fff (Lila) & #00ccff (Cyan)
   ============================================================ */

:root {
  --primary-color: #07070f;
  --secondary-color: #0e0e1a;
  --accent-color: #12122a;
  --highlight-color: #b44fff;
  --highlight-secondary: #00ccff;

  --rl-bg: #07070f;
  --rl-bg-soft: #0e0e1a;
  --rl-bg-card: rgba(30, 10, 60, 0.5);
  --rl-border: rgba(180, 79, 255, 0.2);
  --rl-border-strong: rgba(180, 79, 255, 0.5);

  --rl-text: #f0f0f5;
  --rl-text-muted: #c0c0d0;

  --rl-accent: #b44fff;
  --rl-accent-2: #00ccff;
  --rl-success: #3ddc84;
  --rl-warning: #ffb547;
  --rl-danger: #ff5c5c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: radial-gradient(ellipse at top, #12082a 0%, #07070f 60%, #0a0a18 100%);
  color: var(--rl-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  min-height: 100vh;
  font-weight: 400;
}

a { color: var(--rl-accent-2); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--rl-accent); text-shadow: 0 0 8px rgba(180, 79, 255, 0.5); }

/* ---------- Navbar ---------- */
.rl-navbar {
  background: rgba(10, 10, 22, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(180, 79, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px rgba(180, 79, 255, 0.08);
  padding: 0.6rem 0;
}
.rl-nav-spacer { height: 70px; }

.rl-navbar .navbar-brand {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #b44fff 0%, #00ccff 50%, #b44fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rl-navbar .navbar-brand:hover {
  background-position: right center;
  filter: drop-shadow(0 0 12px rgba(180, 79, 255, 0.7));
}

.rl-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #b44fff, #00ccff);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 18px rgba(180, 79, 255, 0.45);
  -webkit-text-fill-color: #fff;
}
.rl-logo-text { color: var(--rl-text); -webkit-text-fill-color: var(--rl-text); }

.rl-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem !important;
  margin: 0 0.2rem;
  border-radius: 50px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.3px;
}
.rl-navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(180, 79, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(180, 79, 255, 0.2);
}
.rl-navbar .nav-link.active {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(180, 79, 255, 0.25), rgba(0, 204, 255, 0.15));
  box-shadow: 0 0 20px rgba(180, 79, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rl-navbar .dropdown-toggle::after {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.4rem;
  margin-right: 0.1rem;
  vertical-align: middle;
  transition: transform 0.25s ease;
  border-top: none !important;
  border-left: none !important;
  content: '';
}
.rl-navbar .dropdown-toggle.show::after { transform: rotate(225deg); }

.rl-navbar .dropdown-menu {
  background: rgba(12, 12, 28, 0.95);
  border: 1px solid rgba(180, 79, 255, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(180, 79, 255, 0.15);
  padding: 0.65rem 0.5rem;
  margin-top: 0.75rem;
  animation: rlDropdown 0.2s ease-out;
}
@keyframes rlDropdown {
  from { opacity: 0; transform: translateY(-8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.rl-navbar .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.rl-navbar .dropdown-item:hover {
  background: linear-gradient(135deg, rgba(180, 79, 255, 0.2), rgba(0, 204, 255, 0.1));
  color: #fff;
  transform: translateX(3px);
}
.rl-navbar .dropdown-divider { border-color: rgba(180, 79, 255, 0.2); margin: 0.5rem 0.65rem; }

.rl-navbar .navbar-toggler {
  border: 1px solid rgba(180, 79, 255, 0.3);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}
.rl-navbar .navbar-toggler:hover {
  background: rgba(180, 79, 255, 0.15);
  border-color: rgba(180, 79, 255, 0.6);
  box-shadow: 0 0 15px rgba(180, 79, 255, 0.2);
}
.rl-navbar .navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(180, 79, 255, 0.25); }

@media (max-width: 991.98px) {
  .rl-navbar .navbar-collapse {
    background: rgba(10, 10, 22, 0.98);
    border: 1px solid rgba(180, 79, 255, 0.2);
    border-radius: 16px;
    margin-top: 0.75rem;
    padding: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  }
  .rl-navbar .nav-link { margin: 0.15rem 0; justify-content: space-between; }
  .rl-navbar .dropdown-menu {
    background: rgba(180, 79, 255, 0.08);
    border: 1px solid rgba(180, 79, 255, 0.15);
    box-shadow: none;
    margin-top: 0.25rem;
  }
}

/* ---------- Layout ---------- */
main { flex: 1; padding: 2rem 0; }
.container { max-width: 1440px; padding: 0 1.5rem; }

/* ---------- Hero ---------- */
.rl-hero {
  background:
    radial-gradient(ellipse at top left, rgba(180, 79, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(0, 204, 255, 0.14), transparent 55%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.rl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(7, 7, 15, 0.6));
  pointer-events: none;
}
.rl-hero > .container { position: relative; z-index: 1; }
.rl-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #b44fff 50%, #00ccff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.rl-hero p.lead {
  color: var(--rl-text-muted);
  font-size: 1.15rem;
  max-width: 620px;
  line-height: 1.6;
}
.rl-hero-icon {
  font-size: 11rem;
  background: linear-gradient(135deg, #b44fff, #00ccff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.55;
  filter: drop-shadow(0 0 30px rgba(180, 79, 255, 0.4));
  animation: rlFloat 6s ease-in-out infinite;
}
@keyframes rlFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Cards (Glassmorphism) ---------- */
.rl-card,
.card.rl-card {
  background: linear-gradient(135deg, rgba(30, 10, 60, 0.5) 0%, rgba(10, 8, 30, 0.4) 100%);
  border: 1px solid rgba(180, 79, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(180, 79, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  color: var(--rl-text);
}
.rl-card::before,
.card.rl-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}
.rl-card:hover::before,
.card.rl-card:hover::before { left: 100%; }
.rl-card:hover,
.card.rl-card:hover {
  background: linear-gradient(135deg, rgba(40, 10, 80, 0.6) 0%, rgba(0, 100, 180, 0.2) 100%);
  border-color: rgba(180, 79, 255, 0.5);
  box-shadow: 0 16px 48px rgba(180, 79, 255, 0.25), 0 0 20px rgba(0, 204, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}
.rl-card .card-title {
  color: var(--rl-text);
  font-weight: 600;
  background: linear-gradient(90deg, #e0e0ff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rl-card .card-text { color: var(--rl-text-muted); line-height: 1.6; font-size: 0.95rem; }
.card-body { padding: 1.25rem; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, #b44fff 0%, #00ccff 100%);
  border: 1px solid rgba(180, 79, 255, 0.5);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 15px rgba(180, 79, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  background: linear-gradient(135deg, #00ccff 0%, #b44fff 100%);
  box-shadow: 0 8px 30px rgba(180, 79, 255, 0.5), 0 0 20px rgba(0, 204, 255, 0.3);
  transform: translateY(-3px);
  border-color: rgba(0, 204, 255, 0.7);
  color: #fff;
}

.btn-outline-light {
  border: 1px solid rgba(180, 79, 255, 0.4);
  color: var(--rl-text);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(30, 10, 60, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.btn-outline-light:hover {
  background: rgba(180, 79, 255, 0.15);
  border-color: rgba(180, 79, 255, 0.7);
  color: #fff;
  box-shadow: 0 0 18px rgba(180, 79, 255, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(30, 10, 60, 0.8);
  border: 1px solid var(--rl-accent);
  color: var(--rl-text);
  border-radius: 5px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-secondary:hover { background: var(--rl-accent); color: #fff; box-shadow: 0 0 18px rgba(180, 79, 255, 0.4); }

.badge {
  background: linear-gradient(90deg, #b44fff, #00ccff);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
}

/* ---------- Feature Icons ---------- */
.rl-feature-icon {
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(180, 79, 255, 0.18), rgba(0, 204, 255, 0.12));
  color: var(--rl-accent);
  border: 1px solid rgba(180, 79, 255, 0.3);
  border-radius: 14px;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(180, 79, 255, 0.2);
  transition: all 0.3s ease;
}
.rl-card:hover .rl-feature-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 28px rgba(180, 79, 255, 0.45);
  color: var(--rl-accent-2);
}

/* ---------- Preise ---------- */
.rl-price {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #b44fff, #00ccff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rl-price small {
  font-size: 0.9rem;
  color: var(--rl-text-muted);
  font-weight: 400;
  -webkit-text-fill-color: var(--rl-text-muted);
}

/* ---------- Stat Cards ---------- */
.rl-stat-card {
  background: linear-gradient(135deg, rgba(30, 10, 60, 0.5), rgba(10, 8, 30, 0.4));
  border: 1px solid rgba(180, 79, 255, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.rl-stat-card:hover { border-color: rgba(180, 79, 255, 0.4); transform: translateY(-2px); }
.rl-stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #b44fff, #00ccff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rl-stat-card .stat-label { color: var(--rl-text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- Footer ---------- */
.rl-footer {
  background: rgba(10, 10, 22, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(180, 79, 255, 0.2);
  margin-top: auto;
  color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25), 0 0 30px rgba(180, 79, 255, 0.06);
}
.rl-footer h5,
.rl-footer h6 {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #b44fff, #00ccff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rl-footer h5 i, .rl-footer h6 i {
  color: var(--rl-accent);
  -webkit-text-fill-color: var(--rl-accent);
  background: none;
}
.rl-footer p { color: rgba(255, 255, 255, 0.7) !important; }

.rl-link {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}
.rl-link:hover { color: #fff !important; text-shadow: 0 0 8px rgba(180, 79, 255, 0.6); }
.rl-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, #b44fff, #00ccff);
  transition: width 0.25s ease;
}
.rl-link:hover::after { width: 100%; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  background: rgba(14, 14, 26, 0.8);
  border: 1px solid rgba(180, 79, 255, 0.25);
  color: var(--rl-text);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
  background: rgba(14, 14, 26, 0.9);
  border-color: var(--rl-accent);
  color: var(--rl-text);
  box-shadow: 0 0 0 0.2rem rgba(180, 79, 255, 0.2), 0 0 18px rgba(180, 79, 255, 0.15);
}
.form-label { color: var(--rl-text-muted); font-weight: 500; }
.form-control::placeholder { color: rgba(160, 160, 176, 0.6); }

/* ---------- Status Badges ---------- */
.rl-status-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.rl-status-open    { background: rgba(61, 220, 132, 0.15); color: var(--rl-success); border: 1px solid rgba(61, 220, 132, 0.3); }
.rl-status-answered{ background: rgba(108, 140, 255, 0.15); color: var(--rl-accent-2); border: 1px solid rgba(0, 204, 255, 0.3); }
.rl-status-closed  { background: rgba(154, 163, 176, 0.15); color: var(--rl-text-muted); border: 1px solid rgba(154, 163, 176, 0.3); }
.rl-status-pending { background: rgba(255, 181, 71, 0.15); color: var(--rl-warning); border: 1px solid rgba(255, 181, 71, 0.3); }
.rl-status-active  { background: rgba(61, 220, 132, 0.15); color: var(--rl-success); border: 1px solid rgba(61, 220, 132, 0.3); }
.rl-status-cancelled { background: rgba(255, 92, 92, 0.15); color: var(--rl-danger); border: 1px solid rgba(255, 92, 92, 0.3); }

/* ---------- Progress ---------- */
.rl-progress {
  background: rgba(180, 79, 255, 0.12);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(180, 79, 255, 0.2);
}
.rl-progress > div {
  height: 100%;
  background: linear-gradient(90deg, #b44fff, #00ccff);
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(180, 79, 255, 0.5);
}

/* ---------- Tables ---------- */
.table { color: var(--rl-text); }
.table > :not(caption) > * > * {
  background-color: transparent;
  border-color: rgba(180, 79, 255, 0.15);
  color: var(--rl-text);
}
.table thead th {
  color: var(--rl-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}
.table-hover tbody tr:hover { background: rgba(180, 79, 255, 0.08) !important; }

/* ---------- Alerts ---------- */
.alert { border-radius: 10px; backdrop-filter: blur(8px); }
.alert-success { background: rgba(61, 220, 132, 0.12); border: 1px solid rgba(61, 220, 132, 0.3); color: var(--rl-success); }
.alert-danger  { background: rgba(255, 92, 92, 0.12); border: 1px solid rgba(255, 92, 92, 0.3); color: var(--rl-danger); }
.alert-info    { background: rgba(0, 204, 255, 0.12); border: 1px solid rgba(0, 204, 255, 0.3); color: var(--rl-accent-2); }
.alert-warning { background: rgba(255, 181, 71, 0.12); border: 1px solid rgba(255, 181, 71, 0.3); color: var(--rl-warning); }

/* ---------- Auth / Chat ---------- */
.rl-auth-card {
  max-width: 460px;
  margin: 3rem auto;
}
.rl-chat-msg {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  max-width: 80%;
}
.rl-chat-msg.user  { background: rgba(180, 79, 255, 0.12); border: 1px solid rgba(180, 79, 255, 0.25); }
.rl-chat-msg.staff { background: rgba(0, 204, 255, 0.12); border: 1px solid rgba(0, 204, 255, 0.25); margin-left: auto; }
.rl-chat-msg .meta { font-size: 0.75rem; color: var(--rl-text-muted); margin-bottom: 0.25rem; }

/* ---------- Helpers ---------- */
.text-muted { color: var(--rl-text-muted) !important; }
.text-light { color: var(--rl-text) !important; }
.text-white-50 { color: rgba(240, 240, 245, 0.7) !important; }
.small, small { color: var(--rl-text-muted); }
.border-secondary { border-color: rgba(180, 79, 255, 0.2) !important; }
hr { border-color: rgba(180, 79, 255, 0.15); opacity: 1; }
.display-6 { color: var(--rl-text) !important; }

h1, h2, h3, h4, h5, h6 { color: var(--rl-text); }
h5 .text-muted, h6 .text-muted, .h5 .text-muted, .h6 .text-muted { color: var(--rl-text-muted) !important; }
td, th { color: var(--rl-text); }
td .text-muted { color: var(--rl-text-muted) !important; }
.list-group-item { color: var(--rl-text); }
.list-group-item a { color: var(--rl-accent-2); }
.modal-content { background: rgba(14, 14, 26, 0.98); border: 1px solid rgba(180, 79, 255, 0.3); color: var(--rl-text); }
.modal-header { border-bottom: 1px solid rgba(180, 79, 255, 0.2); }
.modal-footer { border-top: 1px solid rgba(180, 79, 255, 0.2); }
.modal-title { color: var(--rl-text); }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.btn-outline-warning { color: var(--rl-warning); border-color: var(--rl-warning); }
.btn-outline-warning:hover { background: var(--rl-warning); color: #000; }
.btn-outline-danger { color: var(--rl-danger); border-color: var(--rl-danger); }
.btn-outline-danger:hover { background: var(--rl-danger); color: #fff; }
.btn-outline-success { color: var(--rl-success); border-color: var(--rl-success); }
.btn-outline-success:hover { background: var(--rl-success); color: #000; }
.btn-sm { border-radius: 6px; }
.nav-link { color: var(--rl-text-muted); }
h2.section-title {
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #b44fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Animations ---------- */
@keyframes rlFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rl-fade-up { animation: rlFadeUp 0.5s ease-out both; }
.rl-fade-up:nth-child(2) { animation-delay: 0.08s; }
.rl-fade-up:nth-child(3) { animation-delay: 0.16s; }
.rl-fade-up:nth-child(4) { animation-delay: 0.24s; }

@media (max-width: 768px) {
  .rl-hero h1 { font-size: 2rem; }
  .rl-hero { padding: 3rem 0 2.5rem; }
  .rl-hero-icon { font-size: 7rem; }
}
