/* Design-System: Bernhard Schirnhofer — KI-Experte e.U. */
/* Version 1.1 — Lokale Fonts, kein Google Fonts */

/* ============================================
   PLUS JAKARTA SANS — Lokal
   ============================================ */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-800.woff2') format('woff2');
}

/* ============================================
   LORA — Lokal
   ============================================ */

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/lora-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/lora-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/lora-600.woff2') format('woff2');
}

/* ============================================
   1. CSS CUSTOM PROPERTIES
   ============================================ */

:root {
  /* Primärfarben */
  --color-navy:        #1B2B4B;
  --color-gold:        #C9A84C;
  --color-blue:        #2D7FF9;

  /* Hintergründe */
  --color-bg-primary:  #F8F9FA;
  --color-bg-white:    #FFFFFF;
  --color-bg-navy:     #1B2B4B;
  --color-bg-dark:     #111827;

  /* Text */
  --color-text-primary:   #1A1A2E;
  --color-text-secondary: #4B5563;
  --color-text-light:     #9CA3AF;
  --color-text-white:     #FFFFFF;
  --color-text-gold:      #C9A84C;

  /* Status */
  --color-success:  #22C55E;
  --color-warning:  #F59E0B;
  --color-error:    #EF4444;

  /* Schatten & Effekte */
  --shadow-card:    0 4px 24px rgba(27, 43, 75, 0.08);
  --shadow-hover:   0 8px 40px rgba(27, 43, 75, 0.16);
  --shadow-gold:    0 0 24px rgba(201, 168, 76, 0.25);
  --shadow-blue:    0 0 32px rgba(45, 127, 249, 0.20);
  --glow-blue:      0 0 60px rgba(45, 127, 249, 0.15);

  /* Schriftfamilien */
  --font-headline: 'Plus Jakarta Sans', sans-serif;
  --font-body:     'Plus Jakarta Sans', sans-serif;
  --font-accent:   'Lora', serif;

  /* Schriftgrößen */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Schriftgewichte */
  --weight-light:     300;
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  /* Zeilenhöhen */
  --leading-tight:   1.2;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  /* Buchstabenabstand */
  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.05em;
  --tracking-widest: 0.1em;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Container */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1280px;
  --container-2xl: 1440px;
}

/* ============================================
   2. RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================
   3. TYPOGRAFIE
   ============================================ */

h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-navy);
}

h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-navy);
}

h3 {
  font-family: var(--font-headline);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
}

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
}

blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-navy);
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-6);
}

.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
}

.highlight-gold {
  color: var(--color-gold);
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3 {
  color: var(--color-text-white);
}

.bg-navy p,
.bg-dark p {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   4. LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

@media (max-width: 768px) {
  section {
    padding: var(--space-12) 0;
  }
}

/* ============================================
   5. BUTTONS
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-gold);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.40);
  background: linear-gradient(90deg, var(--color-gold) 0%, #E8C96A 50%, var(--color-gold) 100%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--color-navy);
  color: var(--color-text-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #243860;
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: transparent;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-gold);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

/* ============================================
   6. KARTEN
   ============================================ */

.card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(27, 43, 75, 0.06);
  transition: all 0.3s ease;
}

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

.card-feature {
  border-top: 3px solid var(--color-gold);
}

.card-pricing {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.card-pricing.featured {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.card-tool {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(45, 127, 249, 0.12);
}

.card-tool:hover {
  box-shadow: var(--glow-blue);
  border-color: rgba(45, 127, 249, 0.30);
}

/* ============================================
   7. BADGES & TAGS
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

.badge-gold {
  background: rgba(201, 168, 76, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(201, 168, 76, 0.30);
}

.badge-navy {
  background: var(--color-navy);
  color: var(--color-text-white);
}

.badge-blue {
  background: rgba(45, 127, 249, 0.12);
  color: var(--color-blue);
  border: 1px solid rgba(45, 127, 249, 0.25);
}

.badge-urgent {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  animation: pulse 2s infinite;
}

/* ============================================
   8. FORMULAR-ELEMENTE
   ============================================ */

.input {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-white);
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  transition: all 0.2s ease;
  outline: none;
}

.input:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(45, 127, 249, 0.12);
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

/* ============================================
   9. PREISANZEIGE
   ============================================ */

.price-original {
  text-decoration: line-through;
  color: var(--color-text-light);
  font-size: var(--text-lg);
}

.price-current {
  color: var(--color-gold);
  font-size: 2rem;
  font-weight: var(--weight-extrabold);
  line-height: 1;
}

.price-note {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
}

.monthly-original {
  text-decoration: line-through;
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

.monthly-current {
  color: var(--color-gold);
  font-weight: var(--weight-bold);
}

.monthly-note {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* ============================================
   10. ANIMATIONEN
   ============================================ */

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

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: var(--shadow-blue); }
  50%       { box-shadow: 0 0 60px rgba(45, 127, 249, 0.35); }
}

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.ai-element {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* ============================================
   11. BILDBEHANDLUNG
   ============================================ */

.img-overlay {
  position: relative;
}

.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 43, 75, 0.7) 0%, rgba(27, 43, 75, 0.3) 100%);
  border-radius: inherit;
}

.img-card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ============================================
   12. HINTERGRUND-HELFER
   ============================================ */

.bg-primary { background-color: var(--color-bg-primary); }
.bg-white   { background-color: var(--color-bg-white); }
.bg-navy    { background-color: var(--color-bg-navy); }
.bg-dark    { background-color: var(--color-bg-dark); }

/* ============================================
   13. TEXT-HELFER
   ============================================ */

.text-center { text-align: center; }
.text-white  { color: var(--color-text-white); }
.text-gold   { color: var(--color-gold); }
.text-navy   { color: var(--color-navy); }
.text-muted  { color: var(--color-text-secondary); }
