/* ===================================================
   DEALFOXX Homepage Styles
   Ausgelagert aus index.php für bessere Wartbarkeit
   =================================================== */

/* Homepage Base */
.homepage {
    background: #f8f9fa;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-full {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.categories-section .container {
    max-width: 1600px;
    padding: 0 20px;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
    background: linear-gradient(135deg, #174d9a 0%, #1e5aa8 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 500;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #174d9a;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: #0f3a7a;
}

/* ===================================================
   CONTENT SECTIONS BASE
   =================================================== */
.about-section,
.categories-section,
.features-section,
.faq-section {
    padding: 60px 0;
    width: 100%;
}

.section-header {
    text-align: left;
    margin-bottom: 1rem; /* Reduziert von 3rem auf 1rem */
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: left;
}

.section-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0;
    text-align: left;
}

/* ===================================================
   NEW PRODUCTS GRID
   =================================================== */
.new-products-section {
    background: #f8f9fa;
    padding: 50px 0;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
}

.new-products-grid-wrapper {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
}

.new-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 10px 0;
    width: 100%;
}

/* Grid Responsive Breakpoints */
@media (max-width: 1400px) {
    .new-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .new-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .new-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .new-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.new-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    width: 100%;
}

.new-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.new-product-card .product-image,
.new-product-card .product-image-container {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* DESKTOP BADGES FÜR NEW-PRODUCT-CARDS */
.new-product-card .product-badges {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 2;
    max-width: calc(100% - 60px);
    align-items: flex-start;
}

.new-product-card .badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.9;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    box-sizing: border-box;
}

.new-product-card .badge-brand {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.new-product-card .badge-prime {
    background: #219bff;
    color: white;
}

.new-product-card .badge-stock {
    background: #85c038;
    color: white;
}

.new-product-card .badge-choice {
    background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%);
    color: white;
}

.new-product-card .badge-bestseller {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.new-product-card .badge-shipping {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.new-product-card .badge-discount {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.new-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.new-product-card:hover .product-image img {
    transform: scale(1.05);
}

.new-product-card .savings-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.new-product-card .product-content {
    padding: 16px;
}

.new-product-card .product-category {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 500;
}

.new-product-card .product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.new-product-card .product-prices {
    margin-bottom: 16px;
}

.new-product-card .current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-right: 8px;
}

.new-product-card .original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.new-product-card .green-savings-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.new-product-card .product-buttons {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.new-product-card .product-button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.new-product-card .product-button.primary {
    background: #174d9a;
    color: white;
}

.new-product-card .product-button.primary:hover {
    background: #0f3a7a;
}

.new-product-card .product-button.secondary {
    background: #f8f9fa;
    color: #174d9a;
    border: 1px solid #e5e7eb;
}

.new-product-card .product-button.secondary:hover {
    background: #e9ecef;
}

.new-products-placeholder {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 0;
}

/* ===================================================
   ABOUT SECTION
   =================================================== */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

.tagesdeal-container {
    position: relative;
}

.tagesdeal-box {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.tagesdeal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.tagesdeal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.tagesdeal-category {
    background: #174d9a;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tagesdeal-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tagesdeal-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tagesdeal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tagesdeal-details {
    flex: 1;
}

.tagesdeal-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tagesdeal-prices {
    margin-bottom: 16px;
}

.tagesdeal-prices .price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.tagesdeal-prices .current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.tagesdeal-prices .original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.tagesdeal-prices .savings-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tagesdeal-button {
    display: inline-block;
    background: #174d9a;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.tagesdeal-button:hover {
    background: #0f3a7a;
    transform: translateY(-2px);
}

.tagesdeal-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.tagesdeal-footer small {
    color: #666;
    font-size: 0.8rem;
}

.tagesdeal-placeholder {
    text-align: center;
    color: #666;
    font-style: italic;
}

.about-text-container {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    width: 100%;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
}

.text-content p:last-child {
    margin-bottom: 0;
}

/* ===================================================
   CATEGORIES SECTION
   =================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.category-card {
    background: linear-gradient(135deg, rgba(23, 77, 154, 0.8) 0%, rgba(30, 90, 168, 0.8) 100%);
    color: white;
    padding: 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(23, 77, 154, 0.3);
    color: white;
}

.category-content {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(1px);
}

.category-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.category-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.category-card:hover .category-link {
    opacity: 1;
    color: white;
}

/* ===================================================
   FEATURES SECTION
   =================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ===================================================
   FAQ SECTION
   =================================================== */
.faq-section .faq-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* FAQ 2 Spalten bei mittlerer Breite */
@media (max-width: 1300px) {
    .faq-section .faq-content {
        grid-template-columns: 1fr 1fr;
    }
}

.faq-item {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ===================================================
   MOBILE OPTIMIERUNGEN - PERFEKTE VOLLBREITE
   =================================================== */
@media (max-width: 768px) {
    /* Global Mobile Fixes */
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .homepage {
        background: #f8f9fa;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .container,
    .container-full {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    /* Hero Section Mobile - Vollbreite */
    .hero-section {
        padding: 50px 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .hero-content h1 {
        font-size: 2.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
        padding: 0 10px !important;
    }

    .cta-button {
        padding: 14px 28px !important;
        font-size: 1rem !important;
        margin: 0 10px !important;
    }

    /* Section Headers Mobile */
    .section-header {
        text-align: left !important;
        margin-bottom: 2rem !important;
        padding: 0 !important;
    }
    
    .section-header h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .section-header p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    /* Content Sections Mobile - Vollbreite */
    .about-section,
    .categories-section,
    .features-section,
    .faq-section {
        padding: 40px 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* New Products Mobile - Vollbreite */
    .new-products-section {
        padding: 30px 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .new-products-grid-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .new-products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .new-product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }

    .new-product-card .product-image {
        height: 300px !important;
    }

    .new-product-card .product-content {
        padding: 16px !important;
    }

    .new-product-card .product-title {
        font-size: 1rem !important;
        height: 2.4em !important;
        line-height: 1.2 !important;
    }

    .new-product-card .current-price {
        font-size: 1.2rem !important;
    }

    .new-product-card .product-buttons {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .new-product-card .product-button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 0.95rem !important;
    }
    
    /* About Section Mobile - Vollbreite */
    .about-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .tagesdeal-container {
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .tagesdeal-box {
        margin: 0 !important;
        padding: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .tagesdeal-product {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }
    
    .tagesdeal-image {
        width: 150px !important;
        height: 150px !important;
        margin: 0 !important;
    }
    
    .tagesdeal-details {
        width: 100% !important;
        text-align: center !important;
        margin-top: 16px !important;
    }

    .tagesdeal-details h4 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }
    
    .tagesdeal-prices .current-price {
        font-size: 1.8rem !important;
    }
    
    .tagesdeal-header {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }
    
    .about-text-container {
        padding: 20px !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .text-content p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.2rem !important;
    }
    
    /* Categories Mobile - Vollbreite */
    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .category-card {
        padding: 24px !important;
        min-height: 140px !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .category-content h3 {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }

    .category-link {
        font-size: 0.9rem !important;
    }
    
    /* Features Mobile - Vollbreite */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .feature-card {
        padding: 24px !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .feature-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }

    .feature-card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* FAQ Mobile - Vollbreite */
    .faq-section .faq-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .faq-item {
        padding: 20px !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .faq-item h3 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }

    .faq-item p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
}

/* ===================================================
   TABLET OPTIMIERUNGEN (1024px und kleiner)
   =================================================== */
@media (max-width: 1024px) {
    .container,
    .container-full {
        max-width: 100% !important;
        padding: 0 20px !important;
    }

    /* New Products Tablet */
    .new-products-section {
        padding: 40px 0 !important;
    }
    
    .new-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .new-product-card {
        width: 100% !important;
    }
    
    .new-product-card .product-image {
        height: 180px !important;
    }
    
    .new-product-card .product-content {
        padding: 16px !important;
    }
    
    /* About Section Tablet */
    .about-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .tagesdeal-image {
        width: 120px !important;
        height: 120px !important;
    }
    
    .tagesdeal-prices .current-price {
        font-size: 1.6rem !important;
    }
    
    .tagesdeal-details h4 {
        font-size: 1rem !important;
    }
    
    .about-text-container {
        padding: 28px !important;
    }
    
    /* Categories Tablet */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    /* Features Tablet */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    /* FAQ Tablet */
    .faq-section .faq-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* ===================================================
   MEDIUM SCREENS (1200px und kleiner)
   =================================================== */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }

    .new-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ===================================================
   LARGE SCREENS (1400px und kleiner)
   =================================================== */
@media (max-width: 1400px) {
    .new-products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
} 