/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --bg-dark: #1a1d27;
  --bg-light: #ffffff;
  --blue-accent: #0036F7;
  --blue-bright: #4D7CFF;
  --blue-light: #7BA4FF;
  --text-dark: #1a1d27;
  --text-dark-secondary: #555a6e;
  --text-dark-muted: #8b90a0;
  --text-light: #ffffff;
  --text-light-secondary: rgba(255, 255, 255, 0.7);
  --text-light-muted: rgba(255, 255, 255, 0.4);
  --border-light: #e2e4ea;
  --border-dark: rgba(255, 255, 255, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   ANIMATED GRADIENT BACKGROUND
   ============================================ */
.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-dark);
  overflow: hidden;
  pointer-events: none;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: blobMove 25s ease-in-out infinite;
}

.gradient-blob:nth-child(1) {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--blue-accent), transparent 70%);
  top: -15%;
  left: -10%;
  animation-duration: 28s;
}

.gradient-blob:nth-child(2) {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue-bright), transparent 70%);
  bottom: -20%;
  right: -10%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.gradient-blob:nth-child(3) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #1a3a8e, transparent 70%);
  top: 40%;
  left: 50%;
  animation-duration: 30s;
  animation-delay: -10s;
}

@keyframes blobMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.05); }
  50% { transform: translate(-30px, 60px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  background: rgba(26, 29, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-header.on-light {
  background: var(--bg-light);
  border-bottom-color: var(--border-light);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo .logo-light {
  display: none;
}

.nav-header.on-light .logo-dark {
  display: none;
}

.nav-header.on-light .logo-light {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-light-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-light);
}

.nav-header.on-light .nav-links a {
  color: var(--text-dark-secondary);
}

.nav-header.on-light .nav-links a:hover {
  color: var(--text-dark);
}

.nav-cta {
  padding: 8px 20px !important;
  border-radius: 50px;
  background: var(--blue-accent) !important;
  color: white !important;
  transition: background 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--blue-bright) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-header.on-light .nav-toggle span {
  background: var(--text-dark);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* Light sections (white background) */
.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
  z-index: 2;
}

.section-light .label {
  color: var(--text-dark-muted);
}

.section-light .label-line::before {
  background: var(--text-dark-muted);
}

.section-light .section-title {
  color: var(--text-dark);
}

.section-light .italic-accent {
  color: var(--blue-accent);
}

.section-light .body-text,
.section-light .body-text-lg {
  color: var(--text-dark-secondary);
}

.section-light .divider {
  background: var(--blue-accent);
}

.section-light .stat-number {
  color: var(--blue-accent);
}

.section-light .stat-label {
  color: var(--text-dark-muted);
}

.section-light .subsection-title {
  color: var(--text-dark-secondary);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.label-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.label-line::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--text-light-muted);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 20px;
}

.italic-accent {
  font-style: italic;
  color: var(--blue-light);
  font-weight: 600;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
}

.subsection-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 56px;
  margin-bottom: 24px;
  color: var(--text-light-secondary);
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.body-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light-secondary);
  max-width: 640px;
  margin-top: 12px;
}

.body-text-lg {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-light-secondary);
  max-width: 700px;
  margin-top: 28px;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--blue-accent);
  border-radius: 2px;
  margin: 20px 0;
}

/* ============================================
   PROFILE IMAGE
   ============================================ */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

/* ============================================
   HERO META
   ============================================ */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.hero-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.hero-sep {
  color: var(--text-light-muted);
}

.hero-url {
  color: var(--text-light-muted);
  font-size: 0.9rem;
}

/* ============================================
   ABOUT GRID
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 20px;
}

.about-image .hero-image-wrapper {
  max-width: 280px;
}

.about-stats-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.stat-item {
  flex: 0 0 auto;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-bright);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ============================================
   CARDS (Clean, flat)
   ============================================ */
.glass-card {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.3s ease;
}

.glass-card::before {
  display: none;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Light section cards */
.section-light .glass-card {
  border-color: var(--border-light);
  background: var(--bg-light);
}

.section-light .glass-card:hover {
  border-color: #c8cad2;
}

.section-light .card-title {
  color: var(--text-dark);
}

.section-light .card-text {
  color: var(--text-dark-secondary);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 54, 247, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.section-light .service-icon {
  background: rgba(0, 54, 247, 0.06);
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
}

/* ============================================
   FORMAT SLIDER
   ============================================ */
.format-slider {
  margin-top: 40px;
}

.format-slides {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
}

.format-slide {
  display: none;
  padding: 48px 40px;
  animation: formatFadeIn 0.4s ease;
}

.format-slide.active {
  display: block;
}

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

.format-slide-header {
  margin-bottom: 32px;
}

.format-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: 12px;
}

.format-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 16px;
}

.format-title em {
  font-style: italic;
  color: var(--blue-light);
}

.format-desc {
  font-size: 0.95rem;
  color: var(--text-light-secondary);
  line-height: 1.7;
  max-width: 700px;
}

.format-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.format-benefit {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 24px;
}

.format-benefit h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 8px;
}

.format-benefit p {
  font-size: 0.85rem;
  color: var(--text-light-secondary);
  line-height: 1.6;
}

.format-info-bar {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.format-info-item {
  flex: 1;
  padding: 16px 24px;
  background: var(--blue-accent);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.format-info-item:last-child {
  border-right: none;
}

.format-info-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  margin-bottom: 4px;
}

.format-info-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}

.format-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.format-dots {
  display: flex;
  gap: 8px;
}

.format-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.format-dot.active {
  width: 28px;
  border-radius: 5px;
  background: var(--blue-bright);
}

.format-arrows {
  display: flex;
  gap: 8px;
}

.format-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.format-arrow:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .format-slide {
    padding: 32px 20px;
  }

  .format-title {
    font-size: 1.4rem;
  }

  .format-benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .format-info-bar {
    flex-direction: column;
  }

  .format-info-item {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }

  .format-info-item:last-child {
    border-bottom: none;
  }
}

/* ============================================
   METHODS GRID
   ============================================ */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.method-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  transition: border-color 0.3s ease;
}

.method-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.section-light .method-pill {
  border-color: var(--border-light);
}

.section-light .method-pill:hover {
  border-color: #c8cad2;
}

.method-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.method-name {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.section-light .method-name {
  color: var(--text-dark);
}

.method-desc {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  line-height: 1.4;
}

.section-light .method-desc {
  color: var(--text-dark-muted);
}

/* ============================================
   TOOLS TAGS
   ============================================ */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tool-tag {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-dark);
  color: var(--text-light-secondary);
  transition: border-color 0.3s ease;
}

.tool-tag:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.section-light .tool-tag {
  border-color: var(--border-light);
  color: var(--text-dark-secondary);
}

.section-light .tool-tag:hover {
  border-color: #c8cad2;
}

/* ============================================
   PUBLICATIONS
   ============================================ */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.publication-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: auto auto;
  gap: 0 20px;
  align-items: start;
}

.pub-year {
  grid-row: 1 / -1;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-accent);
  padding-top: 2px;
}

.pub-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.pub-authors {
  font-size: 0.85rem;
  color: var(--text-light-secondary);
}

.pub-journal {
  font-size: 0.82rem;
  color: var(--text-light-muted);
  font-style: italic;
}

.section-light .pub-title {
  color: var(--text-dark);
}

.section-light .pub-authors {
  color: var(--text-dark-secondary);
}

.section-light .pub-journal {
  color: var(--text-dark-muted);
}

/* ============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================ */
.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 36px;
  margin-bottom: 8px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dark-secondary);
  margin-bottom: 12px;
}

/* ============================================
   LOGO GRID (Partner & Kunden)
   ============================================ */
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 100px 140px;
  margin-top: 140px;
  margin-bottom: 60px;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.logo-item img.logo-lg {
  height: 160px;
}

/* ============================================
   CONTACT
   ============================================ */
.section-contact {
  text-align: center;
}

.section-contact .label-line {
  justify-content: center;
}

.section-contact .label-line::before {
  display: none;
}

.section-contact .section-title {
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  background: var(--blue-accent);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: var(--blue-bright);
}

.section-cta {
  text-align: center;
  padding-top: 48px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 32px 0;
  border-top: 1px solid var(--border-dark);
}

.section-light + .site-footer {
  background: var(--bg-light);
  border-top-color: var(--border-light);
  color: var(--text-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-name {
  font-weight: 600;
}

.footer-sep {
  color: var(--text-light-muted);
}

.footer-role {
  color: var(--text-light-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-light-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.3s ease;
}

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

.section-light + .site-footer .footer-sep,
.section-light + .site-footer .footer-role {
  color: var(--text-dark-muted);
}

.section-light + .site-footer .footer-links a {
  color: var(--text-dark-muted);
}

.section-light + .site-footer .footer-links a:hover {
  color: var(--text-dark);
}

/* ============================================
   REVEAL ANIMATIONS (subtle)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-group .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-group .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger-group .reveal:nth-child(3) { transition-delay: 0.19s; }
.stagger-group .reveal:nth-child(4) { transition-delay: 0.26s; }
.stagger-group .reveal:nth-child(5) { transition-delay: 0.33s; }
.stagger-group .reveal:nth-child(6) { transition-delay: 0.40s; }
.stagger-group .reveal:nth-child(7) { transition-delay: 0.47s; }
.stagger-group .reveal:nth-child(8) { transition-delay: 0.54s; }

/* ============================================
   RESPONSIVE: TABLET
   ============================================ */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    gap: 40px;
  }
}

/* ============================================
   RESPONSIVE: MOBILE
   ============================================ */
@media (max-width: 768px) {
  .nav-header {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1000;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image {
    display: flex;
    justify-content: center;
  }

  .about-image .hero-image-wrapper {
    max-width: 200px;
  }

  .about-stats-row {
    gap: 24px;
  }

  .methods-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hero-sep {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 4px;
  }

  .publication-card {
    grid-template-columns: 1fr;
  }

  .pub-year {
    grid-row: auto;
    margin-bottom: 4px;
  }
}
