/* ===========================
   ERTESMA DEALS CSS v1.0
   Gemeinsame Styles für alle Seiten
   =========================== */

:root {
    --primary: #CC0C39;
    --dark: #8B0000;
    --light: #f5f5f5;
    --white: #ffffff;
    --text: #333333;
    --gray: #666666;
    --border: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.15);
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle,
.tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

.updated-time {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 10px;
}

/* Navigation */
nav {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

nav .container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    background: #f8f8f8;
    border: 2px solid var(--border);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    display: inline-block;
}

.nav-btn:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(204, 12, 57, 0.2);
}

.nav-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Filter Bar */
.filter-bar {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.filter-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.stats {
    font-size: 0.9rem;
    color: var(--gray);
}

.stats .separator {
    margin: 0 10px;
    color: var(--border);
}

#sort-select {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.3s;
}

#sort-select:hover {
    border-color: var(--primary);
}

#sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Main Content */
main {
    padding: 40px 0;
    min-height: 60vh;
}

/* Welcome Section (für index.html) */
.welcome-section {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.welcome-section h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.welcome-section p {
    margin-bottom: 10px;
    color: var(--gray);
    line-height: 1.8;
}

/* Affiliate Notice */
.affiliate-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
    font-size: 0.9rem;
}

.affiliate-notice strong {
    color: #664d03;
}

/* Category Grid (für index.html) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    font-size: 3.5rem;
}

.category-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text);
}

.category-card-desc {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex: 1;
}

.category-card-btn {
    background: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.category-card-btn:hover {
    background: var(--dark);
    transform: scale(1.05);
}

/* Deals Grid (für Kategorieseiten) */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.deal-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.deal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.deal-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #fafafa;
    padding: 15px;
}

.deal-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.deal-title {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text);
    min-height: 55px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.deal-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.price-new {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary);
}

.price-old {
    font-size: 0.95rem;
    color: var(--gray);
    text-decoration: line-through;
}

.rabatt-badge {
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
}

.deal-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: var(--white);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
    margin-top: auto;
    border: none;
    cursor: pointer;
}

.deal-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(204, 12, 57, 0.4);
}

/* Loading State */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--gray);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text);
    color: var(--white);
    padding: 20px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner.hidden {
    display: none !important;
}

.cookie-banner a {
    color: var(--primary);
    font-weight: bold;
}

.cookie-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.cookie-btn:hover {
    background: var(--dark);
}

.cookie-dismiss {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cookie-dismiss:hover {
    background: rgba(255,255,255,0.1);
}

/* Footer */
footer {
    background: var(--text);
    color: var(--white);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.footer-section p {
    color: #bbb;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

/* Legal Pages (Impressum, Datenschutz, etc.) */
.legal-page {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: var(--shadow-md);
}

.legal-page h1 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 2rem;
}

.legal-page h2 {
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.legal-page p,
.legal-page ul {
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-page ul {
    padding-left: 30px;
}

.legal-page a {
    color: var(--primary);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .tagline,
    .subtitle {
        font-size: 0.9rem;
    }
    
    nav .container {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .filter-bar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-section {
        padding: 20px;
    }
    
    .legal-page {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6rem;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .deal-image {
        height: 180px;
    }
    
    .price-new {
        font-size: 1.4rem;
    }
}
/* ===== AM ENDE VON style.css HINZUFÜGEN ===== */

/* Urgency Badges für Deal-Cards */
.deal-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: #fafafa;
}

.deal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.deal-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.badge-fire {
    background: linear-gradient(135deg, #FF4444 0%, #CC0C39 100%);
    color: white;
}

.badge-top {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    font-size: 0.85rem;
    padding: 6px 10px;
}

.badge-cheap {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    font-size: 0.85rem;
    padding: 6px 10px;
}

/* Deal Button größer machen */
.deal-btn {
    padding: 14px 20px !important;
    font-size: 1rem !important;
}

.deal-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 16px rgba(204, 12, 57, 0.5) !important;
}
/* Am Ende von style.css */
.deal-image-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.deal-image-link:hover .deal-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
/* ========================================
   BLOG STYLES
   ======================================== */

/* Blog Übersicht Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.blog-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 12px;
    width: fit-content;
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.4;
}

.blog-card-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray);
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-readmore {
    color: var(--primary);
    font-weight: bold;
}

/* Blog Artikel Seite */
.blog-article {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: var(--shadow-md);
}

.blog-article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.blog-article-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.blog-article-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.blog-article-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 30px 0;
}

.blog-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.blog-article-content h2 {
    color: var(--primary);
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.blog-article-content h3 {
    color: var(--dark);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.blog-article-content p {
    margin-bottom: 20px;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-article-content li {
    margin-bottom: 10px;
}

.blog-article-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.blog-article-content a:hover {
    border-bottom-color: var(--primary);
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Deal-Empfehlung Box im Blog */
.deal-recommendation {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.deal-recommendation h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.deal-recommendation a {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.deal-recommendation a:hover {
    background: var(--dark);
    transform: scale(1.05);
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-article {
        padding: 20px;
    }
    
    .blog-article-title {
        font-size: 1.6rem;
    }
    
    .blog-article-meta {
        flex-direction: column;
        gap: 10px;
    }
}
