/* Standard-Seiten (page.php): Impressum, Kontakt, Warenkorb, Kasse … */
.rp-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 20px 5rem; /* vorher 5px -> Text klebte auf dem Handy am Rand */
}

/* -------------------------------------------------------------------------
   Typografie für Textseiten (Blöcke aus dem Editor)
   ------------------------------------------------------------------------- */
.rp-page > p,
.rp-page > ul,
.rp-page > ol {
  max-width: 72ch;
  line-height: 1.75;
  color: var(--rp-text);
}

.rp-page > h2,
.rp-page > .wp-block-heading {
  margin: 3rem 0 1.25rem;
  font-family: var(--rp-font-headline);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Roter Strich vor Zwischenüberschriften */
.rp-page > h2::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 3px;
  margin-right: .75rem;
  vertical-align: middle;
  background: var(--rp-accent);
}

.rp-page a:not(.btn) {
  color: var(--rp-white);
  text-decoration-color: rgba(225, 6, 0, .7);
  text-underline-offset: .2em;
}

.rp-page a:not(.btn):hover {
  color: var(--rp-accent);
}

/* Tabellen */
.rp-page .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.rp-page .wp-block-table th,
.rp-page .wp-block-table td {
  padding: .8rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  text-align: left;
}

.rp-page .wp-block-table thead th {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rp-muted);
  border-bottom-color: rgba(255, 255, 255, .25);
}

/* -------------------------------------------------------------------------
   Versandarten-Seite (Klassen im Seiteninhalt, siehe extras/versandarten-seite.html)
   ------------------------------------------------------------------------- */
.rp-page > .rp-ship-lead {
  max-width: 60ch;
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--rp-white);
}

/* Drei Preiskarten */
.rp-ship-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.rp-ship-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: linear-gradient(160deg, #1a1a1a 0%, #111 100%);
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}

.rp-ship-card:hover {
  border-color: rgba(225, 6, 0, .45);
  transform: translateY(-3px);
}

/* Icon oben rechts (CD, Shirt, Geschenk) als Maske, damit es die Akzentfarbe annimmt */
.rp-ship-card::after {
  content: "";
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  width: 34px;
  height: 34px;
  background: rgba(245, 245, 245, .18);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background-color .3s ease;
}

.rp-ship-card:hover::after {
  background: var(--rp-accent);
}

.rp-ship-card--cd {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M12 5.5a6.5 6.5 0 0 1 6.5 6.5'/%3E%3C/svg%3E");
}

.rp-ship-card--merch {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M8 3 3 6l2 4 2-1v12h10V9l2 1 2-4-5-3c-.5 1.5-2 2.5-4 2.5S8.5 4.5 8 3Z'/%3E%3C/svg%3E");
}

.rp-ship-card--free {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='5' rx='1'/%3E%3Cpath d='M5 13v8h14v-8M12 8v13M12 8S9.5 3 7.5 4.5 9 8 12 8Zm0 0s2.5-5 4.5-3.5S15 8 12 8Z'/%3E%3C/svg%3E");
}

/* Gratis-Versand hervorheben */
.rp-ship-card--free {
  border-color: rgba(225, 6, 0, .4);
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(225, 6, 0, .28), transparent 65%),
    linear-gradient(160deg, #1d1212 0%, #120a0a 100%);
}

.rp-ship-card p {
  margin: 0;
}

.rp-ship-card-label {
  padding-right: 2.5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rp-muted);
}

.rp-ship-card .rp-ship-card-price {
  margin: .6rem 0 .7rem;
  font-family: var(--rp-font-headline);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--rp-white);
}

.rp-ship-card--free .rp-ship-card-price {
  color: #ff5a4e;
}

.rp-ship-card-text {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--rp-text);
}

.rp-page > .rp-ship-note {
  margin: 1.25rem 0 0;
  font-size: .88rem;
  color: var(--rp-muted);
}

/* Lieferzeiten: große Zahl + Beschriftung */
.rp-ship-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 640px;
}

.rp-ship-time {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--rp-accent);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, .04);
}

.rp-ship-time p {
  margin: 0;
}

.rp-ship-time .rp-ship-time-days {
  font-family: var(--rp-font-headline);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--rp-white);
  white-space: nowrap;
}

.rp-ship-time-text {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--rp-muted);
}

.rp-ship-time-text strong {
  font-weight: 600;
}

/* Hinweise mit Häkchen statt Aufzählungspunkten */
.rp-page > .rp-ship-facts {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.rp-ship-facts li {
  position: relative;
  padding: .35rem 0 .35rem 1.9rem;
}

.rp-ship-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75rem;
  width: .9rem;
  height: .5rem;
  border-left: 2px solid var(--rp-accent);
  border-bottom: 2px solid var(--rp-accent);
  transform: rotate(-45deg);
}

.rp-page > .rp-ship-help {
  margin: 3rem 0 0;
  padding: 1.25rem 1.5rem;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 8px;
  max-width: none;
  color: var(--rp-text);
}

@media (max-width: 800px) {
  .rp-ship-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .rp-ship-card .rp-ship-card-price {
    font-size: 2.6rem;
  }
}

@media (max-width: 480px) {
  .rp-ship-times {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-ship-card {
    transition: none;
  }

  .rp-ship-card:hover {
    transform: none;
  }
}
