/* ==========================================================================
   Let's Do. – Produktdaten für Modemarken und Handel
   Gilt für die Unterseite /produktdaten (.pd-page) und den Anreißer auf der
   Startseite (.pd-home). Alle Regeln hängen an .pd, damit nichts ausläuft.
   Baut auf variables.css auf; kein JavaScript nötig.
   ========================================================================== */

.pd {
  --pd-paper:       #F0F0F5;                    /* Artikelkarte, = --text-primary */
  --pd-ink:         #0A0A0F;                    /* Schrift auf der Artikelkarte */
  --pd-line:        rgba(240, 240, 245, 0.11);
  --pd-line-strong: rgba(240, 240, 245, 0.28);
  --pd-soft:        rgba(255, 255, 255, 0.68);
  --pd-quiet:       rgba(255, 255, 255, 0.52);
  --pd-stop:        var(--ld-red-glow);         /* kleine rote Schrift: besserer Kontrast als --ld-red */
  --pd-stop-wash:   rgba(228, 28, 34, 0.09);
}


/* ══════════════════════════════════════════════════════════════════
   Variantenblatt: ein Artikel, je Variante eine Zeile
   ══════════════════════════════════════════════════════════════════ */

.pd .pd-sheet {
  display: grid;
  grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  margin: 0;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  border: 1px solid var(--pd-line);
  background: rgba(17, 17, 24, 0.55);
}

.pd .pd-sheet--rows-only {
  grid-template-columns: minmax(0, 1fr);
}

/* ── Artikelkarte (Stammdaten, gelten für alle Varianten) ── */
.pd .pd-tagwrap {
  position: relative;
  margin-top: 1.1rem;
  transform: rotate(-2.5deg);
  transform-origin: 50% 1.2rem;
}

.pd .pd-tag {
  padding: 2.9rem 1.1rem 1.15rem;
  background: var(--pd-paper);
  color: var(--pd-ink);
  clip-path: polygon(1.1rem 0, calc(100% - 1.1rem) 0, 100% 1.1rem, 100% 100%, 0 100%, 0 1.1rem);
  -webkit-mask: radial-gradient(circle at 50% 1.2rem, transparent 0 0.34rem, #000 0.38rem);
          mask: radial-gradient(circle at 50% 1.2rem, transparent 0 0.34rem, #000 0.38rem);
}

/* Faden durch die Lochung */
.pd .pd-thread {
  position: absolute;
  left: 50%;
  top: -1.55rem;
  width: 1.15rem;
  height: 3rem;
  margin-left: -0.2rem;
  border: 1.5px solid var(--ld-red);
  border-radius: 50%;
  transform: rotate(14deg);
  pointer-events: none;
}

.pd .pd-tag__kind {
  margin: 0 0 0.35rem;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(10, 10, 15, 0.62);
}

.pd .pd-tag__name {
  margin: 0 0 0.9rem;
  max-width: none;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--pd-ink);
}

.pd .pd-tag__facts {
  margin: 0;
  border-top: 1px solid rgba(10, 10, 15, 0.16);
}

.pd .pd-tag__facts > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(10, 10, 15, 0.16);
}

.pd .pd-tag__facts dt {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(10, 10, 15, 0.62);
}

.pd .pd-tag__facts dd {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 400;
  text-align: right;
  color: var(--pd-ink);
}

/* ── Variantenzeilen ── */
.pd .pd-rows {
  min-width: 0;
  overflow-x: auto;
}

.pd .pd-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.92rem;
  text-align: left;
}

.pd .pd-table caption {
  caption-side: top;
  padding: 0 0 0.75rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
}

.pd .pd-table__sample {
  float: right;
  margin-left: 0.75rem;
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--pd-line-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--pd-soft);
}

.pd .pd-table th {
  padding: 0.4rem 0.75rem 0.4rem 0;
  border-bottom: 1px solid var(--pd-line-strong);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--pd-quiet);
}

.pd .pd-table td {
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--pd-line);
  font-weight: 300;
  line-height: 1.4;
  color: var(--pd-soft);
}

.pd .pd-table th:first-child,
.pd .pd-table td:first-child {
  padding-left: 0.75rem;
}

.pd .pd-table th:last-child,
.pd .pd-table td:last-child {
  padding-right: 0.5rem;
}

.pd .pd-table .pd-ean {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--text-primary);
}

/* Prüfziffer: die dreizehnte Stelle */
.pd .pd-ean b {
  display: inline-block;
  margin-left: 0.3em;
  padding: 0 0.32em;
  border: 1px solid var(--pd-line-strong);
  font-weight: 400;
  letter-spacing: 0;
}

.pd .pd-check {
  display: inline-block;
  white-space: nowrap;
  color: var(--text-primary);
}

.pd .pd-row--note span {
  display: inline-block;
}

.pd .pd-check svg {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.45em;
  vertical-align: -0.1em;
}

/* Gesperrte Zeile */
.pd .pd-table .pd-row--stop td {
  background: var(--pd-stop-wash);
  border-bottom-color: transparent;
  color: var(--text-primary);
}

.pd .pd-table .pd-row--stop td:first-child,
.pd .pd-table .pd-row--note td:first-child {
  box-shadow: inset 2px 0 0 var(--ld-red);
}

.pd .pd-row--stop .pd-ean b {
  border-color: var(--ld-red);
  background: var(--ld-red);
  color: #fff;
}

.pd .pd-row--stop .pd-check {
  color: var(--pd-stop);
}

.pd .pd-table .pd-row--note td {
  padding-top: 0;
  padding-bottom: 0.7rem;
  background: var(--pd-stop-wash);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--pd-soft);
}

.pd .pd-sheet__caption {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--pd-quiet);
  max-width: 64ch;
}

/* Die Prüfung läuft Zeile für Zeile durch (nur Unterseite, nur einmal) */
@keyframes pd-check-in {
  from { opacity: 0; transform: translateX(-0.4rem); }
  to   { opacity: 1; transform: none; }
}

.pd-page .pd-table tbody tr .pd-check,
.pd-page .pd-table tbody .pd-row--note span {
  animation: pd-check-in 0.4s var(--ease-out) both;
}

.pd-page .pd-table tbody tr:nth-child(1) .pd-check { animation-delay: 0.35s; }
.pd-page .pd-table tbody tr:nth-child(2) .pd-check { animation-delay: 0.50s; }
.pd-page .pd-table tbody tr:nth-child(3) .pd-check { animation-delay: 0.65s; }
.pd-page .pd-table tbody tr:nth-child(4) .pd-check { animation-delay: 0.80s; }
.pd-page .pd-table tbody tr:nth-child(5) .pd-check { animation-delay: 0.95s; }
.pd-page .pd-table tbody .pd-row--note span        { animation-delay: 1.15s; }
.pd-page .pd-table tbody tr:nth-child(7) .pd-check { animation-delay: 1.30s; }

@media (prefers-reduced-motion: reduce) {
  .pd-page .pd-table tbody tr .pd-check,
  .pd-page .pd-table tbody .pd-row--note span {
    animation: none;
  }
}

@media (max-width: 700px) {
  .pd .pd-sheet {
    grid-template-columns: minmax(0, 1fr);
  }
  .pd .pd-tagwrap {
    max-width: 15rem;
    transform: rotate(-1.5deg);
  }
}

@media (max-width: 520px) {
  .pd .pd-sheet {
    padding: 0.9rem 0.8rem 1rem;
  }
  .pd .pd-table {
    font-size: 0.82rem;
  }
  .pd .pd-table caption {
    font-size: 0.92rem;
  }
  .pd .pd-table th,
  .pd .pd-table td {
    padding-right: 0.5rem;
  }
  .pd .pd-table th:first-child,
  .pd .pd-table td:first-child {
    padding-left: 0.55rem;
  }
  .pd .pd-table th:last-child,
  .pd .pd-table td:last-child {
    padding-right: 0.3rem;
  }
  .pd .pd-table th {
    white-space: normal;
    vertical-align: bottom;
    font-size: 0.66rem;
  }
  .pd .pd-table .pd-ean {
    font-size: 0.74rem;
    letter-spacing: 0.02em;
  }
  /* Status nur als Zeichen; der Text bleibt für Screenreader erhalten */
  .pd .pd-check > span,
  .pd .pd-th-check > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .pd .pd-check svg {
    margin-right: 0;
    width: 1.05em;
    height: 1.05em;
  }
}


/* ══════════════════════════════════════════════════════════════════
   Gemeinsame Bausteine: Punkteraster, Schritte, Prüfliste
   ══════════════════════════════════════════════════════════════════ */

.pd .pd-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3rem);
  margin: 1.5rem 0 0;
}

.pd .pd-item {
  padding: 0.95rem 0 1.15rem;
  border-top: 1px solid var(--pd-line);
}

.pd .pd-item h3,
.pd .pd-item h4 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.pd .pd-item p {
  margin: 0;
  max-width: 46ch;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--pd-soft);
}

@media (max-width: 640px) {
  .pd .pd-items {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Schritte: nur dort, wo es wirklich eine Reihenfolge gibt */
.pd .pd-steps {
  counter-reset: pd-step;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.pd .pd-steps > li {
  counter-increment: pd-step;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 1rem;
  margin: 0;
  padding: 0.95rem 0 1.05rem;
  border-top: 1px solid var(--pd-line);
}

.pd .pd-steps > li::before {
  content: counter(pd-step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(228, 28, 34, 0.5);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-primary);
}

.pd .pd-steps h3 {
  margin: 0.2rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.pd .pd-steps p {
  margin: 0;
  max-width: 58ch;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--pd-soft);
}

/* Der Weg der Datei: auf breiten Schirmen nebeneinander, mit durchgehender Linie */
@media (min-width: 760px) {
  .pd .pd-steps--row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1.5rem;
  }
  .pd .pd-steps--row > li {
    display: block;
    position: relative;
    padding: 0;
    border-top: 0;
  }
  .pd .pd-steps--row > li::before {
    position: relative;
    z-index: 1;
    margin-bottom: 0.8rem;
    background: var(--bg-deep);
  }
  .pd .pd-steps--row > li::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: 2rem;
    right: -1.5rem;
    height: 1px;
    background: var(--pd-line-strong);
  }
  .pd .pd-steps--row > li:last-child::after {
    display: none;
  }
  .pd .pd-steps--row h3 {
    margin-top: 0;
  }
}

/* Prüfliste */
.pd .pd-checks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3rem);
  margin: 1.1rem 0 1.5rem;
  padding: 0;
}

.pd .pd-checks > li {
  position: relative;
  margin: 0;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-top: 1px solid var(--pd-line);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--pd-soft);
}

.pd .pd-checks > li::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.82rem;
  width: 0.38rem;
  height: 0.7rem;
  border: solid var(--text-primary);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(40deg);
}

@media (max-width: 640px) {
  .pd .pd-checks {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ══════════════════════════════════════════════════════════════════
   Unterseite /produktdaten
   ══════════════════════════════════════════════════════════════════ */

/* Kopf der Seite: Das Layout zeigt ohne Kartenbild ein neutrales Ringmotiv.
   Hier steht stattdessen das Variantenblatt direkt unter dem Kopf. */
.product-page__inner:has(.pd-page) .product-hero {
  grid-template-columns: minmax(0, 1fr);
  text-align: left;
}

.product-page__inner:has(.pd-page) .product-hero__visual {
  display: none;
}

.product-page__inner:has(.pd-page) .product-page__title {
  max-width: 17ch;
  font-size: clamp(2.1rem, 5.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.product-page__inner:has(.pd-page) .product-page__tagline {
  max-width: 44ch;
  margin-top: 0.9rem;
  line-height: 1.5;
}

.product-page__inner:has(.pd-page) .product-page__accent {
  margin-top: 1.75rem;
}

/* bewusst schwach gehalten, damit die Bausteine ihre eigene Breite behalten */
.pd-page p {
  max-width: 64ch;
}

.pd.pd-page .pd-lead {
  max-width: 31em;
  margin: 0 0 2.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.7vw, 1.95rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

.pd.pd-page h2 {
  margin: 0 0 0.9rem;
  max-width: 24ch;
  font-size: clamp(1.5rem, 3.1vw, 2.05rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.pd.pd-page .pd-block {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
}

.pd.pd-page .pd-sub {
  margin: 2.75rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Stand eines Abschnitts: leeres Quadrat = Angebot, gefülltes = gebaut */
.pd.pd-page .pd-state {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--pd-soft);
}

.pd.pd-page .pd-state::before {
  content: '';
  flex: none;
  width: 0.62rem;
  height: 0.62rem;
  border: 1.5px solid var(--ld-red);
}

.pd.pd-page .pd-state--built::before {
  background: var(--ld-red);
}

.pd.pd-page .pd-note {
  margin: 1.75rem 0 0;
  padding: 0.1rem 0 0.1rem 1.1rem;
  border-left: 2px solid var(--pd-line-strong);
  color: var(--pd-soft);
}

.pd.pd-page .pd-note strong {
  color: var(--text-primary);
}

.pd.pd-page .pd-closing {
  margin-top: 1.75rem;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.pd.pd-page .pd-closing a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--ld-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.pd.pd-page .pd-closing a:hover {
  color: var(--pd-stop);
}


/* ══════════════════════════════════════════════════════════════════
   Anreißer auf der Startseite
   ══════════════════════════════════════════════════════════════════ */

.pd.pd-home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vh, 4rem) clamp(1rem, 3vw, 3rem);
  background: transparent;
}

.pd-home .pd-home__box {
  max-width: min(1180px, 92vw);
}

.pd-home .pd-home__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.pd-home .pd-home__title {
  margin: 0 0 clamp(0.8rem, 1.6vh, 1.2rem);
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.pd-home .pd-home__text {
  margin: 0 0 clamp(1.1rem, 2.2vh, 1.6rem);
  max-width: 52ch;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--pd-soft);
}

.pd-home .pd-items {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.2vw, 2rem);
  margin-top: clamp(1.25rem, 3vh, 2.25rem);
}

.pd-home .pd-item {
  padding: 0.85rem 0 0;
}

.pd-home .pd-item h3,
.pd-home .pd-item h4 {
  font-size: 1rem;
}

.pd-home .pd-item p {
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .pd-home .pd-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-home .pd-item {
    padding-bottom: 0.9rem;
  }
}

@media (max-width: 860px) {
  .pd-home .pd-home__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .pd-home .pd-home__title {
    max-width: 20ch;
  }
}

@media (max-width: 767px) {
  .pd.pd-home {
    padding: clamp(1.5rem, 3vh, 2.5rem) clamp(0.8rem, 2vw, 1.5rem);
    scroll-margin-top: 64px; /* feste Navigation; Scroll-Snap ist hier aus */
  }
  .pd-home .pd-home__box {
    max-width: 100%;
    padding: clamp(1.2rem, 3vh, 2rem) clamp(1rem, 3vw, 1.5rem);
  }
  .pd-home .pd-home__cta {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  .pd-home .pd-items {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Niedrige Bildschirme (Laptop): der Abschnitt soll in eine Bildschirmhöhe passen */
@media (min-width: 1024px) and (max-height: 850px) {
  .pd.pd-home {
    padding-block: clamp(1rem, 2vh, 2rem);
  }
  .pd-home .pd-home__box {
    padding-block: clamp(1rem, 2.4vh, 1.75rem);
  }
  .pd-home .pd-home__title {
    font-size: clamp(1.6rem, 4.6vh, 2.4rem);
  }
  .pd-home .pd-table td {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
}
