/*
Theme Name:   Fasselt Child
Template:     hello-elementor
Version:      3.0.0
Description:  Baumarkt Fasselt – Modernes CI, PHP Header/Footer (kein Elementor Theme Builder nötig)
*/

/* ═══════════════════════════════════════════════════════════════════
   CI TOKENS
═══════════════════════════════════════════════════════════════════ */
:root {
  --ft-red:        #CC1417;
  --ft-red-dk:     #A50F12;
  --ft-red-lt:     #e63336;
  --ft-bau:        #1A3A8F;
  --ft-garten:     #1B6B2F;
  --ft-getraenke:  #E6A800;
  --ft-black:      #1A1A1A;
  --ft-dark:       #2C2C2C;
  --ft-grey:       #555555;
  --ft-grey-lt:    #888888;
  --ft-border:     #E8E8E8;
  --ft-offwhite:   #F7F7F7;
  --ft-white:      #FFFFFF;

  --ft-font-head:  'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --ft-font-body:  'Open Sans', Arial, sans-serif;

  --ft-topbar-h:   40px;
  --ft-header-h:   80px;
  --ft-total-h:    calc(var(--ft-topbar-h) + var(--ft-header-h));

  --ft-shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --ft-shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --ft-shadow-lg:  0 8px 40px rgba(0,0,0,.18);
  --ft-radius:     8px;
  --ft-ease:       .22s ease;
  --ft-container:  1280px;
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--ft-total-h); }
body {
  font-family: var(--ft-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ft-dark);
  background: var(--ft-white);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
img { max-width: 100%; height: auto; }
a  { color: var(--ft-red); text-decoration: none; transition: color var(--ft-ease); }
a:hover { color: var(--ft-red-dk); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--ft-font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ft-black);
  margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════════════════════════════ */
.ft-container {
  max-width: var(--ft-container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════════════════════════ */
.ft-topbar {
  background: var(--ft-black);
  height: var(--ft-topbar-h);
  display: flex;
  align-items: center;
}
.ft-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ft-topbar__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ft-topbar__link {
  color: rgba(255,255,255,.72) !important;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--ft-ease);
}
.ft-topbar__link:hover { color: var(--ft-white) !important; }
.ft-topbar__hours { color: rgba(255,255,255,.5); font-size: .82rem; display: flex; align-items: center; gap: 5px; }

/* ═══════════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════════ */
.ft-header {
  background: var(--ft-white);
  height: var(--ft-header-h);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 16px rgba(0,0,0,.09);
  transition: box-shadow var(--ft-ease), transform var(--ft-ease);
}
.ft-header.is-scrolled { box-shadow: var(--ft-shadow-md); }
.ft-header.is-hidden   { transform: translateY(-100%); }

.ft-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Logo */
.ft-header__logo a { display: flex; align-items: center; }
.ft-header__logo img { height: 56px; width: auto; display: block; }
.ft-header__logo .custom-logo { height: 56px; width: auto; }
.ft-header__site-name {
  font-family: var(--ft-font-head);
  font-weight: 800;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--ft-red);
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════════ */
.ft-nav { display: flex; align-items: center; }

/* Primary list */
.ft-nav .ft-nav__list,
.ft-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Top-level items */
.ft-nav__item { position: relative; }

.ft-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: var(--ft-header-h);
  font-family: var(--ft-font-head);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ft-dark) !important;
  white-space: nowrap;
  position: relative;
  transition: color var(--ft-ease);
}
.ft-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 3px;
  background: var(--ft-red);
  transform: scaleX(0);
  transition: transform var(--ft-ease);
}
.ft-nav__item:hover > .ft-nav__link,
.ft-nav__item.is-active > .ft-nav__link,
.ft-nav__item.current-menu-item > .ft-nav__link {
  color: var(--ft-red) !important;
}
.ft-nav__item:hover > .ft-nav__link::after,
.ft-nav__item.is-active > .ft-nav__link::after,
.ft-nav__item.current-menu-item > .ft-nav__link::after {
  transform: scaleX(1);
}

/* Chevron icon */
.ft-nav__chevron {
  transition: transform var(--ft-ease);
  flex-shrink: 0;
  opacity: .6;
}
.ft-nav__item--has-dropdown:hover .ft-nav__chevron { transform: rotate(180deg); }

/* Dropdown */
.ft-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--ft-white);
  border-top: 3px solid var(--ft-red);
  box-shadow: var(--ft-shadow-lg);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--ft-ease);
  z-index: 100;
}
.ft-nav__item--has-dropdown:hover > .ft-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Sub items */
.ft-nav__sublink {
  display: block;
  padding: 10px 20px;
  font-family: var(--ft-font-body);
  font-size: .9rem;
  color: var(--ft-dark) !important;
  transition: all var(--ft-ease);
  white-space: nowrap;
}
.ft-nav__sublink:hover {
  color: var(--ft-red) !important;
  background: var(--ft-offwhite);
  padding-left: 28px;
}

/* ── Mobile Toggle ──────────────────────────────────────────────── */
.ft-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
}
.ft-nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ft-dark);
  border-radius: 2px;
  transition: all .3s ease;
}
.ft-nav-toggle.is-active .ft-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ft-nav-toggle.is-active .ft-nav-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ft-nav-toggle.is-active .ft-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.ft-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--ft-ease);
}
.ft-nav-overlay.is-visible { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════
   ELEMENTOR PAGE CONTENT — offset for sticky header
═══════════════════════════════════════════════════════════════════ */
.site { min-height: 50vh; }

/* Remove default Hello Elementor header/footer if they fire */
.elementor-location-header,
.elementor-location-footer { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════ */
.ft-footer { background: var(--ft-black); color: rgba(255,255,255,.7); }

.ft-footer__main { padding: 64px 0 48px; }

.ft-footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

/* Brand column */
.ft-footer__logo .custom-logo { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.ft-footer__logo img           { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.ft-footer__tagline {
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
  margin: 14px 0 16px;
}
.ft-footer__address {
  font-style: normal;
  font-size: .9rem;
  line-height: 1.9;
  color: rgba(255,255,255,.6);
}
.ft-footer__address a { color: rgba(255,255,255,.6) !important; }
.ft-footer__address a:hover { color: var(--ft-white) !important; }

.ft-footer__social { margin-top: 16px; display: flex; gap: 10px; }
.ft-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: rgba(255,255,255,.7) !important;
  transition: all var(--ft-ease);
}
.ft-footer__social-link:hover { background: var(--ft-red); color: var(--ft-white) !important; }

/* Footer headings */
.ft-footer__heading {
  font-family: var(--ft-font-head);
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ft-white);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ft-red);
  display: inline-block;
}

/* Footer nav */
.ft-footer__nav { list-style: none; margin: 0; padding: 0; }
.ft-footer__nav li { margin-bottom: 8px; }
.ft-footer__nav a {
  font-size: .88rem;
  color: rgba(255,255,255,.6) !important;
  transition: all var(--ft-ease);
  display: inline-flex;
  align-items: center;
}
.ft-footer__nav a::before {
  content: '›';
  margin-right: 6px;
  color: var(--ft-red);
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--ft-ease);
}
.ft-footer__nav a:hover { color: var(--ft-white) !important; padding-left: 4px; }
.ft-footer__nav a:hover::before { opacity: 1; transform: translateX(0); }

/* Opening hours table */
.ft-footer__hours {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.ft-footer__hours tr { border-bottom: 1px solid rgba(255,255,255,.1); }
.ft-footer__hours tr:last-child { border-bottom: none; }
.ft-footer__hours td { padding: 9px 0; color: rgba(255,255,255,.65); }
.ft-footer__hours-time { text-align: right; font-weight: 600; color: var(--ft-white); white-space: nowrap; }

/* Footer bar */
.ft-footer__bar { background: #111; border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.ft-footer__bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ft-footer__copy { font-size: .82rem; color: rgba(255,255,255,.4); margin: 0; }

.ft-footer__legal-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.ft-footer__legal-nav a { font-size: .82rem; color: rgba(255,255,255,.4) !important; }
.ft-footer__legal-nav a:hover { color: rgba(255,255,255,.8) !important; }

/* ═══════════════════════════════════════════════════════════════════
   ELEMENTOR OVERRIDES
═══════════════════════════════════════════════════════════════════ */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--ft-font-head) !important;
}
.elementor-button {
  font-family: var(--ft-font-head) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ft-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ft-topbar__hours { display: none; }
}

@media (max-width: 768px) {
  .ft-nav-toggle { display: flex; }

  .ft-nav {
    position: fixed;
    top: 0; right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--ft-white);
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: calc(var(--ft-topbar-h) + var(--ft-header-h) + 16px);
    overflow-y: auto;
    transition: right .32s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
  }
  .ft-nav.is-open { right: 0; }
  .ft-nav-overlay { display: block; }

  .ft-nav .ft-nav__list, .ft-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .ft-nav__link {
    height: auto;
    padding: 14px 20px;
    justify-content: space-between;
    font-size: 1rem;
    border-bottom: 1px solid var(--ft-border);
  }
  .ft-nav__link::after { display: none; }

  .ft-nav__dropdown {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    border-top: none;
    border-left: 4px solid var(--ft-red);
    background: var(--ft-offwhite);
    display: none;
    padding: 4px 0;
    margin: 0;
  }
  .ft-nav__item--has-dropdown.is-open > .ft-nav__dropdown { display: block; }
  .ft-nav__sublink { padding: 10px 20px 10px 24px; }

  .ft-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .ft-footer__bar-inner { flex-direction: column; text-align: center; }
  .ft-topbar__contact { gap: 12px; }
  .ft-topbar__social { display: none; }
}
.ft-nav-overlay { pointer-events: none; }
.ft-nav-overlay.is-visible { pointer-events: auto; opacity: 1; }