/* ==========================================
   REUSABLE COMPONENTS
   Buttons, Cards, Modals, Forms
========================================== */

/* === BACK TO TOP BUTTON === */
#backToTop {
  position: fixed;
  top: 100px;
  right: 20px;
  display: none;
  padding: 10px 15px;
  font-size: 16px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
}

#backToTop:hover {
  background-color: #555;
}

.back-to-top-modern {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #D22B2B 0%, #ff4444 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(210, 43, 43, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top-modern:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 28px rgba(210, 43, 43, 0.5);
}

/* === PRODUCT CARDS === */
.product-card {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 20px rgba(0,0,0,0.2);
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-card .hover-text {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,36,0,0.85);
  color: white;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: bold;
}

.product-card:hover .hover-text {
  opacity: 1;
}

.product-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 20px;
  margin: 15px 0 10px;
  color: #333;
  padding: 0 16px;
  margin: 12px 0 8px;
  font-size: 15px;
  line-height: 1.4;
}

.product-card p.price {
  font-size: 18px;
  font-weight: bold;
  color: #D22B2B;
  padding: 0 16px 16px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #D22B2B;
}

/* Product Card Overlay */
.product-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
  padding: 30px 20px 20px;
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.colorways-text {
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}

/* === BUTTONS === */
.spreadsheet-button {
  display: inline-block;
  background: linear-gradient(90deg, #111, #444, #111);
  background-size: 200% 100%;
  color: white;
  font-size: 40px;
  font-weight: bold;
  padding: 30px 60px;
  border-radius: 15px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  animation: shine 3s linear infinite, scalePulse 2s infinite;
  transition: transform 0.3s ease;
  line-height: 1.2;
  margin-bottom: 50px;
  max-width: 90%;
}

.spreadsheet-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.spreadsheet-button .sub-text {
  display: block;
  font-size: 20px;
  color: #D22B2B;
  font-weight: bold;
  margin: 10px 0;
}

.spreadsheet-button .sub-sub-text {
  display: block;
  font-size: 30px;
}

@keyframes shine {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

@keyframes scalePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.join-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(-45deg, #D22B2B, #C41E3A, #DC143C, #FF2400);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
  padding: 40px 60px;
  border-radius: 15px;
  text-decoration: none;
  color: white;
  width: 90%;
  max-width: 1000px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.join-button:hover { transform: scale(1.05); }

.join-text {
  font-size: 50px;
  font-weight: bold;
  text-align: center;
  margin: 0 20px;
}

.offer {
  font-size: 24px;
  font-weight: bold;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.buy-button {
  padding: 20px 60px;
  font-size: 20px;
  background-color: #D22B2B;
  color: white;
  font-weight: bold;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  animation: pulseButton 2s infinite;
}

.buy-button:hover {
  background-color: #FF0000;
  transform: scale(1.05);
}

@keyframes pulseButton {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-clean-button {
  display: inline-block;
  padding: 28px 70px;
  background: #D22B2B;
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(210, 43, 43, 0.2);
}

.hero-clean-button:hover {
  background: #ff4444;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(210, 43, 43, 0.4);
}

.join-clean-button {
  display: inline-block;
  padding: 24px 60px;
  background: #D22B2B;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.join-clean-button:hover {
  background: #ff4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(210, 43, 43, 0.3);
}

.hero-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #D22B2B 0%, #ff4444 100%);
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(210, 43, 43, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.hero-cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(210, 43, 43, 0.4);
}

.hero-cta-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: white;
  color: #D22B2B;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.join-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: white;
  color: #D22B2B;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.join-cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.contact-button {
  padding: 18px 40px;
  background-color: #D22B2B;
  color: white;
  font-size: 20px;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.contact-button:hover {
  background-color: #E34234;
  transform: scale(1.05);
}

.contact-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #D22B2B 0%, #ff4444 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(210, 43, 43, 0.3);
}

.contact-submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(210, 43, 43, 0.4);
}

/* === PAGINATION === */
.pagination-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 50px 0;
  padding: 50px 20px;
}

#prevPage,
#nextPage {
  padding: 12px 24px;
  font-size: 18px;
  border: 1px solid #333;
  background: #fff;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.2s;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 600;
}

#prevPage:hover,
#nextPage:hover {
  background: #333;
  color: #fff;
}

.pagination-container button:not(:disabled):hover {
  background: #D22B2B;
  color: white;
  border-color: #D22B2B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(210, 43, 43, 0.2);
}

.pagination-container button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: white;
  color: #495057;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-button:not(:disabled):hover {
  background: #D22B2B;
  color: white;
  border-color: #D22B2B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(210, 43, 43, 0.2);
}

.pagination-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-size: 16px;
  font-weight: 600;
  color: #495057;
  padding: 14px 24px;
  background: white;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

/* ===================================================================
   WELCOME POPUP MODAL
   =================================================================== */

.welcome-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.welcome-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.welcome-popup-modal {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  color: #6c757d;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: #f8f9fa;
  color: #212529;
  transform: rotate(90deg);
}

.popup-header {
  text-align: center;
  margin-bottom: 30px;
}

.popup-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #D22B2B;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.popup-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #212529;
  margin: 0;
  font-weight: 600;
}

.popup-benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.popup-benefit {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.popup-benefit:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.benefit-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.benefit-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #495057;
  margin: 0 0 5px 0;
}

.benefit-text p {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #343a40;
  margin: 0;
  line-height: 1.4;
}

.popup-urgency {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  color: #D22B2B;
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 20px 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(210, 43, 43, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(210, 43, 43, 0.6);
  }
}

.popup-claim-btn {
  font-family: 'Montserrat', sans-serif;
  display: block;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #D22B2B 0%, #ff4444 100%);
  color: white;
  text-decoration: none;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(210, 43, 43, 0.3);
  margin-bottom: 12px;
}

.popup-claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210, 43, 43, 0.4);
}

.popup-later-btn {
  font-family: 'Montserrat', sans-serif;
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  color: #495057;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.popup-later-btn:hover {
  color: #212529;
}

.popup-trust {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.popup-trust span {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #212529;
  font-weight: 600;
}

/* ===================================================================
   BEFORE YOU BUY POPUP MODAL
   =================================================================== */

.before-buy-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.before-buy-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.before-buy-popup-modal {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

/* Responsive Mobile für Before Buy Popup */
@media (max-width: 480px) {
  .before-buy-popup-modal {
    padding: 32px 20px;
    border-radius: 16px;
    width: 95%;
  }
}

/* === FORMS === */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #D22B2B;
  box-shadow: 0 0 8px rgba(255,36,0,0.3);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form-wrapper {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-modern {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #D22B2B;
  box-shadow: 0 0 0 3px rgba(210, 43, 43, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* === STICKY BOTTOM BANNER === */
.sticky-bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #D22B2B 0%, #ff4444 100%);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px 20px;
}

.sticky-bottom-banner.show {
  transform: translateY(0);
}

.sticky-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-banner-icon {
  font-size: 32px;
  flex-shrink: 0;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.sticky-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: white;
  flex: 1;
}

.sticky-banner-text strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.sticky-banner-text span {
  font-size: 14px;
  opacity: 0.95;
}

.sticky-banner-btn {
  background: white;
  color: #D22B2B;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sticky-banner-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.sticky-banner-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
}

.sticky-banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sticky-bottom-banner {
    padding: 14px 16px;
  }

  .sticky-banner-content {
    gap: 12px;
  }

  .sticky-banner-icon {
    font-size: 28px;
  }

  .sticky-banner-text strong {
    font-size: 16px;
  }

  .sticky-banner-text span {
    font-size: 13px;
  }

  .sticky-banner-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .sticky-bottom-banner {
    padding: 12px 12px 12px 16px;
  }

  .sticky-banner-content {
    gap: 8px;
  }

  .sticky-banner-icon {
    font-size: 24px;
  }

  .sticky-banner-text strong {
    font-size: 14px;
  }

  .sticky-banner-text span {
    font-size: 12px;
  }

  .sticky-banner-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .sticky-banner-close {
    width: 28px;
    height: 28px;
    font-size: 20px;
    top: 6px;
    right: 8px;
  }
}
