/*
Theme Name: ecomofa
Theme URI: https://ecomofa.de/
Author: Faustmann
Description: Freizeit-orientiertes WordPress/WooCommerce Theme fuer ecomofa mit Magazin-Startseite, Shop und sachlichem Technik-Hub.
Version: 0.1.1
Text Domain: ecomofa
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
*/

:root {
  --em-green: #32d961;
  --em-green-dark: #138a38;
  --em-blue: #0b69b2;
  --em-blue-dark: #07395f;
  --em-ink: #0b1726;
  --em-muted: #66758a;
  --em-line: #d8e4ef;
  --em-paper: #f4f8fb;
  --em-sun: #ffd166;
  --em-coral: #ff6b4a;
  --em-white: #fff;
  --em-shadow: 0 24px 70px rgba(7, 17, 38, .14);
  --em-wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--em-ink);
  background: var(--em-white);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.em-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(216, 228, 239, .9);
  backdrop-filter: blur(14px);
}

.em-header__inner {
  width: min(var(--em-wrap), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.em-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.em-brand img {
  width: 144px;
}

.em-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.em-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.em-nav a {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.em-nav a:hover,
.em-nav .current-menu-item > a {
  color: var(--em-blue);
}

.em-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.em-button,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--em-blue);
  border-radius: 8px;
  background: var(--em-blue);
  color: var(--em-white);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.em-button:hover,
.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  transform: translateY(-2px);
  background: var(--em-blue-dark);
  border-color: var(--em-blue-dark);
  color: var(--em-white);
}

.em-button--light {
  background: var(--em-white);
  color: var(--em-blue-dark);
  border-color: rgba(255, 255, 255, .86);
}

.em-button--ghost {
  background: transparent;
  color: var(--em-blue-dark);
  border-color: var(--em-line);
}

.em-cart-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--em-line);
  border-radius: 8px;
  color: var(--em-blue-dark);
  text-decoration: none;
}

.em-hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: clamp(52px, 8vw, 98px) 20px clamp(46px, 7vw, 80px);
  color: var(--em-white);
  background:
    linear-gradient(90deg, rgba(7, 17, 38, .92) 0%, rgba(7, 17, 38, .78) 43%, rgba(7, 17, 38, .36) 72%, rgba(7, 17, 38, .10) 100%),
    var(--em-hero-image, url("assets/ecomofa-hero.png")) center top / cover no-repeat;
}

.em-hero__inner,
.em-wrap {
  width: min(var(--em-wrap), 100%);
  margin: 0 auto;
}

.em-hero__copy {
  max-width: 730px;
  padding-top: clamp(24px, 7vw, 92px);
}

.em-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #c4f8d1;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.em-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--em-green);
  box-shadow: 0 0 0 7px rgba(50, 217, 97, .16);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.em-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

.em-lead {
  max-width: 690px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(18px, 2vw, 22px);
}

.em-hero__actions,
.em-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.em-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.em-tags li {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  font-weight: 850;
}

.em-section {
  padding: clamp(62px, 8vw, 100px) 20px;
}

.em-section--paper {
  background: var(--em-paper);
}

.em-section__head {
  max-width: 840px;
  margin-bottom: clamp(30px, 5vw, 48px);
}

.em-section__head h2,
.em-page-title {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.em-section__head p,
.em-muted {
  color: var(--em-muted);
  font-size: 18px;
}

.em-category-grid {
  display: grid;
  grid-template-columns: 1.16fr .92fr .92fr;
  gap: 16px;
}

.em-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--em-line);
  border-radius: 8px;
  background: var(--em-white);
  box-shadow: 0 16px 44px rgba(7, 17, 38, .07);
}

.em-card--feature {
  border-color: rgba(50, 217, 97, .45);
  background: linear-gradient(135deg, #f5fff7 0%, #fff 58%);
}

.em-card__media {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-bottom: 18px;
}

.em-card__media img {
  width: auto;
  max-width: 210px;
  max-height: 42px;
  object-fit: contain;
}

.em-label {
  margin-bottom: 14px;
  color: var(--em-green-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.em-card h3 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.16;
}

.em-card p {
  color: var(--em-muted);
}

.em-mini-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: #2f3d4f;
  font-size: 15px;
  font-weight: 750;
}

.em-mini-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: baseline;
}

.em-mini-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--em-green);
}

.em-magazine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
}

.em-magazine-feature,
.em-info-panel {
  min-height: 360px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 17, 38, .76), rgba(7, 17, 38, .18)),
    var(--em-magazine-image, url("assets/lissy-titel.png")) center / cover no-repeat;
  color: var(--em-white);
}

.em-info-panel {
  background: var(--em-white);
  color: var(--em-ink);
  border: 1px solid var(--em-line);
  box-shadow: var(--em-shadow);
}

.em-post-grid,
.em-product-grid,
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.em-post-card,
.woocommerce ul.products li.product {
  padding: 18px;
  border: 1px solid var(--em-line);
  border-radius: 8px;
  background: var(--em-white);
  box-shadow: 0 12px 34px rgba(7, 17, 38, .06);
}

.em-post-card img,
.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
}

.em-post-card h3,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.em-post-card a {
  text-decoration: none;
}

.em-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.em-hub-tile {
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--em-line);
  border-radius: 8px;
  background: var(--em-white);
  text-decoration: none;
}

.em-hub-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.2;
}

.em-hub-tile span {
  color: var(--em-muted);
  font-size: 15px;
}

.em-split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, 1fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.em-footer {
  padding: 34px 20px;
  background: #071126;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.em-footer__inner {
  width: min(var(--em-wrap), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.em-footer a {
  color: inherit;
  text-decoration: none;
}

.em-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.em-content {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 84px) 0;
}

.em-content img {
  border-radius: 8px;
}

.em-notice {
  padding: 15px 17px;
  border: 1px solid rgba(11, 105, 178, .2);
  border-radius: 8px;
  background: #eef7ff;
  color: #123a59;
}

.woocommerce .woocommerce-breadcrumb {
  width: min(var(--em-wrap), calc(100% - 40px));
  margin: 24px auto 0;
  color: var(--em-muted);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 24px;
}

.woocommerce div.product {
  width: min(var(--em-wrap), calc(100% - 40px));
  margin: clamp(42px, 6vw, 72px) auto;
}

.woocommerce div.product .product_title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

.woocommerce div.product div.images img {
  border-radius: 8px;
}

@media (max-width: 980px) {
  .em-nav {
    display: none;
  }

  .em-category-grid,
  .em-magazine-grid,
  .em-split,
  .em-post-grid,
  .em-product-grid,
  .products,
  .em-hub-grid {
    grid-template-columns: 1fr;
  }

  .em-hero {
    min-height: auto;
    background:
      linear-gradient(90deg, rgba(7, 17, 38, .96) 0%, rgba(7, 17, 38, .86) 58%, rgba(7, 17, 38, .54) 100%),
      var(--em-hero-image, url("assets/ecomofa-hero.png")) center top / cover no-repeat;
  }
}

@media (max-width: 640px) {
  .em-header__inner {
    width: min(var(--em-wrap), calc(100% - 28px));
  }

  .em-brand img {
    width: 124px;
  }

  .em-actions .em-button {
    display: none;
  }

  .em-hero,
  .em-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .em-hero__actions .em-button,
  .em-actions-row .em-button {
    width: 100%;
  }

  .em-card {
    min-height: 0;
  }
}
