/* MUSIKSCHULE365.DE - Responsive Musikplattform CSS */
/* Clean, professioneller Apple-ähnlicher Look mit den 3 Hauptfarben */

/* CSS Variables */
:root {
  --primary-blue: #2125ec;
  --blue-dark: #1a1dba;
  --primary-white: #ffffff;
  --text-dark: #333333;
  --gray-light: #f8f9fa;
  --gray-medium: #dee2e6;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Allgemeine Regel: Alle Texte auf blauen Hintergründen sollen weiß sein */
[class*="bg-primary"],
[class*="bg-blue"],
.hero-section,
.instrument-item:hover,
.testimonial-item:hover {
  color: var(--primary-white) !important;
}

/* WICHTIG: Weiße Buttons auf blauem Hintergrund - IMMER dunkle Texte */
.hero-section .btn-white,
.bg-primary .btn-white,
.btn-white,
.hero-section .btn.btn-white,
.bg-primary .btn.btn-white,
.btn.btn-white {
  background-color: var(--primary-white) !important;
  border-color: var(--primary-white) !important;
  color: var(--text-dark) !important;
}

.hero-section .btn-white:hover,
.bg-primary .btn-white:hover,
.btn-white:hover,
.hero-section .btn.btn-white:hover,
.bg-primary .btn.btn-white:hover,
.btn.btn-white:hover {
  background-color: #f8f9fa !important;
  border-color: #f8f9fa !important;
  color: var(--text-dark) !important;
}

.hero-section .btn-white:focus,
.bg-primary .btn-white:focus,
.btn-white:focus,
.hero-section .btn.btn-white:focus,
.bg-primary .btn.btn-white:focus,
.btn.btn-white:focus {
  background-color: var(--primary-white) !important;
  border-color: var(--primary-white) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

.hero-section .btn-white:active,
.bg-primary .btn-white:active,
.btn-white:active,
.hero-section .btn.btn-white:active,
.bg-primary .btn.btn-white:active,
.btn.btn-white:active {
  background-color: #e9ecef !important;
  border-color: #e9ecef !important;
  color: var(--text-dark) !important;
}

/* Primary Buttons behalten weiße Texte */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: var(--primary-white) !important;
}

/* Spezifische Regeln für verschiedene Elemente */
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-primary span,
.bg-primary div,
.bg-primary a:not(.btn),
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section span,
.hero-section div,
.hero-section a:not(.btn) {
  color: var(--primary-white) !important;
}

/* Navigation Links - IMMER dunkel */
.nav-link,
.nav-link:hover,
.nav-link.active,
.dropdown-item,
.dropdown-item:hover {
  color: var(--text-dark) !important;
}

/* Navigation Links auf blauem Hintergrund - trotzdem dunkel */
.navbar-collapse .nav-link,
.navbar-collapse .nav-link:hover,
.navbar-collapse .nav-link.active,
.navbar-collapse .dropdown-item,
.navbar-collapse .dropdown-item:hover {
  color: var(--text-dark) !important;
  background: var(--gray-light);
}

/* Buttons auf blauem Hintergrund - dunkle Texte (außer weiße Buttons) */
.bg-primary .btn:not(.btn-white),
.hero-section .btn:not(.btn-white) {
  color: var(--text-dark) !important;
}

/* Deaktiviere alte Scroll-Animationen */
.instruments-scroll,
.features-scroll,
.testimonials-scroll {
  display: none !important;
}

.instruments-container,
.features-container,
.testimonials-container {
  display: none !important;
}

/* Reset und Basis-Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--primary-white);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
}

/* Container und Grid System */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -var(--spacing-xs);
}

.col {
  flex: 1;
  padding: 0 var(--spacing-xs);
}

/* Utility Classes */
.text-primary { color: var(--primary-blue); }
.text-red { color: var(--primary-red); }
.text-white { color: var(--primary-white); }
.text-dark { color: var(--text-dark); }
.text-light { color: var(--text-light); }

.bg-primary { 
  background: linear-gradient(135deg, var(--primary-blue), var(--blue-dark)) !important;
  position: relative;
  color: var(--primary-white) !important;
}

.bg-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.bg-primary .container {
  position: relative;
  z-index: 2;
}

.bg-primary h2 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  color: var(--primary-white) !important;
}

.bg-primary p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-size: 1.2rem;
  opacity: 1;
  color: var(--primary-white) !important;
}

.bg-primary .btn {
  font-weight: 600;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  text-shadow: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: var(--primary-white) !important;
}

.bg-white { background-color: var(--primary-white); }
.bg-light { background-color: var(--gray-light); }
.bg-dark { background-color: var(--text-dark); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--primary-blue);
  color: var(--primary-white);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--primary-white);
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--primary-white);
}

.btn-white {
  background-color: var(--primary-white);
  border-color: var(--primary-white);
  color: var(--text-dark) !important;
}

.btn-white:hover {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: var(--text-dark) !important;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
  background: var(--primary-blue);
  color: var(--primary-white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Cards */
.card {
  background: var(--primary-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  border: 1px solid var(--gray-medium);
}

.card-header {
  background: var(--gray-light);
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: calc(-1 * var(--spacing-sm)) calc(-1 * var(--spacing-sm)) var(--spacing-sm) calc(-1 * var(--spacing-sm));
  border-bottom: 1px solid var(--gray-medium);
}

.card-body {
  padding: var(--spacing-sm);
}

/* Forms */
.form-control {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid var(--gray-medium);
  border-radius: var(--radius-sm);
  background: var(--primary-white);
  color: var(--text-dark);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(33, 37, 236, 0.1);
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* Alerts */
.alert {
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-sm);
  border: 1px solid transparent;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffeaa7;
  color: #856404;
}

/* Navigation */
.navbar {
  background: var(--primary-white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
}

/* Logo mit korrekten Farben */
.navbar-brand .logo-complete {
  color: var(--primary-blue) !important;
}

.navbar-brand .logo-complete::after {
  content: "365.DE";
  color: var(--primary-red) !important;
  font-weight: bold;
}

.navbar-brand .logo-complete:hover {
  color: var(--blue-dark) !important;
}

.navbar-brand .logo-complete:hover::after {
  color: #d10000 !important;
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
  background: var(--gray-light);
}

/* Spezielle Regel für Navigation auf blauem Hintergrund */
.navbar-collapse .nav-link:hover,
.navbar-collapse .nav-link.active,
.navbar-collapse .dropdown-item:hover {
  color: var(--primary-white) !important;
  background: var(--primary-blue);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-white);
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  z-index: 1000;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: var(--gray-light);
  color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue), var(--blue-dark));
  color: var(--primary-white);
  padding: var(--spacing-xl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

/* Section Styles */
.features-section,
.instruments-section,
.testimonials-section {
  padding: var(--spacing-md) 0;
}

.feature-item {
  background: var(--primary-white);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-item h4 {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-xs);
}

/* Instrument Items Styling */
.instrument-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.instrument-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-blue);
}

.instrument-item h5 {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.instrument-item small {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Testimonial Items Styling */
.testimonial-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-item::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 3rem;
  color: var(--primary-blue);
  opacity: 0.3;
  font-family: serif;
}

.testimonial-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-blue);
}

.testimonial-item p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.testimonial-author {
  color: var(--text-light);
  font-weight: 500;
}

.testimonial-author strong {
  color: var(--primary-blue);
}

/* Accessibility - Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  .scroll-animate.visible {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .feature-item:hover,
  .instrument-item:hover,
  .testimonial-item:hover {
    transform: none !important;
  }
}

/* Scroll Animation Styles - Optimized for all devices */
.scroll-animate {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: opacity, transform;
}

.scroll-animate.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggered animations für verschiedene Elemente */
.instrument-item.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.instrument-item.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.instrument-item.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.instrument-item.scroll-animate:nth-child(4) { transition-delay: 0.4s; }
.instrument-item.scroll-animate:nth-child(5) { transition-delay: 0.5s; }
.instrument-item.scroll-animate:nth-child(6) { transition-delay: 0.6s; }
.instrument-item.scroll-animate:nth-child(7) { transition-delay: 0.7s; }
.instrument-item.scroll-animate:nth-child(8) { transition-delay: 0.8s; }

.testimonial-item.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.testimonial-item.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.testimonial-item.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.testimonial-item.scroll-animate:nth-child(4) { transition-delay: 0.4s; }

/* Hover effects für animierte Elemente */
.instrument-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile Optimizations - Keep animations but optimize performance */
@media (max-width: 767.98px) {
  .scroll-animate {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .scroll-animate.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  .feature-item,
  .instrument-item,
  .testimonial-item {
    margin-bottom: var(--spacing-sm);
  }
  
  /* Keep hover effects but make them subtle on mobile */
  .feature-item:hover,
  .instrument-item:hover,
  .testimonial-item:hover {
    transform: translateY(-2px);
  }
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.fab:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Logo-Farbe für alle Bereiche */
.logo-text {
  color: var(--primary-blue);
}

.logo-domain {
  color: var(--primary-red);
  font-weight: 800;
}

/* Focus Styles for Accessibility */
*:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading States */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--gray-medium);
  border-radius: 50%;
  border-top-color: var(--primary-blue);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-sm);
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-medium);
}

.table th {
  background: var(--gray-light);
  font-weight: 600;
}

.table-responsive {
  overflow-x: auto;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }

.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }

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

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

/* Responsive Utilities */
@media (max-width: 768px) {
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  .d-md-flex { display: flex; }
}

@media (min-width: 769px) {
  .d-lg-none { display: none; }
  .d-lg-block { display: block; }
  .d-lg-flex { display: flex; }
}

/* Mobile Logo Anpassungen */
@media (max-width: 767.98px) {
  .navbar-brand .logo-complete {
    font-size: 1.2rem;
  }
  
  .navbar-brand .logo-complete::after {
    font-size: 1.2rem;
  }
}
