:root {
  --ink: #12354a;
  --green: #12354a;
  --paper: #f7f4ea;
  --orange: #865027;
  --signal: #ffd94c;
  --sand: #eee8db;
  --sage: #e5ebec;
  --line: #c6cdd0;
  --muted: #455b68;
  --white: #fffcf4;
  --visual-ink: var(--ink);
  --visual-paper: var(--sage);
  --visual-accent: #a78319;
}

:focus-visible { outline: 3px solid #295f8e; outline-offset: 4px; }
.site-footer :focus-visible, .closing :focus-visible { outline-color: var(--signal); }
.site-header { background: var(--white); }
.site-footer { background: #102b3d; }
.wordmark strong { letter-spacing: .01em; }
.site-header .header-cta { background: var(--signal); color: var(--ink); }
.header-inner { min-height: 84px; }
.hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .86fr);
  grid-template-areas: "intro visual" "search visual";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 18px clamp(22px, 5vw, 76px);
  padding-block: clamp(48px, 7vw, 90px) clamp(40px, 6vw, 78px);
}
.hero-copy { grid-area: intro; padding-top: 0; }
.hero-copy h1 {
  font-size: clamp(64px, 6.15vw, 99px);
  line-height: .92;
  margin: 0 0 24px;
  letter-spacing: -.023em;
}
.hero-copy h1 em { color: var(--ink); font-style: normal; }
.hero-lede { max-width: 35ch; margin-bottom: 0; }
.hero-search { grid-area: search; margin-top: 4px; min-width: 0; }
.hero-search .search-form { padding: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: none; }
.hero-search .search-primary { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
.hero-search .search-primary label { border: 0; padding: 3px 0 4px; }
.hero-search .search-primary input { border-bottom: 1px solid var(--line); }
.hero-search .search-primary .button { grid-column: 1 / -1; justify-content: space-between; min-height: 48px; }
.search-primary .button { color: var(--ink); background: var(--signal); border-color: #dfb730; }
.search-primary .button:hover { background: #f1c836; }
.hero-search .search-note { margin-bottom: 0; line-height: 1.5; }
.project-media {
  margin: 0;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 0;
}
.project-media img { display: block; width: 100%; height: auto; }
.project-media--home {
  grid-area: visual;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.project-media--home img {
  flex: 1;
  min-height: 0;
  aspect-ratio: 1.17;
  object-fit: cover;
  object-position: 50% 47%;
}
.project-media figcaption {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 11px 8px 5px;
  font-size: 12px;
  color: var(--muted);
}
.project-media figcaption span { color: var(--ink); font-weight: 700; }
.project-media--photo img { aspect-ratio: 1.42; object-fit: cover; }
.project-media--diagram img { aspect-ratio: 1.6; object-fit: contain; background: var(--sage); }
.pillar-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); align-items: start; gap: clamp(24px, 5vw, 68px); padding: 40px 0 56px; }
.pillar-hero .page-heading { padding-top: 0; }
.pillar-hero .page-heading h1 { font-size: clamp(54px, 5.8vw, 88px); line-height: .96; }
.project-example {
  margin-block: 32px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-left: 5px solid var(--signal);
  background: var(--white);
}
.project-example h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.project-example h3 { font-size: 21px; margin-bottom: 9px; }
.project-example p { margin: 0 0 14px; }
.project-example details { margin-top: 18px; }
.project-example summary { cursor: pointer; padding-block: 10px; font-weight: 700; }
.project-example ul { padding-left: 21px; }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-visual.farbe { background: #f5e8be; }
.category-visual .icon { color: var(--ink); }
.method-inner { grid-template-columns: 1.2fr 1fr auto; }
.hero + .section { padding-top: 20px; }

.results-heading { font-size: 32px; margin: 0 0 16px; }
#ergebnisliste { scroll-margin-top: 16px; }
.task-fit:not([hidden]) { background: #eee8db; font-size: 12px; line-height: 1.5; padding: 9px 10px; margin: 12px 0; border-left: 3px solid #865027; }
.task-fit[data-kind=service] { background: var(--sage); border-color: #295f8e; }
.map-location-buttons:empty { display: none; }
#map-error { background: var(--white); border-left: 4px solid var(--signal); padding: 12px; margin: 0 0 12px; }
.notice, .map-layout, .map-location-buttons, .trade-skeleton { border-color: var(--line); background: var(--sage); }
.trade-skeleton { color: var(--ink); }
.trade-skeleton pre { border-color: #879eab; color: var(--ink); background: var(--white); }
.map-location-buttons button { color: var(--ink); border-color: #879eab; }
.map-location-buttons button:hover { background: var(--signal); color: var(--ink); }
[data-page^="leistungen/"] .visual-items[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner { min-height: 71px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "search" "visual";
    grid-template-rows: auto;
    gap: 19px;
    padding-block: 32px 35px;
  }
  .hero-copy h1 { font-size: clamp(49px, 12vw, 73px); margin-bottom: 16px; }
  .hero-lede { margin-bottom: 0; }
  .hero-search .search-primary { grid-template-columns: 1fr; gap: 11px; }
  .project-media--home img { aspect-ratio: 1.62; }
  .pillar-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 0 38px; gap: 20px; }
  .pillar-hero .page-heading h1 { font-size: clamp(48px, 10.5vw, 70px); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-inner { grid-template-columns: 1fr; }
  [data-page^="leistungen/"] .visual-items[data-count="2"] { grid-template-columns: 1fr; }
}

.batch-media { margin-block: 40px 58px; }
.batch-media > h2 { margin: 0 0 21px; }
.batch-media-grid { display: grid; gap: 20px; max-width: 850px; }
.batch-media-grid--many { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.batch-media figure { margin: 0; background: var(--white); border: 1px solid var(--line); }
.batch-media img { display: block; width: 100%; height: auto; }
.batch-media figcaption { padding: 12px 16px; color: var(--muted); font-size: .96rem; }
.batch-media-video { margin-top: 24px; width: min(100%, 850px); }
.batch-media-video h3 { margin-bottom: 12px; }
.batch-media-video video { display: block; background: var(--ink); width: 100%; height: auto; aspect-ratio: 16 / 9; }
.batch-media-video details { padding: 12px 0; }
.batch-media-video summary { cursor: pointer; font-weight: 700; }
@media (max-width: 900px) {
  .batch-media-grid--many { grid-template-columns: 1fr; max-width: 680px; }
}

.directory-stand { margin: 0 0 15px; color: var(--ink); }
.directory-coverage {
  margin: 16px 0 24px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px 16px;
  color: var(--ink);
}
.directory-coverage summary { cursor: pointer; font-weight: 700; padding-block: 7px; }
.directory-coverage ul { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.directory-coverage li a { display: inline-block; padding-block: 10px; }

/* Native trade and project marks share the line work of the published category tiles. */
.native-task-icon {
  display: inline-block;
  inline-size: 16px;
  block-size: 16px;
  flex: 0 0 auto;
  color: currentColor;
  vertical-align: -3px;
}
.site-header nav a:has(> .native-task-icon) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tool-card > .native-task-icon {
  display: block;
  inline-size: 40px;
  block-size: 40px;
  color: var(--ink);
}
@media (min-width: 761px) and (max-width: 980px) {
  .site-header nav .native-task-icon { inline-size: 13px; block-size: 13px; }
  .site-header nav a:has(> .native-task-icon) { gap: 3px; }
}


/* Drafting marks sit beside readable content and never lay out the moving parts. */
.hero-draft {
  --draft-ticks: #8a9da7;
  position: relative;
  inline-size: min(100%, 24rem);
  block-size: 26px;
  margin-block-start: 18px;
}
.hero-draft-rule, .hero-draft-slide {
  position: absolute;
  inset: 0;
}
.hero-draft-rule {
  background:
    repeating-linear-gradient(90deg, var(--draft-ticks) 0 1px, transparent 1px 12px) left 13px / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 48px) left 8px / 100% 12px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left 19px / 100% 2px no-repeat;
  transform-origin: left center;
}
.hero-draft-slide::after {
  content: "";
  position: absolute;
  inset-block-start: 2px;
  inset-inline-end: 0;
  inline-size: 17px;
  block-size: 17px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background:
    linear-gradient(90deg, var(--ink) 0 2px, transparent 2px) center / 2px 9px no-repeat,
    var(--signal);
}

:is(.hero-search .button[type="submit"], #brief-form .button[type="submit"], .download-actions .button) {
  position: relative;
}
:is(.hero-search .button[type="submit"], #brief-form .button[type="submit"], .download-actions .button)::after {
  content: "";
  position: absolute;
  inset-inline: 8px;
  inset-block-end: 5px;
  border-block-end: 2px solid currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
:is(.hero-search .button[type="submit"], #brief-form .button[type="submit"], .download-actions .button):not(:disabled):is(:focus-visible, :active, [data-draft-pressed])::after {
  transform: scaleX(1);
}
@media (hover: hover) and (pointer: fine) {
  :is(.hero-search .button[type="submit"], #brief-form .button[type="submit"], .download-actions .button):not(:disabled):hover::after {
    transform: scaleX(1);
  }
}
#brief-output:is([data-document-state="ready"], [data-document-state="copied"], [data-document-state="exported"]) {
  box-shadow: inset 5px 0 0 var(--ink), inset 0 -4px 0 var(--signal);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-draft[data-drafting-stage="drawing"] .hero-draft-rule {
    animation: hwk-draft-rule 580ms cubic-bezier(.28, .6, .3, 1) both;
  }
  .hero-draft[data-drafting-stage="drawing"] .hero-draft-slide {
    animation: hwk-draft-square 580ms cubic-bezier(.25, .55, .25, 1) both;
  }
  :is(.hero-search .button[type="submit"], #brief-form .button[type="submit"], .download-actions .button)::after {
    transition: transform 210ms cubic-bezier(.28, .6, .3, 1);
  }
  :is(.hero-search .button[type="submit"], #brief-form .button[type="submit"], .download-actions .button):is(:active, [data-draft-pressed])::after {
    transition-duration: 70ms;
  }
}
@keyframes hwk-draft-rule {
  0% { transform: scaleX(.2); }
  48% { transform: scaleX(.73); }
  100% { transform: scaleX(1); }
}
@keyframes hwk-draft-square {
  0%, 21% { transform: translateX(-78%); }
  100% { transform: translateX(0); }
}



/* Directory evidence stays readable as text in the list and the static profiles. */
#location-hint {
  display: block;
  color: var(--ink);
  font-size: .79rem;
  font-weight: 500;
  line-height: 1.35;
}
.location-refine {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  inline-size: min(100%, 36rem);
  min-inline-size: 0;
  margin-block: 12px;
}
.location-refine[hidden] { display: none; }
.location-refine label { font-weight: 700; }
.location-refine select {
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 44px;
  padding-inline: 10px;
  border: 1px solid #bfc8cb;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
.location-refine p { margin: 0; }
.task-fit-method { margin-block-end: 8px; }
.profile-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
}
.profile-badges li {
  border: 1px solid #ad9660;
  background: #fff6d6;
  color: var(--ink);
  border-radius: 3px;
  padding: 3px 7px;
  font-size: .83rem;
  font-weight: 700;
}
.profile-pricing {
  border-inline-start: 3px solid var(--signal);
  padding-inline-start: 14px;
}
.profile-pricing a { overflow-wrap: anywhere; }
.profile-fit-form {
  display: grid;
  gap: 6px;
  margin-block: 16px;
}
.profile-fit-form[inert] { display: none; }
.profile-fit-form label { font-weight: 700; }
.profile-fit-form div { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-fit-form input { flex: 1 1 12rem; min-inline-size: 0; }
.profile-fit-form :is(input, .button) { min-block-size: 44px; }
.profile-fit-form [data-fit-result] { margin: 0; }
.profile-fit-form [data-fit-result]:empty { padding: 0; border: 0; }


.profile-heading > div { min-inline-size: 0; }
.profile-heading h1 { overflow-wrap: anywhere; }
.profile-header-actions { margin-block: 15px 12px; }
.profile-primary-action { max-inline-size: 100%; min-block-size: 44px; }
.profile-primary-action .action-icon { flex-shrink: 0; }
.profile-heading .profile-badges { margin: 0; }
.profile-layout [data-fit-criteria] { margin: 0; font-size: .875rem; line-height: 1.45; }

@media (max-width: 480px) {
  .profile-heading .business-monogram { display: none; }
  .profile-heading > div { inline-size: 100%; }
}

.profile-source-score {
  margin-block-start: 11px;
  color: var(--ink);
  font-size: .875rem;
}
.profile-source-score strong { font-variant-numeric: tabular-nums; }
.profile-source-score p {
  max-inline-size: 54ch;
  margin: 2px 0 0;
  line-height: 1.45;
}

.directory-source-note {
  margin-block: 8px 16px;
  max-inline-size: 68ch;
  color: var(--ink);
  line-height: 1.5;
}

.profile-heading .profile-source-score {
  max-inline-size: 64ch;
  padding: 12px 14px;
  border: 1px solid #c3cdc6;
  border-radius: 4px;
  background: #eef0e8;
}

.profile-score-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
}

.profile-score-heading span { font-size: .8rem; }
.profile-source-score .profile-evidence-gap { margin-block-start: 6px; font-weight: 600; }

.profile-evidence-glance {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 9px 0 0;
}

.profile-evidence-glance div { max-inline-size: 100%; }
.profile-evidence-glance dt { font-weight: 700; }
.profile-evidence-glance dd { margin: 0; overflow-wrap: anywhere; }

/* Specialist directory cards reuse the native tool grid. */
.directory-links .tool-card { display: flex; flex-direction: column; }
.directory-links .tool-card > .text-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: auto;
}
@media (min-width: 1000px) {
  .tool-grid.directory-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
