@font-face {
  font-display: swap;
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 400;
  src: url("https://ok2.de/templates/tpl_ok2/css/fonts/red-hat-display-v14-latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 700;
  src: url("https://ok2.de/templates/tpl_ok2/css/fonts/red-hat-display-v14-latin-700.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #606368;
  --line: #dadce0;
  --soft: #f6f7f8;
  --panel: #ffffff;
  --brand: #d71920;
  --brand-dark: #a80f15;
  --nav: #080808;
  --ok: #16784b;
  --carbon-bg:
    linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 1)),
    linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black),
    linear-gradient(45deg, black 25%, transparent 25%, transparent 75%, black 75%, black),
    linear-gradient(to bottom, rgb(8, 8, 8), rgb(32, 32, 32));
  font-family: "Red Hat Display", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #f1f3f4;
}

.topbar {
  display: block;
  width: 100%;
  background: var(--nav);
  border-bottom: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(30px, 4vw, 58px);
  width: 100%;
  min-height: 112px;
  margin: 0 auto;
  padding: 26px clamp(28px, 4vw, 60px);
  background: #fff;
}

.brand-logo {
  display: block;
  width: clamp(150px, 10vw, 178px);
  max-height: 58px;
  object-fit: contain;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: #333;
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

h2 {
  font-size: 20px;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  min-height: 58px;
  padding: 11px clamp(28px, 4vw, 60px);
  background: var(--carbon-bg);
  background-color: rgb(32, 32, 32);
  background-position: 0 0, 0 0, 5px 5px, 0 0;
  background-size: 100% 100%, 10px 10px, 10px 10px, 10px 5px;
  border-color: #080808;
  border-style: solid;
  border-width: 1px 0;
}

.main-nav a {
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.app-shell {
  flex: 1;
}

.start-view {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 30px 50px;
}

.start-head {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 26px;
}

.start-head h2 {
  font-size: 30px;
}

.start-head p:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.category-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  width: 100%;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.category-card:hover {
  border-color: #9aa0a6;
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.08);
}

.category-media {
  display: grid;
  place-items: center;
  min-height: 160px;
  background: transparent;
}

.category-media img {
  display: block;
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  background: transparent;
}

.category-copy {
  display: grid;
  gap: 8px;
}

.category-copy strong {
  font-size: 18px;
}

.category-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.advanced-filter-toggle-wrap {
  margin: 24px auto 14px;
  text-align: center;
}

.advanced-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  opacity: 0.82;
}

.advanced-filter-toggle:hover,
.advanced-filter-toggle:focus-visible {
  color: var(--ink);
  opacity: 1;
  text-decoration: underline;
}

.advanced-filter-icon {
  display: inline-block;
  color: var(--brand-dark);
  transition: transform 0.2s ease;
}

.advanced-filter-toggle.is-open .advanced-filter-icon {
  transform: rotate(180deg);
}

.advanced-filter-panel {
  margin: 0 auto 28px;
}

.advanced-filter-panel[hidden] {
  display: none;
}

.filter-controls {
  display: grid;
  gap: 14px;
}

.advanced-filter-panel .filter-controls {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.sidebar .filter-controls {
  grid-template-columns: 1fr;
}

.finder-view {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  padding: 22px 32px 40px;
}

.finder-view[hidden] {
  display: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #333;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.back-link:hover {
  border-color: #9aa0a6;
  background: var(--soft);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
}

.panel h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c7c9cc;
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  padding: 10px;
  font: inherit;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--brand);
}

.inline-value {
  color: var(--ink);
  font-weight: 800;
}

.checkbox {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 400;
}

.checkbox input {
  width: auto;
}

.check-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.result-head h2 {
  margin-top: 4px;
  font-size: 24px;
}

.result-head select {
  max-width: 230px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 14px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c7c9cc;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  font-size: 13px;
  cursor: pointer;
}

.filter-chip span {
  color: var(--brand-dark);
  font-weight: 800;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.card h3 {
  font-size: 17px;
  line-height: 1.3;
}

.datasheet-text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.datasheet-text-link:hover,
.datasheet-text-link:focus-visible {
  color: var(--brand-dark);
  outline: none;
}

.specs,
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.price {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.price.deal-price {
  color: var(--brand-dark);
}

.badge,
.spec {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  padding: 5px 7px;
  font-size: 12px;
  line-height: 1.35;
}

.badge.deal {
  border-color: #f0b8bb;
  background: #fff0f0;
  color: var(--brand-dark);
  font-weight: 700;
}

.score {
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.actions a {
  display: inline-flex;
  justify-content: center;
  border-radius: 4px;
  padding: 9px 11px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
  width: min(100%, 980px);
  margin: 46px auto 0;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #081027;
  padding: 14px 22px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: currentColor;
}

.contact-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-action:hover {
  border-color: #9aa0a6;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.08);
}

.contact-action-primary {
  border-color: var(--line);
  background: #c7352b;
  color: #fff;
}

.contact-action-primary:hover {
  border-color: #9aa0a6;
  background: #a8231c;
}

.site-footer {
  color: #fff;
  background: var(--carbon-bg);
  background-color: rgb(32, 32, 32);
  background-position: 0 0, 0 0, 5px 5px, 0 0;
  background-size: 100% 100%, 10px 10px, 10px 10px, 10px 5px;
  border-top: 1px solid #080808;
}

.footer-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px clamp(22px, 4vw, 60px) 30px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(160px, 0.65fr);
  gap: 34px;
  align-items: start;
}

.footer-section {
  display: grid;
  gap: 12px;
}

.footer-section h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-contact address {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  line-height: 1.45;
}

.footer-hours {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  align-content: start;
}

.footer-links a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .main-nav {
    min-height: auto;
    gap: 8px;
    padding: 8px 16px;
  }

  .brand {
    min-height: auto;
    gap: 18px;
    padding: 18px 16px;
  }

  .brand-logo {
    width: 138px;
    max-height: 42px;
  }

  h1 {
    font-size: 24px;
    line-height: 1.15;
  }

  .finder-view {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .start-view {
    padding: 24px 16px 36px;
  }

  .result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 34px;
  }

  .advanced-filter-panel .filter-controls {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .main-nav a {
    font-size: 12px;
  }

  .footer-shell {
    padding: 30px 16px 26px;
  }

  .contact-action {
    min-height: 54px;
    padding: 13px 16px;
    font-size: 16px;
  }

  .advanced-filter-toggle-wrap {
    margin-top: 20px;
  }
}
