/*
Theme Name:   Bike Aktiv
Theme URI:    https://bike-aktiv.example
Description:  Child-Theme von Hello Elementor für Bike Aktiv (Fahrräder & Zubehör, Profi-Heimtrainer, Elektro-Einräder). Alle Inhalte sind mit Elementor bearbeitbar.
Author:       Bike Aktiv
Template:     hello-elementor
Version:      1.1.0
Text Domain:  bike-aktiv
Language:     de_DE
*/


/* Direction : noir + jaune vif, titres condensés en majuscules, boutons carrés soulignés de jaune. */
:root {
  --ba-yellow: #FFD60A;
  --ba-ink: #111111;
  --ba-dark: #1B1B1B;
  --ba-bg: #F5F5F3;
  --ba-surface: #FFFFFF;
  --ba-muted: #6B6B6B;
  --ba-line: #E3E3E0;
  --ba-sale: #E0322B;
  --ba-stock: #6CC04A;
}
body { background: var(--ba-surface); color: var(--ba-ink); font-family: "Archivo", system-ui, sans-serif; }
h1, h2, h3, h4, .elementor-heading-title { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .01em; }

/* Titre de section avec carré jaune : ajouter la classe "ba-title" au widget Titre */
.ba-title .elementor-heading-title { position: relative; padding-left: 20px; }
.ba-title .elementor-heading-title::before { content: ""; position: absolute; left: 0; top: .1em; width: 9px; height: 9px; background: var(--ba-yellow); }

/* Boutons carrés soulignés de jaune */
.elementor-button, .woocommerce a.button, .woocommerce button.button, .woocommerce .button.alt {
  border-radius: 0 !important; text-transform: uppercase; letter-spacing: .08em; font-size: 12px !important; font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--ba-yellow);
}
.woocommerce a.button, .woocommerce button.button, .woocommerce .button.alt { background: var(--ba-ink) !important; color: #fff !important; }
.ba-btn-yellow .elementor-button { background: var(--ba-yellow) !important; color: var(--ba-ink) !important; box-shadow: none; }

/* Étiquette jaune (catégories de la mosaïque, badges) : classe "ba-label" */
.ba-label .elementor-heading-title { display: inline-block; background: var(--ba-yellow); color: var(--ba-ink); padding: 4px 10px; }

/* Cartes produits */
.woocommerce ul.products li.product { border: 1px solid var(--ba-line); padding: 0 0 14px; text-align: left; background: var(--ba-surface); }
.woocommerce ul.products li.product img { margin-bottom: 10px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button { margin-left: 14px; margin-right: 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: "Barlow Condensed", sans-serif; font-size: 19px; font-weight: 700; text-transform: uppercase; }
.woocommerce ul.products li.product .price { color: var(--ba-ink); font-weight: 600; }
.woocommerce ul.products li.product .price del { color: var(--ba-muted); }
.woocommerce ul.products li.product .price ins { color: var(--ba-sale); text-decoration: none; }
.woocommerce span.onsale { background: var(--ba-sale); color: #fff; border-radius: 0; min-height: 0; min-width: 0; line-height: 1.5; padding: 2px 8px; font-size: 11px; text-transform: uppercase; top: 10px; left: 10px; }


.ba-wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
a { color: var(--ba-ink); }
a:hover, a:focus { color: var(--ba-ink); text-decoration-color: var(--ba-yellow); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Top-Leiste ---------- */
.ba-topbar { background: var(--ba-ink); color: #fff; font-size: 12px; }
.ba-topbar .ba-wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; flex-wrap: wrap; }
.ba-topbar a { color: #fff; text-decoration: none; }

/* ---------- Header ---------- */
.ba-header { background: #fff; border-bottom: 1px solid var(--ba-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .ba-header { top: 32px; }
.ba-header-row { display: flex; align-items: stretch; min-height: 64px; }
.ba-logo { background: var(--ba-yellow); color: var(--ba-ink) !important; text-decoration: none; display: flex; align-items: center; padding: 0 28px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.ba-logo-img { max-height: 44px; width: auto; }
.ba-nav { flex: 1; display: flex; align-items: center; padding: 0 24px; }
.ba-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 26px; flex-wrap: wrap; }
.ba-menu > li { position: relative; }
.ba-menu a { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--ba-ink); display: block; padding: 20px 0; }
.ba-menu > li + li::before { content: ""; position: absolute; left: -15px; top: 50%; width: 4px; height: 4px; background: var(--ba-yellow); }
.ba-menu a:hover, .ba-menu .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--ba-yellow); }
.ba-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: -16px; top: 100%; min-width: 230px; background: #fff; border: 1px solid var(--ba-line); border-top: 3px solid var(--ba-yellow); display: none; z-index: 60; }
.ba-menu li:hover > .sub-menu, .ba-menu li:focus-within > .sub-menu { display: block; }
.ba-menu .sub-menu a { padding: 8px 16px; font-size: 15px; }
.ba-tools { display: flex; align-items: center; gap: 14px; padding-right: 20px; }
.ba-search input[type="search"] { border: 0; background: #F1F1EF; border-radius: 0; padding: 9px 12px; width: 220px; font-size: 13px; }
.ba-icon { position: relative; color: var(--ba-ink); display: inline-flex; }
.ba-cart-count { position: absolute; top: -8px; right: -10px; background: var(--ba-yellow); color: var(--ba-ink); font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; padding: 0 4px; }
.ba-nav-toggle, .ba-burger { display: none; }
@media (max-width: 1100px) {
  .ba-search { display: none; }
}
@media (max-width: 900px) {
  .ba-header-row { flex-wrap: wrap; }
  .ba-logo { font-size: 24px; padding: 0 18px; }
  .ba-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 16px; cursor: pointer; order: 3; }
  .ba-burger span { display: block; width: 24px; height: 2px; background: var(--ba-ink); }
  .ba-tools { margin-left: auto; order: 2; }
  .ba-nav { order: 4; flex-basis: 100%; display: none; padding: 0 20px 14px; border-top: 1px solid var(--ba-line); }
  .ba-nav-toggle:checked ~ .ba-nav { display: block; }
  .ba-menu { flex-direction: column; gap: 0; }
  .ba-menu > li + li::before { display: none; }
  .ba-menu a { padding: 10px 0; }
  .ba-menu .sub-menu { position: static; display: block; border: 0; padding: 0 0 6px 14px; min-width: 0; }
}
@media (max-width: 782px) { .admin-bar .ba-header { top: 0; position: relative; } }

/* ---------- Seiteninhalt (Seiten ohne Elementor, Shop, Blog) ---------- */
.site-main:not(.elementor-page) , main#content { }
body:not(.elementor-page) .site-main, .woocommerce .site-main { max-width: 1200px; margin: 0 auto; padding: 40px 20px 70px; }
.page-header .entry-title, .woocommerce-products-header__title { font-size: clamp(36px, 5vw, 56px); font-weight: 800; position: relative; padding-left: 22px; }
.page-header .entry-title::before, .woocommerce-products-header__title::before { content: ""; position: absolute; left: 0; top: .2em; width: 10px; height: 10px; background: var(--ba-yellow); }
.ba-placeholder { background: #FFF7CC; border-left: 4px solid var(--ba-yellow); padding: 12px 16px; }
.ba-contact-box { display: inline-block; background: #F5F5F3; padding: 16px 20px; line-height: 1.7; }
.woocommerce-breadcrumb { font-size: 13px; }
.woocommerce div.product .product_title { font-size: 42px; font-weight: 800; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ba-ink); font-family: "Barlow Condensed", sans-serif; font-size: 32px; font-weight: 700; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--ba-yellow); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--ba-ink); }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: var(--ba-ink); }
.ba-dark .woocommerce ul.products li.product { border-color: #2A2A2A; }

/* Blog-Karten [ba_ratgeber] */
.ba-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ba-post-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #232323; }
.ba-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ba-post-img:hover img { transform: scale(1.04); }
.ba-tag { position: absolute; left: 12px; bottom: 12px; background: var(--ba-yellow); color: var(--ba-ink); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; }
.ba-post h3 { font-size: 22px; margin: 14px 0 4px; line-height: 1.1; }
.ba-post h3 a { text-decoration: none; }
.ba-meta { font-size: 12px; color: var(--ba-muted); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
@media (max-width: 800px) { .ba-posts { grid-template-columns: 1fr; } }

/* Blog-Übersicht von Hello */
.blog .site-main article.post, .archive .site-main article.post { border-bottom: 1px solid var(--ba-line); padding: 20px 0; }

/* ---------- Newsletter ---------- */
.ba-newsletter { background: #000; color: #BDBDBD; text-align: center; padding: 60px 0; }
.ba-newsletter h2 { color: #fff; font-size: 44px; margin: 0 0 8px; }
.ba-newsletter p { margin: 0 0 20px; }
.ba-btn-yellow-link { display: inline-block; background: var(--ba-yellow); color: var(--ba-ink) !important; padding: 14px 30px; text-decoration: none; text-transform: uppercase; font-weight: 600; font-size: 12px; letter-spacing: .1em; }

/* ---------- Footer ---------- */
.ba-footer { background: var(--ba-dark); color: #BDBDBD; font-size: 14px; }
.ba-footer a { color: #BDBDBD; text-decoration: none; }
.ba-footer a:hover { color: #fff; }
.ba-footer h4 { color: var(--ba-yellow); font-size: 16px; margin: 0 0 12px; }
.ba-footer-top { display: grid; grid-template-columns: 200px 1.3fr 1fr 1fr; gap: 30px; align-items: center; padding: 0 0 30px; border-bottom: 1px solid #2E2E2E; }
.ba-footer-logo { background: var(--ba-yellow); color: var(--ba-ink) !important; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 30px; text-transform: uppercase; display: grid; place-items: center; aspect-ratio: 1.3; }
.ba-footer-contact strong { display: block; color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: 30px; }
.ba-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 34px 0; }
.ba-footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ba-footer-bottom { border-top: 1px solid #2E2E2E; padding: 20px 0 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.ba-legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.ba-footer > .ba-wrap { padding-top: 0; }
.ba-footer-top { padding-top: 0; }
.ba-footer { padding-top: 0; }
.ba-footer-top { margin-top: 0; }
@media (max-width: 900px) {
  .ba-footer-top { grid-template-columns: 1fr 1fr; }
  .ba-footer-logo { aspect-ratio: auto; padding: 24px; }
  .ba-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .ba-footer-top, .ba-footer-cols { grid-template-columns: 1fr; } }
