/*
Theme Name: Wildparkshop Blocktheme Child
Theme URI: https://example.com/wildparkshop-blocktheme-child
Author: double or nothing GmbH
Description: Childtheme für das Wildparkshop Blocktheme. Hier bleiben individuelle Anpassungen bei Aktualisierungen des Parent-Themes erhalten.
Template: wildparkshop-blocktheme
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: wildparkshop-child
Tags: full-site-editing, block-patterns, e-commerce, accessibility-ready
*/

/*
 * Eigene globale CSS-Anpassungen können direkt unterhalb dieses Kommentars
 * ergänzt werden. Umfangreichere Regeln gehören in assets/css/child.css.
 */

/* Barrierearmes Kontaktformular in der Wildparkshop-CI */
.wpcf7 {
  max-width: 760px;
  margin-block: 1.5rem 2.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  color: #243127;
  background: #f5f1e7;
  border: 1px solid #d8d0bd;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(28, 55, 39, 0.12);
}

.wpcf7 form {
  margin: 0;
}

.wpcf7 form > p {
  margin: 0 0 1.25rem;
}

.wpcf7 label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #173f2e;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.75rem 0.9rem;
  color: #17211a;
  background: #fff;
  border: 2px solid #738579;
  border-radius: 9px;
  font: inherit;
  line-height: 1.5;
}

.wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

.wpcf7 input:hover,
.wpcf7 textarea:hover,
.wpcf7 select:hover {
  border-color: #315f49;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #173f2e;
  outline: 3px solid #e2b44b;
  outline-offset: 2px;
  box-shadow: none;
}

.wpcf7 .wildparkshop-form-hinweis {
  padding: 1rem 1.1rem;
  color: #26372c;
  background: #fffaf0;
  border-left: 5px solid #c28724;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.6;
}

.wpcf7 .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
}

.wpcf7 input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.15rem 0 0;
  accent-color: #173f2e;
}

.wpcf7 input[type="submit"] {
  min-height: auto;
  padding: 0.75rem 1.25rem;
  color: var(--wp--preset--color--white, #fff);
  background: var(--wp--preset--color--forest, #315b3b);
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
  color: var(--wp--preset--color--white, #fff);
  background: var(--wp--preset--color--forest, #315b3b);
}

.wpcf7 input[type="submit"]:focus-visible {
  outline: 3px solid #e2b44b;
  outline-offset: 3px;
}

.wpcf7 input[type="submit"]:disabled {
  color: var(--wp--preset--color--white, #fff);
  background: var(--wp--preset--color--forest, #315b3b);
  opacity: 0.72;
  cursor: not-allowed;
}

.wpcf7 .wpcf7-not-valid {
  border-color: #a32222;
}

.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.4rem;
  color: #8b1515;
  font-size: 0.95rem;
  font-weight: 700;
}

.wpcf7 form .wpcf7-response-output {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  border-width: 3px;
  border-radius: 8px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .wpcf7 {
    padding: 1.1rem;
    border-radius: 12px;
  }

  .wpcf7 input[type="submit"] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wpcf7 input[type="submit"] {
    transition: none;
  }
}

/* Freundlicher, linksbündiger Kopfbereich der Produktkategorien */
.wildparkshop-category-hero {
  min-height: clamp(270px, 32vw, 340px) !important;
}

.wildparkshop-category-hero .wp-block-cover__inner-container {
  box-sizing: border-box;
  width: 100%;
  text-align: left;
}

.wildparkshop-category-hero .wp-block-cover__inner-container > .wp-block-group {
  box-sizing: border-box;
  width: min(880px, calc(100% - 2rem));
  max-width: 880px;
  margin-left: max(1rem, calc((100% - 1180px) / 2));
  margin-right: auto;
  padding: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--wp--preset--color--forest-dark, #1f3c28);
  text-align: left !important;
  background: rgba(245, 241, 232, 0.91);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(31, 60, 40, 0.16);
  backdrop-filter: blur(4px);
}

.wildparkshop-category-hero .woocommerce-breadcrumb,
.wildparkshop-category-hero .wildparkshop-eyebrow,
.wildparkshop-category-hero .wp-block-query-title,
.wildparkshop-category-hero .wp-block-term-description,
.wildparkshop-category-hero .wp-block-term-description p {
  margin-left: 0 !important;
  margin-right: 0 !important;
  color: var(--wp--preset--color--forest-dark, #1f3c28) !important;
  text-align: left !important;
}

.wildparkshop-category-hero .woocommerce-breadcrumb {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.wildparkshop-category-hero .woocommerce-breadcrumb a {
  color: var(--wp--preset--color--forest-dark, #1f3c28) !important;
  text-decoration-color: rgba(31, 60, 40, 0.45);
}

.wildparkshop-category-hero .wildparkshop-eyebrow {
  margin-bottom: 0.45rem;
  color: var(--wp--preset--color--forest, #315b3b) !important;
}

.wildparkshop-category-hero .wp-block-query-title {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
  line-height: 1.08;
}

.wildparkshop-category-hero .wp-block-term-description {
  display: block;
  max-width: 760px;
  font-size: clamp(1rem, 1.15vw, 1.1rem) !important;
  line-height: 1.65;
}

.wildparkshop-category-hero .wp-block-term-description p {
  display: block;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

.wildparkshop-category-page > .wp-block-group > .wp-block-heading {
  text-align: left !important;
}

@media (max-width: 600px) {
  .wildparkshop-category-hero {
    min-height: 250px !important;
  }

  .wildparkshop-category-hero .wp-block-cover__inner-container > .wp-block-group {
    width: calc(100% - 1.25rem);
    margin-left: 0.625rem;
    padding: 1.1rem;
    border-radius: 10px;
  }
}


/* Einheitlicher Hintergrund für alle Produktkategorien */
.wildparkshop-category-hero {
  background-image: url("https://doubleornothing.info/wp-content/uploads/2026/09/wildparkshop-hero-rothirschfamilie-ki-generiert.png") !important;
  background-position: center center !important;
  background-size: cover !important;
}

.wildparkshop-category-hero .wp-block-cover__background {
  opacity: 0.12 !important;
}

.wildparkshop-category-hero .wp-block-cover__inner-container > .wp-block-group {
  background: rgba(245, 241, 232, 0.70) !important;
  border-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}


/* Sichtbare Kennzeichnung für den KI-generierten Kategorienhintergrund */
.wildparkshop-category-hero::after {
  content: "KI-generiert";
  position: absolute;
  left: max(0.75rem, calc((100% - 1180px) / 2));
  bottom: 0.55rem;
  z-index: 5;
  padding: 0.18rem 0.42rem;
  color: #fff;
  background: rgba(20, 35, 25, 0.82);
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
