/*
Theme Name: Camping Fundgrube
Theme URI: https://campingfundgrube.de
Author: Camping Centrum Berenbostel
Author URI: https://campinfo.de
Description: WooCommerce Theme für den Camping Fundgrube Shop - exakt passend zum Design von campinfo.de
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: camping-fundgrube
Tags: woocommerce, e-commerce, camping
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ============================================
   CSS Variablen - EXAKT wie campinfo.de
   ============================================ */
:root {
    --color-forest: #1a3c34;
    --color-forest-light: #2d5a4e;
    --color-sage: #7c9a8a;
    --color-sand: #e8dfd0;
    --color-sand-light: #f5f1eb;
    --color-cream: #faf8f5;
    --color-amber: #d4a853;
    --color-amber-dark: #b8923f;
    --color-rust: #c45c3e;
    --color-text: #2c2c2c;
    --color-text-light: #5a5a5a;
    --font-display: 'DM Serif Display', serif;
    --font-body: 'Outfit', sans-serif;
    --shadow-soft: 0 4px 20px rgba(26, 60, 52, 0.08);
    --shadow-medium: 0 8px 40px rgba(26, 60, 52, 0.12);
    --shadow-strong: 0 20px 60px rgba(26, 60, 52, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-forest);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-amber);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Typography - wie campinfo.de
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-forest);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* ============================================
   Header - wie campinfo.de
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo - wie campinfo.de */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-forest);
}

.site-logo .logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.site-logo .logo-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--color-forest);
}

.site-logo .logo-subtitle {
    font-size: 0.95rem;
    color: var(--color-sage);
    letter-spacing: 0.5px;
}

/* Navigation - wie campinfo.de */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.main-navigation a {
    display: block;
    padding: 10px 18px;
    color: var(--color-forest);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background: var(--color-sand);
    color: var(--color-forest);
}

.main-navigation .nav-cta a,
.main-navigation a.btn-primary {
    background: var(--color-amber);
    color: var(--color-forest);
}

.main-navigation .nav-cta a:hover,
.main-navigation a.btn-primary:hover {
    background: var(--color-amber-dark);
}

/* Header Cart - wie campinfo.de Phone Button */
.header-cart a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-weight: 600;
    color: var(--color-forest);
    border: 2px solid var(--color-forest);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.header-cart a:hover {
    background: var(--color-forest);
    color: white;
}

.header-cart .cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--color-amber);
    color: var(--color-forest);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-forest);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* ============================================
   Page Header - wie campinfo.de Section Header
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--color-sand-light) 0%, var(--color-cream) 50%, var(--color-sand) 100%);
    padding: 100px 24px 60px;
    text-align: center;
}

.page-header h1 {
    color: var(--color-forest);
    margin-bottom: 12px;
}

.page-header .breadcrumb {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.page-header .breadcrumb a {
    color: var(--color-forest);
}

/* ============================================
   Main Content
   ============================================ */
.site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
}

.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Widget Cards - kompakter */
.widget {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border-left: 3px solid var(--color-amber);
}

.widget-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-sand);
}

/* Category List */
.product-categories {
    list-style: none;
}

.product-categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-sand-light);
}

.product-categories li:last-child {
    border-bottom: none;
}

.product-categories li a {
    color: var(--color-text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-categories li a:hover,
.product-categories li.current a {
    color: var(--color-forest);
}

.product-categories li.current a::before {
    content: '✓';
    color: var(--color-amber-dark);
    font-weight: 700;
}

.product-categories .count {
    background: var(--color-sand);
    color: var(--color-text-light);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 50px;
}

/* ============================================
   WooCommerce Subcategories (wenn angezeigt)
   ============================================ */
.woocommerce ul.products li.product-category {
    border-left: none !important;
    border: 1px solid var(--color-sand);
}

.woocommerce ul.products li.product-category a {
    display: block;
    text-align: center;
    padding: 24px 16px;
}

.woocommerce ul.products li.product-category a img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 12px;
    opacity: 0.4;
}

.woocommerce ul.products li.product-category a h2,
.woocommerce ul.products li.product-category a .woocommerce-loop-category__title {
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--color-forest) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.woocommerce ul.products li.product-category a .count,
.woocommerce ul.products li.product-category a mark {
    font-size: 0.75rem !important;
    color: var(--color-text-light) !important;
    background: none !important;
    display: block;
    margin-top: 4px;
}

/* Entferne alle WooCommerce Standard-Styles für Kategorien */
.woocommerce ul.products li.product-category a h2 mark,
.woocommerce ul.products li.product-category h2 mark {
    background: transparent !important;
    color: var(--color-text-light) !important;
}

/* ============================================
   WooCommerce Products
   ============================================ */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce ul.products li.product {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    position: relative;
    border-left: 4px solid var(--color-amber);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-forest);
    padding: 16px 16px 6px;
    margin: 0;
}

.woocommerce ul.products li.product .product-sku {
    display: block;
    padding: 0 16px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.woocommerce ul.products li.product .price {
    padding: 6px 16px 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-forest);
}

.woocommerce ul.products li.product .price del {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Sale Badge */
.woocommerce span.onsale {
    background: var(--color-amber);
    color: var(--color-forest);
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 50px;
    padding: 5px 12px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

/* Condition Badge */
.product-condition {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    margin: 0 16px 10px;
}

.product-condition.neu { background: #e8f5e9; color: #2e7d32; }
.product-condition.neuwertig { background: #e3f2fd; color: #1565c0; }
.product-condition.gut { background: #f3e5f5; color: #7b1fa2; }
.product-condition.gebraucht { background: var(--color-sand); color: var(--color-forest); }
.product-condition.defekt { background: #ffebee; color: #c62828; }

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 10px 16px;
    background: var(--color-forest);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--color-forest-light);
    transform: translateY(-2px);
}

/* ============================================
   Single Product
   ============================================ */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px 0;
}

.woocommerce div.product div.images img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.woocommerce div.product .product_title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--color-forest);
    margin-bottom: 16px;
}

.woocommerce div.product .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: 24px;
}

.woocommerce div.product form.cart {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 30px;
}

.woocommerce .quantity {
    display: inline-flex;
    background: var(--color-sand-light);
    border: 2px solid var(--color-sand);
    border-radius: var(--radius-sm);
}

.woocommerce .quantity .qty {
    width: 70px;
    padding: 14px;
    background: transparent;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-forest);
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    flex: 1;
    padding: 16px 32px;
    background: var(--color-forest);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: var(--color-forest-light);
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 40px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    list-style: none;
    border-bottom: 2px solid var(--color-sand);
    margin-bottom: 30px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 16px 24px;
    color: var(--color-text-light);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--color-forest);
    border-bottom-color: var(--color-amber);
}

.woocommerce div.product .woocommerce-tabs .panel {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

/* ============================================
   Cart & Checkout
   ============================================ */
.woocommerce-cart-form table.cart {
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.woocommerce-cart-form table.cart th,
.woocommerce-cart-form table.cart td {
    padding: 20px;
    border-bottom: 1px solid var(--color-sand);
}

.woocommerce-cart-form table.cart th {
    background: var(--color-sand-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--color-forest);
}

.cart_totals {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    margin-top: 30px;
    border-left: 4px solid var(--color-amber);
}

.wc-proceed-to-checkout .checkout-button,
#place_order {
    display: block;
    width: 100%;
    padding: 18px 32px;
    background: var(--color-forest);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc-proceed-to-checkout .checkout-button:hover,
#place_order:hover {
    background: var(--color-forest-light);
}

/* Forms */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 14px 18px;
    background: var(--color-sand-light);
    border: 2px solid var(--color-sand);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: var(--color-forest);
    background: white;
}

/* ============================================
   Footer - wie campinfo.de
   ============================================ */
.site-footer {
    background: var(--color-forest);
    color: white;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.footer-widgets {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.footer-widget h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-widget ul li a:hover {
    color: white;
}

.footer-widget p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-widget .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-amber);
    font-weight: 500;
    margin-top: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

/* ============================================
   Messages
   ============================================ */
.woocommerce-message {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.woocommerce-error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    list-style: none;
}

/* Pagination */
.woocommerce-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin-top: 60px;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    background: white;
    border: 2px solid var(--color-sand);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-weight: 500;
}

.woocommerce-pagination ul.page-numbers li span.current {
    background: var(--color-forest);
    border-color: var(--color-forest);
    color: white;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .shop-sidebar .widget {
        flex: 1;
        min-width: 280px;
    }
    
    .woocommerce div.product {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-cream);
        padding: 24px;
        box-shadow: var(--shadow-medium);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation a {
        padding: 14px 0;
        border-bottom: 1px solid var(--color-sand);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .site-main {
        padding: 40px 16px;
    }
    
    .page-header {
        padding: 80px 16px 40px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        padding: 60px 16px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}
