/*
 Theme Name:     Books People Places
 Template:       blocksy
 Version:        1.2
 Author:         Sammy Richter
 Description:    Minimalistisch & Edel
 Text Domain:    https://bookspeopleplaces.com/
*/

/* ══════════════════════════════════════════════════════════════
   MINIMAL ELEGANCE - Clean & Refined
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bpp-white: #ffffff;
  --bpp-light: #f8f8f8;
  --bpp-gray-100: #f0f0f0;
  --bpp-gray-200: #e0e0e0;
  --bpp-gray-400: #888888;
  --bpp-gray-600: #555555;
  --bpp-black: #111111;
  --bpp-accent: #000000;
  
  /* Conversion-optimierte Schriften */
  --bpp-font-display: 'DM Serif Display', Georgia, serif;
  --bpp-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base - Optimiert für Lesbarkeit & Vertrauen */
body {
  font-family: var(--bpp-font-body);
  background: var(--bpp-white);
  color: var(--bpp-black);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Überschriften - Klar & Vertrauenswürdig */
h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .product_title,
.woocommerce-loop-product__title {
  font-family: var(--bpp-font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--bpp-black);
  line-height: 1.2;
}

h1, .entry-title, .page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

/* Header */
.ct-header {
  background: var(--bpp-white);
  border-bottom: 1px solid var(--bpp-gray-200);
}

.ct-header nav a,
.ct-header .ct-menu > li > a {
  font-family: var(--bpp-font-sans);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bpp-gray-600);
}

.ct-header nav a:hover,
.ct-header .ct-menu > li > a:hover {
  color: var(--bpp-black);
}

/* Buttons */
.wp-block-button__link,
.button, button[type="submit"], input[type="submit"],
.woocommerce a.button, .woocommerce button.button {
  font-family: var(--bpp-font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 0;
}

.wp-block-button__link,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--bpp-black);
  color: var(--bpp-white);
  border: 1px solid var(--bpp-black);
}

.wp-block-button__link:hover,
.woocommerce a.button.alt:hover {
  background: var(--bpp-white);
  color: var(--bpp-black);
}

.woocommerce a.button:not(.alt),
.woocommerce button.button:not(.alt) {
  background: transparent;
  color: var(--bpp-black);
  border: 1px solid var(--bpp-gray-200);
}

.woocommerce a.button:not(.alt):hover {
  border-color: var(--bpp-black);
}

/* Produkte - Conversion-optimiert */
.woocommerce ul.products li.product,
.products .product {
  background: var(--bpp-white);
  text-align: left;
  padding: 0 0 1.5rem 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--bpp-font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--bpp-black);
  margin-top: 0.75rem;
  line-height: 1.3;
}

/* Preis prominent - steigert Kaufbereitschaft */
.woocommerce ul.products li.product .price {
  font-family: var(--bpp-font-body);
  font-weight: 600;
  color: var(--bpp-black);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Add-to-Cart Button - Call-to-Action */
.woocommerce ul.products li.product .button {
  width: 100%;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
}

/* Einzelprodukt - Conversion-optimiert */
.single-product .product_title {
  font-family: var(--bpp-font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.single-product .summary .product_title + .ct-dynamic-data-layer[data-field^="subtitle"] {
  font-family: var(--bpp-font-body);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--bpp-gray-600);
  margin-top: 0;
  margin-bottom: 1.5rem;
  display: block;
}

@supports selector(.x:has(> .y)) {
  .single-product .summary .ct-dynamic-data-layer[data-field^="subtitle"]:has(> span) {
    display: none !important;
  }
}

.single-product .summary .product_title + .ct-dynamic-data-layer[data-field^="subtitle"] + .price {
  margin-top: 0.25rem;
}

/* Preis groß & deutlich - Kaufentscheidung fördern */
.single-product .price {
  font-family: var(--bpp-font-body);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--bpp-black);
  margin: 1rem 0;
}

.single-product .price del {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bpp-gray-400);
}

.single-product .price ins {
  text-decoration: none;
  color: var(--bpp-black);
}

/* Add-to-Cart groß & auffällig */
.single-product .single_add_to_cart_button {
  font-size: 0.85rem !important;
  padding: 1.25rem 2.5rem !important;
  font-weight: 600 !important;
}

/* Formular */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="number"], textarea, select {
  font-family: var(--bpp-font-sans);
  background: var(--bpp-light);
  border: 1px solid var(--bpp-gray-200);
  border-radius: 0;
  padding: 0.875rem 1rem;
  font-weight: 300;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--bpp-black);
}

label {
  font-family: var(--bpp-font-sans);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bpp-gray-600);
}

/* Footer */
footer.ct-footer, .site-footer {
  background: var(--bpp-light);
  border-top: 1px solid var(--bpp-gray-200);
}

/* Widgets */
.widget-title, .widgettitle {
  font-family: var(--bpp-font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bpp-gray-600);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bpp-gray-200);
  margin-bottom: 1rem;
}

/* Breadcrumbs */
.woocommerce-breadcrumb, .ct-breadcrumbs {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--bpp-gray-400);
}

.woocommerce-breadcrumb a, .ct-breadcrumbs a {
  color: var(--bpp-gray-600);
}

.woocommerce-breadcrumb a:hover, .ct-breadcrumbs a:hover {
  color: var(--bpp-black);
}

/* Tabellen */
.woocommerce table.shop_table {
  border: none;
  border-collapse: collapse;
}

.woocommerce table.shop_table th {
  font-family: var(--bpp-font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bpp-light);
  border-bottom: 1px solid var(--bpp-gray-200);
}

.woocommerce table.shop_table td {
  border-bottom: 1px solid var(--bpp-gray-100);
}

/* ══════════════════════════════════════════════════════════════
   ELEMENTOR OVERRIDES - Neutralisiere bunte Sektionen
   ══════════════════════════════════════════════════════════════ */

/* Alle farbigen Hintergründe neutralisieren */
.elementor-section[data-settings*="background"],
.elementor-section.elementor-section-boxed,
.elementor-section.elementor-section-full_width,
section.elementor-section {
  background-color: var(--bpp-white) !important;
  background-image: none !important;
}

/* Rosa/Pink Sektionen entfernen */
.elementor-section[style*="background-color: rgb(244"],
.elementor-section[style*="background-color: rgb(255, 192"],
.elementor-section[style*="background-color: rgb(252"],
.elementor-section[style*="background-color:#f"],
.elementor-section[style*="background: rgb(244"],
.elementor-section[style*="pink"],
.elementor-section[style*="rosa"] {
  background-color: var(--bpp-light) !important;
}

/* Gelbe/Orange Sektionen neutralisieren */
.elementor-section[style*="background-color: rgb(255, 193"],
.elementor-section[style*="background-color: rgb(255, 200"],
.elementor-section[style*="background-color: rgb(255, 180"],
.elementor-section[style*="yellow"],
.elementor-section[style*="orange"],
.elementor-section[style*="#ff"],
.elementor-section[style*="#F"] {
  background-color: var(--bpp-black) !important;
  color: var(--bpp-white) !important;
}

/* Allgemeine Elementor-Resets */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--bpp-font-serif) !important;
  color: var(--bpp-black) !important;
}

.elementor-widget-text-editor {
  font-family: var(--bpp-font-sans) !important;
  color: var(--bpp-black) !important;
}

/* Newsletter/CTA Sektionen - elegant schwarz */
.elementor-section.e-con,
.e-con[style*="background"] {
  background-color: var(--bpp-white) !important;
}

/* Dunkle Akzent-Sektionen */
.elementor-section--dark,
.elementor-section[data-id] > .elementor-background-overlay {
  background: var(--bpp-black) !important;
}

/* Buttons in Elementor */
.elementor-button {
  font-family: var(--bpp-font-sans) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  padding: 1rem 2rem !important;
}

.elementor-button-wrapper .elementor-button {
  background-color: var(--bpp-black) !important;
  border: 1px solid var(--bpp-black) !important;
  color: var(--bpp-white) !important;
}

.elementor-button:hover {
  background-color: var(--bpp-white) !important;
  color: var(--bpp-black) !important;
}

/* Produkt-Slider/Karussell */
.elementor-widget-woocommerce-products,
.elementor-widget-wc-products {
  background: transparent !important;
}

/* Trennlinien elegant */
.elementor-divider-separator {
  border-color: var(--bpp-gray-200) !important;
}

/* Icons */
.elementor-icon {
  color: var(--bpp-black) !important;
}

/* Testimonials/Reviews Sektion */
.elementor-testimonial,
.elementor-widget-testimonial {
  background: var(--bpp-light) !important;
}

/* Spacing optimieren */
.elementor-section > .elementor-container {
  max-width: 1200px;
}

/* Hero-Bereich cleaner */
.elementor-section:first-child {
  background: var(--bpp-white) !important;
}

/* Kategorien-Bereich */
.elementor-widget-image-box .elementor-image-box-title {
  font-family: var(--bpp-font-serif) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

/* Newsletter Input */
.elementor-field-group input[type="email"],
.elementor-field-group input[type="text"] {
  border: 1px solid var(--bpp-gray-200) !important;
  border-radius: 0 !important;
  background: var(--bpp-white) !important;
}

/* WooCommerce Produkt-Widgets */
.woocommerce .products .product {
  border: none !important;
  box-shadow: none !important;
}

/* Preis-Styling */
.woocommerce ul.products li.product .price del {
  color: var(--bpp-gray-400);
  font-weight: 300;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  font-weight: 500;
}

/* Sale Badge minimalistisch */
.woocommerce span.onsale {
  background: var(--bpp-black) !important;
  color: var(--bpp-white) !important;
  font-size: 0.65rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  padding: 0.5rem 0.75rem !important;
}

/* Sternebewertung */
.star-rating {
  color: var(--bpp-black) !important;
}

/* Warenkorb-Icon */
.ct-cart-icon,
.ct-header-cart {
  color: var(--bpp-black) !important;
}

/* Suche */
.ct-search-form input {
  border: 1px solid var(--bpp-gray-200) !important;
  border-radius: 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   FORCE OVERRIDES - Höchste Spezifität für Elementor
   ══════════════════════════════════════════════════════════════ */

/* Alle Elementor Container - Force White/Light */
body .elementor-section,
body .e-con,
body .e-con-inner,
body [data-elementor-type] .elementor-section,
body .elementor .elementor-section,
html body .elementor-section {
  background-color: #ffffff !important;
  background-image: none !important;
  background: #ffffff !important;
}

/* Spezifische Klassen für farbige Sektionen (Elementor generiert diese) */
body .elementor-section.elementor-section-stretched,
body .elementor-section-wrap > .elementor-section,
body .elementor-top-section {
  background: #ffffff !important;
}

/* Für Sektionen die als Akzent dienen sollen - Hellgrau statt bunt */
body .elementor-section:nth-child(even) {
  background: #fafafa !important;
}

/* Newsletter/CTA Bereich - Schwarz statt Gelb */
body .elementor-section:has(.elementor-field-type-email),
body .elementor-section:has(input[type="email"]),
body .e-con:has(.elementor-field-type-email) {
  background: #1a1a1a !important;
  color: #ffffff !important;
}

body .elementor-section:has(.elementor-field-type-email) *,
body .e-con:has(.elementor-field-type-email) * {
  color: #ffffff !important;
}

body .elementor-section:has(.elementor-field-type-email) input {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border: none !important;
}

/* "Onlineshop entdecken" Sektion - Hellgrau statt Pink */
body .elementor-section:has(.elementor-heading-title),
body .e-con:has(.elementor-heading-title) {
  background: #fafafa !important;
}

/* Alle Überschriften schwarz */
body .elementor-heading-title,
body .elementor-widget-heading .elementor-heading-title,
body [data-widget_type="heading.default"] .elementor-heading-title {
  color: #1a1a1a !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}

/* Footer Bereich */
body footer,
body .site-footer,
body footer.ct-footer {
  background: #fafafa !important;
  border-top: 1px solid #e8e8e8 !important;
}

/* Kategorien-Sektion */
body .elementor-widget-image-box,
body .elementor-image-box-wrapper {
  background: transparent !important;
}

body .elementor-image-box-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  color: #1a1a1a !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

/* Produkt-Grids cleaner */
body .woocommerce ul.products,
body .products {
  background: transparent !important;
}

/* Alle Links */
body .elementor a:not(.elementor-button) {
  color: #1a1a1a !important;
}

body .elementor a:not(.elementor-button):hover {
  color: #666666 !important;
}

