/* ========================================
   Self-hosted Inter font (DSGVO-konform)
   ======================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --border: #222222;
  --border-light: #2a2a2a;

  --text-primary: #ededed;
  --text-secondary: #a1a1a1;
  --text-muted: #6b6b6b;

  --accent: #3ecf8e;
  --accent-dim: rgba(62, 207, 142, 0.12);
  --accent-secondary: #0ea5e9;
  --gradient: linear-gradient(135deg, #3ecf8e 0%, #0ea5e9 100%);
  --gradient-text: linear-gradient(135deg, #3ecf8e 0%, #38bdf8 100%);

  --nav-height: 64px;
  --container-max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: color var(--transition);
}

.nav-logo:hover {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--accent-dim);
  color: var(--accent) !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(62, 207, 142, 0.2);
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: rgba(62, 207, 142, 0.2) !important;
  border-color: rgba(62, 207, 142, 0.4);
}

/* Language Toggle */
.lang-toggle {
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.05em;
}

.lang-toggle:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.lang-toggle-mobile {
  display: none;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    gap 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}

.mobile-menu.active {
  max-height: 300px;
  padding: 24px;
  gap: 16px;
  opacity: 1;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    color var(--transition),
    opacity 0.3s ease,
    transform 0.3s ease;
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.active a:nth-child(1) {
  transition-delay: 0.05s;
}
.mobile-menu.active a:nth-child(2) {
  transition-delay: 0.1s;
}
.mobile-menu.active a:nth-child(3) {
  transition-delay: 0.15s;
}
.mobile-menu.active a:nth-child(4) {
  transition-delay: 0.2s;
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(62, 207, 142, 0.08) 0%,
    rgba(14, 165, 233, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(62, 207, 142, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: #4dd89a;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(62, 207, 142, 0.25);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
}

.hero-image-border {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(62, 207, 142, 0.4),
    rgba(14, 165, 233, 0.4),
    rgba(62, 207, 142, 0.1)
  );
}

.hero-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-primary);
}

/* Hero Stats */
.hero-stats {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.stat-plus {
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.stat-label-large {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Services Cards
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.services-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.services-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 20px;
}

.services-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.services-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   Expertise Cards
   ======================================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.expertise-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.expertise-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
  opacity: 0.8;
}

.expertise-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.expertise-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   Focus Cards (AI Section)
   ======================================== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.focus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.focus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.focus-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

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

.focus-card-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.focus-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.focus-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.focus-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-card-tags span {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
}

/* ========================================
   Contact Section
   ======================================== */
.section-contact {
  padding: 120px 0;
}

.contact-wrapper {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px;
  text-align: center;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(62, 207, 142, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-content .section-title {
  margin-bottom: 16px;
}

.contact-content .section-subtitle {
  max-width: 480px;
  margin: 0 auto 32px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 36px;
}

.contact-link,
.contact-detail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--accent);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links h4,
.footer-legal h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-legal p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-legal a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* ========================================
   Legal Pages
   ======================================== */
.legal-page {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-page .legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  transition: color var(--transition);
}

.legal-page .legal-back:hover {
  color: var(--accent);
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-page .legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-page h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-page a {
  color: var(--accent);
  transition: opacity var(--transition);
}

.legal-page a:hover {
  opacity: 0.8;
}

.footer-bottom {
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   Animations
   ======================================== */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.services-grid .animate-in:nth-child(2),
.expertise-grid .animate-in:nth-child(2),
.focus-grid .animate-in:nth-child(2) {
  transition-delay: 0.1s;
}

.services-grid .animate-in:nth-child(3),
.expertise-grid .animate-in:nth-child(3),
.focus-grid .animate-in:nth-child(3) {
  transition-delay: 0.2s;
}

.expertise-grid .animate-in:nth-child(4) {
  transition-delay: 0.3s;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 48px;
  }

  .hero-image-border {
    width: 280px;
    height: 280px;
  }

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

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

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-actions {
    display: flex;
  }

  .lang-toggle-mobile {
    display: inline-flex;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 48px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    order: 1;
  }

  .hero-image-wrapper {
    order: 0;
    display: flex;
    justify-content: center;
  }

  .hero-image-border {
    width: 200px;
    height: 200px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .stats-grid {
    flex-direction: column;
    gap: 24px;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
  }

  .section {
    padding: 80px 0;
  }

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

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

  .contact-wrapper {
    padding: 48px 24px;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
