/* ================================
   Custom CSS for RheinMain Container & Recycling
   ================================ */

/* Root Variables - Updated with specified green variants */
:root {
  --brand-400: #22c55e;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-700: #16a34a;
  --brand-800: #15803d;
  --brand-900: #14532d;
  --brand-950: #0f2d1a;

  /* Override Bootstrap Primary */
  --bs-primary: #16a34a;
  --bs-primary-rgb: 22, 163, 74;
}

/* General Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  padding-top: 109px; /* For fixed navbar */
}

/* Sections */
section {
  scroll-margin-top: 80px;
}

/* Typography */
.gradient-text {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar - Improved readability */
.navbar {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.4rem !important;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: #1f2937 !important;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s;
  padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--brand-600);
  transition: width 0.3s, left 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--brand-600) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: calc(100% - 2rem);
  left: 1rem;
}

/* Hero Section - Updated with specified green variants */
.hero-gradient {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #16a34a 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  z-index: -1;
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  animation: pulse 30s ease-in-out infinite;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-badge {
  font-size: 0.875rem;
  animation: subtle-bounce 3s ease-in-out infinite;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.9) !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

.py-6 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.hero-cta-primary {
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.hero-main-image {
  transition: transform 0.3s ease;
}

.hero-main-image:hover {
  transform: scale(1.02);
}

.hero-image-wrapper {
  animation: float 6s ease-in-out infinite;
}

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

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

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

/* Mobile hero adjustments */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta-stack {
    margin-top: 2rem;
  }
}

/* Gradients - Updated with specified green variants */
.gradient-primary {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.gradient-dark {
  background: linear-gradient(135deg, #0f2d1a 0%, #16a34a 100%);
}

/* Buttons - Updated with specified green variants */
.btn-gradient {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: white;
  border: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient:hover {
  color: white;
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3);
}

.btn-dark-green {
  background-color: #16a34a;
  color: white;
  border: none;
}

.btn-dark-green:hover {
  background-color: #15803d;
  color: white;
}

/* Cards */
.card-soft {
  transition: transform 0.3s, box-shadow 0.3s;
  border-radius: 1rem !important;
}

.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Colors - Updated for darker theme */
.text-primary-green {
  color: var(--brand-600) !important;
}

.text-light-green {
  color: #dcfce7 !important;
}

.bg-light-green {
  background-color: #f0fdf4 !important;
}

.bg-dark-green {
  background-color: var(--brand-950) !important;
}

.border-light-green {
  border-color: #61d38b !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* FORM */

.waste-type-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
}

.waste-type-card:hover {
  border-color: var(--brand-400);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.15);
}

.waste-type-card.selected {
  border-color: var(--brand-600);
  background-color: #f0fdf4;
}

.container-size-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
  height: 100%;
}

.container-size-card:hover {
  border-color: var(--brand-400);
  transform: translateY(-2px);
}

.container-size-card.selected {
  border-color: var(--brand-600);
  background-color: #f0fdf4;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
}

.progress-step.active {
  background: var(--brand-600);
  color: white;
}

.progress-step.completed {
  background: var(--brand-600);
  color: white;
}

.progress-line {
  height: 2px;
  background: #e5e7eb;
  flex: 1;
  margin: 0 1rem;
}

.progress-line.active {
  background: var(--brand-600);
}

.form-step {
  display: none;
}

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

.price-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.recommended-badge {
  background: var(--brand-600);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  position: absolute;
  top: -8px;
  right: -8px;
}

.size-visual {
  width: 100%;
  height: 60px;
  background: linear-gradient(to right, #16a34a, #22c55e);
  border-radius: 4px;
  position: relative;
  margin: 1rem 0;
}

.trust-elements {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.summary-item {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  border-left: 4px solid var(--brand-600);
}

.inline-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.border-dashed {
  border-style: dashed;
}

.progress-container {
  max-width: 600px;
  margin: auto;
}

@media (max-width: 768px) {
  .progress-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .progress-line {
    display: none;
  }
}

/* Process Timeline */
.process-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-number {
  background: var(--brand-600);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.step-text {
  font-weight: 600;
  color: #374151;
}

.process-arrow {
  color: var(--brand-400);
  font-size: 1.5rem;
  margin: 0 0.5rem;
}

.placement-card {
  height: 100%;
}

.placement-label {
  display: block;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.placement-label:hover {
  border-color: var(--brand-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.placement-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.placement-icon {
  margin-bottom: 0.5rem;
}

.placement-text h6 {
  color: #374151;
}

/* Selected State */
input[name='placement']:checked + .placement-label {
  border-color: var(--brand-600);
  background-color: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

input[name='placement']:checked + .placement-label .placement-icon i {
  color: var(--brand-600) !important;
}

input[name='placement']:checked + .placement-label .placement-text h6 {
  color: var(--brand-600);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
  .placement-label {
    padding: 1.25rem 1rem;
  }

  .placement-content {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }

  .placement-icon {
    margin-bottom: 0;
  }

  .placement-icon i {
    font-size: 2rem !important;
  }
}

/* Table Customization - Updated with specified green variants */
.table-success thead {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: white;
}

.table-success thead th {
  border: none;
  padding: 1rem;
}

.table tbody tr {
  transition: background-color 0.2s;
}

.table tbody tr:hover {
  background-color: #f0fdf4 !important;
}

/* Accordion Customization - Updated with specified green variants */
.accordion-button {
  background-color: white;
  color: #374151;
  border: none;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: #f0fdf4;
  color: #16a34a;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2316a34a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

/* Alert Customization */
.alert-warning {
  background-color: #fef3c7;
  border: 1px solid #fbbf24;
  color: #92400e;
}

/* Footer */
footer {
  position: relative;
  background-color: #116e34;
}

footer a:hover {
  color: white !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-gradient {
    padding: 2rem 0;
  }

  .display-3 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 1.75rem;
  }

  .process-timeline {
    flex-direction: column;
  }

  .process-arrow {
    transform: rotate(90deg);
  }

  .table {
    font-size: 0.875rem;
  }
}

/* Loading Animation */
.img-fluid {
  opacity: 1;
  transition: opacity 0.3s;
}

.img-fluid[loading] {
  opacity: 0.7;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
.btn:focus {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  footer,
  .btn {
    display: none !important;
  }

  section {
    page-break-inside: avoid;
  }
}

#container-bestellen {
  background-image: url('container-bestellen.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}