/*
Theme Name: Hoerspielfiguren Child v2
Theme URI: https://hoerspielfiguren.de
Description: Conversion-optimiertes Child-Theme v2 — Mobile First, Lila & Orange, Multi-Shop Kaufbox, Trackliste, Sticky Bar
Author: hoerspielfiguren.de
Template: astra
Version: 2.0.0
Text Domain: hoerspielfiguren-child
*/

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

/* ============================================================
   VARIABLEN
   ============================================================ */
:root {
    --hf-purple-dark:   #26215C;
    --hf-purple:        #3C3489;
    --hf-purple-mid:    #534AB7;
    --hf-purple-main:   #7F77DD;
    --hf-purple-light:  #AFA9EC;
    --hf-purple-pale:   #CECBF6;
    --hf-purple-bg:     #EEEDFE;
    --hf-orange:        #FF6B35;
    --hf-orange-dark:   #E85520;
    --hf-orange-bg:     #FFF3EE;
    --hf-amazon:        #FF9900;
    --hf-amazon-dark:   #E68A00;
    --hf-thalia:        #E31E24;
    --hf-price:         #B12704;
    --hf-white:         #FFFFFF;
    --hf-gray-bg:       #F8F7FF;
    --hf-gray-border:   #E8E6F0;
    --hf-text-dark:     #26215C;
    --hf-text-mid:      #534AB7;
    --hf-radius-sm:     6px;
    --hf-radius-md:     10px;
    --hf-radius-lg:     16px;
    --hf-shadow-sm:     0 2px 8px rgba(127,119,221,.12);
    --hf-shadow-md:     0 4px 16px rgba(127,119,221,.18);
    --hf-font-display:  'Nunito', sans-serif;
    --hf-font-body:     'DM Sans', sans-serif;
}

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

body {
    font-family: var(--hf-font-body);
    color: var(--hf-text-dark);
    background: var(--hf-white);
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--hf-font-display) !important;
    font-weight: 700 !important;
    color: var(--hf-purple-dark) !important;
    line-height: 1.3 !important;
}

/* ============================================================
   HEADER — NUR EINMAL, STICKY
   ============================================================ */
.site-header, #masthead, .ast-site-header-wrap {
    background: var(--hf-white) !important;
    border-bottom: 2px solid var(--hf-purple-main) !important;
    box-shadow: var(--hf-shadow-sm) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Doppelten Header verstecken */
.ast-above-header-bar,
.ast-below-header-bar {
    display: none !important;
}

/* Warenkorb im Header ausblenden */
.ast-site-header-cart,
.woocommerce-cart-icon {
    display: none !important;
}

.ast-site-identity .site-title a {
    font-family: var(--hf-font-display) !important;
    font-weight: 800 !important;
    color: var(--hf-purple-dark) !important;
    font-size: 20px !important;
}

.ast-nav-menu > li > a {
    font-family: var(--hf-font-body) !important;
    font-weight: 500 !important;
    color: var(--hf-purple-mid) !important;
    font-size: 14px !important;
    transition: color .2s !important;
}

.ast-nav-menu > li > a:hover,
.ast-nav-menu > li.current-menu-item > a {
    color: var(--hf-purple-dark) !important;
}

/* ============================================================
   PRODUKTSEITE — LAYOUT
   ============================================================ */
.single-product .entry-summary {
    padding: 0 !important;
}

/* Produkttitel NUR einmal */
.single-product .product_title {
    font-family: var(--hf-font-display) !important;
    font-size: clamp(20px, 4vw, 30px) !important;
    font-weight: 800 !important;
    color: var(--hf-purple-dark) !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
}

/* WooCommerce Standard-Preis ausblenden */
.single-product .woocommerce-Price-amount,
.single-product p.price {
    display: none !important;
}

/* Standard Add-to-Cart ausblenden */
.single-product .cart,
.single-product .woocommerce-variation-add-to-cart {
    display: none !important;
}

/* Produktbild — Badge Wrapper */
.woocommerce-product-gallery {
    position: relative !important;
}

.woocommerce-product-gallery img {
    border-radius: var(--hf-radius-lg) !important;
}

/* ============================================================
   KAUFBOX
   ============================================================ */
.hf-buy-box {
    background: var(--hf-gray-bg);
    border: 1.5px solid var(--hf-purple-pale);
    border-radius: var(--hf-radius-lg);
    padding: 20px;
    margin: 16px 0;
}

.hf-buy-box .hf-price-main {
    font-family: var(--hf-font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--hf-price);
    line-height: 1;
    margin-bottom: 4px;
}

.hf-buy-box .hf-price-hint {
    font-size: 11px;
    color: #999;
    margin-bottom: 14px;
    line-height: 1.5;
}

.hf-trust-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hf-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--hf-white);
    border: 1px solid var(--hf-gray-border);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hf-purple-mid);
}

/* Amazon Hauptbutton */
.hf-btn-amazon-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--hf-amazon);
    color: #000 !important;
    border: none;
    border-radius: var(--hf-radius-md);
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .2s;
    margin-bottom: 12px;
    font-family: var(--hf-font-body);
}

.hf-btn-amazon-main:hover {
    background: var(--hf-amazon-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,153,0,.35);
}

/* Amazon nicht verfügbar */
.hf-amazon-unavail {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFF5F5;
    border: 1px solid #FFC5C5;
    border-radius: var(--hf-radius-md);
    padding: 12px 16px;
    font-size: 13px;
    color: #A03030;
    margin-bottom: 12px;
}

/* Andere Shops */
.hf-other-shops-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--hf-purple-light);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.hf-shop-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hf-shop-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--hf-white);
    border: 1px solid var(--hf-gray-border);
    border-radius: var(--hf-radius-md);
    padding: 10px 12px;
    transition: border-color .2s;
}

.hf-shop-row:hover {
    border-color: var(--hf-purple-pale);
}

.hf-shop-row.unavail {
    opacity: .5;
}

.hf-shop-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--hf-purple-dark);
}

.hf-shop-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--hf-price);
    font-family: var(--hf-font-display);
}

.hf-shop-btn {
    background: var(--hf-thalia);
    color: var(--hf-white);
    border: none;
    border-radius: var(--hf-radius-sm);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    transition: all .2s;
}

.hf-shop-btn:hover {
    opacity: .85;
    color: var(--hf-white) !important;
}

.hf-shop-unavail-text {
    font-size: 12px;
    color: #bbb;
    font-style: italic;
}

.hf-buy-disclaimer {
    font-size: 10px;
    color: #bbb;
    margin-top: 12px;
    line-height: 1.6;
}

/* ============================================================
   PRODUKTBILD BADGES
   ============================================================ */
.hf-product-badges {
    position: relative;
}

.hf-badge-content-tonie {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--hf-purple-main);
    color: var(--hf-white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
    font-family: var(--hf-font-display);
}

.hf-badge-age {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--hf-white);
    color: var(--hf-purple-main);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1.5px solid var(--hf-purple-pale);
    z-index: 5;
    font-family: var(--hf-font-display);
}

/* ============================================================
   TRACKLISTE
   ============================================================ */
.hf-tracklist {
    background: var(--hf-gray-bg);
    border-radius: var(--hf-radius-md);
    padding: 14px;
    margin: 16px 0;
}

.hf-tracklist-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hf-tracklist-title {
    font-family: var(--hf-font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--hf-purple-main);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hf-track-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--hf-purple-bg);
}

.hf-track-item:last-child {
    border-bottom: none;
}

.hf-track-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--hf-purple-light);
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.hf-track-name {
    font-size: 13px;
    color: var(--hf-purple-dark);
    flex: 1;
}

/* ============================================================
   STICKY BAR
   ============================================================ */
.hf-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--hf-white);
    border-top: 2px solid var(--hf-amazon);
    padding: 10px 16px;
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,.12);
}

.hf-sticky-bar.visible {
    display: flex;
}

.hf-sticky-info { flex: 1; min-width: 0; }

.hf-sticky-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--hf-purple-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hf-sticky-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--hf-price);
    font-family: var(--hf-font-display);
}

.hf-sticky-btn {
    background: var(--hf-amazon);
    color: #000 !important;
    border: none;
    border-radius: var(--hf-radius-sm);
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none !important;
}

/* ============================================================
   WOOCOMMERCE PRODUKTKARTEN
   ============================================================ */
.woocommerce ul.products li.product {
    border: 1.5px solid var(--hf-gray-border) !important;
    border-radius: var(--hf-radius-lg) !important;
    overflow: hidden !important;
    transition: all .2s !important;
    background: var(--hf-white) !important;
    box-shadow: none !important;
}

.woocommerce ul.products li.product:hover {
    border-color: var(--hf-purple-pale) !important;
    box-shadow: var(--hf-shadow-md) !important;
    transform: translateY(-2px) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--hf-font-display) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--hf-purple-dark) !important;
    line-height: 1.3 !important;
}

.woocommerce ul.products li.product .price {
    font-family: var(--hf-font-display) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--hf-price) !important;
}

/* Alters-Badge auf Karten */
.hf-age-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--hf-purple-bg);
    color: var(--hf-purple-mid);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 5px;
}

/* ============================================================
   TABS
   ============================================================ */
.woocommerce-tabs .wc-tabs {
    border-bottom: 2px solid var(--hf-purple-bg) !important;
    margin-bottom: 0 !important;
}

.woocommerce-tabs .wc-tabs li a {
    font-family: var(--hf-font-body) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--hf-purple-light) !important;
    padding: 10px 16px !important;
}

.woocommerce-tabs .wc-tabs li.active a {
    color: var(--hf-purple-main) !important;
    border-bottom: 2px solid var(--hf-purple-main) !important;
    background: none !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer, #colophon {
    background: var(--hf-purple-dark) !important;
    color: var(--hf-purple-light) !important;
}

.site-footer a, #colophon a {
    color: var(--hf-purple-pale) !important;
}

.site-footer a:hover, #colophon a:hover {
    color: var(--hf-white) !important;
}

.site-footer .widget-title, #colophon .widget-title {
    color: var(--hf-white) !important;
    font-family: var(--hf-font-display) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
    body.single-product { padding-bottom: 74px; }

    .hf-btn-amazon-main { font-size: 15px !important; padding: 14px !important; }

    .woocommerce ul.products {
        grid-template-columns: repeat(2,1fr) !important;
        gap: 10px !important;
    }

    .hf-buy-box { padding: 14px !important; }
    .hf-buy-box .hf-price-main { font-size: 30px !important; }
}

/* ============================================================
   SCHEMA SALE BADGE
   ============================================================ */
.woocommerce span.onsale {
    background: var(--hf-orange) !important;
    border-radius: 20px !important;
    font-family: var(--hf-font-display) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    min-height: unset !important;
    padding: 4px 10px !important;
    line-height: 1.4 !important;
}

/* ============================================================
   VOLLBREITE FIX — ASTRA WRAPPER ÜBERSCHREIBEN
   ============================================================ */

/* Homepage volle Breite */
.home .site-content,
.home .ast-container,
.home #content,
.home .content-area,
.home .site-main,
.home .entry-content,
.home article,
.home .ast-article-post {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

.home .ast-row {
    margin: 0 !important;
}

/* Sidebar auf Homepage ausblenden */
.home #secondary,
.home .widget-area,
.home .ast-sidebar-wrap {
    display: none !important;
}

/* Astra Primary Content volle Breite */
.home #primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    float: none !important;
}

/* ============================================================
   FOOTER — NEU DESIGNED
   ============================================================ */
.site-footer,
#colophon {
    background: #1A1730 !important;
    color: #AFA9EC !important;
    padding: 0 !important;
    border-top: none !important;
}

/* Footer Top */
.hf-footer-top {
    padding: 40px 20px 32px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
}
@media (max-width: 900px) {
    .hf-footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 500px) {
    .hf-footer-top { grid-template-columns: 1fr; gap: 20px; }
}

.hf-footer-brand img {
    height: 32px;
    filter: brightness(0) invert(1);
    opacity: .85;
    margin-bottom: 14px;
}
.hf-footer-brand p {
    font-size: 13px !important;
    color: #6B6499 !important;
    line-height: 1.65 !important;
    margin-bottom: 16px !important;
}
.hf-footer-social {
    display: flex;
    gap: 10px;
}
.hf-footer-social a {
    width: 34px; height: 34px;
    background: #26215C;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #AFA9EC !important;
    font-size: 16px;
    text-decoration: none !important;
    transition: background .2s;
}
.hf-footer-social a:hover {
    background: #7F77DD;
    color: #fff !important;
}

.hf-footer-col h4 {
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 14px !important;
    letter-spacing: .02em !important;
}
.hf-footer-col ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.hf-footer-col ul li {
    margin-bottom: 8px !important;
}
.hf-footer-col ul li a {
    font-size: 13px !important;
    color: #6B6499 !important;
    text-decoration: none !important;
    transition: color .2s !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.hf-footer-col ul li a:hover {
    color: #AFA9EC !important;
}

/* Footer Bottom */
.hf-footer-bottom {
    border-top: 1px solid #26215C;
    padding: 16px 20px;
}
.hf-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.hf-footer-copy {
    font-size: 12px;
    color: #4A4470;
}
.hf-footer-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hf-footer-legal a {
    font-size: 12px !important;
    color: #4A4470 !important;
    text-decoration: none !important;
    transition: color .2s !important;
}
.hf-footer-legal a:hover {
    color: #7F77DD !important;
}

/* Astra Footer komplett überschreiben */
.ast-site-footer-wrap,
.ast-footer-widget-area,
.footer-widget-area,
.ast-footer-copyright,
.ast-footer-overlay,
#colophon .ast-container,
#colophon .ast-row,
#colophon [class*="ast-"],
.site-footer .ast-site-footer-wrap {
    display: none !important;
}

/* Unser Footer nimmt die volle Breite */
#colophon .hf-footer-top,
#colophon .hf-footer-bottom {
    display: grid !important;
}
#colophon .hf-footer-bottom-inner {
    display: flex !important;
}

/* ============================================================
   AFFILIATE TOOLKIT — AUSBLENDEN
   ============================================================ */
.atkp-bottom-bar,
.atkp-sticky,
.atkp-compare-bar,
[class*="atkp-sticky"],
[class*="atkp-bar"],
.atkp-widget-wrap .atkp-bar {
    display: none !important;
}

/* Startseite — Astra Standard-Content ausblenden */
.home .entry-content > *:not(.hf-hp-hero):not(.hf-hp-stats):not(.hf-hp-section):not(.hf-rarities-banner):not(.hf-forum-teaser):not(.hf-usp-bar),
.home .ast-post-summary,
.home .entry-header {
    display: none !important;
}

/* Doppelter Header Fix */
.ast-above-header-bar,
.ast-below-header-bar {
    display: none !important;
}

/* Warenkorb + Login im Header ausblenden */
.ast-site-header-cart,
.woocommerce-cart-icon,
.header-account-login {
    display: none !important;
}

/* logo-leaf ausblenden */
img[src*="logo-leaf"] {
    display: none !important;
}

/* ============================================================
   ANIMATIONEN
   ============================================================ */
@keyframes hfSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.hf-sticky-bar.visible {
    animation: hfSlideUp .3s ease forwards;
}
