/* Bautechnik Markkleeberg – moderner Header & Hero */

:root {
  --btm-accent: #f84e1d;
  --btm-accent-soft: rgba(248, 78, 29, 0.14);
  --btm-dark: #0f172a;
  --btm-dark-soft: rgba(15, 23, 42, 0.72);
  --btm-glass: rgba(255, 255, 255, 0.82);
  --btm-border: rgba(255, 255, 255, 0.14);
  --btm-radius: 999px;
  --btm-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

/* ── Header ─────────────────────────────────────────── */

.btm-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.btm-header__top {
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.btm-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  min-height: 38px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.btm-header__top-inner a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.btm-header__top-inner a:hover {
  color: #fff;
}

.btm-header__top-inner i {
  color: var(--btm-accent);
  font-size: 0.78rem;
}

.btm-header__main {
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease, backdrop-filter 0.35s ease;
}

.btm-header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.btm-header__logo img {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: height 0.3s ease;
}

.btm-header__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.btm-header__nav a {
  position: relative;
  padding: 0.55rem 0.95rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--btm-radius);
  transition: color 0.25s ease, background 0.25s ease;
}

.btm-header__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  width: 0;
  height: 2px;
  background: var(--btm-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.btm-header__nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btm-header__nav a:hover::after {
  width: calc(100% - 1.4rem);
}

.btm-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btm-header__menu {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btm-header__menu:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Scrolled state */
.btm-header.is-scrolled .btm-header__top {
  display: none;
}

.btm-header.is-scrolled .btm-header__main {
  background: var(--btm-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: var(--btm-shadow);
}

.btm-header.is-scrolled .btm-header__nav a {
  color: var(--btm-dark);
}

.btm-header.is-scrolled .btm-header__nav a:hover {
  background: var(--btm-accent-soft);
  color: var(--btm-dark);
}

.btm-header.is-scrolled .btm-header__menu {
  border-color: rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--btm-dark);
}

.btm-header.is-scrolled .btm-header__logo img {
  height: 46px;
}

/* ── Buttons ────────────────────────────────────────── */

.btm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--btm-radius);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btm-btn:hover {
  transform: translateY(-1px);
}

.btm-btn--primary {
  background: linear-gradient(135deg, #ff6a3d 0%, var(--btm-accent) 55%, #e04312 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(248, 78, 29, 0.35);
}

.btm-btn--primary:hover {
  color: #fff;
  box-shadow: 0 14px 34px rgba(248, 78, 29, 0.42);
}

.btm-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btm-btn--lg {
  padding: 0.9rem 1.65rem;
  font-size: 0.98rem;
}

.btm-header .btm-btn--primary {
  box-shadow: 0 8px 22px rgba(248, 78, 29, 0.28);
}

/* ── Hero ───────────────────────────────────────────── */

.btm-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.btm-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: btmHeroZoom 18s ease-in-out infinite alternate;
}

.btm-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.78) 100%),
    radial-gradient(circle at 85% 20%, rgba(248, 78, 29, 0.22), transparent 42%);
}

.btm-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 85%);
}

.btm-hero__content {
  position: relative;
  z-index: 2;
  padding: 9.5rem 0 5rem;
  max-width: 860px;
}

.btm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  margin-bottom: 1.35rem;
  border-radius: var(--btm-radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: btmFadeUp 0.7s ease both;
}

.btm-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--btm-accent);
  box-shadow: 0 0 0 6px rgba(248, 78, 29, 0.22);
}

.btm-hero__title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.35rem, 5.4vw, 4.35rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
  animation: btmFadeUp 0.75s ease 0.08s both;
}

.btm-hero__title span {
  color: #ffb08f;
  background: linear-gradient(135deg, #ffd4c4 0%, #ff8a5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btm-hero__lead {
  margin: 0 0 1.85rem;
  max-width: 640px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  animation: btmFadeUp 0.75s ease 0.16s both;
}

.btm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  animation: btmFadeUp 0.75s ease 0.24s both;
}

.btm-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 620px;
  animation: btmFadeUp 0.75s ease 0.32s both;
}

.btm-hero__stat {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.btm-hero__stat strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.btm-hero__stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.btm-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btm-hero__scroll i {
  animation: btmBounce 1.8s ease infinite;
}

.btm-hero__aside {
  position: absolute;
  right: 4%;
  bottom: 12%;
  z-index: 2;
  width: min(320px, 28vw);
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  animation: btmFadeUp 0.85s ease 0.4s both;
}

.btm-hero__aside-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
}

.btm-hero__aside-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.btm-hero__aside-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

/* Hide old banner on homepage when modern hero is active */
body.btm-modern-home .banner-two-swiper-main-wrapper {
  display: none;
}

body.btm-modern-home .header-two {
  display: none !important;
}

/* ── Animations ─────────────────────────────────────── */

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

@keyframes btmHeroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

@keyframes btmBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 1199px) {
  .btm-header__nav {
    display: none;
  }

  .btm-header__menu {
    display: inline-flex;
  }

  .btm-hero__aside {
    display: none;
  }
}

@media (max-width: 767px) {
  .btm-header__top {
    display: none;
  }

  .btm-header__main-inner {
    min-height: 68px;
  }

  .btm-header__logo img {
    height: 42px;
  }

  .btm-header .btm-btn--primary {
    display: none;
  }

  .btm-hero {
    min-height: 88vh;
  }

  .btm-hero__content {
    padding-top: 7.5rem;
  }

  .btm-hero__stats {
    grid-template-columns: 1fr;
  }

  .btm-hero__scroll {
    display: none;
  }
}

@media (max-width: 479px) {
  .btm-hero__actions .btm-btn {
    width: 100%;
  }
}
