/* ============================================
   AppManager — Marketing Website
   Custom Styles (ergänzend zu Tailwind CSS)
   ============================================ */

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Header Scroll Effect --- */
.header-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* --- Hero Gradient --- */
.hero-gradient {
  background: linear-gradient(135deg, #1565C0 0%, #2196F3 50%, #42A5F5 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  animation: heroFloat 15s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

/* --- Hero Screenshot Slideshow --- */
.hero-slideshow {
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #d1d5db;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
}

/* Browser-style title bar */
.slideshow-titlebar {
  background: linear-gradient(to bottom, #e8ecf0, #dde1e6);
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  border-bottom: 1px solid #c9cdd2;
}

.slideshow-titlebar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.slideshow-titlebar-dot.red { background: #ff5f57; }
.slideshow-titlebar-dot.yellow { background: #febc2e; }
.slideshow-titlebar-dot.green { background: #28c840; }

.slideshow-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  margin: 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.slideshow-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slideshow-slide img,
.slideshow-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8fafc;
}

.slide-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
}

.slideshow-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px 4px;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slideshow-dot:hover {
  background: #94a3b8;
}

.slideshow-dot.active {
  background: #2196F3;
  transform: scale(1.3);
}

/* --- Counter Animation --- */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* --- Channel Logos Grayscale --- */
.channel-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.channel-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* --- Pricing Card Highlight --- */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.pricing-popular {
  transform: scale(1.05);
  border: 2px solid #2196F3;
  box-shadow: 0 20px 40px rgba(33, 150, 243, 0.2);
}

.pricing-popular:hover {
  transform: scale(1.05) translateY(-5px);
}

/* --- Testimonial Card --- */
.testimonial-card {
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

/* --- Feature Card --- */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-card .feature-icon {
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s ease;
  padding: 2rem;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

/* --- Language Switch --- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch button {
  padding: 4px 10px;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

.lang-switch button.active {
  background: white;
  color: #1565C0;
}

.header-light .lang-switch {
  background: #e2e8f0;
}

.header-light .lang-switch button.active {
  background: #1565C0;
  color: white;
}

/* --- Hamburger Menu --- */
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu --- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu.active {
  max-height: 400px;
}

/* --- Feature Detail (Features Page) --- */
.feature-detail:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .feature-detail:nth-child(even) {
    flex-direction: column;
  }
}

/* --- Comparison Table --- */
.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table thead th {
  background: #1565C0;
  color: white;
  font-weight: 600;
}

.comparison-table tbody tr:hover {
  background: #f8fafc;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

/* --- Form Styles --- */
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #2196F3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

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

/* --- Section Divider --- */
.section-wave {
  position: relative;
}

.section-wave::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,30 C360,60 720,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* --- Loader / Success State --- */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.active {
  display: block;
}

.form-success .checkmark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #4CAF50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* --- Google Map Placeholder --- */
.map-placeholder {
  background: linear-gradient(145deg, #e8f0fe 0%, #d1e3fd 100%);
  border: 2px dashed #90caf9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 300px;
  color: #1565C0;
}

/* --- FAQ Accordion --- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* --- Legal Content (Impressum, Datenschutz, AGB) --- */
.legal-content h2 { margin-top: 2.5rem; }
.legal-content h3 { margin-top: 1.5rem; }
.legal-content p { line-height: 1.75; }
.legal-content ul { margin-bottom: 1rem; }

/* --- Print Styles --- */
@media print {
  .no-print { display: none !important; }
  body { font-size: 12pt; }
}
