/*
Theme Name: Xaver Natur
Theme URI: https://xaver-natur.at
Author: Xaver Natur
Description: Neuauflage von Xaver Natur mit Startseite, Über uns, Aktuelles, Kontakt und einem Shop in den Bereichen Kapok, Hanf und Kamelhaar.
Version: 1.1.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: xaver-natur
*/

:root {
  --xn-white: #ffffff;
  --xn-mist: #f3f6f1;
  --xn-ink: #1e2428;
  --xn-muted: #6d7578;
  --xn-line: #e6e8e6;
  --xn-green: #6b7d55;
  --xn-green-dark: #5a6a47;
  --xn-sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --xn-wrap: 72rem;
}

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

body {
  margin: 0;
  background: var(--xn-white);
  color: var(--xn-ink);
  font-family: var(--xn-sans);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4,
.xn-display {
  font-family: var(--xn-sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--xn-ink);
}

p {
  margin: 0 0 1rem;
}

:focus-visible {
  outline: 2px solid var(--xn-green);
  outline-offset: 3px;
}

.xn-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--xn-ink);
  color: #fff;
  padding: 0.55rem 0.8rem;
  z-index: 30;
}

.xn-skip:focus {
  top: 0.6rem;
}

.xn-wrap {
  width: min(var(--xn-wrap), calc(100% - 3rem));
  margin-inline: auto;
}

.xn-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--xn-muted);
}

.xn-lead {
  max-width: 36rem;
  color: var(--xn-muted);
  font-size: 1.05rem;
}

.xn-prose {
  max-width: 42rem;
}

.xn-prose h2 {
  margin: 2.2rem 0 0.6rem;
  font-size: 1.7rem;
}

.xn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 0;
}

.xn-btn,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: var(--xn-green);
  color: #fff;
  font-family: var(--xn-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 1rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
}

.xn-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--xn-green-dark);
  color: #fff;
}

.xn-btn--ghost {
  background: #fff;
  color: var(--xn-ink);
  box-shadow: inset 0 0 0 1px #e4e6e4;
}

.xn-btn--ghost:hover {
  background: #f7f8f7;
  color: var(--xn-ink);
}

.xn-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--xn-line);
}

.xn-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--xn-wrap), calc(100% - 3rem));
  margin-inline: auto;
  min-height: 5.2rem;
}

.xn-logo img {
  height: 58px;
  width: auto;
}

.xn-nav-toggle {
  display: none;
  border: 1px solid var(--xn-line);
  background: #fff;
  color: var(--xn-ink);
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
}

.xn-nav ul {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.xn-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.xn-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--xn-ink);
}

.xn-nav-cta {
  background: var(--xn-green);
  color: #fff !important;
  padding: 0.75rem 1.05rem;
  box-shadow: none !important;
}

.xn-nav-cta:hover {
  background: var(--xn-green-dark);
}

.xn-item--sub {
  position: relative;
}

.xn-sub-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--xn-ink);
  font: inherit;
  cursor: pointer;
}

.xn-sub {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  min-width: 11rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--xn-line);
  opacity: 0;
  visibility: hidden;
}

.xn-sub a {
  display: block;
  padding: 0.5rem 0.95rem;
  font-weight: 500;
}

.xn-sub a:hover {
  background: var(--xn-mist);
}

.xn-item--sub:hover .xn-sub,
.xn-item--sub:focus-within .xn-sub,
.xn-item--sub.is-open .xn-sub {
  opacity: 1;
  visibility: visible;
}

.xn-main {
  min-height: 50vh;
}

.xn-hero {
  padding: 1.25rem 0 0.5rem;
}

.xn-hero__panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  width: min(var(--xn-wrap), calc(100% - 3rem));
  margin: 0 auto;
  padding: 3.2rem 3rem;
  background: var(--xn-mist);
}

.xn-hero h1 {
  max-width: 12ch;
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 4.6vw, 4.3rem);
}

.xn-hero__photo {
  margin: 0;
}

.xn-hero__photo img {
  width: 100%;
  height: 26rem;
  object-fit: cover;
  background: #fff;
}

.xn-band {
  padding: 3.4rem 0 0.4rem;
}

.xn-band h2,
.xn-split h2,
.xn-consult h2,
.xn-pagehead h1,
.xn-posts-head h1,
.xn-shop-head h1,
.xn-single h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
}

.xn-materials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0 0 1rem;
}

.xn-material a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--xn-line);
}

.xn-material__photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--xn-mist);
}

.xn-material__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xn-material__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.15rem 1.25rem;
}

.xn-material__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--xn-green);
}

.xn-material__name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.xn-material__text {
  color: var(--xn-muted);
}

.xn-material__more {
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.xn-material a:hover .xn-material__more {
  color: var(--xn-green);
}

.xn-split {
  padding: 3.5rem 0;
}

.xn-split__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.xn-split__photo {
  margin: 0;
}

.xn-split__photo img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
}

.xn-values {
  padding: 0 0 3.2rem;
}

.xn-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--xn-line);
}

.xn-values h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.xn-consult {
  background: var(--xn-mist);
  padding: 3.6rem 0;
}

.xn-consult__meta {
  margin-top: 1.1rem;
  color: var(--xn-muted);
}

.xn-consult__meta a {
  text-decoration: none;
  font-weight: 600;
  color: var(--xn-ink);
}

.xn-pagehead,
.xn-posts-head,
.xn-shop-head {
  padding: 2.8rem 0 0.4rem;
}

.xn-page {
  padding-bottom: 4rem;
}

.xn-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.xn-team article {
  padding-top: 0.9rem;
  border-top: 1px solid var(--xn-line);
}

.xn-team h3 {
  margin: 0;
  font-size: 1.3rem;
}

.xn-role {
  margin: 0.15rem 0 0.55rem;
  color: var(--xn-green);
  font-weight: 600;
  font-size: 0.92rem;
}

.xn-contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  padding: 1.2rem 0 4rem;
}

.xn-address {
  margin: 0;
  font-style: normal;
}

.xn-address a {
  text-decoration: none;
}

.xn-form {
  display: grid;
  gap: 1rem;
}

.xn-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.xn-form input,
.xn-form textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  border: 1px solid var(--xn-line);
  border-radius: 0;
  background: #fff;
  color: var(--xn-ink);
  font: inherit;
  font-weight: 400;
  padding: 0.75rem 0.8rem;
}

.xn-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.xn-form .xn-btn {
  justify-self: start;
}

.xn-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.xn-note {
  margin: 0 0 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--xn-line);
  border-bottom: 1px solid var(--xn-line);
}

.xn-fine,
.xn-empty,
.xn-crumb {
  color: var(--xn-muted);
}

.xn-crumb {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
}

.xn-crumb a,
.xn-switch a,
.xn-postline h2 a,
.xn-posts .wp-block-post-title a,
.xn-footer a {
  text-decoration: none;
}

.xn-switch ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.xn-switch a {
  font-weight: 600;
}

.xn-switch a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--xn-green);
}

.xn-empty {
  margin: 1.4rem 0 3rem;
}

.xn-posts {
  list-style: none;
  margin: 0;
  padding: 0 0 3.5rem;
}

.xn-postline {
  padding: 1.3rem 0;
  border-top: 1px solid var(--xn-line);
}

.xn-postline h2,
.xn-posts .wp-block-post-title {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.55rem;
}

.wp-block-post-date {
  color: var(--xn-muted);
  font-size: 0.88rem;
}

.xn-single {
  padding: 2.6rem 0 4rem;
}

.xn-footer {
  border-top: 1px solid var(--xn-line);
  padding: 2.6rem 0 1.8rem;
  background: #fff;
}

.xn-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.xn-footer .xn-logo img {
  height: 50px;
}

.xn-footer h2 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xn-muted);
}

.xn-footer p,
.xn-footer li {
  color: var(--xn-muted);
}

.xn-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xn-footer a:hover {
  color: var(--xn-green);
}

.xn-copy {
  margin-top: 1.8rem;
  color: var(--xn-muted);
  font-size: 0.88rem;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 3rem !important;
  padding: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title {
  font-family: var(--xn-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  padding: 2.2rem 0 3rem;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products {
  grid-column: 1 / -1;
}

.woocommerce-cart .xn-main,
.woocommerce-checkout .xn-main,
.woocommerce-account .xn-main {
  width: min(var(--xn-wrap), calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.4rem 0 4rem;
}

.wp-block-query-pagination {
  display: flex;
  gap: 1rem;
  padding-bottom: 3rem;
}

@media (max-width: 980px) {
  .xn-nav-toggle,
  .xn-sub-toggle {
    display: inline-flex;
  }

  .xn-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--xn-line);
    padding: 0.4rem 1.5rem 1rem;
  }

  .xn-header.is-open .xn-nav {
    display: block;
  }

  .xn-nav ul,
  .xn-hero__panel,
  .xn-materials,
  .xn-split__grid,
  .xn-values__grid,
  .xn-team,
  .xn-contact-grid,
  .xn-footer__grid,
  .woocommerce ul.products,
  .woocommerce div.product {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .xn-nav ul {
    gap: 0.15rem;
  }

  .xn-nav > ul > li > a,
  .xn-sub-toggle {
    padding: 0.55rem 0;
  }

  .xn-nav-cta {
    display: inline-flex;
    margin: 0.4rem 0;
  }

  .xn-sub {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    border: 0;
    padding: 0 0 0.3rem 0.7rem;
  }

  .xn-item--sub.is-open .xn-sub,
  .xn-item--sub:focus-within .xn-sub {
    display: block;
  }

  .xn-hero__panel,
  .xn-materials,
  .xn-split__grid,
  .xn-values__grid,
  .xn-team,
  .xn-contact-grid,
  .xn-footer__grid,
  .woocommerce ul.products,
  .woocommerce div.product {
    display: grid;
  }

  .xn-hero__photo img,
  .xn-split__photo img {
    height: 16rem;
  }

  .xn-logo img {
    height: 46px;
  }
}

@media (max-width: 640px) {
  .xn-wrap,
  .xn-header__bar,
  .xn-hero__panel,
  .woocommerce-cart .xn-main,
  .woocommerce-checkout .xn-main,
  .woocommerce-account .xn-main {
    width: min(var(--xn-wrap), calc(100% - 1.5rem));
  }

  .xn-hero__panel {
    padding: 1.6rem 1.2rem;
  }
}

.woocommerce .xr-single-product form.variations_form .variations select {
  height: auto;
  min-height: 2.75rem;
  line-height: 1.4;
  padding-block: 0.55rem;
}
