/*
Theme Name: Hallo Werkzeuge
Theme URI: https://hallo-werkzeuge.de/
Author: Codex
Description: Ruhiges WordPress-Theme für hallo-werkzeuge.de als praktischer Werkzeug-Ratgeber.
Version: 0.1.3
Text Domain: hallo-werkzeuge
*/

:root {
  --hw-text: #20242a;
  --hw-muted: #5f6874;
  --hw-line: #dfe5ea;
  --hw-soft: #f5f7f9;
  --hw-paper: #fbfaf7;
  --hw-wood: #b8834b;
  --hw-blue: #173848;
  --hw-steel: #2f6176;
  --hw-yellow: #f4c542;
  --hw-white: #fff;
  --hw-radius: 8px;
  --hw-shadow: 0 18px 42px rgba(38, 49, 59, 0.11);
  --hw-content: 760px;
  --hw-wide: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--hw-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--hw-blue);
}

a:hover {
  color: var(--hw-steel);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--hw-blue);
  color: #fff;
  border-radius: 6px;
}

.hw-container {
  width: min(var(--hw-wide), calc(100vw - 64px));
  margin: 0 auto;
}

.hw-site-header {
  border-bottom: 1px solid var(--hw-line);
  background: rgba(251, 250, 247, 0.97);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.hw-header-inner {
  display: grid;
  grid-template-columns: auto minmax(220px, 340px) 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px 0 16px;
}

body.admin-bar .hw-site-header {
  top: 32px;
}

.hw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--hw-text);
  text-decoration: none;
}

.hw-brand-image {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(38, 49, 59, 0.12));
}

.hw-brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.hw-brand-name {
  color: var(--hw-blue);
  font-size: 1.16rem;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.hw-brand-subline {
  color: var(--hw-steel);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hw-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: #fff;
  color: var(--hw-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 780;
  cursor: pointer;
}

.hw-menu-toggle__icon,
.hw-menu-toggle__icon::before,
.hw-menu-toggle__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hw-menu-toggle__icon {
  position: relative;
}

.hw-menu-toggle__icon::before,
.hw-menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.hw-menu-toggle__icon::before {
  top: -6px;
}

.hw-menu-toggle__icon::after {
  top: 6px;
}

.hw-site-header.is-menu-open .hw-menu-toggle {
  border-color: rgba(23, 56, 72, 0.32);
  background: var(--hw-blue);
  color: #fff;
}

.hw-site-header.is-menu-open .hw-menu-toggle__icon {
  background: transparent;
}

.hw-site-header.is-menu-open .hw-menu-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.hw-site-header.is-menu-open .hw-menu-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.hw-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 44px;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: #fff;
  overflow: hidden;
}

.hw-search input,
.hw-search button {
  border: 0;
  font: inherit;
}

.hw-search input {
  min-width: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--hw-text);
  font-size: 0.94rem;
}

.hw-search button {
  padding: 0 14px;
  background: var(--hw-blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.hw-nav {
  justify-self: end;
}

.hw-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.25;
}

.hw-nav a {
  color: var(--hw-text);
  text-decoration: none;
}

.hw-nav a:hover,
.hw-nav .current-menu-item > a,
.hw-nav .current_page_item > a {
  color: var(--hw-steel);
}

.hw-main {
  min-height: 58vh;
}

.hw-main--home {
  padding-bottom: 80px;
}

.hw-page {
  width: min(var(--hw-content), calc(100vw - 64px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 72px) 0 80px;
}

.hw-page-header {
  margin-bottom: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hw-line);
}

.hw-page-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: 0;
  max-width: 12ch;
}

.hw-content > * {
  margin-block-start: 0;
  margin-block-end: 1.2em;
}

.hw-content h2 {
  margin-top: 2em;
  margin-bottom: 0.55em;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.hw-content h3 {
  margin-top: 1.8em;
  margin-bottom: 0.45em;
  font-size: 1.35rem;
  line-height: 1.25;
}

.hw-content p,
.hw-content li {
  color: var(--hw-text);
}

.hw-content > p:first-child {
  color: var(--hw-muted);
  font-size: 1.1rem;
  border-left: 4px solid var(--hw-yellow);
  padding-left: 16px;
}

.hw-content > p:first-child strong {
  color: var(--hw-text);
}

.hw-toc,
.hw-note,
.hw-affiliate-box,
.hw-verdict {
  margin: 26px 0 34px;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: #fff;
  padding: 18px 20px;
}

.hw-toc strong,
.hw-note strong,
.hw-affiliate-box strong,
.hw-verdict strong {
  color: var(--hw-text);
}

.hw-toc {
  background: var(--hw-soft);
  border-left: 4px solid var(--hw-steel);
}

.hw-toc ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 1.25em;
}

.hw-toc a {
  color: var(--hw-blue);
  font-weight: 650;
  text-decoration: none;
}

.hw-note {
  border-left: 4px solid var(--hw-steel);
}

.hw-affiliate-box {
  border-color: rgba(212, 167, 44, 0.65);
  background: #fffdf5;
}

.hw-affiliate-box p:last-child,
.hw-note p:last-child,
.hw-verdict p:last-child {
  margin-bottom: 0;
}

.hw-affiliate-meta {
  color: var(--hw-muted);
  font-size: 0.9rem;
}

.hg-product-box {
  border-color: var(--hw-line) !important;
  background: #fffaf0 !important;
  box-shadow: 0 16px 34px rgba(38, 49, 59, 0.08) !important;
}

.hg-product-box .hg-box__label,
.hg-product-box h3 {
  color: var(--hw-blue) !important;
}

.hg-product-box .hg-box__intro {
  color: var(--hw-muted) !important;
}

.hg-product-box .button,
.hg-product-box .button.secondary {
  border-color: #9a7515 !important;
  background: var(--hw-yellow) !important;
  color: var(--hw-text) !important;
  box-shadow: none !important;
}

.hg-product-box .button:hover,
.hg-product-box .button.secondary:hover {
  background: #f7d15f !important;
  color: var(--hw-text) !important;
}

.hw-procon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 34px;
}

.hw-procon > div {
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: #fff;
  padding: 18px;
}

.hw-procon h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.hw-verdict {
  background: #f8fafb;
}

.hw-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 26px 0 34px;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
}

.hw-table-wrap table {
  min-width: 620px;
  width: 100%;
  border-collapse: collapse;
}

.hw-table-wrap th,
.hw-table-wrap td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--hw-line);
  text-align: left;
  vertical-align: top;
}

.hw-table-wrap th {
  background: var(--hw-soft);
  color: var(--hw-blue);
}

.hw-content ul,
.hw-content ol {
  padding-left: 1.25em;
}

.hw-content .wp-block-image {
  margin: 30px 0 36px;
}

.hw-content .wp-block-image img,
.hw-article-image img {
  border-radius: var(--hw-radius);
  box-shadow: 0 16px 42px rgba(32, 36, 42, 0.11);
}

.hw-content .wp-block-group {
  border-radius: var(--hw-radius);
}

.hw-wrap {
  width: min(var(--hw-wide), calc(100vw - 64px));
  max-width: none;
  margin: 0 auto;
  color: var(--hw-text);
}

.hw-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px) 0 46px;
}

.hw-hero--compass {
  border-bottom: 1px solid var(--hw-line);
}

.hw-hero h1 {
  margin: 8px 0 20px;
  font-size: clamp(2.25rem, 4.6vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: 0;
  max-width: 11ch;
}

.hw-hero p,
.hw-lead {
  color: var(--hw-muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.hw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hw-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 750;
}

.hw-primary {
  background: var(--hw-yellow);
  color: #1e2429;
  box-shadow: 0 10px 24px rgba(244, 197, 66, 0.28);
}

.hw-secondary {
  border: 1px solid var(--hw-line);
  background: #fff;
  color: var(--hw-blue);
}

.hw-hero img {
  width: 100%;
  border-radius: var(--hw-radius);
  box-shadow: var(--hw-shadow);
}

.hw-kicker {
  display: block;
  color: var(--hw-steel);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hw-brand-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: -12px 0 34px;
}

.hw-brand-strip span {
  display: flex;
  min-height: 54px;
  align-items: center;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: var(--hw-soft);
  padding: 0 14px;
  color: var(--hw-muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.hw-section {
  border-top: 1px solid var(--hw-line);
  padding: clamp(54px, 7vw, 92px) 0;
}

.hw-grid2 {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
}

.hw-links,
.hw-cardgrid,
.hw-tool-list,
.hw-steps {
  display: grid;
}

.hw-task-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 64px);
}

.hw-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hw-task-grid a,
.hw-card {
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: #fff;
}

.hw-task-grid a {
  min-height: 128px;
  padding: 18px;
  color: var(--hw-text);
  text-decoration: none;
}

.hw-task-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--hw-blue);
  font-size: 1.05rem;
}

.hw-task-grid span {
  color: var(--hw-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.hw-cardgrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hw-card {
  min-height: 220px;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.hw-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 97, 118, 0.5);
  box-shadow: 0 14px 34px rgba(32, 36, 42, 0.08);
}

.hw-card-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  background: var(--hw-soft);
  color: var(--hw-steel);
  font-size: 0.86rem;
  font-weight: 850;
}

.hw-card small {
  display: block;
  margin-bottom: 20px;
  color: var(--hw-steel);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hw-card a {
  color: var(--hw-text);
  text-decoration: none;
}

.hw-tools-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: 28px;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: linear-gradient(135deg, #fff 0%, var(--hw-soft) 100%);
}

.hw-tools-band strong {
  display: block;
  color: var(--hw-blue);
  font-size: 1.15rem;
}

.hw-tool-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hw-tool-list span {
  display: grid;
  min-height: 92px;
  align-content: space-between;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: #fff;
  padding: 14px;
  color: var(--hw-blue);
  font-weight: 750;
  line-height: 1.25;
}

.hw-tool-list strong {
  display: block;
  color: var(--hw-yellow);
  font-size: 0.82rem;
  font-weight: 900;
}

.hw-check {
  border-radius: var(--hw-radius);
  border-top: 0;
  background: var(--hw-soft);
  padding-inline: 28px;
}

.hw-steps {
  gap: 12px;
  counter-reset: hw;
}

.hw-steps div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  counter-increment: hw;
  padding: 18px;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: #fff;
}

.hw-steps div::before {
  content: counter(hw);
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  background: var(--hw-steel);
  color: #fff;
  font-weight: 800;
}

.hw-steps strong,
.hw-steps span {
  grid-column: 2;
}

.hw-steps span {
  color: var(--hw-muted);
}

.hw-home-v2 {
  padding-bottom: 88px;
}

.hw-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  min-height: min(680px, calc(100vh - 94px));
  padding: clamp(44px, 7vw, 76px) 0 clamp(34px, 5vw, 58px);
}

.hw-home-hero__copy {
  max-width: 610px;
}

.hw-home-hero h1 {
  margin: 0 0 20px;
  color: #171c22;
  font-size: clamp(2.6rem, 5vw, 4.75rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
}

.hw-home-hero__lead {
  max-width: 560px;
  margin: 0 0 12px;
  color: #47515d;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}

.hw-home-hero__note {
  max-width: 520px;
  margin: 0;
  color: var(--hw-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hw-home-hero__media {
  position: relative;
  margin: 0;
}

.hw-home-hero__media::before {
  content: "";
  position: absolute;
  inset: 18px 18px -18px -18px;
  z-index: -1;
  border: 1px solid rgba(184, 131, 75, 0.18);
  border-radius: var(--hw-radius);
  background: #f4f1eb;
}

.hw-home-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.64 / 1;
  object-fit: cover;
  border-radius: var(--hw-radius);
  box-shadow: 0 24px 62px rgba(32, 36, 42, 0.13);
}

.hw-home-section {
  padding: clamp(58px, 8vw, 96px) 0;
  border-top: 1px solid var(--hw-line);
}

.hw-section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.hw-section-heading h2,
.hw-home-trust h2,
.hw-home-close h2 {
  margin: 0 0 10px;
  color: #171c22;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hw-section-heading p,
.hw-home-trust > div:first-child p,
.hw-home-close p {
  margin: 0;
  color: var(--hw-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hw-home-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hw-home-topic {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: #fff;
  color: var(--hw-text);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(32, 36, 42, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hw-home-topic:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 97, 118, 0.42);
  box-shadow: 0 18px 42px rgba(32, 36, 42, 0.08);
}

.hw-home-topic img {
  display: block;
  width: 100%;
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
}

.hw-home-topic span,
.hw-home-topic strong,
.hw-home-topic p,
.hw-home-topic em {
  margin-inline: 22px;
}

.hw-home-topic span {
  margin-top: 22px;
  color: var(--hw-steel);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hw-home-topic strong {
  margin-top: 8px;
  color: #171c22;
  font-size: 1.28rem;
  line-height: 1.2;
}

.hw-home-topic p {
  margin-top: 12px;
  color: var(--hw-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.hw-home-topic em {
  margin-top: auto;
  margin-bottom: 22px;
  color: var(--hw-steel);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 800;
}

.hw-home-topic em::after,
.hw-home-guide > a::after,
.hw-home-close a::after {
  content: "→";
  margin-left: 9px;
}

.hw-home-trust {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  margin-top: 18px;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: linear-gradient(135deg, #fff 0%, #f4f7f6 100%);
  padding: clamp(28px, 5vw, 54px);
}

.hw-home-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.hw-home-principles div {
  min-height: 150px;
  padding: 4px 24px;
  border-left: 1px solid var(--hw-line);
}

.hw-home-principles div:first-child {
  border-left: 0;
}

.hw-home-principles strong {
  display: block;
  margin-bottom: 10px;
  color: var(--hw-blue);
  font-size: 1.02rem;
  line-height: 1.25;
}

.hw-home-principles p {
  margin: 0;
  color: var(--hw-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.hw-home-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hw-home-guide {
  display: grid;
  align-content: start;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: #fff;
}

.hw-home-guide img {
  display: block;
  width: 100%;
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
}

.hw-home-guide h3 {
  margin: 22px 24px 12px;
  font-size: 1.28rem;
  line-height: 1.22;
}

.hw-home-guide h3 a {
  color: #171c22;
  text-decoration: none;
}

.hw-home-guide p {
  margin: 0 24px 18px;
  color: var(--hw-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.hw-home-guide > a,
.hw-home-close a {
  align-self: end;
  color: var(--hw-steel);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.hw-home-guide > a {
  margin: 0 24px 24px;
}

.hw-home-close {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: #fbfaf7;
  padding: clamp(22px, 4vw, 34px);
}

.hw-home-close img {
  display: block;
  width: 100%;
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
  border-radius: var(--hw-radius);
}

.hw-home-close ul {
  display: grid;
  gap: 7px;
  margin: 20px 0 18px;
  padding: 0;
  color: var(--hw-text);
  font-size: 0.98rem;
  list-style: none;
}

.hw-home-close li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--hw-steel);
  font-weight: 900;
}

.hw-site-footer {
  border-top: 1px solid var(--hw-line);
  background: #fff;
}

.hw-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  color: var(--hw-muted);
  font-size: 0.94rem;
}

.hw-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

.hw-footer-links a {
  color: var(--hw-text);
  text-decoration: none;
}

.hw-empty,
.hw-404 {
  color: var(--hw-muted);
}

@media (max-width: 980px) {
  .hw-header-inner {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .hw-brand {
    min-width: 0;
  }

  .hw-brand-copy {
    min-width: 0;
  }

  .hw-brand-subline {
    white-space: normal;
    line-height: 1.15;
  }

  .hw-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .hw-search,
  .hw-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .hw-nav {
    display: none;
    padding-top: 2px;
  }

  .hw-site-header.is-menu-open .hw-nav {
    display: block;
  }

  .hw-nav ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-content: stretch;
    padding: 10px;
    border: 1px solid var(--hw-line);
    border-radius: var(--hw-radius);
    background: #fff;
  }

  .hw-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
  }

  .hw-nav a:hover,
  .hw-nav .current_page_item > a {
    background: var(--hw-soft);
  }
}

@media (max-width: 860px) {
  body {
    font-size: 17px;
  }

  .hw-container,
  .hw-wrap,
  .hw-page {
    width: min(100% - 32px, var(--hw-wide));
  }

  .hw-hero,
  .hw-home-hero,
  .hw-home-trust,
  .hw-home-topic-grid,
  .hw-home-guide-grid,
  .hw-home-close,
  .hw-grid2,
  .hw-tools-band,
  .hw-cardgrid,
  .hw-task-section,
  .hw-task-grid,
  .hw-brand-strip,
  .hw-tool-list,
  .hw-footer-inner {
    grid-template-columns: 1fr;
  }

  .hw-hero {
    padding-top: 30px;
  }

  .hw-home-hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hw-home-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .hw-home-hero__media {
    order: 2;
  }

  .hw-home-trust,
  .hw-home-close {
    margin-inline: 0;
  }

  .hw-home-principles {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hw-home-principles div {
    min-height: 0;
    padding: 0;
    border-left: 0;
  }

  .hw-brand-strip span {
    min-height: 46px;
  }

  .hw-footer-links {
    justify-content: flex-start;
  }

  .hw-procon {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hw-brand-image {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .hw-brand-name {
    font-size: 1.04rem;
  }

  .hw-brand-subline {
    font-size: 0.66rem;
  }

  .hw-search {
    grid-template-columns: 1fr;
  }

  .hw-search button {
    min-height: 40px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .hw-site-header {
    top: 46px;
  }
}
