/* =============================================================
   Empire Bau — Polish Layer
   Premium refinements loaded AFTER main.css (non-destructive).
   Theme stays dark + gold (#e59d02). Remove this <link> to revert.
   ============================================================= */

:root {
  --eb-gold: #e59d02;
  --eb-gold-soft: #f4b733;
  --eb-gold-grad: linear-gradient(135deg, #f4b733 0%, #e59d02 55%, #c47f00 100%);
  --eb-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Global polish ---------- */
* { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

::selection { background: var(--eb-gold); color: #0a0a0a; }

html { scroll-behavior: smooth; }

body { letter-spacing: .1px; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#e59d02, #c47f00);
  border-radius: 10px;
  border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover { background: #f4b733; }

/* Accessible focus ring */
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--eb-gold-soft);
  outline-offset: 3px;
}

img { max-width: 100%; }

/* ---------- Section titles ---------- */
.section-title { padding-bottom: 50px; }

.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: .5px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #cfcfcf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* replace the dash-on-both-sides with a single elegant underline */
.section-title h2:before { display: none; }
.section-title h2:after {
  display: block;
  margin: 18px auto 0;
  width: 70px;
  height: 4px;
  border-radius: 4px;
  background: var(--eb-gold-grad);
}

.section-title p {
  max-width: 680px;
  margin: 14px auto 0;
  color: rgba(248, 248, 248, .6);
  font-size: 16px;
}

/* ---------- Header ---------- */
.header { padding: 18px 0; transition: padding .4s var(--eb-ease), background .4s ease; }
.scrolled .header { padding: 10px 0; }
.scrolled .header::before {
  background: rgba(8, 8, 8, .78);
  border-bottom: 1px solid rgba(229, 157, 2, .18);
}
.header .logo img { max-height: 42px; transition: max-height .4s var(--eb-ease); }
.scrolled .header .logo img { max-height: 36px; }

/* Desktop nav link underline animation */
@media (min-width: 1200px) {
  .navmenu ul li a {
    position: relative;
    transition: color .3s ease;
  }
  .navmenu ul li a::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 4px;
    height: 2px;
    background: var(--eb-gold-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--eb-ease);
  }
  .navmenu ul li a:hover::after,
  .navmenu ul li a.active::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,0,0,.55) 0%, rgba(4,0,0,.25) 35%, rgba(4,0,0,.85) 100%),
    radial-gradient(120% 80% at 50% 0%, rgba(229,157,2,.10), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-title {
  font-size: clamp(34px, 6vw, 68px) !important;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.5px;
  text-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.hero-title .typed {
  background: var(--eb-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title .typed::after { color: var(--eb-gold); }

/* Hero stat cards — crisper glass */
.hero-stat.unified {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .4s var(--eb-ease), background .35s ease, border-color .35s ease, box-shadow .4s ease;
}
.hero-stat.unified:hover {
  border-color: rgba(229,157,2,.45);
  background: rgba(229,157,2,.10);
}
.hero-stat.highlight { border-color: rgba(229,157,2,.5); }
.stat-text strong { font-weight: 800; letter-spacing: .3px; }

/* ---------- Buttons (shared premium look) ---------- */
.header .btn-getstarted,
.header .btn-getstarted:focus,
.contact #emailForm .submit-btn,
.submit-btn {
  background: var(--eb-gold-grad);
  border: none;
  box-shadow: 0 8px 24px rgba(229,157,2,.30);
  transition: transform .3s var(--eb-ease), box-shadow .3s ease, filter .3s ease;
}
.header .btn-getstarted:hover,
.contact #emailForm .submit-btn:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(229,157,2,.45);
  filter: brightness(1.05);
}
.submit-btn:active { transform: translateY(0); }

.submit-btn {
  border-radius: 50px;
  padding: 14px 40px;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: .3px;
}

/* ---------- Service cards ---------- */
.services .services-grid .service-card {
  border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, #1c1c1c 0%, #161616 100%);
  transition: transform .4s var(--eb-ease), box-shadow .4s ease, border-color .4s ease;
}
.services .services-grid .service-card::before {
  height: 3px;
  background: var(--eb-gold-grad);
}
.services .services-grid .service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(229,157,2,.30);
  box-shadow: 0 28px 56px rgba(0,0,0,.55);
}
.services .services-grid .service-card .card-number span {
  background: rgba(229,157,2,.12);
  box-shadow: inset 0 0 0 1px rgba(229,157,2,.25);
}
.services .services-grid .service-card:hover .card-number span {
  background: var(--eb-gold-grad);
  color: #0a0a0a;
  box-shadow: 0 8px 20px rgba(229,157,2,.4);
}

/* ---------- Feature cards (Warum wir) ---------- */
.features .feature-item {
  transition: transform .4s var(--eb-ease), box-shadow .4s ease, border-color .4s ease;
}
.features .feature-item:hover {
  transform: translateY(-6px);
}
.features .feature-item .feature-content .feature-icon i { color: var(--eb-gold); }

/* About feature items */
.about .feature-item i { color: var(--eb-gold); }

/* ---------- Projects / Referenzen ---------- */
.projects .swiper-button-prev,
.projects .swiper-button-next { color: var(--eb-gold); }
.projects .swiper-pagination-bullet-active { background: var(--eb-gold) !important; }

.project-info { padding: 24px 4px 8px; }
.project-category {
  display: inline-block;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--eb-gold);
  padding: 4px 0;
}
.project-title {
  font-size: 24px;
  font-weight: 800;
  margin: 6px 0 14px;
}
.project-description {
  color: rgba(248,248,248,.72);
  line-height: 1.7;
  font-size: 15px;
}
.project-meta .location { color: var(--eb-gold); font-weight: 600; }

/* ---------- Contact form ---------- */
.contact #emailForm .form-control,
#emailForm .form-control {
  background: #141414;
  border: 1px solid rgba(255,255,255,.10);
  color: #f8f8f8;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.contact #emailForm .form-control:focus,
#emailForm .form-control:focus {
  border-color: var(--eb-gold);
  box-shadow: 0 0 0 3px rgba(229,157,2,.18);
  background: #181818;
}
#emailForm .form-control::placeholder { color: rgba(248,248,248,.4); }

.form-header h3 {
  font-weight: 800;
  letter-spacing: .3px;
}

/* Contact info items */
.contact .info-item {
  transition: transform .35s var(--eb-ease);
}
.contact .info-item:hover { transform: translateX(4px); }
.contact .info-item i,
.contact .info-item a i { color: var(--eb-gold); }
.contact .info-item h4 { color: #fff; }

/* ---------- Footer ---------- */
.footer-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.82));
  z-index: 0;
}
.footer-simple .footer-bg img { opacity: .5; }
.footer-simple nav.footer-nav ul {
  display: flex;            /* fix: flex-wrap had no effect without this */
  flex-wrap: wrap;
}
.footer-simple nav.footer-nav ul li a {
  color: rgba(255,255,255,.82);
  font-weight: 500;
  padding: 10px 14px;
  letter-spacing: .2px;
}
.footer-simple nav.footer-nav ul li a:hover,
.footer-simple nav.footer-nav ul li a.active { color: var(--eb-gold-soft); }
.footer-simple .footer-text {
  color: rgba(255,255,255,.7);
  position: relative;
  z-index: 1;
}
.footer-simple .footer-text a { color: var(--eb-gold-soft); text-decoration: none; }

/* ---------- Scroll-to-top ---------- */
.scroll-top {
  background: var(--eb-gold-grad) !important;
  box-shadow: 0 8px 24px rgba(229,157,2,.4);
  transition: transform .3s var(--eb-ease), box-shadow .3s ease;
}
.scroll-top:hover { transform: translateY(-4px); }
.scroll-top i { color: #0a0a0a; }

/* ---------- Section badge (WAS WIR TUN) ---------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(229,157,2,.10);
  border: 1px solid rgba(229,157,2,.3);
  color: var(--eb-gold-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.section-badge i { color: var(--eb-gold); }

/* ---------- Zielgruppen list ---------- */
.features-tabs .feature-grid .feature-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: border-color .3s ease, background .3s ease;
}
.features-tabs .feature-grid .feature-item:hover {
  border-color: rgba(229,157,2,.3);
  background: rgba(229,157,2,.05);
}
.features-tabs .feature-grid .feature-item i { color: var(--eb-gold); }

/* ---------- Reveal animation softening ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Mobile spacing tune ---------- */
@media (max-width: 768px) {
  .section-title h2 { font-size: 26px; }
  .hero-title { font-size: 32px !important; }
  .project-title { font-size: 20px; }
}
