/* Design D: Ruhiger, kompakter Markenauftritt in Original-Calovation-Farben (Weiß, Schiefer #0d1c24, Türkis #138f84).
   Alle Farb- und Abstandsrohwerte stammen aus tokens.css. */

html {
  scroll-padding-top: 76px;
}

body.design-d {
  background: var(--palette-gray-0);
  color: var(--palette-ink-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.design-d .site-main {
  flex: 1;
}

.design-d .wrap {
  width: min(1140px, 100% - 40px);
}

.design-d .wrap--narrow {
  width: min(760px, 100% - 40px);
}

/* Primäre und sekundäre Aktionen */
.design-d .btn {
  border-radius: 10px;
  font-weight: 700;
  min-height: 44px;
}

.design-d .btn--primary,
.design-d .d-buy {
  background: var(--palette-teal-600);
  border-color: var(--palette-teal-600);
  color: var(--palette-gray-0);
}

.design-d .btn--primary:hover,
.design-d .d-buy:hover {
  background: var(--palette-teal-700);
  border-color: var(--palette-teal-700);
  transform: none;
}

.design-d .btn--ghost,
.design-d .btn--outline {
  background: var(--palette-gray-0);
  border: 1px solid var(--palette-gray-300);
  color: var(--palette-ink-900);
}

.design-d .btn--ghost:hover,
.design-d .btn--outline:hover {
  border-color: var(--palette-ink-900);
  background: var(--palette-gray-25);
}

.design-d .btn--small {
  min-height: 36px;
  padding: 6px 13px;
  font-size: 0.86rem;
}

.design-d .link {
  color: var(--palette-teal-700);
}

/* 1. Einzeiliger, ruhiger weißer Header (ohne dunkle Zusatzkante darüber) */
.d-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--palette-gray-0);
  border-bottom: 1px solid var(--palette-gray-100);
}

.d-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.d-head--slim .d-head__row {
  min-height: 60px;
}

.d-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.d-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.d-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.d-brand__claim {
  padding-left: 14px;
  border-left: 1px solid var(--palette-gray-200);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--palette-gray-500);
  white-space: nowrap;
}

.d-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.d-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--palette-gray-700);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.d-nav a:hover,
.d-nav a[aria-current] {
  color: var(--palette-ink-900);
  border-color: var(--palette-teal-600);
}

.d-nav__mobile-phone {
  display: none;
}

.d-head__actions,
.d-head__end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.d-head__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--palette-gray-200);
  background: var(--palette-gray-0);
  color: var(--palette-ink-900);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.d-head__phone svg {
  color: var(--palette-teal-600);
  flex: none;
}

.d-head__phone:hover {
  border-color: var(--palette-teal-600);
}

.d-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 9px 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--palette-gray-200);
  background: var(--palette-gray-0);
  color: var(--palette-ink-900);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.d-cart:hover {
  border-color: var(--palette-teal-600);
}

.d-cart__count {
  background: var(--palette-teal-600);
  color: var(--palette-gray-0);
  border-radius: var(--radius-pill);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 700;
}

.d-head .nav-toggle {
  display: none;
  margin-left: 0;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--palette-gray-300);
  background: var(--palette-gray-0);
  font-size: 0.86rem;
}

/* Gemeinsame Abstände & Pfadnavigation */
.d-section {
  padding: 28px 0 44px;
}

.d-section--pdp {
  padding: 14px 0 36px;
}

.design-d .crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--palette-gray-500);
}

.design-d .crumbs__current {
  color: var(--palette-ink-900);
  font-weight: 600;
}

.d-kicker {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--palette-teal-700);
}

/* 2. Produktdetailseite (PDP): Kompakt auf einem Bildschirm */
.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 40px;
  align-items: start;
}

.pdp-gallery {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.pdp-stage {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 14px;
  border: 1px solid var(--palette-gray-200);
  background: var(--palette-gray-25);
  overflow: hidden;
}

.pdp-stage__zoom {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--palette-gray-200);
  background: rgba(255, 255, 255, 0.94);
  color: var(--palette-ink-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow-s);
}

.pdp-stage__zoom span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.pdp-stage__zoom:hover {
  border-color: var(--palette-teal-600);
  color: var(--palette-teal-700);
  background: var(--palette-gray-0);
}

.pdp-stage__count {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--palette-gray-200);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--palette-gray-700);
  pointer-events: none;
}

.pdp-stage__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--palette-gray-200);
  background: rgba(255, 255, 255, 0.94);
  color: var(--palette-ink-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.pdp-stage__nav:hover {
  border-color: var(--palette-ink-900);
  background: var(--palette-gray-0);
}

.pdp-stage__nav--prev { left: 10px; }
.pdp-stage__nav--next { right: 10px; }

.pdp-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pdp-slide[hidden] {
  display: none !important;
}

.pdp-slide[data-zoomable] {
  cursor: zoom-in;
}

.pdp-slide--photo {
  background: var(--palette-gray-25);
}

.pdp-slide--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Interaktiver Vorher / Nachher Schieberegler (Überblendeffekt) */
.pdp-compare {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--palette-gray-25);
  overflow: hidden;
  user-select: none;
}

.pdp-compare__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pdp-compare__range {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  touch-action: pan-y;
}

.pdp-compare__tag {
  position: absolute;
  bottom: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.pdp-compare__tag.is-dim {
  opacity: 0;
}

.pdp-compare__tag--before {
  left: 12px;
  background: rgba(13, 28, 36, 0.86);
  color: var(--palette-gray-0);
}

.pdp-compare__tag--after {
  right: 12px;
  background: var(--palette-teal-600);
  color: var(--palette-gray-0);
}

/* 1-teilig / 2-teilig Detail & Maßskizze Karten in der Galerie */
.pdp-slide--card {
  background: var(--palette-gray-0);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 22px 13px;
}

.pdp-split-fig,
.pdp-sketch-fig {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-split-fig img {
  max-height: 100%;
  max-width: 86%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pdp-sketch-fig svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.pdp-slide__caption {
  margin: 0;
  text-align: center;
  font-size: 0.81rem;
  color: var(--palette-gray-700);
  padding-top: 9px;
  border-top: 1px solid var(--palette-gray-100);
}

.pdp-slide__caption strong {
  color: var(--palette-ink-900);
}

/* Miniatur-Leiste unter der Galerie */
.pdp-thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 8px;
}

.pdp-thumbs__item {
  min-width: 0;
}

.pdp-thumbs__item[hidden],
.pdp-thumbs__item:has(> [hidden]) {
  display: none;
}

.pdp-thumb {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--palette-gray-500);
}

.pdp-thumb[hidden] {
  display: none;
}

.pdp-thumb__box {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 9px;
  border: 1.5px solid var(--palette-gray-200);
  background: var(--palette-gray-25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-thumb__box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-thumb__box--contain {
  background: var(--palette-gray-0);
}

.pdp-thumb__box--contain img {
  object-fit: contain;
  background: var(--palette-gray-0);
  padding: 3px;
}

.pdp-thumb__wipe {
  display: block;
  width: 100%;
  height: 100%;
}

.pdp-thumb__label {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.pdp-thumb.is-on .pdp-thumb__box {
  border: 2px solid var(--palette-teal-600);
}

.pdp-thumb.is-on .pdp-thumb__label {
  color: var(--palette-ink-900);
  font-weight: 700;
}

/* Rechte Spalte: Kompakter Kaufbereich */
.pdp-buy {
  min-width: 0;
}

.pdp-head h1 {
  font-size: 1.85rem;
  line-height: 1.1;
  margin: 0 0 3px;
}

.pdp-sub {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--palette-gray-500);
}

.pdp-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--palette-gray-100);
}

.pdp-price {
  font-family: var(--font-head);
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1;
  color: var(--palette-ink-900);
}

.pdp-tax {
  font-size: 0.82rem;
  color: var(--palette-gray-500);
}

.pdp-tax a {
  color: inherit;
  text-decoration: underline;
}

/* Auswahl-Pills: Weißer Grund, nur klarer Türkis-Rahmen bei Auswahl */
.pdp-options {
  display: grid;
  gap: 11px;
}

.pdp-opt {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.pdp-opt legend {
  float: left;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--palette-ink-900);
  margin: 0 0 6px;
  padding: 0;
}

.pdp-opt__help {
  float: right;
  border: 0;
  background: none;
  padding: 0;
  margin: 0 0 6px;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--palette-teal-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.pdp-opt__hint {
  float: right;
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: var(--palette-gray-500);
}

.pdp-opt__choices {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.design-d .pdp-pill .choice__box {
  min-height: 38px;
  min-width: 0;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--palette-gray-300);
  background: var(--palette-gray-0);
  color: var(--palette-ink-900);
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: none;
}

.design-d .pdp-pill:hover .choice__box {
  border-color: var(--palette-gray-500);
}

.design-d .pdp-pill input:checked + .choice__box {
  border: 2px solid var(--palette-teal-600);
  padding: 4px 12px;
  background: var(--palette-gray-0);
  color: var(--palette-ink-900);
  font-weight: 700;
  box-shadow: none;
}

.pdp-pill small {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--palette-gray-500);
}

.pdp-pill input:checked + .choice__box small {
  color: var(--palette-teal-700);
  font-weight: 600;
}

.pdp-dot {
  width: 14px;
  height: 14px;
  flex: none;
}

/* Kaufzeile & 4 ruhige Vertrauenspunkte */
.pdp-action {
  margin-top: 16px;
}

.pdp-cart-row {
  display: flex;
  gap: 10px;
}

.d-qty {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--palette-gray-300);
  border-radius: 10px;
  background: var(--palette-gray-0);
  flex: none;
}

.d-qty button {
  width: 34px;
  height: 100%;
  border: 0;
  background: none;
  font-size: 1.15rem;
  color: var(--palette-ink-900);
  cursor: pointer;
}

.design-d .d-qty input {
  width: 30px;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.94rem;
  background: none;
  box-shadow: none;
  -moz-appearance: textfield;
}

.d-qty input::-webkit-outer-spin-button,
.d-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp-cart-row .d-buy {
  flex: 1;
  min-height: 46px;
  font-size: 0.98rem;
}

.pdp-availability {
  margin: 8px 0 0;
  font-size: 0.83rem;
  color: var(--palette-amber-700);
}

.pdp-trust {
  list-style: none;
  margin: 13px 0 0;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--palette-gray-100);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 14px;
  font-size: 0.81rem;
  color: var(--palette-gray-700);
}

.pdp-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pdp-trust svg {
  color: var(--palette-teal-600);
  flex: none;
}

.pdp-trust a {
  color: inherit;
  text-decoration: none;
}

.pdp-trust a:hover {
  text-decoration: underline;
}

/* Aufklappbare Zeilen (Akkordeons) */
.pdp-accordions {
  display: grid;
}

details.pdp-acc {
  border-bottom: 1px solid var(--palette-gray-100);
}

details.pdp-acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--palette-ink-900);
  cursor: pointer;
}

details.pdp-acc summary::-webkit-details-marker {
  display: none;
}

.pdp-acc__icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--palette-gray-500);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1;
  flex: none;
}

details.pdp-acc:not([open]) .pdp-acc__icon::before { content: "+"; }
details.pdp-acc[open] .pdp-acc__icon::before { content: "−"; }

.pdp-acc__body {
  padding: 0 0 13px;
  font-size: 0.85rem;
  color: var(--palette-gray-700);
  line-height: 1.5;
}

.pdp-acc__body p {
  margin: 0 0 8px;
}

.pdp-acc__body p:last-child {
  margin-bottom: 0;
}

.pdp-kv {
  margin: 0;
  display: grid;
  gap: 6px;
}

.pdp-kv div {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 10px;
}

.pdp-kv dt {
  color: var(--palette-gray-500);
}

.pdp-kv dd {
  margin: 0;
  color: var(--palette-ink-900);
  font-weight: 500;
}

/* Mobile Sticky Buybar */
.d-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--palette-gray-0);
  border-top: 1px solid var(--palette-gray-200);
  box-shadow: var(--shadow-m);
  transform: translateY(100%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
  padding: 9px 0;
}

.d-buybar.is-on {
  transform: none;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.d-buybar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.d-buybar__row > span {
  display: grid;
  line-height: 1.2;
}

.d-buybar__row > span small {
  color: var(--palette-gray-500);
  font-size: 0.76rem;
}

.d-buybar .d-buy {
  min-height: 42px;
  padding: 8px 16px;
  white-space: nowrap;
}

@media (min-width: 861px) {
  .d-buybar { display: none; }
}

/* Großansicht (Lightbox-Dialog mit Detailzoom & Vorher/Nachher) */
dialog.pdp-lightbox {
  margin: auto;
  padding: 0;
  border: 1px solid var(--palette-gray-200);
  border-radius: 16px;
  background: var(--palette-gray-0);
  color: var(--palette-ink-900);
  box-shadow: var(--shadow-l);
  width: min(94vw, 960px);
  max-width: 960px;
  max-height: 92vh;
  overflow: hidden;
}

dialog.pdp-lightbox:not([open]) {
  display: none;
}

dialog.pdp-lightbox::backdrop {
  background: rgba(7, 20, 26, 0.72);
  backdrop-filter: blur(3px);
}

.pdp-lightbox__frame {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.pdp-lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--palette-gray-100);
  background: var(--palette-gray-0);
}

.pdp-lightbox__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pdp-lightbox__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--palette-ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-lightbox__count {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--palette-gray-700);
  background: var(--palette-gray-50);
  border: 1px solid var(--palette-gray-200);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  flex: none;
}

.pdp-lightbox__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.pdp-lightbox__tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--palette-gray-300);
  background: var(--palette-gray-0);
  color: var(--palette-ink-900);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.pdp-lightbox__tool[hidden] {
  display: none !important;
}

.pdp-lightbox__tool:hover,
.pdp-lightbox__tool.is-on {
  border-color: var(--palette-teal-600);
  color: var(--palette-teal-700);
}

.pdp-lightbox__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--palette-gray-300);
  background: var(--palette-gray-0);
  color: var(--palette-ink-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.pdp-lightbox__close:hover {
  border-color: var(--palette-ink-900);
  background: var(--palette-gray-25);
}

.pdp-lightbox__stage {
  position: relative;
  background: var(--palette-gray-25);
  height: min(74vh, 690px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pdp-lightbox__media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 12px;
}

.pdp-lightbox__media[hidden] {
  display: none !important;
}

.pdp-lightbox__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 8px;
}

.pdp-lightbox__media.is-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}

.pdp-lightbox__media.is-zoomed img {
  max-width: none;
  max-height: none;
  width: 165%;
  height: auto;
  cursor: zoom-out;
}

.pdp-lightbox__media--compare {
  padding: 0;
  overflow: hidden;
}

.pdp-compare--lightbox {
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 5 / 4;
  width: auto;
  height: 100%;
}

.pdp-lightbox__media--sketch {
  background: var(--palette-gray-0);
  padding: 20px;
}

.pdp-lightbox__sketch svg {
  width: min(82vw, 600px);
  height: auto;
  max-height: 62vh;
}

.pdp-lightbox__caption {
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--palette-gray-700);
  border-top: 1px solid var(--palette-gray-100);
  background: var(--palette-gray-0);
}

.pdp-lightbox__caption[hidden] {
  display: none !important;
}

/* 3. Startseite & Produktübersicht im gleichen ruhigen Stil */
.d-hero {
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--palette-gray-100);
}

.d-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.d-hero h1 {
  font-size: clamp(1.95rem, 3.2vw, 2.55rem);
  line-height: 1.08;
  margin: 0 0 12px;
}

.d-hero__lead {
  font-size: 1rem;
  color: var(--palette-gray-700);
  line-height: 1.52;
  margin: 0 0 18px;
  max-width: 58ch;
}

.d-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.d-hero__cta {
  padding: 11px 22px;
}

.d-hero__trust {
  border-bottom: 0;
  padding-bottom: 0;
  margin-top: 18px;
}

.d-hero__media {
  display: block;
  aspect-ratio: 5 / 4;
  border-radius: 14px;
  border: 1px solid var(--palette-gray-200);
  background: var(--palette-gray-25);
  overflow: hidden;
}

.d-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.d-band {
  padding: 34px 0;
}

.d-band--border {
  border-top: 1px solid var(--palette-gray-100);
}

.d-band__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.d-band__head h1,
.d-band__head h2 {
  margin: 0;
  font-size: 1.55rem;
}

.d-band__sub {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--palette-gray-500);
}

.d-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.d-color-card {
  display: flex;
  flex-direction: column;
  background: var(--palette-gray-0);
  border: 1px solid var(--palette-gray-200);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--ease);
}

.d-color-card:hover {
  border-color: var(--palette-teal-600);
}

.d-color-card__media {
  aspect-ratio: 5 / 4;
  background: var(--palette-gray-25);
  border-bottom: 1px solid var(--palette-gray-100);
  overflow: hidden;
}

.d-color-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.d-color-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.d-color-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.d-color-card__name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--palette-ink-900);
}

.d-color-card__price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--palette-ink-900);
}

.d-color-card__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--palette-gray-500);
  line-height: 1.45;
  flex: 1;
}

.d-color-card__cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--palette-teal-700);
}

.d-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.d-step-card {
  border: 1px solid var(--palette-gray-200);
  border-radius: 14px;
  padding: 18px;
  background: var(--palette-gray-0);
}

.d-step-card__num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--palette-teal-600);
  color: var(--palette-teal-700);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.d-step-card h3 {
  font-size: 1.08rem;
  margin: 0 0 6px;
}

.d-step-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--palette-gray-700);
}

.d-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.d-surface-card {
  background: var(--palette-gray-0);
  border: 1px solid var(--palette-gray-200);
  border-radius: 14px;
  padding: 20px 22px;
}

.d-surface-card h2 {
  font-size: 1.32rem;
  margin: 0 0 8px;
}

.d-founder-teaser {
  padding: 0;
  overflow: hidden;
}

.d-founder-teaser img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  object-position: 60% center;
  border-bottom: 1px solid var(--palette-gray-100);
}

.d-founder-teaser__body {
  padding: 18px 22px 20px;
}

.d-founder-teaser__body p {
  font-size: 0.9rem;
  color: var(--palette-gray-700);
  margin: 0 0 10px;
}

.d-direct-phone {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--palette-ink-900);
  text-decoration: none;
  margin: 2px 0 4px;
}

.d-direct-phone:hover {
  color: var(--palette-teal-700);
}

.d-direct-hours {
  font-size: 0.85rem;
  color: var(--palette-gray-500);
  margin: 0 0 12px;
}

.d-callback-acc {
  border-top: 1px solid var(--palette-gray-100);
  border-bottom: 0 !important;
}

.design-d .callback-card {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.design-d .callback-card .field {
  margin-bottom: 4px;
}

/* Produktübersicht: Ein-Produkt-Showcase & Katalogkarten */
.d-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  border: 1px solid var(--palette-gray-200);
  border-radius: 14px;
  padding: 20px;
  background: var(--palette-gray-0);
  align-items: center;
}

.d-showcase__media {
  display: block;
  aspect-ratio: 5 / 4;
  border-radius: 10px;
  border: 1px solid var(--palette-gray-100);
  background: var(--palette-gray-25);
  overflow: hidden;
}

.d-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.d-showcase__body {
  display: grid;
  gap: 16px;
}

.d-showcase__title {
  font-size: 1.75rem;
  margin: 0 0 6px;
}

.d-showcase__title a {
  text-decoration: none;
}

.d-showcase__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--palette-gray-700);
}

.d-showcase__attrs {
  display: grid;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid var(--palette-gray-100);
  border-bottom: 1px solid var(--palette-gray-100);
}

.d-showcase__attr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.d-showcase__attr-name {
  min-width: 136px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--palette-ink-900);
}

.d-showcase__attr-vals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.d-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--palette-gray-300);
  background: var(--palette-gray-0);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--palette-ink-900);
}

.d-mini-pill:hover {
  border-color: var(--palette-teal-600);
}

.d-showcase__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.d-showcase__price strong {
  font-family: var(--font-head);
  font-size: 1.65rem;
  display: block;
  line-height: 1.05;
}

.d-showcase__price span {
  font-size: 0.8rem;
  color: var(--palette-gray-500);
}

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

.d-card {
  background: var(--palette-gray-0);
  border: 1px solid var(--palette-gray-200);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.d-card__media {
  display: block;
  aspect-ratio: 5 / 4;
  background: var(--palette-gray-25);
  border-bottom: 1px solid var(--palette-gray-100);
}

.d-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.d-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.d-card__name {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.d-card__desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--palette-gray-500);
  flex: 1;
}

.d-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--palette-gray-100);
}

.d-card__price {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 700;
}

.d-card__price small {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--palette-gray-500);
}

.d-empty-box {
  border: 1px solid var(--palette-gray-200);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}

/* 4. Warenkorb, Kasse & Bestellstatus im ruhigen Outline-Stil */
.d-cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: 28px;
  align-items: start;
}

.design-d .cart {
  margin-bottom: 0;
}

.design-d .cart__line {
  border-radius: 12px;
  border-color: var(--palette-gray-200);
  padding: 14px;
}

.cart__edit {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.82rem;
}

.design-d .summary,
.design-d .checkout__summary,
.design-d .panel {
  border-radius: 14px;
  border: 1px solid var(--palette-gray-200);
  background: var(--palette-gray-0);
  padding: 20px;
}

.design-d .summary {
  position: sticky;
  top: 82px;
}

.summary__title {
  font-size: 1.18rem;
  margin: 0;
}

.summary__foot {
  margin: 0;
}

.design-d .steps-bar .is-now .steps-bar__num {
  background: var(--palette-teal-600);
  border-color: var(--palette-teal-600);
  color: var(--palette-gray-0);
}

.design-d .steps-bar .is-done .steps-bar__num {
  background: var(--palette-gray-0);
  border-color: var(--palette-teal-600);
  color: var(--palette-teal-700);
}

.d-kind-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.design-d .fs {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--palette-gray-100);
}

.design-d .fs:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.design-d .fs legend {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.design-d input:not([type=checkbox]):not([type=radio]),
.design-d select,
.design-d textarea {
  border: 1px solid var(--palette-gray-300);
  border-radius: 10px;
  min-height: 42px;
  padding: 9px 12px;
}

.design-d input:focus,
.design-d select:focus,
.design-d textarea:focus {
  border-color: var(--palette-teal-600);
  box-shadow: 0 0 0 2px rgba(19, 143, 132, 0.14);
}

/* Versand- & Zahlungskarten in Kasse: Weißer Grund, grüner Rand bei Auswahl */
.design-d .option-card {
  border: 1px solid var(--palette-gray-300);
  border-radius: 12px;
  background: var(--palette-gray-0);
  padding: 12px 15px;
  margin-bottom: 8px;
  box-shadow: none;
}

.design-d .option-card:has(input:checked) {
  border: 2px solid var(--palette-teal-600);
  padding: 11px 14px;
  background: var(--palette-gray-0);
  box-shadow: none;
}

.design-d .panel--accent {
  background: var(--palette-gray-0);
  border: 2px solid var(--palette-teal-600);
}

.design-d .done__check {
  background: var(--palette-teal-600);
  color: var(--palette-gray-0);
  flex: 0 0 46px;
  height: 46px;
  font-size: 1.35rem;
}

.design-d .timeline li.is-done span {
  background: var(--palette-teal-600);
}

/* 5. Über uns & Kontakt */
.d-about-head {
  margin-bottom: 18px;
}

.d-about-head h1,
.d-contact-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  margin: 0 0 10px;
}

.d-about-banner {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--palette-gray-200);
  margin-bottom: 22px;
}

.d-about-mission {
  margin-bottom: 28px;
}

.d-about-mission p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--palette-gray-700);
}

.design-d .team {
  margin: 14px 0 0;
  gap: 18px;
}

.design-d .team__card {
  border-radius: 14px;
  border-color: var(--palette-gray-200);
  padding: 18px;
  align-items: start;
}

.design-d .team__card p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.d-clean-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--palette-gray-700);
}

.design-d .milestones {
  gap: 8px;
}

.design-d .milestones li {
  font-size: 0.82rem;
  padding: 5px 12px;
  border-color: var(--palette-gray-200);
}

.d-contact-card {
  margin-top: 18px;
}

.design-d .contact {
  gap: 28px;
}

.design-d .contact__form h2 {
  font-size: 1.32rem;
  margin-bottom: 14px;
}

/* 6. Ruhiger, schlanker weißer Footer */
.d-foot {
  background: var(--palette-gray-0);
  border-top: 1px solid var(--palette-gray-100);
  color: var(--palette-gray-500);
  font-size: 0.84rem;
}

.d-foot__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.85fr 1.1fr;
  gap: 28px;
  padding: 26px 0 20px;
}

.d-foot__logo {
  height: 28px;
  width: auto;
  margin-bottom: 10px;
}

.d-foot__brand p {
  margin: 0;
  max-width: 36ch;
  line-height: 1.45;
}

.d-foot__title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--palette-ink-900);
}

.d-foot__col a {
  display: block;
  text-decoration: none;
  color: var(--palette-gray-700);
  margin-bottom: 5px;
}

.d-foot__col a:hover {
  color: var(--palette-teal-700);
}

.d-foot__info {
  margin: 0 0 5px;
  color: var(--palette-gray-700);
}

.d-foot__info a {
  display: inline;
  margin: 0;
}

.d-foot__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 13px 0;
  border-top: 1px solid var(--palette-gray-100);
  font-size: 0.79rem;
}

.is-checkout .d-foot__legal {
  border-top: 0;
}

.d-foot__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.d-foot__legal-links a {
  text-decoration: none;
  color: var(--palette-gray-500);
}

.d-foot__legal-links a:hover {
  color: var(--palette-ink-900);
}

/* 7. Responsive Regeln (Tablet & Mobil 390px) */
@media (max-width: 1080px) {
  .d-brand__claim {
    display: none;
  }
}

@media (max-width: 860px) {
  .design-d .wrap,
  .design-d .wrap--narrow {
    width: calc(100% - 28px);
  }

  .d-head__row {
    min-height: 56px;
    gap: 10px;
  }

  .d-logo img {
    height: 28px;
  }

  .d-head__phone {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .d-head__phone span,
  .d-cart__label {
    display: none;
  }

  .d-cart {
    padding: 0 8px;
    gap: 5px;
  }

  .d-head .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .d-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--palette-gray-0);
    border-bottom: 1px solid var(--palette-gray-200);
    padding: 8px 16px 12px;
    z-index: 60;
    box-shadow: var(--shadow-m);
  }

  .d-nav.is-open {
    display: flex;
  }

  .d-nav a {
    padding: 11px 0;
    border-bottom: 1px solid var(--palette-gray-100);
  }

  .d-nav a:last-child {
    border-bottom: 0;
  }

  .d-nav__mobile-phone {
    display: block;
    color: var(--palette-teal-700) !important;
  }

  .pdp-grid,
  .d-hero__grid,
  .d-color-grid,
  .d-steps-grid,
  .d-duo,
  .d-showcase,
  .d-cart-grid,
  .d-foot__grid {
    grid-template-columns: 1fr;
  }

  .pdp-grid {
    gap: 18px;
  }

  .pdp-gallery,
  .design-d .summary {
    position: static;
  }

  .pdp-thumbs {
    gap: 6px;
  }

  .pdp-thumb__label {
    font-size: 0.69rem;
  }

  .pdp-compare__tag {
    bottom: 8px;
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  .pdp-compare__tag--before { left: 8px; }
  .pdp-compare__tag--after { right: 8px; }

  dialog.pdp-lightbox {
    width: 96vw;
    border-radius: 12px;
  }

  .pdp-lightbox__stage {
    height: min(64vh, 460px);
  }

  .pdp-lightbox__tool span {
    display: none;
  }

  .pdp-lightbox__tool {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .pdp-head h1 {
    font-size: 1.56rem;
  }

  .pdp-trust {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .d-hero {
    padding: 18px 0 26px;
  }

  .d-hero__grid {
    gap: 20px;
  }

  .d-showcase {
    padding: 14px;
    gap: 16px;
  }

  .d-showcase__attr-name {
    min-width: 0;
    width: 100%;
  }

  .d-foot__grid {
    gap: 18px;
    padding: 22px 0 16px;
  }
}
