/* 
 * Kristallklar Reinigung - Hauptstilvorlage
 * Bezaubernde Reinigungseffekte für professionelle Website
 */

/* ===== CSS VARIABLEN ===== */
:root {
  /* Primäre Farben */
  --primary-blue: #1f3d76;
  --fresh-blue: #00a8cc;
  --crystal-white: #ffffff;
  --pure-light: #e8f4f8;
  --warm-gold: #f9a826;
  --professional-gray: #2c3e50;
  
  /* Effekt-Farben */
  --bubble-color: rgba(255, 255, 255, 0.8);
  --droplet-color: rgba(0, 168, 204, 0.7);
  --sparkle-gold: rgba(249, 168, 38, 0.9);
  --sparkle-silver: rgba(255, 255, 255, 0.9);
  
  /* Schatten und Verläufe */
  --crystal-gradient: linear-gradient(135deg, #ffffff 0%, #e8f4f8 100%);
  --water-gradient: linear-gradient(180deg, #00a8cc 0%, #1f3d76 100%);
  --clean-shadow: 0 10px 30px rgba(31, 61, 118, 0.1);
  --hover-shadow: 0 15px 40px rgba(0, 168, 204, 0.2);
}

/* ===== GRUNDLEGENDE STILE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--crystal-gradient);
  color: var(--professional-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--primary-blue);
}

/* ===== SEIFENBLASEN-ANIMATION ===== */
.bubble-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.bubble {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(0, 168, 204, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: bubbleFloat 8s infinite linear;
  backdrop-filter: blur(2px);
}

.bubble::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 25%;
  width: 30%;
  height: 30%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  filter: blur(2px);
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ===== WASSERTROPFEN-EFFEKT ===== */
.water-droplet {
  position: absolute;
  width: 8px;
  height: 12px;
  background: var(--droplet-color);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: dropletFall 2s ease-in infinite;
  opacity: 0;
}

@keyframes dropletFall {
  0% {
    transform: translateY(-20px);
    opacity: 1;
  }
  100% {
    transform: translateY(200px);
    opacity: 0;
  }
}

/* ===== GLITZER-PARTIKEL ===== */
.sparkle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--sparkle-gold);
  border-radius: 50%;
  animation: sparkleShine 3s ease-in-out infinite;
}

.sparkle:nth-child(even) {
  background: var(--sparkle-silver);
  animation-delay: 1.5s;
}

@keyframes sparkleShine {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== 404 ===== */
.error-section {
  min-height: 80vh;
  background: var(--pure-light);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.error-container {
	max-width: 600px;
}
.error-title {
	text-align: center;
	font-size: 100px;
	font-weight: bold;
	color: #ff5722;
	text-shadow: 3px 3px #ffd54f;
}
.error-text {
	font-size: 22px;
	font-weight: 500;
	color: #333;
}
.animation {
	width: 200px;
	animation: shake 1s infinite alternate;
}
@keyframes shake {
	from { transform: rotate(-5deg); }
	to { transform: rotate(5deg); }
}

/* ===== KRISTALL-REFLEXION-EFFEKT ===== */
.crystal-effect {
  position: relative;
  overflow: hidden;
}

.crystal-effect::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 70%);
  transform: rotate(45deg);
  animation: crystalShine 3s ease-in-out infinite;
}

@keyframes crystalShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
  100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
}

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(31, 61, 118, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar-brand img {
  height: 50px;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.3));
}

.navbar-nav .nav-link {
  color: var(--crystal-white) !important;
  font-weight: 500;
  padding: 0.8rem 1.2rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--warm-gold) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  color: var(--warm-gold) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--warm-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* ===== HERO-SEKTION ===== */
.hero-section {
  min-height: 100vh;
  background: var(--crystal-gradient);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.8) 0%, rgba(219, 234, 254, 0.6) 100%);
  z-index: 1;
}

.hero-logo.crystal-effect {
  background-color: rgba(255, 255, 255, 0.3);
  padding: 1rem;
  border-radius: 1rem;
}

.hero-content {
  text-align: center;
  z-index: 10;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(31, 61, 118, 0.1);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--professional-gray);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-logo {
  max-width: 300px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 10px 30px rgba(31, 61, 118, 0.2));
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--fresh-blue) 0%, var(--primary-blue) 100%);
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  color: var(--crystal-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--clean-shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--hover-shadow);
  color: var(--crystal-white);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--fresh-blue);
  color: var(--fresh-blue);
  padding: 12px 35px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--fresh-blue);
  color: var(--crystal-white);
  transform: translateY(-2px);
  box-shadow: var(--clean-shadow);
}

/* ===== SERVICE-KARTEN ===== */
.service-card {
  background: var(--crystal-white);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--clean-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 168, 204, 0.1);
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--fresh-blue), var(--warm-gold));
}

.service-icon {
  font-size: 3rem;
  color: var(--fresh-blue);
  margin-bottom: 1.5rem;
  display: block;
  text-align: center;
}

.service-title {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  text-align: center;
}

.service-description {
  color: var(--professional-gray);
  text-align: center;
  line-height: 1.7;
}

/* Service-spezifische Hover-Effekte */
.service-card.office-cleaning:hover {
  animation: waterDroplets 2s ease-in-out;
}

.service-card.window-cleaning:hover {
  animation: sparkleEffect 2s ease-in-out;
}

.service-card.special-cleaning:hover {
  animation: bubbleEffect 2s ease-in-out;
}

/* ===== TESTIMONIALS ===== */
.testimonial-section {
  background: var(--primary-blue);
  color: var(--crystal-white);
  position: relative;
  overflow: hidden;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--warm-gold);
}

.testimonial-company {
  font-size: 0.9rem;
  opacity: 0.8;
}

.stars {
  color: var(--warm-gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ===== KONTAKT-SEKTION ===== */
.contact-section {
  background: var(--pure-light);
  position: relative;
}

.contact-form {
  background: var(--crystal-white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--clean-shadow);
  position: relative;
}

.form-control {
  border: 2px solid rgba(0, 168, 204, 0.2);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  border-color: var(--fresh-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 168, 204, 0.25);
  background: var(--crystal-white);
}

.form-label {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-blue);
  color: var(--crystal-white);
  padding: 3rem 0 1rem;
}

.footer-link {
  color: var(--crystal-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--warm-gold);
}

/* ===== ANIMATIONEN ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes waterDroplets {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes sparkleEffect {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3) saturate(1.2); }
}

@keyframes bubbleEffect {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  /* Reduzierte Animationen für mobile Geräte */
  .bubble {
    animation-duration: 12s;
  }
  
  .sparkle {
    animation-duration: 4s;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--fresh-blue), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.crystal-bg {
  background: var(--crystal-gradient);
}

.water-bg {
  background: var(--water-gradient);
  pointer-events: none;
  z-index: 1;
  position: relative;
}

.clean-shadow {
  box-shadow: var(--clean-shadow);
}

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* ===== LOADING ANIMATION ===== */
.loading-bubbles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.loading-bubble {
  width: 12px;
  height: 12px;
  background: var(--fresh-blue);
  border-radius: 50%;
  animation: loadingBounce 1.4s ease-in-out infinite both;
}

.loading-bubble:nth-child(1) { animation-delay: -0.32s; }
.loading-bubble:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingBounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

