/* Kritische Above-the-fold Styles - Optimiert für LCP */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero Section - Kritisch für LCP */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Text Styles */
.text-white {
  color: white;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.font-light {
  font-weight: 300;
}

.leading-tight {
  line-height: 1.25;
}

/* Image Styles */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Images */
img[loading="lazy"] {
  content-visibility: auto;
}

/* Animations - Nur für Above-the-fold */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #7c3aed;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background: #f3f4f6;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* Layout */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.gap-6 {
  gap: 1.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
  .text-4xl {
    font-size: 1.875rem;
  }

  .text-5xl {
    font-size: 2.25rem;
  }

  .hero-section .container {
    padding: 1rem;
  }

  .hero-section .text-center {
    text-align: center;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .text-4xl {
    font-size: 2rem;
  }

  .text-5xl {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .md\:text-4xl {
    font-size: 2.25rem;
  }

  .md\:text-5xl {
    font-size: 3rem;
  }

  .md\:flex {
    display: flex;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:w-1\/2 {
    width: 50%;
  }

  .md\:absolute {
    position: absolute;
  }

  .md\:left-0 {
    left: 0;
  }

  .md\:top-1\/2 {
    top: 50%;
  }

  .md\:transform {
    transform: translateY(-50%);
  }

  .md\:-translate-y-1\/2 {
    transform: translateY(-50%);
  }

  .md\:items-center {
    align-items: center;
  }

  .md\:text-center {
    text-align: center;
  }

  .md\:justify-center {
    justify-content: center;
  }

  .md\:max-w-lg {
    max-width: 32rem;
  }

  .md\:mb-8 {
    margin-bottom: 2rem;
  }

  .md\:hidden {
    display: none;
  }

  .md\:flex {
    display: flex;
  }

  .md\:gap-6 {
    gap: 1.5rem;
  }

  .md\:h-full {
    height: 100%;
  }

  .md\:items-end {
    align-items: flex-end;
  }

  .md\:justify-center {
    justify-content: center;
  }

  .md\:max-h-600px {
    max-height: 600px;
  }
}

@media (min-width: 1024px) {
  .lg\:text-5xl {
    font-size: 3rem;
  }

  .lg\:flex-row {
    flex-direction: row;
  }

  .lg\:max-h-800px {
    max-height: 800px;
  }

  .lg\:mb-12 {
    margin-bottom: 3rem;
  }
}

@media (min-width: 1280px) {
  .xl\:text-5xl {
    font-size: 3.5rem;
  }

  .xl\:max-h-900px {
    max-height: 900px;
  }
}

/* Hero Section Responsive Layout - Höhere Spezifität */
.hero-section {
  position: relative !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.hero-section .container {
  position: relative !important;
  z-index: 10 !important;
  padding: 2.5rem 1.5rem !important;
  margin-top: 0 !important;
}

@media (min-width: 768px) {
  .hero-section .container {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-top: 0 !important;
  }
}

/* Hero Image Container */
.hero-image-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-image-container {
    width: 50%;
    height: 100%;
  }
}

/* Hero Image */
.hero-image {
  width: 100%;
  max-height: 450px;
  height: auto;
  object-fit: contain;
  object-position: bottom;
}

@media (min-width: 768px) {
  .hero-image {
    max-height: 600px;
  }
}

@media (min-width: 1024px) {
  .hero-image {
    max-height: 800px;
  }
}

/* Action Buttons */
.action-buttons {
  display: none;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .action-buttons {
    display: flex;
  }
}

/* Quote Container */
.quote-container {
  margin-bottom: 2rem;
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .quote-container {
    margin-bottom: 3rem;
  }
}

/* Font Loading Optimization */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-display: fallback;
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-display: fallback;
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Licorice';
  src: url('/fonts/Licorice-Regular.ttf') format('truetype');
  font-display: fallback;
  font-weight: 400;
  font-style: normal;
}