/*
 * Hawepro Help Center — Help Scout Docs
 * Version 1.1 | 25 September 2026
 * Upload under Settings > Docs Sites > Hawepro > Custom Code.
 * Designed for the current markup at support.hawepro.de.
 * Pure CSS; no external font, image, script or icon dependency.
 */

:root {
  --hw-red: #a61703;
  --hw-red-hover: #811402;
  --hw-ink: #272321;
  --hw-body: #403a37;
  --hw-muted: #706965;
  --hw-background: #f8f7f5;
  --hw-paper: #ffffff;
  --hw-line: #e9e4e0;
  --hw-pale: #fbefec;
  --hw-shadow: 0 12px 34px rgba(48, 35, 28, .045);
  --hw-radius: 16px;
}

html { background: var(--hw-background); }
body {
  background: var(--hw-background);
  color: var(--hw-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body, #contentArea, #main-content, #sidebar { box-sizing: border-box; }
button, input, select { font: inherit; }
a { color: var(--hw-red); }
a:hover, a:focus { color: var(--hw-red-hover); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid rgba(166, 23, 3, .25);
  outline-offset: 3px;
}

/* Navigation and existing Help Scout logo */
#mainNav, #mainNav .navbar-inner {
  background: var(--hw-paper);
  border: 0;
  box-shadow: none;
}
#mainNav { border-bottom: 1px solid var(--hw-line); }
#mainNav .navbar-inner { min-height: 78px; }
#mainNav .container-fluid {
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
#mainNav .brand { padding-top: 9px; padding-bottom: 9px; }
#mainNav .brand img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 58px;
  object-fit: contain;
}
#mainNav .nav > li > a {
  color: var(--hw-body);
  font-size: 14px;
  font-weight: 600;
  text-shadow: none;
}
#mainNav .nav > li > a:hover, #mainNav .nav > .active > a,
#mainNav .nav > .active > a:hover {
  color: var(--hw-red);
  background: transparent;
  box-shadow: none;
}

/* Large homepage search, including Help Scout's autocomplete dropdown */
#docsSearch {
  position: relative;
  margin-bottom: 0;
  padding: 70px 24px 76px;
  background: radial-gradient(circle at 85% 5%, #fff9f6 0, transparent 42%),
              linear-gradient(145deg, #fff 0%, #fcfaf8 100%);
  border: 0;
  border-bottom: 1px solid var(--hw-line);
}
#docsSearch h1 {
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--hw-ink);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.19;
  font-weight: 750;
  letter-spacing: -.035em;
  text-align: center;
}
#docsSearch #searchBar {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  height: 62px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}
#docsSearch #searchBar .search-query {
  box-sizing: border-box;
  width: 100%;
  height: 62px;
  min-height: 62px;
  padding: 0 126px 0 22px;
  border: 1px solid #dcd4cf;
  border-radius: 12px;
  color: var(--hw-ink);
  background: #fff;
  font-size: 16px;
  box-shadow: 0 8px 30px rgba(51, 36, 29, .08);
}
#docsSearch #searchBar .search-query:focus {
  border-color: var(--hw-red);
  box-shadow: 0 0 0 4px rgba(166, 23, 3, .09), 0 8px 30px rgba(51, 36, 29, .08);
  outline: none;
}
#docsSearch #searchBar button {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 48px;
  padding: 0 20px;
  color: #fff;
  background: var(--hw-red);
  border: 1px solid var(--hw-red);
  border-radius: 9px;
  font-weight: 650;
  text-shadow: none;
  box-shadow: none;
}
#docsSearch #searchBar button:hover, #docsSearch #searchBar button:focus {
  color: #fff;
  background: var(--hw-red-hover);
  border-color: var(--hw-red-hover);
}
#docsSearch #serp-dd, #sidebar #serp-dd {
  z-index: 20;
  border: 1px solid var(--hw-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(35, 24, 19, .12);
}

/* Content width */
#contentArea { max-width: 1220px; margin: 0 auto; padding: 46px 28px 30px; }
#contentArea > .row-fluid { display: flex; align-items: flex-start; gap: 42px; }
#contentArea > .row-fluid > #main-content {
  float: none;
  width: min(100%, 860px);
  min-width: 0;
  margin-left: 0;
}
#contentArea > .row-fluid > #sidebar {
  float: none;
  flex: 1 1 240px;
  min-width: 210px;
  max-width: 280px;
  margin-left: 0;
}
.contentWrapper { min-width: 0; }

/* Homepage: current Popular Articles + Categories layout */
.most-pop-articles {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 27px 30px 25px;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: #fff;
  box-shadow: var(--hw-shadow);
}
.most-pop-articles h2 {
  margin: 0 0 19px;
  color: var(--hw-ink);
  font-size: 23px;
  line-height: 1.3;
  font-weight: 720;
  letter-spacing: -.02em;
  text-align: left;
}
.most-pop-articles .popArticles { margin: 0; column-gap: 30px; }
.most-pop-articles .popArticles li { box-sizing: border-box; }
.most-pop-articles .popArticles a {
  display: block;
  padding: 11px 7px;
  color: var(--hw-body);
  line-height: 1.45;
  text-decoration: none;
  border-radius: 6px;
}
.most-pop-articles .popArticles a:hover,
.most-pop-articles .popArticles a:focus-visible {
  color: var(--hw-red);
  background: var(--hw-pale);
}
.most-pop-articles .popArticles i { color: var(--hw-red); opacity: .72; }
#contentArea > hr.sep { margin: 30px 0; border: 0; border-top: 1px solid var(--hw-line); }

/* Also works if Home Page is later changed to Categories in Help Scout. */
.category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
}
.category-list .category {
  box-sizing: border-box;
  display: flex;
  float: none;
  flex-direction: column;
  justify-content: space-between;
  width: auto;
  min-width: 0;
  min-height: 125px;
  margin: 0;
  padding: 25px 25px 23px;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: var(--hw-paper);
  color: var(--hw-ink);
  text-align: left;
  text-decoration: none;
  box-shadow: var(--hw-shadow);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.category-list .category:hover, .category-list .category:focus-visible {
  color: var(--hw-ink);
  border-color: #e2b2a9;
  box-shadow: 0 18px 36px rgba(55, 32, 25, .10);
  transform: translateY(-3px);
}
.category-list .category h3 {
  overflow-wrap: anywhere;
  margin: 0 0 18px;
  color: inherit;
  font-size: 19px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -.018em;
}
.category-list .category .article-count {
  margin: 0;
  color: var(--hw-muted);
  font-size: 13px;
  line-height: 1.4;
}
.category-list .category:hover h3 { color: var(--hw-red); }

/* Category and search-result article lists */
#categoryHead h1, #main-content > .contentWrapper > h1 {
  margin: 0 0 12px;
  color: var(--hw-ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 700;
}
#categoryHead .sort { margin: 20px 0 22px; }
#sortBy {
  max-width: 100%;
  min-height: 40px;
  padding: 6px 11px;
  color: var(--hw-body);
  background: #fff;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
}
#main-content .articleList { margin: 0; padding: 0; list-style: none; }
#main-content .articleList li { margin: 0; border-bottom: 1px solid var(--hw-line); }
#main-content .articleList li:last-child { border-bottom: 0; }
#main-content .articleList a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 15px 10px;
  color: var(--hw-ink);
  border-radius: 7px;
  text-decoration: none;
  font-weight: 550;
  line-height: 1.45;
}
#main-content .articleList a:hover, #main-content .articleList a:focus-visible {
  color: var(--hw-red);
  background: var(--hw-pale);
}
#main-content .articleList i { color: var(--hw-red); opacity: .7; }

/* Article reading area */
#fullArticle { max-width: 850px; color: var(--hw-body); line-height: 1.75; }
#fullArticle h1.title {
  margin: 0 0 28px;
  color: var(--hw-ink);
  font-size: clamp(29px, 3vw, 39px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.03em;
}
#fullArticle h2 {
  margin: 42px 0 17px;
  padding-bottom: 11px;
  color: var(--hw-ink);
  font-size: 25px;
  line-height: 1.3;
  font-weight: 700;
  border-bottom: 1px solid var(--hw-line);
}
#fullArticle h3 { margin: 30px 0 12px; color: var(--hw-ink); font-size: 20px; line-height: 1.4; }
#fullArticle p, #fullArticle ul, #fullArticle ol { margin-bottom: 18px; }
#fullArticle li { margin-bottom: 6px; }
#fullArticle a:not(.printArticle) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#fullArticle img:not(.noBdr) {
  box-sizing: border-box;
  max-width: 100%;
  height: auto;
  margin: 12px 0 20px;
  border: 1px solid var(--hw-line);
  border-radius: 10px;
  box-shadow: 0 7px 24px rgba(45, 35, 30, .07);
}
#fullArticle img.noBdr { max-width: 100%; height: auto; }
#fullArticle figure { max-width: 100%; margin: 24px 0; }
#fullArticle figcaption { color: var(--hw-muted); font-size: 13px; }
#fullArticle table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--hw-line);
  border-radius: 9px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}
#fullArticle th, #fullArticle td { padding: 11px 14px; border-bottom: 1px solid var(--hw-line); }
#fullArticle th { color: var(--hw-ink); background: #f4f1ee; font-weight: 650; }
#fullArticle tr:last-child td { border-bottom: 0; }
#fullArticle blockquote {
  margin: 24px 0;
  padding: 17px 21px;
  border: 0;
  border-left: 4px solid var(--hw-red);
  border-radius: 0 9px 9px 0;
  background: #fbf2ef;
  color: var(--hw-body);
}
#fullArticle code { padding: 2px 5px; border-radius: 4px; color: #8d1a0a; background: #f4efed; }
#fullArticle pre { overflow-x: auto; padding: 18px 20px; border: 0; border-radius: 9px; color: #f9f7f5; background: #2b2826; }
#fullArticle pre code { padding: 0; color: inherit; background: transparent; }
#fullArticle .printArticle { color: var(--hw-muted); }

/* Feedback, related articles and secondary navigation */
.articleFoot, #main-content .relatedArticles { color: var(--hw-muted); }
.articleFoot { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--hw-line); }
.articleFoot a { font-weight: 600; }
#sidebar { color: var(--hw-muted); font-size: 14px; }
#sidebar #searchBar { position: relative; margin-bottom: 29px; }
#sidebar #searchBar .search-query {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 42px 8px 14px;
  color: var(--hw-ink);
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
#sidebar #searchBar button { color: var(--hw-red); background: transparent; box-shadow: none; }
#sidebar h3 { margin: 0 0 12px; color: var(--hw-ink); font-size: 16px; font-weight: 700; }
#sidebar ul { margin-left: 0; }
#sidebar a { color: var(--hw-body); text-decoration: none; }
#sidebar a:hover, #sidebar a:focus, #sidebar .active > a { color: var(--hw-red); }

/* Footer and buttons */
footer.center {
  margin-top: 54px;
  padding: 28px 20px 38px;
  border-top: 1px solid var(--hw-line);
  color: var(--hw-muted);
  font-size: 13px;
}
footer.center a { color: var(--hw-body); }
footer.center a:hover { color: var(--hw-red); }
.btn-primary { color: #fff; background: var(--hw-red); border-color: var(--hw-red); box-shadow: none; text-shadow: none; }
.btn-primary:hover, .btn-primary:focus { color: #fff; background: var(--hw-red-hover); border-color: var(--hw-red-hover); }

@media (max-width: 1000px) {
  .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #contentArea > .row-fluid { gap: 28px; }
}
@media (max-width: 767px) {
  #mainNav .navbar-inner { min-height: 66px; }
  #mainNav .container-fluid { padding-left: 18px; padding-right: 18px; }
  #mainNav .brand img { max-height: 48px; }
  #docsSearch { padding: 46px 18px 50px; }
  #docsSearch #searchBar { height: 62px; }
  #docsSearch h1 { margin-bottom: 24px; font-size: 30px; }
  #contentArea { padding: 30px 18px 16px; }
  #contentArea > .row-fluid { display: block; }
  #contentArea > .row-fluid > #main-content,
  #contentArea > .row-fluid > #sidebar { width: 100%; max-width: none; }
  #contentArea > .row-fluid > #sidebar { margin-top: 44px; }
  .category-list { gap: 13px; }
  .category-list .category { min-height: 125px; padding: 20px; }
  .most-pop-articles { padding: 22px; }
  .most-pop-articles .popArticles { columns: 1; }
  #fullArticle h1.title { font-size: 30px; }
  #fullArticle h2 { margin-top: 34px; font-size: 23px; }
}
@media (max-width: 540px) {
  .category-list { grid-template-columns: 1fr; }
  .category-list .category { min-height: 105px; }
  #docsSearch #searchBar .search-query { height: 56px; min-height: 56px; padding-right: 56px; }
  #docsSearch #searchBar { height: 56px; }
  #docsSearch #searchBar button { top: 6px; right: 6px; width: 44px; height: 44px; padding: 0; }
  #docsSearch #searchBar button span { display: none; }
  #docsSearch #searchBar button i { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .category-list .category { transition: none; }
  .category-list .category:hover { transform: none; }
}
@media print {
  #mainNav, #docsSearch, #sidebar, footer.center, .printArticle { display: none !important; }
  body, #contentArea { background: #fff; }
  #contentArea > .row-fluid > #main-content { width: 100%; max-width: none; }
  #fullArticle a { color: #222; }
}
