:root {
  --wt-primary: #1f2a44;
  --wt-accent: #f59e0b;
  --wt-text: #1f2937;
  --wt-muted: #64748b;
  --wt-border: #e5e7eb;
  --wt-bg: #f5f6f8;
}

body {
  background: #f5f7fa;
}

.site-header {
  border-bottom: 1px solid rgba(31, 42, 68, .08);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 5px 24px rgba(31, 42, 68, .05);
}

/* Stronger navigation hierarchy without making the header feel heavy. */
.main-navigation .main-nav > ul > li > a {
  position: relative;
  padding-inline: 14px;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
}

.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li > a:focus-visible {
  color: var(--wt-primary);
}

.main-navigation .main-nav > ul > li.current-menu-item > a,
.main-navigation .main-nav > ul > li.current-menu-ancestor > a,
.main-navigation .main-nav > ul > li.current_page_item > a,
.main-navigation .main-nav > ul > li.current_page_ancestor > a {
  color: var(--wt-primary);
  font-weight: 700;
}

.main-navigation .main-nav > ul > li.current-menu-item > a::after,
.main-navigation .main-nav > ul > li.current-menu-ancestor > a::after,
.main-navigation .main-nav > ul > li.current_page_item > a::after,
.main-navigation .main-nav > ul > li.current_page_ancestor > a::after {
  position: absolute;
  right: 14px;
  bottom: 8px;
  left: 14px;
  height: 3px;
  border-radius: 999px;
  background: var(--wt-accent);
  content: "";
}

/* Separate the pale page canvas from the white reading surface. */
body:not(.home) #page {
  background: transparent;
}

body.page:not(.home) .site-content {
  padding-top: clamp(24px, 3vw, 38px);
  padding-bottom: clamp(42px, 6vw, 72px);
}

body.page:not(.home) .site-main > article > .inside-article {
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(31, 42, 68, .055);
}

body.page:not(.home) .entry-header {
  margin-bottom: 18px;
}

body.page:not(.home) .entry-header .entry-title {
  margin-bottom: 0;
  color: var(--wt-primary);
  font-weight: 800;
  letter-spacing: -.02em;
}

.wt-category-page {
  padding-top: 0;
}

.wt-brand {
  display: inline-flex;
  align-items: center;
}

.wt-brand img {
  display: block;
  width: auto;
  height: 54px;
}

.wt-editorial-visual {
  position: relative;
  overflow: hidden;
  margin: 0 0 30px;
  border-radius: 22px;
  background: var(--wt-primary);
  box-shadow: 0 18px 45px rgba(31, 42, 68, .16);
}

.wt-editorial-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(transparent, rgba(31, 42, 68, .22));
  content: "";
  pointer-events: none;
}

.wt-editorial-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 300ms ease;
}

.wt-editorial-visual:hover img {
  transform: scale(1.018);
}

.wt-editorial-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #475569;
  font-size: 11px;
  line-height: 1.25;
}

.single-post .entry-title {
  color: var(--wt-primary);
  font-weight: 800;
  letter-spacing: -.025em;
}

.wt-guide-page h2 {
  position: relative;
  margin-top: 38px;
  padding-left: 18px;
  color: var(--wt-primary);
  font-weight: 750;
}

.wt-guide-page h2::before {
  position: absolute;
  top: .13em;
  bottom: .13em;
  left: 0;
  width: 5px;
  border-radius: 4px;
  background: var(--wt-accent);
  content: "";
}

.wt-guide-page > ul {
  margin-left: 0;
  padding: 22px 24px 22px 48px;
  border: 1px solid var(--wt-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 42, 68, .06);
}

.wt-guide-page > ul li {
  margin-bottom: 10px;
}

.wt-guide-page > ul li:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .main-navigation .main-nav > ul > li > a {
    padding-inline: 20px;
    font-size: 15px;
  }

  .main-navigation .main-nav > ul > li.current-menu-item > a::after,
  .main-navigation .main-nav > ul > li.current-menu-ancestor > a::after,
  .main-navigation .main-nav > ul > li.current_page_item > a::after,
  .main-navigation .main-nav > ul > li.current_page_ancestor > a::after {
    right: auto;
    bottom: 8px;
    left: 20px;
    width: 38px;
  }

  body.page:not(.home) .site-content {
    padding-top: 18px;
    padding-bottom: 40px;
  }

  body.page:not(.home) .site-main > article > .inside-article {
    border-radius: 16px;
  }

  .wt-brand img {
    height: 44px;
  }

  .wt-editorial-visual {
    margin-bottom: 22px;
    border-radius: 16px;
  }

  .wt-editorial-visual figcaption {
    display: none;
  }
}

/* Vietnamese homepage: compact, product-focused and fully responsive. */
.wt-home-vi {
  max-width: none !important;
}

.wt-home-vi > * {
  max-width: none !important;
}

.wt-vi-wrap {
  box-sizing: border-box;
  width: min(1160px, calc(100vw - 48px));
  margin: 0 auto;
}

.wt-vi-hero {
  padding: clamp(54px, 8vw, 92px) 0;
  background: linear-gradient(135deg, #eef2ff 0%, #fff 58%, #fff7e8 100%);
}

.wt-vi-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--wt-primary);
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.08;
}

.wt-vi-lead {
  max-width: 760px;
  margin: 0 0 26px;
  color: #475569;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.wt-vi-actions {
  gap: 12px;
}

.wt-vi-section {
  padding: clamp(48px, 7vw, 76px) 0;
}

.wt-vi-section-soft {
  background: var(--wt-bg);
}

.wt-vi-section h2 {
  margin: 0 0 10px;
  color: var(--wt-primary);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.wt-vi-intro {
  margin: 0 0 28px;
  color: var(--wt-muted);
  font-size: 1.08rem;
}

.wt-vi-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.wt-vi-benefits article {
  padding: 26px;
  border: 1px solid var(--wt-border);
  border-radius: 16px;
  background: #fff;
}

.wt-vi-benefits h3 {
  margin: 0 0 9px;
  color: var(--wt-primary);
}

.wt-vi-benefits p {
  margin: 0;
  color: var(--wt-muted);
  line-height: 1.65;
}

@media (max-width: 760px) {
  .wt-vi-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .wt-vi-wrap {
    width: calc(100vw - 28px);
  }

  .wt-vi-actions {
    flex-direction: column;
  }

  .wt-vi-actions .wp-block-button,
  .wt-vi-actions .wp-block-button__link {
    width: 100%;
  }
}

/* Editorial pages: About, price comparison and their translations. */
.wt-content-page {
  box-sizing: border-box;
  width: min(960px, calc(100vw - 48px));
  max-width: 960px !important;
  margin: 0 auto;
  padding: 20px 0 28px;
}

.wt-content-page > * {
  max-width: none !important;
}

.wt-content-page .wt-eyebrow {
  margin: 0 0 10px;
  color: #b45309;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.wt-content-page .wt-lead {
  margin-bottom: 30px;
  color: #475569;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.wt-info-grid,
.wt-steps {
  gap: 18px;
  margin: 28px 0;
}

.wt-info-grid > .wp-block-column,
.wt-steps > .wp-block-column,
.wt-notice {
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid var(--wt-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 42, 68, .07);
}

.wt-info-grid h3,
.wt-steps h3,
.wt-notice h3 {
  margin: 0 0 8px;
  color: var(--wt-primary);
}

.wt-info-grid p,
.wt-steps p,
.wt-notice p {
  margin: 0;
  color: var(--wt-muted);
  line-height: 1.65;
}

.wt-steps > .wp-block-column > strong {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--wt-accent);
  color: #1f2937;
}

.wt-notice {
  margin: 30px 0;
  border-left: 5px solid var(--wt-accent);
  background: #fffbeb;
}

@media (max-width: 600px) {
  .wt-content-page {
    width: calc(100vw - 28px);
  }
}

/* Kategorien: four clear entry points without relying on a fixed screen size. */
.wt-categories-page {
  box-sizing: border-box;
  width: min(1160px, calc(100vw - 48px));
  max-width: 1160px !important;
  margin: 0 auto;
  padding: 42px 0 16px;
}

.wt-categories-page > * {
  max-width: none !important;
}

.wt-categories-page > h1 {
  margin-bottom: 10px;
  color: var(--wt-primary);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.wt-categories-intro {
  max-width: 720px !important;
  margin-bottom: 30px;
  color: var(--wt-muted);
  font-size: 1.08rem;
}

.wt-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.wt-category-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--wt-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 42, 68, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

/*
 * Keep the dedicated categories page inside GeneratePress' reading surface.
 * The former viewport-based width plus content-box cards caused the second
 * column to overhang its white container.
 */
body.page .entry-content > .wt-categories-page {
  width: 100%;
  max-width: none !important;
  padding-top: 0;
}

body.page .entry-content > .wt-categories-page .wt-categories-intro {
  margin-top: 0;
}

.wt-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(31, 42, 68, 0.12);
}

.wt-category-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff8e9 0%, #fff1d3 100%);
  color: var(--wt-primary);
  box-shadow: 0 6px 16px rgba(31, 42, 68, 0.08);
}

.wt-category-card__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wt-category-card h2 {
  margin: 0 0 10px;
  color: var(--wt-primary);
  font-size: 1.45rem;
}

.wt-category-card p {
  flex: 1 1 auto;
  margin: 0 0 24px;
  color: var(--wt-muted);
  line-height: 1.65;
}

.wt-category-card__link {
  align-self: flex-start;
  color: var(--wt-primary);
  font-weight: 700;
  text-decoration: none;
}

.wt-category-card__link:hover,
.wt-category-card__link:focus-visible {
  color: #b45309;
  text-decoration: underline;
}

/* Product section: independent of GeneratePress' content width. */
body .site-content .wtpc2-section,
body .entry-content .wtpc2-section,
.editor-styles-wrapper .wtpc2-section {
  box-sizing: border-box;
  position: static !important;
  left: auto !important;
  transform: none !important;
  width: min(1200px, calc(100vw - 48px)) !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 52px 0;
}

body .wtpc2-section > *,
body .wtpc2-section.is-layout-constrained > *,
.editor-styles-wrapper .wtpc2-section > * {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Replace Gutenberg's flex columns with a predictable responsive grid. */
body .wtpc2-grid,
.editor-styles-wrapper .wtpc2-grid {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 26px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body .wtpc2-grid > .wp-block-column,
.editor-styles-wrapper .wtpc2-grid > .wp-block-column {
  box-sizing: border-box;
  display: flex !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  flex-basis: auto !important;
}

body .wtpc2-card,
.editor-styles-wrapper .wtpc2-card {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100%;
  overflow: hidden;
}

body .wtpc2-card > *,
body .wtpc2-card.is-layout-constrained > *,
body .wtpc2-body > *,
body .wtpc2-body.is-layout-constrained > *,
.editor-styles-wrapper .wtpc2-card > *,
.editor-styles-wrapper .wtpc2-body > * {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body .wtpc2-image,
.editor-styles-wrapper .wtpc2-image {
  flex: 0 0 auto;
}

body .wtpc2-body,
.editor-styles-wrapper .wtpc2-body {
  box-sizing: border-box;
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  padding: 22px !important;
}

body .wtpc2-title,
body .wtpc2-description,
body .wtpc2-meta,
.editor-styles-wrapper .wtpc2-title,
.editor-styles-wrapper .wtpc2-description,
.editor-styles-wrapper .wtpc2-meta {
  overflow: visible !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto;
}

body .wtpc2-title,
.editor-styles-wrapper .wtpc2-title {
  -webkit-hyphens: none !important;
  hyphens: none !important;
  text-wrap: wrap;
}

body .wtpc2-actions,
.editor-styles-wrapper .wtpc2-actions {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: auto !important;
}

body .wtpc2-actions > .wp-block-button,
.editor-styles-wrapper .wtpc2-actions > .wp-block-button {
  box-sizing: border-box;
  display: block;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

body .wtpc2-actions .wp-block-button__link,
.editor-styles-wrapper .wtpc2-actions .wp-block-button__link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 46px;
  padding: 10px 8px !important;
  line-height: 1.2;
  text-align: center;
  white-space: normal !important;
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 900px) {
  body .wtpc2-grid,
  .editor-styles-wrapper .wtpc2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .wt-categories-page {
    width: calc(100vw - 28px);
    padding-top: 30px;
  }

  .wt-category-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .wt-category-card {
    padding: 24px;
  }

  body .site-content .wtpc2-section,
  body .entry-content .wtpc2-section,
  .editor-styles-wrapper .wtpc2-section {
    width: calc(100vw - 28px) !important;
    padding: 42px 0;
  }

  body .wtpc2-grid,
  .editor-styles-wrapper .wtpc2-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  body .wtpc2-body,
  .editor-styles-wrapper .wtpc2-body {
    min-height: 0 !important;
  }
}

/* Product-detail posts provide their own H1 and should not receive a second
   title from GeneratePress. Ordinary posts keep the normal theme header. */
body.single-post.wt-product-detail .site-main > article > .inside-article > .entry-header {
  display: none;
}

body.single-post.wt-product-detail .site-content {
  width: min(1160px, calc(100vw - 48px));
  max-width: 1160px;
  margin-inline: auto;
}

body.single-post.wt-product-detail .site-main,
body.single-post.wt-product-detail .inside-article,
body.single-post.wt-product-detail .entry-content,
body.single-post.wt-product-detail .wtpd1-page {
  width: 100%;
  max-width: none;
}

body.single-post.wt-product-detail .wtpd1-title {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* Search and archive cards match the clean WahlTop product-card language. */
body.search .site-content,
body.archive .site-content {
  box-sizing: border-box;
  width: min(1160px, calc(100vw - 48px));
  max-width: 1160px;
  margin-inline: auto;
  padding-top: 38px;
}

body.search .site-main,
body.archive .site-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.search .page-header,
body.search .no-results,
body.search .paging-navigation,
body.archive .page-header,
body.archive .no-results,
body.archive .paging-navigation {
  grid-column: 1 / -1;
}

body.category .page-header {
  display: none;
}

/*
 * The WahlTop category introduction is the useful empty state. GeneratePress
 * otherwise adds a second "Nothing Found" card below it when a category has no
 * currently visible posts.
 */
body.category.category-technik .no-results,
body.category.category-haushalt .no-results,
body.category.category-gesundheit .no-results,
body.category.category-reisen .no-results {
  display: none;
}

.wt-category-header {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid var(--wt-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(31, 42, 68, 0.08);
}

.wt-category-header > h1 {
  margin: 0;
  padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 42px) 0;
  color: var(--wt-primary);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.wt-category-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 22px;
  background: linear-gradient(135deg, #f7f9fc 0%, #fff7e8 100%);
}

.wt-category-intro__copy {
  padding: clamp(24px, 4vw, 42px);
}

.wt-category-intro__copy h2 {
  margin: 0 0 12px;
  color: var(--wt-primary);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.wt-category-intro__copy p {
  margin: 0;
  color: var(--wt-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.wt-category-intro img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

/* Four department URLs are WordPress pages, not category archives. */
.wt-department-page {
  margin-top: 24px;
}

.wt-department-page .wt-category-header {
  margin-bottom: 28px;
}

.wt-department-page .wt-category-intro {
  margin-top: 0;
}

.wt-department-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.wt-department-product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--wt-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 42, 68, 0.07);
}

.wt-department-product__image {
  display: block;
  background: #f7f9fc;
}

.wt-department-product__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.wt-department-product--editorial-cover .wt-department-product__image img {
  object-fit: cover;
}

.wt-department-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.wt-department-product__body h2 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.3;
}

.wt-department-product__body h2 a {
  color: var(--wt-primary);
  text-decoration: none;
}

.wt-department-product__body p {
  margin: 0 0 20px;
  color: var(--wt-muted);
  line-height: 1.65;
}

.wt-department-product__button,
.wt-department-empty a {
  margin-top: auto;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--wt-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.wt-department-empty {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--wt-border);
  border-radius: 16px;
  background: #fff;
}

body.search .site-main > article,
body.archive .site-main > article {
  min-width: 0;
  margin: 0;
}

body.search .site-main > article .inside-article,
body.archive .site-main > article .inside-article {
  box-sizing: border-box;
  height: 100%;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--wt-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 42, 68, 0.07);
}

body.search .post-image,
body.archive .post-image {
  margin-bottom: 18px;
}

body.search .post-image img,
body.archive .post-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: contain;
}

body.search .entry-title,
body.archive .entry-title {
  color: var(--wt-primary);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

body.search .entry-summary,
body.archive .entry-summary {
  color: var(--wt-muted);
  line-height: 1.65;
}

body.search .search-form {
  display: flex;
  max-width: 720px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
}

body.search .search-form label {
  flex: 1 1 auto;
  min-width: 0;
}

body.search .search-field {
  width: 100%;
  min-height: 50px;
  border: 0;
}

body.search .search-submit {
  min-width: 52px;
  border: 0;
  background: var(--wt-primary);
  color: #fff;
}

@media (max-width: 900px) {
  body.search .site-main,
  body.archive .site-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wt-department-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.single-post.wt-product-detail .site-content,
  body.search .site-content,
  body.archive .site-content {
    width: calc(100vw - 28px);
  }

  body.search .site-main,
  body.archive .site-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .wt-department-products {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .wt-category-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .wt-category-intro img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/* Consistent legal pages and the global legal footer. */
body .page .entry-content {
  overflow-wrap: break-word;
}

body .page .entry-content > h2 {
  margin-top: 1.8em;
  color: var(--wt-primary);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

/* Preisvergleich: useful search now, feed-ready merchant overview later. */
.wt-price-search {
  box-sizing: border-box;
  margin: 30px 0 36px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff7e8 100%);
}

.wt-price-search h3 {
  margin: 0 0 14px;
  color: var(--wt-primary);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.wt-price-search form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.wt-price-search input,
.wt-price-search button {
  box-sizing: border-box;
  min-height: 52px;
  border-radius: 10px;
  font: inherit;
}

.wt-price-search input {
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--wt-text);
}

.wt-price-search button {
  padding: 0 24px;
  border: 1px solid var(--wt-primary);
  background: var(--wt-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.wt-price-search button:hover,
.wt-price-search button:focus-visible {
  border-color: #b45309;
  background: #b45309;
}

.wt-price-search > p {
  margin: 13px 0 0;
  color: var(--wt-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.wt-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 36px;
}

.wt-source-card {
  box-sizing: border-box;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--wt-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(31, 42, 68, 0.06);
}

.wt-source-card__status {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7e8;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wt-source-card h3 {
  margin: 0 0 7px;
  color: var(--wt-primary);
  font-size: 1.05rem;
}

.wt-source-card p {
  margin: 0;
  color: var(--wt-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 850px) {
  .wt-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .wt-price-search form,
  .wt-source-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wt-price-search button {
    width: 100%;
  }
}

.wt-guide-hero {
  overflow: hidden;
  margin: 0 0 clamp(24px, 4vw, 38px);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(31, 42, 68, 0.1);
}

.wt-guide-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wt-guide-hero figcaption {
  margin: 0;
  padding: 12px 16px;
  color: #64748b;
  background: #fff;
  font-size: 0.88rem;
  line-height: 1.5;
}

.wt-legal-footer {
  box-sizing: border-box;
  margin-top: 56px;
  padding: 34px 24px;
  background: var(--wt-primary);
  color: #e2e8f0;
  font-size: 14px;
}

.site-footer > .wt-legal-footer {
  margin-top: 0;
}

.wt-legal-footer * {
  box-sizing: border-box;
}

.wt-legal-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 18px 40px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.wt-legal-footer__brand {
  color: #fff;
  font-size: 20px;
}

.wt-legal-footer p {
  margin: 5px 0 0;
}

.wt-legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 22px;
}

.wt-legal-footer__links a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.wt-legal-footer__links a:hover,
.wt-legal-footer__links a:focus-visible {
  color: var(--wt-accent);
  text-decoration: underline;
}

.wt-legal-footer__copyright {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
}

@media (max-width: 700px) {
  .wt-legal-footer {
    padding: 30px 18px;
  }

  .wt-legal-footer__inner {
    grid-template-columns: 1fr;
  }

  .wt-legal-footer__links {
    justify-content: flex-start;
  }

  .wt-legal-footer__copyright {
    grid-column: auto;
  }
}

/* WahlTop Categories Modern 3.8.1 -------------------------------------------------- */
body.page-id-0 .wt-category-explorer { /* harmless fallback selector */ }

/* The shortcode provides its own editorial hero, so the old generic intro is hidden. */
.wt-categories-page > .wt-categories-intro {
  display: none !important;
}

.wt-category-explorer {
  --wt-cat-ink: #13233f;
  --wt-cat-muted: #64748b;
  --wt-cat-blue: #278ed7;
  --wt-cat-blue-deep: #176fae;
  width: 100%;
}

.wt-category-explorer__hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 36px;
  overflow: hidden;
  margin: 0 0 26px;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid #d9e9f7;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.92) 0 44px, transparent 45px),
    linear-gradient(135deg, #eef8ff 0%, #dcefff 54%, #eef7fd 100%);
  box-shadow: 0 20px 52px rgba(34, 82, 126, 0.09);
}

.wt-category-explorer__hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -70px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  border: 38px solid rgba(255,255,255,.5);
  border-radius: 50%;
}

.wt-category-explorer__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #c86900;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.wt-category-explorer__hero h1 {
  max-width: 720px;
  margin: 0 0 14px;
  color: var(--wt-cat-ink);
  font-size: clamp(2rem, 4.3vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.wt-category-explorer__hero p {
  max-width: 760px;
  margin: 0;
  color: #53657c;
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  line-height: 1.7;
}

.wt-category-explorer__signal {
  position: relative;
  min-height: 160px;
}

.wt-category-explorer__signal span {
  position: absolute;
  border: 1px solid rgba(39, 142, 215, .18);
  border-radius: 28px;
  background: rgba(255,255,255,.54);
  box-shadow: 0 12px 28px rgba(31, 86, 132, .08);
  transform: rotate(8deg);
}

.wt-category-explorer__signal span:nth-child(1) { width: 116px; height: 116px; right: 18px; top: 0; }
.wt-category-explorer__signal span:nth-child(2) { width: 76px; height: 76px; right: 96px; top: 72px; transform: rotate(-10deg); }
.wt-category-explorer__signal span:nth-child(3) { width: 42px; height: 42px; right: 8px; top: 122px; transform: rotate(16deg); }

.wt-category-grid--modern {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.wt-category-card--modern {
  position: relative;
  grid-column: span 3;
  min-height: 286px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #e1e9f1;
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(31,42,68,.065);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.wt-category-card--modern:nth-child(n+3) {
  grid-column: span 2;
  min-height: 270px;
}

.wt-category-card--modern::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -72px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--wt-cat-glow, rgba(39,142,215,.07));
  pointer-events: none;
}

.wt-category-card--modern:hover,
.wt-category-card--modern:focus-visible {
  transform: translateY(-5px);
  border-color: #cbdfee;
  box-shadow: 0 18px 42px rgba(31,70,105,.13);
  outline: none;
}

.wt-category-card--modern.wt-category-card--ai { --wt-cat-glow: rgba(113, 84, 210, .09); }
.wt-category-card--modern.wt-category-card--home { --wt-cat-glow: rgba(222, 143, 27, .10); }
.wt-category-card--modern.wt-category-card--health { --wt-cat-glow: rgba(46, 156, 119, .09); }
.wt-category-card--modern.wt-category-card--travel { --wt-cat-glow: rgba(34, 135, 205, .10); }

.wt-category-card--modern .wt-category-card__number {
  position: absolute;
  top: 24px;
  right: 26px;
  color: #c7d2df;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.wt-category-card--modern .wt-category-card__icon {
  width: 46px;
  height: 46px;
  margin: 0 0 25px;
  border-color: #d9e9f7;
  background: #eef7ff;
  color: #237fbe;
  box-shadow: none;
}

.wt-category-card--modern .wt-category-card__icon svg {
  width: 24px;
  height: 24px;
}

.wt-category-card__meta {
  display: block;
  margin-bottom: 6px;
  color: #738296;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .025em;
}

.wt-category-card--modern h2 {
  margin: 0 0 10px;
  color: var(--wt-cat-ink);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: -.015em;
}

.wt-category-card--modern p {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  margin: 0 0 24px;
  color: var(--wt-cat-muted);
  font-size: .96rem;
  line-height: 1.62;
}

.wt-category-card--modern .wt-category-card__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #176fae;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
}

.wt-category-card--modern .wt-category-card__link span {
  transition: transform .2s ease;
}

.wt-category-card--modern:hover .wt-category-card__link span,
.wt-category-card--modern:focus-visible .wt-category-card__link span {
  transform: translateX(4px);
}

/* Remove the duplicated generic WordPress page title on the dedicated category pages. */
body.page .entry-content > .wt-categories-page {
  padding-top: 0;
}
body.page:has(.wt-category-explorer) .entry-header {
  display: none;
}
body.page:has(.wt-category-explorer) .site-main > article > .inside-article {
  padding-top: clamp(34px, 5vw, 58px);
}

@media (max-width: 900px) {
  .wt-category-explorer__hero {
    grid-template-columns: 1fr;
  }
  .wt-category-explorer__signal {
    display: none;
  }
  .wt-category-card--modern,
  .wt-category-card--modern:nth-child(n+3) {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {
  .wt-category-explorer__hero {
    padding: 28px 24px;
    border-radius: 18px;
  }
  .wt-category-grid--modern {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .wt-category-card--modern,
  .wt-category-card--modern:nth-child(n+3) {
    grid-column: 1;
    min-height: 0;
    padding: 24px;
    border-radius: 17px;
  }
  .wt-category-card--modern .wt-category-card__icon {
    margin-bottom: 20px;
  }
}
