:root {
  --color-primary: #7c3aed;
  --color-secondary: #9333ea;
  --color-tertiary: #a855f7;
  --color-accent: #e9d5ff;
  --color-light: #f9f0ff;
}

/* Global Text Color - Make all text black */
* {
  color: #000000 !important;
}

/* White text exceptions for specific elements */
.schulung-hero-title-left,
.schulung-hero-title-right,
.text-white,
nav,
nav *,
footer,
footer * {
  color: white !important;
}

.bg-primary {
  background-color: var(--color-primary);
}
.bg-secondary {
  background-color: var(--color-secondary);
}
.bg-tertiary {
  background-color: var(--color-tertiary);
}
.bg-accent {
  background-color: var(--color-accent);
}
.bg-light {
  background-color: var(--color-light);
}

.text-primary {
  color: var(--color-primary);
}
.text-secondary {
  color: var(--color-secondary);
}
.text-tertiary {
  color: var(--color-tertiary);
}
.text-accent {
  color: var(--color-accent);
}

.border-primary {
  border-color: var(--color-primary);
}
.border-secondary {
  border-color: var(--color-secondary);
}
.border-accent {
  border-color: var(--color-accent);
}

/* Enhanced Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(209, 146, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(209, 146, 255, 0.6);
  }
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-gradient {
  animation: gradient-shift 8s ease infinite;
}

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

.animate-slideInTop {
  animation: slideInFromTop 1s ease-out;
}

.animate-slideInBottom {
  animation: slideInFromBottom 1s ease-out;
}

.animate-slideInLeft {
  animation: slideInFromLeft 1s ease-out;
}

.animate-slideInRight {
  animation: slideInFromRight 1s ease-out;
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Enhanced Fade In Effect */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger Animations */
.stagger-1 {
  animation-delay: 0.1s;
}
.stagger-2 {
  animation-delay: 0.2s;
}
.stagger-3 {
  animation-delay: 0.3s;
}
.stagger-4 {
  animation-delay: 0.4s;
}
.stagger-5 {
  animation-delay: 0.5s;
}
.stagger-6 {
  animation-delay: 0.6s;
}

/* Glass Effects */
.glass-effect {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-blur {
  backdrop-filter: blur(20px);
  background: rgba(61, 0, 104, 0.95);
}

.btn-shimmer {
  width: 20vw;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    var(--color-secondary),
    var(--color-tertiary)
  );
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .fade-in {
    transform: translateY(30px);
  }

  .animate-float {
    animation-duration: 4s;
  }
}

/* Custom Selection */
::selection {
  background: var(--color-accent);
  color: white;
}

::-moz-selection {
  background: var(--color-accent);
  color: white;
}

/* Focus States */
button:focus,
a:focus {
  outline: none; /* Remove the purple rectangle */
}

/* Better focus styles for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove focus outline for mouse users, keep for keyboard users */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

/* Hover Enhancements */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced Cards */
.enhanced-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.enhanced-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.enhanced-card:hover::before {
  transform: translateX(100%);
}

.enhanced-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* FAQ Enhancements */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-content.open {
  max-height: 200px;
  padding-top: 1rem;
}

.faq-button {
  width: 100%;
  max-width: 800px;
}
.schulung-image {
  height: 40vh;
  width: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  max-width: 100%;
}

/* Responsive Grid Improvements */
@media (max-width: 640px) {
  .responsive-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .faq-button {
    width: 100%;
  }
  .schulung-image {
    height: auto;
    max-height: 50vh;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .responsive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1025px) {
  .responsive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 1025px) {
  .btn-shimmer {
    width: 60vw;
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .btn-shimmer {
    width: 80vw;
  }
}

/* Schulung Hero Section - Desktop Layout */
#hero {
  display: grid;
  grid-template-columns: 70% 30%;
  align-items: center;
}

.schulung-hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.schulung-hero-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
}

.schulung-hero-content-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.schulung-hero-text-left {
  display: none;
}

.schulung-hero-text-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.schulung-hero-title-left,
.schulung-hero-title-right {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: bold;
  line-height: 1.3;
  margin: 0;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.schulung-hero-title-left {
  padding: 0;
}

.schulung-hero-title-right {
  padding: 0;
}

.schulung-hero-text-word {
  display: block;
  width: 100%;
}

/* Single Title for Mobile/Tablet */
.schulung-hero-title-single {
  display: none;
}

/* Responsive Design für mittlere Tablets (900-1024px) */
@media (max-width: 1024px) and (min-width: 901px) {
  #hero {
    height: auto !important;
    min-height: auto;
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: column;
    padding-top: 0;
    margin-top: 0 !important;
  }

  .schulung-hero-image-container {
    position: relative;
    width: 100%;
    height: 65vh;
    order: 1;
    margin-top: 0;
  }

  .schulung-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .schulung-hero-content-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    order: 2;
    display: flex;
    flex-direction: row;
    padding: 2rem 0;
    justify-content: center;
    align-items: center;
  }

  .schulung-hero-text-right {
    display: none !important;
  }

  .schulung-hero-title-single {
    display: block !important;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
  }
}

/* Responsive Design für Tablets */
@media (max-width: 900px) {
  #hero {
    height: auto !important;
    min-height: auto;
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: column;
    padding-top: 0;
    margin-top: 0 !important;
  }

  .schulung-hero-image-container {
    position: relative;
    width: 100%;
    height: 60vh;
    order: 1;
    margin-top: 0;
  }

  .schulung-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .schulung-hero-content-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    order: 2;
    display: flex;
    flex-direction: row;
    padding: 2rem 0;
    justify-content: center;
    align-items: center;
  }

  .schulung-hero-text-right {
    display: none !important;
  }

  .schulung-hero-title-single {
    display: block !important;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
  }
}

/* Responsive Design für Mobile */
@media (max-width: 768px) {
  #hero {
    height: auto !important;
    min-height: auto;
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: column;
    padding-top: 0;
    margin-top: 0 !important;
  }

  .schulung-hero-image-container {
    position: relative;
    width: 100%;
    height: 38vh;
    order: 1;
    margin-top: 0;
  }

  .schulung-hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .schulung-hero-content-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    order: 2;
    display: flex;
    padding: 2rem 0;
    justify-content: center;
    align-items: center;
  }

  .schulung-hero-text-right {
    display: none !important;
  }

  .schulung-hero-title-single {
    display: block !important;
    font-size: clamp(1.3rem, 5vw, 2rem);
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
  }
}

/* Spezifischer Range für 520px-750px - Vergrößertes Bild */
@media (min-width: 520px) and (max-width: 750px) {
  .schulung-hero-image-container {
    height: 55vh !important;
  }

  .schulung-hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}

/* Responsive Design für sehr kleine Mobile Geräte */
@media (max-width: 480px) {
  #hero {
    min-height: auto;
    display: flex !important;
    grid-template-columns: none !important;
    padding-top: 0;
    margin-top: 0 !important;
  }

  .schulung-hero-image-container {
    height: 28vh;
    margin-top: 0;
  }

  .schulung-hero-image {
    object-fit: contain;
  }

  .schulung-hero-content-wrapper {
    padding: 1.5rem 0;
    min-height: auto;
  }

  .schulung-hero-text-right {
    display: none !important;
  }

  .schulung-hero-title-single {
    display: block !important;
    font-size: clamp(1.1rem, 5.5vw, 1.6rem);
    padding: 0 0.5rem;
    line-height: 1.3;
    text-align: center;
    margin: 0 auto;
    width: 100%;
  }
}

/* Responsive Design für extra kleine Mobile Geräte (300-400px) */
@media (max-width: 400px) {
  #hero {
    min-height: auto;
    display: flex !important;
    grid-template-columns: none !important;
    padding-top: 0;
    margin-top: 0 !important;
  }

  .schulung-hero-image {
    object-fit: contain;
  }

  .schulung-hero-content-wrapper {
    padding: 1.5rem 0;
    min-height: auto;
  }

  .schulung-hero-text-right {
    display: none !important;
  }

  .schulung-hero-title-single {
    display: block !important;
    font-size: clamp(0.9rem, 6vw, 1.3rem);
    padding: 0 0.25rem;
    line-height: 1.3;
    word-spacing: normal;
    text-align: center;
    margin: 0 auto;
    width: 100%;
  }
}

/* Ausbilderin section - Override text-primary to black */
#why-choose .max-w-7xl p.text-primary,
#why-choose .max-w-7xl h3.text-primary {
  color: #000000 !important;
}

/* 2-Tage Intensivprogramm - Make bullet points and text black */
#training .space-y-6 h4.text-primary,
#training .space-y-6 p.text-primary,
#training .flex.items-center > p.text-primary,
#training .flex.items-center.gap-4 p.text-primary {
  color: #000000 !important;
}

/* Das ist alles inklusive - Make all card text black */
#included h3.text-primary,
#included p.text-primary {
  color: #000000 !important;
}

/* Warum unsere neue Schulung - Make card text white */
#why-choose .grid > div h3,
#why-choose .grid > div p {
  color: white !important;
}

/* 2-Tage Intensivprogramm - Responsive Anpassungen für sehr kleine Bildschirme (300-400px) */
@media (max-width: 400px) {
  /* Section Überschrift */
  #training h2 {
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
    padding: 0 1rem !important;
    word-wrap: break-word !important;
  }

  #training p.text-xl {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    padding: 0 1rem !important;
  }

  /* Container für die Karten */
  #training .max-w-6xl {
    padding: 0 0.5rem !important;
  }

  /* Grid Layout */
  #training .grid {
    gap: 2rem !important;
  }

  /* Tag 1 und Tag 2 Karten */
  #training .bg-white.bg-opacity-10 {
    padding: 1rem !important;
    border-radius: 1rem !important;
  }

  /* Header mit Nummer und Titel */
  #training .flex.items-center.gap-4 {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Nummer-Icon */
  #training .w-20.h-20 {
    width: 3rem !important;
    height: 3rem !important;
    margin-right: 0 !important;
  }

  #training .w-20.h-20 span {
    font-size: 1.25rem !important;
  }

  /* Tag Titel */
  #training h3.text-3xl {
    font-size: 1.5rem !important;
    margin-bottom: 0.25rem !important;
  }

  #training p.text-lg {
    font-size: 0.9rem !important;
  }

  /* Bullet Points Container */
  #training .space-y-6 {
    gap: 1rem !important;
  }

  /* Einzelne Bullet Points */
  #training .flex.items-start {
    gap: 0.5rem !important;
  }

  /* Bullet Point Dot */
  #training .w-4.h-4 {
    width: 0.6rem !important;
    height: 0.6rem !important;
    margin-top: 0.4rem !important;
    margin-right: 0.5rem !important;
    flex-shrink: 0 !important;
  }

  /* Bullet Point Titel */
  #training h4.font-bold.text-primary {
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Bullet Point Beschreibung */
  #training .flex.items-start p {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Footer Box (Zeit/Badge) */
  #training .mt-8.p-4 {
    margin-top: 1.5rem !important;
    padding: 0.75rem !important;
    border-radius: 0.5rem !important;
  }

  #training .mt-8.p-4 p {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
  }

  #training .mt-8.p-4 i {
    font-size: 0.75rem !important;
    margin-right: 0.25rem !important;
  }
}

/* Extra-Anpassungen für extrem kleine Bildschirme (< 320px) */
@media (max-width: 320px) {
  #training h2 {
    font-size: 1.25rem !important;
  }

  #training .bg-white.bg-opacity-10 {
    padding: 0.75rem !important;
  }

  #training h3.text-3xl {
    font-size: 1.25rem !important;
  }

  #training h4.font-bold.text-primary {
    font-size: 0.85rem !important;
  }

  #training .flex.items-start p {
    font-size: 0.7rem !important;
  }
}

/* Starten Sie Ihre Erfolgsgeschichte - Entferne Scrollverhalten */
#contact {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

#contact .container {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

#contact .max-w-4xl {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

#contact .grid {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

#contact .text-center {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

/* Starten Sie Ihre Erfolgsgeschichte - Responsive Anpassungen für kleine Bildschirme */
@media (max-width: 640px) {
  #contact .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    overflow: visible !important;
  }

  #contact h2 {
    font-size: 1.75rem !important;
    line-height: 1.4 !important;
    padding: 0 0.5rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  #contact p.text-xl {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    padding: 0 0.5rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  #contact .grid {
    padding: 0 0.5rem !important;
    overflow: visible !important;
  }

  #contact .text-center.p-6 {
    padding: 1rem !important;
  }

  #contact h3.text-xl {
    font-size: 1.1rem !important;
    word-wrap: break-word !important;
  }

  #contact p.text-gray-600 {
    font-size: 0.9rem !important;
    word-wrap: break-word !important;
  }
}

/* Starten Sie Ihre Erfolgsgeschichte - Anpassungen für sehr kleine Bildschirme (300-400px) */
@media (max-width: 400px) {
  #contact .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    overflow: visible !important;
  }

  #contact .max-w-4xl {
    max-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #contact h2 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    padding: 0 0.75rem !important;
    margin-bottom: 1.5rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  #contact p.text-xl {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    padding: 0 0.75rem !important;
    margin-bottom: 2rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  #contact .grid {
    gap: 1.5rem !important;
    padding: 0 0.5rem !important;
  }

  #contact .text-center.p-6 {
    padding: 0.75rem !important;
  }

  #contact .w-16.h-16 {
    width: 3rem !important;
    height: 3rem !important;
  }

  #contact .w-16.h-16 i {
    font-size: 1rem !important;
  }

  #contact h3.text-xl {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  #contact p.text-gray-600 {
    font-size: 0.85rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  #contact .flex.flex-col {
    padding: 0 0.5rem !important;
  }

  #contact button {
    font-size: 0.9rem !important;
    padding: 0.75rem 2rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

/* Extra-Anpassungen für extrem kleine Bildschirme (< 320px) */
@media (max-width: 320px) {
  #contact h2 {
    font-size: 1.25rem !important;
    padding: 0 0.5rem !important;
  }

  #contact p.text-xl {
    font-size: 0.85rem !important;
    padding: 0 0.5rem !important;
  }

  #contact h3.text-xl {
    font-size: 0.9rem !important;
  }

  #contact p.text-gray-600 {
    font-size: 0.8rem !important;
  }

  #contact button {
    font-size: 0.85rem !important;
    padding: 0.65rem 1.5rem !important;
  }
}
