/* ================= Nová hlavní stránka – uživatelské příručky ================= */

@font-face { font-family: boschsans; font-weight: 300; font-display: swap;
  src: url("../fonts/boschsans-light-webfont.woff2") format("woff2"), url("../fonts/boschsans-light-webfont.woff") format("woff"); }
@font-face { font-family: boschsans; font-weight: 400; font-display: swap;
  src: url("../fonts/boschsans-regular-webfont.woff2") format("woff2"), url("../fonts/boschsans-regular-webfont.woff") format("woff"); }
@font-face { font-family: boschsans; font-weight: 700; font-display: swap;
  src: url("../fonts/boschsans-bold-webfont.woff2") format("woff2"), url("../fonts/boschsans-bold-webfont.woff") format("woff"); }
@font-face { font-family: SiemensSans; font-weight: 400; font-display: swap;
  src: url("../fonts/siemenssans-roman-webfont.woff") format("woff"); }
@font-face { font-family: SiemensSans; font-weight: 700; font-display: swap;
  src: url("../fonts/siemenssans-bold-webfont.woff") format("woff"); }
@font-face { font-family: GaggenauSans; font-weight: 400; font-display: swap;
  src: url("../fonts/gaggenr-webfont.woff") format("woff"); }
@font-face { font-family: GaggenauSans; font-weight: 700; font-display: swap;
  src: url("../fonts/gaggenb-webfont.woff") format("woff"); }

:root {
  --page-bg: #eef0f2;
  --page-fg: #000;
  --page-muted: #4a4f55;
  --font: boschsans, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hp-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- záhlaví ---------- */

.hp-header {
  background: #fff;
  border-bottom: 1px solid #dfe2e5;
}
.hp-header .hp-wrap { padding-top: 56px; padding-bottom: 44px; }

.hp-eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--page-muted);
}

.hp-header h1 {
  margin: 0 0 16px;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
}

.hp-lead {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  color: #22262a;
}

/* ---------- karty značek ---------- */

.hp-brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 56px;
}

.hp-card {
  --card-bg: #fff;
  --card-fg: #000;
  --card-muted: #4a4f55;
  --card-line: #d0d4d8;
  --card-hover: #f1f3f5;
  --accent: #007bc0;
  --accent-hover: #00629a;
  --accent-fg: #fff;
  --input-bg: #e0e2e5;
  --input-line: #71767c;

  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 36px 28px 24px;
  background: var(--card-bg);
  color: var(--card-fg);
}

.hp-card--bosch {
  font-family: boschsans, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.hp-card--bosch::before {
  /* barevný pruh Bosch nahoře */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: url("../img/shape_horizontal.svg") center / cover no-repeat;
}

.hp-card--siemens {
  --card-bg: #000028;
  --card-fg: #fff;
  --card-muted: #b3b3be;
  --card-line: #2d2d4b;
  --card-hover: #14143c;
  --accent: #3cc8be;
  --accent-hover: #5fd8cf;
  --accent-fg: #000028;
  font-family: SiemensSans, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hp-card--gaggenau {
  --card-bg: #000;
  --card-fg: #fff;
  --card-muted: #a6a6a6;
  --card-line: #333;
  --card-hover: #161616;
  --accent: #fff;
  --accent-hover: #d9d9d9;
  --accent-fg: #000;
  font-family: GaggenauSans, Arial, sans-serif;
}

.hp-card-logo {
  display: flex;
  align-items: center;
  height: 52px;
  margin: 0 0 28px;
}
.hp-card-logo img {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 44px;
}
.hp-card--siemens .hp-card-logo img { max-height: 30px; }
.hp-card--gaggenau .hp-card-logo img { max-height: 26px; }

.hp-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.hp-field {
  display: flex;
  gap: 8px;
}

.hp-field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid var(--input-line);
  border-radius: 0;
  background: var(--input-bg);
  color: #000;
  font: inherit;
  font-size: 16px;
  text-transform: uppercase;
}
.hp-field input::placeholder { color: #5b6066; text-transform: none; opacity: 1; }
.hp-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.hp-field button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.hp-field button:hover { background: var(--accent-hover); }
.hp-field button svg { width: 18px; height: 18px; flex: none; }

.hp-card :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- výsledky ---------- */

.hp-status { margin-top: 16px; }
.hp-status:empty { margin-top: 0; }

.hp-status-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 15px;
}
.hp-status-title span { font-weight: 400; color: var(--card-muted); }

.hp-status-more {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--card-muted);
}

.hp-notfound h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.hp-notfound p {
  margin: 0;
  font-size: 14px;
  color: var(--card-fg);
}
.hp-notfound a { color: inherit; }

.hp-results {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.hp-results:empty { margin: 0; }

.hp-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-top: 1px solid var(--card-line);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.hp-results li:last-child .hp-file { border-bottom: 1px solid var(--card-line); }
.hp-file:hover { background: var(--card-hover); }

.hp-file-icon {
  flex: none;
  width: 36px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #c8102e;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hp-file-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.hp-file-model {
  font-weight: 700;
  font-size: 16px;
}
.hp-file:hover .hp-file-model { text-decoration: underline; }
.hp-file-name {
  font-size: 12px;
  color: var(--card-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-file-lang {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--card-line);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- nápověda a odkaz na podstránku ---------- */

.hp-card-foot {
  margin-top: auto;
  padding-top: 24px;
}

.hp-help summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  list-style: none;
}
.hp-help summary::-webkit-details-marker { display: none; }
.hp-help summary svg { width: 18px; height: 18px; flex: none; }
.hp-help summary span { text-decoration: underline; text-underline-offset: 3px; }
.hp-help[open] summary { margin-bottom: 12px; }
.hp-help img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--card-line);
}
.hp-help p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--card-muted);
}

.hp-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
}
.hp-more:hover { text-decoration: underline; }
.hp-more svg { width: 14px; height: 14px; }

/* ---------- patička ---------- */

.hp-footer {
  background: #fff;
  border-top: 1px solid #dfe2e5;
  font-size: 13px;
  color: var(--page-muted);
}
.hp-footer .hp-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-top: 20px;
  padding-bottom: 24px;
}
.hp-footer a,
.hp-footer button {
  color: inherit;
  font: inherit;
  text-decoration: underline;
}
.hp-footer button {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- odkaz na seznam všech příruček ---------- */

.hp-alllink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px solid #000;
  color: #000;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.hp-alllink:hover { background: #000; color: #fff; }
.hp-alllink svg { width: 18px; height: 18px; flex: none; }

.hp-card-foot .hp-more { display: flex; width: fit-content; }
.hp-card-foot .hp-more + .hp-more { margin-top: 8px; }

/* ---------- stránka se seznamem všech příruček ---------- */

.ls-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--page-fg);
  text-decoration: none;
}
.ls-back:hover { text-decoration: underline; }
.ls-back svg { width: 16px; height: 16px; }

.ls-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 28px;
}

.ls-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.ls-jump a {
  padding: 10px 18px;
  border: 1px solid #c5c9cd;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.ls-jump a:hover { border-color: #000; }

.ls-filter { flex: 0 1 380px; min-width: 0; }
.ls-filter label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}
.ls-filter input {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #71767c;
  border-radius: 0;
  background: #e0e2e5;
  color: #000;
  font: inherit;
  font-size: 16px;
}
.ls-filter input:focus { outline: 2px solid #007bc0; outline-offset: 1px; }

.ls-status { margin: 16px 0 0; font-weight: 700; }
.ls-status:empty { display: none; }

.ls-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 56px;
}

.ls-section { scroll-margin-top: 16px; }
.ls-section[hidden] { display: none; }

.ls-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.ls-head h2 { margin: 0; line-height: 0; }
.ls-head img { display: block; width: auto; max-width: 200px; }
.hp-card--bosch .ls-head img { height: 40px; }
.hp-card--siemens .ls-head img { height: 28px; }
.hp-card--gaggenau .ls-head img { height: 24px; }
.ls-count { font-size: 14px; color: var(--card-muted); white-space: nowrap; }

.ls-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  margin: 0 0 8px;
}
.ls-list .hp-file { border-top: 0; border-bottom: 1px solid var(--card-line); }
.ls-list li:last-child .hp-file { border-bottom: 1px solid var(--card-line); }

/* ---------- menší obrazovky ---------- */

@media (max-width: 1080px) {
  .hp-brands { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .ls-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .ls-list { grid-template-columns: minmax(0, 1fr); }
  .ls-filter { flex-basis: 100%; }
}

@media (max-width: 600px) {
  .hp-wrap { padding: 0 16px; }
  .hp-header .hp-wrap { padding-top: 32px; padding-bottom: 28px; }
  .hp-header h1 { font-size: 32px; }
  .hp-lead { font-size: 16px; }
  .hp-brands { gap: 16px; padding-top: 16px; padding-bottom: 32px; }
  .hp-card { padding: 28px 16px 20px; }
  .hp-card-logo { height: 44px; margin-bottom: 20px; }
  .hp-field button { padding: 0 14px; }
}
