/* =====================================================================
   Sitehotel – Haupt-Stylesheet
   ===================================================================== */

:root {
  --sh-primary:   #0d6efd;
  --sh-accent:    #6f42c1;
  --sh-dark:      #0f1117;
  --sh-surface:   #1a1f2e;
  --sh-text:      #e2e8f0;
  --sh-muted:     #8892a4;
  --sh-border:    rgba(255,255,255,0.08);
  --sh-gradient:  linear-gradient(135deg, var(--sh-primary) 0%, var(--sh-accent) 100%);
  --sh-glow:      0 0 40px rgba(13,110,253,0.3);
}

/* ── Base ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--sh-dark);
  color: var(--sh-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated star background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 70%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ───────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.text-gradient {
  background: var(--sh-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a { color: var(--sh-primary); text-decoration: none; }
a:hover { color: #66a3ff; }

/* ── Navbar ───────────────────────────────────────────────────────── */

.sh-navbar {
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sh-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s;
}

.sh-navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.sh-navbar .navbar-brand .brand-dot {
  color: var(--sh-primary);
}

.sh-navbar .nav-link {
  color: var(--sh-muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
  position: relative;
}

.sh-navbar .nav-link:hover,
.sh-navbar .nav-link.active {
  color: #fff !important;
}

.sh-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--sh-gradient);
  border-radius: 1px;
}

.lang-switcher .btn {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero-section {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13,110,253,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-illustration {
  animation: float 6s ease-in-out infinite;
}

.server-icon {
  font-size: 10rem;
  filter: drop-shadow(0 0 30px rgba(13,110,253,0.5));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

/* ── Sections ─────────────────────────────────────────────────────── */

section {
  position: relative;
  z-index: 1;
}

.features-section.bg-light,
.bg-surface {
  background: var(--sh-surface) !important;
}

.why-section {
  background: transparent;
}

/* ── Cards ────────────────────────────────────────────────────────── */

.card {
  background: var(--sh-surface);
  border-color: var(--sh-border) !important;
  border-radius: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card.border-primary {
  border-color: var(--sh-primary) !important;
}

.card.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-glow) !important;
}

.card-body { color: var(--sh-text); }

.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sh-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-primary-subtle { background: rgba(13,110,253,0.15) !important; }

/* ── Stats ────────────────────────────────────────────────────────── */

.stat-box {
  background: var(--sh-surface);
  border: 1px solid var(--sh-border);
  border-radius: 0.75rem;
  padding: 1rem 0.5rem;
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn-primary {
  background: var(--sh-gradient);
  border: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0b5ed7 0%, #5a32a3 100%);
  border: none;
}

.btn-outline-primary {
  color: var(--sh-primary);
  border-color: var(--sh-primary);
}

.btn-outline-primary:hover {
  background: var(--sh-primary);
  color: #fff;
}

.btn-outline-secondary {
  color: var(--sh-muted);
  border-color: var(--sh-border);
}

.btn-outline-secondary:hover {
  background: var(--sh-surface);
  color: #fff;
  border-color: var(--sh-muted);
}

/* ── Badge ────────────────────────────────────────────────────────── */

.badge.bg-primary-subtle {
  background: rgba(13,110,253,0.15) !important;
  border: 1px solid rgba(13,110,253,0.3);
}

/* ── Footer ───────────────────────────────────────────────────────── */

.sh-footer {
  background: var(--sh-surface);
  border-top: 1px solid var(--sh-border);
  color: var(--sh-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.sh-footer h6 {
  color: var(--sh-text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.sh-footer a {
  color: var(--sh-muted);
  transition: color 0.2s;
}

.sh-footer a:hover { color: #fff; }

.sh-footer .footer-divider {
  border-color: var(--sh-border);
}

/* ── Hint-Icon ────────────────────────────────────────────────────── */

.sh-hint-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(13,110,253,0.2);
  border: 1px solid rgba(13,110,253,0.4);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  color: var(--sh-primary);
  vertical-align: middle;
  margin-left: 0.4rem;
  transition: all 0.2s;
  user-select: none;
}

.sh-hint-trigger:hover {
  background: var(--sh-primary);
  color: #fff;
  transform: scale(1.1);
}

/* ── Spaceship / Cosmo ────────────────────────────────────────────── */

#sh-spaceship {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 80px;
  height: 80px;
  transition: left 2s cubic-bezier(0.4, 0, 0.2, 1),
              top  2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.spaceship-body {
  width: 60px;
  height: 60px;
  margin: 10px;
  position: relative;
  animation: sh-bob 3s ease-in-out infinite;
  cursor: pointer;
  pointer-events: all;
  filter: drop-shadow(0 0 12px rgba(13,110,253,0.6));
}

.spaceship-body svg {
  width: 100%;
  height: 100%;
}

@keyframes sh-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-8px) rotate(5deg); }
}

/* Thruster glow */
.spaceship-thruster {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 20px;
  background: linear-gradient(to bottom, #f97316, transparent);
  border-radius: 0 0 50% 50%;
  animation: sh-thrust 0.3s ease-in-out infinite alternate;
  opacity: 0.9;
}

@keyframes sh-thrust {
  from { height: 16px; opacity: 0.7; }
  to   { height: 24px; opacity: 1.0; }
}

/* Sprechblase */
#sh-bubble {
  position: fixed;
  z-index: 10000;
  background: rgba(15, 17, 23, 0.96);
  border: 1px solid rgba(13,110,253,0.5);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  max-width: 280px;
  font-size: 0.88rem;
  color: var(--sh-text);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(13,110,253,0.2);
  animation: sh-bubble-in 0.3s ease;
  pointer-events: all;
}

#sh-bubble.hidden { display: none; }

#sh-bubble::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 30px;
  width: 16px;
  height: 16px;
  background: rgba(15,17,23,0.96);
  border-right: 1px solid rgba(13,110,253,0.5);
  border-bottom: 1px solid rgba(13,110,253,0.5);
  transform: rotate(45deg);
}

@keyframes sh-bubble-in {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

#sh-bubble .bubble-close {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--sh-primary);
  cursor: pointer;
  font-weight: 600;
}

#sh-bubble .bubble-close:hover { text-decoration: underline; }

/* ── Formulare ────────────────────────────────────────────────────── */

.form-control, .form-select {
  background: var(--sh-surface);
  border-color: var(--sh-border);
  color: var(--sh-text);
  border-radius: 0.5rem;
}

.form-control:focus, .form-select:focus {
  background: var(--sh-surface);
  border-color: var(--sh-primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.25);
}

.form-control::placeholder { color: var(--sh-muted); }

.form-label { color: var(--sh-muted); font-size: 0.9rem; font-weight: 500; }

/* ── Alerts ───────────────────────────────────────────────────────── */

.alert {
  border-radius: 0.75rem;
  border: none;
}

.alert-danger  { background: rgba(220,53,69,0.15);  color: #ff6b81; border: 1px solid rgba(220,53,69,0.3); }
.alert-success { background: rgba(25,135,84,0.15);  color: #71dd8a; border: 1px solid rgba(25,135,84,0.3); }
.alert-info    { background: rgba(13,202,240,0.1);  color: #74e6fa; border: 1px solid rgba(13,202,240,0.3); }
.alert-warning { background: rgba(255,193,7,0.1);   color: #ffd25a; border: 1px solid rgba(255,193,7,0.3); }

/* ── Tables ───────────────────────────────────────────────────────── */

.table {
  color: var(--sh-text);
  border-color: var(--sh-border);
}

.table thead th {
  background: var(--sh-surface);
  color: var(--sh-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--sh-border);
}

.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(255,255,255,0.03); }
.table td { border-color: var(--sh-border); vertical-align: middle; }

/* ── Badges (Status) ──────────────────────────────────────────────── */

.badge-active    { background: rgba(25,135,84,0.2);  color: #71dd8a; border: 1px solid rgba(25,135,84,0.4); }
.badge-pending   { background: rgba(255,193,7,0.15); color: #ffd25a; border: 1px solid rgba(255,193,7,0.4); }
.badge-suspended { background: rgba(220,53,69,0.15); color: #ff6b81; border: 1px solid rgba(220,53,69,0.4); }

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .display-4 { font-size: 2rem; }
  .hero-section { padding-top: 2rem; }
  #sh-spaceship { width: 60px; height: 60px; }
  .spaceship-body { width: 45px; height: 45px; }
}

/* ── Scroll-Animation ─────────────────────────────────────────────── */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Page-Content (CMS-Inhalte) ──────────────────────────────────── */

.page-content h1, .page-content h2, .page-content h3 { margin-top: 2rem; }
.page-content p  { margin-bottom: 1.25rem; }
.page-content ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content a  { color: var(--sh-primary); }

/* ── Legal Pages ──────────────────────────────────────────────────── */

.legal-page { max-width: 800px; margin: 0 auto; }
.legal-page h1 { font-size: 2rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.25rem; margin-top: 2rem; }
