/* Preisfehler.net - Aufgepimpt */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #dcdcdc;
    color: #1a1a1a;
    line-height: 1.5;
}

/* Header */
header {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #fff;
    padding: 18px 0;
    border-bottom: 5px solid #d9534f;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 4px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 1rem;
    color: #bbb;
}

.rss-button {
    display: block;
    transition: transform 0.2s;
}

.rss-button:hover {
    transform: scale(1.05);
}

.rss-button img {
    height: 45px;
    width: auto;
    display: block;
}

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

/* Deal Card */
.deal-card {
    background: #fff;
    border: 3px solid #999;
    display: flex;
    flex-direction: column;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.deal-card:hover {
    border-color: #d9534f;
    box-shadow: 5px 5px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.deal-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: #f5f5f5;
    padding: 15px;
    border-bottom: 3px solid #ccc;
}

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

.deal-title {
    font-size: 1rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 12px;
    min-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Preise */
.price-section {
    margin-bottom: 12px;
    padding: 8px;
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border-left: 4px solid #d9534f;
}

.price-new {
    font-size: 1.7rem;
    font-weight: bold;
    color: #cc0000;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.price-old {
    font-size: 0.95rem;
    color: #777;
    text-decoration: line-through;
    margin-left: 8px;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00aa00 0%, #008800 100%);
    color: #fff;
    padding: 3px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 6px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Rabatt-Code */
.discount-code {
    background: linear-gradient(135deg, #fff8e1 0%, #fff5cc 100%);
    border: 3px dashed #d9a500;
    padding: 10px;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.discount-code-label {
    font-size: 0.72rem;
    color: #7a5800;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discount-code-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #d9a500;
    font-family: Courier, monospace;
    margin-top: 3px;
}

/* Hinweis */
.deal-notice {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef3 100%);
    padding: 10px;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 12px;
    border-left: 5px solid #4a90d9;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

/* Amazon Icon */
.amazon-icon {
    height: 18px;
    margin-bottom: 8px;
    display: block;
}

/* Button */
.deal-button {
    background: linear-gradient(180deg, #e85855 0%, #d9534f 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
    border: 2px solid #c44440;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-button:hover {
    background: linear-gradient(180deg, #d9534f 0%, #c44440 100%);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

/* Datum */
.deal-date {
    font-size: 0.72rem;
    color: #777;
    text-align: right;
}

/* Keine Deals */
.no-deals {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border: 3px solid #999;
    margin: 20px 0;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.2);
}

.no-deals h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-deals p {
    color: #777;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #bbb;
    text-align: center;
    padding: 25px 15px;
    margin-top: 40px;
    border-top: 5px solid #d9534f;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
    font-size: 0.9rem;
}

footer a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.affiliate-notice {
    margin-top: 15px;
    font-size: 0.82rem;
    color: #999;
    line-height: 1.7;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 3px;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.popup-content {
    background-color: #fff;
    margin: 40px auto;
    padding: 0;
    border: 4px solid #555;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.popup-content h2 {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #fff;
    padding: 15px 18px;
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.popup-body {
    padding: 20px;
    line-height: 1.7;
}

.popup-body h3 {
    color: #1a1a1a;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.15rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.popup-body p {
    margin-bottom: 12px;
}

.popup-body ul {
    margin: 10px 0 10px 28px;
}

.popup-body li {
    margin-bottom: 5px;
}

.popup-body a {
    color: #d9534f;
    text-decoration: none;
    font-weight: bold;
}

.popup-body a:hover {
    text-decoration: underline;
}

.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    padding: 0 10px;
    transition: opacity 0.2s;
}

.close:hover {
    opacity: 0.7;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #fff;
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
    border-top: 4px solid #d9534f;
    z-index: 9999;
    display: none;
}

.cookie-consent .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1180px;
}

.cookie-consent p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.cookie-consent a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

.cookie-consent a:hover {
    color: #d9534f;
}

.cookie-consent .cookie-accept {
    background: linear-gradient(180deg, #e85855 0%, #d9534f 100%);
    color: #fff;
    border: 2px solid #c44440;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.cookie-consent .cookie-accept:hover {
    background: linear-gradient(180deg, #d9534f 0%, #c44440 100%);
    box-shadow: 5px 5px 12px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 0.88rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .rss-button img {
        height: 38px;
    }
    
    .deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .popup-content {
        margin: 15px auto;
        width: 95%;
    }
    
    /* Cookie Banner Mobile */
    .cookie-consent {
        padding: 15px;
    }
    
    .cookie-consent .container {
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-consent p {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .cookie-consent .cookie-accept {
        padding: 10px 25px;
        font-size: 0.9rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}