/* ==========================================================================
   Global Variables & Tokens
   ========================================================================== */
:root {
  /* Colors */
  --bg-color: #070913; /* Very deep blue/black */
  --bg-color-light: #111425;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  
  --accent-blue: #00F0FF;
  --accent-purple: #8B5CF6;
  --accent-pink: #EC4899;
  
  --gradient-glow: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  --gradient-text: linear-gradient(to right, var(--accent-blue), var(--accent-purple));

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: 0 8px 32px 0 rgba(139, 92, 246, 0.15);
  
  /* Typography */
  --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Base Styles & Resets
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.text-gradient {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 1rem 5%;
  background: rgba(7, 9, 19, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-glow);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--gradient-glow);
  border-radius: 50px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/hero_bg.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.4;
  /* Sanfter Übergang (Fade-out) an der unteren Kante */
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* Ambient glow blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
}

.blob-1 {
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: var(--accent-purple);
}

.blob-2 {
  bottom: 10%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
}

.hero-content {
  max-width: 800px;
  z-index: 10;
  position: relative;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
  padding: 100px 5%;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Services Section (Glassmorphism Cards)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-glow);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(139, 92, 246, 0.3);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Reviews / Testimonials
   ========================================================================== */
.reviews-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.review-card {
  background: var(--bg-color-light);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  border: 1px solid var(--glass-border);
}

.stars {
  color: #FBBF24; /* Gold */
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.review-text {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.reviewer-name {
  font-weight: 600;
  font-family: var(--font-heading);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-wrap {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-image {
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
}

.placeholder-box {
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(10px);
}

.placeholder-box::after {
  display: none; /* Kein Glow-Border um den leeren Box */
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Add a neon border effect around the image */
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 2px solid transparent;
  background: var(--gradient-glow) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Interactive Animation (Hover Glow)
   ========================================================================== */
.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 240, 255, 0.05) 30%, transparent 70%);
  border-radius: 50%;
  pointer-events: none; /* Klicks gehen durch */
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  mix-blend-mode: screen;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* ==========================================================================
   Legal Pages (Impressum / Datenschutz)
   ========================================================================== */
.legal-container {
  max-width: 800px;
  margin: 150px auto 100px auto;
  padding: 3rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-glow);
  position: relative;
  z-index: 10;
}

.legal-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-container h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.legal-container p, .legal-container ul, .legal-container a {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-container ul {
  padding-left: 1.5rem;
}

.legal-container a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--bg-color-light);
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-links a, .footer-contact p {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 3rem; }
  .about-wrap { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-links { display: none; /* simple mobile nav override needed */ }
  .hero-content h1 { font-size: 2.5rem; }
  .section-header h2 { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
}
