/* =========================================================
   KRANATU – COMPONENTS
   Globale, wiederverwendbare UI-Komponenten

   Stufe 1:
   - Kranatu Button-System
   - Button-Varianten
   - Hover / Disabled
   - Größen
   - Button-Wrapper

   Seiten-, Header- und WooCommerce-spezifische Regeln
   bleiben vorerst außerhalb dieser Datei.
========================================================= */

/* =============================================
   KRANATU BUTTON SYSTEM
============================================= */

.kr-button,
button.kr-button,
input.kr-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100%;
  min-height: 2.9rem;

  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;

  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;

  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease,
    border-color 0.25s ease;
}

/* ================================
   Varianten
================================ */

.kr-button--primary {
  background-color: #C55254 !important;
  color: #fefcf9 !important;
}

.kr-button--secondary {
  background-color: transparent !important;
  color: #C55254 !important;
  border: 2px solid #C55254 !important;
}

.kr-button--dark {
  background-color: #100f0d !important;
  color: #fefcf9 !important;
}

.kr-button--light {
  background-color: #fefcf9 !important;
  color: #100f0d !important;
  border: 1px solid #100f0d !important;
}

/* ================================
   Hover
================================ */

.kr-button:hover {
  transform: translateY(-2px);
}

.kr-button--primary:hover {
  background-color: #a93d3e !important;
}

.kr-button--secondary:hover {
  background-color: rgba(197, 82, 84, 0.08) !important;
}

.kr-button--dark:hover {
  background-color: #2a2521 !important;
}

/* ================================
   Disabled
================================ */

.kr-button:disabled,
.kr-button.is-disabled {
  background-color: #ccc !important;
  color: #666 !important;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* ================================
   Größen
================================ */

.kr-button--small {
  font-size: 0.875rem;
  min-height: 2.4rem;
  padding: 0.5rem 1rem;
}

.kr-button--large {
  font-size: 1.125rem;
  min-height: 3.2rem;
  padding: 1rem 2rem;
}

/* ================================
   Wrapper
================================ */

.kr-button-wrap--center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.kr-button-wrap--left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.kr-button-wrap--right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* =========================================================
   =========================================================
   KRANATU PRODUKT-CONTENT-SYSTEM
   Stufe 2 – Wiederverwendbare Produktbausteine
   =========================================================
   =========================================================

   ZWECK:
   Einheitliche Langbeschreibungen für alle Kranatu-Produkte.

   Geeignet für:
   - Portemonnaies
   - Tabakbeutel
   - Taschen / Beutel
   - Accessoires
   - Geschenkartikel
   - weitere Produktgruppen

   REGELN:
   - Keine produktspezifischen Klassen für Standardbausteine.
   - Farben kommen aus kranatu-base.css.
   - Responsive Regeln bleiben direkt bei den Komponenten.
   - WooCommerce-Systemelemente wie Varianten und Warenkorb
     gehören NICHT in diesen Bereich.
   ========================================================= */


/* =========================================================
   01 – PRODUKT-GRUNDBEREICH
   ========================================================= */

.kr-product {
  width: 100%;
  color: var(--kr-color-text);
}

.kr-product *,
.kr-product *::before,
.kr-product *::after {
  box-sizing: border-box;
}


/* =========================================================
   02 – SEKTIONEN
   ========================================================= */

.kr-product__section {
  width: 100%;
  padding-block: clamp(2.5rem, 4vw, 4rem);
}

.kr-product__section + .kr-product__section {
  border-top: 1px solid var(--kr-color-border);
}

.kr-product__inner {
  width: min(100%, 1080px);
  margin-inline: auto;
}

.kr-product__copy {
  width: min(100%, 680px);
  margin-inline: auto;
}


/* =========================================================
   03 – TYPOGRAFISCHE HIERARCHIE
   ========================================================= */

.kr-product__eyebrow {
  margin: 0 0 0.75rem;

  color: var(--kr-color-muted);

  font-family: var(--kr-font-body);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kr-product__title {
  margin: 0 0 1rem;

  color: var(--kr-color-text);

  font-family: var(--kr-font-heading);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.25;

  text-wrap: balance;
}

.kr-product__text {
  margin: 0;

  color: var(--kr-color-text-soft);

  font-size: 1rem;
  line-height: 1.7;
}

.kr-product__text + .kr-product__text {
  margin-top: 0.85rem;
}


/* =========================================================
   04 – PRODUKT-INTRO
   ========================================================= */

.kr-product__intro {
  text-align: center;
}

.kr-product__intro .kr-product__copy {
  max-width: 680px;
}


/* =========================================================
   05 – KONTRASTLISTE
   Nicht für ... / Sondern ...
   ========================================================= */

.kr-contrast-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;

  max-width: 620px;
  margin: 1.75rem auto 0;
  padding: 0;

  list-style: none;
  text-align: left;
}

.kr-contrast-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;

  margin: 0;

  line-height: 1.45;
}

.kr-contrast-list li::before {
  content: "";

  display: block;
  flex: 0 0 0.9rem;

  width: 0.9rem;
  height: 0.9rem;

  background-color: currentColor;
}

.kr-contrast-list .is-no {
  color: var(--kr-color-muted);
}

.kr-contrast-list .is-no::before {
  -webkit-mask:
    url("https://kranatu.com/wp-content/uploads/2026/03/x-nein.svg")
    center / contain no-repeat;

  mask:
    url("https://kranatu.com/wp-content/uploads/2026/03/x-nein.svg")
    center / contain no-repeat;
}

.kr-contrast-list .is-yes {
  margin-top: 0.15rem;

  color: var(--kr-color-text);

  font-weight: 600;
}

.kr-contrast-list .is-yes::before {
  -webkit-mask:
    url("https://kranatu.com/wp-content/uploads/2026/03/Haekchen.svg")
    center / contain no-repeat;

  mask:
    url("https://kranatu.com/wp-content/uploads/2026/03/Haekchen.svg")
    center / contain no-repeat;
}


/* =========================================================
   06 – BENEFITS
   Standard: maximal drei Kernvorteile
   ========================================================= */

.kr-product-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);

  width: 100%;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.kr-product-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 0;
  height: 100%;

  padding: clamp(1.25rem, 3vw, 1.75rem);

  background: var(--kr-color-bg-soft);
  border: 1px solid var(--kr-color-border);
  border-radius: 1.25rem;

  text-align: center;
}

.kr-product-benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 5rem;
  height: 5rem;

  margin: 0 auto 1rem;
}

.kr-product-benefit__icon img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.kr-product-benefit__title {
  margin: 0 0 0.45rem;

  color: var(--kr-color-text);

  font-family: var(--kr-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.kr-product-benefit__text {
  margin: 0;

  color: var(--kr-color-text-soft);

  font-size: 0.95rem;
  line-height: 1.6;
}


/* =========================================================
   07 – FEATURE
   Bild + Text für ein besonderes Produktdetail
   ========================================================= */

.kr-product-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.kr-product-feature__media {
  min-width: 0;
}

.kr-product-feature__media img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 1.25rem;
}

.kr-product-feature__content {
  min-width: 0;
}


/* =========================================================
   08 – PRODUKTFAKTEN
   ========================================================= */

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

  margin-top: clamp(2rem, 4vw, 3rem);
}

.kr-product-fact {
  min-width: 0;

  padding: 1.25rem;

  border-top: 1px solid var(--kr-color-border);
}

.kr-product-fact__value {
  display: block;

  margin-bottom: 0.35rem;

  color: var(--kr-color-text);

  font-family: var(--kr-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.kr-product-fact__label {
  display: block;

  color: var(--kr-color-muted);

  font-size: 0.85rem;
  line-height: 1.45;
}


/* =========================================================
   09 – KRANATU-VERSPRECHEN / REPARATUR
   ========================================================= */

.kr-product-promise {
  max-width: 860px;

  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);

  background: var(--kr-color-surface);
  border-radius: 1.25rem;
}

.kr-product-promise .kr-product__copy {
  margin-inline: 0;
}


/* =========================================================
   10 – ABSCHLUSS / CTA
   ========================================================= */

.kr-product-final {
  text-align: center;
}

.kr-product-final .kr-product__copy {
  max-width: 600px;
}

.kr-product-final .kr-button-wrap--center {
  margin-top: 1.5rem;
}


/* =========================================================
   11 – MOBILE
   ========================================================= */

@media (max-width: 767px) {

  /* ---------------------------------
     Grundabstände
     --------------------------------- */

  .kr-product__section {
    padding-block: 2rem;
  }

  .kr-product__inner {
    width: 100%;
  }

  .kr-product__title {
    font-size: clamp(1.4rem, 7vw, 1.75rem);
  }


  /* ---------------------------------
     Intro
     --------------------------------- */

  .kr-product__intro {
    text-align: center;
  }

  .kr-product__intro .kr-product__copy {
    max-width: 100%;
  }


  /* ---------------------------------
     Benefits
     --------------------------------- */

  .kr-product-benefits {
    grid-template-columns: 1fr;
    gap: 0.65rem;

    margin-top: 1.5rem;
  }

  .kr-product-benefit {
    display: grid;

    grid-template-columns: 3.25rem minmax(0, 1fr);
    grid-template-rows: auto auto;

    column-gap: 0.8rem;

    align-items: center;

    min-height: 0;
    padding: 0.9rem 1rem;

    border-radius: 1rem;

    text-align: left;
  }

  .kr-product-benefit__icon {
    grid-column: 1;
    grid-row: 1 / 3;

    width: 3rem;
    height: 3rem;

    margin: 0;
  }

  .kr-product-benefit__title {
    grid-column: 2;
    grid-row: 1;

    align-self: end;

    margin-bottom: 0.2rem;

    font-size: 1rem;
  }

  .kr-product-benefit__text {
    grid-column: 2;
    grid-row: 2;

    align-self: start;

    font-size: 0.88rem;
    line-height: 1.5;
  }


  /* ---------------------------------
     Kontrastliste
     --------------------------------- */

  .kr-contrast-list {
    gap: 0.8rem;
  }

  .kr-contrast-list li {
    gap: 0.65rem;
  }


  /* ---------------------------------
     Feature
     --------------------------------- */

  .kr-product-feature {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .kr-product-feature__media {
    width: 100%;
    max-width: 85%;

    margin-inline: auto;
  }

  .kr-product-feature__content {
    width: 100%;
  }


  /* ---------------------------------
     Fakten
     --------------------------------- */

  .kr-product-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;

    margin-top: 1.5rem;
  }

  .kr-product-fact {
    padding: 1rem 0.25rem;
  }

  .kr-product-fact:nth-child(odd) {
    padding-right: 0.75rem;
  }

  .kr-product-fact:nth-child(even) {
    padding-left: 0.75rem;
  }

  .kr-product-fact:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }


  /* ---------------------------------
     Reparatur / Versprechen
     --------------------------------- */

  .kr-product-promise {
    padding: 1.5rem 1.25rem;

    border-radius: 1rem;
  }

  .kr-product-promise .kr-button-wrap--left {
    margin-top: 1.25rem;
  }


  /* ---------------------------------
     Abschluss
     --------------------------------- */

  .kr-product-final {
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
  }

  .kr-product-final .kr-button-wrap--center {
    margin-top: 1.25rem;
  }
}


/* =========================================================
   12 – KLEINE SMARTPHONES
   ========================================================= */

@media (max-width: 380px) {

  .kr-product__section {
    padding-block: 1.75rem;
  }

  .kr-product-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kr-product-benefit {
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: 0.75rem;

    padding: 0.85rem;
  }

  .kr-product-benefit__icon {
    width: 2.75rem;
    height: 2.75rem;
  }
}