/*
 * Rating Solutions - FINAL HYBRID (Dark + Cyan + Earth Globe)
 * Kombiniert: Dark Mode Layout + Cyan Akzente + Erdkugel Hero
 */

:root {
  /* Cyan Primary - wie im Screenshot */
  --primary: #06b6d4;        /* Cyan-500 */
  --primary-dark: #0891b2;   /* Cyan-600 */
  --primary-light: #22d3ee;  /* Cyan-400 */
  --primary-glow: #67e8f9;   /* Cyan-300 */
  
  /* Secondary */
  --secondary: #3b82f6;      /* Blue-500 */
  --accent: #8b5cf6;         /* Violet-500 */
  
  /* Dark Backgrounds - wie Dark Mode */
  --dark: #0a0e1a;           /* Sehr dunkles Navy */
  --dark-light: #0f172a;     /* Slate-900 */
  --dark-card: #1e293b;      /* Slate-800 */
  --dark-elevated: #334155;  /* Slate-700 */
  
  /* Text */
  --white: #ffffff;
  --gray-light: #e2e8f0;
  --gray: #94a3b8;
  --gray-dark: #64748b;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10,14,26,0.85) 0%, rgba(15,23,42,0.9) 100%);
  --gradient-card: linear-gradient(135deg, rgba(30,41,59,0.95) 0%, rgba(15,23,42,0.98) 100%);
  
  /* Glow Effects */
  --glow-cyan: 0 0 40px rgba(6,182,212,0.4);
  --glow-cyan-strong: 0 0 60px rgba(6,182,212,0.6);
  
  /* Shadows */
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.7);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.8);
  --shadow-2xl: 0 25px 50px rgba(0,0,0,0.9);
  
  /* Borders */
  --border-subtle: 1px solid rgba(255,255,255,0.08);
  --border-cyan: 1px solid rgba(6,182,212,0.3);
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 2rem;
  --container-max: 1200px;
  
  /* Transitions */
  --transition-base: 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--gray-light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
  font-size: 1rem;
  color: var(--gray);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(20px);
  border-bottom: var(--border-subtle);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10,14,26,0.98);
  border-bottom: var(--border-cyan);
  box-shadow: var(--glow-cyan);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}

.logo-img {
  width: 40px;
  height: 40px;
  transition: all var(--transition-base);
  filter: drop-shadow(0 0 10px var(--primary));
}

.logo:hover .logo-img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px var(--primary-glow));
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-light);
  text-shadow: 0 0 15px rgba(6,182,212,0.5);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white) !important;
  padding: 0.65rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 0 20px rgba(6,182,212,0.4);
  transition: all var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(6,182,212,0.6);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-light);
}

/* HERO SECTION - MIT ERDKUGEL! 🌍 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* ERDKUGEL BACKGROUND - wie in Dark Mode! */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&h=1080&fit=crop') center/cover;
  opacity: 0.35;
  animation: slowZoom 20s ease-in-out infinite;
}

@keyframes slowZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Cyan Glow Overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(6,182,212,0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(59,130,246,0.15) 0%, transparent 40%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6,182,212,0.15);
  border: var(--border-cyan);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(6,182,212,0.2);
}

.hero-badge::before {
  content: '🧠';
  font-size: 1.2rem;
}

.hero h1 {
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray-light);
  margin-bottom: 2rem;
  line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.btn-hero-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 0 25px rgba(6,182,212,0.5);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(6,182,212,0.7);
}

.btn-hero-secondary {
  background: transparent;
  color: var(--primary-light);
  border: var(--border-cyan);
}

.btn-hero-secondary:hover {
  background: rgba(6,182,212,0.1);
  box-shadow: 0 0 20px rgba(6,182,212,0.3);
}

/* Stats Section */
.hero-stats {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--dark-card);
  border-radius: 16px;
  border: var(--border-subtle);
  box-shadow: var(--shadow-xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

/* Services Grid */
.services {
  padding: var(--section-padding);
  background: var(--dark-light);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--gray-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: var(--gradient-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: var(--border-subtle);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.service-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-cyan);
  transform: translateY(-5px);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(6,182,212,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border: var(--border-cyan);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* Projects Section */
.projects-section {
  padding: var(--section-padding);
  background: var(--dark);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--dark-card);
  border-radius: 16px;
  overflow: hidden;
  border: var(--border-subtle);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.project-card.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-cyan);
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #0a0e1a;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-category {
  display: inline-block;
  background: rgba(6,182,212,0.15);
  color: var(--primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  border: var(--border-cyan);
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.project-card p {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  background: var(--dark-elevated);
  color: var(--gray-light);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  border: var(--border-subtle);
  transition: all var(--transition-base);
}

.project-tech span:hover {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary);
}

/* About Section */
.about {
  padding: var(--section-padding);
  background: var(--dark-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h2 {
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  color: var(--gray-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tech-badge {
  background: var(--dark-elevated);
  color: var(--primary-light);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: var(--border-cyan);
  transition: all var(--transition-base);
}

.tech-badge:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 0 20px rgba(6,182,212,0.4);
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  border: var(--border-cyan);
  box-shadow: var(--glow-cyan);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background: var(--dark);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info p {
  color: var(--gray-light);
  margin-bottom: 2rem;
}

.contact-form {
  background: var(--dark-card);
  padding: 2.5rem;
  border-radius: 16px;
  border: var(--border-subtle);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--white);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: var(--border-subtle);
  border-radius: 8px;
  background: var(--dark-elevated);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
  background: var(--dark-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 0 20px rgba(6,182,212,0.4);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(6,182,212,0.6);
}

/* Footer */
.footer {
  background: var(--dark-light);
  color: var(--gray);
  padding: 3rem 2rem 2rem;
  border-top: var(--border-subtle);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  transition: color var(--transition-base);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: var(--border-subtle);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* Page Header */
.page-header {
  background: var(--dark);
  padding: 10rem 2rem 4rem;
  text-align: center;
  border-bottom: var(--border-subtle);
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: var(--gray-light);
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== BYON APP - PHONE MOCKUP CAROUSEL ===== */
.project-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--dark-card) 0%, #162033 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.project-category-featured {
  background: linear-gradient(135deg, #06b6d4, #3b82f6) !important;
  color: #fff !important;
}

.byon-showcase {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 2rem;
}

@media (max-width: 768px) {
  .byon-showcase {
    flex-direction: column;
    gap: 2rem;
  }
}

/* Phone Mockup */
.phone-mockup {
  flex-shrink: 0;
}

.phone-frame {
  width: 220px;
  height: 440px;
  background: #1a1a2e;
  border-radius: 32px;
  padding: 8px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.1);
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: #1a1a2e;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: #0f172a;
  overflow: hidden;
  position: relative;
}

.phone-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateX(30px);
}

.phone-slide.active {
  opacity: 1;
  transform: translateX(0);
}

/* Byon App Screens */
.byon-screen {
  padding: 28px 12px 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #e2e8f0;
  font-size: 11px;
}

.byon-header {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.byon-news-item {
  display: flex;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: flex-start;
}

.byon-news-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  flex-shrink: 0;
}

.byon-news-thumb.accent {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.byon-news-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.byon-news-title {
  font-weight: 500;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.byon-news-source {
  color: #64748b;
  font-size: 9px;
}

.byon-nav-bar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 10px;
}

.byon-nav-item.active {
  color: #06b6d4;
}

.byon-nav-item:not(.active) {
  color: #64748b;
}

/* Settings Screen */
.byon-setting-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 11px;
}

.byon-badge {
  background: rgba(6,182,212,0.2);
  color: #06b6d4;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9px;
}

.byon-badge.on {
  background: rgba(34,197,94,0.2);
  color: #22c55e;
}

/* Widget Screen */
.byon-widget-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.byon-widget-card {
  background: #1e293b;
  border-radius: 16px;
  padding: 12px;
  width: 90%;
  border: 1px solid rgba(255,255,255,0.1);
}

.byon-widget-title {
  font-size: 12px;
  font-weight: 600;
  color: #06b6d4;
  display: block;
  margin-bottom: 8px;
}

.byon-widget-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 9.5px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.byon-widget-time {
  color: #64748b;
  font-size: 9px;
}

.byon-widget-label {
  text-align: center;
  color: #64748b;
  font-size: 10px;
  margin-top: 8px;
}

/* Dots Navigation */
.phone-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
}

.phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.phone-dot.active {
  background: #06b6d4;
}

.byon-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.byon-content p {
  color: var(--gray-light);
  line-height: 1.6;
}

.byon-swipe-hint {
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.7;
  animation: pulse-hint 4s infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
