/* Knall-Effekt – systemweiter Feinschliff für echte Lesbarkeit.
 * Bestehende Farbschemata und Layouts bleiben erhalten. Keine festen Kartenhöhen.
 * Kein globales !important und keine Eingriffe in den WordPress-Adminbereich.
 */

/* Lesbare Kartenüberschriften – auf der Startseite und den Eventmodulen. */
.ke-home-v2 .ke-servicegrid--editorial > .ke-service :is(h2,h3,h4),
.ke-modules-page :is(.ke-module-link,.ke-rental-card) :is(h2,h3,h4),
.ke-modules-page .ke-rental-card__title {
  font-size: clamp(1.15rem, 1.15vw + .85rem, 1.55rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: normal;
  overflow-wrap: break-word;
}

/* Beschreibungstexte: keine winzigen grauen Texte in Werbekacheln. */
.ke-home-v2 .ke-servicegrid--editorial > .ke-service p,
.ke-modules-page :is(.ke-module-link,.ke-rental-card) p {
  font-size: clamp(1rem, .25vw + .96rem, 1.125rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* Handlungsaufforderungen in den bestehenden Kacheln. */
.ke-home-v2 .ke-servicegrid--editorial > .ke-service > b,
.ke-modules-page .ke-rental-card .ke-textlink {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.45;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Einheitliche, großzügige echte Schaltflächen – einschließlich Elementor. */
:where(.site-content,.elementor,.woocommerce) :is(
  a.elementor-button, button.elementor-button,
  a.button, button.button, input.button,
  .wp-element-button, .wp-block-button__link
) {
  font-size: max(1rem, 16px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .005em;
  min-height: 46px;
  padding: .76em 1.15em;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
}

/* Produktkarten: Titel, Preis und Kaufen-Beschriftungen erkennbar. */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .ast-loop-product__link :is(h2,h3) {
  font-size: clamp(1.04rem, .35vw + .98rem, 1.2rem);
  line-height: 1.4;
  font-weight: 600;
}
.woocommerce ul.products li.product .price {
  font-size: clamp(1.1rem, .4vw + 1.04rem, 1.32rem);
  line-height: 1.35;
  font-weight: 650;
}

/* Sichtbarer Tastaturfokus; bestehende Hover-Farben werden nicht überschrieben. */
:where(.site-content,.elementor,.woocommerce) :is(a,button,input[type="submit"]):focus-visible {
  outline: 3px solid #e8ae1e;
  outline-offset: 3px;
}

/* Auf schmalen Handys mindestens 15px Buttons; die bestehenden 13px
 * aus dem Child-Theme werden gezielt übersteuert, ohne Layout zu beschädigen. */
@media (max-width: 600px) {
  :is(.ke-home-v2,.woocommerce-shop,.tax-product_cat,.tax-product_brand,.tax-pa-hersteller)
  .woocommerce ul.products li.product:not(.product-category) .astra-shop-summary-wrap > a.button {
    font-size: 15px;
    line-height: 1.4;
    min-height: 48px;
    padding: 11px 10px;
  }
}

/* Typografische Hierarchie im Shop: keine flächendeckende Fettschrift.
 * Normaler Text soll mit leichter/mittlerer Schriftstärke lesbar sein.
 * Spezifisch für Katalog-Schnellzugriffe und Filter, ohne Warenkorb-/Checkout-Layout zu ändern.
 */
.woocommerce-shop :is(.ke-shop-filters,.ke-shop-filter,.ke-product-filters,.ke-filter-bar,.ke-shop-toolbar,.ke-quicklinks,.ke-shop-quicklinks),
.post-type-archive-product :is(.ke-shop-filters,.ke-shop-filter,.ke-product-filters,.ke-filter-bar,.ke-shop-toolbar,.ke-quicklinks,.ke-shop-quicklinks) {
  font-weight: 400;
}
.woocommerce-shop :is(.ke-shop-filters,.ke-shop-filter,.ke-product-filters,.ke-filter-bar,.ke-shop-toolbar,.ke-quicklinks,.ke-shop-quicklinks) :is(button,a,select,option,label),
.post-type-archive-product :is(.ke-shop-filters,.ke-shop-filter,.ke-product-filters,.ke-filter-bar,.ke-shop-toolbar,.ke-quicklinks,.ke-shop-quicklinks) :is(button,a,select,option,label) {
  font-weight: 500;
}
/* Auch Elementor-Knöpfe nicht unnötig schwer setzen. */
:where(.site-content,.elementor,.woocommerce) :is(a.elementor-button,button.elementor-button,a.button,button.button,input.button,.wp-element-button,.wp-block-button__link) {
  font-weight: 600;
}
/* Abschnittsüberschriften sind weiterhin betont, aber nicht extra-bold. */
.ke-home-v2 .ke-servicegrid--editorial > .ke-service :is(h2,h3,h4),
.ke-modules-page :is(.ke-module-link,.ke-rental-card) :is(h2,h3,h4),
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-weight: 650;
}

/*
 * Produktdaten-Kacheln: exakt drei gleich breite Felder (Schuss/Kaliber/NEM).
 * Ohne Mindestbreiten, die bei 100+ Schuss sonst die dritte Kachel nach
 * unten schieben. Ausschließlich für die Kompaktansicht im Produktkatalog.
 */
.woocommerce ul.products li.product .ke-product-facts--loop {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100%;
  max-width: 100%;
  gap: 4px !important;
  box-sizing: border-box;
  align-items: stretch;
}
.woocommerce ul.products li.product .ke-product-facts--loop > .ke-product-fact {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 5px 2px !important;
  line-height: 1.2;
  text-align: center;
}
.woocommerce ul.products li.product .ke-product-facts--loop > .ke-product-fact :is(small,strong) {
  display: block;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.2;
  text-align: center;
}
.woocommerce ul.products li.product .ke-product-facts--loop > .ke-product-fact small {
  font-size: clamp(10px, .8vw, 12px);
  font-weight: 500;
}
.woocommerce ul.products li.product .ke-product-facts--loop > .ke-product-fact strong {
  font-size: clamp(11px, .95vw, 13px);
  font-weight: 650;
}
