/* pages/home.css — Homepage-specific styles */

/* ============================================================
   HERO — Full-bleed background image via <img> tag
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  z-index: 0;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 18, 58, 0.92) 0%,
    rgba(0, 48, 100, 0.74) 50%,
    rgba(0, 80, 157, 0.46) 100%
  );
  z-index: 1;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: var(--space-32) var(--space-24);
  position: relative;
}

.hero__content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(var(--font-size-3xl), 4.5vw, var(--font-size-5xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: #ffffff;
  margin-bottom: var(--space-6);
}

.hero__title span {
  color: var(--color-secondary); /* Deine Firmenfarbe, z.B. Gelb oder Cyan */
  display: block; /* Optional: Erzwingt den Zeilenumbruch beim Span */
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9); /* Helles Weiß/Grau */
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero__trust {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
  font-size: var(--font-size-sm);
}

.hero__trust-dot {
  width: 4px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding-block: var(--space-20) var(--space-16);
    align-items: center;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
    flex-wrap: wrap;
  }
}


/* ============================================================
   PHOTO STRIP — infinite carousel
   ============================================================ */
@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.photo-strip {
  overflow: hidden;
  height: 300px;
  line-height: 0;
}

.photo-strip__track {
  display: flex;
  width: max-content;
  height: 100%;
  gap: 4px;
  animation: carousel-scroll 36s linear infinite;
}

.photo-strip__track:hover {
  animation-play-state: paused;
}

.photo-strip__item {
  flex-shrink: 0;
  width: 420px;
  height: 100%;
  overflow: hidden;
  margin: 0;
  position: relative;
}

.photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-strip__track:hover .photo-strip__item img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .photo-strip { height: 220px; }
  .photo-strip__item { width: 280px; }
  .photo-strip__track { animation-duration: 24s; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-strip__track { animation: none; }
}


/* ============================================================
   BENEFITS SECTION
   ============================================================ */
.benefits-section {
  position: relative;
}


/* ============================================================
   OPEN POSITIONS
   ============================================================ */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1024px) {
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .jobs-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   TEAM PHOTO SECTION
   ============================================================ */
.team-photo-section {
  position: relative;
  overflow: hidden;
}

.team-photo-section__image {
  position: relative;
  min-height: 400px;
  aspect-ratio: 16/6;
}

.team-photo-section__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.team-photo-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 26, 80, 0.90) 0%,
    rgba(0, 58, 117, 0.68) 45%,
    rgba(0, 80, 157, 0.28) 100%
  );
  display: flex;
  align-items: center;
}

.team-photo-section__content {
  max-width: 620px;
  padding-block: var(--space-16);
}

.team-photo-section__content h2 {
  font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-3xl));
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  margin-bottom: var(--space-4);
  margin-top: var(--space-3);
  line-height: var(--line-height-snug);
}

.team-photo-section__content p {
  font-size: var(--font-size-md);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
}

@media (max-width: 768px) {
  .team-photo-section__image {
    aspect-ratio: auto;
    min-height: 480px;
  }
  .team-photo-section__content {
    padding-block: var(--space-12);
  }
}


/* ============================================================
   VALUES SECTION — dark with photo background
   ============================================================ */
.values-section {
  position: relative;
  overflow: hidden;
  background-image: url('../../assets/images/building/F_SVG_PFAFF_LOGISTIK_CP_190925_620.JPG');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}

.values-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 26, 80, 0.94) 0%, rgba(0, 60, 140, 0.88) 100%);
  z-index: 0;
}

.values-section .container {
  position: relative;
  z-index: 1;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .values-section { background-attachment: scroll; }
}

@media (max-width: 768px) {
  .values-section { background-attachment: scroll; }
}


/* ============================================================
   DAILY WORK — glassmorphism cards
   ============================================================ */
.daily-work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.daily-work-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-7) var(--space-6);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 16px rgba(0, 80, 157, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base),
    background var(--transition-base);
}

.daily-work-item:hover {
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.92);
}

.daily-work-item__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  transition: background var(--transition-base);
}

.daily-work-item:hover .daily-work-item__icon {
  background: var(--color-primary);
}

.daily-work-item__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  transition: color var(--transition-base);
}

.daily-work-item:hover .daily-work-item__icon svg {
  color: #ffffff;
}

.daily-work-item__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.daily-work-item__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

@media (max-width: 640px) {
  .daily-work-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   FAQ LAYOUT
   ============================================================ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-16);
  align-items: start;
}

@media (max-width: 768px) {
  .faq-layout { grid-template-columns: 1fr; gap: var(--space-8); }
}
