/* Foeldessy / Apex override
   Basis: live Apex markup + aktuelle Apex CSS als Unterbau.
   Fokus: gemeinsame Breite, Header, Kategorie-Menue.
*/

:root {
  --fd-primary: #123a63;
  --fd-primary-2: #0f3153;
  --fd-secondary: #d8ad2e;
  --fd-secondary-2: #f0c84f;
  --fd-text: #10233a;
  --fd-text-soft: #516174;
  --fd-border: #dde3ea;
  --fd-bg: #ffffff;
  --fd-surface: #f7f9fc;
  --fd-shadow: 0 14px 40px rgba(16, 35, 58, 0.08);
  --fd-radius-sm: 0.5rem;
  --fd-radius-md: 0.875rem;
  --fd-radius-lg: 1.15rem;
  --fd-width: 1520px;
}

html,
body {
  background: var(--fd-bg);
  color: var(--fd-text);
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typografie */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
header .nav-link,
header .btn,
.logo-link {
  font-family: Oswald, Roboto, Arial, Helvetica, sans-serif;
}

a {
  color: var(--fd-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--fd-primary-2);
}

/* Gemeinsame Breite */
.container-xxl {
  max-width: var(--fd-width);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header Chrome */
header.header {
  position: relative;
  z-index: 1030;
  background: var(--fd-bg);
  color: var(--fd-text);
}

header .header-wrapper {
  background: var(--fd-bg);
}

header .meta {
  display: none;
}

header .header-box {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border-bottom: 1px solid var(--fd-border);
  box-shadow: 0 1px 0 rgba(16, 35, 58, 0.04);
}

header .header-box::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(18, 58, 99, 0.08);
  pointer-events: none;
}

header .header-container {
  display: grid;
  grid-template-columns: minmax(235px, 315px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  padding: 0.95rem 0 0.9rem;
}

header .logo-link {
  align-items: center;
  justify-self: start;
  min-width: 0;
  text-decoration: none;
}

header .logo-img {
  display: block;
  width: auto;
  max-width: 260px;
  height: 38px;
  object-fit: contain;
}

/* Suche */
header #searchForm.search {
  width: 100%;
  max-width: 760px;
  justify-self: stretch;
}

header #searchForm .input-group {
  flex-wrap: nowrap;
  align-items: stretch;
  border: 1px solid var(--fd-border);
  border-radius: 999px;
  background: var(--fd-bg);
  box-shadow: 0 1px 0 rgba(16, 35, 58, 0.02);
  overflow: hidden;
}

header #searchForm .form-control {
  height: 3.25rem;
  padding: 0.85rem 1.2rem;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--fd-text);
  font-size: 1rem;
}

header #searchForm .form-control::placeholder {
  color: #738294;
}

header #searchForm .btn {
  width: 3.5rem;
  min-width: 3.5rem;
  border: 0;
  background: transparent;
  color: var(--fd-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

header #searchForm .btn:hover,
header #searchForm .btn:focus {
  background: rgba(18, 58, 99, 0.06);
  color: var(--fd-primary-2);
}

header #searchForm svg,
header .menu-dropdowns svg,
header .mobile-nav svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

/* Account / Wishlist / Basket */
header .menu-dropdowns {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.35rem;
}

header .menu-dropdowns > * {
  flex: 0 0 auto;
}

header .menu-dropdowns .btn,
header .mobile-nav .btn,
header .btn-minibasket {
  position: relative;
  border: 0;
  border-radius: var(--fd-radius-sm);
  color: var(--fd-primary);
  background: transparent;
  min-height: 3.5rem;
  padding: 0.45rem 0.8rem 0.35rem;
  font-size: 0.95rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

header .menu-dropdowns .btn:hover,
header .menu-dropdowns .btn:focus,
header .mobile-nav .btn:hover,
header .mobile-nav .btn:focus,
header .btn-minibasket:hover,
header .btn-minibasket:focus {
  background: rgba(18, 58, 99, 0.06);
  color: var(--fd-primary-2);
}

header .menu-dropdowns .btn svg,
header .mobile-nav .btn svg,
header .btn-minibasket svg {
  margin-inline: auto;
  color: inherit;
}

.fd-header-icon {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.fd-header-icon--account {
  width: 30px;
  height: 34px;
  margin-inline: auto;
}

.fd-header-icon--mobile {
  width: 12px;
  height: 18px;
  margin-right: 0.35rem;
}

.fd-contact__subline--mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

header .menu-dropdowns .btn-text,
header .mobile-nav .btn-text,
header .btn-minibasket .btn-text {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

header .btn-minibasket {
  padding-right: 1rem;
}

header .btn-minibasket .btn-text {
  white-space: nowrap;
}

header .menu-dropdowns .dropdown-menu {
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  box-shadow: var(--fd-shadow);
}

header .menu-dropdowns .dropdown-menu-arrow::before,
header .menu-dropdowns .dropdown-menu-arrow::after {
  border-color: transparent transparent var(--fd-bg) transparent;
}

/* Category navigation */
header nav {
  background: var(--fd-bg);
}

header nav .container-xxl {
  padding-top: 0;
  padding-bottom: 0;
}

header #navbarSupportedContent,
header .navbar-collapse {
  border-top: 1px solid var(--fd-border);
  border-bottom: 1px solid var(--fd-border);
  background: var(--fd-bg);
}

header #navbarSupportedContent .nav,
header .navbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.05rem;
  padding: 0.55rem 0 0.9rem;
}

header #navbarSupportedContent .nav-item,
header .navbar-nav .nav-item {
  position: relative;
}

header #navbarSupportedContent .nav-link,
header .navbar-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 3rem;
  padding: 0.4rem 0.8rem;
  color: var(--fd-primary);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.028em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
}

header #navbarSupportedContent .nav-link:hover,
header #navbarSupportedContent .nav-link:focus,
header .navbar-nav .nav-link:hover,
header .navbar-nav .nav-link:focus {
  background: rgba(18, 58, 99, 0.06);
  color: var(--fd-primary-2);
}

header #navbarSupportedContent .nav-link.active,
header #navbarSupportedContent .nav-link[aria-current="page"],
header .navbar-nav .nav-link.active,
header .navbar-nav .nav-link[aria-current="page"] {
  color: var(--fd-primary);
  background: rgba(216, 173, 46, 0.18);
  box-shadow: inset 0 -3px 0 var(--fd-secondary);
}

header #navbarSupportedContent .nav-link svg,
header .navbar-nav .nav-link svg {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
}

header #navbarSupportedContent .nav-item.has-subs > .nav-link::after,
header .navbar-nav .nav-item.has-subs > .nav-link::after {
  content: "\25BE";
  display: inline-block;
  margin-left: 0.1rem;
  font-size: 0.65rem;
  line-height: 1;
  transform: translateY(-0.04em);
  color: currentColor;
}

/* Dropdown / Mega Menu */
header .nav-level-2 {
  position: absolute;
  left: 50%;
  top: calc(100% - 0.1rem);
  width: min(100vw - 2.5rem, var(--fd-width));
  transform: translateX(-50%);
  padding: 1.25rem 1.25rem 1.3rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--fd-border);
  border-radius: 0 0 var(--fd-radius-lg) var(--fd-radius-lg);
  box-shadow: var(--fd-shadow);
  z-index: 1050;
}

header .nav-level-2 .container-xxl {
  padding-left: 0;
  padding-right: 0;
}

header .nav-level-2 .row {
  margin-inline: -0.75rem;
}

header .nav-level-2 .col-lg-4,
header .nav-level-2 .col-md-8 {
  padding-inline: 0.75rem;
}

header .nav-level-2 .nav-item-2 {
  margin: 0;
}

header .nav-level-2 .nav-item-2 + .nav-item-2 {
  margin-top: 0.18rem;
}

header .nav-level-2 .nav-link {
  width: 100%;
  justify-content: flex-start;
  padding: 0.55rem 0.65rem;
  border-radius: 0.6rem;
  color: var(--fd-text);
  text-transform: none;
  font-size: 0.96rem;
  font-weight: 500;
}

header .nav-level-2 .nav-link:hover,
header .nav-level-2 .nav-link:focus,
header .nav-level-2 .nav-link.active {
  background: rgba(18, 58, 99, 0.06);
  color: var(--fd-primary);
}

header .nav-level-2 .nav-link.active.fw-bold {
  font-weight: 700 !important;
  background: rgba(216, 173, 46, 0.16);
  box-shadow: inset 0 -2px 0 var(--fd-secondary);
}

header .nav-level-2 .nav-link .icon {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  color: var(--fd-secondary);
}

/* Mobile nav: optisch beruhigen, damit es nicht mit dem Desktop-Chrome kollidiert */
header .mobile-nav {
  background: #ffffff;
  border-top: 1px solid var(--fd-border);
  box-shadow: 0 -8px 24px rgba(16, 35, 58, 0.06);
}

header .mobile-nav .btn {
  border-radius: 0;
  flex: 1 1 20%;
  min-height: 4rem;
  padding: 0.45rem 0.2rem 0.35rem;
  color: var(--fd-primary);
}

header .mobile-nav .btn:hover,
header .mobile-nav .btn:focus {
  background: rgba(18, 58, 99, 0.06);
}

header .mobile-nav .btn-text {
  margin-top: 0.3rem;
  font-size: 0.72rem;
}

/* Global housekeeping */
.wrapper {
  width: 100%;
}

main,
.footer {
  background: var(--fd-bg);
}

/* Fallbacks for common Bootstrap/Apex helpers */
.text-primary {
  color: var(--fd-primary) !important;
}

.bg-primary {
  background-color: var(--fd-primary) !important;
}

.btn-primary {
  --bs-btn-bg: var(--fd-primary);
  --bs-btn-border-color: var(--fd-primary);
  --bs-btn-hover-bg: var(--fd-primary-2);
  --bs-btn-hover-border-color: var(--fd-primary-2);
  --bs-btn-active-bg: var(--fd-primary-2);
  --bs-btn-active-border-color: var(--fd-primary-2);
}

.btn-highlight {
  --bs-btn-color: #10233a;
  --bs-btn-bg: var(--fd-secondary);
  --bs-btn-border-color: var(--fd-secondary);
  --bs-btn-hover-bg: var(--fd-secondary-2);
  --bs-btn-hover-border-color: var(--fd-secondary-2);
  --bs-btn-active-bg: var(--fd-secondary-2);
  --bs-btn-active-border-color: var(--fd-secondary-2);
}

/* Responsive safety */
@media (max-width: 1399.98px) {
  .container-xxl {
    max-width: 100%;
  }

  header .header-container {
    grid-template-columns: minmax(220px, 275px) minmax(0, 1fr) auto;
    gap: 1.15rem;
  }

  header .logo-img {
    max-width: 230px;
  }

  header #searchForm.search {
    max-width: 620px;
  }
}

@media (max-width: 1199.98px) {
  header .header-container {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  }

  header .menu-dropdowns {
    grid-column: 1 / -1;
    justify-self: end;
    padding-top: 0.25rem;
  }

  header #searchForm.search {
    max-width: none;
  }
}

/* Startseite im Stil der Kundenreferenz */
.fd-home {
  --fd-home-max-width: 1376px;
  --fd-blue: #062953;
  --fd-muted: #24364d;
  --fd-yellow: #f4bd12;
  --fd-soft: #f5f7f9;
  --fd-home-border: #e8ebef;

  max-width: var(--fd-home-max-width);
  margin: 0 auto;
  padding: 16px 0 36px;
  color: var(--fd-blue);
}

.fd-home a {
  color: inherit;
  text-decoration: none;
}

.fd-home__showcase {
  display: grid;
  grid-template-columns: minmax(0, 2.12fr) minmax(340px, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.fd-hero-tile,
.fd-product-tile,
.fd-info-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background-color: var(--fd-soft);
  box-shadow: 0 1px 0 rgba(6, 41, 83, 0.04);
}

.fd-hero-tile {
  min-height: 360px;
  background-position: center;
  background-size: cover;
}

.fd-hero-tile--primary {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.22) 38%, rgba(0, 0, 0, 0.02) 72%),
    url("https://www.rollladen-jalousien.de/out/pictures/fck_pictures/fldssy-teaser_03-plissee.jpg");
}

.fd-hero-tile--secondary {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.75) 42%, rgba(255, 255, 255, 0.05) 72%),
    url("https://www.rollladen-jalousien.de/out/pictures/fck_pictures/fldssy-teaser_01-rollladen.jpg");
}

.fd-hero-tile__content {
  position: absolute;
  left: 56px;
  top: 50%;
  display: grid;
  justify-items: start;
  transform: translateY(-50%);
}

.fd-hero-tile--secondary .fd-hero-tile__content {
  left: 32px;
  top: 33px;
  transform: none;
}

.fd-hero-tile__title,
.fd-product-tile__title,
.fd-info-card h2 {
  margin: 0;
  font-family: Oswald, Roboto, Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fd-hero-tile__title {
  color: #fff;
  font-size: 36px;
  line-height: 1.16;
}

.fd-hero-tile--secondary .fd-hero-tile__title {
  color: var(--fd-blue);
  font-size: 30px;
}

.fd-hero-tile__copy {
  margin-top: 13px;
  color: #fff;
  font-size: 18px;
  line-height: 1.45;
}

.fd-hero-tile--secondary .fd-hero-tile__copy {
  color: var(--fd-muted);
  font-size: 16px;
}

.fd-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 24px;
  padding: 0 18px;
  border-radius: 3px;
  background: var(--fd-blue);
  color: #fff;
  font-family: Oswald, Roboto, Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.fd-home-button--accent {
  background: var(--fd-yellow);
  color: var(--fd-blue);
}

.fd-home-button--small {
  min-height: 30px;
  margin-top: 20px;
  padding: 0 15px;
  font-size: 12px;
}

.fd-home-button--light {
  background: #f3c955;
  color: var(--fd-blue);
}

.fd-home__products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.fd-product-tile {
  min-height: 166px;
  background-position: right center;
  background-size: cover;
}

.fd-product-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.15) 100%);
}

.fd-product-tile__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  padding: 17px 16px;
}

.fd-product-tile__title {
  font-size: 18px;
  line-height: 1.1;
}

.fd-product-tile__subtitle {
  margin-top: 6px;
  font-family: Oswald, Roboto, Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.fd-product-tile__icon {
  width: 42px;
  height: 38px;
  margin-top: 16px;
  border: 2px solid var(--fd-blue);
  border-radius: 2px;
  opacity: 0.9;
}

.fd-product-tile--rollo {
  background-image: url("https://www.rollladen-jalousien.de/out/pictures/fck_pictures/fldssy-teaser_04-rollo.jpg");
}

.fd-product-tile--jalousie {
  background-image: url("https://www.rollladen-jalousien.de/out/pictures/fck_pictures/fldssy-teaser_06-jalousie.jpg");
}

.fd-product-tile--insektenschutz {
  background-image: url("https://www.rollladen-jalousien.de/out/pictures/fck_pictures/fldssy-teaser_02-insektenschutzrollo.jpg");
}

.fd-product-tile--ersatzteile {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.22) 100%),
    url("https://www.rollladen-jalousien.de/out/pictures/fck_pictures/fldssy-teaser_05-vjalousie.jpg");
}

.fd-home__trust {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--fd-home-border);
  border-bottom: 1px solid var(--fd-home-border);
  margin-bottom: 16px;
}

.fd-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px 18px;
  border-right: 1px solid var(--fd-home-border);
}

.fd-trust-item:last-child {
  border-right: 0;
}

.fd-trust-item__icon {
  display: inline-flex;
  width: 34px;
  min-width: 34px;
  color: var(--fd-blue);
}

.fd-trust-item__icon svg {
  width: 34px;
  height: 34px;
}

.fd-trust-item strong,
.fd-trust-item small {
  display: block;
  line-height: 1.25;
}

.fd-trust-item strong {
  font-family: Oswald, Roboto, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.fd-trust-item small {
  margin-top: 4px;
  color: var(--fd-muted);
  font-size: 11px;
}

.fd-home__info {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.2fr;
  gap: 16px;
}

.fd-info-card {
  min-height: 156px;
  padding: 22px 28px;
  background: #f7f8fa;
}

.fd-info-card h2 {
  max-width: 420px;
  color: var(--fd-blue);
  font-size: 17px;
  line-height: 1.25;
}

.fd-info-card p {
  max-width: 390px;
  margin: 12px 0 0;
  color: var(--fd-muted);
  font-size: 13px;
  line-height: 1.55;
}

.fd-info-card--made strong,
.fd-info-card--rating strong {
  display: block;
  margin-top: 10px;
  font-family: Oswald, Roboto, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  text-transform: uppercase;
}

.fd-stars {
  margin-top: 10px;
  color: var(--fd-yellow);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
}

.fd-info-card--blog {
  background-image:
    linear-gradient(90deg, rgba(247, 248, 250, 0.98) 0%, rgba(247, 248, 250, 0.86) 50%, rgba(247, 248, 250, 0.08) 100%),
    url("https://www.rollladen-jalousien.de/out/pictures/fck_pictures/fldssy-teaser_03-plissee.jpg");
  background-position: center;
  background-size: cover;
}

@media (max-width: 1399.98px) {
  .fd-home {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 991.98px) {
  .fd-home {
    padding-top: 14px;
  }

  .fd-home__showcase,
  .fd-home__products,
  .fd-home__info {
    grid-template-columns: 1fr 1fr;
  }

  .fd-hero-tile {
    min-height: 300px;
  }

  .fd-hero-tile__content {
    left: 28px;
  }

  .fd-home__trust {
    grid-template-columns: 1fr 1fr;
  }

  .fd-trust-item:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 767.98px) {
  .fd-home__showcase,
  .fd-home__products,
  .fd-home__info,
  .fd-home__trust {
    grid-template-columns: 1fr;
  }

  .fd-hero-tile {
    min-height: 270px;
  }

  .fd-hero-tile__title {
    font-size: 30px;
  }

  .fd-hero-tile--secondary .fd-hero-tile__title {
    font-size: 26px;
  }

  .fd-product-tile {
    min-height: 150px;
  }

  .fd-trust-item,
  .fd-trust-item:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--fd-home-border);
  }

  .fd-trust-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .fd-home {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fd-hero-tile__content,
  .fd-hero-tile--secondary .fd-hero-tile__content {
    left: 20px;
    right: 20px;
  }

  .fd-hero-tile__copy {
    font-size: 16px;
  }

  .fd-info-card {
    padding: 20px;
  }
}
