/* ================================================
   HUBER Design System — Navigation + Hero + Footer
   ================================================ */

/* ── Local Fonts ─────────────────────────────────── */
@font-face {
  font-family: 'Open Sans';
  src: url('opensanslight.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('opensanslightitalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('opensans.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('opensansitalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('opensanssemibold.woff') format('woff');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('opensanssemibolditalic.woff') format('woff');
  font-weight: 600 900;
  font-style: italic;
  font-display: swap;
}

/* ── Base Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: color 0.25s; }
ul { list-style: none; margin: 0; padding: 0; }

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Hide legacy Siquando structural elements */
#filltop, .site-header, #extra, #header, #logo,
.topheader, img.sqrlogo, a > img.sqrlogo,
#headersliderbullets { display: none !important; }

/* Suppress old page-level header remnants (non-migrated pages) */
body > header:not(.hero-cinematic) { display: none; }

/* ── Glass Nav ───────────────────────────────────── */
.glass-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 88px;
  background: transparent;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  height: 70px;
}

.glass-nav .logo img {
  height: 52px; width: auto;
  filter: none; background: transparent; box-shadow: none;
  transition: transform 0.3s;
}

.glass-nav .logo:hover img { transform: scale(1.04); }

.nav-links {
  display: flex; gap: clamp(0.6rem, 1.2vw, 2rem);
  position: absolute; left: 50%; transform: translateX(-50%);
}

.nav-links a {
  color: #fff; font-weight: 700; text-transform: uppercase;
  font-size: 0.8rem; letter-spacing: 1px; white-space: nowrap;
}

.glass-nav.is-scrolled .nav-links a { color: #1a1a1a; }

.nav-links a:hover,
.nav-links li.active a { color: var(--c-primary) !important; }

/* Mobile toggle */
.mobile-toggle {
  display: none; background: transparent; border: none; cursor: pointer;
  width: 30px; height: 24px; position: relative; z-index: 1001;
}

.mobile-toggle span {
  display: block; width: 100%; height: 3px; background: #fff;
  position: absolute; left: 0; transition: all 0.3s ease; border-radius: 2px;
}

.glass-nav.is-scrolled .mobile-toggle span { background: #1a1a1a; }
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 10.5px; }
.mobile-toggle span:nth-child(3) { bottom: 0; }

.mobile-toggle.is-active span { background: #1a1a1a !important; }
.mobile-toggle.is-active span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-active span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* ── Cinematic Hero ──────────────────────────────── */
.hero-cinematic {
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  position: relative; text-align: center; color: #fff;
  overflow: hidden; margin: 0;
}

.hero-bg {
  position: absolute; inset: 0;
  background-position: var(--hero-pos, center); background-size: cover; background-repeat: no-repeat;
  z-index: 1;
}

.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.2) 45%,
    rgba(0,0,0,0.7) 100%);
}

.hero-content {
  position: relative; z-index: 2; max-width: 900px; padding: 0 20px;
  animation: heroFadeUp 1s ease-out forwards;
}

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

.hero-kicker {
  font-size: 1rem; font-weight: 800; letter-spacing: 6px;
  text-transform: uppercase; color: var(--c-primary);
  margin-bottom: 1.5rem; display: block;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1.05;
  margin: 0 0 1.5rem; text-transform: uppercase; letter-spacing: -2px;
  color: #fff;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 300; margin: 0;
  color: #e2e8f0; line-height: 1.6;
}

/* ── Minimal Footer ──────────────────────────────── */
.minimal-footer {
  background: #141414; color: #94a3b8;
  padding: 5rem 5% 2.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.minimal-footer .footer-col h4 {
  color: #fff; font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2.5px;
  margin: 0 0 1.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--c-primary);
  display: inline-block;
}

.minimal-footer .footer-tagline {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.12em; line-height: 2;
  color: #475569; margin: 0 0 1.5rem;
}

.minimal-footer address {
  font-style: normal; line-height: 1.4; color: #94a3b8; font-size: 0.85rem;
}

.minimal-footer address span,
.minimal-footer address a,
.minimal-footer .footer-col a {
  display: block; margin-bottom: 0.5rem;
}

.minimal-footer address a,
.minimal-footer .footer-col a {
  color: #94a3b8; font-weight: 500; transition: color 0.2s;
}

.minimal-footer address a:hover,
.minimal-footer .footer-col a:hover { color: #fff; }

.minimal-footer .footer-col p {
  color: #94a3b8; font-size: 0.85rem; line-height: 1.8; margin: 0 0 1rem;
}

.minimal-footer .footer-cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--c-primary);
  color: #fff !important;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-top: 1rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.minimal-footer .footer-cta:hover {
  background: var(--c-primary-dark);
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-bottom-links {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #475569; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 1px;
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: #94a3b8; }

.footer-copyright {
  color: #334155; font-size: 0.68rem;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 992px) {
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    transform: translateY(-100%);
    background: #fff; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 2.5rem; opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .nav-links.nav-active { transform: translateY(0); opacity: 1; }
  .nav-links a { color: #1a1a1a; font-size: 1.3rem; font-weight: 900; }
  .mobile-toggle { display: block; }
}

/* Hero-Text auf Desktop nur auf Seiten mit $page_hero_show_text=true sichtbar */
.hero-text-mobile-only { display: none; }

/* Tablet + Mobile: Zoom + Hero-Text einblenden + vertikal stapeln */
@media (max-width: 992px) {
  .hero-bg {
    transform: scale(1.2);
    background-position: 25% center;
  }

  .hero-bg::after {
    background: linear-gradient(to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.35) 45%,
      rgba(0,0,0,0.75) 100%);
  }

  .hero-text-mobile-only { display: flex; }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0 24px;
  }
}

@media (max-width: 767px) {
  /* Hero-Content vertikal stapeln */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0 24px;
  }

  .hero-content h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); letter-spacing: 0; margin: 0 0 1rem -5px; text-align: left; }
  .hero-kicker { font-size: 0.75rem; letter-spacing: 4px; margin-bottom: 1rem; }
  .hero-content p { font-size: 0.9rem; }

  .minimal-footer { padding: 3rem 1.5rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-links { gap: 1rem; }
}
