/* ==========================================================================
   Meet Ava — Base Styles (Reset, Typography, Layout)
   ========================================================================== */

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

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

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

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--teal-700);
}

ul, ol {
  list-style: none;
}

/* ── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(var(--text-5xl), 6vw, var(--text-7xl));
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-headline {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: clamp(var(--text-4xl), 4vw, var(--text-5xl));
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.sub-headline {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  line-height: 1.3;
}

.body-large {
  font-size: var(--text-lg);
  line-height: 1.6;
}

.caption {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* ── Section Layout ────────────────────────────────────────────────────────── */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.section-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: var(--z-default);
}

.section-narrow {
  max-width: var(--max-width-narrow);
}

/* ── Section-Varianten ─────────────────────────────────────────────────────── */
.section--light {
  background-color: var(--bg-page);
  color: var(--text-primary);
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark .section-headline,
.section--dark .hero-headline,
.section--dark .sub-headline {
  color: var(--text-on-dark);
}

.section--dark .caption {
  color: rgba(245, 240, 235, 0.6);
}

.section--teal {
  background-color: var(--bg-teal);
  color: var(--text-on-primary);
}

.section--teal h1,
.section--teal h2,
.section--teal h3,
.section--teal .section-headline,
.section--teal .hero-headline {
  color: var(--text-on-primary);
}

.section--gradient-navy {
  background: var(--bg-navy-gradient);
  color: var(--text-on-dark);
}

.section--gradient-navy h1,
.section--gradient-navy h2,
.section--gradient-navy h3,
.section--gradient-navy .section-headline,
.section--gradient-navy .hero-headline {
  color: var(--text-on-dark);
}

.section--gradient-teal {
  background: var(--bg-teal-gradient);
  color: var(--text-on-primary);
}

.section--gradient-warm {
  background: var(--bg-warm-gradient);
  color: var(--text-primary);
}

/* ── Reveal Animation (für Intersection Observer) ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-children .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger-children .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger-children .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger-children .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger-children .reveal:nth-child(6) { transition-delay: 500ms; }

/* ── Utility ───────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.flex-wrap  { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

/* ── Responsive Breakpoints ────────────────────────────────────────────────── */
/* Desktop-first: Standard ist Desktop (>1024px) */

@media (max-width: 1024px) {
  :root {
    --section-padding: var(--space-8) var(--space-5);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--space-7) var(--space-4);
  }

  .section {
    min-height: auto;
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: var(--space-6) var(--space-3);
  }
}
