/* ==========================================================================
   KAMAlogic – Modern Design with Premium Animations
   Mobile-First Design | 8px Spacing System | Smooth Interactions
   ========================================================================== */

/* ==========================================================================
   CSS Reset & Base Styles
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #111827;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

/* ==========================================================================
   CSS Variables – Premium Design System
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #0B1F33;
  --color-secondary: #5F6B7A;
  --color-accent: #2563EB;
  --color-accent-light: #3B82F6;
  --color-text: #111827;
  --color-text-light: #6B7280;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F3F4F6;
  --color-bg-dark: #1F2937;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0B1F33 0%, #1a3a52 100%);
  --gradient-accent: linear-gradient(135deg, #2563EB 0%, #1d4ed8 100%);
  --gradient-sunset: linear-gradient(135deg, #FF6B6B 0%, #FF8E72 100%);
  --gradient-cool: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);

  /* Spacing (8px System) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  /* Typography */
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Container */
  --container-max: 1200px;
  --container-padding: var(--space-2);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Typography – Premium Styles
   ========================================================================== */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-3xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-2);
  line-height: 1.8;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

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

.section {
  padding: var(--space-8) 0;
  position: relative;
}

/* ==========================================================================
   Premium Animations & Transitions
   ========================================================================== */

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
  }
}

/* ==========================================================================
   Hero Section – Premium Design
   ========================================================================== */

.hero {
  background: var(--gradient-primary);
  color: var(--color-bg);
  padding: var(--space-12) 0 var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(40px);
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(40px);
  animation: float 8s ease-in-out infinite reverse;
}

.logo-container {
  margin-bottom: var(--space-5);
  animation: fadeInDown 1s ease-out;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-base);
}

.hero-logo:hover {
  transform: scale(1.05);
}

.hero-headline {
  color: var(--color-bg);
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-3);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.2s both;
  position: relative;
  z-index: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subline {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-5);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.4s both;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.6s both;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Buttons – Premium Interactions
   ========================================================================== */

.btn {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow), height var(--transition-slow);
  z-index: -1;
}

.btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-bg);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

/* ==========================================================================
   Services Grid – Premium Cards
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.service-card {
  background: var(--color-bg);
  padding: var(--space-5);
  border-radius: 16px;
  border: 2px solid #E5E7EB;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: 16px;
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
  transform: translateY(-8px);
}

.service-title {
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-xl);
  position: relative;
  z-index: 1;
}

.service-description {
  color: var(--color-text-light);
  font-size: var(--font-size-base);
  line-height: 1.8;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Benefits List – Premium Design
   ========================================================================== */

.benefits-list {
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 14px;
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-primary);
  border: 2px solid #E5E7EB;
  transition: all var(--transition-base);
  animation: fadeInUp 0.8s ease-out both;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }

.benefit-item:hover {
  transform: translateX(8px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.benefit-item::before {
  content: '✓';
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  background: var(--gradient-accent);
  font-weight: 700;
  font-size: var(--font-size-lg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--color-text-light);
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */

.section-title {
  text-align: center;
  margin-bottom: var(--space-6);
  animation: fadeInDown 0.8s ease-out;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin: var(--space-3) auto 0;
  animation: slideInLeft 0.8s ease-out 0.3s both;
}

/* ==========================================================================
   Sections – Color Variations
   ========================================================================== */

.section-nutzen {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  position: relative;
}

.section-cta {
  background: var(--gradient-primary);
  color: var(--color-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(40px);
  animation: float 8s ease-in-out infinite;
}

.section-cta .section-title {
  color: var(--color-bg);
  font-size: var(--font-size-2xl);
}

.section-cta .section-title::after {
  background: rgba(255, 255, 255, 0.3);
}

.cta-text {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-cta .btn {
  animation: fadeInUp 0.8s ease-out 0.4s both;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Impressum Section
   ========================================================================== */

.section-impressum {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.impressum-address {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-5);
  background: #fff;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-style: normal;
  color: var(--color-text-light);
  line-height: 1.9;
  transition: all var(--transition-base);
  animation: fadeInUp 0.8s ease-out;
}

.impressum-address:hover {
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

.impressum-address strong {
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  font-weight: 700;
  display: block;
  margin-bottom: var(--space-1);
}

.impressum-address a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
}

.impressum-address a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.impressum-address a:hover {
  color: var(--color-accent-light);
}

.impressum-address a:hover::after {
  width: 100%;
}

.impressum-link-row {
  margin-top: var(--space-3);
  text-align: center;
}

.impressum-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
}

.impressum-link:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-accent-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-6) 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
  font-size: var(--font-size-sm);
  margin-bottom: 0;
  font-weight: 500;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-4);
  }

  h1 {
    font-size: var(--font-size-4xl);
  }

  .hero {
    padding: var(--space-16) 0 var(--space-10);
  }

  .hero-logo {
    max-width: 280px;
  }

  .hero-headline {
    font-size: var(--font-size-4xl);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: var(--space-10) 0;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--font-size-5xl);
  }

  .hero {
    padding: var(--space-16) 0 var(--space-10);
  }

  .hero-logo {
    max-width: 320px;
  }

  .hero-headline {
    font-size: var(--font-size-5xl);
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }
}

/* ==========================================================================
   Accessibility & Preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}

