/*
Theme Name: Kadence Child – LMT Garage Works
Theme URI: https://lmt-garage-works.com
Description: Child Theme für das LMT Garage Works Redesign. Design-System (Farben, Typografie, Spacing) als CSS Custom Properties, lokal gehostete Fonts (Fraunces + Inter), ruhige Premium-Interior-Ästhetik.
Author: LMT Garage Works
Template: kadence
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: kadence-child
*/

/* =========================================================
   1. FONTS – lokal gehostet (DSGVO), font-display: swap
   ========================================================= */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/fraunces-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/archivo-600.woff2') format('woff2');
}

/* =========================================================
   2. DESIGN-TOKENS
   Farbwelt: hell, warm, wohnlich – Premium-Interior.
   Mapping auf Kadence-Variablen (--global-palette1…9), damit
   Customizer, Kadence Blocks und Custom CSS konsistent bleiben.
   ========================================================= */
:root {
  /* LMT Tokens */
  --color-bg: #FAF8F5;
  --color-surface: #F1EDE7;
  --color-surface-dark: #1E2124;
  --color-text: #24272B;
  --color-text-muted: #6E6A63;
  --color-accent: #2E4057;
  --color-accent-hover: #3A5170;
  --color-brand: #2B57D6; /* Logo-Blau – nur für dezente Akzente (Nav, Details) */

  /* Typografie – Talgh-Richtung: sans-dominant (Archivo Headlines + Inter Text) */
  --font-heading: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-button: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --radius: 10px;
  --shadow-soft: 0 8px 30px rgba(30, 33, 36, 0.08);
  --section-pad: clamp(4rem, 9vw, 8rem);
  --content-width: 1200px;

  /* Kadence Global Palette Mapping */
  --global-palette1: var(--color-accent);
  --global-palette2: var(--color-accent-hover);
  --global-palette3: var(--color-text);
  --global-palette4: #3A3E44;
  --global-palette5: var(--color-text-muted);
  --global-palette6: #A8A29A;
  --global-palette7: var(--color-surface);
  --global-palette8: var(--color-bg);
  --global-palette9: #FFFFFF;

  /* Kadence Font-Variablen überschreiben */
  --global-heading-font-family: var(--font-heading);
  --global-body-font-family: var(--font-body);
}

/* =========================================================
   3. BASIS-TYPOGRAFIE
   Exakt 2 Schriften: Fraunces (Headlines) + Inter (Text/UI).
   ========================================================= */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.entry-title, .site-title {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.12;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); font-weight: 600; }

p { max-width: 65ch; }

a { color: var(--color-accent); transition: color 0.25s ease; }
a:hover { color: var(--color-accent-hover); }

/* =========================================================
   4. BUTTONS – Accent-Blau, ruhig, sanfter Lift beim Hover
   (ersetzt das alte Schwarz-!important-CSS aus dem Customizer)
   ========================================================= */
.button, .kb-button, .wp-block-button__link,
.wp-element-button,
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce button.single_add_to_cart_button,
.wc-block-components-button:not(.is-link),
.header-button, a.header-button {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-button);
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: none;
  border-radius: 999px;
  transition: background-color 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover, .kb-button:hover, .wp-block-button__link:hover,
.wp-element-button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce button.single_add_to_cart_button:hover,
.wc-block-components-button:not(.is-link):hover,
.header-button:hover, a.header-button:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   5. BILDER & KARTEN
   ========================================================= */
.entry-content img,
.wp-block-image img,
.wp-block-cover,
.woocommerce div.product div.images img {
  border-radius: var(--radius);
}

/* Sanfter Zoom in overflow-hidden-Containern */
.lmt-zoom {
  overflow: hidden;
  border-radius: var(--radius);
}
.lmt-zoom img {
  transition: transform 0.7s ease;
}
.lmt-zoom:hover img {
  transform: scale(1.03);
}

/* =========================================================
   6. SCROLL-REVEAL (Klassen, JS via assets/js/theme.js)
   ========================================================= */
.lmt-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.lmt-reveal.lmt-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   7. HEADER – sticky, hell, feine Linie, Blur beim Scrollen
   ========================================================= */
#masthead.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  border-bottom: 1px solid rgba(36, 39, 43, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#masthead.site-header.lmt-scrolled {
  background: rgba(250, 248, 245, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(30, 33, 36, 0.06);
}
.site-header .site-main-header-wrap .site-header-row-container-inner,
.site-header .site-main-header-inner-wrap {
  background: transparent;
}

/* Logo: transparente Wortmarke direkt auf dem hellen Header */
.site-header .custom-logo,
.site-header .site-logo-anchor img {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 782px) {
  .site-header .custom-logo,
  .site-header .site-logo-anchor img { height: 32px; }
}

/* Falls Text-Titel neben dem Logo mitliefe: ausblenden */
.site-header .site-branding .site-title { display: none; }

/* Dropdown-Submenüs: ruhige weiße Karte.
   WICHTIG: Kadence färbt Dropdown-Links mit --global-palette8 (bei unserer
   Palette = Off-White) und rechnet mit dunklem Dropdown-Hintergrund –
   daher hier volle Selektor-Parität + !important, sonst weiß auf weiß. */
.main-navigation .primary-menu-container > ul ul.sub-menu,
.main-navigation .primary-menu-container > ul ul.submenu,
.header-navigation .header-menu-container ul ul {
  background: #fff !important;
  border: 1px solid rgba(36, 39, 43, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 0.4rem;
  min-width: 230px;
}
.header-navigation .header-menu-container ul ul li.menu-item > a,
.main-navigation .primary-menu-container ul ul li a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-text) !important;
  background: transparent !important;
  padding: 0.6rem 0.9rem;
  border-radius: 7px;
  width: auto;
}
/* Aktueller Menüpunkt: dezent markiert statt Kadence' dunkler Pille */
.header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a,
.header-navigation .header-menu-container ul ul li.menu-item.current_page_item > a {
  background: var(--color-surface) !important;
  color: var(--color-accent) !important;
}
.header-navigation .header-menu-container ul ul li.menu-item > a:hover,
.main-navigation .primary-menu-container ul ul li a:hover {
  background: var(--color-surface) !important;
  color: var(--color-accent) !important;
}
/* Unterstreichungs-Animation nur auf Top-Level */
.main-navigation .primary-menu-container ul ul li a::after { display: none; }

/* Warenkorb-Icon im Header */
.lmt-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem;
  margin-inline: 0.35rem;
}
.lmt-cart-ico {
  display: inline-block;
  width: 23px;
  height: 23px;
  background-color: var(--color-text);
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
  --icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6"><path d="M5.5 7.5h13l-1.1 11a1.6 1.6 0 01-1.6 1.5H8.2a1.6 1.6 0 01-1.6-1.5l-1.1-11z"/><path d="M9 9.5V6a3 3 0 016 0v3.5"/></svg>');
  transition: background-color 0.2s ease;
}
.lmt-cart:hover .lmt-cart-ico { background-color: var(--color-brand); }
.lmt-cart-count {
  position: absolute;
  top: -1px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.lmt-cart-count[hidden] { display: none; }

/* Navigation: ruhig, animierte Unterstreichung */
.main-navigation .primary-menu-container > ul > li > a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.97rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  position: relative;
}
.main-navigation .primary-menu-container > ul > li > a::after {
  content: '';
  position: absolute;
  left: 1em;
  right: 100%;
  bottom: 0.4em;
  height: 1px;
  background: var(--color-brand);
  transition: right 0.3s ease;
}
.main-navigation .primary-menu-container > ul > li > a:hover::after,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a::after {
  right: 1em;
}
.main-navigation .primary-menu-container > ul > li > a:hover {
  color: var(--color-accent);
}

/* Mobile-Menü: heller Drawer statt Kadence-Schwarz
   (Kadence-Default: fast schwarzer Drawer + dunkle Linkfarbe aus unserer
   Palette = unlesbar auf dem Handy). */
#mobile-drawer .drawer-inner {
  background: var(--color-bg) !important;
}
#mobile-drawer .mobile-navigation ul li a,
#mobile-drawer .mobile-navigation ul li.menu-item > a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--color-text) !important;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
#mobile-drawer .mobile-navigation ul li a:hover {
  color: var(--color-accent) !important;
}
#mobile-drawer .drawer-header .drawer-toggle,
#mobile-drawer .drawer-header .drawer-toggle:focus {
  color: var(--color-text) !important;
}
#mobile-drawer .mobile-navigation ul li .dropdown-nav-toggle,
#mobile-drawer .mobile-navigation ul li .dropdown-nav-toggle svg {
  color: var(--color-text) !important;
  fill: var(--color-text);
}
#mobile-drawer .mobile-navigation ul ul.sub-menu {
  background: transparent !important;
}
#mobile-drawer .mobile-navigation ul ul.sub-menu li a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted) !important;
}

/* =========================================================
   8. SEKTIONEN (Startseite) – großzügig, editorial
   ========================================================= */
.lmt-section,
.lmt-usp {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  padding-left: clamp(1.5rem, 5vw, 2.5rem);
  padding-right: clamp(1.5rem, 5vw, 2.5rem);
}

/* Inhaltsbreiten HART erzwingen: WordPress rendert die im Block-Markup
   definierten contentSize-Constraints (is-layout-constrained) hier nicht –
   ohne diese Regeln laufen Sektionsinhalte unkontrolliert in die Breite. */
.lmt-section > *,
.lmt-usp > * {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}
/* Lese-Sektionen schmaler & ruhiger */
.lmt-faq > *,
.lmt-quotes > * {
  max-width: 820px;
}
/* FAQ-Antworten: volle Containerbreite statt 65ch-Insel,
   damit Text und Trennlinien bündig laufen */
.lmt-faq-item p { max-width: none; }

.lmt-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.lmt-eyebrow-light { color: rgba(255, 255, 255, 0.6); }

.lmt-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 55ch;
}

/* Hero */
.lmt-hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.lmt-hero-img img { box-shadow: var(--shadow-soft); }

/* Ghost-/Outline-Button */
.lmt-btn-ghost .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}
.lmt-btn-ghost .wp-block-button__link:hover {
  background: var(--color-accent);
  color: #fff;
}

/* USP-Zeile */
.lmt-usp {
  padding-top: 0;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.lmt-usp-item { text-align: center; padding: 0 1rem; }
.lmt-usp-icon-wrap { margin-bottom: 0.75rem; }
.lmt-usp-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}
.lmt-usp-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-left: auto;
  margin-right: auto;
}

/* Line-Icons als CSS-Masken (kein Icon-Font, kein Plugin) */
.lmt-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: var(--color-accent);
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}
.lmt-icon-tire { --icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5"><circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="4.5"/><path d="M12 3v2.5M12 18.5V21M3 12h2.5M18.5 12H21M5.6 5.6l1.8 1.8M16.6 16.6l1.8 1.8M18.4 5.6l-1.8 1.8M7.4 16.6l-1.8 1.8"/></svg>'); }
.lmt-icon-hand { --icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5"><path d="M7 11.5V6a1.5 1.5 0 013 0v4.5M10 10V4.5a1.5 1.5 0 013 0V10M13 10V5.5a1.5 1.5 0 013 0V11M16 11V8.5a1.5 1.5 0 013 0V14a7 7 0 01-7 7h-1a7 7 0 01-6-3.4L3.2 14a1.6 1.6 0 012.6-1.8L7 13.5"/></svg>'); }
.lmt-icon-unique { --icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5"><path d="M12 3a7 7 0 00-7 7v3a9 9 0 001.8 5.4M12 6.5A3.5 3.5 0 008.5 10v3.5a6 6 0 001.2 3.6M12 10v2a8 8 0 002 5.3M15.5 10a3.5 3.5 0 00-.4-1.6M19 10v3a12 12 0 01-.8 4.3M15.5 13.5a8.5 8.5 0 01-1 4"/></svg>'); }
.lmt-icon-seal { --icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.5"><path d="M12 3l7 3v5c0 4.5-3 8.5-7 10-4-1.5-7-5.5-7-10V6z"/><path d="M9 12l2 2 4-4.5"/></svg>'); }

/* Produkt-Sektion */
.lmt-product { background-color: var(--color-surface); }
.lmt-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: none; }
.lmt-chip {
  display: inline-block;
  border: 1px solid rgba(36, 39, 43, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.88rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.6);
}
.lmt-price { font-size: 1.5rem; margin-top: 1rem; margin-bottom: 0.15rem; }
.lmt-price strong { font-weight: 600; }
.lmt-tax-note { font-size: 0.85rem; color: var(--color-text-muted); }

/* Dunkle Story-Sektion (sparsam: nur hier + Footer) */
.lmt-dark { background-color: var(--color-surface-dark); }
.lmt-dark h2, .lmt-dark h3 { color: #FAF8F5; }
.lmt-dark p { color: rgba(250, 248, 245, 0.78); }
.lmt-dark .lmt-eyebrow { color: rgba(250, 248, 245, 0.55); }

/* Galerie: einheitliche 4:3-Kacheln statt wilder Hochformat-Crops */
.lmt-gallery .wp-block-gallery { gap: 1.25rem; }
.lmt-gallery .wp-block-gallery .wp-block-image {
  margin: 0;
}
.lmt-gallery .wp-block-gallery .wp-block-image img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Bildausschnitte: Tisch liegt bei den Hochformat-Fotos unterhalb der Mitte */
.lmt-gallery .wp-block-gallery .wp-block-image:nth-child(1) img { object-position: center 62%; }
.lmt-gallery .wp-block-gallery .wp-block-image:nth-child(2) img { object-position: center 42%; }
.lmt-gallery .wp-block-gallery .wp-block-image:nth-child(3) img { object-position: center 55%; }

/* Kundenstimmen */
.lmt-quotes { text-align: center; }
.lmt-quote {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.45;
  color: var(--color-text);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
.lmt-quote-source {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: none;
}
.lmt-quotes .lmt-eyebrow { text-align: center; }

/* FAQ als <details>-Accordion */
.lmt-faq-item {
  border-bottom: 1px solid rgba(36, 39, 43, 0.12);
  padding: 1.1rem 0;
}
.lmt-faq-item summary {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.lmt-faq-item summary::-webkit-details-marker { display: none; }
.lmt-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform 0.25s ease;
}
.lmt-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.lmt-faq-item p {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
}

/* =========================================================
   8b. WOOCOMMERCE – Produktseite, Warenkorb, Kasse
   ========================================================= */
/* Varianten-Swatches (JS baut Buttons, Original-Select bleibt unsichtbar im DOM) */
select.lmt-swatch-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.lmt-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.lmt-swatch {
  border: 1px solid rgba(36, 39, 43, 0.22);
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease,
              color 0.2s ease, transform 0.2s ease;
}
/* Kadence setzt auf Buttons (u.a. :focus/:active) die Akzentfarbe als
   Textfarbe – das würde beim aktiven Swatch Text=Hintergrund (unsichtbar)
   ergeben. Farben daher erzwingen (wie die übrige Button-Behandlung der Seite). */
.lmt-swatch,
.lmt-swatch:focus,
.lmt-swatch:focus-visible {
  color: var(--color-text) !important;
  background: #fff !important;
}
.lmt-swatch:hover:not(:disabled):not(.is-active),
.lmt-swatch:focus:not(:disabled):not(.is-active) {
  border-color: var(--color-accent);
  color: var(--color-accent) !important;
  transform: translateY(-1px);
}
.lmt-swatch.is-active,
.lmt-swatch.is-active:hover,
.lmt-swatch.is-active:focus,
.lmt-swatch.is-active:focus-visible {
  background: var(--color-accent) !important;
  border-color: var(--color-accent);
  color: #fff !important;
}
.lmt-swatch:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.woocommerce div.product table.variations th.label {
  padding-top: 0.9rem;
  font-weight: 500;
}

/* Preis & Variantenpreis deutlich */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-text);
}
.woocommerce-variation-price { margin: 0.75rem 0; }

/* Add-to-Cart groß */
.woocommerce div.product form.cart .single_add_to_cart_button {
  padding: 0.9rem 2.2rem;
  font-size: 1.05rem;
}
.woocommerce div.product form.cart div.quantity .qty {
  border-radius: var(--radius);
  border: 1px solid rgba(36, 39, 43, 0.22);
  padding: 0.7rem 0.5rem;
}

/* Produkt-Titel in Fraunces, ruhig */
.woocommerce div.product .product_title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

/* Warenkorb & Kasse: helle Flächen, gleiche Radien */
.woocommerce table.shop_table,
.wc-block-cart .wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-order-summary {
  border-radius: var(--radius);
  border-color: rgba(36, 39, 43, 0.12);
}
.woocommerce-checkout #payment {
  background: var(--color-surface);
  border-radius: var(--radius);
}

/* =========================================================
   8c. STANDARD-SEITEN – zentrierte Lesebreite mit Randabstand
   (Kadence-Container startete bei x=0: Kontakt/Impressum/FAQ
   klebten ohne jeden Abstand am linken Seitenrand)
   ========================================================= */
body.page.content-width-normal:not(.home):not(.woocommerce-page) .entry-header,
body.page.content-width-normal:not(.home):not(.woocommerce-page) .entry-content {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}
body.page.content-width-normal:not(.home):not(.woocommerce-page) .entry-content p {
  max-width: none; /* Container gibt die Lesebreite vor – keine 65ch-Insel */
}
body.page .entry-header .entry-title {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.lmt-kontakt-direkt {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(36, 39, 43, 0.12);
  color: var(--color-text-muted);
}

/* =========================================================
   8d. KONTAKTFORMULAR (Contact Form 7) im Design-System
   ========================================================= */
.lmt-form input[type="text"],
.lmt-form input[type="email"],
.lmt-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(36, 39, 43, 0.22);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lmt-form input:focus,
.lmt-form textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(43, 87, 214, 0.12);
}
.lmt-form textarea { min-height: 160px; resize: vertical; }
.lmt-form p { max-width: none; margin-bottom: 0.4rem; }
.lmt-form-note {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}
.lmt-form input[type="submit"],
.wpcf7-submit {
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  color: #fff;
  font-family: var(--font-button);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.lmt-form input[type="submit"]:hover,
.wpcf7-submit:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.wpcf7 form .wpcf7-response-output {
  border-radius: var(--radius);
  border-color: var(--color-brand);
  padding: 0.8rem 1rem;
  margin: 1.5rem 0 0;
}
.wpcf7-not-valid-tip { font-size: 0.83rem; color: #b8442c; }

/* =========================================================
   8e. TALGH-STARTSEITE – zentriert, viel Weißraum, Transparenz-Grid
   ========================================================= */
/* Zentrierte Sektionen: Text mittig, Absätze/Untertitel eingemittet */
.lmt-hero,
.lmt-center { text-align: center; }
.lmt-hero .lmt-eyebrow,
.lmt-center .lmt-eyebrow { margin-inline: auto; }
.lmt-hero .lmt-sub { max-width: 46ch; margin-inline: auto; }
.lmt-center > p,
.lmt-center .lmt-sub { margin-inline: auto; }
/* Button-Gruppen in zentrierten Sektionen mittig (flex folgt nicht text-align) */
.lmt-hero .wp-block-buttons,
.lmt-center .wp-block-buttons { justify-content: center; }

/* Großes Produkt-Objekt, zentriert (Hero + Produktsektion) */
.lmt-object-img {
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: clamp(2rem, 5vw, 3.5rem) !important;
}
.lmt-object-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
/* Bildausschnitte pro Sektion (wie in der Galerie erprobt) */
.lmt-hero .lmt-object-img img { object-position: center 42%; }
.lmt-product .lmt-object-img img { object-position: center 60%; }

/* Preiszeile unter dem Hero-Objekt */
.lmt-price-line {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem !important;
  max-width: none;
}
.lmt-price-line strong { color: var(--color-text); font-weight: 600; }

/* Transparenz-Grid „Was du bekommst – und was nicht" */
.lmt-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(36, 39, 43, 0.10);
  border: 1px solid rgba(36, 39, 43, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 900px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}
.lmt-fact {
  background: var(--color-bg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  text-align: left;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.lmt-fact-k {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.lmt-fact strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0.7rem 0 0.45rem;
}
@media (max-width: 640px) {
  .lmt-facts-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   9. FOOTER – dunkel, zentriert, mit Logo + Zahlarten
   ========================================================= */
#colophon {
  background-color: var(--color-surface-dark);
  color: rgba(250, 248, 245, 0.75);
}
#colophon .site-bottom-footer-wrap .site-container,
#colophon .site-footer-row-container-inner {
  background: transparent;
}
.lmt-footer {
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}
.lmt-footer-logo {
  height: 36px;
  width: auto;
  opacity: 0.95;
}
.lmt-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
}
.lmt-footer-links a {
  color: rgba(250, 248, 245, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.lmt-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-brand);
}
.lmt-footer-social {
  display: flex;
  gap: 0.75rem;
}
.lmt-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(250, 248, 245, 0.22);
  border-radius: 50%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.lmt-social:hover {
  border-color: var(--color-brand);
  transform: translateY(-1px);
}
.lmt-social-ico {
  display: inline-block;
  width: 19px;
  height: 19px;
  background-color: rgba(250, 248, 245, 0.85);
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}
.lmt-social:hover .lmt-social-ico { background-color: #fff; }
.lmt-ico-instagram { --icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.8"><rect x="3" y="3" width="18" height="18" rx="5"/><circle cx="12" cy="12" r="4"/><circle cx="17.2" cy="6.8" r="1.3" fill="black" stroke="none"/></svg>'); }
.lmt-ico-tiktok { --icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M20.5 8.6a6.3 6.3 0 01-4.3-1.7v7.6a5.9 5.9 0 11-5.9-5.9c.3 0 .7 0 1 .1v3.1a2.8 2.8 0 102 2.7V1.5h3a6.3 6.3 0 004.2 4z"/></svg>'); }

.lmt-footer-pay {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
/* Original-Zahlungslogos auf weißen Pills (dunkler Footer) */
.lmt-pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  height: 30px;
  padding: 0 11px;
}
.lmt-pay-logo img {
  height: 15px;
  width: auto;
  display: block;
}
.lmt-pay {
  border: 1px solid rgba(250, 248, 245, 0.22);
  border-radius: 7px;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(250, 248, 245, 0.85);
}
.lmt-footer-copy {
  font-size: 0.83rem;
  color: rgba(250, 248, 245, 0.5);
  max-width: none;
  margin: 0;
}

/* =========================================================
   10. PRODUKTSEITE – Spacing & Aufräumen
   ========================================================= */
/* Beschreibungs-Tabs: nicht am Seitenrand kleben, lesbare Breite */
.single-product .woocommerce-tabs {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.single-product .woocommerce-tabs .entry-content-wrap,
.single-product .woocommerce-Tabs-panel {
  max-width: 72ch;
}
/* Produkt-Summary: etwas Luft */
.single-product div.product summary,
.single-product div.product .entry-summary {
  padding-inline: clamp(0.5rem, 1.5vw, 1rem);
}
/* Add-to-Cart: Text sauber zentriert (war vertikal verschoben) */
.woocommerce div.product form.cart .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  padding: 0.85rem 2rem;
}
/* Germanized-Hinweise: ruhig; leerer Versandkosten-Link entschärft */
.wc-gzd-additional-info {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.shipping-costs-info a[href=""] {
  pointer-events: none;
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   11. ABSTÄNDE & RHYTHMUS – nichts darf "andocken"
   ========================================================= */
/* Gestapelte Spalten (mobil) brauchen vertikalen Abstand */
.wp-block-columns {
  row-gap: 2.25rem;
}
.wp-block-buttons {
  gap: 0.75rem 1rem;
}

/* Produktseite: klare Trennung der Bausteine */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  margin: 0.75rem 0 1rem;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  margin-bottom: 1.5rem;
}
.woocommerce div.product form.cart {
  margin: 1.75rem 0;
}
.woocommerce div.product table.variations {
  margin-bottom: 1.25rem;
}
.woocommerce div.product form.cart div.quantity {
  margin-right: 0.75rem;
}
.woocommerce div.product .product_meta {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(36, 39, 43, 0.1);
}
.woocommerce div.product .wc-gzd-additional-info {
  margin: 0.35rem 0;
}
.single-product .ppc-button-wrapper,
.single-product .ppcp-messages {
  margin-top: 1.25rem;
}

/* Formularfelder mit Luft */
.lmt-form p { margin-bottom: 1rem; }

/* Mobil: mehr Abstand zum Displayrand, überall */
@media (max-width: 782px) {
  #masthead .site-container,
  #colophon .site-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .single-product div.product {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .single-product .woocommerce-tabs {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .woocommerce .woocommerce-breadcrumb {
    padding-left: 0.25rem;
  }
  body.page.content-width-normal:not(.home):not(.woocommerce-page) .entry-header,
  body.page.content-width-normal:not(.home):not(.woocommerce-page) .entry-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  /* Warenkorb/Kasse (Blocks) nicht an den Rand kleben lassen */
  .woocommerce-cart .entry-content,
  .woocommerce-checkout .entry-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  /* Sektionen mobil: fester großzügiger Rand */
  .lmt-section,
  .lmt-usp {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  /* USP-Punkte gestapelt: Abstand zwischen den Karten */
  .lmt-usp-item {
    padding-bottom: 0.5rem;
  }
}

/* =========================================================
   12. MIKRO-ANIMATIONEN – ruhig, editorial, nur transform/opacity
   ========================================================= */
html { scroll-behavior: smooth; }

@keyframes lmt-kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
@keyframes lmt-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes lmt-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes lmt-fade-slide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero-Bild: sanfter Ken-Burns beim Laden (einmalig, sehr subtil) */
.lmt-hero-img img {
  animation: lmt-kenburns 14s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
.lmt-hero-img:hover img { transform: none; } /* kein Hover-Zoom im Hero */

/* USP-Icons: federnder Pop, sobald die Sektion sichtbar wird */
.lmt-usp-item.lmt-visible .lmt-icon {
  animation: lmt-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.lmt-usp .wp-block-column:nth-child(2).lmt-visible .lmt-icon { animation-delay: 0.08s; }
.lmt-usp .wp-block-column:nth-child(3).lmt-visible .lmt-icon { animation-delay: 0.16s; }
.lmt-usp .wp-block-column:nth-child(4).lmt-visible .lmt-icon { animation-delay: 0.24s; }

/* Primäre Buttons: Pfeil gleitet beim Hover herein */
.wp-block-button:not(.is-style-outline) .wp-block-button__link::after {
  content: '→';
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  vertical-align: baseline;
  transform: translateX(-4px);
  transition: max-width 0.3s ease, opacity 0.3s ease, transform 0.3s ease, margin-left 0.3s ease;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover::after {
  max-width: 1.2em;
  margin-left: 0.45em;
  opacity: 1;
  transform: translateX(0);
}

/* FAQ: Antwort gleitet sanft auf */
.lmt-faq-item[open] > *:not(summary) {
  animation: lmt-fade-slide 0.35s ease-out both;
}

/* Warenkorb-Badge pulsiert, wenn etwas dazukommt */
.lmt-cart-count.lmt-bump-anim {
  animation: lmt-bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Größen-Swatch: kleiner Pop bei Auswahl */
.lmt-swatch.lmt-bump-anim {
  animation: lmt-bump 0.3s ease-out;
}

/* Header: Logo schrumpft sanft beim Scrollen */
.site-header .custom-logo {
  transition: height 0.3s ease;
}
.site-header.lmt-scrolled .custom-logo {
  height: 33px;
}

/* Galerie-Bilder faden gestaffelt ein (Klassen setzt theme.js) */
.lmt-gallery .wp-block-image.lmt-reveal {
  transition-duration: 0.7s;
}

@media (prefers-reduced-motion: reduce) {
  .lmt-hero-img img,
  .lmt-usp-item.lmt-visible .lmt-icon,
  .lmt-faq-item[open] > *:not(summary),
  .lmt-cart-count.lmt-bump-anim,
  .lmt-swatch.lmt-bump-anim {
    animation: none !important;
  }
  .wp-block-button .wp-block-button__link::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lmt-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .lmt-zoom img,
  .button, .kb-button, .wp-block-button__link {
    transition: none;
  }
  html {
    scroll-behavior: auto !important;
  }
}
