:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-alt: #e8eff8;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --ink: #0f1d2d;
  --ink-soft: #2f4158;
  --brand: #18528c;
  --brand-strong: #0f3f73;
  --tint: #d8e6f4;
  --tint-2: #c7dcf2;
  --border: #c9d6e6;
  --topbar-bg: rgba(247, 249, 253, 0.93);
  --bg-grad-start: #f7f9fd;
  --bg-grad-mid: #eaf1fb;
  --bg-grad-end: #f4f7fb;
  --shadow: 0 12px 28px rgba(10, 21, 35, 0.10);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-alt: #e8eff8;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --ink: #0f1d2d;
  --ink-soft: #2f4158;
  --brand: #18528c;
  --brand-strong: #0f3f73;
  --tint: #d8e6f4;
  --tint-2: #c7dcf2;
  --border: #c9d6e6;
  --topbar-bg: rgba(247, 249, 253, 0.93);
  --bg-grad-start: #f7f9fd;
  --bg-grad-mid: #eaf1fb;
  --bg-grad-end: #f4f7fb;
  --shadow: 0 12px 28px rgba(10, 21, 35, 0.10);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1620;
  --bg-alt: #17212e;
  --surface: #1b2635;
  --surface-soft: #15202d;
  --ink: #e4edf8;
  --ink-soft: #b6c5d8;
  --brand: #79a9de;
  --brand-strong: #a7cbf2;
  --tint: #243448;
  --tint-2: #2f4660;
  --border: #30445d;
  --topbar-bg: rgba(15, 22, 32, 0.92);
  --bg-grad-start: #0e151f;
  --bg-grad-mid: #132031;
  --bg-grad-end: #0f1620;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-grad-start), var(--bg-grad-mid) 30%, var(--bg-grad-end) 70%);
  line-height: 1.55;
}

a { color: var(--brand-strong); }

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(860px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.35rem 0;
  padding-left: 220px;
  padding-right: 122px;
  min-height: 75px;
  position: relative;
}

.topbar .wrap::before {
  display: none;
}

.brand {
  margin: 0;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.35rem;
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(0);
  z-index: 6;
}

.brand img {
  width: 120px;
  height: auto;
  display: block;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  min-height: 75px;
  margin-left: auto;
  position: relative;
  z-index: 5;
}

.lang-switch {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  z-index: 7;
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1;
  padding: 0.36rem 0.5rem;
  cursor: pointer;
}

.lang-switch__btn + .lang-switch__btn {
  border-left: 1px solid var(--border);
}

.lang-switch__btn.is-active {
  background: var(--tint-2);
  color: #ffffff;
}

.theme-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--brand-strong);
  font-size: 1.02rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle .bi {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  display: block;
}

.cookie-notice {
  position: fixed;
  z-index: 1200;
  inset: 0;
}

.cookie-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 35, 0.48);
  backdrop-filter: blur(6px);
}

.cookie-notice__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 2rem));
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem 1.1rem;
  display: grid;
  gap: 0.75rem;
}

.cookie-notice__close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-strong);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-notice__close:hover {
  background: var(--tint);
}

.cookie-notice__eyebrow {
  margin: 0;
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cookie-notice__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.cookie-notice__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.cookie-notice__text a {
  color: var(--brand-strong);
  font-weight: 700;
}

.cookie-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-notice__btn {
  flex: 1 1 220px;
  min-height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.cookie-notice__btn:hover {
  transform: translateY(-1px);
}

.cookie-notice__btn--accept {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.cookie-notice__btn--accept:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.cookie-notice__btn--decline:hover {
  background: var(--tint);
}

.nav-toggle {
  display: none;
}

nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
}

nav a:hover { background: var(--tint); }
nav a.active { background: var(--tint-2); color: #0b223a; }

.nav-item {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 80;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  display: block;
}

.nav-submenu a {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}

.nav-subtoggle {
  display: none;
}

.nav-cart-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-strong);
  text-decoration: none;
  vertical-align: middle;
  margin-left: 0.2rem;
  padding: 0.2rem;
}

.nav-cart-shortcut .bi {
  width: 1.22rem;
  height: 1.22rem;
  fill: currentColor;
  margin-bottom: 2px;
}

.nav-cart-shortcut:hover {
  background: transparent;
  color: var(--brand);
}

.nav-item.nav-item-products .nav-cart-shortcut:hover ~ .nav-submenu,
.nav-item.nav-item-products .nav-cart-shortcut:focus-visible ~ .nav-submenu {
  display: none;
}

.topbar-cart-shortcut {
  display: none;
}

.nav-main-cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-strong);
  text-decoration: none;
  padding: 0.2rem;
}

.nav-main-cart-link .bi {
  width: 1.22rem;
  height: 1.22rem;
  fill: currentColor;
}

.hero { padding: 3.2rem 0 2rem; }
.page-hero {
  padding-top: 15rem;
  padding-bottom: 3.8rem;
  min-height: 660px;
  position: relative;
  overflow: hidden;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero .hero-grid {
  padding-top: 1.4rem;
}

.hero-header-bg {
  position: absolute;
  inset: 0;
  background: url("images/header_mdk.png") center 90% / cover no-repeat;
  transform: scale(1.03);
  opacity: 0.38;
}

.hero-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(247, 249, 253, 0.82) 0%,
    rgba(247, 249, 253, 0.62) 46%,
    rgba(247, 249, 253, 0.86) 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.eyebrow {
  margin: 0;
  color: var(--brand-strong);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

h1, h2, h3 { line-height: 1.2; color: var(--brand-strong); }
h1 { margin: 0.4rem 0 1rem; font-size: clamp(1.8rem, 2.9vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 2vw, 1.9rem); margin-top: 0; }

.section { padding: 1.75rem 0; }
.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.actions.actions-full .btn {
  width: 100%;
  text-align: center;
}

.contact-head {
  display: block;
}

.contact-head-actions {
  margin-top: 0.8rem;
  justify-content: flex-start;
  width: auto;
}

.contact-head-actions .btn {
  width: auto;
  justify-content: center;
}

.contact-head-actions .contact-phone-btn {
  width: auto;
  min-width: 0;
}

.ankauf-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  width: 100%;
}

.ankauf-cta p {
  margin: 0;
}

.ankauf-cta .btn {
  justify-self: end;
}

.ankauf-contact-btn {
  display: table;
  margin-left: auto;
}

.ippc-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.ippc-benefits p {
  margin: 0;
}

.ippc-benefits__right {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.ippc-benefits__right .btn {
  justify-self: start;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  border-radius: 10px;
  padding: 0.68rem 0.95rem;
  background: var(--brand);
  color: #fff;
  border: 0;
  cursor: pointer;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-icon .bi {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex: 0 0 auto;
}

.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--border);
  text-decoration: none;
}

.to-top:hover {
  background: var(--tint-2);
}

.to-top .bi {
  width: 1.2rem;
  height: 1.2rem;
  fill: #0b223a;
}

.btn:hover { background: var(--brand-strong); }
.btn.btn-alt { background: var(--tint); color: #0b223a; }

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

.image-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.image-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.image-card:hover img {
  border-color: #7b94b5;
}

.image-card p {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  padding: 0.4rem 0.6rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.team-card__photo-wrap {
  width: min(300px, 80%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid rgba(24, 82, 140, 0.16);
  box-shadow: 0 18px 40px rgba(10, 21, 35, 0.12);
  background: #fff;
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  filter: grayscale(100%);
  transition: filter 220ms ease;
  box-shadow: 0 10px 20px rgba(10, 21, 35, 0.16);
}

.team-card:hover .team-card__photo {
  filter: grayscale(0%);
}

.team-card h3 {
  margin: 1rem 0 0.25rem;
  font-family: inherit;
  font-size: clamp(1.25rem, 1.9vw, 2rem);
  line-height: 1.1;
  color: var(--brand);
}

.team-card__role {
  margin: 0.15rem 0 0;
  font-family: inherit;
  font-size: clamp(1.1rem, 1.9vw, 1.9rem);
  color: #666;
}

.team-card--featured .team-card__photo-wrap {
  width: min(340px, 86%);
  border-color: rgba(24, 82, 140, 0.26);
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface);
  background-clip: padding-box;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

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

.accordion {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  background: #f7f9fd;
}

.item summary::-webkit-details-marker { display: none; }
.item summary small { font-weight: 500; color: var(--ink-soft); text-align: right; }

.meta-links {
  padding: 0.8rem 1rem 0.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

pre {
  margin: 0;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  border-top: 1px dashed var(--border);
  color: var(--ink);
  font-size: 0.92rem;
  background: #f7f9fd;
}

.legal-page {
  padding: 1rem;
  background: #fff;
  color: var(--ink);
}

.legal-page h1 {
  margin: 0 0 0.75rem;
}

.legal-page h2 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.1rem;
}

.legal-page h3 {
  margin: 0.95rem 0 0.35rem;
  font-size: 1.02rem;
}

.legal-page p {
  margin: 0 0 0.75rem;
}

.legal-page .legal-lead {
  color: var(--ink-soft);
}

.legal-page section + section {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border);
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 0.75rem 1.25rem;
  padding: 0;
}

.legal-page li {
  margin: 0.25rem 0;
}

.legal-page pre {
  border: 1px solid var(--border);
  border-radius: 12px;
}

.legal pre {
  max-height: 430px;
  overflow: auto;
}

.legal.full { margin-top: 1rem; }

label {
  display: block;
  margin: 0.45rem 0 0.25rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  font: inherit;
}

textarea { resize: vertical; }

.contact-optional-block {
  margin: 0.9rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  overflow: hidden;
}

.contact-optional-block summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 1rem;
  font-weight: 800;
  color: var(--ink);
}

.contact-optional-block summary::-webkit-details-marker {
  display: none;
}

.contact-optional-block summary::after {
  content: "+";
  float: right;
  font-size: 1.1rem;
  line-height: 1;
}

.contact-optional-block[open] summary::after {
  content: "\2212";
}

.contact-optional-block__content {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}

.cart-on-contact {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--border);
}

.cart-contact-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.7rem;
}

.footer {
  border-top: 1px solid var(--border);
  background: #f7f9fd;
}

.footer .wrap {
  padding: 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

.footer p { margin: 0; }

.footer-brandline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-signet {
  width: 34px;
  height: 34px;
  display: inline-block;
  flex: 0 0 auto;
}

.footer-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3 { grid-template-columns: 1fr 1fr; }

  .image-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 120;
  }

  .topbar .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    column-gap: 0.6rem;
    align-items: center;
    justify-content: stretch;
    width: 100%;
    padding-left: 0.55rem;
    padding-right: 0.85rem;
    min-height: 0;
  }

  .topbar .wrap::before {
    display: none;
  }

  .brand {
    padding: 0;
    position: static;
    transform: translateY(0);
    justify-self: start;
    height: 2.35rem;
    align-self: center;
  }

  .brand img {
    width: auto;
    height: 2.35rem;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 0.25rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    align-content: center;
    justify-items: center;
    cursor: pointer;
    padding: 0;
    justify-self: end;
    z-index: 8;
    grid-column: 5;
    grid-row: 1;
  }

  .lang-switch {
    position: static;
    transform: none;
    justify-self: end;
    margin-right: 0;
    z-index: 8;
    grid-column: 2;
    grid-row: 1;
  }

  .theme-toggle {
    position: static;
    transform: none;
    justify-self: end;
    z-index: 8;
    grid-column: 3;
    grid-row: 1;
    font-size: 0.98rem;
    padding: 0.2rem;
  }

  .topbar-cart-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-strong);
    text-decoration: none;
    padding: 0.2rem;
    justify-self: end;
    z-index: 8;
    grid-column: 4;
    grid-row: 1;
  }

  .topbar-cart-shortcut .bi {
    width: 1.22rem;
    height: 1.22rem;
    fill: currentColor;
  }

  .nav-toggle span {
    width: 1.1rem;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
    display: block;
  }

  nav.main-nav {
    width: 100%;
    display: none;
    grid-column: 1 / -1;
    margin-left: 0;
    margin-top: 0.9rem;
    padding: 0 0.35rem;
    gap: 0.35rem;
    justify-items: start;
  }

  .topbar.menu-open nav.main-nav {
    display: grid;
  }

  nav.main-nav > a,
  nav.main-nav .nav-item > a {
    width: 100%;
    background: var(--tint);
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    text-align: left;
  }

  .nav-item {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.35rem;
  }

  .nav-item > a { display: block; }

  .nav-item.nav-item-products {
    grid-template-columns: 1fr auto auto;
  }

  .nav-item.nav-item-products > .nav-cart-shortcut {
    margin-left: 0;
  }

  .nav-subtoggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  .nav-subtoggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }

  .nav-submenu {
    position: static;
    display: none;
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 0.25rem;
    margin-left: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-item.submenu-open .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    padding: 0.45rem 0.65rem;
    margin-left: 0.65rem;
  }

  .nav-main-cart-link {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 120;
  }

  .hero-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    display: grid;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }

  .topbar .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    column-gap: 0.6rem;
    align-items: center;
    justify-content: stretch;
    width: 100%;
    padding-left: 0.55rem;
    padding-right: 0.85rem;
    min-height: 0;
  }

  .topbar .wrap::before {
    display: none;
  }

  .brand {
    padding: 0;
    position: static;
    transform: translateY(0);
    justify-self: start;
    height: 2.35rem;
    align-self: center;
  }

  .brand img {
    width: auto;
    height: 2.35rem;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 0.25rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    align-content: center;
    justify-items: center;
    cursor: pointer;
    padding: 0;
    justify-self: end;
    z-index: 8;
    grid-column: 5;
    grid-row: 1;
  }

  .lang-switch {
    position: static;
    transform: none;
    justify-self: end;
    margin-right: 0;
    z-index: 8;
    grid-column: 2;
    grid-row: 1;
  }

  .theme-toggle {
    position: static;
    transform: none;
    justify-self: end;
    z-index: 8;
    grid-column: 3;
    grid-row: 1;
    font-size: 0.98rem;
    padding: 0.2rem;
  }

  .topbar-cart-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-strong);
    text-decoration: none;
    padding: 0.2rem;
    justify-self: end;
    z-index: 8;
    grid-column: 4;
    grid-row: 1;
  }

  .topbar-cart-shortcut .bi {
    width: 1.22rem;
    height: 1.22rem;
    fill: currentColor;
  }

  .nav-toggle span {
    width: 1.1rem;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
    display: block;
  }

  nav.main-nav {
    width: 100%;
    display: none;
    grid-column: 1 / -1;
    margin-left: 0;
    margin-top: 0.9rem;
    padding: 0 0.35rem 0.35rem;
    gap: 0.35rem;
    justify-items: start;
  }

  .topbar.menu-open nav.main-nav {
    display: grid;
  }

  nav.main-nav > a,
  nav.main-nav .nav-item > a {
    width: 100%;
    background: var(--tint);
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    text-align: left;
  }
  .contact-head {
    display: block;
  }
  .contact-head-actions {
    margin-top: 0.8rem;
    justify-content: flex-start;
  }
  .ankauf-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .ippc-benefits {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .ippc-benefits__right .btn {
    justify-self: start;
  }
  .nav-item {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.35rem;
  }

  .nav-item > a { display: block; }

  .nav-item.nav-item-products {
    grid-template-columns: 1fr auto auto;
  }

  .nav-item.nav-item-products > .nav-cart-shortcut {
    margin-left: 0;
  }

  .nav-subtoggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  .nav-subtoggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }

  .nav-submenu {
    position: static;
    display: none;
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 0.25rem;
    margin-left: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-item.submenu-open .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    padding: 0.45rem 0.65rem;
    margin-left: 0.65rem;
  }

  .item summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .item summary small { text-align: left; }

  .image-grid { grid-template-columns: 1fr; }

  .side-contact-nav {
    right: 0.7rem;
    gap: 0.4rem;
  }

  .side-contact-nav__btn {
    width: 2.3rem;
    height: 2.3rem;
  }

  .page-hero {
    min-height: 620px;
    padding-top: 6rem;
    padding-bottom: 3.2rem;
  }

  .inline-image-left {
    float: none;
    width: 100%;
    margin: 0.9rem 0.5 0.9rem;
  }
}

body.modal-open {
  overflow: hidden;
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 35, 0.58);
}

.legal-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 92vw);
  max-height: min(760px, calc(100vh - 11rem));
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(10, 21, 35, 0.35);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.legal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--tint);
}

.legal-modal__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.legal-modal__close {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.legal-modal__body {
  min-height: 0;
  overflow: auto;
}

.legal-modal__iframe {
  width: 100%;
  height: 420px;
  border: 0;   

}

.map-embed {
  width: 100%;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow); 
  margin-top: 0.75rem;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;  
}

.map-embed.is-consent-blocked iframe {
  display: none;
}

.consent-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: 1.4rem;
  background:
    radial-gradient(circle at top left, rgba(24, 82, 140, 0.12), transparent 42%),
    linear-gradient(180deg, var(--surface), var(--surface-soft));
  text-align: left;
}

.consent-placeholder__eyebrow {
  margin: 0;
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.consent-placeholder__text {
  margin: 0;
  color: var(--ink-soft);
  max-width: 32rem;
}

.consent-placeholder__btn {
  justify-self: start;
  min-height: 2.7rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brand-strong);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.map-embed--contact {
  /* Kontaktseite: Karte etwas schmaler, aber höher (besser navigierbar). */
  max-width: 520px;
  height: clamp(420px, 52vh, 560px);
}

.side-contact-nav {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 0.5rem;
  z-index: 90;
}

.side-contact-nav__btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 252, 0.98));
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 12px 24px rgba(10, 21, 35, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-strong);
  text-decoration: none;
}

.side-contact-nav__btn:hover {
  background: var(--tint);
}

.side-contact-nav__btn .bi {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

/* Shop */
.lead {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.inline-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0.7rem 0 0.9rem;
  border: 0;
  border-radius: 10px;
}

.inline-image-left {
  float: left;
  width: min(200px, 36%);
  margin: 0.2rem 1rem 0.6rem 0;
}

.sustainability ul {
  clear: both;
}

.category-tabs {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  color: #0b223a;
}

.cat-btn:hover {
  background: var(--tint);
}

.cat-btn.active {
  background: var(--tint-2);
  border-color: #7b94b5;
}

.cat-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #f2f6ff;
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 900;
  color: var(--ink-soft);
}

.shop-toolbar {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: auto minmax(420px, 1.6fr) auto auto auto;
  gap: 0.75rem;
  align-items: end;
}

.shop-search,
.shop-sort {
  display: grid;
  gap: 0.25rem;
}

.shop-search input {
  width: 100%;
}

.shop-sort select {
  min-width: 220px;
}

.shop-search span,
.shop-sort span {
  font-weight: 800;
  font-size: 0.9rem;
}

.shop-count {
  text-align: right;
  font-weight: 800;
  color: var(--ink-soft);
  padding-bottom: 0.2rem;
}

.cart-button {
  white-space: nowrap;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.4rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: #f2f6ff;
  border: 1px solid var(--border);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.shop-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.shop-filters {
  position: sticky;
  top: 88px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.shop-filters__header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.shop-filters__close {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.filter-group + .filter-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.filter-group h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.filter-list {
  display: grid;
  gap: 0.55rem;
}

.check {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.check input {
  flex: 0 0 18px;
  inline-size: 18px;
  block-size: 18px;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  display: inline-block;
  align-self: center;
  justify-self: start;
  vertical-align: middle;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #8aa4c2;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
  position: relative;
}

.check input:checked {
  border-color: #18528c;
  background: #ffffff;
}

.check input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 0;
  background: var(--brand);
}

.muted {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.ankauf-info-note {
  margin: 0.8rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.ankauf-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: #e6f0ff;
  color: #18528c;
  border: 1px solid #7b94b5;
  font-weight: 900;
  line-height: 1;
  font-size: 0.8rem;
}

.filter-actions {
  margin-top: 1.2rem;
}

.shop-filters-toggle {
  display: none;
}

.shop-results {
  min-width: 0;
}

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

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.product-card__media {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.product-card__media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.product-card__body {
  padding: 0.9rem 0.95rem 1rem;
  display: grid;
  gap: 0.55rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--tint);
  border: 1px solid var(--border);
  color: #0b223a;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-weight: 800;
  font-size: 0.78rem;
}

.chip-alt {
  background: #f2f6ff;
}

.chip-ok {
  background: #e6f0ff;
  border-color: #7b94b5;
}

.product-card__title {
  margin: 0;
  font-size: 1rem;
}

.product-card__meta {
  margin: -0.15rem 0 0;
  color: #6f8198;
  font-size: 0.92rem;
  font-weight: 700;
}

.product-card__specs {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.product-card__option-menu {
  width: min(250px, 100%);
  margin: 0.45rem 0 0 auto;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(10, 21, 35, 0.14);
}

.product-card__option-title {
  margin: 0 0 0.45rem;
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-card__option-list {
  display: grid;
  gap: 0.25rem;
}

.product-card__option-btn {
  width: 100%;
  justify-content: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}

.product-card__option-btn:hover,
.product-card__option-btn:focus-visible {
  background: var(--tint);
  border-color: var(--border);
  color: var(--brand);
  transform: none;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  background: #fff;
  box-shadow: var(--shadow);
}

/* Cart drawer */
.cart-drawer[hidden] { display: none; }
.cart-drawer { position: fixed; inset: 0; z-index: 1150; }
.cart-drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 21, 35, 0.58); }
.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(520px, 92vw);
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(10, 21, 35, 0.35);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.cart-drawer__header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--tint);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.cart-drawer__kicker {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cart-drawer__header h2 { margin: 0.1rem 0 0; }
.cart-drawer__close {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}
.cart-drawer__body {
  padding: 1rem;
  overflow: auto;
}
.cart-items { display: grid; gap: 0.75rem; }
.cart-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.8rem;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: start;
  gap: 0.75rem;
}
.cart-item__media {
  width: 58px;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item__media[data-cart-open],
.cart-item__main[data-cart-open] {
  cursor: pointer;
}
.cart-item__title { margin: 0; font-weight: 900; }
.cart-item__meta { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.cart-item__side {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cart-item__editor {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
}
.cart-item__editor .product-modal__config {
  margin-bottom: 0;
}
.cart-item__editor-actions {
  margin-top: 0.7rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}
.cart-item__editor-save {
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.8rem;
}
.cart-item__editor-save .bi {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.cart-item__edit {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-strong);
  cursor: pointer;
}
.cart-item__edit .bi {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
  display: block;
}
.cart-item__qty { font-weight: 900; color: var(--ink-soft); }
.cart-item__qty-control {
  display: inline-grid;
  grid-template-columns: 30px 58px 30px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.cart-qty-btn {
  border: 0;
  border-right: 1px solid var(--border);
  background: #f7f9fd;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  height: 30px;
  cursor: pointer;
}
.cart-qty-btn:last-child {
  border-right: 0;
  border-left: 1px solid var(--border);
}
.cart-qty-input {
  width: 58px;
  border: 0;
  text-align: center;
  padding: 0.25rem;
  font: inherit;
  font-weight: 700;
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-item__remove {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font: inherit;
  cursor: pointer;
}

.cart-item__remove .bi {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
  display: block;
}
.cart-drawer__footer {
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--border);
  background: #f7f9fd;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.cart-drawer__footer .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cart-empty p { margin: 0; color: var(--ink-soft); }

/* Product modal */
.product-modal[hidden] { display: none; }
.product-modal { position: fixed; inset: 0; z-index: 1200; }
.product-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 21, 35, 0.58); }
.product-modal__panel {
  position: absolute;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(10, 21, 35, 0.35);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.product-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--tint);
}
.product-modal__kicker {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.product-modal__close {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}
.product-modal__body { min-height: 0; overflow: auto; }
.product-modal__grid {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  align-items: start;
}
.product-modal__gallery {
  display: grid;
  gap: 0.65rem;
}

.product-modal__main-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

.product-modal__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 0.5rem;
}

.product-modal__thumb {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.product-modal__thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(24, 82, 140, 0.14);
}

.product-modal__thumb img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  display: block;
}
.product-modal__related {
  margin-top: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f7f9fd;
  padding: 0.7rem;
}
.product-modal__related-title {
  margin: 0 0 0.55rem;
  font-weight: 900;
  color: var(--brand-strong);
}
.product-modal__related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.product-modal__related-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 0.4rem;
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.product-modal__related-card img {
  width: 100%;
  height: 92px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
}
.product-modal__related-name {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}
.product-modal__related-size {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0b223a;
  line-height: 1.2;
}
.product-modal__related-condition {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.2;
}
.product-modal__price {
  margin: 0.6rem 0 0.6rem;
  font-weight: 900;
  font-size: 1.2rem;
}
.product-modal__price-block {
  margin: 0.35rem 0 0.75rem;
}
.product-modal__price-block h3 {
  margin: 0 0 0.45rem;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.price-table th,
.price-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.price-table tbody th {
  width: 52%;
  background: #f7f9fd;
}
.price-table thead th {
  background: #eaf1fb;
  color: var(--brand-strong);
  font-weight: 900;
}
.price-table thead th:nth-child(1),
.price-table tbody th {
  width: 36%;
}
.price-table thead th:nth-child(2),
.price-table thead th:nth-child(3),
.price-table tbody td {
  width: 32%;
}
.price-table tbody td:nth-child(3) {
  font-weight: 900;
}
.price-table__section th {
  width: auto;
  background: #eaf1fb;
  color: var(--brand-strong);
  font-weight: 900;
}
.product-modal__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.6rem 0 1rem;
}
.product-modal__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.25rem 0 0;
}
.product-modal__switch-btn {
  border: 1px solid var(--border);
  border-bottom: 0;
  background: #edf3fb;
  color: var(--ink-soft);
  border-radius: 10px 10px 0 0;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.product-modal__switch-btn.is-active {
  background: #fff;
  color: #0b223a;
  border-color: var(--border);
}
.product-modal__section {
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 0 12px 12px 12px;
  background: #fff;
  padding: 0.85rem 0.85rem 0.9rem;
}
.product-modal__section h3:first-child {
  margin-top: 0;
}
.product-modal__config {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f7f9fd;
  padding: 1.35rem 1.45rem 1.5rem;
  margin: 1rem;
}
.product-modal__config h3 {
  margin: 0 0 1rem;
}
.config-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  margin: 0.8rem 0 0;
}
.config-row--measure-start {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}
.config-row__label {
  font-weight: 700;
  line-height: 1.2;
}
.config-row__control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.config-row__unit {
  min-width: 2rem;
  font-weight: 800;
  color: var(--ink-soft);
  text-align: left;
}
.config-qty-control {
  grid-template-columns: 30px 72px 30px;
}
.config-options {
  margin-top: 1rem;
}
.config-options__title {
  margin: 0 0 0.65rem;
  font-weight: 800;
}
.config-options .check + .check {
  margin-top: 0.9rem;
}
.product-modal__config-actions {
  margin-top: 1.35rem;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.spec-table th,
.spec-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  width: 44%;
  background: #f2f6ff;
}
.product-modal__pre {
  white-space: pre-wrap;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
  background: #f7f9fd;
}
@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .footer .wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.6rem;
  }

  .footer .wrap > p:first-child {
    grid-column: 1 / -1;
  }

  .footer .wrap > p:nth-child(2) {
    grid-column: 1;
    margin: 0;
  }

  .footer .wrap > p:nth-child(3) {
    grid-column: 2;
    margin: 0;
    justify-self: end;
  }

  .side-contact-nav {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 0.55rem;
    margin-top: 0.8rem;
    z-index: auto;
  }

  .footer .side-contact-nav {
    margin-top: 0.8rem;
  }

  .legal-modal__panel {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(96vw, 900px);
    max-height: calc(100vh - 8rem);
    border-radius: 10px;
  }

  .map-embed {
    height: 320px;
    padding: 0.65rem;
  }

  .shop-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .shop-sort select {
    min-width: 0;
    width: 100%;
  }

  .category-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .cat-btn {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    text-align: left;
  }

  .shop-count {
    text-align: left;
    padding-bottom: 0;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-filters-toggle {
    display: inline-block;
    width: fit-content;
  }

  .shop-filters {
    position: fixed;
    inset: 0;
    z-index: 1050;
    border-radius: 0;
    padding: 1rem;
    transform: translateX(-100%);
    transition: transform 160ms ease;
  }

  .shop-filters__header {
    display: flex;
  }

  body.shop-filters-open .shop-filters {
    transform: translateX(0);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-modal__panel {
    top: 1.2vh;
    left: 50%;
    transform: translateX(-50%);
    width: 96vw;
    max-height: 94vh;
    border-radius: 10px;
  }

  .product-modal__grid {
    grid-template-columns: 1fr;
  }

  .product-modal__content {
    min-width: 0;
  }

  .product-modal__main-image {
    height: 220px;
  }

  .product-modal__related {
    width: 100%;
  }

  .product-modal__related-card img {
    height: 84px;
  }

  .spec-table th,
  .spec-table td,
  .price-table th,
  .price-table td {
    word-break: break-word;
  }
  .product-modal__related-list {
    grid-template-columns: 1fr;
  }

  .cart-drawer__panel {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 48px 1fr;
    gap: 0.6rem;
  }

  .cart-item__media {
    width: 48px;
    height: 48px;
  }

  .cart-item__side {
    grid-column: 2;
    justify-content: flex-start;
    width: 100%;
  }
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .card,
html[data-theme="dark"] .item,
html[data-theme="dark"] .shop-filters,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .cart-drawer__panel,
html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .product-modal__panel,
html[data-theme="dark"] .product-modal__related,
html[data-theme="dark"] .product-modal__related-card,
html[data-theme="dark"] .product-modal__section,
html[data-theme="dark"] .product-modal__pre,
html[data-theme="dark"] .legal-page,
html[data-theme="dark"] .map-embed,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .nav-subtoggle,
html[data-theme="dark"] .shop-filters__close,
html[data-theme="dark"] .cart-drawer__close,
html[data-theme="dark"] .product-modal__close,
html[data-theme="dark"] .legal-modal__close {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

html[data-theme="dark"] .section.alt,
html[data-theme="dark"] .price-table thead th,
html[data-theme="dark"] .price-table__section th,
html[data-theme="dark"] .spec-table th,
html[data-theme="dark"] .cart-drawer__footer,
html[data-theme="dark"] .legal-modal__header,
html[data-theme="dark"] .product-modal__header,
html[data-theme="dark"] .item summary {
  background: var(--surface-soft);
}

html[data-theme="dark"] .btn {
  background: #6ea6df;
  color: #081628;
}

html[data-theme="dark"] .btn:hover {
  background: #84b7eb;
}

html[data-theme="dark"] .btn.btn-alt {
  background: #2a3f58;
  color: #e4edf8;
  border: 1px solid #3b5778;
}

html[data-theme="dark"] .btn.btn-alt:hover {
  background: #345577;
  color: #f0f6ff;
}

html[data-theme="dark"] .cart-button {
  background: #2f4c6d;
  color: #e9f2ff;
  border: 1px solid #436487;
}

html[data-theme="dark"] .cart-button:hover {
  background: #3b5f86;
}

html[data-theme="dark"] .cart-button .cart-badge {
  background: #d9e9fb;
  color: #0f2943;
  border-color: #89a9cc;
}

html[data-theme="dark"] .cart-item__qty-control {
  background: #2a3f58;
  border-color: #3b5778;
}

html[data-theme="dark"] .cart-qty-btn {
  background: #345577;
  color: #f0f6ff;
  border-color: #3b5778;
}

html[data-theme="dark"] .cart-qty-btn:hover {
  background: #3b5f86;
}

html[data-theme="dark"] .cart-qty-input {
  background: #1b2d43;
  color: #f0f6ff;
}

html[data-theme="dark"] .cart-item__remove {
  background: #2a3f58;
  color: #e4edf8;
  border: 1px solid #3b5778;
}

html[data-theme="dark"] .cart-item__remove:hover {
  background: #345577;
  color: #f0f6ff;
}

html[data-theme="dark"] .cart-item__media {
  background: #1b2d43;
  border-color: #3b5778;
}

html[data-theme="dark"] .side-contact-nav__btn {
  background: #2a3f58;
  color: #e4edf8;
  border-color: #3b5778;
}

html[data-theme="dark"] .side-contact-nav__btn:hover {
  background: #345577;
  color: #f0f6ff;
}

html[data-theme="dark"] .chip,
html[data-theme="dark"] .chip-alt,
html[data-theme="dark"] .chip-ok {
  background: #243c57;
  color: #e9f2ff;
  border-color: #426383;
}

html[data-theme="dark"] .chip-alt {
  background: #eef5ff;
  color: #0d243d;
  border-color: #9dbde0;
}

html[data-theme="dark"] .chip-ok {
  background: #214d3d;
  color: #dff8ed;
  border-color: #4c8a72;
}

html[data-theme="dark"] .product-card__meta,
html[data-theme="dark"] .product-modal__related-size {
  color: #b6c5d8;
}

html[data-theme="dark"] pre,
html[data-theme="dark"] .cart-item__edit,
html[data-theme="dark"] .check input,
html[data-theme="dark"] .ankauf-info-icon,
html[data-theme="dark"] .consent-placeholder__btn {
  background: #162435;
  color: #e4edf8;
  border-color: #3b5778;
}

html[data-theme="dark"] .check input:checked {
  background: #253f5d;
  border-color: #6ea6df;
}

html[data-theme="dark"] .check input:checked::after {
  background: #84b7eb;
}

html[data-theme="dark"] .cart-item__edit:hover,
html[data-theme="dark"] .consent-placeholder__btn:hover {
  background: #223650;
  color: #f0f6ff;
}

html[data-theme="dark"] .product-card__option-menu,
html[data-theme="dark"] .product-modal__main-image,
html[data-theme="dark"] .product-modal__thumb,
html[data-theme="dark"] .product-modal__related-card img,
html[data-theme="dark"] .price-table,
html[data-theme="dark"] .spec-table {
  background: #162435;
  border-color: #3b5778;
}

html[data-theme="dark"] .product-modal__switch-btn {
  background: #223650;
  color: #b6c5d8;
  border-color: #3b5778;
}

html[data-theme="dark"] .product-modal__switch-btn.is-active {
  background: #162435;
  color: #f0f6ff;
  border-color: #5d82aa;
}

html[data-theme="dark"] .price-table th,
html[data-theme="dark"] .price-table td,
html[data-theme="dark"] .spec-table th,
html[data-theme="dark"] .spec-table td {
  color: #e4edf8;
  border-color: #3b5778;
}

html[data-theme="dark"] .price-table tbody th,
html[data-theme="dark"] .price-table thead th,
html[data-theme="dark"] .price-table__section th,
html[data-theme="dark"] .spec-table th {
  background: #142234;
  color: #f0f6ff;
}

html[data-theme="dark"] .price-table tbody td,
html[data-theme="dark"] .spec-table td {
  background: #1b2d43;
  color: #e9f2ff;
}

html[data-theme="dark"] .product-modal__pre,
html[data-theme="dark"] .product-modal__config {
  background: #142234;
  color: #e4edf8;
  border-color: #3b5778;
}

html[data-theme="dark"] .team-card__photo-wrap {
  border-color: #5d9fe3;
}

html[data-theme="dark"] .team-card--featured .team-card__photo-wrap {
  border-color: #7bb8f0;
}

html[data-theme="dark"] .team-card__role {
  color: #ffffff;
}

html[data-theme="dark"] .cat-btn {
  background: #2a3f58;
  color: #e4edf8;
  border: 1px solid #3b5778;
}

html[data-theme="dark"] .cat-btn:hover {
  background: #345577;
  color: #f0f6ff;
}

html[data-theme="dark"] .cat-btn.active {
  background: #3b5f86;
  color: #f0f6ff;
  border-color: #5d82aa;
}

html[data-theme="dark"] .cat-btn__count {
  background: #d9e9fb;
  color: #0f2943;
  border-color: #89a9cc;
}

html[data-theme="dark"] .hero-header-bg {
  opacity: 0.34;
  filter: brightness(0.78) saturate(0.95);
}

html[data-theme="dark"] .hero-header-bg::after {
  background: linear-gradient(
    90deg,
    rgba(11, 18, 28, 0.72) 0%,
    rgba(11, 18, 28, 0.54) 46%,
    rgba(11, 18, 28, 0.78) 100%
  );
}

html[data-theme="dark"] .map-embed iframe {
  filter: brightness(0.78) contrast(1.08) saturate(0.9);
}

html[data-theme="dark"] .cookie-notice__close {
  color: #ffffff;
}

html[data-theme="dark"] .cookie-notice__close:hover {
  color: #ffffff;
}

html[data-theme="dark"] .to-top .bi {
  fill: #ffffff;
}

html[data-theme="dark"] nav a.active {
  color: #ffffff;
}

@media (max-width: 760px) {
  html[data-theme="dark"] .nav-toggle,
  html[data-theme="dark"] .nav-subtoggle,
  html[data-theme="dark"] .shop-filters__close,
  html[data-theme="dark"] .cart-drawer__close,
  html[data-theme="dark"] .product-modal__close,
  html[data-theme="dark"] .legal-modal__close,
  html[data-theme="dark"] .cart-item__remove,
  html[data-theme="dark"] .cookie-notice__close {
    background: #2a3f58;
    color: #e4edf8;
    border-color: #3b5778;
  }

  html[data-theme="dark"] .nav-toggle span {
    background: #e4edf8;
  }

  html[data-theme="dark"] nav.main-nav > a,
  html[data-theme="dark"] nav.main-nav .nav-item > a {
    background: #2a3f58;
    color: #e4edf8;
  }

  html[data-theme="dark"] .cat-btn {
    background: #2a3f58;
    color: #e4edf8;
    border-color: #3b5778;
  }

  html[data-theme="dark"] .cat-btn.active {
    background: #3b5f86;
    color: #f0f6ff;
    border-color: #5d82aa;
  }

  html[data-theme="dark"] .cat-btn__count {
    background: #d9e9fb;
    color: #0f2943;
    border-color: #89a9cc;
  }

  html[data-theme="dark"] .cart-item__qty-control {
    background: #2a3f58;
    border-color: #3b5778;
  }

  html[data-theme="dark"] .cart-qty-btn {
    background: #345577;
    color: #f0f6ff;
    border-color: #3b5778;
  }

  html[data-theme="dark"] .cart-qty-input {
    background: #1b2d43;
    color: #f0f6ff;
  }
}

html[data-theme="light"] .product-card .chip,
html[data-theme="light"] .product-card .chip-alt,
html[data-theme="light"] .product-card .chip-ok {
  color: #0b223a;
}

html[data-theme="light"] .btn {
  background: var(--brand);
  color: #ffffff;
}

html[data-theme="light"] .btn:hover {
  background: var(--brand-strong);
}

html[data-theme="light"] .btn.btn-alt {
  background: var(--tint);
  color: #0b223a;
  border: 0;
}

html[data-theme="light"] .btn.btn-alt:hover {
  background: var(--tint-2);
  color: #0b223a;
}

html[data-theme="light"] .cart-button {
  background: #fff;
  color: #0b223a;
  border: 1px solid var(--border);
}

html[data-theme="light"] .cart-button:hover {
  background: var(--tint);
}

html[data-theme="light"] .cart-button .cart-badge {
  background: #f2f6ff;
  color: var(--ink-soft);
  border-color: var(--border);
}

html[data-theme="light"] .nav-toggle,
html[data-theme="light"] .nav-subtoggle,
html[data-theme="light"] .shop-filters__close,
html[data-theme="light"] .cart-drawer__close,
html[data-theme="light"] .product-modal__close,
html[data-theme="light"] .legal-modal__close {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}

@media (max-width: 760px) {
  html[data-theme="light"] nav.main-nav > a,
  html[data-theme="light"] nav.main-nav .nav-item > a {
    background: var(--tint);
    color: #0b223a;
  }
}

html[data-theme="light"] .cart-item__qty-control {
  background: #fff;
  border-color: var(--border);
}

html[data-theme="light"] .cart-qty-btn {
  background: #f7f9fd;
  color: var(--ink);
  border-color: var(--border);
}

html[data-theme="light"] .cart-qty-btn:hover {
  background: var(--tint);
}

html[data-theme="light"] .cart-qty-input {
  background: #fff;
  color: var(--ink);
}

html[data-theme="light"] .cart-item__remove {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

html[data-theme="light"] .cart-item__remove:hover {
  background: var(--tint);
}

html[data-theme="light"] .cart-item__media {
  background: #fff;
  border-color: var(--border);
}

html[data-theme="light"] .side-contact-nav__btn {
  background: #fff;
  color: var(--brand-strong);
  border-color: var(--border);
}

html[data-theme="light"] .side-contact-nav__btn:hover {
  background: var(--tint);
  color: var(--brand);
}

html[data-theme="light"] .cat-btn {
  background: #fff;
  color: #0b223a;
  border: 1px solid var(--border);
}

@media (max-width: 760px) {
  .topbar {
    position: sticky !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 140;
  }
}

html[data-theme="light"] .cat-btn:hover {
  background: var(--tint);
}

html[data-theme="light"] .cat-btn.active {
  background: var(--tint-2);
  color: #0b223a;
  border-color: #7b94b5;
}

html[data-theme="light"] .cat-btn__count {
  background: #f2f6ff;
  color: var(--ink-soft);
  border-color: var(--border);
}

html[data-theme="light"] .hero-header-bg {
  opacity: 0.38;
  filter: none;
}

html[data-theme="light"] .hero-header-bg::after {
  background: linear-gradient(
    90deg,
    rgba(247, 249, 253, 0.82) 0%,
    rgba(247, 249, 253, 0.62) 46%,
    rgba(247, 249, 253, 0.86) 100%
  );
}

html[data-theme="light"] .map-embed iframe {
  filter: none;
}
