﻿/*
 Theme Name:   ieShop Theme
 Theme URI:    https://ieshop.org/
 Description:  Child Theme fuer ieShop auf Basis von Bricks.
 Author:       ieShop
 Author URI:   https://ieshop.org/
 Template:     bricks
 Version:      1.2.0
 Text Domain:  ieshop-theme
*/

:root {
  /* Schriftart */
  --ieShop-font-main: "Inter", Arial, sans-serif;

  /* Schriftgrössen – fluid, via Bricks Style Manager generiert (Skala "Typografie ieShop")
     --ieShop-font-size-2xs  ≈  8–10px   Labels, Badges
     --ieShop-font-size-xs   ≈ 10–14px   Sekundärtext, Footer-Links
     --ieShop-font-size-s    ≈ 13–18px   Kleintext
     --ieShop-font-size-m    ≈ 16–24px   Fliesstext (Baseline)
     --ieShop-font-size-l    ≈ 20–32px   Kleine Überschriften (H3)
     --ieShop-font-size-xl   ≈ 25–43px   Section Titles (H2)
     --ieShop-font-size-2xl  ≈ 31–57px   Hero-Überschriften (H1)        */

  /* Schriftstärken */
  --ieShop-font-weight-light:    200;
  --ieShop-font-weight-normal:   400;
  --ieShop-font-weight-medium:   500;
  --ieShop-font-weight-semibold: 600;
  --ieShop-font-weight-bold:     700;
  --ieShop-font-weight-xbold:    800;

  /* Zeilenhöhen */
  --ieShop-line-height-tight:  1.2;
  --ieShop-line-height-normal: 1.6;
  --ieShop-line-height-loose:  1.75;

  /* Buchstabenabstand */
  --ieShop-letter-spacing-wide:  0.09em;  /* Spaltenköpfe im Footer */
  --ieShop-letter-spacing-wider: 0.1em;   /* Labels (section-label) */

  /* Typografische Abstände (margin-top / margin-bottom um Textelemente) */
  /* Überschriften: viel Luft oben (trennt vom vorherigen Block),
     wenig unten (Überschrift „klebt" am zugehörigen Text) */
  --ieShop-heading-mt-h1: 2.5rem;   /* Abstand über H1 */
  --ieShop-heading-mb-h1: 0.5rem;   /* Abstand unter H1 */
  --ieShop-heading-mt-h2: 2.25rem;  /* Abstand über H2 */
  --ieShop-heading-mb-h2: 0.5rem;   /* Abstand unter H2 */
  --ieShop-heading-mt-h3: 2rem;     /* Abstand über H3 */
  --ieShop-heading-mb-h3: 0.4rem;   /* Abstand unter H3 */
  --ieShop-heading-mt-h4: 1.5rem;   /* Abstand über H4 */
  --ieShop-heading-mb-h4: 0.35rem;  /* Abstand unter H4 */

  /* Absatz-Abstände */
  --ieShop-paragraph-mt: 0;          /* Kein Abstand über Absatz (folgt auf Überschrift) */
  --ieShop-paragraph-mb: 1.25rem;    /* Abstand zwischen Absätzen */

  /* Abstände – fluid, via Bricks Style Manager generiert (Skala "Abstand ieShop")
     --ieShop-space-2xs  ≈  8–10px   Icon-Gap, kleinste Abstände
     --ieShop-space-xs   ≈ 10–14px   Kompakter Abstand
     --ieShop-space-s    ≈ 13–18px   Kleiner Abstand
     --ieShop-space-m    ≈ 16–24px   Standard-Padding (Baseline)
     --ieShop-space-l    ≈ 20–32px   Mittlerer Abstand
     --ieShop-space-xl   ≈ 25–43px   Grosser Abstand
     --ieShop-space-2xl  ≈ 31–57px   Sehr grosser Abstand             */

  /* Fixer Sektions-Abstand (zu gross für T-Shirt-Skala) */
  --ieShop-space-section: 72px;

  /* Schatten */
  --ieShop-shadow-sm:  0 2px 8px var(--ieShop-shadow);
  --ieShop-shadow-md:  0 2px 16px rgba(0, 0, 0, 0.18);
  --ieShop-shadow-lg:  0 4px 24px rgba(41, 64, 72, 0.13);

  /* Farben */
  --ieShop-primary: #294048;
  --ieShop-primary-hover: #1e2f35;
  --ieShop-secondary: #102027;
  --ieShop-secondary-hover: #0a161b;
  --ieShop-accent: #f69222;
  --ieShop-accent-hover: #d67e17;
  --ieShop-accent-tint: rgba(246, 146, 34, 0.10);   /* Helles Accent – Badge/Etikett Hintergrund */
  --ieShop-accent-border: rgba(246, 146, 34, 0.38); /* Badge/Etikett Rahmen                      */
  --ieShop-background: #f4fbfd;
  --ieShop-surface: #ffffff;
  --ieShop-highlight: #dbeef5;
  --ieShop-notice-bg: #fff6d8;
  --ieShop-success-bg: #d9f3e4;
  --ieShop-error-bg: #ffe1e1;
  --ieShop-button-bg: #f69222;
  --ieShop-button-bg-hover: #d67e17;
  --ieShop-button-text: #ffffff;
  --ieShop-text-main: #1c1c1c;
  --ieShop-text-muted: #5f5f5f;
  --ieShop-link: #294048;
  --ieShop-link-hover: #f69222;
  --ieShop-nav-text: rgba(255, 255, 255, 0.85);   /* Nav-Text auf dunklem Header */
  --ieShop-border: #dedede;
  --ieShop-divider: #e5e5e5;
  --ieShop-radius-sm: 8px;
  --ieShop-radius-md: 14px;
  --ieShop-radius-lg: 16px;
  --ieShop-radius-full: 999px;
  --ieShop-shadow: rgba(41, 64, 72, 0.09);
  --ieShop-shadow-color: rgba(0, 0, 0, 0.08);
}

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

body {
  margin: 0;
  font-family: var(--ieShop-font-main);
  color: var(--ieShop-text-main);
  background: var(--ieShop-background);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   Basis-Typografie – Überschriften
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ieShop-font-main);
  font-weight: var(--ieShop-font-weight-bold);
  line-height: var(--ieShop-line-height-tight);
  color: var(--ieShop-primary);
}

h1 {
  font-size: var(--ieShop-font-size-2xl);       /* 40px */
  margin-top: var(--ieShop-heading-mt-h1);       /* 2.5rem oben  */
  margin-bottom: var(--ieShop-heading-mb-h1);    /* 0.5rem unten */
}

h2 {
  font-size: var(--ieShop-font-size-xl);         /* 30px */
  margin-top: var(--ieShop-heading-mt-h2);       /* 2.25rem oben  */
  margin-bottom: var(--ieShop-heading-mb-h2);    /* 0.5rem unten  */
}

h3 {
  font-size: var(--ieShop-font-size-l);          /* fluid ~20–32px */
  margin-top: var(--ieShop-heading-mt-h3);
  margin-bottom: var(--ieShop-heading-mb-h3);
}

h4 {
  font-size: var(--ieShop-font-size-m);          /* fluid ~16–24px */
  margin-top: var(--ieShop-heading-mt-h4);
  margin-bottom: var(--ieShop-heading-mb-h4);
}

h5, h6 {
  font-size: var(--ieShop-font-size-base);       /* 16px */
  margin-top: var(--ieShop-heading-mt-h4);
  margin-bottom: var(--ieShop-heading-mb-h4);
}

p {
  margin-top: var(--ieShop-paragraph-mt);        /* 0 – folgt direkt auf Überschrift */
  margin-bottom: var(--ieShop-paragraph-mb);     /* 1.25rem zwischen Absätzen */
}

/* Layout helpers */
.c-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.c-section {
  padding: var(--ieShop-space-section) 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ieShop-accent);
  margin: 0 0 10px;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--ieShop-primary);
}

.c-text {
  font-size: 1rem;
  color: var(--ieShop-text-muted);
  line-height: 1.75;
}

.c-text-muted {
  font-size: 0.9rem;
  color: var(--ieShop-text-muted);
}

/* Header (mockup v3) */
.site-header {
  background: var(--ieShop-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.top-bar {
  background: #042758;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
}

.top-bar-social a:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 16px 20px 16px 0;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.nav-brand .ie {
  color: var(--ieShop-accent);
}

.nav-brand .name {
  color: #ffffff;
}

.nav-links {
  display: flex;
  flex: 1;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 20px 14px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 3px;
  background: var(--ieShop-accent);
  border-radius: 3px 3px 0 0;
  transition: left 0.25s ease, right 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  left: 5px;
  right: 5px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
  flex-shrink: 0;
}

.nav-xin {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ieShop-accent);
  background: rgba(246, 146, 34, 0.12);
  border: 1px solid rgba(246, 146, 34, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
}

.nav-cart {
  background: var(--ieShop-accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
}

.nav-cart:hover {
  background: var(--ieShop-accent-hover);
}

/* Footer (mockup v3) */
.site-footer {
  background: var(--ieShop-secondary);
  color: rgba(255, 255, 255, 0.58);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.footer-brand-name .ie {
  color: var(--ieShop-accent);
}

.footer-brand-name .name {
  color: #ffffff;
}

.footer-tagline {
  font-size: 0.85rem;
  max-width: 240px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #ffffff;
  margin: 0 0 14px;
}

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

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.payment-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-badge {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}

.pay-badge.xin {
  background: rgba(246, 146, 34, 0.12);
  border-color: rgba(246, 146, 34, 0.3);
  color: var(--ieShop-accent);
}

/* Generic buttons */
.btn-primary {
  background: var(--ieShop-accent);
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--ieShop-accent-hover);
}

/* =====================================================
   Bricks Builder – Klassen-basiertes Layout
   ===================================================== */

/* Header: nav-menu Element (Bricks generiert <nav><ul>) */
.nav-inner nav {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.nav-inner nav > ul {
  display: flex;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: stretch;
}

.nav-inner nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 20px 14px;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-inner nav > ul > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 3px;
  background: var(--ieShop-accent);
  border-radius: 3px 3px 0 0;
  transition: left 0.25s ease, right 0.25s ease;
}

.nav-inner nav > ul > li > a:hover,
.nav-inner nav > ul > li.current-menu-item > a {
  color: #ffffff;
}

.nav-inner nav > ul > li > a:hover::after,
.nav-inner nav > ul > li.current-menu-item > a::after {
  left: 5px;
  right: 5px;
}

/* Header: rechte Seite */
.ieshop-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Footer: Grid-Layout (Bricks Container) */
.ieshop-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.ieshop-footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ieshop-footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #ffffff;
  margin: 0;
}

.ieshop-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* WooCommerce Seiten */
.ieshop-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.ieshop-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ieShop-primary);
  margin: 0 0 32px;
}

/* Shop Archive: Produkt-Grid */
.ieshop-products-wrap .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ieshop-products-wrap li.product {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--ieShop-shadow);
  transition: box-shadow 0.2s;
}

.ieshop-products-wrap li.product:hover {
  box-shadow: 0 4px 24px rgba(41, 64, 72, 0.13);
}

.ieshop-products-wrap .woocommerce-loop-product__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ieShop-primary);
}

.ieshop-products-wrap .price {
  color: var(--ieShop-accent);
  font-weight: 700;
}

.ieshop-products-wrap .button {
  background: var(--ieShop-accent) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  border: none !important;
}

.ieshop-products-wrap .button:hover {
  background: var(--ieShop-accent-hover) !important;
}

/* Single Product */
.ieshop-product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ieshop-product-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =====================================================
   Responsive
   ===================================================== */

/* Responsive */
@media (max-width: 800px) {
  .footer-top {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .ieshop-products-wrap .products {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .ieshop-product-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .ieshop-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .ieshop-products-wrap .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 560px) {
  * {
    min-width: 0;
  }

  .top-bar {
    display: none;
  }

  .nav-links,
  .nav-xin {
    display: none;
  }

  .ieshop-nav-right .nav-xin {
    display: none;
  }

  .site-footer {
    padding: 42px 16px 28px;
  }

  .ieshop-footer-grid {
    grid-template-columns: 1fr;
  }

  .ieshop-page-wrap {
    padding: 32px 16px 48px;
  }
}

