/* InfraHost – zentrale Styles */

:root {
  --infra-dark: #0d1117;
  --infra-darker: #010409;
  --infra-accent: #58a6ff;
  --infra-accent-hover: #79b8ff;
  --infra-muted: #8b949e;
  --infra-card: #161b22;
  --infra-border: #30363d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--infra-darker);
  color: #e6edf3;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: 
    radial-gradient(ellipse 60% 80% at 20% 30%, rgba(88, 166, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 70% at 80% 40%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Navbar – Scroll-Effekt */
.navbar {
  background: rgba(13, 17, 23, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(13, 17, 23, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom-color: var(--infra-border);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #fff !important;
  text-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
}

.nav-link {
  color: var(--infra-muted) !important;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--infra-accent) !important;
}

/* Dropdown – Dark Theme */
.navbar .dropdown-menu {
  background: var(--infra-card);
  border: 1px solid var(--infra-border);
  border-radius: 8px;
  padding: 0.5rem 0;
}

.navbar .dropdown-item {
  color: var(--infra-muted);
  padding: 0.5rem 1rem;
}

.navbar .dropdown-item:hover {
  background: rgba(88, 166, 255, 0.1);
  color: var(--infra-accent);
}

.navbar .dropdown-divider {
  border-color: var(--infra-border);
}

.navbar .dropdown-item.text-muted {
  color: var(--infra-muted) !important;
  font-size: 0.85rem;
}

.btn-outline-infra {
  background: linear-gradient(#010409, #010409) padding-box,
    linear-gradient(90deg, #22d3ee, #58a6ff, #8b5cf6) border-box;
  border: 2px solid transparent;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-outline-infra:hover {
  background: linear-gradient(90deg, #22d3ee, #58a6ff) padding-box;
  border-color: transparent;
  color: #010409;
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(88, 166, 255, 0.35), 0 0 30px rgba(139, 92, 246, 0.2);
}

.btn-infra {
  background: linear-gradient(90deg, #22d3ee, #38bdf8, #58a6ff);
  color: var(--infra-darker);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(34, 211, 238, 0.3);
}

.btn-infra:hover {
  background: linear-gradient(90deg, #38bdf8, #58a6ff);
  color: var(--infra-darker);
  transform: translateY(-2px);
  box-shadow: 0 4px 30px rgba(88, 166, 255, 0.5), 0 0 40px rgba(34, 211, 238, 0.2);
}

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero .container {
  z-index: 2;
}

/* Hero – Lichteffekte (Blau → Lila wie Referenz) */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse at 30% 40%, rgba(34, 211, 238, 0.2) 0%, rgba(88, 166, 255, 0.1) 40%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 50%, rgba(139, 92, 246, 0.18) 0%, rgba(168, 85, 247, 0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: heroGlowAlt 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.7; transform: scale(1) translate(0, 0); }
  100% { opacity: 1; transform: scale(1.08) translate(2%, 2%); }
}

@keyframes heroGlowAlt {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Zusätzliche Licht-Orbs im Hero */
.hero-light-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.4;
}

.hero-light-orb-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  left: 10%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, rgba(88, 166, 255, 0.1) 50%, transparent 70%);
  animation: orbFloat 10s ease-in-out infinite;
}

.hero-light-orb-2 {
  width: 350px;
  height: 350px;
  top: 30%;
  right: 5%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
  animation: orbFloat 12s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.1); }
}

.hero .hero-content {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-gradient-text {
  background: linear-gradient(90deg, #22d3ee, #58a6ff, #8b5cf6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero .lead {
  color: var(--infra-muted);
  font-size: 1.2rem;
  max-width: 560px;
  margin-bottom: 2rem;
}

.page-header {
  padding: 6rem 0 3rem;
  border-bottom: 1px solid var(--infra-border);
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-header h1 {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-header .lead {
  color: var(--infra-muted);
  margin-bottom: 0;
}

.section-title {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--infra-muted);
  margin-bottom: 3rem;
}

.card-infra {
  background: var(--infra-card);
  border: 1px solid var(--infra-border);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-infra::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--infra-accent), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card-infra:hover {
  border-color: var(--infra-accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(88, 166, 255, 0.1);
}

.card-infra:hover::before {
  opacity: 0.6;
}

.card-infra .card-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.card-infra .card-subtitle {
  color: var(--infra-accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.card-infra .card-text {
  color: var(--infra-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.card-infra .badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.card-infra .badge-infra {
  background: rgba(88, 166, 255, 0.15);
  color: var(--infra-accent);
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.stats-section {
  padding: 4rem 0;
  border-top: 1px solid var(--infra-border);
  border-bottom: 1px solid var(--infra-border);
}

.stat-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
  color: var(--infra-accent-hover);
}

.stat-number {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--infra-accent);
  line-height: 1.2;
  transition: color 0.3s ease;
}

.stat-label {
  color: var(--infra-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.cta-section {
  padding: 5rem 0;
}

.cta-section .section-title {
  margin-bottom: 1rem;
}

.cta-section .lead {
  color: var(--infra-muted);
  margin-bottom: 2rem;
}

footer {
  background: var(--infra-dark);
  border-top: 1px solid var(--infra-border);
  padding: 3rem 0 2rem;
}

footer .footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

footer .footer-tagline {
  color: var(--infra-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

footer a {
  color: var(--infra-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--infra-accent);
}

footer .footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--infra-border);
  color: var(--infra-muted);
  font-size: 0.85rem;
}

.badge-soon {
  background: rgba(210, 153, 34, 0.2);
  color: #d4a534;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* Unterseiten: Content-Bereiche */
.content-section {
  padding: 3rem 0;
}

.form-infra .form-control,
.form-infra .form-select {
  background: var(--infra-card);
  border: 1px solid var(--infra-border);
  color: #e6edf3;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-infra .form-control:focus {
  background: var(--infra-card);
  border-color: var(--infra-accent);
  color: #e6edf3;
  box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.25);
}

.form-infra label {
  color: var(--infra-muted);
  font-weight: 500;
}

.text-muted-infra {
  color: var(--infra-muted);
}

.login-card {
  max-width: 400px;
  margin: 0 auto;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--infra-card);
  border: 2px solid var(--infra-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--infra-muted);
  font-weight: 700;
  transition: all 0.3s ease;
}

.card-infra:hover .team-avatar {
  border-color: var(--infra-accent);
  box-shadow: 0 0 20px rgba(88, 166, 255, 0.2);
}

/* Scroll-Animationen */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* Link-Hover mit Unterstreichung */
footer a, .nav-link {
  position: relative;
}

footer a::after,
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--infra-accent);
  transition: width 0.3s ease;
}

footer a:hover::after,
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

