/* ============================================================
   Agro Rail & Logistics GmbH – Animations & Extra Styles
   ============================================================ */

/* ---------- Floating Elements ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(3deg); }
}
.float-anim  { animation: float 4s ease-in-out infinite; }
.float-slow  { animation: float-slow 6s ease-in-out infinite; }

/* ---------- Pulse ---------- */
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,92,42,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(26,92,42,0); }
}
.pulse { animation: pulse-green 2.5s ease-in-out infinite; }

/* ---------- Shimmer Loading ---------- */
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 4px;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--green-dark), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Hover Cards ---------- */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

/* ---------- Image Zoom Overlay ---------- */
.img-zoom-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.img-zoom-wrap img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-zoom-wrap:hover img {
  transform: scale(1.08);
}
.img-zoom-wrap .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,92,42,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.img-zoom-wrap:hover .overlay {
  opacity: 1;
}

/* ---------- Tag Badges ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tag-green  { background: rgba(26,92,42,0.1);  color: var(--green-dark); }
.tag-gold   { background: rgba(200,168,75,0.15); color: #8a6f1a; }
.tag-gray   { background: var(--gray-light);     color: var(--gray); }

/* ---------- Progress Bars ---------- */
.progress-bar-wrap {
  margin-bottom: 16px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--gold));
  border-radius: 8px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}
.progress-fill.animated { width: var(--progress-width, 0%); }

/* ---------- Dividers ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span {
  color: var(--gray);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ---------- Notification Toast ---------- */
.toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  z-index: 9000;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 1.2rem; }
.toast-success .toast-icon { color: var(--green-light); }
.toast-error   .toast-icon { color: #e74c3c; }

/* ---------- Accordion ---------- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  background: var(--white);
  font-weight: 600;
  color: var(--dark);
  transition: background var(--transition);
  user-select: none;
}
.accordion-header:hover { background: var(--gray-light); }
.accordion-header.open { background: var(--green-dark); color: var(--white); }
.accordion-arrow {
  font-size: 0.8rem;
  transition: transform var(--transition);
  color: var(--gold);
}
.accordion-header.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-body.open { max-height: 500px; }
.accordion-content {
  padding: 20px 24px;
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-dark), var(--gold));
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-dark);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-dark);
}
.timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.timeline-text {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---------- Sticky CTA Bar ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--green-dark);
  padding: 12px 0;
  z-index: 700;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: none;
}
@media (max-width: 640px) {
  .sticky-cta { display: block; }
  .sticky-cta.visible { transform: translateY(0); }
  .sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .sticky-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    margin: 0;
  }
  #back-to-top { bottom: 80px; }
}

/* ---------- Image Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item { overflow: hidden; }
.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* ---------- Responsive Tables ---------- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.styled {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.styled th {
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
table.styled td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
}
table.styled tr:hover td { background: var(--gray-light); }
table.styled tr:last-child td { border-bottom: none; }

/* ---------- Print Styles ---------- */
@media print {
  #header, footer, #cookie-banner, #cookie-modal, #back-to-top, .mobile-toggle { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-bg, .hero-overlay { display: none; }
  .hero h1, .hero p { color: #000; }
}
