/* === ROBTEC Hero v2 — Scoped === */
.rt-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a1a2e;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

.rt-hero * { box-sizing: border-box; }

.rt-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://robtec.de/wp-content/uploads/2018/11/iStock-916478814-e1558427295208.jpg') center/cover no-repeat;
  opacity: 0.35;
}

.rt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.75) 0%, rgba(15,52,96,0.5) 50%, rgba(226,105,0,0.15) 100%);
}

.rt-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(226,105,0,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(226,105,0,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 10% 60%, rgba(100,160,255,0.06) 0%, transparent 50%);
  animation: rtGradientShift 12s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes rtGradientShift {
  0% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.8; transform: scale(1.02); }
}

.rt-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(226,105,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226,105,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: rtGridPulse 4s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes rtGridPulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

.rt-hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.rt-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(226,105,0,0.5);
  border-radius: 50%;
  animation: rtParticleFloat linear infinite;
}

@keyframes rtParticleFloat {
  0% { transform: translateY(85vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* Content */
.rt-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 100px 32px 80px;
}

/* Badge */
.rt-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
  padding: 14px 30px 14px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 980px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: rtBadgeIn 0.8s 0.3s ease both;
  font-family: 'Inter', sans-serif;
}

@keyframes rtBadgeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.rt-badge-dot {
  width: 10px;
  height: 10px;
  background: #e26900;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(226,105,0,0.5);
  animation: rtDotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes rtDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(226,105,0,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 20px rgba(226,105,0,0.8); }
}

.rt-badge-text {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px;
}

.rt-badge-text strong {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}

/* Typography */
.rt-hero-title {
  font-size: clamp(44px, 7.5vw, 80px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -3px !important;
  color: #ffffff !important;
  margin: 0 0 28px 0 !important;
  padding: 0 !important;
  font-family: 'Inter', sans-serif !important;
  animation: rtTextUp 0.8s 0.5s ease both;
  text-align: center !important;
}

.rt-hero-title em {
  font-style: normal !important;
  background: linear-gradient(135deg, #e26900, #ff9944);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes rtTextUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.rt-hero-sub {
  font-size: clamp(17px, 2.2vw, 20px) !important;
  color: rgba(255,255,255,0.78) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
  max-width: 560px;
  margin: 0 auto 52px !important;
  line-height: 1.7 !important;
  font-weight: 400 !important;
  font-family: 'Inter', sans-serif !important;
  animation: rtTextUp 0.8s 0.7s ease both;
  padding: 0 !important;
  text-align: center !important;
}

/* Buttons */
.rt-hero-buttons {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  animation: rtTextUp 0.8s 0.9s ease both;
}

.rt-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.6) !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  font-family: 'Inter', sans-serif !important;
  position: relative;
  letter-spacing: 0.2px;
}

.rt-btn::before {
  content: '';
  position: absolute;
  inset: -6px -14px;
  background: rgba(226,105,0,0);
  border-radius: 8px;
  transition: background 0.35s ease;
  z-index: -1;
}

.rt-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #e26900;
  transition: width 0.3s ease;
}

.rt-btn:hover {
  color: #ffffff !important;
}

.rt-btn:hover::before {
  background: rgba(226,105,0,0.12);
}

.rt-btn:hover::after {
  width: 100%;
}

.rt-btn-primary {
  color: rgba(255,255,255,0.9) !important;
}

.rt-btn-primary::after {
  width: 100%;
  background: rgba(226,105,0,0.4);
}

.rt-btn-primary:hover::after {
  background: #e26900;
}

.rt-btn-arrow {
  font-size: 13px;
  transition: transform 0.3s ease;
  opacity: 0.5;
}

.rt-btn:hover .rt-btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.rt-btn-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.15);
  align-self: center;
}

/* Scroll indicator */
.rt-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: rtScrollBounce 2s ease-in-out infinite;
}

.rt-scroll-inner {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.rt-scroll-dot {
  width: 4px;
  height: 8px;
  background: #e26900;
  border-radius: 2px;
  animation: rtScrollDot 2s ease-in-out infinite;
}

@keyframes rtScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes rtScrollDot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Divi-Reset: Section soll keinen Padding/Margin haben */
.et_pb_section.et_pb_section_0 {
  padding: 0 !important;
  margin: 0 !important;
}

.et_pb_section.et_pb_section_0 > .et_pb_row {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.et_pb_section.et_pb_section_0 .et_pb_code_inner {
  padding: 0 !important;
  margin: 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .rt-hero { min-height: 75vh; }
  .rt-hero-content { padding: 80px 20px 60px; }
  .rt-hero-title { letter-spacing: -1.5px !important; }
  .rt-hero-buttons { gap: 20px; }
  .rt-btn-divider { display: none; }
  .rt-btn { font-size: 14px !important; }
  .rt-scroll-indicator { bottom: 20px; }
}
