/* ============================================================
   TRELONIX – Global Design System
   Apple-inspirierter Stil | Version 1.0
   ============================================================ */

/* ── Fonts ── */
/* @import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&display=swap');
Fallback Stack, da SF Pro nur auf Apple-Geräten nativ vorhanden ist */

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Farben */
  --color-bg:          #000000;
  --color-bg-1:        #0a0a0a;
  --color-bg-2:        #111111;
  --color-bg-card:     rgba(255, 255, 255, 0.04);
  --color-border:      rgba(255, 255, 255, 0.08);
  --color-border-hover:rgba(255, 255, 255, 0.18);

  --color-text-primary:   #f5f5f7;
  --color-text-secondary: #a1a1a6;
  --color-text-muted:     #6e6e73;

  --color-accent:       #2997ff;   /* Apple Blue */
  --color-accent-hover: #0a84ff;
  --color-accent-glow:  rgba(41, 151, 255, 0.25);

  --color-gradient-hero: linear-gradient(
    135deg,
    #1a1a2e 0%,
    #16213e 40%,
    #0f3460 70%,
    #000000 100%
  );

  /* Typografie */
  --font-main: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
               'Helvetica Neue', Arial, sans-serif;

  --font-size-xs:   0.75rem;   /* 12px */
  --font-size-sm:   0.875rem;  /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-md:   1.125rem;  /* 18px */
  --font-size-lg:   1.375rem;  /* 22px */
  --font-size-xl:   1.75rem;   /* 28px */
  --font-size-2xl:  2.5rem;    /* 40px */
  --font-size-3xl:  3.5rem;    /* 56px */
  --font-size-4xl:  5rem;      /* 80px */

  /* Abstände */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Schatten */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--color-accent-glow);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   500ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
}

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

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

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

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ── Utility Classes ── */
.text-center   { text-align: center; }
.text-accent   { color: var(--color-accent); }
.text-muted    { color: var(--color-text-secondary); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Scroll-Reveal (Intersection Observer) ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid rgba(41, 151, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(41, 151, 255, 0.08);
  border-color: var(--color-accent);
}

/* ── Section Labels ── */
.section-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(var(--font-size-xl), 4vw, var(--font-size-3xl));
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

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

/* ── Glassmorphism Card ── */
.glass-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.glass-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* ── Responsive Breakpoints ──
   xs:  < 480px
   sm:  480px – 767px
   md:  768px – 1023px
   lg:  1024px – 1279px
   xl:  ≥ 1280px
*/

@media (max-width: 768px) {
  :root {
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
  }

  .container {
    padding-inline: var(--space-4);
  }
}
