/* 41Q V2026 homepage redesign — DE/ES/PL
 * The questionnaire logic remains unchanged. This stylesheet rebuilds the
 * homepage shell, hierarchy and responsive layout around the V2026 form.
 */

body.q41-v2026-home-redesign {
  background: #fff;
  color: #20242c;
}

body.q41-v2026-home-redesign #wrapper {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible;
}

body.q41-v2026-home-redesign #wrapper .w1 {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

body.q41-v2026-home-redesign #header {
  position: relative !important;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 78px;
  height: auto !important;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e8ebf1;
  background: #fff;
}

body.q41-v2026-home-redesign #header .logo {
  position: static !important;
  display: block;
  width: auto !important;
  height: auto !important;
  margin: 0 auto 0 0;
  padding: 0;
  background: none !important;
}

body.q41-v2026-home-redesign #header .logo a {
  display: block;
  width: auto !important;
  height: auto !important;
  overflow: visible;
  background: none !important;
  color: #111827;
  font-size: 0;
  line-height: 1;
  text-indent: 0 !important;
  text-decoration: none;
}

body.q41-v2026-home-redesign #header .logo a::before {
  content: "41Q";
  display: inline-block;
  color: #0b3ee3;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.8px;
}

body.q41-v2026-home-redesign #header .q41-v2026-brand-lockup {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

body.q41-v2026-home-redesign #header .q41-v2026-brand-lockup .logo {
  margin: 0 !important;
}

body.q41-v2026-home-redesign #header .q41-v2026-brand-slogan {
  display: flex;
  flex-direction: column;
  margin-left: 18px;
  color: #4e596b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
}

body.q41-v2026-home-redesign #header .q41-v2026-brand-slogan span:last-child {
  color: #0b3ee3;
  font-weight: 750;
}

body.q41-v2026-home-redesign #header .brands {
  display: none !important;
}

body.q41-v2026-home-redesign #nav,
body.q41-v2026-home-redesign .nav-country {
  position: static !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0;
}

body.q41-v2026-home-redesign #nav {
  margin-left: auto;
}

body.q41-v2026-home-redesign .nav-country {
  margin-left: 24px;
}

@media (min-width: 761px) {
  body.q41-v2026-home-redesign #nav .btn-menu {
    display: none !important;
  }

  body.q41-v2026-home-redesign #nav > ul {
    position: static !important;
    display: flex !important;
    align-items: center;
    gap: 28px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body.q41-v2026-home-redesign #nav > ul > li {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.q41-v2026-home-redesign #nav > ul > li > a {
    padding: 8px 0 !important;
    color: #3c4350 !important;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none;
  }

  body.q41-v2026-home-redesign #nav > ul > li > a:hover,
  body.q41-v2026-home-redesign #nav > ul > li > a:focus {
    color: #0b3ee3 !important;
  }

  body.q41-v2026-home-redesign .nav-country > .btn-menu {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #d8dce5;
    border-radius: 8px;
    background: #fff;
    color: #3c4350;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }
}

body.q41-v2026-home-redesign #main,
body.q41-v2026-home-redesign .main-content,
body.q41-v2026-home-redesign #content {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.q41-v2026-home-redesign .q41-v2026-home-content-holder {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0 0 76px;
}

.q41-v2026-home {
  width: 100%;
}

.q41-v2026-home-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 76px 0 34px;
  text-align: center;
}

.q41-v2026-home-kicker {
  margin: 0 0 13px !important;
  color: #0b3ee3;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.q41-v2026-home-redesign #content .q41-v2026-home-hero h1 {
  max-width: none;
  margin: 0 !important;
  color: #171b24;
  font-size: clamp(42px, 5.1vw, 64px) !important;
  line-height: 1.02 !important;
  font-weight: 700;
  letter-spacing: -.035em;
  word-spacing: normal;
}

.q41-v2026-home-lead {
  max-width: 780px;
  margin: 24px auto 0 !important;
  color: #555d6c;
  font-size: 19px;
  line-height: 1.62;
}

.q41-v2026-home-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 24px 0 0 !important;
  padding: 0 !important;
  color: #333b49;
  list-style: none !important;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.q41-v2026-home-facts li {
  position: relative;
  margin: 0 !important;
  padding: 0 14px;
}

.q41-v2026-home-facts li + li::before {
  content: "·";
  position: absolute;
  left: -2px;
  color: #a0a7b3;
}

.q41-v2026-home-test {
  max-width: 820px;
  margin: 0 auto;
  padding: 4px 0 62px;
}

.q41-v2026-home-tip {
  max-width: 720px;
  margin: 0 auto 18px !important;
  padding: 0 20px;
  color: #697181;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

body.q41-v2026-home-redesign .q41-v2026-questionnaire {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

html[lang="de"] body.q41-v2026-home-redesign .q41-v2026-questionnaire {
  padding: 30px;
  border: 1px solid #dfe4ed;
  border-radius: 14px;
  background: #f8f9fb;
  box-shadow: 0 16px 40px rgba(24, 36, 64, .08);
}

html[lang="de"] body.q41-v2026-home-redesign .q41-v2026-questionnaire .holder {
  max-width: none;
}

.q41-v2026-form-semantic .question-block {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.q41-v2026-form-semantic .q41-v2026-question-prompt {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  color: #222;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
}

html[lang="es"] body.q41-v2026-home-redesign .q41-v2026-form-semantic .q41-v2026-question-prompt {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 0 0 31px;
  padding: 0 12px;
  color: #222;
  font-size: 22px;
  line-height: 24px;
  font-weight: 400;
  text-align: center;
}

.q41-v2026-home-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 0;
  border-top: 1px solid #edf0f4;
}

.q41-v2026-home-section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

body.q41-v2026-home-redesign #content .q41-v2026-home-section h2 {
  margin: 0 0 14px !important;
  color: #1d222c;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}

.q41-v2026-home-section-heading > p,
.q41-v2026-home-about-card > p {
  margin: 0;
  color: #626b7a;
  font-size: 16px;
  line-height: 1.7;
}

.q41-v2026-home-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.q41-v2026-home-metric {
  box-sizing: border-box;
  min-height: 190px;
  padding: 25px;
  border: 1px solid #e2e6ed;
  border-radius: 14px;
  background: #fff;
}

.q41-v2026-home-metric-value {
  margin: 0 0 8px !important;
  color: #0b3ee3;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
}

body.q41-v2026-home-redesign #content .q41-v2026-home-metric h3 {
  margin: 0 0 10px !important;
  color: #252b36;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: none;
}

.q41-v2026-home-metric > p:last-child {
  margin: 0 !important;
  color: #697181;
  font-size: 14px;
  line-height: 1.55;
}

.q41-v2026-home-metric-nbc {
  padding: 0;
  background: #fbfcff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.q41-v2026-home-metric-nbc:hover,
.q41-v2026-home-metric-nbc:focus-within {
  border-color: #b9c6e8;
  box-shadow: 0 13px 28px rgba(34, 50, 88, .09);
  transform: translateY(-2px);
}

.q41-v2026-home-metric-nbc-link {
  display: flex;
  min-height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  padding: 25px;
  color: inherit;
  text-decoration: none !important;
}

.q41-v2026-home-metric-nbc-link:focus-visible {
  border-radius: 13px;
  outline: 3px solid rgba(11, 62, 227, .24);
  outline-offset: 3px;
}

.q41-v2026-home-metric-nbc-logo {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 0 13px;
  object-fit: contain;
}

.q41-v2026-home-metric-nbc .q41-v2026-home-metric-value {
  margin-bottom: 7px !important;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.q41-v2026-home-metric-nbc-text {
  margin: 0 !important;
  color: #697181;
  font-size: 14px;
  line-height: 1.55;
}

.q41-v2026-home-metric-nbc-text span {
  color: #0b3ee3;
  font-weight: 800;
}

.q41-v2026-home-about {
  max-width: 980px;
}

.q41-v2026-home-about-card {
  box-sizing: border-box;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 44px;
  border-radius: 18px;
  background: #f3f6ff;
}

.q41-v2026-home-about-card > p + p {
  margin-top: 18px !important;
}

.q41-v2026-home-link {
  color: #0b3ee3;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  text-decoration: none;
}

.q41-v2026-home-link:hover,
.q41-v2026-home-link:focus {
  text-decoration: underline;
}

.q41-v2026-home-faq {
  max-width: 820px;
}

body.q41-v2026-home-redesign #content .q41-v2026-home-faq > h2 {
  text-align: center;
  margin-bottom: 30px !important;
}

.q41-v2026-home-faq-list {
  border-top: 1px solid #dfe4ec;
}

.q41-v2026-home-faq-item {
  border-bottom: 1px solid #dfe4ec;
}

.q41-v2026-home-faq-item summary {
  position: relative;
  padding: 20px 42px 20px 0;
  color: #272d38;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.q41-v2026-home-faq-item summary::-webkit-details-marker {
  display: none;
}

.q41-v2026-home-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  color: #0b3ee3;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}

.q41-v2026-home-faq-item[open] summary::after {
  content: "–";
}

.q41-v2026-home-faq-item > p {
  max-width: 720px;
  margin: -4px 0 20px !important;
  color: #646d7c;
  font-size: 14px;
  line-height: 1.65;
}

body.q41-v2026-home-result-view .q41-v2026-home-content-holder {
  padding-top: 54px;
}

body.q41-v2026-home-result-view .q41-v2026-questionnaire {
  max-width: 820px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.q41-v2026-home-result-view .q41-v2026-questionnaire::before,
body.q41-v2026-home-result-view .q41-v2026-questionnaire::after {
  display: none !important;
}

body.q41-v2026-home-result-view .q41-v2026-questionnaire .holder {
  max-width: 820px;
}

/* The localized questionnaire presentation is intentionally stronger than the
 * base card styles. In result mode this more-specific reset keeps those test
 * borders/backgrounds out of both ES and DE profile pages. */
body.q41-v2026-home-redesign.q41-v2026-home-result-view #content .q41-v2026-questionnaire {
  max-width: 820px;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.q41-v2026-home-redesign.q41-v2026-home-result-view #content .q41-v2026-questionnaire::before,
body.q41-v2026-home-redesign.q41-v2026-home-result-view #content .q41-v2026-questionnaire::after {
  content: none !important;
  display: none !important;
}

body.q41-v2026-home-redesign.q41-v2026-home-result-view #content .q41-v2026-questionnaire .holder {
  max-width: 820px !important;
}

@media (max-width: 900px) {
  body.q41-v2026-home-redesign #wrapper .w1 {
    padding-left: 22px;
    padding-right: 22px;
  }

  .q41-v2026-home-hero {
    padding-top: 58px;
  }

  .q41-v2026-home-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .q41-v2026-home-metric {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body.q41-v2026-home-redesign #header .q41-v2026-brand-slogan {
    margin-left: 10px;
    font-size: 11.5px;
    line-height: 1.22;
  }

  body.q41-v2026-home-redesign #wrapper .w1 {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.q41-v2026-home-redesign #header {
    min-height: 66px;
  }

  body.q41-v2026-home-redesign #header .logo a::before {
    font-size: 28px;
  }

  body.q41-v2026-home-redesign #nav {
    margin-left: auto;
  }

  body.q41-v2026-home-redesign .nav-country {
    margin-left: 12px;
  }

  body.q41-v2026-home-redesign #nav .btn-menu,
  body.q41-v2026-home-redesign .nav-country .btn-menu {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 7px 9px !important;
    border: 1px solid #d8dce5;
    border-radius: 7px;
    background: #fff !important;
    color: #3f4653 !important;
    font-size: 12px !important;
    line-height: 18px !important;
    text-indent: 0 !important;
    text-decoration: none;
  }

  .q41-v2026-home-hero {
    padding: 46px 0 28px;
  }

  body.q41-v2026-home-redesign #content .q41-v2026-home-hero h1 {
    font-size: clamp(36px, 11vw, 46px) !important;
    line-height: 1.04 !important;
  }

  .q41-v2026-home-lead {
    margin-top: 18px !important;
    font-size: 16px;
    line-height: 1.58;
  }

  .q41-v2026-home-facts {
    margin-top: 18px !important;
    font-size: 12px;
  }

  .q41-v2026-home-facts li {
    padding: 0 9px;
  }

  .q41-v2026-home-test {
    padding-bottom: 48px;
  }

  .q41-v2026-home-tip {
    padding: 0 8px;
    font-size: 12px;
  }

  html[lang="de"] body.q41-v2026-home-redesign .q41-v2026-questionnaire {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .q41-v2026-form-semantic .q41-v2026-question-prompt {
    font-size: 21px;
  }

  html[lang="es"] body.q41-v2026-home-redesign .q41-v2026-form-semantic .q41-v2026-question-prompt {
    margin-bottom: 24px;
    padding: 0 6px;
    font-size: 20px;
    line-height: 24px;
  }

  .q41-v2026-home-metrics {
    grid-template-columns: 1fr;
  }

  .q41-v2026-home-section {
    padding: 54px 0;
  }

  body.q41-v2026-home-redesign #content .q41-v2026-home-section h2 {
    font-size: 28px;
  }

  .q41-v2026-home-about-card {
    padding: 30px 24px;
    border-radius: 14px;
  }

  .q41-v2026-home-faq-item summary {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  body.q41-v2026-home-redesign #wrapper .w1 {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.q41-v2026-home-redesign #header .logo a::before {
    font-size: 26px;
  }

  .q41-v2026-home-facts {
    row-gap: 6px;
  }

  .q41-v2026-home-facts li {
    width: 100%;
    padding: 0;
  }

  .q41-v2026-home-facts li + li::before {
    display: none;
  }
}
